- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 1,042 for replaced (0.05 sec)
-
android/guava-tests/test/com/google/common/collect/ForwardingConcurrentMapTest.java
assertEquals(Integer.valueOf(1), map.replace("foo", 2)); assertNull(map.replace("bar", 3)); assertEquals(Integer.valueOf(2), map.get("foo")); assertFalse(map.containsKey("bar")); } public void testReplaceConditional() { TestMap map = new TestMap(); map.put("foo", 1); assertFalse(map.replace("foo", 2, 3)); assertFalse(map.replace("bar", 1, 2));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.4K bytes - Viewed (0) -
tensorflow/c/eager/immediate_execution_context.h
// TF eager runtime. // TODO(b/172877902): These helper functions are currently used to support // PyFuncOp on TFRT, and might be useful for ops that directly use low // level TF APIs. Remove/replace the following functions when TFRT native // ops are implemented. //===--------------------------------------------------------------------===// // Create an abstract tensor handle from tensorflow::Tensor.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 12.3K bytes - Viewed (0) -
tests/named_polymorphic_test.go
} if DB.Model(&hamster2).Association("OtherToy").Count() != 1 { t.Errorf("Hamster's toys count should be 1 after Append") } // Replace DB.Model(&hamster).Association("PreferredToy").Replace(&Toy{ Name: "bike 3", }) DB.Model(&hamster).Association("OtherToy").Replace(&Toy{ Name: "treadmill 3", }) hamsterToy = Toy{} DB.Model(&hamster).Association("PreferredToy").Find(&hamsterToy)
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jul 08 09:59:40 UTC 2020 - 4.2K bytes - Viewed (0) -
tests/associations_belongs_to_test.go
AssertAssociationCount(t, user2, "Manager", 1, "AfterAppend") // Replace company2 := Company{Name: "company-belongs-to-replace"} manager2 := GetUser("manager-belongs-to-replace", Config{}) if err := DB.Model(&user2).Association("Company").Replace(&company2); err != nil { t.Fatalf("Error happened when replace Company, got %v", err) } if company2.ID == 0 { t.Fatalf("Company's ID should be created")
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 9.3K bytes - Viewed (0) -
compat/maven-repository-metadata/src/main/java/org/apache/maven/artifact/repository/metadata/BaseObject.java
childrenTracking.replace(delegate, newDelegate); } delegate = newDelegate; } } protected boolean replace(Object oldDelegate, Object newDelegate) { return false; } @FunctionalInterface protected interface ChildrenTracking { boolean replace(Object oldDelegate, Object newDelegate); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java
return stripInvalidXMLCharacters(// value// .replace("&", "&") // .replace("<", "<")// .replace(">", ">")// .replace("\"", """)// .replace("\'", "'")// ); } public static String stripInvalidXMLCharacters(final String in) {
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 6.1K bytes - Viewed (0) -
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
val mainFiles = mainFiles() return mainFiles.map { val suffix = it.path.replace("${prefix}samples/guide/src/main/java/", "") suffix.replace("(.*)\\.java".toRegex()) { mr -> mr.groupValues[1].replace('/', '.') }.replace("(.*)\\.kt".toRegex()) { mr -> mr.groupValues[1].replace('/', '.') + "Kt" } }.sorted() } } @Disabled("Don't run by default") @Tag("Slow")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
tests/associations_has_one_test.go
} user.Account = account CheckUser(t, user2, user) AssertAssociationCount(t, user, "Account", 1, "AfterAppend") // Replace account2 := Account{Number: "account-has-one-replace"} if err := DB.Model(&user2).Association("Account").Replace(&account2); err != nil { t.Fatalf("Error happened when append Account, got %v", err) } if account2.ID == 0 { t.Fatalf("account2's ID should be created")
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Wed Jun 12 10:49:45 UTC 2024 - 7.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/MultipartBodyTest.kt
} } @Test fun singlePart() { val expected = """ |--123 | |Hello, World! |--123-- | """.trimMargin().replace("\n", "\r\n") val body = MultipartBody.Builder("123") .addPart("Hello, World!".toRequestBody(null)) .build() assertThat(body.boundary).isEqualTo("123")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.4K bytes - Viewed (0) -
compat/maven-settings/src/main/java/org/apache/maven/settings/BaseObject.java
childrenTracking.replace(delegate, newDelegate); } delegate = newDelegate; } } protected boolean replace(Object oldDelegate, Object newDelegate) { return false; } @FunctionalInterface protected interface ChildrenTracking { boolean replace(Object oldDelegate, Object newDelegate); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0)