Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 193 for lineFor (0.16 sec)

  1. src/net/parse_test.go

    	if file == nil {
    		t.Fatal(err)
    	}
    	defer file.close()
    
    	lineno := 1
    	byteno := 0
    	for {
    		bline, berr := br.ReadString('\n')
    		if n := len(bline); n > 0 {
    			bline = bline[0 : n-1]
    		}
    		line, ok := file.readLine()
    		if (berr != nil) != !ok || bline != line {
    			t.Fatalf("%s:%d (#%d)\nbufio => %q, %v\nnet => %q, %v", filename, lineno, byteno, bline, berr, line, ok)
    		}
    		if !ok {
    			break
    		}
    		lineno++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 00:04:48 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. src/crypto/ed25519/ed25519_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	defer testData.Close()
    
    	scanner := bufio.NewScanner(testData)
    	lineNo := 0
    
    	for scanner.Scan() {
    		lineNo++
    
    		line := scanner.Text()
    		parts := strings.Split(line, ":")
    		if len(parts) != 5 {
    			t.Fatalf("bad number of parts on line %d", lineNo)
    		}
    
    		privBytes, _ := hex.DecodeString(parts[0])
    		pubKey, _ := hex.DecodeString(parts[1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/SmallCharMatcher.java

    import com.google.common.base.CharMatcher.NamedFastMatcher;
    import java.util.BitSet;
    
    /**
     * An immutable version of CharMatcher for smallish sets of characters that uses a hash table with
     * linear probing to check for matches.
     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    @ElementTypesAreNonnullByDefault
    final class SmallCharMatcher extends NamedFastMatcher {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. samples/addons/grafana.yaml

    xt","axisLabel":"","axisPlacement":"auto","barAlignment":0,"drawStyle":"line","fillOpacity":10,"gradientMode":"none","hideFrom":{"legend":false,"tooltip":false,"viz":false},"insertNulls":false,"lineInterpolation":"linear","lineWidth":1,"pointSize":5,"scaleDistribution":{"type":"linear"},"showPoints":"never","spanNulls":false,"stacking":{"group":"A","mode":"none"},"thresholdsStyle":{"mode":"off"}},"mappings":[],"thresholds":{"mode":"absolute","steps":[{"color":"green","value":null},{"color":"red"...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 20:46:28 UTC 2024
    - 242.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/helper/shape_score.go

    type FunctionShapePoint struct {
    	// Utilization is function argument.
    	Utilization int64
    	// Score is function value.
    	Score int64
    }
    
    // BuildBrokenLinearFunction creates a function which is built using linear segments. Segments are defined via shape array.
    // Shape[i].Utilization slice represents points on "Utilization" axis where different segments meet.
    // Shape[i].Score represents function values at meeting points.
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  6. manifests/addons/dashboards/istio-service-dashboard.json

                  "tooltip": false,
                  "viz": false
                },
                "insertNulls": false,
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 03:47:04 UTC 2024
    - 111.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/rsc.io/markdown/break.go

    	buf.WriteString(s.prefix)
    	buf.WriteString(b.raw)
    	buf.WriteByte('\n')
    }
    
    func newHR(p *parseState, s line) (line, bool) {
    	if isHR(s) {
    		p.doneBlock(&ThematicBreak{Position{p.lineno, p.lineno}, s.string()})
    		return line{}, true
    	}
    	return s, false
    }
    
    func isHR(s line) bool {
    	t := s
    	t.trimSpace(0, 3, false)
    	switch c := t.peek(); c {
    	case '-', '_', '*':
    		for i := 0; ; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/rsc.io/markdown/heading.go

    			id, s = extractID(p, s)
    
    			// Goldmark is strict about the id syntax.
    			for _, c := range id {
    				if c >= 0x80 || !isLetterDigit(byte(c)) {
    					p.corner = true
    				}
    			}
    		}
    		pos := Position{p.lineno, p.lineno}
    		p.doneBlock(&Heading{pos, n, p.newText(pos, s), id})
    		return line{}, true
    	}
    	return s, false
    }
    
    // extractID removes an ID attribute from s if one is present.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/nowb.go

    		// Record the path.
    		funcs[target] = nowritebarrierrecCall{target: src, lineno: pos}
    		q.PushRight(target.Nname)
    	}
    	for !q.Empty() {
    		fn := q.PopLeft().Func
    
    		// Check fn.
    		if fn.WBPos.IsKnown() {
    			var err strings.Builder
    			call := funcs[fn]
    			for call.target != nil {
    				fmt.Fprintf(&err, "\n\t%v: called by %v", base.FmtPos(call.lineno), call.target.Nname)
    				call = funcs[call.target]
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 17:29:46 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. src/unicode/letter_test.go

    var calibrate = flag.Bool("calibrate", false, "compute crossover for linear vs. binary search")
    
    func TestCalibrate(t *testing.T) {
    	if !*calibrate {
    		return
    	}
    
    	if runtime.GOARCH == "amd64" {
    		fmt.Printf("warning: running calibration on %s\n", runtime.GOARCH)
    	}
    
    	// Find the point where binary search wins by more than 10%.
    	// The 10% bias gives linear search an edge when they're close,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:46:03 UTC 2023
    - 14.8K bytes
    - Viewed (0)
Back to top