- Sort Score
- Num 10 results
- Language All
Results 451 - 460 of 1,087 for tstr (0.03 seconds)
-
src/main/java/jcifs/smb/SmbResourceLocatorImpl.java
* * @see jcifs.SmbResourceLocator#getParent() */ @Override public String getParent() { String str = this.url.getAuthority(); if (str != null && !str.isEmpty()) { final StringBuilder sb = new StringBuilder("smb://"); sb.append(str); final String urlpath = getURLPath(); if (urlpath.length() > 1) { sb.append(urlpath);Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 23.6K bytes - Click Count (0) -
docs_src/dependencies/tutorial014_an_py310.py
if not user: raise HTTPException(status_code=403, detail="Not authorized") session.close() def generate_stream(query: str): for ch in query: yield ch time.sleep(0.1) @app.get("/generate", dependencies=[Depends(get_user)]) def generate(query: str):Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 957 bytes - Click Count (0) -
tests/test_security_scopes_dont_propagate.py
return scopes.scopes async def dep3( dep1: Annotated[list[str], Security(security1, scopes=["scope1"])], dep2: Annotated[list[str], Security(security2, scopes=["scope2"])], ): return {"dep1": dep1, "dep2": dep2} app = FastAPI() @app.get("/scopes") def get_scopes( dep3: Annotated[dict[str, Any], Security(dep3, scopes=["scope3"])], ): return dep3
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 973 bytes - Click Count (0) -
docs/ja/docs/tutorial/encoder.md
同様に、このデータベースはPydanticモデル(属性を持つオブジェクト)を受け取らず、`dict`だけを受け取ります。 そのために`jsonable_encoder`を使用することができます。 Pydanticモデルのようなオブジェクトを受け取り、JSON互換版を返します: {* ../../docs_src/encoder/tutorial001.py hl[5,22] *} この例では、Pydanticモデルを`dict`に、`datetime`を`str`に変換します。Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Jun 22 14:36:05 GMT 2025 - 1.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 17.8K bytes - Click Count (0) -
tests/test_custom_schema_fields.py
from fastapi import FastAPI from fastapi.testclient import TestClient from pydantic import BaseModel, WithJsonSchema app = FastAPI() class Item(BaseModel): name: str description: Annotated[ Optional[str], WithJsonSchema({"type": ["string", "null"]}) ] = None model_config = { "json_schema_extra": { "x-something-internal": {"level": 4}, } }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 1.3K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/UnicodeString.java
/** * Constructs a UnicodeString from a Java String. * * @param str * wrapped string * @param zterm * whether the string should be zero terminated */ public UnicodeString(final String str, final boolean zterm) { this.zterm = zterm; final int len = str.length(); final int zt = zterm ? 1 : 0;Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.7K bytes - Click Count (0) -
tests/test_security_api_key_cookie.py
from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() api_key = APIKeyCookie(name="key") class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(api_key)): user = User(username=oauth_header) return user @app.get("/users/me") def read_current_user(current_user: User = Depends(get_current_user)):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
// When String str = exception.toString(); // Then assertNotNull(str); assertTrue(str.contains("SmbOperationException")); assertTrue(str.contains("ACCESS_DENIED")); assertTrue(str.contains("AUTHENTICATION")); assertTrue(str.contains("retryable=false")); assertTrue(str.contains("attempt=1"));Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/TransWaitNamedPipeResponseTest.java
*/ @Test void toStringIncludesClassName() { TransWaitNamedPipeResponse resp = new TransWaitNamedPipeResponse(); String str = resp.toString(); assertNotNull(str, "toString should not return null"); assertTrue(str.startsWith("TransWaitNamedPipeResponse["), "toString should begin with class name"); } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 5.4K bytes - Click Count (0)