- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 129 for adapted (0.2 seconds)
-
internal/lsync/lrwmutex_test.go
expected := false if locked != expected { t.Errorf("TestDualWriteLockTimedOut(): \nexpected %#v\ngot %#v", expected, locked) } } // Test cases below are copied 1 to 1 from sync/rwmutex_test.go (adapted to use LRWMutex) // Borrowed from rwmutex_test.go func parallelReader(ctx context.Context, m *LRWMutex, clocked, cunlock, cdone chan bool) { if m.GetRLock(ctx, "", "", time.Second) { clocked <- true <-cunlockCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.8K bytes - Click Count (0) -
fastapi/encoders.py
from ._compat import ( Url, is_pydantic_v1_model_instance, ) # Taken from Pydantic v1 as is def isoformat(o: datetime.date | datetime.time) -> str: return o.isoformat() # Adapted from Pydantic v1 # TODO: pv2 should this return strings instead? def decimal_encoder(dec_value: Decimal) -> int | float: """ Encodes a Decimal as int if there's no exponent, otherwise float
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 15 11:44:39 GMT 2026 - 10.9K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/merge/MavenModelMerger.java
import org.apache.maven.model.Site; import org.codehaus.plexus.util.StringUtils; /** * The domain-specific model merger for the Maven POM, overriding generic code from parent class when necessary with * more adapted algorithms. * * @deprecated use {@code org.apache.maven.impl.model.MavenModelMerger} instead */ @Deprecated(since = "4.0.0") public class MavenModelMerger extends ModelMerger { /**Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 21.7K bytes - Click Count (0) -
android/guava/src/com/google/common/math/BigIntegerMath.java
} throw new AssertionError(); } @GwtIncompatible // TODO private static BigInteger sqrtFloor(BigInteger x) { /* * Adapted from Hacker's Delight, Figure 11-1. * * Using DoubleUtils.bigToDouble, getting a double approximation of x is extremely fast, andCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.8K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Converter.java
* guarantee that as long as we also require the input type to be non-null[*] (which is a * requirement that existing callers already fulfill). * * Disclaimer: Part of the reason that callers are so well adapted to `Function<A, B>` may be that * that is how the signature looked even prior to this comment! So naturally any change can break * existing users, but it can't *fix* existing users because any users who needed
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 18 21:43:06 GMT 2025 - 22.8K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Doubles.java
double[] toDoubleArray() { return Arrays.copyOfRange(array, start, end); } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; } /** * This is adapted from the regex suggested by {@link Double#valueOf(String)} for prevalidating * inputs. All valid inputs must pass this regex, but it's semantically fine if not all inputs
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 27.8K bytes - Click Count (0) -
guava/src/com/google/common/base/Converter.java
* guarantee that as long as we also require the input type to be non-null[*] (which is a * requirement that existing callers already fulfill). * * Disclaimer: Part of the reason that callers are so well adapted to `Function<A, B>` may be that * that is how the signature looked even prior to this comment! So naturally any change can break * existing users, but it can't *fix* existing users because any users who needed
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 18 21:43:06 GMT 2025 - 22.8K bytes - Click Count (0) -
android/guava/src/com/google/common/math/LongMath.java
* is not precisely representable as a {@code double} * @since 30.0 */ @GwtIncompatible public static double roundToDouble(long x, RoundingMode mode) { // Logic adapted from ToDoubleRounder. double roundArbitrarily = (double) x; long roundArbitrarilyAsLong = (long) roundArbitrarily; int cmpXToRoundArbitrarily; if (roundArbitrarilyAsLong == Long.MAX_VALUE) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 09 23:01:02 GMT 2026 - 46.8K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
// will include a tag and length header as a prefix. val adapter = chooser(writer.typeHint) as DerAdapter<Any?>? when { adapter != null -> adapter.toDer(writer, value) else -> writer.writeOctetString(value as ByteString) } } override fun fromDer(reader: DerReader): Any? { val adapter = chooser(reader.typeHint) as DerAdapter<Any?>? return when {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Click Count (0) -
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
val sequenceOf = listOf(7L, 8L, 9L) val adapter = Adapters.INTEGER_AS_LONG.asSequenceOf() assertThat(adapter.fromDer(bytes)).isEqualTo(sequenceOf) assertThat(adapter.toDer(sequenceOf)).isEqualTo(bytes) } @Test fun `point with only x set`() { val bytes = "3003800109".decodeHex() val point = Point(9L, null) assertThat(Point.ADAPTER.fromDer(bytes)).isEqualTo(point)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 31.7K bytes - Click Count (0)