Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,017 for line1 (0.04 sec)

  1. 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)
  2. pkg/proxy/nftables/helpers_test.go

    func sortNFTablesTransaction(tx string) string {
    	lines := strings.Split(tx, "\n")
    
    	// strip blank lines and comments
    	for i := 0; i < len(lines); {
    		if lines[i] == "" || lines[i][0] == '#' {
    			lines = append(lines[:i], lines[i+1:]...)
    		} else {
    			i++
    		}
    	}
    
    	// sort remaining lines
    	sort.SliceStable(lines, func(i, j int) bool {
    		li := lines[i]
    		wi := strings.Split(li, " ")
    		lj := lines[j]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 09:57:47 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  3. src/go/doc/comment/text.go

    	}
    }
    
    // wrap wraps words into lines of at most max runes,
    // minimizing the sum of the squares of the leftover lengths
    // at the end of each line (except the last, of course),
    // with a preference for ending lines at punctuation (.,:;).
    //
    // The returned slice gives the indexes of the first words
    // on each line in the wrapped text with a final entry of len(words).
    // Thus the lines are words[seq[0]:seq[1]], words[seq[1]:seq[2]],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  4. cni/pkg/plugin/plugin_dryrun_test.go

    	for _, table := range parts {
    		// If table is not empty, get table name from the first line
    		lines := strings.Split(strings.Trim(table, "\n"), "\n")
    		if len(lines) >= 1 && strings.HasPrefix(lines[0], "* ") {
    			tableName := lines[0][2:]
    			lines = append(lines, "COMMIT")
    			tables[tableName] = strings.Join(lines, "\n")
    		}
    	}
    	return tables
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. .github/workflows/codeql-analysis.yml

        - name: Autobuild
          uses: github/codeql-action/autobuild@v1
    
        # ℹī¸ Command-line programs to run using the OS shell.
        # 📚 https://git.io/JvXDl
    
        # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines
        #    and modify them (or add more) to build your code if your project
        #    uses a compiled language
    
        #- run: |
    Registered: Wed Jun 12 08:29:43 UTC 2024
    - Last Modified: Fri Oct 02 13:24:14 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  6. src/go/printer/testdata/statements.input

    	switch x := 0; x {
    	case 1:
    		use(x)
    		use(x)  // followed by an empty line
    
    	case 2:  // followed by an empty line
    
    		use(x)  // followed by an empty line
    
    	case 3:  // no empty lines
    		use(x)
    		use(x)
    	}
    
    	switch x {
    	case 0:
    		use(x)
    	case 1:  // this comment should have no effect on the previous or next line
    		use(x)
    	}
    
    	switch x := 0; x {
    	case 1:
    		x = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 8.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/amd64/versions_test.go

    	success := false
    	lines := strings.Split(string(out), "\n")
    	if len(lines) == 2 {
    		success = lines[0] == "PASS" && lines[1] == ""
    	} else if len(lines) == 3 {
    		success = lines[0] == "PASS" &&
    			strings.HasPrefix(lines[1], "coverage") && lines[2] == ""
    	}
    	if !success {
    		t.Fatalf("test reported error: %s lines=%+v", string(out), lines)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/util/users/users_linux.go

    		"SYS_GID_MAX": &l.maxGID,
    	}
    	lines := strings.Split(file, "\n")
    	for i, line := range lines {
    		for k, v := range mapping {
    			// A line must start with one of the definitions
    			if !strings.HasPrefix(line, k) {
    				continue
    			}
    			line = strings.TrimPrefix(line, k)
    			line = strings.TrimSpace(line)
    			val, err := strconv.ParseInt(line, 10, 64)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/counter/stackcounter.go

    	}
    	lines := strings.Split(ename, "\n")
    	var lastPath string // empty or ends with .
    	for i, line := range lines {
    		path, rest := cutLastDot(line)
    		if len(path) == 0 {
    			continue // unchanged
    		}
    		if len(path) == 1 && path[0] == '"' {
    			lines[i] = lastPath + rest
    		} else {
    			lastPath = path + "."
    			// line unchanged
    		}
    	}
    	return strings.Join(lines, "\n") // trailing \n?
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/go/token/serialize_test.go

    			return fmt.Errorf("different size for %q: %d != %d", f.name, f.size, g.size)
    		}
    		for j, l := range f.lines {
    			m := g.lines[j]
    			if l != m {
    				return fmt.Errorf("different offsets for %q", f.name)
    			}
    		}
    		for j, l := range f.infos {
    			m := g.infos[j]
    			if l.Offset != m.Offset || l.Filename != m.Filename || l.Line != m.Line {
    				return fmt.Errorf("different infos for %q", f.name)
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 17 15:02:55 UTC 2022
    - 2.5K bytes
    - Viewed (0)
Back to top