Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for get_lib (0.11 seconds)

  1. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            assertTrue(decoded > 0, "Decode should return positive length");
    
            assertEquals(NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, resp.getStatus());
            assertArrayEquals(blob, resp.getBlob(), "Security blob should match");
            assertEquals(sessionFlags, resp.getSessionFlags(), "Session flags should decode");
            assertTrue(resp.isLoggedInAsGuest(), "Guest/anonymous should be detected");
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  2. tests/test_security_scopes.py

    @pytest.fixture(name="app")
    def app_fixture(call_counter: dict[str, int]):
        def get_db():
            call_counter["count"] += 1
            return f"db_{call_counter['count']}"
    
        def get_user(db: Annotated[str, Depends(get_db)]):
            return "user"
    
        app = FastAPI()
    
        @app.get("/")
        def endpoint(
            db: Annotated[str, Depends(get_db)],
            user: Annotated[str, Security(get_user, scopes=["read"])],
        ):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1006 bytes
    - Click Count (0)
  3. docs_src/dependencies/tutorial010_py310.py

        def __init__(self):
            self.db = DBSession()
    
        def __enter__(self):
            return self.db
    
        def __exit__(self, exc_type, exc_value, traceback):
            self.db.close()
    
    
    async def get_db():
        with MySuperContextManager() as db:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 292 bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXResponse.java

            return this.isLoggedInAsGuest;
        }
    
        /**
         * Returns the security blob received from the server during extended security negotiation.
         *
         * @return the blob
         */
        public final byte[] getBlob() {
            return this.blob;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  5. fastapi/.agents/skills/fastapi/references/dependencies.md

    ```python
    from typing import Annotated
    
    from fastapi import Depends, FastAPI
    
    app = FastAPI()
    
    
    def get_db():
        db = DBSession()
        try:
            yield db
        finally:
            db.close()
    
    
    DBDep = Annotated[DBSession, Depends(get_db)]
    
    
    @app.get("/items/")
    async def read_items(db: DBDep):
        return db.query(Item).all()
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  6. docs_src/dependencies/tutorial007_py310.py

    async def get_db():
        db = DBSession()
        try:
            yield db
        finally:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 99 bytes
    - Click Count (0)
  7. tests/main.py

        return {"message": "Hello World"}
    
    
    app.add_api_route("/non_decorated_route", non_decorated_route)
    
    
    @app.get("/text")
    def get_text():
        return "Hello World"
    
    
    @app.get("/path/{item_id}")
    def get_id(item_id):
        return item_id
    
    
    @app.get("/path/str/{item_id}")
    def get_str_id(item_id: str):
        return item_id
    
    
    @app.get("/path/int/{item_id}")
    def get_int_id(item_id: int):
        return item_id
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java

            return this.sessionFlags;
        }
    
        /**
         * Gets the security blob from the session setup response
         *
         * @return security blob
         */
        public byte[] getBlob() {
            return this.blob;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.8K bytes
    - Click Count (1)
  9. tests/test_custom_route_class.py

    router_b = APIRouter(route_class=APIRouteB)
    router_c = APIRouter(route_class=APIRouteC)
    
    
    @router_a.get("/")
    def get_a():
        return {"msg": "A"}
    
    
    @router_b.get("/")
    def get_b():
        return {"msg": "B"}
    
    
    @router_c.get("/")
    def get_c():
        return {"msg": "C"}
    
    
    router_b.include_router(router=router_c, prefix="/c")
    router_a.include_router(router=router_b, prefix="/b")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/gcs/GcsClient.java

                final String path = paths[1];
                if (logger.isDebugEnabled()) {
                    logger.debug("Parsed GCS path: bucket={}, objectPath={}", bucketName, path);
                }
                final Blob blob = getBlob(bucketName, path);
                if (blob == null) {
                    final Set<RequestData> requestDataSet = new HashSet<>();
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Thu Dec 11 08:38:29 GMT 2025
    - 17.5K bytes
    - Click Count (0)
Back to Top