Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for line1 (0.17 sec)

  1. platforms/core-runtime/daemon-protocol/src/test/groovy/org/gradle/launcher/daemon/diagnostics/DaemonLogFileUtilsTest.groovy

        }
    
        def "returns last line if the limit is one"() {
            given:
            def logFile = log("""\
                line1
                line2
                line3""")
    
            expect:
            DaemonLogFileUtils.tail(logFile, 1) == "line3"
        }
    
        def "input-ending eoln is ignored"() {
            given:
            def logFile = log("""\
                line1
                line2
                line3
            """)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/pprof/pprof.go

    		}
    		f.pcln = pcln
    	}
    	addr -= f.offset
    	file, line, fn := f.pcln.PCToLine(addr)
    	if fn != nil {
    		frame := []driver.Frame{
    			{
    				Func: fn.Name,
    				File: file,
    				Line: line,
    			},
    		}
    		return frame, nil
    	}
    
    	frames := f.dwarfSourceLine(addr)
    	if frames != nil {
    		return frames, nil
    	}
    
    	return nil, fmt.Errorf("no line information for PC=%#x", addr)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. operator/pkg/util/progress/progress.go

    // around the limitations of the pb library, which will only support single lines. To do this, we aggregate
    // the current components into a single line, and as components complete there final state is persisted to a new line.
    type Log struct {
    	components map[string]*ManifestLog
    	bar        *pb.ProgressBar
    	template   string
    	mu         sync.Mutex
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 19:23:44 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/common/source_code.cc

      string code;
      for (const Line& line : lines_) {
        absl::StrAppend(&code, string(line.indent * spaces_per_indent_, ' '),
                        line.text, "\n");
      }
      return code;
    }
    
    void SourceCode::AddLineWithIndent(const string& line) {
      ValidateAndAddLine(current_indent_, line);
    }
    
    void SourceCode::AddLineWithoutIndent(const string& line) {
      ValidateAndAddLine(0, line);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. security/pkg/pki/testdata/cert-chain-trailing-line.pem

    sschepens <******@****.***> 1717506007 -0300
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 13:00:07 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. 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)
  7. testing/architecture-test/build.gradle.kts

        @get:OutputFile
        abstract var ruleFile: File
    
        @TaskAction
        fun resortStoredRules() {
            val lines = ruleFile.readLines()
            val sortedLines = lines.sortedBy { line ->
                // We sort by the rule name
                line.substringBefore("=")
            }
    
            if (lines != sortedLines) {
                ruleFile.writeText(sortedLines.joinToString("\n"))
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 08:43:33 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. src/crypto/rsa/pss_test.go

    		var partialValue string
    		lastWasValue := true
    
    		for scanner.Scan() {
    			line := scanner.Text()
    			switch {
    			case len(line) == 0:
    				if len(partialValue) > 0 {
    					values <- strings.ReplaceAll(partialValue, " ", "")
    					partialValue = ""
    					lastWasValue = true
    				}
    				continue
    			case strings.HasPrefix(line, "# ======") && lastWasValue:
    				values <- newKeyMarker
    				lastWasValue = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/binaryinfo/NMToolFixture.groovy

            def lines = process.inputStream.readLines()
            return lines.collect { line ->
                // Looks like on Linux:
                // _main t 0 0
                //
                // Looks like on Windows (MinGW):
                // main T 0000000000401550
                def splits = line.split(' ')
                String name = splits[0]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. src/testing/example.go

    		if !matched {
    			continue
    		}
    		ran = true
    		if !runExample(eg) {
    			ok = false
    		}
    	}
    
    	return ran, ok
    }
    
    func sortLines(output string) string {
    	lines := strings.Split(output, "\n")
    	slices.Sort(lines)
    	return strings.Join(lines, "\n")
    }
    
    // processRunResult computes a summary and status of the result of running an example test.
    // stdout is the captured output from stdout of the test.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top