- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for newSet (0.04 sec)
-
tests/helper_test.go
func doCheckPet(t *testing.T, pet Pet, expect Pet, unscoped bool) { if pet.ID != 0 { var newPet Pet if err := db(unscoped).Where("id = ?", pet.ID).First(&newPet).Error; err != nil { t.Fatalf("errors happened when query: %v", err) } else { AssertObjEqual(t, newPet, pet, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") AssertObjEqual(t, newPet, expect, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") } }
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Tue Mar 19 03:50:28 UTC 2024 - 8K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java
/** * Resolves conflicting artifacts by always selecting the newest declaration. Newest is defined as the * declaration whose version is greater according to <code>ArtifactVersion.compareTo</code>. * * @see ArtifactVersion#compareTo * @since 3.0 */ @Named("newest") @Singleton @Deprecated public class NewestConflictResolver implements ConflictResolver {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.2K bytes - Viewed (0) -
misc/cgo/gmp/pi.go
//go:build ignore package main import ( big "." "fmt" "runtime" ) var ( tmp1 = big.NewInt(0) tmp2 = big.NewInt(0) numer = big.NewInt(1) accum = big.NewInt(0) denom = big.NewInt(1) ten = big.NewInt(10) ) func extractDigit() int64 { if big.CmpInt(numer, accum) > 0 { return -1 } tmp1.Lsh(numer, 1).Add(tmp1, numer).Add(tmp1, accum)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Apr 10 22:32:35 UTC 2023 - 1.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashing.java
int newNext = getNext(entry, mask); if (lastEntryIndex == -1) { // we need to update the root link from table[] tableSet(table, tableIndex, newNext); } else { // we need to update the link from the chain entries[lastEntryIndex] = maskCombine(entries[lastEntryIndex], newNext, mask); } return entryIndex;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 15:34:52 UTC 2024 - 7.1K bytes - Viewed (0) -
internal/logger/targets.go
currentTgt, ok := oldTargets[i].(*http.Target) if !ok { continue } var newTgt *http.Target for ii := range tgts { if currentTgt.Name() == tgts[ii].Name() { newTgt = tgts[ii] currentTgt.AssignMigrateTarget(newTgt) http.CreateOrAdjustGlobalBuffer(currentTgt, newTgt) break } } } for _, t := range tgts { err := t.Init(ctx) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 03 15:44:50 UTC 2024 - 6K bytes - Viewed (0) -
misc/cgo/gmp/fib.go
// Keep the fibbers in dedicated operating system // threads, so that this program tests coordination // between pthreads and not just goroutines. runtime.LockOSThread() i := big.NewInt(n) if n == 0 { c <- i } for { j := <-c out <- j.String() i.Add(i, j) c <- i } } func main() { c := make(chan *big.Int) out := make(chan string) go fibber(c, out, 0)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Apr 10 22:32:35 UTC 2023 - 919 bytes - Viewed (0) -
docs/debugging/inspect/export.go
} return versions, buf, nil } // decodeVersions will decode a number of versions from a buffer // and perform a callback for each version in order, newest first. // Any non-nil error is returned. func decodeVersions(buf []byte, versions int, fn func(idx int, hdr, meta []byte) error) (e error) { var tHdr, tMeta []byte // Zero copy bytes for i := 0; i < versions; i++ {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Nov 08 15:58:02 UTC 2022 - 9.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Challenge.kt
init { val newAuthParams = mutableMapOf<String?, String>() for ((key, value) in authParams) { val newKey = key?.lowercase(US) newAuthParams[newKey] = value } this.authParams = unmodifiableMap<String?, String>(newAuthParams) } /** Returns a copy of this charset that expects a credential encoded with [charset]. */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashing.java
int newNext = getNext(entry, mask); if (lastEntryIndex == -1) { // we need to update the root link from table[] tableSet(table, tableIndex, newNext); } else { // we need to update the link from the chain entries[lastEntryIndex] = maskCombine(entries[lastEntryIndex], newNext, mask); } return entryIndex;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 15:34:52 UTC 2024 - 7.1K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicy.java
* artifact, closer to the entry point, is selected */ @Configuration(name = "closer-first", value = "true") private boolean closerFirst = true; /** * newer artifact is selected */ @Configuration(name = "newer-first", value = "true") private boolean newerFirst = true; public MetadataGraphEdge apply(MetadataGraphEdge e1, MetadataGraphEdge e2) { int depth1 = e1.getDepth();
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0)