Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 864 for Calculate (0.34 sec)

  1. subprojects/core/src/main/java/org/gradle/util/internal/RelativePathUtil.java

    import org.gradle.internal.UncheckedException;
    
    import java.io.File;
    
    public class RelativePathUtil {
        /**
         * Returns a relative path from 'from' to 'to'
         *
         * @param from where to calculate from
         * @param to where to calculate to
         * @return The relative path
         */
        public static String relativePath(File from, File to) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:08 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  2. pkg/kubelet/server/metrics/metrics.go

    	// VolumeStatCalDuration tracks the duration in seconds to calculate volume stats.
    	// this metric is mainly for comparison between fsquota monitoring and `du` for disk usage.
    	VolumeStatCalDuration = metrics.NewHistogramVec(
    		&metrics.HistogramOpts{
    			Subsystem:      kubeletSubsystem,
    			Name:           "volume_metric_collection_duration_seconds",
    			Help:           "Duration in seconds to calculate volume stats",
    			Buckets:        metrics.DefBuckets,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 19 14:33:37 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/file/TaskFileVarFactory.java

        /**
         * Creates a {@link FileCollection} that represents some task input that is calculated from one or more other file collections.
         *
         * <p>The implementation applies caching to the result, so that the matching files are calculated during file snapshotting and the result cached in memory for when it is queried again, either during task action execution or in order to calculate some other task input value.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 07 03:00:19 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  4. 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)
  5. maven-core/src/test/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmServiceTest.java

        }
    
        @Test
        void calculateByte() throws IOException {
            Map<ChecksumAlgorithmService.ChecksumAlgorithm, String> checksums = service.calculate(
                    "test".getBytes(StandardCharsets.UTF_8), service.select(Arrays.asList("SHA-1", "MD5")));
            assertNotNull(checksums);
            assertEquals(2, checksums.size());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Dec 21 08:05:10 UTC 2023
    - 4.2K 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. 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)
  9. 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)
  10. subprojects/core/src/main/java/org/gradle/util/RelativePathUtil.java

        }
    
        public RelativePathUtil() {
            logDeprecation();
        }
    
        /**
         * Returns a relative path from 'from' to 'to'
         *
         * @param from where to calculate from
         * @param to where to calculate to
         * @return The relative path
         */
        public static String relativePath(File from, File to) {
            logDeprecation();
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 07 08:48:40 UTC 2022
    - 1.8K bytes
    - Viewed (0)
Back to top