Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 204 for lineFor (0.29 sec)

  1. src/go/token/position_test.go

    	{"f", []byte("package p\n\nimport \"fmt\""), 23, []int{0, 10, 11}},
    	{"g", []byte("package p\n\nimport \"fmt\"\n"), 24, []int{0, 10, 11}},
    	{"h", []byte("package p\n\nimport \"fmt\"\n "), 25, []int{0, 10, 11, 24}},
    }
    
    func linecol(lines []int, offs int) (int, int) {
    	prevLineOffs := 0
    	for line, lineOffs := range lines {
    		if offs < lineOffs {
    			return line, offs - prevLineOffs + 1
    		}
    		prevLineOffs = lineOffs
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/wasm/a.out.go

    	AEnd // opcode 0x0B
    	ABr
    	ABrIf
    	ABrTable
    	// ACall and AReturn are WebAssembly instructions. obj.ACALL and obj.ARET are higher level instructions
    	// with Go semantics, e.g. they manipulate the Go stack on the linear memory.
    	AReturn
    	ACall
    	ACallIndirect
    
    	ADrop // opcode 0x1A
    	ASelect
    
    	ALocalGet // opcode 0x20
    	ALocalSet
    	ALocalTee
    	AGlobalGet
    	AGlobalSet
    
    	AI32Load // opcode 0x28
    	AI64Load
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 02 05:28:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. src/net/http/mapping_test.go

    		"articles",
    	}
    	if len(children) != 32 {
    		panic("bad len")
    	}
    	for _, n := range []int{2, 4, 8, 16, 32} {
    		list := children[:n]
    		b.Run(fmt.Sprintf("n=%d", n), func(b *testing.B) {
    
    			b.Run("rep=linear", func(b *testing.B) {
    				var entries []entry[string, any]
    				for _, c := range list {
    					entries = append(entries, entry[string, any]{c, nil})
    				}
    				b.ResetTimer()
    				for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 17:47:07 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/PairedStatsAccumulator.java

        return ensureInUnitRange(sumOfProductsOfDeltas / Math.sqrt(productOfSumsOfSquaresOfDeltas));
      }
    
      /**
       * Returns a linear transformation giving the best fit to the data according to <a
       * href="http://mathworld.wolfram.com/LeastSquaresFitting.html">Ordinary Least Squares linear
       * regression</a> of {@code y} as a function of {@code x}. The count must be greater than one, and
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go

    	// single pass over the AST, but seldom is there more than one.)
    	for v, stmt := range cancelvars {
    		if ret := lostCancelPath(pass, g, v, stmt, sig); ret != nil {
    			lineno := pass.Fset.Position(stmt.Pos()).Line
    			pass.ReportRangef(stmt, "the %s function is not used on all paths (possible context leak)", v.Name())
    
    			pos, end := ret.Pos(), ret.End()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. src/cmd/internal/pgo/pprof.go

    		seenStartLine = seenStartLine || n.Info.StartLine != 0
    
    		canonicalName := n.Info.Name
    		// Create the key to the nodeMapKey.
    		namedEdge := NamedCallEdge{
    			CallerName:     canonicalName,
    			CallSiteOffset: n.Info.Lineno - n.Info.StartLine,
    		}
    
    		for _, e := range n.Out {
    			totalWeight += e.WeightValue()
    			namedEdge.CalleeName = e.Dest.Info.Name
    			// Create new entry or increment existing entry.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/math/PairedStatsAccumulator.java

        return ensureInUnitRange(sumOfProductsOfDeltas / Math.sqrt(productOfSumsOfSquaresOfDeltas));
      }
    
      /**
       * Returns a linear transformation giving the best fit to the data according to <a
       * href="http://mathworld.wolfram.com/LeastSquaresFitting.html">Ordinary Least Squares linear
       * regression</a> of {@code y} as a function of {@code x}. The count must be greater than one, and
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. src/regexp/backtrack.go

    // a bit vector with (length of input) * (length of prog) bits,
    // to make sure it never explores the same (character position, instruction)
    // state multiple times. This limits the search to run in time linear in
    // the length of the test.
    //
    // backtrack is a fast replacement for the NFA code on small
    // regexps when onepass cannot be used.
    
    package regexp
    
    import (
    	"regexp/syntax"
    	"sync"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TopKSelector.java

        }
        return this;
      }
    
      /**
       * Adds each member of {@code elements} as a candidate for the top {@code k} elements. This
       * operation takes amortized linear time in the length of {@code elements}.
       *
       * <p>If all input data to this {@code TopKSelector} is in a single {@code Iterable}, prefer
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/google/pprof/internal/graph/graph.go

    	if i.Address != 0 {
    		name = append(name, fmt.Sprintf("%016x", i.Address))
    	}
    	if fun := i.Name; fun != "" {
    		name = append(name, fun)
    	}
    
    	switch {
    	case i.Lineno != 0:
    		s := fmt.Sprintf("%s:%d", i.File, i.Lineno)
    		if i.Columnno != 0 {
    			s += fmt.Sprintf(":%d", i.Columnno)
    		}
    		// User requested line numbers, provide what we have.
    		name = append(name, s)
    	case i.File != "":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top