- Sort Score
- Num 10 results
- Language All
Results 3651 - 3660 of 3,810 for value2 (0.04 seconds)
-
fastapi/.agents/skills/fastapi/SKILL.md
async def read_item(current_user: dict = Depends(get_current_user)): return {"message": "Hello World"} ``` ## Do not use Ellipsis for *path operations* or Pydantic models Do not use `...` as a default value for required parameters, it's not needed and not recommended. Do this, without Ellipsis (`...`): ```python from typing import Annotated from fastapi import FastAPI, Query
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 10.1K bytes - Click Count (0) -
cmd/erasure-metadata_test.go
t.Fatalf("%+v: expected = %d, got: %d", testCase, testCase.expectedIndex, index) } } } // Test objectPartIndex(). generates a sample FileInfo data and asserts // the output of objectPartIndex() with the expected value. func TestObjectPartIndex(t *testing.T) { testCases := []struct { partNum int expectedIndex int }{ {2, 1}, {1, 0}, {5, 3}, {4, 2}, {7, 4}, } // Setup.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
int maxReferralLevel = -1; buffer = new DfsReferralRequestBuffer(path, maxReferralLevel); assertNotNull(buffer); // Negative values will be cast to unsigned when encoded assertEquals(4 + 2 * path.length(), buffer.size()); } } @Nested @DisplayName("Size Calculation Tests") class SizeTests {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.5K bytes - Click Count (0) -
src/archive/tar/writer_test.go
*/ }, { file: "testdata/trailing-slash.tar", tests: []testFnc{ testHeader{Header{Name: strings.Repeat("123456789/", 30)}, nil}, testClose{nil}, }, }, { // Automatically promote zero value of Typeflag depending on the name. file: "testdata/file-and-dir.tar", tests: []testFnc{ testHeader{Header{Name: "small.txt", Size: 5}, nil}, testWrite{"Kilts", 5, nil}, testHeader{Header{Name: "dir/"}, nil},Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Mon Dec 15 16:34:13 GMT 2025 - 40.2K bytes - Click Count (0) -
cmd/data-usage_test.go
gotv := got.Cache[wkey] if !equalAsJSON(gotv, wval) { t.Errorf("deserialize mismatch, key %v\nwant: %#v\ngot: %#v", wkey, wval, gotv) } } } // equalAsJSON returns whether the values are equal when encoded as JSON. func equalAsJSON(a, b any) bool { aj, err := json.Marshal(a) if err != nil { panic(err) } bj, err := json.Marshal(b) if err != nil { panic(err) }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 14.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
ListeningScheduledExecutorService service = listeningDecorator(delegate); ListenableFuture<Integer> future = service.schedule(Callables.returning(42), 1, MILLISECONDS); /* * Wait not just until the Future's value is set (as in future.get()) but * also until ListeningScheduledExecutorService's wrapper task is done * executing listeners, as detected by yielding control to afterExecute. */ completed.await();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/convert/DateConversionUtil.java
* </p> * <p> * If the source object is a {@link Date}, {@link Calendar}, or {@link java.sql.Date}, the converted object is created using the millisecond value of the source. * For other types, the converted object is created from the string representation of the source object. * </p> * <p>Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 19.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
assertArrayEquals(expectedName, actualName); verify(request, times(1)).getName(); } @Test @DisplayName("getName() should handle null return value") void testGetNameWithNull() { CreateContextRequest request = mock(CreateContextRequest.class); when(request.getName()).thenReturn(null); byte[] actualName = request.getName();
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.9K bytes - Click Count (0) -
docs/zh-hant/docs/python-types.md
* 變數 `items_s` 是一個 `set`,而其中每個項目都是 `bytes` 型別。 #### Dict { #dict } 定義 `dict` 時,你需要傳入 2 個以逗號分隔的型別參數。 第一個型別參數是 `dict` 的鍵(key)。 第二個型別參數是 `dict` 的值(value): {* ../../docs_src/python_types/tutorial008_py310.py hl[1] *} 這代表: * 變數 `prices` 是個 `dict`: * 這個 `dict` 的鍵是 `str`(例如每個項目的名稱)。 * 這個 `dict` 的值是 `float`(例如每個項目的價格)。 #### Union { #union }Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:05:38 GMT 2026 - 10.7K bytes - Click Count (0) -
fastapi/params.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 25.7K bytes - Click Count (0)