Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 435 for Calculate (0.17 sec)

  1. subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultFileContentCacheFactoryTest.groovy

            and:
            interaction {
                snapshotRegularFile(file)
            }
            1 * calculator.calculate(file, true) >> 12
            0 * _
    
            when:
            result = cache.get(file)
    
            then:
            result == 12
            0 * _
        }
    
        def "calculates entry value for directory when not seen before and reuses result"() {
            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)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/model/CalculatedValue.java

         * Returns the value, failing if it has not been calculated.
         * Does not calculate the value on demand and does not block if the value is currently being calculated.
         *
         * <p>Rethrows any exception that happened while calculating the value</p>
         */
        T get() throws IllegalStateException;
    
        /**
         * Returns the result of calculating the value, failing if it has not been calculated.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/calibration_parameters_test.cc

      EXPECT_FLOAT_EQ(bin_width, 0.125);
      int32_t actual_num_bins =
          CalculateActualNumBins(/*min_value=*/0.0, /*max_value=*/25.0, bin_width);
      EXPECT_EQ(actual_num_bins, 200);
    
      // Calculate the bin width with the actual num bins.
      float raw_bin_width = 25.0 / actual_num_bins;
      EXPECT_FLOAT_EQ(bin_width, raw_bin_width);
    }
    
    TEST(CalibrationParametersTest, CalculateBinWidthLargerThanOne) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 05 09:09:34 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmService.java

            }
        }
    
        @Override
        public Map<ChecksumAlgorithm, String> calculate(byte[] data, Collection<ChecksumAlgorithm> algorithms) {
            nonNull(data, "data");
            nonNull(algorithms, "algorithms");
            try {
                return calculate(new ByteArrayInputStream(data), algorithms);
            } catch (IOException e) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/initialization/buildsrc/BuildSrcBuildOperationsIntegrationTest.groovy

            treeTaskGraphOps[0].displayName == "Calculate build tree task graph"
            treeTaskGraphOps[0].parentId == buildSrcOps[0].id
            treeTaskGraphOps[1].displayName == "Calculate build tree task graph"
            treeTaskGraphOps[1].parentId == root.id
    
            def taskGraphOps = ops.all(CalculateTaskGraphBuildOperationType)
            taskGraphOps.size() == 2
            taskGraphOps[0].displayName == "Calculate task graph (:buildSrc)"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ConfigurationBuildDependenciesIntegrationTest.groovy

            then:
            executed ":jar", ":lib", ":child:jar", ":child:lib", ":useCompileConfiguration"
    
            where:
            fluid << [true, false]
        }
    
        def "reports failure to calculate build dependencies when artifact build dependencies cannot be queried - fluid: #fluid"() {
            makeFluid(fluid)
            buildFile << """
                dependencies {
                    compile project(':child')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 20:50:18 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. cmd/http-tracer.go

    			inputBytes += len(k) + len(v)
    		}
    
    		// Calculate node name
    		nodeName := r.Host
    		if globalIsDistErasure {
    			nodeName = globalLocalNodeName
    		}
    		if host, port, err := net.SplitHostPort(nodeName); err == nil {
    			if port == "443" || port == "80" {
    				nodeName = host
    			}
    		}
    
    		// Calculate reqPath
    		reqPath := r.URL.RawPath
    		if reqPath == "" {
    			reqPath = r.URL.Path
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 03 15:45:54 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. cmd/update-notifier.go

    	line2InColor := fmt.Sprintf(msgLine2Fmt, color.CyanBold(updateString))
    
    	// calculate the rectangular box size.
    	maxContentWidth := max(line1Length, line2Length)
    
    	// termWidth is set to a default one to use when we are
    	// not able to calculate terminal width via OS syscalls
    	termWidth := 25
    	if width, err := pb.GetTerminalWidth(); err == nil {
    		termWidth = width
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/isolation/IsolatableFactory.java

     *
     * <ul>
     * <li>Create isolated instances from that state to pass to user code, see {@link Isolatable} for more details.</li>
     * <li>Calculate a hash of the state. If you only need to calculate hashes of object graphs, then consider using {@link org.gradle.internal.snapshot.ValueSnapshotter} instead,
     * as that does the same thing but more efficiently.</li>
     * </ul>
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/initialization/ClassLoaderRegistry.java

         * Returns a copy of the filter spec for the Gradle API Classloader.  This is expensive to calculate, so we create it once in
         * the build process and provide it to the worker.
         */
        FilteringClassLoader.Spec getGradleApiFilterSpec();
    
        /**
         * Returns the extension classloader spec for use in worker processes.  This is expensive to calculate, so we create it once in
         * the build process and provide it to the worker.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top