Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 417 for line1 (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/cmd/internal/test2json/test2json_test.go

    	t.Helper()
    	type event map[string]any
    
    	// Parse into events, one per line.
    	parseEvents := func(b []byte) ([]event, []string) {
    		t.Helper()
    		var events []event
    		var lines []string
    		for _, line := range bytes.SplitAfter(b, []byte("\n")) {
    			if len(line) > 0 {
    				line = bytes.TrimSpace(line)
    				var e event
    				err := json.Unmarshal(line, &e)
    				if err != nil {
    					t.Errorf("unmarshal %s: %v", b, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  5. src/runtime/start_line_test.go

    	"fmt"
    	"internal/testenv"
    	"runtime"
    	"testing"
    )
    
    // The tests in this file test the function start line metadata included in
    // _func and inlinedCall. TestStartLine hard-codes the start lines of functions
    // in this file. If code moves, the test will need to be updated.
    //
    // The "start line" of a function should be the line containing the func
    // keyword.
    
    func normalFunc() int {
    	return callerStartLine(false)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 22:54:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/resolve/locking/LockfileFixture.groovy

            def lines = new ArrayList(LockFileReaderWriter.LOCKFILE_HEADER_LIST)
            if (modules.isEmpty()) {
                lines.add("empty=$configuration")
            } else {
                lines.addAll modules.toSorted().collect({ "$it=$configuration".toString() })
                lines.add("empty=")
            }
            lockFile.writelns(lines)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/text/AbstractLineChoppingStyledTextOutputTest.groovy

            System.setProperty("line.separator", "\n")
            def output = output()
    
            when:
            output.text("\r")
            output.text("\n")
    
            then:
            result.toString() == "{eol}"
        }
    
        def "Carriage return isn't detected as new line [#type]"() {
            System.setProperty("line.separator", eol)
            def output = output()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top