Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 676 for calculateId (0.45 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/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)
  8. 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)
  9. pkg/scheduler/framework/plugins/noderesources/balanced_allocation.go

    	}
    
    	// ba.score favors nodes with balanced resource usage rate.
    	// It calculates the standard deviation for those resources and prioritizes the node based on how close the usage of those resources is to each other.
    	// Detail: score = (1 - std) * MaxNodeScore, where std is calculated by the root square of Σ((fraction(i)-mean)^2)/len(resources)
    	// The algorithm is partly inspired by:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/configurations/ResolutionResultProvider.java

    /**
     * Some value that is calculated as part of dependency resolution, but which may have a partial or different value
     * when the execution graph is calculated.
     * @param <T>
     */
    public interface ResolutionResultProvider<T> {
    
        /**
         * Returns the value available at execution graph calculation time. Note that the value may change between when the execution graph is calculated and
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Jan 21 03:08:51 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top