- Sort Score
- Num 10 results
- Language All
Results 2021 - 2030 of 3,297 for Gist (0.16 seconds)
-
guava/src/com/google/common/io/Files.java
* helpful predefined constants * @return a mutable {@link List} containing all the lines * @throws IOException if an I/O error occurs */ public static List<String> readLines(File file, Charset charset) throws IOException { // don't use asCharSource(file, charset).readLines() because that returns // an immutable list, which would change the behavior of this method return asCharSource(file, charset)Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Sep 25 20:24:13 GMT 2025 - 32.8K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
import java.io.File; import java.util.Arrays; import java.util.Deque; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.Set; import java.util.function.Consumer; import java.util.function.Supplier; import java.util.regex.Matcher;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 03 15:06:05 GMT 2025 - 66.8K bytes - Click Count (0) -
docs_src/query_param_models/tutorial001_an_py310.py
app = FastAPI() class FilterParams(BaseModel): limit: int = Field(100, gt=0, le=100) offset: int = Field(0, ge=0) order_by: Literal["created_at", "updated_at"] = "created_at" tags: list[str] = [] @app.get("/items/") async def read_items(filter_query: Annotated[FilterParams, Query()]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 443 bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/PreconditionsTest.java
allOverloads.add(ImmutableList.<Class<?>>of(predicateType)); allOverloads.add(ImmutableList.<Class<?>>of(predicateType, Object.class)); List<List<Class<?>>> typesLists = new ArrayList<>(); for (int i = 0; i < 2; i++) { typesLists.add(POSSIBLE_PARAM_TYPES); for (List<Class<?>> curr : Lists.cartesianProduct(typesLists)) { allOverloads.add( ImmutableList.<Class<?>>builder()
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 19K bytes - Click Count (0) -
cmd/bucket-replication-metrics.go
return } a.Curr = globalReplicationPool.Get().ActiveWorkers() a.hist.Update(int64(a.Curr)) a.Avg = float32(a.hist.Mean()) a.Max = int(a.hist.Max()) } func (a *ActiveWorkerStat) get() ActiveWorkerStat { w := ActiveWorkerStat{ Curr: a.Curr, Avg: a.Avg, Max: a.Max, } return w } // QStat holds queue stats for replication type QStat struct { Count float64 `json:"count"`
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 15 12:04:40 GMT 2024 - 14.2K bytes - Click Count (0) -
docs_src/python_types/tutorial011_py39.py
from datetime import datetime from typing import Union from pydantic import BaseModel class User(BaseModel): id: int name: str = "John Doe" signup_ts: Union[datetime, None] = None friends: list[int] = [] external_data = { "id": "123", "signup_ts": "2017-06-01 12:22", "friends": [1, "2", b"3"], } user = User(**external_data) print(user)
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Sep 02 15:56:35 GMT 2023 - 492 bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/admin/dataconfig/AdminDataconfigAction.java
public HtmlResponse index() { return asListHtml(); } /** * Show the list page. * @param pageNumber The page number. * @param form The search form. * @return The HTML response. */ @Execute @Secured({ ROLE, ROLE + VIEW }) public HtmlResponse list(final OptionalThing<Integer> pageNumber, final SearchForm form) { pageNumber.ifPresent(num -> {
Created: Sat Dec 20 09:19:18 GMT 2025 - Last Modified: Thu Nov 20 13:56:35 GMT 2025 - 19.2K bytes - Click Count (0) -
docs_src/header_param_models/tutorial002_py310.py
app = FastAPI() class CommonHeaders(BaseModel): model_config = {"extra": "forbid"} host: str save_data: bool if_modified_since: str | None = None traceparent: str | None = None x_tag: list[str] = [] @app.get("/items/") async def read_items(headers: CommonHeaders = Header()):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Tue Sep 17 18:54:10 GMT 2024 - 392 bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt
} /** Returns a snapshot of the calls currently awaiting execution. */ @Synchronized fun queuedCalls(): List<Call> = readyAsyncCalls.map { it.call }.unmodifiable() /** Returns a snapshot of the calls currently being executed. */ @Synchronized fun runningCalls(): List<Call> = (runningSyncCalls + runningAsyncCalls.map { it.call }).unmodifiable() @Synchronized
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Oct 07 14:16:22 GMT 2025 - 9.9K bytes - Click Count (0) -
docs_src/body_nested_models/tutorial002_py310.py
from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None tags: list[str] = [] @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item): results = {"item_id": item_id, "item": item}
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 369 bytes - Click Count (0)