Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 67 for readlines (0.15 seconds)

  1. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt

            dependenciesToModify.forEach { (filePath, dependencies) ->
                val file = File(filePath)
                if (!file.exists()) return@forEach
    
                val lines = file.readLines().toMutableList()
                dependencies.forEach { dependency ->
                    val dependencyRegex = Regex("""(api|implementation)(\(projects\.[a-zA-Z]+\)) \(was (api|implementation)\)""")
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Mar 03 06:57:08 GMT 2025
    - 6.2K bytes
    - Click Count (1)
  2. guava/src/com/google/common/io/Resources.java

       */
      @CanIgnoreReturnValue // some processors won't return a useful result
      @ParametricNullness
      public static <T extends @Nullable Object> T readLines(
          URL url, Charset charset, LineProcessor<T> callback) throws IOException {
        return asCharSource(url, charset).readLines(callback);
      }
    
      /**
       * Reads all of the lines from a URL. The lines do not include line-termination characters, but do
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  3. .github/workflows/CheckBadMerge.groovy

            }
        }
    
        static List<String> filesFromMerge(String commit) {
            getStdout("git diff --name-only $commit^1..$commit").readLines()
        }
    
        static List<String> branchesOf(String commit) {
            return getStdout("git branch -r --contains $commit")
                .readLines()
                .collect { it.replace("*", "") } // remove the * from the current branch, e.g. * master -> master
                .collect { it.trim() }
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Jan 24 10:03:31 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        } else {
          assertEquals(expectedLines.get(0), source.readFirstLine());
        }
      }
    
      public void testReadLines_toList() throws IOException {
        assertExpectedLines(source.readLines());
      }
    
      public void testIsEmpty() throws IOException {
        assertEquals(expected.isEmpty(), source.isEmpty());
      }
    
      public void testLength() throws IOException {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  5. build-logic/jvm/src/main/kotlin/gradlebuild/startscript/tasks/GradleStartScriptGenerator.kt

            if (agentJarNames.isEmpty()) {
                return
            }
            var replacementsCount = 0
            // readLines eats EOLs, so we need to use postfix to make sure the last line ends with EOL too.
            writeBytes(readLines().joinToString(separator = separator, postfix = separator) { line ->
                when {
                    // We assume that the declaration is not empty.
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Apr 08 01:46:59 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractVersionsUpdateTask.kt

            firstVersion: String,
            latestVersion: String,
        ) {
            val docFile = compatibilityDocFile.get().asFile
            var lineFound = false
            docFile.writeText(
                docFile.readLines().joinToString(separator = "\n", postfix = "\n") { line ->
                    if (line.startsWith(linePrefix)) {
                        lineFound = true
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Fri Oct 24 09:10:28 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/io/ResourcesTest.java

      }
    
      public void testReadLines() throws IOException {
        // TODO(chrisn): Check in a better resource
        URL resource = getClass().getResource("testdata/i18n.txt");
        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        URL resource = getClass().getResource("testdata/alice_in_wonderland.txt");
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 28 16:03:47 GMT 2025
    - 6.9K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/io/SourceSinkTester.java

        try {
          return new CharSource() {
            @Override
            public Reader openStream() throws IOException {
              return new StringReader(string);
            }
          }.readLines();
        } catch (IOException e) {
          throw new AssertionError();
        }
      }
    
      @Override
      public void tearDown() throws IOException {
        factory.tearDown();
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  9. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

         */
        protected
        fun parseReleaseNotes(): Triple<List<String>, List<String>, List<String>> {
            val releaseNotesLines: List<String> = releaseNotes.asFile.get().readLines()
            val contributorSectionBeginIndex = releaseNotesLines.indexOfFirst { it.startsWith("We would like to thank the following community members for their contributions to this release of Gradle:") } + 1
    
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jun 24 07:54:08 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  10. internal/deadlineconn/deadlineconn.go

    type DeadlineConn struct {
    	net.Conn
    	readDeadline            time.Duration // sets the read deadline on a connection.
    	readSetAt               time.Time
    	writeDeadline           time.Duration // sets the write deadline on a connection.
    	writeSetAt              time.Time
    	abortReads, abortWrites atomic.Bool // A deadline was set to indicate caller wanted the conn to time out.
    	infReads, infWrites     atomic.Bool
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Mon Dec 02 13:21:17 GMT 2024
    - 5.1K bytes
    - Click Count (0)
Back to Top