- Sort Score
- Num 10 results
- Language All
Results 4801 - 4810 of 7,804 for RETURN (0.18 seconds)
-
tests/test_dump_json_fast_path.py
class Item(BaseModel): name: str price: float app = FastAPI() @app.get("/default") def get_default() -> Item: return Item(name="widget", price=9.99) @app.get("/explicit", response_class=JSONResponse) def get_explicit() -> Item: return Item(name="widget", price=9.99) client = TestClient(app) def test_default_response_class_skips_json_dumps():
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 22 16:07:19 GMT 2026 - 1.4K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/TemplateUtils.java
* Applies {@code bindings} to {@code template}, then removes all carriage returns from * the result. * * @param template a Groovy template * @param bindings parameters for the template * @return the rendered template */ public static String render(String template, Map<String, Object> bindings) throws IOException { final StringWriter writer = new StringWriter(); try {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Sep 01 14:45:41 GMT 2021 - 1.3K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java
* * @param data The content for which to calculate checksums, must not be {@code null}. * @param algorithms The checksum algorithms to use, must not be {@code null}. * @return The calculated checksums, indexed by algorithms, never {@code null}. * @throws NullPointerException if passed in any parameter is {@code null}. */ @NonnullCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 10 20:52:34 GMT 2024 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRandomAccessFileTest.java
when(fh.getTree()).thenReturn(tree); when(fh.getFileId()).thenReturn(new byte[16]); when(fh.getFid()).thenReturn(1); // build via package-private constructor to control unshared flag return new SmbRandomAccessFile(file, mode, SmbConstants.DEFAULT_SHARING, unshared); } @Test @DisplayName("Constructor: invalid mode throws IllegalArgumentException") void constructor_invalidMode_throws() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) class SecurityBlobTest { // Parameter source for toString() hex rendering cases static Stream<Arguments> hexCases() { return Stream.of(Arguments.of(new byte[] {}, ""), Arguments.of(new byte[] { (byte) 0x00 }, "00"), Arguments.of(new byte[] { (byte) 0x0F }, "0f"), Arguments.of(new byte[] { (byte) 0x10 }, "10"),Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
} @Test @DisplayName("isCancel should return true") void testIsCancelReturnsTrue() { assertTrue(cancel.isCancel()); } @Test @DisplayName("writeParameterWordsWireFormat should return 0") void testWriteParameterWordsReturnsZero() throws Exception { // GivenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
internal/mountinfo/mountinfo_linux_test.go
return false } return true } // Checks if two string slices are equal. func slicesEqual(a, b []string) bool { if len(a) != len(b) { return false } for i := range a { if a[i] != b[i] { return false } } return true
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 7.3K bytes - Click Count (0) -
src/main/webapp/js/admin/plugins/daterangepicker/daterangepicker.js
this.updateElement(); this.updateMonthsInView(); }, isInvalidDate: function() { return false; }, isCustomDate: function() { return false; }, updateView: function() { if (this.timePicker) { this.renderTimePicker('left');
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Oct 26 01:49:09 GMT 2024 - 64.8K bytes - Click Count (0) -
tests/test_regex_deprecated_params.py
async def read_items( q: Annotated[str | None, Query(regex="^fixedquery$")] = None, ): if q: return f"Hello {q}" else: return "Hello World" client = TestClient(app) return client @needs_py310 def test_query_params_str_validations_no_query(): client = get_client() response = client.get("/items/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 5.1K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/time/DateFormatterBenchmark.java
@Benchmark public TemporalAccessor parseJavaDate() { return javaFormatter.parse("1234567890"); } @Benchmark public TemporalAccessor parseJodaDate() { return jodaFormatter.parse("1234567890"); }Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Feb 03 00:10:53 GMT 2021 - 1.7K bytes - Click Count (0)