Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 149 for isIndex (0.13 sec)

  1. android/guava/src/com/google/common/collect/Sets.java

        final ImmutableMap<E, Integer> index = Maps.indexMap(set);
        checkNonnegative(size, "size");
        checkArgument(size <= index.size(), "size (%s) must be <= set.size() (%s)", size, index.size());
        if (size == 0) {
          return ImmutableSet.<Set<E>>of(ImmutableSet.<E>of());
        } else if (size == index.size()) {
          return ImmutableSet.<Set<E>>of(index.keySet());
        }
        return new AbstractSet<Set<E>>() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  2. src/strings/strings_test.go

    		b.Fatalf("wrong index: expected 17, got=%d", got)
    	}
    	for i := 0; i < b.N; i++ {
    		IndexRune(benchmarkString, 'v')
    	}
    }
    
    func BenchmarkIndex(b *testing.B) {
    	if got := Index(benchmarkString, "v"); got != 17 {
    		b.Fatalf("wrong index: expected 17, got=%d", got)
    	}
    	for i := 0; i < b.N; i++ {
    		Index(benchmarkString, "v")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/parser.go

    			p.xnest++
    			t := new(SliceExpr)
    			t.pos = pos
    			t.X = x
    			t.Index[0] = i
    			if p.tok != _Colon && p.tok != _Rbrack {
    				// x[i:j...
    				t.Index[1] = p.expr()
    			}
    			if p.tok == _Colon {
    				t.Full = true
    				// x[i:j:...]
    				if t.Index[1] == nil {
    					p.error("middle index required in 3-index slice")
    					t.Index[1] = p.badExpr()
    				}
    				p.next()
    				if p.tok != _Rbrack {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       */
      fun queryParameterName(index: Int): String {
        if (queryNamesAndValues == null) throw IndexOutOfBoundsException()
        return queryNamesAndValues[index * 2]!!
      }
    
      /**
       * Returns the value of the query parameter at `index`. For example this returns `"apple"` for
       * `queryParameterName(0)` on `http://host/?a=apple&b=banana`. This throws if `index` is not less
       * than the [query size][querySize].
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Sets.java

        final ImmutableMap<E, Integer> index = Maps.indexMap(set);
        checkNonnegative(size, "size");
        checkArgument(size <= index.size(), "size (%s) must be <= set.size() (%s)", size, index.size());
        if (size == 0) {
          return ImmutableSet.<Set<E>>of(ImmutableSet.<E>of());
        } else if (size == index.size()) {
          return ImmutableSet.<Set<E>>of(index.keySet());
        }
        return new AbstractSet<Set<E>>() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			setMaxElements:   4,
    			expectedSetCost:  7,
    		},
    		{
    			name:             "index of array with numbers",
    			schemaGenerator:  genArrayWithRule("number", "self[1] == 0.0"),
    			expectedCalcCost: 2,
    			setMaxElements:   5000,
    			expectedSetCost:  2,
    		},
    		{
    			name:             "index of array with strings",
    			schemaGenerator:  genArrayWithRule("string", "self[1] == self[1]"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  7. tensorflow/c/c_api.h

    // Represents a specific input of an operation.
    typedef struct TF_Input {
      TF_Operation* oper;
      int index;  // The index of the input within oper.
    } TF_Input;
    
    // Represents a specific output of an operation.
    typedef struct TF_Output {
      TF_Operation* oper;
      int index;  // The index of the output within oper.
    } TF_Output;
    
    // TF_Function is a grouping of operations with defined inputs and outputs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  8. cmd/bucket-handlers.go

    	bucketsToBeUpdatedSlice := bucketsToBeUpdated.ToSlice()
    	g := errgroup.WithNErrs(len(bucketsToBeUpdatedSlice)).WithConcurrency(50)
    
    	for index := range bucketsToBeUpdatedSlice {
    		index := index
    		g.Go(func() error {
    			return globalDNSConfig.Put(bucketsToBeUpdatedSlice[index])
    		}, index)
    	}
    
    	ctx := GlobalContext
    	for _, err := range g.Wait() {
    		if err != nil {
    			dnsLogIf(ctx, err)
    			return
    		}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

                String prefix2,
                ModelBuilderRequest request) {
            Severity errOn31 = getSeverity(request, ModelBuilderRequest.VALIDATION_LEVEL_MAVEN_3_1);
    
            Map<String, Plugin> index = new HashMap<>();
    
            for (Plugin plugin : plugins) {
                if (plugin.getGroupId() == null
                        || (plugin.getGroupId() != null
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jun 10 11:04:53 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        SmallVector<DenseIntElementsAttr, 4> indices;
        indices.reserve(op.getN());
        for (auto it : llvm::zip(op.getIndices(), op.getData())) {
          Value index = std::get<0>(it);
          Value data = std::get<1>(it);
    
          DenseIntElementsAttr index_attr;
          if (!matchPattern(index, m_Constant(&index_attr))) return failure();
          indices.push_back(index_attr);
    
          RankedTensorType data_ty =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
Back to top