- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,453 for CLEAR (0.03 sec)
-
test/clear.go
package main import "math" func checkClearSlice() { s := []int{1, 2, 3} clear(s) for i := range s { if s[i] != 0 { panic("clear not zeroing slice elem") } } clear([]int{}) } func checkClearMap() { m1 := make(map[int]int) m1[0] = 0 m1[1] = 1 clear(m1) if len(m1) != 0 { panic("m1 is not cleared") } // map contains NaN keys is also cleared.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 19:43:07 UTC 2023 - 743 bytes - Viewed (0) -
src/internal/reflectlite/all_test.go
bad(func() { clear(Field(v, 4)) }) // .NamedT2 bad(func() { clear(Field(Field(v, 4), 0)) }) // .NamedT2.Z bad(func() { clear(Field(Field(v, 4), 1)) }) // .NamedT2.namedT0 bad(func() { clear(Field(Field(Field(v, 4), 1), 0)) }) // .NamedT2.namedT0.W bad(func() { clear(Field(v, 5)) }) // .namedT1 bad(func() { clear(Field(Field(v, 5), 0)) }) // .namedT1.Y
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:26:08 UTC 2023 - 24.2K bytes - Viewed (0) -
tests/associations_has_one_test.go
// Prepare Data for Clear account = Account{Number: "account-has-one-append"} if err := DB.Model(&user2).Association("Account").Append(&account); err != nil { t.Fatalf("Error happened when append Account, got %v", err) } AssertAssociationCount(t, user2, "Account", 1, "after prepare data") // Clear if err := DB.Model(&user2).Association("Account").Clear(); err != nil {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 7.1K bytes - Viewed (0) -
test/fixedbugs/issue59411.go
m[math.NaN()] = N // Iterate through map. i := 0 for range m { if i == 6 { // Partway through iteration, clear the map. clear(m) } else if i > 6 { // If we advance to the next iteration, that's a bug. panic("BAD") } i++ } if len(m) != 0 { panic("clear did not empty the map") } } func g() { // Allocate map. m := map[float64]int{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Apr 08 05:25:04 UTC 2023 - 1.3K bytes - Viewed (0) -
tests/associations_has_many_test.go
// Prepare Data for Clear if err := DB.Model(&user2).Association("Pets").Append(&pet); err != nil { t.Fatalf("Error happened when append Pets, got %v", err) } AssertAssociationCount(t, user2, "Pets", 1, "after prepare data") // Clear if err := DB.Model(&user2).Association("Pets").Clear(); err != nil { t.Errorf("Error happened when clear Pets, got %v", err) }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 16K bytes - Viewed (0) -
src/runtime/memclr_ppc64x.s
MOVD $384, R11 PCALIGN $16 zero512: DCBZ (R3+R0) // clear first chunk DCBZ (R3+R9) // clear second chunk DCBZ (R3+R10) // clear third chunk DCBZ (R3+R11) // clear fourth chunk ADD $512, R3 BDNZ zero512 ANDCC $511, R4 remain: CMP R4, $128 // check if 128 byte chunks left BLT smaller DCBZ (R3+R0) // clear 128 ADD $128, R3 ADD $-128, R4 BR remain
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 16 17:08:59 UTC 2023 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc
} pass_name_ = extract_pass_name(pass->getName().str()); error_collector_->Clear(); } void ErrorCollectorInstrumentation::runAfterPass(Pass *pass, Operation *module) { loc_to_name_.clear(); pass_name_.clear(); common_error_message_.clear(); error_collector_->Clear(); } void ErrorCollectorInstrumentation::runAfterPassFailed(Pass *pass,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 25 01:48:36 UTC 2024 - 5.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/sso/aad/AzureAdAuthenticatorTest.java
list.clear(); authenticator.addGroupOrRoleName(list, "test", true); assertEquals(1, list.size()); assertEquals("test", list.get(0)); list.clear(); authenticator.addGroupOrRoleName(list, "test", false); assertEquals(1, list.size()); assertEquals("test", list.get(0)); list.clear();
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/MemoryDataHelper.java
protected volatile Map<String, List<Pattern>> includeUrlPatternMap = new HashMap<>(); protected volatile Map<String, List<Pattern>> excludeUrlPatternMap = new HashMap<>(); public void clear() { urlQueueMap.clear(); sessionMap.clear(); } public synchronized Queue<UrlQueueImpl<Long>> getUrlQueueList(final String sessionId) { Queue<UrlQueueImpl<Long>> urlQueueList = urlQueueMap.get(sessionId);
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 4.8K bytes - Viewed (0) -
src/compress/lzw/writer.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 7.9K bytes - Viewed (0)