Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,660 for pats (0.06 sec)

  1. src/net/http/routing_index_test.go

    	var idx routingIndex
    	for i, pat := range patterns {
    		got := indexConflicts(pat, &idx)
    		want := trueConflicts(pat, patterns[:i])
    		if !slices.Equal(got, want) {
    			t.Fatalf("%q:\ngot  %q\nwant %q", pat, got, want)
    		}
    		idx.addPattern(pat)
    	}
    }
    
    func trueConflicts(pat *pattern, pats []*pattern) []string {
    	var s []string
    	for _, p := range pats {
    		if pat.conflictsWith(p) {
    			s = append(s, p.String())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/net/http/routing_index.go

    	min := math.MaxInt
    	hasLit := false
    	for i, seg := range pat.segments {
    		if seg.multi {
    			break
    		}
    		if !seg.wild {
    			hasLit = true
    			lpats := idx.segments[routingIndexKey{s: seg.s, pos: i}]
    			wpats := idx.segments[routingIndexKey{s: "", pos: i}]
    			if sum := len(lpats) + len(wpats); sum < min {
    				lmin = lpats
    				wmin = wpats
    				min = sum
    			}
    		}
    	}
    	if hasLit {
    		apply(lmin)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 18:35:22 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. src/cmd/covdata/covdata.go

    	dbgtrace(1, "starting mode-independent setup")
    	if flag.NArg() != 0 {
    		op.Usage("unknown extra arguments")
    	}
    	if *pkgpatflag != "" {
    		pats := strings.Split(*pkgpatflag, ",")
    		matchers := []func(name string) bool{}
    		for _, p := range pats {
    			if p == "" {
    				continue
    			}
    			f := pkgpattern.MatchSimplePattern(p)
    			matchers = append(matchers, f)
    		}
    		matchpkg = func(name string) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. src/net/http/routing_tree_test.go

    		{"GET", "", "/a/b/c", pat3, []string{"c"}},
    		{"GET", "", "/a/b/c/d", pat3, []string{"c/d"}},
    	})
    
    	// All three of the above should work together.
    	test(buildTree(pat1, pat2, pat3), []testCase{
    		{"GET", "", "/a/b", "", nil},
    		{"GET", "", "/a/b/", pat1, nil},
    		{"GET", "", "/a/b/c", pat2, []string{"c"}},
    		{"GET", "", "/a/b/c/d", pat3, []string{"c/d"}},
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/devel.usertools/wheel_verification.bats

            # Unknown:
            *)
                echo "The wheel's name is in an unknown format."
                exit 1
                ;;
        esac
        # >&3 forces output in bats even if the test passes. See
        # https://bats-core.readthedocs.io/en/stable/writing-tests.html#printing-to-the-terminal
        echo "# Size of $TF_WHEEL is $WHEEL_MEGABYTES / $LARGEST_OK_SIZE megabytes." >&3
        test "$WHEEL_MEGABYTES" -le "$LARGEST_OK_SIZE"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 02:14:00 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. internal/event/target/nats.go

    			return errors.New("queueDir path should be absolute")
    		}
    	}
    
    	return nil
    }
    
    // To obtain a nats connection from args.
    func (n NATSArgs) connectNats() (*nats.Conn, error) {
    	connOpts := []nats.Option{nats.Name("Minio Notification"), nats.MaxReconnects(-1)}
    	if n.Username != "" && n.Password != "" {
    		connOpts = append(connOpts, nats.UserInfo(n.Username, n.Password))
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  7. operator/pkg/util/path.go

    	EscapedPathSeparator = "\\" + PathSeparator
    )
    
    // ValidKeyRegex is a regex for a valid path key element.
    var ValidKeyRegex = regexp.MustCompile("^[a-zA-Z0-9_-]*$")
    
    // Path is a path in slice form.
    type Path []string
    
    // PathFromString converts a string path of form a.b.c to a string slice representation.
    func PathFromString(path string) Path {
    	path = filepath.Clean(path)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 12 17:12:54 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. ci/official/utilities/code_check_full.bats

    add them to //tensorflow/tools/pip_package/BUILD. Otherwise, add the no_pip tag
    to the test, or change code_check_full.bats in the SIG Build repository. That's
    https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/tf_sig_build_dockerfiles/devel.usertools/code_check_full.bats
    Here are the affected tests:
    EOF
        while read dep; do
          echo "For dependency $dep:"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 21:54:13 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/devel.usertools/code_check_full.bats

    add them to //tensorflow/tools/pip_package/BUILD. Otherwise, add the no_pip tag
    to the test, or change code_check_full.bats in the SIG Build repository. That's
    https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/tf_sig_build_dockerfiles/devel.usertools/code_check_full.bats
    Here are the affected tests:
    EOF
        while read dep; do
          echo "For dependency $dep:"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 14:52:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/pass.go

    // Inferno utils/6l/pass.c
    // https://bitbucket.org/inferno-os/inferno-os/src/master/utils/6l/pass.c
    //
    //	Copyright © 1994-1999 Lucent Technologies Inc.  All rights reserved.
    //	Portions Copyright © 1995-1997 C H Forsyth (******@****.***)
    //	Portions Copyright © 1997-1999 Vita Nuova Limited
    //	Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com)
    //	Portions Copyright © 2004,2006 Bruce Ellis
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 01:26:58 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top