- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 6,286 for retain (0.05 seconds)
-
src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java
// Verify large message is handled assertNotNull(result); assertTrue(result.length() > 1000); assertTrue(result.contains("Error detail 0")); assertTrue(result.contains("Error detail 999")); assertTrue(result.endsWith("\n")); } @Test public void test_execute_withCheckedExceptionWrapped() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 12.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 17.6K bytes - Click Count (7) -
tests/test_tuples.py
y: float @app.post("/model-with-tuple/") def post_model_with_tuple(item_group: ItemGroup): return item_group @app.post("/tuple-of-models/") def post_tuple_of_models(square: tuple[Coordinate, Coordinate]): return square @app.post("/tuple-form/") def hello(values: tuple[int, int] = Form()): return values client = TestClient(app) def test_model_with_tuple_valid():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 10.8K bytes - Click Count (0) -
.github/workflows/multipart/migrate.sh
if [[ $? -eq 0 ]]; then echo "Outputs are consistent." break fi remaining_attempts=$((max_wait_attempts - attempt)) if ((attempt >= max_wait_attempts)); then echo "Outputs remain inconsistent after $max_wait_attempts attempts. Exiting with error." exit 1 else echo "Outputs are inconsistent. Waiting for $wait_interval seconds (attempt $attempt/$max_wait_attempts)." sleep $wait_interval fi
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon May 27 19:17:46 GMT 2024 - 4.3K bytes - Click Count (0) -
src/test/java/jcifs/util/SmbCircuitBreakerTest.java
assertEquals("success", result, "Operation should return correct result"); assertEquals(State.CLOSED, circuitBreaker.getState(), "State should remain CLOSED"); assertEquals(0, circuitBreaker.getFailureCount(), "Failure count should remain 0"); } @Test public void testFailureThresholdOpensCircuit() { // Fail 3 times to open circuit
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.2K bytes - Click Count (0) -
docs_src/authentication_error_status_code/tutorial001_an_py310.py
def make_not_authenticated_error(self) -> HTTPException: return HTTPException( status_code=status.HTTP_403_FORBIDDEN, detail="Not authenticated" ) CredentialsDep = Annotated[HTTPAuthorizationCredentials, Depends(HTTPBearer403())] @app.get("/me") def read_me(credentials: CredentialsDep):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 618 bytes - Click Count (0) -
docs_src/handling_errors/tutorial005_py310.py
async def validation_exception_handler(request: Request, exc: RequestValidationError): return JSONResponse( status_code=422, content=jsonable_encoder({"detail": exc.errors(), "body": exc.body}), ) class Item(BaseModel): title: str size: int @app.post("/items/") async def create_item(item: Item):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 626 bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
byte[] retrievedKey = key.getKey(); // Modify the retrieved key retrievedKey[0] = (byte) 0xFF; // Original key should remain unchanged assertEquals(0x01, key.getKey()[0]); } @Test @DisplayName("Should create readable string representation") void testToString() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 00:16:17 GMT 2025 - 6K bytes - Click Count (0) -
internal/http/dial_linux.go
if err != nil { return nil, err } if opts.DriveOPTimeout != nil { // Read deadlines are sufficient for now as per various // scenarios of hung node detection, we may add Write deadlines // if needed later on. return deadlineconn.New(conn).WithReadDeadline(opts.DriveOPTimeout()), nil } return conn, nil }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Jul 23 10:53:03 GMT 2024 - 5K bytes - Click Count (0) -
docs_src/security/tutorial007_py310.py
raise HTTPException( status_code=status.HTTP_401_UNAUTHORIZED, detail="Incorrect username or password", headers={"WWW-Authenticate": "Basic"}, ) return credentials.username @app.get("/users/me") def read_current_user(username: str = Depends(get_current_username)):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.1K bytes - Click Count (0)