- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,011 for replace (0.19 sec)
-
tests/test_datetime_custom_encoder.py
class ModelWithDatetimeField(BaseModel): dt_field: datetime @field_serializer("dt_field") def serialize_datetime(self, dt_field: datetime): return dt_field.replace(microsecond=0, tzinfo=timezone.utc).isoformat() app = FastAPI() model = ModelWithDatetimeField(dt_field=datetime(2019, 1, 1, 8)) @app.get("/model", response_model=ModelWithDatetimeField) def get_model():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 1.6K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/JdkVersionProfileActivator.java
ranges.add(new RangeValue(token.replace("[", ""), true)); } else if (token.startsWith("(")) { ranges.add(new RangeValue(token.replace("(", ""), false)); } else if (token.endsWith("]")) { ranges.add(new RangeValue(token.replace("]", ""), true)); } else if (token.endsWith(")")) { ranges.add(new RangeValue(token.replace(")", ""), false));
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 6.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/RelationshipTester.java
if (!condition) { throw new AssertionFailedError( template .replace("$RELATIONSHIP", relationshipName) .replace("$HASH", hashName) .replace("$ITEM", itemReporter.reportItem(item)) .replace("$OTHER", itemReporter.reportItem(other))); } } private Item<T> getItem(int groupNumber, int itemNumber) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 25 11:57:12 GMT 2023 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java
return delegate().remove(key, value); } @CanIgnoreReturnValue @Override @CheckForNull public V replace(K key, V value) { return delegate().replace(key, value); } @CanIgnoreReturnValue @Override public boolean replace(K key, V oldValue, V newValue) { return delegate().replace(key, oldValue, newValue); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 29 19:42:21 GMT 2021 - 2.5K 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")
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Thu Jan 06 07:02:53 GMT 2022 - 6.8K 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")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.4K bytes - Viewed (0) -
guava/src/com/google/common/base/CaseFormat.java
} @Override String convert(CaseFormat format, String s) { if (format == LOWER_UNDERSCORE) { return s.replace('-', '_'); } if (format == UPPER_UNDERSCORE) { return Ascii.toUpperCase(s.replace('-', '_')); } return super.convert(format, s); } }, /** C++ variable naming convention, e.g., "lower_underscore". */
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Dec 19 20:20:14 GMT 2022 - 6.3K bytes - Viewed (0) -
internal/s3select/csv/record.go
} // Raw - returns the underlying data with format info. func (r *Record) Raw() (sql.SelectObjectFormat, interface{}) { return sql.SelectFmtCSV, r } // Replace - is not supported for CSV func (r *Record) Replace(_ interface{}) error { return errors.New("Replace is not supported for CSV") } // NewRecord - creates new CSV record. func NewRecord() *Record { return &Record{}
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Sep 13 00:00:59 GMT 2022 - 4.1K bytes - Viewed (0) -
bin/update_crds.sh
# using the pseudo version we have in go.mod file. e.g. v.0.0.0-<timestamp>-<SHA> # first check if there's a replace: e.g. replace istio.io/api => github.com/USER/istioapi v0.0.0-<timestamp>-<SHA> SHA=$(grep "istio.io/api" go.mod | grep "^replace" | awk -F "-" '{print $NF}') if [ -n "${SHA}" ]; then REPO=$(grep "istio.io/api" go.mod | grep "^replace" | awk '{print $4}') else SHA=$(grep "istio.io/api" go.mod | head -n1 | awk '{ print $2 }')
Shell Script - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Mon Apr 22 14:28:27 GMT 2024 - 3.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
cache.put(10, 100); cache.put(2, 52); asMap.replace(2, 79); asMap.replace(3, 60); assertEquals(null, cache.getIfPresent(3)); assertEquals(null, asMap.get(3)); assertEquals(Integer.valueOf(79), cache.getIfPresent(2)); assertEquals(Integer.valueOf(79), asMap.get(2)); asMap.replace(10, 100, 50); asMap.replace(2, 52, 99);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Aug 05 17:21:46 GMT 2022 - 15.1K bytes - Viewed (0)