- Sort Score
- Num 10 results
- Language All
Results 581 - 590 of 1,558 for putA (0.02 seconds)
-
docs_src/additional_status_codes/tutorial001_py310.py
from fastapi import Body, FastAPI, status from fastapi.responses import JSONResponse app = FastAPI() items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}} @app.put("/items/{item_id}") async def upsert_item( item_id: str, name: str | None = Body(default=None), size: int | None = Body(default=None), ): if item_id in items: item = items[item_id] item["name"] = name
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 646 bytes - Click Count (0) -
guava/src/com/google/common/collect/CompactHashMap.java
import java.util.function.Consumer; import org.jspecify.annotations.Nullable; /** * CompactHashMap is an implementation of a Map. All optional operations (put and remove) are * supported. Null keys and values are supported. * * <p>{@code containsKey(k)}, {@code put(k, v)} and {@code remove(k)} are all (expected and * amortized) constant time operations. Expected in the hashtable sense (depends on the hash
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 39.6K bytes - Click Count (0) -
docs_src/body_nested_models/tutorial005_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 468 bytes - Click Count (0) -
docs_src/schema_extra_example/tutorial003_py310.py
from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None @app.put("/items/{item_id}") async def update_item( item_id: int, item: Item = Body( examples=[ { "name": "Foo", "description": "A very nice Item",
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 574 bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingResult.java
// Intentionally notNull because Super POM may not contain a modelId Objects.requireNonNull(modelId, "modelId cannot null"); rawModels.put(modelId, rawModel); return this; } @Override public List<Profile> getActivePomProfiles(String modelId) { return activePomProfiles.get(modelId); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 4.2K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/PluginsMetadata.java
if (!recessivePlugins.isEmpty() || !plugins.isEmpty()) { LinkedHashMap<String, Plugin> mergedPlugins = new LinkedHashMap<>(); recessivePlugins.forEach(p -> mergedPlugins.put(p.getPrefix(), p)); plugins.forEach(p -> mergedPlugins.put(p.getPrefix(), p)); metadata.setPlugins(new ArrayList<>(mergedPlugins.values())); } // just carry-on as-is if (recessive.getVersioning() != null) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/base/JoinerTest.java
assertThat(j.join(ImmutableMap.of("", ""))).isEqualTo(":"); Map<@Nullable String, @Nullable String> mapWithNulls = new LinkedHashMap<>(); mapWithNulls.put("a", null); mapWithNulls.put(null, "b"); assertThrows(NullPointerException.class, () -> j.join(mapWithNulls)); assertThat(j.useForNull("00").join(mapWithNulls)).isEqualTo("a:00;00:b");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 13.2K bytes - Click Count (0) -
docs_src/body_multiple_params/tutorial003_py310.py
class Item(BaseModel): name: str description: str | None = None price: float tax: float | None = None class User(BaseModel): username: str full_name: str | None = None @app.put("/items/{item_id}") async def update_item(item_id: int, item: Item, user: User, importance: int = Body()): results = {"item_id": item_id, "item": item, "user": user, "importance": importance}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 504 bytes - Click Count (0) -
docs_src/schema_extra_example/tutorial003_an_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 673 bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/search/LabelsApiTests.java
} } private static String createLabel(final String name, final String value) { Map<String, Object> labelBody = new HashMap<>(); labelBody.put("name", name); labelBody.put("value", value); Response response = checkMethodBase(labelBody).post("/api/admin/labeltype/setting"); JsonPath jsonPath = JsonPath.from(response.asString());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sat Dec 20 03:03:44 GMT 2025 - 4.1K bytes - Click Count (0)