Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 414 for repeats (0.06 seconds)

  1. 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)
  2. samples/crawler/src/main/java/okhttp3/sample/Crawler.java

    import okhttp3.Request;
    import okhttp3.Response;
    import org.jsoup.Jsoup;
    import org.jsoup.nodes.Document;
    import org.jsoup.nodes.Element;
    
    /**
     * Fetches HTML from a requested URL, follows the links, and repeats.
     */
    public final class Crawler {
      private final OkHttpClient client;
      private final Set<HttpUrl> fetchedUrls = Collections.synchronizedSet(new LinkedHashSet<>());
      private final BlockingQueue<HttpUrl> queue;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jul 23 00:58:06 GMT 2025
    - 5K bytes
    - Click Count (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/test/java/jcifs/smb/SecurityBlobTest.java

            assertEquals("", blob.toString(), "toString() should be empty for empty buffer");
        }
    
        // Ensures set(null) resets the buffer to empty and does not NPE
        @Test
        @DisplayName("set(null) resets to empty")
        void set_null_resetsToEmpty() {
            // Arrange
            SecurityBlob blob = new SecurityBlob(new byte[] { 1, 2, 3 });
    
            // Act
            blob.set(null);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  7. 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)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/MultilineMessageHelper.java

            sb.setLength(0);
            repeat(sb, BOX_CHAR, size);
            result.add(sb.toString());
            // lines
            for (String line : lines) {
                sb.setLength(0);
                String[] words = S_FILTER.split(line);
                for (String word : words) {
                    if (sb.length() >= remainder - word.length() - (!sb.isEmpty() ? 1 : 0)) {
                        repeat(sb, ' ', remainder - sb.length());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Jul 23 17:27:08 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/web/admin/failureurl/EditForm.java

         * This field contains the full error information for debugging purposes.
         */
        public String errorLog;
    
        /**
         * The number of times this URL has failed.
         * This is a required field that tracks repeated failures for the same URL.
         */
        @Required
        @ValidateTypeFailure
        public String errorCount;
    
        /**
         * The timestamp of the last access attempt for this URL.
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

     *
     * @author Jesse Wilson
     * @author Louis Wasserman
     */
    @GwtIncompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class NavigableMapNavigationTester<K, V> extends AbstractMapTester<K, V> {
    
      private NavigableMap<K, V> navigableMap;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 9K bytes
    - Click Count (0)
Back to Top