Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 417 for line1 (0.23 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/PropertiesUtils.java

            List<String> nonCommentLines;
            if (lastCommentLine != -1) {
                lines.remove(lastCommentLine);
                nonCommentLines = lines.subList(lastCommentLine, lines.size());
            } else {
                nonCommentLines = lines;
            }
    
            Collections.sort(nonCommentLines);
            StringBuilder builder = new StringBuilder();
            for (String line : lines) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 14:17:21 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcherTest.groovy

        // region: assertLinesContainedIn
        def "neither expected or actual lines can be empty"() {
            when:
            comparer.assertLinesContainedIn([], ["a"])
            then:
            thrown(AssertionError)
    
            when:
            comparer.assertLinesContainedIn(["a"], [])
            then:
            thrown(AssertionError)
        }
    
        def "successful lines contained in comparisons: #expectedLines vs #actualLines"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/LineReader.java

      private final char[] buf = cbuf.array();
    
      private final Queue<String> lines = new ArrayDeque<>();
      private final LineBuffer lineBuf =
          new LineBuffer() {
            @Override
            protected void handleLine(String line, String end) {
              lines.add(line);
            }
          };
    
      /** Creates a new instance that will read lines from the given {@code Readable} object. */
      public LineReader(Readable readable) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/ConsoleLayoutCalculatorTest.groovy

        def consoleLayoutCalculator = new ConsoleLayoutCalculator(consoleMetaData);
    
        def "lines should be ideal value if console is large enough"() {
            given:
            1 * consoleMetaData.getRows() >> 100
    
            expect:
            consoleLayoutCalculator.calculateNumWorkersForConsoleDisplay(5) == 5
        }
    
        def "lines should be half the console size for small consoles"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. platforms/core-runtime/daemon-protocol/src/main/java/org/gradle/launcher/daemon/diagnostics/DaemonLogFileUtils.java

        /**
         * Reads the last {@code tailSize} lines of the daemon log file and returns them as a single string.
         *
         * @param file the daemon log
         * @param tailSize the length of tail
         * @return the tail of the log or a special {@code "<<empty>>"} string if the log is empty
         */
        static String tail(File file, int tailSize) throws IOException {
            try (Stream<String> lines = Files.lines(file.toPath(), StandardCharsets.UTF_8)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc

        }
    
        // Splits into lines.
        SmallVector<StringRef, 8> lines;
        file->getBuffer().split(lines, "\n", -1, false);
        // The resize method is used since split operator puts tail value in the end
        // without splitting the leftovers.
        if (op.getVocabSize() != -1) lines.resize(op.getVocabSize());
    
        // Map each line to line number, starting from zero.
        SmallVector<int64_t, 8> line_nums;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/files/copy/groovy/build.gradle

        filter(FixCrLfFilter)
        filter(ReplaceTokens, tokens: [copyright: '2009', version: '2.3.1'])
        // Use a closure to filter each line
        filter { String line ->
            "[$line]"
        }
        // Use a closure to remove lines
        filter { String line ->
            line.startsWith('-') ? null : line
        }
        filteringCharset = 'UTF-8'
    }
    // end::filter-files[]
    
    // tag::file-permissions[]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  8. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/action/AnnotationGeneratorWorkAction.kt

                return clazz.getResource(RESOURCE)
                    .readText()
                    .split('\n')
                    .filter { it.isNotBlank() }
                    .map { line -> line.substring(7, line.length - 2) }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 22 10:58:31 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  9. tests/integration/telemetry/api/istioctl_metrics_test.go

    	//        server        0.182        0.000         40ms         74ms         97ms
    	//
    	lines := strings.Split(output, "\n")
    	if len(lines) != 3 {
    		t.Logf("Expected 2 lines of output, got %q", output)
    		return errors.New("unexpected output (incorrect number of lines)")
    	}
    	fields := strings.Fields(lines[1])
    	if len(fields) != 6 {
    		t.Logf("Expected 6 columns, got %#v", fields)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/self_test.go

    	}
    }
    
    func runbench(b *testing.B, path string, ignoreFuncBodies, writeInfo bool) {
    	files, err := pkgFiles(path)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    	// determine line count
    	var lines uint
    	for _, f := range files {
    		lines += f.EOF.Line()
    	}
    
    	b.ResetTimer()
    	start := time.Now()
    	for i := 0; i < b.N; i++ {
    		conf := Config{
    			IgnoreFuncBodies: ignoreFuncBodies,
    			Importer:         defaultImporter(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:39:00 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top