- Sort Score
- Num 10 results
- Language All
Results 1251 - 1260 of 2,060 for Results (0.04 seconds)
-
tests/test_response_change_status_code.py
from fastapi.testclient import TestClient app = FastAPI() async def response_status_setter(response: Response): response.status_code = 201 async def parent_dep(result=Depends(response_status_setter)): return result @app.get("/", dependencies=[Depends(parent_dep)]) async def get_main(): return {"msg": "Hello World"} client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Apr 08 04:37:38 GMT 2020 - 589 bytes - Click Count (0) -
android/guava/src/com/google/common/hash/LittleEndianByteArray.java
return byteArray.getLongLittleEndian(input, offset); } /** * Similar to load64, but allows offset + 8 > input.length, padding the result with zeroes. This * has to explicitly reverse the order of the bytes as it packs them into the result which makes * it slower than the native version. * * @param input the input bytes * @param offset the offset into the array at which to start reading
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 10.1K bytes - Click Count (0) -
lib/wasm/wasm_exec.js
}, // func valueGet(v ref, p string) ref "syscall/js.valueGet": (sp) => { sp >>>= 0; const result = Reflect.get(loadValue(sp + 8), loadString(sp + 16)); sp = this._inst.exports.getsp() >>> 0; // see comment above storeValue(sp + 32, result); }, // func valueSet(v ref, p string, x ref) "syscall/js.valueSet": (sp) => { sp >>>= 0;
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Sun Dec 08 15:34:47 GMT 2024 - 16.6K bytes - Click Count (0) -
build-tools-internal/src/main/groovy/org/elasticsearch/gradle/internal/doc/RestTestsFromSnippetsTask.groovy
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 19.5K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java
T[] result = super.toArray(array); if (size() < result.length) { // It works around a GWT bug where elements after last is not // properly null'ed. @Nullable Object[] unsoundlyCovariantArray = result; unsoundlyCovariantArray[size()] = null; } return result; } }); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 18:32:41 GMT 2025 - 4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/MutableNetwork.java
* * @return {@code true} if the network was modified as a result of this call */ @CanIgnoreReturnValue boolean removeNode(N node); /** * Removes {@code edge} from this network, if it is present. * * @return {@code true} if the network was modified as a result of this call */ @CanIgnoreReturnValue boolean removeEdge(E edge);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 4.3K bytes - Click Count (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.java
static <T extends @Nullable Object> T[] copy(Object[] source, int from, int to, T[] arrayOfType) { T[] result = newArray(arrayOfType, to - from); System.arraycopy(source, from, result, 0, to - from); return result; } // TODO(user): Move this logic to a utility class. @JsType(isNative = true, name = "Array", namespace = JsPackage.GLOBAL)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jan 23 17:16:53 GMT 2026 - 5.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
// When String result = smbComClose.toString(); // Then assertTrue(result.startsWith("SmbComClose[")); assertTrue(result.contains("fid=" + fid)); assertTrue(result.contains("lastWriteTime=" + lastWriteTime)); assertTrue(result.endsWith("]")); } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/ResultOffsetExceededExceptionTest.java
ResultOffsetExceededException exception = new ResultOffsetExceededException(message); String result = exception.toString(); assertNotNull(result); assertTrue(result.contains(ResultOffsetExceededException.class.getName())); assertTrue(result.contains(message)); } @Test public void test_multipleInstances() { // Test creating multiple instances
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 9.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/TagsTest.kt
val atomicTags = AtomicReference<Tags>(tags) val result = atomicTags.computeIfAbsent(String::class) { // 'Race' by making another computeIfAbsent call. In practice this would be another thread. assertThat(atomicTags.computeIfAbsent(Integer::class) { 5 as Integer }).isEqualTo(5) "a" } assertThat(result).isEqualTo("a") assertThat(atomicTags.get()[String::class]).isEqualTo("a")
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Oct 24 11:37:46 GMT 2025 - 7.1K bytes - Click Count (0)