Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for deterministic (0.2 sec)

  1. cmd/xl-storage-format-utils.go

    		// PR #11758 used DataDir, preserve it
    		// for users who might have used master
    		// branch
    		fi.Data = inData.find(fi.DataDir)
    	}
    	return fi, nil
    }
    
    // hashDeterministicString will return a deterministic hash for the map values.
    // Trivial collisions are avoided, but this is by no means a strong hash.
    func hashDeterministicString(m map[string]string) uint64 {
    	// Seed (random)
    	crc := uint64(0xc2b40bbac11a7295)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  2. container-tests/src/test/java/okhttp3/containers/BasicLoomTest.kt

          OkHttpClient.Builder()
            .trustMockServer()
            .dispatcher(Dispatcher(newVirtualThreadPerTaskExecutor()))
            .build()
    
        executor = newVirtualThreadPerTaskExecutor()
    
        // Capture non-deterministic but probable sysout warnings of pinned threads
        // https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html
        System.setOut(PrintStream(capturedOut))
      }
    
      @AfterEach
      fun checkForPinning() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 11:15:46 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/HashMultimapTest.java

        suite.addTestSuite(HashMultimapTest.class);
        return suite;
      }
    
      /*
       * The behavior of toString() is tested by TreeMultimap, which shares a
       * lot of code with HashMultimap and has deterministic iteration order.
       */
      public void testCreate() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/HashMultisetTest.java

        assertSame(copy, copy.iterator().next().member);
      }
    
      /*
       * The behavior of toString() and iteration is tested by LinkedHashMultiset,
       * which shares a lot of code with HashMultiset and has deterministic
       * iteration order.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/HashMultimapTest.java

        suite.addTestSuite(HashMultimapTest.class);
        return suite;
      }
    
      /*
       * The behavior of toString() is tested by TreeMultimap, which shares a
       * lot of code with HashMultimap and has deterministic iteration order.
       */
      public void testCreate() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
        multimap.put("bar", 2);
        multimap.put("foo", 3);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/GraphMutationTest.java

        testGraphMutation(GraphBuilder.undirected());
      }
    
      private static void testGraphMutation(GraphBuilder<? super Integer> graphBuilder) {
        Random gen = new Random(42); // Fixed seed so test results are deterministic.
    
        for (int trial = 0; trial < NUM_TRIALS; ++trial) {
          MutableGraph<Integer> graph = graphBuilder.allowsSelfLoops(true).build();
    
          assertThat(graph.nodes()).isEmpty();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Aug 18 16:17:46 GMT 2017
    - 4.2K bytes
    - Viewed (0)
  7. src/bytes/compare_test.go

    	if !testing.Short() {
    		lengths = append(lengths, 65535, 65536, 65537, 99999)
    	}
    
    	n := lengths[len(lengths)-1]
    	a := make([]byte, n+1)
    	b := make([]byte, n+1)
    	for _, len := range lengths {
    		// randomish but deterministic data. No 0 or 255.
    		for i := 0; i < len; i++ {
    			a[i] = byte(1 + 31*i%254)
    			b[i] = byte(1 + 31*i%254)
    		}
    		// data past the end is different
    		for i := len; i <= n; i++ {
    			a[i] = 8
    			b[i] = 9
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 13 23:11:42 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  8. internal/dsync/locked_rand.go

    func (r *lockedRandSource) Int63() (n int64) {
    	r.lk.Lock()
    	n = r.src.Int63()
    	r.lk.Unlock()
    	return
    }
    
    // Seed uses the provided seed value to initialize the generator to a
    // deterministic state.
    func (r *lockedRandSource) Seed(seed int64) {
    	r.lk.Lock()
    	r.src.Seed(seed)
    	r.lk.Unlock()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Oct 18 15:39:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Queues.java

       *   while (i.hasNext()) {
       *     foo(i.next());
       *   }
       * }
       * }</pre>
       *
       * <p>Failure to follow this advice may result in non-deterministic behavior.
       *
       * <p>The returned queue will be serializable if the specified queue is serializable.
       *
       * @param queue the queue to be wrapped in a synchronized view
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 16K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

    import kotlin.concurrent.withLock
    import okhttp3.OkHttpClient
    import okhttp3.TestUtil.threadFactory
    
    /**
     * Runs a [TaskRunner] in a controlled environment so that everything is sequential and
     * deterministic.
     *
     * This class ensures that at most one thread is running at a time. This is initially the JUnit test
     * thread, which yields its execution privilege while calling [runTasks], [runNextTask], or
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top