Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for deduplication (0.07 sec)

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

      }
    
      public void testCreation_oneDuplicate() {
        // now we'll get the varargs overload
        @SuppressWarnings("DistinctVarargsChecker") // deliberately testing deduplication
        ImmutableSet<String> set =
            ImmutableSet.of("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "a");
        assertEquals(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java

     *
     * <p>The analyzer processes POM files recursively, tracking string occurrences and their locations within the POM structure.
     * It can identify areas where string deduplication could provide significant memory savings.</p>
     *
     * <p>Usage example:</p>
     * <pre>
     * PomMemoryAnalyzer analyzer = new PomMemoryAnalyzer();
     * Model model = reader.read(Files.newInputStream(pomPath));
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          return ImmutableSet.copyOf(elements);
        }
      }
    
      public static class DegeneratedImmutableSetGenerator extends TestStringSetGenerator {
        @SuppressWarnings("DistinctVarargsChecker") // deliberately testing deduplication
        @Override
        protected Set<String> create(String[] elements) {
          return ImmutableSet.of(elements[0], elements[0]);
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 08 18:35:13 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          this.elements = (E[]) new Object[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
          this.counts = new int[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
        }
    
        /** Check if we need to do deduplication and coalescing, and if so, do it. */
        private void maintenance() {
          if (length == elements.length) {
            dedupAndCoalesce(true);
          } else if (forceCopyElements) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 35.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/extra-models.md

    ///
    
    ## Reduce duplication { #reduce-duplication }
    
    Reducing code duplication is one of the core ideas in **FastAPI**.
    
    As code duplication increments the chances of bugs, security issues, code desynchronization issues (when you update in one place but not in the others), etc.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MapMakerTest.java

        }
    
        @CanIgnoreReturnValue // Sure, why not?
        @Override
        public T apply(T key) {
          awaitUninterruptibly(delayLatch);
          return key;
        }
      }
    
      /*
       * TODO(cpovirk): eliminate duplication between these tests and those in LegacyMapMakerTests and
       * anywhere else
       */
    
      public void testInitialCapacity_negative() {
        MapMaker maker = new MapMaker();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java

        inverseFeatures.remove(CollectionFeature.KNOWN_ORDER);
        inverseFeatures.add(MapFeature.REJECTS_DUPLICATES_AT_CREATION);
    
        return inverseFeatures;
      }
    
      // TODO(lowasser): can we eliminate the duplication from MapTestSuiteBuilder here?
    
      private static Set<Feature<?>> computeValuesSetFeatures(Set<Feature<?>> mapFeatures) {
        Set<Feature<?>> valuesCollectionFeatures = computeCommonDerivedCollectionFeatures(mapFeatures);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeStrategy.java

    import static eu.maveniverse.domtrip.maven.MavenPomElements.Elements.PARENT;
    
    /**
     * Abstract base class for upgrade strategies that provides common functionality
     * and reduces code duplication across strategy implementations.
     *
     * <p>Strategies work with domtrip Documents for perfect formatting preservation.
     * Subclasses can create domtrip Editors from Documents as needed:
     * <pre>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/TestUtils.java

    import static org.mockito.Mockito.doAnswer;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.when;
    
    /**
     * Utility class for creating test fixtures and reducing code duplication in tests.
     */
    public final class TestUtils {
    
        private TestUtils() {
            // Utility class
        }
    
        /**
         * Creates a mock UpgradeContext with default settings.
         *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/MoreObjects.java

         * again and get a more complete representation of the same object; but properties cannot be
         * removed, so this only allows limited reuse of the helper instance. The helper allows
         * duplication of properties (multiple name/value pairs with the same name can be added).
         */
        @Override
        public String toString() {
          // create a copy to keep it consistent in case value changes
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 16.1K bytes
    - Viewed (0)
Back to top