Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 863 for calculateId (0.16 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/MavenRepositoryDescriptor.java

                }
                ImmutableList<ResourcePattern> artifactResources = artifactResourcesBuilder.build();
    
                String id = calculateId(MavenResolver.class, metadataResources, artifactResources, metadataSources, hasher -> {});
    
                return new MavenRepositoryDescriptor(
                    id,
                    checkNotNull(name),
                    url,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/UrlRepositoryDescriptor.java

                this.authenticationSchemes = ImmutableList.copyOf(authenticationSchemes);
                return self();
            }
    
            protected String calculateId(
                Class<? extends ExternalResourceResolver> implementation,
                List<ResourcePattern> metadataResources,
                List<ResourcePattern> artifactResources,
                List<String> metadataSources,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/IvyRepositoryDescriptor.java

                ImmutableList<ResourcePattern> effectiveIvyResources = ivyResourcesBuilder.build();
                ImmutableList<ResourcePattern> effectiveArtifactResources = artifactResourcesBuilder.build();
    
                String id = calculateId(IvyResolver.class, effectiveIvyResources, effectiveArtifactResources, metadataSources, hasher -> hasher.putBoolean(m2Compatible));
    
                return new IvyRepositoryDescriptor(
                    id,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java

        @Nonnull
        Map<ChecksumAlgorithm, String> calculate(@Nonnull byte[] data, @Nonnull Collection<ChecksumAlgorithm> algorithms);
    
        /**
         * Calculates checksums for specified data.
         *
         * @param data        The content for which to calculate checksums, must not be {@code null}.
         * @param algorithms  The checksum algorithms to use, must not be {@code null}.
         * @return The calculated checksums, indexed by algorithms, never {@code null}.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Dec 21 08:05:10 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/model/CalculatedValue.java

         */
        Try<T> getValue() throws IllegalStateException;
    
        /**
         * Returns true if this value is already calculated.
         * Note that some other thread may currently be calculating the value even if this method returns false.
         */
        boolean isFinalized();
    
        /**
         * Calculates the value, if not already calculated. Collects any exception and does not rethrow them.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultFileContentCacheFactoryTest.groovy

            1 * fileSystemAccess.readRegularFileContentHash(file.absolutePath) >> Optional.empty()
            1 * calculator.calculate(file, false) >> 12
            0 * _
    
            when:
            result = cache.get(file)
    
            then:
            result == 12
            0 * _
        }
    
        def "reuses calculated value for file across cache instances"() {
            def file = new File("thing.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/model/CalculatedValueContainerTest.groovy

            e.message == 'Value for <thing> has not been calculated yet.'
    
            when:
            container.getValue().get()
    
            then:
            def e2 = thrown(IllegalStateException)
            e2.message == 'Value for <thing> has not been calculated yet.'
        }
    
        def "at most one thread calculates the value"() {
            // Don't use a spock mock as these apply their own synchronization
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 19 19:42:22 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/internal/model/CalculatedValueContainer.java

        private final DisplayName displayName;
        // Null when the value has been calculated and assigned to the result field. When not null the result has not been calculated
        // or is currently being calculated or has just been calculated. It is possible for both this field and the result field to be
        // non-null at the same time for a brief period just after the result has been calculated
        @Nullable
        private volatile CalculationState<T, S> calculationState;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py

      MinMax calibration calculates the global min and global max values.
    
      global min = min of given sample inputs
      global max = max of given sample inputs
      """
    
      def get_min_max_value(self) -> tuple[float, float]:
        """Calculates the global min and max values.
    
        Returns:
          (min_value, max_value): Min and max calculated using MinMax
        """
        return (
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  10. subprojects/core-api/src/main/java/org/gradle/api/provider/HasConfigurableValue.java

         */
        void finalizeValue();
    
        /**
         * Requests that the final value of this object be calculated on the next read of the value, if not already known.
         *
         * <p>Changes to the value of this object or to the source for the value are still permitted until the final value is calculated, after which time attempts to make changes will fail with an exception.</p>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 05 16:10:02 UTC 2021
    - 4.2K bytes
    - Viewed (0)
Back to top