- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for frequency (0.11 sec)
-
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
List<@Nullable String> list = newArrayList("a", null, "b", null, "a", null); assertEquals(2, frequency(list.iterator(), "a")); assertEquals(1, frequency(list.iterator(), "b")); assertEquals(0, frequency(list.iterator(), "c")); assertEquals(0, frequency(list.iterator(), 4.2)); assertEquals(3, frequency(list.iterator(), null)); } @GwtIncompatible // slow (~4s)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
List<@Nullable String> list = newArrayList("a", null, "b", null, "a", null); assertEquals(2, frequency(list.iterator(), "a")); assertEquals(1, frequency(list.iterator(), "b")); assertEquals(0, frequency(list.iterator(), "c")); assertEquals(0, frequency(list.iterator(), 4.2)); assertEquals(3, frequency(list.iterator(), null)); } @GwtIncompatible // slow (~4s)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0) -
src/bufio/bufio_test.go
func createTestInput(n int) []byte { input := make([]byte, n) for i := range input { // 101 and 251 are arbitrary prime numbers. // The idea is to create an input sequence // which doesn't repeat too frequently. input[i] = byte(i % 251) if i%101 == 0 { input[i] ^= byte(i / 101) } } return input } func TestReaderWriteTo(t *testing.T) { input := createTestInput(8192)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0) -
cmd/iam-store.go
groupSet.Add(k) return true }) return groupSet.ToSlice(), nil } // ListGroups - lists groups. Since this is not going to be a frequent // operation, we fetch this info from storage, and refresh the cache as well. func (store *IAMStoreSys) ListGroups(ctx context.Context) (res []string, err error) { cache := store.lock() defer store.unlock()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Oct 14 16:35:37 UTC 2024 - 83.2K bytes - Viewed (0)