- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 62 for 00101000 (0.06 seconds)
-
tests/test_jsonable_encoder.py
model = ModelWithCustomEncoder(dt_field=datetime(2019, 1, 1, 8)) assert jsonable_encoder(model) == {"dt_field": "2019-01-01T08:00:00+00:00"} subclass_model = ModelWithCustomEncoderSubclass(dt_field=datetime(2019, 1, 1, 8)) assert jsonable_encoder(subclass_model) == {"dt_field": "2019-01-01T08:00:00+00:00"} def test_json_encoder_error_with_pydanticv1(): with warnings.catch_warnings():Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Dec 27 12:54:56 GMT 2025 - 9.2K bytes - Click Count (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt
var hostname = inetAddress.hostName if (inetAddress is Inet6Address && hostname.contains(':')) { // hostname is likely some form representing the IPv6 bytes // 2001:0db8:85a3:0000:0000:8a2e:0370:7334 // 2001:db8:85a3::8a2e:370:7334 // ::1 hostname = "[$hostname]" } val localPort = socket.localPortCreated: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java
joinHelper(10, 20); joinHelper(10, 0, 20); joinHelper(0, 10, 20); joinHelper(10, 20, 0); joinHelper(10, 20, 1); joinHelper(1, 1, 1, 1, 1, 1, 1, 1); joinHelper(1, 0, 1, 0, 1, 0, 1, 0); } public void testOnlyOneOpen() throws Exception { ByteSource source = newByteSource(0, 50); int[] counter = new int[1]; ByteSource checker = new ByteSource() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 4.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MultiInputStreamTest.java
joinHelper(10, 20); joinHelper(10, 0, 20); joinHelper(0, 10, 20); joinHelper(10, 20, 0); joinHelper(10, 20, 1); joinHelper(1, 1, 1, 1, 1, 1, 1, 1); joinHelper(1, 0, 1, 0, 1, 0, 1, 0); } public void testOnlyOneOpen() throws Exception { ByteSource source = newByteSource(0, 50); int[] counter = new int[1]; ByteSource checker = new ByteSource() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:44:53 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/math/StatsBenchmark.java
} return new MeanAndVariance(mean, s / values.length); } }; abstract MeanAndVariance variance(double[] values, MeanAlgorithm meanAlgorithm); } @Param({"100", "10000"}) int n; @Param MeanAlgorithm meanAlgorithm; @Param VarianceAlgorithm varianceAlgorithm; private final double[][] values = new double[0x100][]; @BeforeExperiment void setUp() {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed May 14 19:40:47 GMT 2025 - 4.7K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java
@Param private ComparatorType comparator; // TODO(kevinb): add 1000000 back when we have the ability to throw // NotApplicableException in the expensive comparator case. @Param({"100", "10000"}) private int size; @Param private HeapType heap; private Queue<Integer> queue; private final Random random = new Random(); @BeforeExperiment void setUp() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.4K bytes - Click Count (0) -
cmd/net.go
host, err := xnet.ParseHost(serverAddr) if err != nil { return config.ErrInvalidAddressFlag(err) } // 0.0.0.0 is a wildcard address and refers to local network // addresses. I.e, 0.0.0.0:9000 like ":9000" refers to port // 9000 on localhost. if host.Name != "" && host.Name != net.IPv4zero.String() && host.Name != net.IPv6zero.String() {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.6K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/idn/Punycode.kt
val low = (if (i + 1 < limit) this[i + 1] else '\u0000') if (c.isLowSurrogate() || !low.isLowSurrogate()) { '?'.code } else { i++ 0x010000 + (c.code and 0x03ff shl 10 or (low.code and 0x03ff)) } } else -> c.code } i++ } return result }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 8.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/IdnaMappingTableTest.kt
table.map(-1, Buffer()) } table.map(0, Buffer()) // Lowest legal code point. table.map(0x10ffff, Buffer()) // Highest legal code point. assertFailsWith<IllegalArgumentException> { table.map(0x110000, Buffer()) } } @Test fun binarySearchEvenSizedRange() { val table = listOf(1, 3, 5, 7, 9, 11) // Search for matches.
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 8.9K bytes - Click Count (0) -
cmd/net_test.go
} } } func TestCheckLocalServerAddr(t *testing.T) { testCases := []struct { serverAddr string expectedErr error }{ {":54321", nil}, {"localhost:54321", nil}, {"0.0.0.0:9000", nil}, {":0", nil}, {"localhost", nil}, {"", fmt.Errorf("invalid argument")}, {"example.org:54321", fmt.Errorf("host in server address should be this server")},
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Oct 10 18:57:03 GMT 2025 - 9.2K bytes - Click Count (0)