- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 144 for repeats (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
cmd/dummy-data-generator_test.go
// DummyDataGen returns a reader that repeats the bytes in `alphabets` // upto the desired length. type DummyDataGen struct { b []byte idx, length int64 } // NewDummyDataGen returns a ReadSeeker over the first `totalLength` // bytes from the infinite stream consisting of repeated // concatenations of `alphabets`. //Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 4.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
assertThat(BloomFilter.optimalNumOfBits(n, fpp)).isAtLeast(0); } } // some random values Random random = new Random(0); for (int repeats = 0; repeats < 10000; repeats++) { assertThat(BloomFilter.optimalNumOfBits(random.nextInt(1 << 16), random.nextDouble())) .isAtLeast(0); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 22.1K bytes - Click Count (0) -
cmd/benchmark-utils_test.go
rand.Seed(UTCNow().UnixNano()) // pick a character randomly. return []byte{letterBytes[rand.Intn(len(letterBytes))]} } // picks a random byte and repeats it to size bytes. func generateBytesData(size int) []byte { // repeat the random character chosen size return bytes.Repeat(getRandomByte(), size) } // Parallel benchmark utility functions for ObjectLayer.PutObject().
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 8.1K bytes - Click Count (0) -
src/bytes/bytes.go
return b } // Despite being an exported symbol, // Repeat is linknamed by widely used packages. // Notable members of the hall of shame include: // - gitee.com/quant1x/num // // Do not remove or change the type signature. // See go.dev/issue/67401. // // Note that this comment is not part of the doc comment. // //go:linkname Repeat // Repeat returns a new byte slice consisting of count copies of b. //
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Sep 16 16:42:15 GMT 2025 - 35.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/MessageDeflaterInflaterTest.kt
val deflater = MessageDeflater(false) val inflater = MessageInflater(false) val goldenValue1 = "Hello deflate!".repeat(100).encodeUtf8() val deflatedValue1 = deflater.deflate(goldenValue1) assertThat(inflater.inflate(deflatedValue1)).isEqualTo(goldenValue1) val goldenValue2 = "Hello deflate?".repeat(100).encodeUtf8() val deflatedValue2 = deflater.deflate(goldenValue2)
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:26:07 GMT 2025 - 6.4K bytes - Click Count (0) -
src/archive/tar/writer_test.go
int64(1e10 - blockSize), strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10), int64(1e10 - blockSize), strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10), int64(1e10 - blockSize), strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10), int64(1e10 - blockSize), strings.Repeat("\x00", blockSize-100) + strings.Repeat("0123456789", 10),
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Dec 15 16:34:13 GMT 2025 - 40.2K bytes - Click Count (0) -
src/archive/tar/reader_test.go
inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"}, wantErr: ErrHeader, }, { inputData: padInput(strings.Repeat("0", 300) + "1\n" + strings.Repeat("0", 1000) + "5\n" + strings.Repeat("0", 800) + "2\n"), inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"}, wantMap: sparseDatas{{5, 2}}, }, { inputData: padInput("2\n10737418240\n512\n21474836480\n512\n"),
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Dec 15 16:34:13 GMT 2025 - 47.5K bytes - Click Count (0) -
src/archive/tar/strconv.go
f.err = ErrFieldTooLong } s := strconv.FormatInt(x, 8) // Add leading zeros, but leave room for a NUL. if n := len(b) - len(s) - 1; n > 0 { s = strings.Repeat("0", n) + s } f.formatString(b, s) } // fitsInOctal reports whether the integer x fits in a field n-bytes long // using octal encoding with the appropriate NUL terminator. func fitsInOctal(n int, x int64) bool { octBits := uint(n-1) * 3
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Sep 08 17:08:20 GMT 2025 - 9.1K bytes - Click Count (0) -
internal/ringbuffer/ring_buffer_benchmark_test.go
func BenchmarkRingBuffer_Sync(b *testing.B) { rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) for b.Loop() { rb.Write(data) rb.Read(buf) } } func BenchmarkRingBuffer_AsyncRead(b *testing.B) { // Pretty useless benchmark, but it's here for completeness. rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) go func() { for { rb.Read(buf)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 1.5K bytes - Click Count (0) -
internal/ringbuffer/ring_buffer_test.go
} rb.Write([]byte(strings.Repeat("abcd", 15))) if !bytes.Equal(rb.Bytes(nil), []byte("bcd"+strings.Repeat("abcd", 15))) { t.Fatalf("expect 63 ... but got %s. r.w=%d, r.r=%d", rb.Bytes(nil), rb.w, rb.r) } rb.Reset() n, err = rb.Write([]byte(strings.Repeat("abcd", 16))) if err != nil { t.Fatalf("write failed: %v", err) } if n != 64 {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 26.7K bytes - Click Count (0)