Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,771 for keys2 (0.05 sec)

  1. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/DefaultDynamicCallProblemReportingTest.kt

            val key1 = Any()
            val key2 = Any()
    
            reporting.enterDynamicCall(entryPoint1)
            assertTrue(reporting.unreportedProblemInCurrentCall(key1))
            assertFalse(reporting.unreportedProblemInCurrentCall(key1))
            assertTrue(reporting.unreportedProblemInCurrentCall(key2))
            assertFalse(reporting.unreportedProblemInCurrentCall(key2))
    
            reporting.enterDynamicCall(entryPoint2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

       * by init(), which the constructor calls.
       */
    
      /** The keys of the entries in the map. */
      transient @Nullable Object[] keys;
    
      /** The values of the entries in the map. */
      transient int[] values;
    
      transient int size;
    
      transient int modCount;
    
      /**
       * The hashtable. Its values are indexes to the keys, values, and entries arrays.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  3. src/expvar/expvar.go

    	return b
    }
    
    // Init removes all keys from the map.
    func (v *Map) Init() *Map {
    	v.keysMu.Lock()
    	defer v.keysMu.Unlock()
    	v.keys = v.keys[:0]
    	v.m.Clear()
    	return v
    }
    
    // addKey updates the sorted list of keys in v.keys.
    func (v *Map) addKey(key string) {
    	v.keysMu.Lock()
    	defer v.keysMu.Unlock()
    	// Using insertion sort to place key into the already-sorted v.keys.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. pkg/kube/krt/filter.go

    	listFromIndex func() any
    	indexMatches  func(any) bool
    }
    
    func (f *filter) String() string {
    	attrs := []string{}
    	if !f.keys.IsNil() {
    		attrs = append(attrs, "keys="+f.keys.String())
    	}
    	if f.selectsNonEmpty != nil {
    		attrs = append(attrs, fmt.Sprintf("selectsNonEmpty=%v", f.selectsNonEmpty))
    	}
    	if f.selects != nil {
    		attrs = append(attrs, fmt.Sprintf("selects=%v", f.selects))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. pkg/kubelet/checkpointmanager/testing/util.go

    	mstore.Lock()
    	defer mstore.Unlock()
    	delete(mstore.mem, key)
    	return nil
    }
    
    // List returns all the keys from the store
    func (mstore *MemStore) List() ([]string, error) {
    	mstore.Lock()
    	defer mstore.Unlock()
    	keys := make([]string, 0)
    	for key := range mstore.mem {
    		keys = append(keys, key)
    	}
    	return keys, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 16 05:30:20 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/util/cache/lruexpirecache.go

    // might return "not found".
    //
    // Keys are returned ordered from least recently used to most recently used.
    func (c *LRUExpireCache) Keys() []interface{} {
    	c.lock.Lock()
    	defer c.lock.Unlock()
    
    	now := c.clock.Now()
    
    	val := make([]interface{}, 0, c.evictionList.Len())
    	for element := c.evictionList.Back(); element != nil; element = element.Prev() {
    		// Only return unexpired keys
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CrossBuildInMemoryCacheFactory.java

     * Note that this implementation should only be used to create global scoped services.
     * Note that this implementation currently retains strong references to keys and values during the whole lifetime of a build session.
     *
     * Uses a simple algorithm to collect unused values, by retaining strong references to all keys and values used during the current build session, and the previous build session.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset.py

                expected_input_keys is not None
                and set(repr_sample.keys()) != expected_input_keys
            ):
              raise KeyError(
                  'Invalid input keys for representative sample. The function'
                  f' expects input keys of: {set(expected_input_keys)}. Got:'
                  f' {set(repr_sample.keys())}. Please provide correct input keys'
                  ' for representative samples.'
              )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  9. 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()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Oct 07 15:07:38 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  10. src/internal/types/testdata/fixedbugs/issue61879.go

    	return k
    }
    
    func Foo[M ~map[InterfaceA[T]]V, T comparable, V any](m M) {
    	// DO SOMETHING HERE
    	return
    }
    
    func Bar() {
    	keys := make([]InterfaceA[int], 0, 10)
    	m := make(map[InterfaceA[int]]int)
    	for i := 0; i < 10; i++ {
    		keys = append(keys, NewInterfaceA[int](i))
    		m[keys[i]] = i
    	}
    
    	Foo(m) // panic here
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 19:42:56 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top