- Sort Score
- Result 10 results
- Languages All
Results 1151 - 1160 of 3,211 for Gist (0.07 sec)
-
docs_src/generate_clients/tutorial001.py
from typing import List from fastapi import FastAPI from pydantic import BaseModel app = FastAPI() class Item(BaseModel): name: str price: float class ResponseMessage(BaseModel): message: str @app.post("/items/", response_model=ResponseMessage) async def create_item(item: Item): return {"message": "item received"} @app.get("/items/", response_model=List[Item]) async def get_items():
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Mar 04 22:02:18 UTC 2022 - 519 bytes - Viewed (0) -
docs_src/query_param_models/tutorial001_an.py
from typing import List from fastapi import FastAPI, Query from pydantic import BaseModel, Field from typing_extensions import Annotated, Literal 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/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Sep 17 18:54:10 UTC 2024 - 478 bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesTest.java
File temp = createTempFile(); LineProcessor<List<String>> collect = new LineProcessor<List<String>>() { List<String> collector = new ArrayList<>(); @Override public boolean processLine(String line) { collector.add(line); return true; } @Override public List<String> getResult() { return collector;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 22.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java
import com.google.common.collect.testing.TestSetGenerator; import com.google.common.collect.testing.TestSubjectGenerator; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.checkerframework.checker.nullness.qual.Nullable; /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 6.8K bytes - Viewed (0) -
compat/maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 6.9K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/DefaultMavenExecutionRequestPopulator.java
package org.apache.maven.execution; import javax.inject.Inject; import javax.inject.Named; import javax.inject.Singleton; import java.io.File; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.maven.api.Constants; import org.apache.maven.artifact.InvalidRepositoryException; import org.apache.maven.artifact.repository.ArtifactRepository;
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/ftp/FtpAuthenticationHolder.java
* governing permissions and limitations under the License. */ package org.codelibs.fess.crawler.client.ftp; import java.util.ArrayList; import java.util.List; /** * @author shinsuke * */ public class FtpAuthenticationHolder { List<FtpAuthentication> authList = new ArrayList<>(); public void add(final FtpAuthentication auth) { authList.add(auth); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 1.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashMap.java
* high 32 bits of each long is the "prev" pointer, whereas the low 32 bits is the "succ" pointer * (pointing to the next entry in the linked list). The pointers in [size(), entries.length) are * all "null" (UNSET). * * <p>A node with "prev" pointer equal to {@code ENDPOINT} is the first node in the linked list, * and a node with "next" pointer equal to {@code ENDPOINT} is the last node. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 8.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapTestSuiteBuilder.java
result.usingGenerator(generator); return result; } @SuppressWarnings("rawtypes") // class literals @Override protected List<Class<? extends AbstractTester>> getTesters() { List<Class<? extends AbstractTester>> testers = copyToList(super.getTesters()); testers.add(SetMultimapAsMapTester.class); testers.add(SetMultimapEqualsTester.class);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddTester.java
import com.google.common.collect.testing.features.CollectionSize; import java.lang.reflect.Method; import java.util.List; import org.junit.Ignore; /** * A generic JUnit test which tests {@code add(Object)} operations on a list. Can't be invoked * directly; please see {@link com.google.common.collect.testing.ListTestSuiteBuilder}. * * @author Chris Povirk */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.3K bytes - Viewed (0)