Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 317 for rebeat (0.18 sec)

  1. cmd/bitrot_test.go

    	b := make([]byte, 10)
    	if _, err = reader.ReadAt(b, 0); err != nil {
    		t.Fatal(err)
    	}
    	if _, err = reader.ReadAt(b, 10); err != nil {
    		t.Fatal(err)
    	}
    	if _, err = reader.ReadAt(b, 20); err != nil {
    		t.Fatal(err)
    	}
    	if _, err = reader.ReadAt(b[:5], 30); err != nil {
    		t.Fatal(err)
    	}
    	if br, ok := reader.(io.Closer); ok {
    		br.Close()
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/EnumTest.java

                    for ( int i = 0; i < 5; i++ ) {
                        // each entry 94 byte + 2 * name length
                        // = 128 byte per entry
                        try ( SmbResource r = f.resolve(String.format("%04x%s", i, repeat('X', 13))) ) {
                            r.createNewFile();
                        }
                    }
                    // == 5*128 = 640
    
                    // . and .. entries = 200 byte (includes alignment)
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  3. src/archive/zip/writer_test.go

    	bigBuf := bytes.Repeat([]byte("a"), 1<<20)
    
    	runOnce := func(buf *bytes.Buffer) {
    		buf.Reset()
    		zw := NewWriter(buf)
    		for j := 0; j < 3; j++ {
    			w, _ := zw.CreateHeader(&FileHeader{
    				Name:   "foo",
    				Method: Deflate,
    			})
    			w.Write(bigBuf)
    		}
    		zw.Close()
    	}
    
    	b.ReportAllocs()
    	// Run once and then reset the timer.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/ListenableFuture.java

          @JsOptional @Nullable IThenOnFulfilledCallbackFn<? super V, ? extends R> onFulfilled,
          @JsOptional @Nullable IThenOnRejectedCallbackFn<? extends R> onRejected) {
        return new Promise<V>(
                (resolve, reject) -> {
                  Futures.addCallback(
                      this,
                      new FutureCallback<V>() {
                        @Override
                        public void onSuccess(V value) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 24 18:27:19 GMT 2023
    - 3.9K bytes
    - Viewed (1)
  5. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    -		     : __builtin_strcspn (s, reject))))))		      \
    -      : __builtin_strcspn (s, reject)); })
    -#  else
    -#   define strcspn(s, reject) \
    -  __extension__								      \
    -  ({ char __r0, __r1, __r2;						      \
    -     (__builtin_constant_p (reject) && __string2_1bptr_p (reject)	      \
    -      ? ((__r0 = ((const char *) (reject))[0], __r0 == '\0')		      \
    -	 ? strlen (s)							      \
    Others
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  6. guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

        assertEquals(8473225671271759044L, fingerprint("test".getBytes(UTF_8)));
        // 32 characters long
        assertEquals(7345148637025587076L, fingerprint(Strings.repeat("test", 8).getBytes(UTF_8)));
        // 256 characters long
        assertEquals(4904844928629814570L, fingerprint(Strings.repeat("test", 64).getBytes(UTF_8)));
      }
    
      public void testStringsConsistency() {
        for (String s : Arrays.asList("", "some", "test", "strings", "to", "try")) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 29 14:55:25 GMT 2021
    - 7.6K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/table/writer.go

    			if i == len(row)-1 {
    				_, _ = fmt.Fprint(c.writer, "\n")
    			} else {
    				padAmount := sep[i] - utf8.RuneCount([]byte(col.Value)) + 2
    				_, _ = fmt.Fprint(c.writer, strings.Repeat(" ", padAmount))
    			}
    		}
    	}
    }
    
    func max(x, y int) int {
    	if x < y {
    		return y
    	}
    	return x
    }
    
    func getMaxWidths(output [][]Cell) []int {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  8. 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"),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

          "FINE: Q10000 starting              : task",
          "FINE: Q10000 finished run in   0 µs: task",
        )
      }
    
      /** Schedule with a delay of 200 but repeat with a delay of 50. The repeat wins. */
      @Test fun executeRepeatedEarlierReplacesScheduledLater() {
        val task =
          object : Task("task") {
            val schedules = mutableListOf(200.µs)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 23K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt

    import kotlin.test.assertFailsWith
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.TestUtil.repeat
    import okhttp3.testing.Flaky
    import okio.BufferedSink
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Tag
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top