Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 752 for map1 (0.07 sec)

  1. src/runtime/pprof/protomem_test.go

    			Location: []*profile.Location{
    				{ID: 1, Mapping: map1, Address: addr1},
    				{ID: 2, Mapping: map2, Address: addr2},
    			},
    			NumLabel: map[string][]int64{"bytes": {1024}},
    		},
    		{
    			Value: []int64{1, 829411, 1, 829411},
    			Location: []*profile.Location{
    				{ID: 3, Mapping: map2, Address: addr2 + 1},
    				{ID: 4, Mapping: map2, Address: addr2 + 2},
    			},
    			NumLabel: map[string][]int64{"bytes": {512 * 1024}},
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 14:38:45 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTest.java

        TreeMap<Integer, Integer> map = Maps.newTreeMap(SOME_COMPARATOR);
        assertEquals(Collections.emptyMap(), map);
        assertSame(SOME_COMPARATOR, map.comparator());
      }
    
      public void testTreeMapWithInitialMap() {
        SortedMap<Integer, Integer> map = Maps.newTreeMap();
        map.put(5, 10);
        map.put(3, 20);
        map.put(1, 30);
        TreeMap<Integer, Integer> copy = Maps.newTreeMap(map);
        assertEquals(copy, map);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 67.1K bytes
    - Viewed (0)
  3. src/expvar/expvar_test.go

    	}
    }
    
    func TestHandler(t *testing.T) {
    	RemoveAll()
    	m := NewMap("map1")
    	m.Add("a", 1)
    	m.Add("z", 2)
    	m2 := NewMap("map2")
    	for i := 0; i < 9; i++ {
    		m2.Add(strconv.Itoa(i), int64(i))
    	}
    	rr := httptest.NewRecorder()
    	rr.Body = new(bytes.Buffer)
    	expvarHandler(rr, nil)
    	want := `{
    "map1": {"a": 1, "z": 2},
    "map2": {"0": 0, "1": 1, "2": 2, "3": 3, "4": 4, "5": 5, "6": 6, "7": 7, "8": 8}
    }
    `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

                }
            };
        }
    
        public static <K, V> Map<K, V> addMaps(Map<K, V> map1, Map<K, V> map2) {
            HashMap<K, V> map = new HashMap<K, V>();
            map.putAll(map1);
            map.putAll(map2);
            return map;
        }
    
        public static void addToMap(Map<String, String> dest, Map<?, ?> src) {
            for (Map.Entry<?, ?> entry : src.entrySet()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

                }
            };
        }
    
        public static <K, V> Map<K, V> addMaps(Map<K, V> map1, Map<K, V> map2) {
            HashMap<K, V> map = new HashMap<K, V>();
            map.putAll(map1);
            map.putAll(map2);
            return map;
        }
    
        public static void addToMap(Map<String, String> dest, Map<?, ?> src) {
            for (Map.Entry<?, ?> entry : src.entrySet()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

    // the quantized function using the attr_map attribute. In the quantized
    // function, this map (map1) is in {attr_name_1: attr_identifier} format; and in
    // the float function, this map (map2) is in {attr_identifier: attr_name_2}
    // format. Where, the attribute identifiers should match between two maps,
    // attr_name_1 is the name of the of the attribute needs to be set in the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Maps.java

          implements MapDifference<K, V> {
        final Map<K, V> onlyOnLeft;
        final Map<K, V> onlyOnRight;
        final Map<K, V> onBoth;
        final Map<K, ValueDifference<V>> differences;
    
        MapDifferenceImpl(
            Map<K, V> onlyOnLeft,
            Map<K, V> onlyOnRight,
            Map<K, V> onBoth,
            Map<K, ValueDifference<V>> differences) {
          this.onlyOnLeft = unmodifiableMap(onlyOnLeft);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 165.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Maps.java

          implements MapDifference<K, V> {
        final Map<K, V> onlyOnLeft;
        final Map<K, V> onlyOnRight;
        final Map<K, V> onBoth;
        final Map<K, ValueDifference<V>> differences;
    
        MapDifferenceImpl(
            Map<K, V> onlyOnLeft,
            Map<K, V> onlyOnRight,
            Map<K, V> onBoth,
            Map<K, ValueDifference<V>> differences) {
          this.onlyOnLeft = unmodifiableMap(onlyOnLeft);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 159.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    // == cannot be used to check for equivalence, and thus we cannot
    // simply use a Go map.
    //
    // Just as with map[K]V, a nil *Map is a valid empty map.
    //
    // Not thread-safe.
    type Map struct {
    	hasher Hasher             // shared by many Maps
    	table  map[uint32][]entry // maps hash to bucket; entry.key==nil means unused
    	length int                // number of map entries
    }
    
    // entry is an entry (key/value association) in a hash bucket.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  10. src/runtime/map.go

    	dst.nevacuate = 0
    	// flags do not need to be copied here, just like a new map has no flags.
    
    	if src.count == 0 {
    		return dst
    	}
    
    	if src.flags&hashWriting != 0 {
    		fatal("concurrent map clone and map write")
    	}
    
    	if src.B == 0 && !(t.IndirectKey() && t.NeedKeyUpdate()) && !t.IndirectElem() {
    		// Quick copy for small maps.
    		dst.buckets = newobject(t.Bucket)
    		dst.count = src.count
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
Back to top