Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for countFiles (0.71 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go

    			continue
    		}
    
    		if end.Before(thisInstant) {
    			expiry := end.Format(dateFormat)
    			countFiles[expiry] = append(countFiles[expiry], f)
    			if earliest[expiry].IsZero() || earliest[expiry].After(begin) {
    				earliest[expiry] = begin
    			}
    		}
    	}
    	for expiry, files := range countFiles {
    		if notNeeded(expiry, *todo) {
    			u.logger.Printf("Files for %s not needed, deleting %v", expiry, files)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/upload/findwork.go

    			case expiry.After(u.startTime):
    				u.logger.Printf("Skipping count file %s: still active", fi.Name())
    			default:
    				u.logger.Printf("Collecting count file %s", fi.Name())
    				ans.countfiles = append(ans.countfiles, fname)
    			}
    		} else if strings.HasPrefix(fi.Name(), "local.") {
    			// skip
    		} else if strings.HasSuffix(fi.Name(), ".json") && mode == "on" {
    			// Collect reports that are ready for upload.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ArchiveTestFixture.groovy

            this
        }
    
        String content(String relativePath) {
            List<String> files = filesByRelativePath.get(relativePath)
            assert files.size() == 1
            files.get(0)
        }
    
        Integer countFiles(String relativePath) {
            filesByRelativePath.get(relativePath).size()
        }
    
        def hasDirs(String... relativePaths) {
            assert dirs.sort() == relativePaths.collect { it + "/" }.sort()
            this
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/api/tasks/bundling/JarIntegrationTest.groovy

        }
    
        private def confirmDuplicateServicesPreserved() {
            def jar = new JarTestFixture(file('test.jar'))
    
            assert 2 == jar.countFiles('META-INF/services/org.gradle.Service')
            assert 1 == jar.countFiles('path/test.txt')
    
            jar.assertFileContent('test.txt', 'Content of first file')
            jar.hasService('org.gradle.Service', 'org.gradle.BetterServiceImpl')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl-tooling-builders/src/main/kotlin/org/gradle/kotlin/dsl/tooling/builders/EditorReportsBuilder.kt

    }
    
    
    internal
    fun File.readLinesRange() =
        countLines().let { count ->
            if (count == 0L) 0..0L
            else 1..count
        }
    
    
    private
    fun File.countLines(): Long =
        inputStream().buffered().use { input ->
            input.countLines()
        }
    
    
    private
    fun BufferedInputStream.countLines(): Long {
        val buffer = ByteArray(DEFAULT_BUFFER_SIZE)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:30:55 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. tests/error_translator_test.go

    		return
    	}
    
    	DB.Migrator().DropTable(&City{}, &Museum{})
    
    	if err = db.AutoMigrate(&City{}, &Museum{}); err != nil {
    		t.Fatalf("failed to migrate countries & cities tables, got error: %v", err)
    	}
    
    	city := City{Name: "Amsterdam"}
    
    	err = db.Create(&city).Error
    	if err != nil {
    		t.Fatalf("failed to create city: %v", err)
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jul 12 13:21:22 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. apache-maven/src/main/appended-resources/licenses/CDDL+GPLv2-with-classpath-exception.txt

    8. If the distribution and/or use of the Program is restricted in
    certain countries either by patents or by copyrighted interfaces, the
    original copyright holder who places the Program under this License may
    add an explicit geographical distribution limitation excluding those
    countries, so that distribution is permitted only in or among countries
    not thus excluded. In such case, this License incorporates the
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri May 17 19:14:22 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  8. pkg/proxy/iptables/proxier_test.go

    	expectedFilterRules := countRules(logger, utiliptables.TableFilter, iptablesData)
    
    	if nFilterRules != expectedFilterRules {
    		t.Fatalf("Wrong number of filter rule: expected %d got %d\n%s", expectedFilterRules, nFilterRules, iptablesData)
    	}
    
    	nNatRules := countRulesFromMetric(logger, utiliptables.TableNAT)
    	expectedNatRules := countRules(logger, utiliptables.TableNAT, iptablesData)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/language/language.go

    // IsPrivateUse reports whether this script code is reserved for private use.
    func (s Script) IsPrivateUse() bool {
    	return s.scriptID.IsPrivateUse()
    }
    
    // Region is an ISO 3166-1 or UN M.49 code for representing countries and regions.
    type Region struct {
    	regionID language.Region
    }
    
    // EncodeM49 returns the Region for the given UN M.49 code.
    // It returns an error if r is not a valid code.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  10. CREDITS

    infringement under applicable copyright law, except executing it on a
    computer or modifying a private copy.  Propagation includes copying,
    distribution (with or without modification), making available to the
    public, and in some countries other activities as well.
    
      To "convey" a work means any kind of propagation that enables other
    parties to make or receive copies.  Mere interaction with a user through
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 15:34:20 UTC 2024
    - 1.7M bytes
    - Viewed (0)
Back to top