- Sort Score
- Num 10 results
- Language All
Results 471 - 480 of 1,704 for intA (0.01 seconds)
-
internal/bucket/replication/datatypes_gen.go
// Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message func (z StatusType) Msgsize() (s int) { s = msgp.StringPrefixSize + len(string(z)) return } // DecodeMsg implements msgp.Decodable func (z *Type) DecodeMsg(dc *msgp.Reader) (err error) { { var zb0001 int zb0001, err = dc.ReadInt() if err != nil { err = msgp.WrapError(err) return } (*z) = Type(zb0001) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 3.4K bytes - Click Count (0) -
docs_src/dependencies/tutorial014_an_py310.py
engine = create_engine("postgresql+psycopg://postgres:postgres@localhost/db") class User(SQLModel, table=True): id: int | None = Field(default=None, primary_key=True) name: str app = FastAPI() def get_session(): with Session(engine) as session: yield session def get_user(user_id: int, session: Annotated[Session, Depends(get_session)]): user = session.get(User, user_id) if not user:
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Sep 29 03:29:38 GMT 2025 - 957 bytes - Click Count (0) -
tests/test_security_scopes.py
from fastapi.testclient import TestClient @pytest.fixture(name="call_counter") def call_counter_fixture(): return {"count": 0} @pytest.fixture(name="app") def app_fixture(call_counter: dict[str, int]): def get_db(): call_counter["count"] += 1 return f"db_{call_counter['count']}" def get_user(db: Annotated[str, Depends(get_db)]): return "user" app = FastAPI()
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1006 bytes - Click Count (0) -
internal/grid/grid_types_test.go
package grid //go:generate msgp -unexported -file=$GOFILE -tests=false -o=grid_types_msgp_test.go type testRequest struct { Num int String string } type testResponse struct { OrgNum int OrgString string Embedded testRequest } func newTestRequest() *testRequest { return &testRequest{} } func newTestResponse() *testResponse {Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Nov 21 01:09:35 GMT 2023 - 1.1K bytes - Click Count (0) -
impl/maven-core/src/site/apt/inheritance.apt
The super model is where we place all the values which we believe to be standard, values that can be shared and utilized across all your Maven projects. +-----+ m0 <- m1 <- m2 +-----+ which is transformed into +-----+ super model <- m0 <- m1 <- m2 +-----+ +-----+ <project> <modelVersion>4.0.0</modelVersion> <parent> <groupId></groupId> <artifactId></artifactId> <version></version>
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.5K bytes - Click Count (0) -
tests/test_ambiguous_params.py
async def get_item(item_id: Annotated[int, Path(default=1)]): pass # pragma: nocover with pytest.raises( AssertionError, match=( "`Query` default value cannot be set in `Annotated` for 'item_id'. Set the" " default value with `=` instead." ), ): @app.get("/") async def get(item_id: Annotated[int, Query(default=1)]):
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2K bytes - Click Count (1) -
src/bufio/scan_test.go
} } // negativeEOFReader returns an invalid -1 at the end, as though it // were wrapping the read system call. type negativeEOFReader int func (r *negativeEOFReader) Read(p []byte) (int, error) { if *r > 0 { c := int(*r) if c > len(p) { c = len(p) } for i := 0; i < c; i++ { p[i] = 'a' } p[c-1] = '\n' *r -= negativeEOFReader(c) return c, nil
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Sep 22 16:22:42 GMT 2023 - 14.3K bytes - Click Count (0) -
internal/dsync/drwmutex.go
func checkQuorumLocked(locks *[]string, quorum int) bool { count := 0 for _, uid := range *locks { if isLocked(uid) { count++ } } return count >= quorum } // releaseAll releases all locks that are marked as locked func releaseAll(ctx context.Context, ds *Dsync, tolerance int, owner string, locks *[]string, isReadLock bool, restClnts []NetLocker, names ...string) bool {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 20.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/SimplexTransferListener.java
private static final Logger LOGGER = LoggerFactory.getLogger(SimplexTransferListener.class); private static final int QUEUE_SIZE = 1024; private static final int BATCH_MAX_SIZE = 500; private final TransferListener delegate; private final int batchMaxSize; private final boolean blockOnLastEvent; private final ArrayBlockingQueue<Exchange> eventQueue; private final AtomicBoolean closed;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Feb 06 11:28:05 GMT 2025 - 8.7K bytes - Click Count (0) -
compat/maven-artifact/src/main/java/org/apache/maven/repository/Proxy.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4K bytes - Click Count (0)