Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 778 for dups (0.48 sec)

  1. src/internal/diff/testdata/dups.txt

    Russ Cox <******@****.***> 1643490792 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 16:56:29 UTC 2022
    - 141 bytes
    - Viewed (0)
  2. src/internal/singleflight/singleflight.go

    	g.mu.Lock()
    	if g.m == nil {
    		g.m = make(map[string]*call)
    	}
    	if c, ok := g.m[key]; ok {
    		c.dups++
    		g.mu.Unlock()
    		c.wg.Wait()
    		return c.val, c.err, true
    	}
    	c := new(call)
    	c.wg.Add(1)
    	g.m[key] = c
    	g.mu.Unlock()
    
    	g.doCall(c, key, fn)
    	return c.val, c.err, c.dups > 0
    }
    
    // DoChan is like Do but returns a channel that will receive the
    // results when they are ready.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 20:49:56 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. test/typeparam/nested.go

    	add(Int(0), T[Int]{})
    	add(GlobalInt(0), T[GlobalInt]{})
    	add(A(0), T[A]{}) // NOTE: intentionally dups with int and GlobalInt
    
    	type U[_ any] int
    	type V U[int]
    	type W V
    
    	add(U[int](0), T[U[int]]{})
    	add(U[Int](0), T[U[Int]]{})
    	add(U[GlobalInt](0), T[U[GlobalInt]]{})
    	add(U[A](0), T[U[A]]{}) // NOTE: intentionally dups with U[int] and U[GlobalInt]
    	add(V(0), T[V]{})
    	add(W(0), T[W]{})
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:23:27 UTC 2022
    - 3K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/testdata/libgo2/libgo2.go

    // function creates a pipe and Dups the read end to a known number
    // that the C code can also use.
    
    const (
    	fd = 30
    )
    
    func init() {
    	var p [2]int
    	if e := syscall.Pipe(p[0:]); e != nil {
    		fmt.Fprintf(os.Stderr, "pipe: %v\n", e)
    		os.Exit(2)
    	}
    
    	if e := dup2(p[0], fd); e != nil {
    		fmt.Fprintf(os.Stderr, "dup2: %v\n", e)
    		os.Exit(2)
    	}
    
    	const str = "PASS"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. src/net/net_windows_test.go

    		}
    		group[string(line[:i])] = string(bytes.TrimSpace(line[i+1:]))
    	}
    	processGroup()
    
    	dups := make(map[string][]string)
    	for name, addr := range want {
    		if _, ok := dups[addr]; !ok {
    			dups[addr] = make([]string, 0)
    		}
    		dups[addr] = append(dups[addr], name)
    	}
    
    nextWant:
    	for name, wantAddr := range want {
    		if haveAddr, ok := have[name]; ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. hack/lib/golang.sh

    # kube::util::read-array FOO < <(kube::golang::dups a b c a)
    #
    # ALWAYS remember to quote your subshells. Not doing so will break in
    # bash 4.3, and potentially cause other issues.
    # ------------
    
    # Returns a sorted newline-separated list containing only duplicated items.
    kube::golang::dups() {
      # We use printf to insert newlines, which are required by sort.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  7. src/cmd/nm/nm_test.go

    				return true
    			}
    		}
    		if platform.DefaultPIE(runtime.GOOS, runtime.GOARCH, false) {
    			// Code is always relocated if the default buildmode is PIE.
    			return true
    		}
    		return false
    	}
    
    	dups := make(map[string]bool)
    	for _, line := range strings.Split(string(out), "\n") {
    		f := strings.Fields(line)
    		if len(f) < 3 {
    			continue
    		}
    		name := f[2]
    		if addr, found := names[name]; found {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 23:32:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  8. src/time/genzabbrs.go

    	}
    
    	var sd SupplementalData
    	err = xml.Unmarshal(data, &sd)
    	if err != nil {
    		return nil, err
    	}
    	zs := make([]*zone, 0)
    	for _, z := range sd.Zones {
    		if z.Territory != "001" {
    			// to avoid dups. I don't know why.
    			continue
    		}
    		l, err := time.LoadLocation(z.Type)
    		if err != nil {
    			return nil, err
    		}
    		st, dt := getAbbrs(l)
    		zs = append(zs, &zone{
    			WinName:  z.Other,
    			UnixName: z.Type,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    							"values": map[string]interface{}{
    								"dups": []interface{}{1, 2, 2, 3, 1000, 2000, 3},
    							},
    						}}},
    				expectError{applyPatchOperation{
    					"add another list with duplicates",
    					myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{
    						"values": map[string]interface{}{
    							"dups":  []interface{}{1, 2, 2, 3, 1000, 2000},
    							"dups2": []interface{}{1, 2, 2, 3, 1000, 2000},
    						},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

          Set<Object> seenKeys = new HashSet<>();
          BitSet dups = new BitSet(); // slots that are overridden by a later duplicate key
          for (int i = size - 1; i >= 0; i--) {
            Object key = requireNonNull(localAlternatingKeysAndValues[2 * i]);
            if (!seenKeys.add(key)) {
              dups.set(i);
            }
          }
          if (dups.isEmpty()) {
            return localAlternatingKeysAndValues;
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top