Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 54 for get_index (0.09 seconds)

  1. tests/test_dependency_yield_scope.py

    ]
    
    RegularSessionsDep = Annotated[
        tuple[NamedSession, Session], Depends(get_named_regular_func_session)
    ]
    
    app = FastAPI()
    router = APIRouter()
    
    
    @router.get("/")
    def get_index():
        return {"status": "ok"}
    
    
    @app.get("/function-scope")
    def function_scope(session: SessionFuncDep) -> Any:
        def iter_data():
            yield json.dumps({"is_open": session.open})
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 6.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            // Align to 8-byte boundary
            ndrBuffer.setIndex(5);
            alignedBytes = ndrBuffer.align(8);
            assertEquals(3, alignedBytes); // Should advance by 3 bytes (5 -> 8)
            assertEquals(8, ndrBuffer.getIndex());
        }
    
        @Test
        void testEncDecNdrSmall() {
            ndrBuffer.enc_ndr_small(0xAB);
            assertEquals(1, ndrBuffer.getIndex());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.3K bytes
    - Click Count (0)
  3. src/main/java/jcifs/dcerpc/DcerpcMessage.java

            }
    
            encode_in(buf);
            this.length = buf.getIndex() - start;
    
            if (this.ptype == 0) {
                buf.setIndex(alloc_hint_index);
                this.alloc_hint = this.length - alloc_hint_index;
                buf.enc_ndr_long(this.alloc_hint);
            }
    
            buf.setIndex(start);
            encode_header(buf);
            buf.setIndex(start + this.length);
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

            }
    
            encode_in(buf);
            length = buf.getIndex() - start;
    
            if (ptype == 0) {
                buf.setIndex(alloc_hint_index);
                alloc_hint = length - alloc_hint_index;
                buf.enc_ndr_long(alloc_hint);
            }
    
            buf.setIndex(start);
            encode_header(buf);
            buf.setIndex(start + length);
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/entity/ChatMessageTest.java

            assertEquals(1, source.getIndex());
            assertNull(source.getTitle());
            assertNull(source.getUrl());
            assertNull(source.getDocId());
            assertNull(source.getSnippet());
        }
    
        @Test
        public void test_chatSourceSetters() {
            final ChatSource source = new ChatSource();
    
            source.setIndex(10);
            source.setTitle("Document Title");
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  6. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                message.ptype = DcerpcConstants.RPC_PT_REQUEST; // 0
                message.call_id = 1;
                message.opnumValue = 5;
    
                when(mockBuffer.getIndex()).thenReturn(0).thenReturn(16).thenReturn(20).thenReturn(24);
                lenient().doNothing().when(mockBuffer).advance(anyInt());
                lenient().doNothing().when(mockBuffer).enc_ndr_long(anyInt());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  7. cmd/metrics-v3-system-drive.go

    package cmd
    
    import (
    	"context"
    	"strconv"
    
    	"github.com/minio/madmin-go/v3"
    )
    
    // label constants
    const (
    	driveL      = "drive"
    	poolIndexL  = "pool_index"
    	setIndexL   = "set_index"
    	driveIndexL = "drive_index"
    
    	apiL = "api"
    
    	sectorSize = uint64(512)
    	kib        = float64(1 << 10)
    
    	driveHealthOffline = float64(0)
    	driveHealthOnline  = float64(1)
    	driveHealthHealing = float64(2)
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  8. callbacks.go

    		if c.before != "" { // if defined before callback
    			if c.before == "*" && len(sorted) > 0 {
    				if curIdx := getRIndex(sorted, c.name); curIdx == -1 {
    					sorted = append([]string{c.name}, sorted...)
    				}
    			} else if sortedIdx := getRIndex(sorted, c.before); sortedIdx != -1 {
    				if curIdx := getRIndex(sorted, c.name); curIdx == -1 {
    					// if before callback already sorted, append current callback just after it
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:26:07 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java

            assertThat(indexed1.getIndex(), is(0));
            assertThat(indexed1.getElement(), is("aaa"));
    
            final Indexed<String> indexed2 = it.next();
            assertThat(indexed2.getIndex(), is(1));
            assertThat(indexed2.getElement(), is("bbb"));
    
            final Indexed<String> indexed3 = it.next();
            assertThat(indexed3.getIndex(), is(2));
            assertThat(indexed3.getElement(), is("ccc"));
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/entity/ChatMessage.java

             * Gets the source index.
             *
             * @return the source index
             */
            public int getIndex() {
                return index;
            }
    
            /**
             * Sets the source index.
             *
             * @param index the source index
             */
            public void setIndex(final int index) {
                this.index = index;
            }
    
            /**
             * Gets the source title.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 12 04:52:31 GMT 2026
    - 10.1K bytes
    - Click Count (0)
Back to Top