- Sort Score
- Num 10 results
- Language All
Results 3851 - 3860 of 6,702 for If (0.12 seconds)
-
docs/en/docs/advanced/advanced-python-types.md
# Advanced Python Types { #advanced-python-types } Here are some additional ideas that might be useful when working with Python types. ## Using `Union` or `Optional` { #using-union-or-optional } If your code for some reason can't use `|`, for example if it's not in a type annotation but in something like `response_model=`, instead of using the vertical bar (`|`) you can use `Union` from `typing`.Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 11 18:32:12 GMT 2026 - 2K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/AccessTimeoutTarget.java
if (logger.isDebugEnabled()) { logger.debug("Interrupt {}", runningThread); } runningThread.interrupt(); ThreadUtil.sleepQuietly(1000L); count++; } } /** * Stops the timeout target by setting the running flag to false. */ public void stop() { if (logger.isDebugEnabled()) {
Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
// Act: call renew CredentialsInternal renewed = impl.renew(); // Assert: verify behavior based on scenario if (expectSame) { assertSame(impl, renewed, "renew() should return the same instance"); } else if (expectNew) { assertNotNull(renewed, "renew() should return a new non-null instance");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
docs_src/dependencies/tutorial008d_an_py310.py
raise @app.get("/items/{item_id}") def get_item(item_id: str, username: Annotated[str, Depends(get_username)]): if item_id == "portal-gun": raise InternalError( f"The portal gun is too dangerous to be owned by {username}" ) if item_id != "plumbus": raise HTTPException( status_code=404, detail="Item not found, there's only a plumbus here" )
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 734 bytes - Click Count (0) -
docs_src/dependencies/tutorial012_an_py310.py
from fastapi import Depends, FastAPI, Header, HTTPException async def verify_token(x_token: Annotated[str, Header()]): if x_token != "fake-super-secret-token": raise HTTPException(status_code=400, detail="X-Token header invalid") async def verify_key(x_key: Annotated[str, Header()]): if x_key != "fake-super-secret-key": raise HTTPException(status_code=400, detail="X-Key header invalid") return x_key
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 746 bytes - Click Count (0) -
lib/fips140/v1.0.0-c2097c7c.zip
} func (c *CBCEncrypter) CryptBlocks(dst, src []byte) { if len(src)%BlockSize != 0 { panic("crypto/cipher: input not full blocks") } if len(dst) < len(src) { panic("crypto/cipher: output smaller than input") } if alias.InexactOverlap(dst[:len(src)], src) { panic("crypto/cipher: invalid buffer overlap") } fips140.RecordApproved() if len(src) == 0 { return } cryptBlocksEnc(&c.b, &c.iv, dst, src) } func (x *CBCEncrypter) SetIV(iv []byte) { if len(iv) != len(x.iv) { panic("cipher: incorrect length IV")...
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Sep 25 19:53:19 GMT 2025 - 642.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/DosErrorTest.java
class DosErrorTest { // Helper that performs a lookup over the constants exposed by DosError. // Returns -1 if the DOS code is not mapped. private static int findNtStatusOrMinusOne(int dosCode) { for (int[] pair : DosError.DOS_ERROR_CODES) { // each pair is [dosCode, ntStatus] if (pair != null && pair.length == 2 && pair[0] == dosCode) { return pair[1]; } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/Tables.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 25.3K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/JavaClassPublicifier.java
classNode.access |= ACC_PUBLIC; if (classFile.contains("$")) { // java inexplicably has an inner class contain itself as an inner class... makeInnerClassPublic(classNode, classNode.name.split("\\$")[1]); } }); if (classFile.contains("$")) { // for inner classes, also need to adjust the parentCreated: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 4K bytes - Click Count (0)