Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 541 for line3 (0.06 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/SpringBootWebAppTestOutputNormalizer.groovy

            List<String> lines = output.readLines()
            int buildSuccessfulLineIndex = lines.indexOf("BUILD SUCCESSFUL in 0s")
            assert buildSuccessfulLineIndex != -1
    
            List<String> normalized = lines.subList(0, buildSuccessfulLineIndex).grep { !it.isEmpty() } + "" + lines.subList(buildSuccessfulLineIndex, lines.size())
            return normalized.join("\n")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/sort/example_multi_test.go

    		return c1.lines < c2.lines
    	}
    	decreasingLines := func(c1, c2 *Change) bool {
    		return c1.lines > c2.lines // Note: > orders downwards.
    	}
    
    	// Simple use: Sort by user.
    	OrderedBy(user).Sort(changes)
    	fmt.Println("By user:", changes)
    
    	// More examples.
    	OrderedBy(user, increasingLines).Sort(changes)
    	fmt.Println("By user,<lines:", changes)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/LineBufferTest.java

        }
        lineBuf.finish();
        return lines;
      }
    
      private static List<String> readUsingJava(String input, int chunk) throws IOException {
        BufferedReader r = new BufferedReader(getChunkedReader(input, chunk));
        List<String> lines = Lists.newArrayList();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        r.close();
        return lines;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/LineBufferTest.java

        }
        lineBuf.finish();
        return lines;
      }
    
      private static List<String> readUsingJava(String input, int chunk) throws IOException {
        BufferedReader r = new BufferedReader(getChunkedReader(input, chunk));
        List<String> lines = Lists.newArrayList();
        String line;
        while ((line = r.readLine()) != null) {
          lines.add(line);
        }
        r.close();
        return lines;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/stmtlines_test.go

    		for {
    			err := lrdr.Next(&le)
    			if err == io.EOF {
    				break
    			}
    			must(err)
    			fl := Line{le.File.Name, le.Line}
    			lines[fl] = lines[fl] || le.IsStmt
    		}
    	}
    
    	nonStmtLines := []Line{}
    	for line, isstmt := range lines {
    		if !isstmt {
    			nonStmtLines = append(nonStmtLines, line)
    		}
    	}
    
    	var m int
    	if runtime.GOARCH == "amd64" {
    		m = 1 // > 99% obtained on amd64, no backsliding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 17:05:14 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  6. pkg/proxy/util/linebuffer_test.go

    		name     string
    		expected int
    	}{
    		{
    			name:     "write no line",
    			expected: 0,
    		},
    		{
    			name:     "write one line",
    			expected: 1,
    		},
    		{
    			name:     "write 100 lines",
    			expected: 100,
    		},
    		{
    			name:     "write 1000 lines",
    			expected: 1000,
    		},
    		{
    			name:     "write 10000 lines",
    			expected: 10000,
    		},
    		{
    			name:     "write 100000 lines",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 12:38:25 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. misc/ios/detect.go

    	}
    	return bytes.TrimSpace(out), nil
    }
    
    func getLines(cmd *exec.Cmd) [][]byte {
    	out := output(cmd)
    	lines := bytes.Split(out, []byte("\n"))
    	// Skip the empty line at the end.
    	if len(lines[len(lines)-1]) == 0 {
    		lines = lines[:len(lines)-1]
    	}
    	return lines
    }
    
    func output(cmd *exec.Cmd) []byte {
    	out, err := cmd.Output()
    	if err != nil {
    		fmt.Println(strings.Join(cmd.Args, "\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:30 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. src/go/doc/comment/testdata/code.txt

    More text.
    
          Blocks
        can
    
      have
        blank
          lines.
    -- gofmt --
    Text.
    
    	A tab-indented
    	(no, not eight-space indented)
    	code block and haiku.
    
    More text.
    
    	One space
    	 is
    	  enough
    	   to
    	    start
    	     a
    	      block.
    
    More text.
    
    	    Blocks
    	  can
    
    	have
    	  blank
    	    lines.
    -- markdown --
    Text.
    
    	A tab-indented
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:47 UTC 2022
    - 944 bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/ComponentMetadataRulesErrorHandlingIntegrationTest.groovy

            failure.assertHasLineNumber(lines + 3)
            failure.assertHasCause("There was an error while evaluating a component metadata rule for org.test:projectA:1.0.")
            failure.assertHasCause("No signature of method: WrongRule.foo() is applicable for argument types: () values: []")
        }
    
        def "produces sensible error for invalid component metadata rule" () {
            def lines = buildFile.readLines().size()
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. 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)
Back to top