Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 871 for 2$ (0.02 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          String[] suffix = {"h", "i"};
    
          String[] all = new String[2 + elements.length + 2];
          arraycopy(prefix, 0, all, 0, 2);
          arraycopy(elements, 0, all, 2, elements.length);
          arraycopy(suffix, 0, all, 2 + elements.length, 2);
    
          return ImmutableList.copyOf(all).subList(2, elements.length + 2);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      // additional CPU.
      const char* second_device_name =
          "/job:localhost/replica:0/task:0/device:CUSTOM:1";
      std::array<const char*, 2> second_underlying_devices{
          "/job:localhost/replica:0/task:0/device:CUSTOM:0",
          "/job:localhost/replica:0/task:0/device:CPU:2"};
      RegisterParallelDevice(context.get(), second_device_name,
                             second_underlying_devices, status.get());
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Aug 06 23:56:17 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/HashBiMapTest.java

          assertNull(bimap.put(2 * i, 2 * i + 1));
        }
        for (int i = 0; i < N; i++) {
          assertEquals(2 * i + 1, (int) bimap.get(2 * i));
        }
        for (int i = 0; i < N; i++) {
          assertEquals(2 * i, (int) inverse.get(2 * i + 1));
        }
        for (int i = 0; i < N; i++) {
          int oldValue = bimap.get(2 * i);
          assertEquals(2 * i + 1, (int) bimap.put(2 * i, oldValue - 2));
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        assertMapEquals(ImmutableBiMap.of("one", 1, "two", 2).inverse(), 1, "one", 2, "two");
        assertMapEquals(
            ImmutableBiMap.of("one", 1, "two", 2, "three", 3), "one", 1, "two", 2, "three", 3);
        assertMapEquals(
            ImmutableBiMap.of("one", 1, "two", 2, "three", 3).inverse(),
            1,
            "one",
            2,
            "two",
            3,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        map.put("bar", 3);
        assertEquals("{foo=[1], bar=[2, 3]}", map.toString());
        assertEquals("[foo=1, bar=2, bar=3]", map.entries().toString());
      }
    
      public void testLinkedPutOutOfOrder() {
        Multimap<String, Integer> map = create();
        map.put("bar", 1);
        map.put("foo", 2);
        map.put("bar", 3);
        assertEquals("{bar=[1, 3], foo=[2]}", map.toString());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractFilteredMapTest.java

        filtered.put("a", 1);
        filtered.put("b", 2);
        assertEquals(ImmutableMap.of("a", 1, "b", 2), filtered);
    
        assertThrows(
            IllegalArgumentException.class,
            () -> filtered.putAll(ImmutableMap.of("c", 3, "zzz", 4, "b", 5)));
    
        assertEquals(ImmutableMap.of("a", 1, "b", 2), filtered);
      }
    
      public void testFilteredKeysFilteredReflectsBackingChanges() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. internal/pubsub/pubsub_test.go

    	}
    	if err := ps.Subscribe(Mask(2), ch2, doneCh, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	ps.Lock()
    	defer ps.Unlock()
    
    	if len(ps.subs) != 2 {
    		t.Fatalf("expected 2 subscribers")
    	}
    	if want, got := int32(2), ps.NumSubscribers(Mask(1)); got != want {
    		t.Fatalf("want %d subscribers, got %d", want, got)
    	}
    	if want, got := int32(2), ps.NumSubscribers(Mask(2)); got != want {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

      }
    
      public void testOf() {
        assertMapEquals(ImmutableMap.of("one", 1), "one", 1);
        assertMapEquals(ImmutableMap.of("one", 1, "two", 2), "one", 1, "two", 2);
        assertMapEquals(
            ImmutableMap.of("one", 1, "two", 2, "three", 3), "one", 1, "two", 2, "three", 3);
        assertMapEquals(
            ImmutableMap.of("one", 1, "two", 2, "three", 3, "four", 4),
            "one",
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

                    new float[] {
                      (float) 2, (float) 3, (float) 2, (float) 3, (float) 4, (float) 2, (float) 3
                    },
                    new float[] {(float) 2, (float) 3, (float) 4}))
            .isEqualTo(2);
        assertThat(
                Floats.indexOf(
                    new float[] {
                      (float) 2, (float) 2, (float) 3, (float) 4, (float) 2, (float) 3, (float) 4
                    },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/FloatsTest.java

                    new float[] {
                      (float) 2, (float) 3, (float) 2, (float) 3, (float) 4, (float) 2, (float) 3
                    },
                    new float[] {(float) 2, (float) 3, (float) 4}))
            .isEqualTo(2);
        assertThat(
                Floats.indexOf(
                    new float[] {
                      (float) 2, (float) 2, (float) 3, (float) 4, (float) 2, (float) 3, (float) 4
                    },
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top