Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for dup3 (0.21 sec)

  1. android/guava-tests/test/com/google/common/collect/SortedListsTest.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class SortedListsTest extends TestCase {
      private static final ImmutableList<Integer> LIST_WITH_DUPS =
          ImmutableList.of(1, 1, 2, 4, 4, 4, 8);
    
      private static final ImmutableList<Integer> LIST_WITHOUT_DUPS = ImmutableList.of(1, 2, 4, 8);
    
      void assertModelAgrees(
          List<Integer> list,
          Integer key,
          int answer,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SortedListsTest.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class SortedListsTest extends TestCase {
      private static final ImmutableList<Integer> LIST_WITH_DUPS =
          ImmutableList.of(1, 1, 2, 4, 4, 4, 8);
    
      private static final ImmutableList<Integer> LIST_WITHOUT_DUPS = ImmutableList.of(1, 2, 4, 8);
    
      void assertModelAgrees(
          List<Integer> list,
          Integer key,
          int answer,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableMap.java

          Set<K> seen = new HashSet<>();
          BitSet dups = new BitSet(); // slots that are overridden by a later duplicate key
          for (int i = size - 1; i >= 0; i--) {
            if (!seen.add(entries[i].getKey())) {
              dups.set(i);
            }
          }
          if (dups.isEmpty()) {
            return entries;
          }
          @SuppressWarnings({"rawtypes", "unchecked"})
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 44.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableMap.java

          Set<Object> seenKeys = new HashSet<>();
          BitSet dups = new BitSet(); // slots that are overridden by a later duplicate key
          for (int i = size - 1; i >= 0; i--) {
            Object key = requireNonNull(localAlternatingKeysAndValues[2 * i]);
            if (!seenKeys.add(key)) {
              dups.set(i);
            }
          }
          if (dups.isEmpty()) {
            return localAlternatingKeysAndValues;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 41.4K bytes
    - Viewed (0)
  5. common/Makefile.common.mk

    lint-markdown:
    	@${FINDFILES} -name '*.md' -print0 | ${XARGS} mdl --ignore-front-matter --style common/config/mdl.rb
    
    lint-links:
    	@${FINDFILES} -name '*.md' -print0 | ${XARGS} awesome_bot --skip-save-results --allow_ssl --allow-timeout --allow-dupe --allow-redirect --white-list ${MARKDOWN_LINT_ALLOWLIST}
    
    lint-sass:
    	@${FINDFILES} -name '*.scss' -print0 | ${XARGS} sass-lint -c common/config/sass-lint.yml --verbose
    
    lint-typescript:
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Mar 02 20:07:36 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  6. src/cmd/api/main_test.go

    	f := strings.Join(w.scope, ", ") + ", " + fmt.Sprintf(format, args...)
    	if strings.Contains(f, "\n") {
    		panic("feature contains newlines: " + f)
    	}
    
    	if _, dup := w.features[f]; dup {
    		panic("duplicate feature inserted: " + f)
    	}
    	w.features[f] = true
    
    	if verbose {
    		log.Printf("feature: %s", f)
    	}
    }
    
    func needApproval(filename string) bool {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        try {
          ImmutableBiMap.copyOf(map);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected.getMessage()).containsMatch("1|2");
          // We don't specify which of the two dups should be reported.
        }
      }
    
      public void testToImmutableBiMap() {
        Collector<Entry<String, Integer>, ?, ImmutableBiMap<String, Integer>> collector =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java

        try {
          ImmutableBiMap.copyOf(map);
          fail();
        } catch (IllegalArgumentException expected) {
          assertThat(expected.getMessage()).containsMatch("1|2");
          // We don't specify which of the two dups should be reported.
        }
      }
    
      // TODO(b/172823566): Use mainline testToImmutableBiMap once CollectorTester is usable to java7.
      public void testToImmutableBiMap_java7_combine() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  9. cmd/metacache-entries.go

    			// of this fashion such as
    			//  - foo-1
    			//  - foo-1/
    			// we should avoid this situation by making sure that
    			// we compare the `foo-1/` after path.Clean() to
    			// de-dup the entries.
    			if path.Clean(best.name) == path.Clean(other.name) {
    				toMerge = append(toMerge, otherIdx)
    				continue
    			}
    			if best.name > other.name {
    				toMerge = toMerge[:0]
    				best = other
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  10. cmd/xl-storage-format-v2.go

    	}
    
    	// Sanity check. Enable if duplicates show up.
    	if false {
    		found := make(map[[16]byte]struct{})
    		for _, ver := range merged {
    			if _, ok := found[ver.header.VersionID]; ok {
    				panic("found dupe")
    			}
    			found[ver.header.VersionID] = struct{}{}
    		}
    	}
    	return merged
    }
    
    type xlMetaBuf []byte
    
    // ToFileInfo converts xlMetaV2 into a common FileInfo datastructure
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
Back to top