Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for choose (0.23 sec)

  1. cmd/erasure-server-pool.go

    	total := serverPools.TotalAvailable()
    	if total == 0 {
    		return -1
    	}
    	// choose when we reach this many
    	choose := rand.Uint64() % total
    	atTotal := uint64(0)
    	for _, pool := range serverPools {
    		atTotal += pool.Available
    		if atTotal > choose && pool.Available > 0 {
    			return pool.Index
    		}
    	}
    	// Should not happen, but print values just in case.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  2. configure.py

          environ_cp['TF_NEED_CLANG'] = str(choose_compiler(environ_cp))
          if environ_cp.get('TF_NEED_CLANG') == '1':
            clang_compiler_path = set_clang_compiler_path(environ_cp)
            clang_version = retrieve_clang_version(clang_compiler_path)
            disable_clang_offsetof_extension(clang_version)
        if is_windows():
          environ_cp['TF_NEED_CLANG'] = str(choose_compiler_Win(environ_cp))
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  3. android/guava/src/com/google/common/collect/Sets.java

       * iterated are the individual lists created, and these are not retained after iteration.
       *
       * @param sets the sets to choose elements from, in the order that the elements chosen from those
       *     sets should appear in the resulting lists
       * @param <B> any common base class shared by all axes (often just {@link Object})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterators.java

       * returned to the caller, although this is neither guaranteed to occur nor required to be
       * consistent. For example, this method <i>might</i> choose to pass through recognized
       * implementations of {@code PeekingIterator} when the behavior of the implementation is known to
       * meet the contract guaranteed by this method.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Futures.java

       * ListenableFuture<Integer> faultTolerantFuture = Futures.catchingAsync(
       *     fetchCounterFuture, FetchException.class, x -> immediateFuture(0), directExecutor());
       * }</pre>
       *
       * <p>The fallback can also choose to propagate the original exception when desired:
       *
       * <pre>{@code
       * ListenableFuture<Integer> fetchCounterFuture = ...;
       *
       * // Falling back to a zero counter only in case the exception was a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 59.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       */
      // TODO(fry): empirically optimize this
      static final int DRAIN_MAX = 16;
    
      // Fields
    
      /**
       * Mask value for indexing into segments. The upper bits of a key's hash code are used to choose
       * the segment.
       */
      final transient int segmentMask;
    
      /**
       * Shift value for indexing within segments. Helps prevent entries that end up in the same segment
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  7. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // filtered out and clients should only use the presence of the continue field to determine whether
      // more results are available. Servers may choose not to support the limit argument and will return
      // all of the available results. If limit is specified and the continue field is empty, clients may
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 53.3K bytes
    - Viewed (0)
  8. cmd/batch-handlers.go

    				Key:       entry.Name,
    				Size:      entry.Size,
    				ModTime:   entry.ModTime,
    				VersionID: entry.VersionID,
    				Content:   gr,
    				Headers:   make(http.Header),
    				Close: func() {
    					gr.Close()
    				},
    			}
    
    			opts, err := batchReplicationOpts(ctx, "", gr.ObjInfo)
    			if err != nil {
    				batchLogIf(ctx, err)
    				continue
    			}
    
    			for k, vals := range opts.Header() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(response2.body.source().readUtf8(3)).isEqualTo("JKL")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
        response1.close()
        response2.close()
      }
    
      @ParameterizedTest
      @ArgumentsSource(ProtocolParamProvider::class)
      fun connectionWindowUpdateAfterCanceling(
        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  10. tests/query_test.go

    	if !rows.Next() {
    		t.Errorf("Should have returned at least one row")
    	} else {
    		columns, _ := rows.Columns()
    		AssertEqual(t, columns, []string{"fake"})
    	}
    
    	rows.Close()
    }
    
    func TestSelectWithArrayInput(t *testing.T) {
    	DB.Save(&User{Name: "select_with_array", Age: 42})
    
    	var user User
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top