- Sort Score
- Num 10 results
- Language All
Results 331 - 340 of 1,704 for intA (0.11 seconds)
-
docs_src/dependencies/tutorial013_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 - 937 bytes - Click Count (0) -
tests/lru_test.go
lru := lru.NewLRU[string, int](10, nil, time.Hour) lru.Add("key1", 1) lru.Add("key1", 2) if value, ok := lru.Get("key1"); !ok || value != 2 { t.Errorf("Expected value to be updated to 2, got %v", value) } } func TestLRU_Add_NewKey_AddsEntry(t *testing.T) { lru := lru.NewLRU[string, int](10, nil, time.Hour) lru.Add("key1", 1)
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 10.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/MessageBuilder.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Nov 02 09:29:52 GMT 2024 - 7.6K bytes - Click Count (0) -
cmd/peer-s3-client.go
GetHost() string SetPools([]int) GetPools() []int } type localPeerS3Client struct { node Node pools []int } func (l *localPeerS3Client) GetHost() string { return l.node.Host } func (l *localPeerS3Client) SetPools(p []int) { l.pools = make([]int, len(p)) copy(l.pools, p) } func (l localPeerS3Client) GetPools() []int { return l.pools }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 15.6K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/FindBadMultiLangSnippets.java
private static final class Snippet { final int line; // line of the [.multi-language-sample] header final Language lang; // best-effort deduction (UNKNOWN allowed) Snippet(int line, Language lang) { this.line = line; this.lang = lang; } } private static final class Error { final int line; final String message;Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Aug 29 10:12:17 GMT 2025 - 7.2K bytes - Click Count (0) -
tests/test_skip_defaults.py
from pydantic import BaseModel app = FastAPI() class SubModel(BaseModel): a: Optional[str] = "foo" class Model(BaseModel): x: Optional[int] = None sub: SubModel class ModelSubclass(Model): y: int z: int = 0 w: Optional[int] = None class ModelDefaults(BaseModel): w: Optional[str] = None x: Optional[str] = None y: str = "y" z: str = "z"
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 2K bytes - Click Count (0) -
api/go1.23.txt
pkg slices, func All[$0 interface{ ~[]$1 }, $1 interface{}]($0) iter.Seq2[int, $1] #61899 pkg slices, func AppendSeq[$0 interface{ ~[]$1 }, $1 interface{}]($0, iter.Seq[$1]) $0 #61899 pkg slices, func Backward[$0 interface{ ~[]$1 }, $1 interface{}]($0) iter.Seq2[int, $1] #61899 pkg slices, func Chunk[$0 interface{ ~[]$1 }, $1 interface{}]($0, int) iter.Seq[$0] #53987 pkg slices, func Collect[$0 interface{}](iter.Seq[$0]) []$0 #61899
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Jun 25 17:08:08 GMT 2024 - 10.1K bytes - Click Count (0) -
model.go
package gorm import "time" // Model a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt // It may be embedded into your model or you may build your own model without it // // type User struct { // gorm.Model // } type Model struct { ID uint `gorm:"primarykey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt DeletedAt `gorm:"index"`
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sat Feb 18 01:06:43 GMT 2023 - 396 bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java
*/ default int totalProblemsReported() { return problemsReportedFor(BuilderProblem.Severity.values()); } /** * Returns count of problems reported for given severities. * * @param severities the severity levels to count problems for * @return the total count of problems for the specified severities */Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jul 18 17:30:19 GMT 2025 - 11.4K bytes - Click Count (0) -
.teamcity/src/main/kotlin/model/PerformanceTestSpec.kt
val triggerId: String, val dependencies: List<PerformanceTestCoverage>, ) data class PerformanceTestCoverage( private val uuid: Int, override val type: PerformanceTestType, override val os: Os, override val arch: Arch = Arch.AMD64, val numberOfBuckets: Int = 40, private val oldUuid: String? = null, override val failsStage: Boolean = true, ) : PerformanceTestBuildSpec,Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Feb 12 09:12:03 GMT 2025 - 3.8K bytes - Click Count (0)