Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 362 for Keys (0.14 sec)

  1. internal/config/config_test.go

    	tests := []struct {
    		input          string
    		keys           []string
    		expectedFields map[string]struct{}
    	}{
    		// No keys present
    		{
    			input:          "",
    			keys:           []string{"comment"},
    			expectedFields: map[string]struct{}{},
    		},
    		// No keys requested for tokenizing
    		{
    			input:          `comment="Hi this is my comment ="`,
    			keys:           []string{},
    			expectedFields: map[string]struct{}{},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Aug 18 22:55:17 GMT 2022
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMultisetFloodingTest.java

            return ImmutableMultiset.copyOf(keys);
          }
        },
        COPY_OF_ITERATOR {
          @Override
          public ImmutableMultiset<Object> create(List<?> keys) {
            return ImmutableMultiset.copyOf(keys.iterator());
          }
        },
        BUILDER_ADD_ENTRY_BY_ENTRY {
          @Override
          public ImmutableMultiset<Object> create(List<?> keys) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  3. internal/store/batch_test.go

    	}
    	keys, items, err := batch.GetAll()
    	if err != nil {
    		t.Fatalf("unable to get the items from the batch; %v", err)
    	}
    	if len(items) != int(limit) {
    		t.Fatalf("Expected length of the batch items to be %v but got %v", limit, len(items))
    	}
    	if len(keys) != int(limit) {
    		t.Fatalf("Expected length of the batch keys to be %v but got %v", limit, len(items))
    	}
    	batchLen = batch.Len()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/CompactLinkedHashMapTest.java

        List<? extends Entry<?, ?>> entries = Lists.newArrayList(map.entrySet());
        List<Object> keys = Lists.newArrayList(map.keySet());
        List<Object> values = Lists.newArrayList(map.values());
        assertEquals(2 * entries.size(), alternatingKeysAndValues.length);
        assertEquals(2 * keys.size(), alternatingKeysAndValues.length);
        assertEquals(2 * values.size(), alternatingKeysAndValues.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 21 14:41:51 GMT 2020
    - 6.5K bytes
    - Viewed (0)
  5. internal/store/batch.go

    // Batch represents an ordered batch
    type Batch[K key, T any] struct {
    	keys  []K
    	items map[K]T
    	limit uint32
    
    	sync.Mutex
    }
    
    // Add adds the item to the batch
    func (b *Batch[K, T]) Add(key K, item T) error {
    	b.Lock()
    	defer b.Unlock()
    
    	if b.isFull() {
    		return ErrBatchFull
    	}
    
    	if _, ok := b.items[key]; !ok {
    		b.keys = append(b.keys, key)
    	}
    	b.items[key] = item
    
    	return nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/CacheLoader.java

      /**
       * Computes or retrieves the values corresponding to {@code keys}. This method is called by {@link
       * LoadingCache#getAll}.
       *
       * <p>If the returned map doesn't contain all requested {@code keys} then the entries it does
       * contain will be cached, but {@code getAll} will throw an exception. If the returned map
       * contains extra keys not present in {@code keys} then all returned entries will be cached, but
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/DocMapTest.java

            DocMap docMap = new DocMap(value);
            assertTrue(docMap.isEmpty());
            value.clear();
    
            List<String> keys = Arrays.asList("test_2", "test_0", "lang", "test_1");
            value.put(keys.get(0), true);
            value.put(keys.get(1), 1000);
            value.put(keys.get(2), "ja");
            value.put(keys.get(3), "str");
            docMap = new DocMap(value);
            assertFalse(docMap.isEmpty());
    
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

                            keys ->
                                path.create(
                                    Lists.transform(
                                        keys, key -> Maps.immutableEntry(key, new Object()))),
                            keys ->
                                path.create(
                                    Lists.transform(
                                        keys, key -> Maps.immutableEntry(new Object(), key))),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java

        this.keys = keys;
        this.values = values;
      }
    
      @Override
      public SampleElements<Entry<K, V>> samples() {
        return SampleElements.mapEntries(keys, values);
      }
    
      @Override
      public Set<Entry<K, V>> create(Object... elements) {
        Entry<K, V>[] entries = createArray(elements.length);
        System.arraycopy(elements, 0, entries, 0, elements.length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableMapFloodingTest.java

          public Map<Object, Object> create(List<?> keys) {
            return ImmutableMap.copyOf(
                Lists.transform(keys, k -> Maps.immutableEntry(k, "dummy value")));
          }
        },
        BUILDER_PUT_ONE_BY_ONE {
          @Override
          public Map<Object, Object> create(List<?> keys) {
            ImmutableMap.Builder<Object, Object> builder = ImmutableMap.builder();
            for (Object k : keys) {
              builder.put(k, "dummy value");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 3.4K bytes
    - Viewed (0)
Back to top