Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for lineFor (0.12 sec)

  1. src/cmd/internal/obj/line_test.go

    	lfile := src.NewLinePragmaBase(src.MakePos(afile, 8, 1), "linedir", "linedir", 100, 1)
    
    	var tests = []struct {
    		pos  src.Pos
    		want string
    	}{
    		{src.NoPos, "??:0"},
    		{src.MakePos(afile, 1, 0), "a.go:1"},
    		{src.MakePos(afile, 2, 0), "a.go:2"},
    		{src.MakePos(bfile, 10, 4), "/foo/bar/b.go:10"},
    		{src.MakePos(lfile, 10, 0), "linedir:102"}, // 102 == 100 + (10 - (7+1))
    	}
    
    	for _, test := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/scope_test.cc

      Scope root = Scope::NewRootScope();
      const auto names1 = LinearOp(root);
    
      EXPECT_EQ(names1[0], "linear/mul");
      EXPECT_EQ(names1[1], "linear/bias_add");
      EXPECT_EQ(names1[2], "linear/c1");
      EXPECT_EQ(names1[3], "linear/mul_1");
      EXPECT_EQ(names1[4], "linear");
    
      EXPECT_EQ(root.GetUniqueNameForOp("linear"), "linear_1");
    
      const auto names2 = LinearOp(root);
    
      EXPECT_EQ(names2[0], "linear_2/mul");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 08:17:37 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  3. src/strconv/fp_test.go

    	}
    	defer f.Close()
    
    	s := bufio.NewScanner(f)
    
    	for lineno := 1; s.Scan(); lineno++ {
    		line := s.Text()
    		if len(line) == 0 || line[0] == '#' {
    			continue
    		}
    		a := strings.Split(line, " ")
    		if len(a) != 4 {
    			t.Error("testdata/testfp.txt:", lineno, ": wrong field count")
    			continue
    		}
    		var s string
    		var v float64
    		switch a[0] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/PropertiesUtils.java

            int lastCommentLine = -1;
            for (int lineNo = 0, len = lines.size(); lineNo < len; lineNo++) {
                String line = lines.get(lineNo);
                if (line.startsWith("#")) {
                    lastCommentLine = lineNo;
                }
            }
    
            // The last comment line is the timestamp
            List<String> nonCommentLines;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 14:17:21 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/framepointer/framepointer.go

    		content, tf, err := analysisutil.ReadFile(pass, fname)
    		if err != nil {
    			return nil, err
    		}
    
    		lines := strings.SplitAfter(string(content), "\n")
    		active := false
    		for lineno, line := range lines {
    			lineno++
    
    			// Ignore comments and commented-out code.
    			if i := strings.Index(line, "//"); i >= 0 {
    				line = line[:i]
    			}
    			line = strings.TrimSpace(line)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/runtime/testdata/testprogcgo/traceback_c.c

    }
    
    struct cgoTracebackArg {
    	uintptr_t  context;
    	uintptr_t  sigContext;
    	uintptr_t* buf;
    	uintptr_t  max;
    };
    
    struct cgoSymbolizerArg {
    	uintptr_t   pc;
    	const char* file;
    	uintptr_t   lineno;
    	const char* func;
    	uintptr_t   entry;
    	uintptr_t   more;
    	uintptr_t   data;
    };
    
    void cgoTraceback(void* parg) {
    	struct cgoTracebackArg* arg = (struct cgoTracebackArg*)(parg);
    	arg->buf[0] = 1;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 21:47:44 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  7. android/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)
  8. 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)
  9. 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)
  10. 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)
Back to top