Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 600 for dups (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. guava/src/com/google/common/collect/ImmutableMap.java

          Set<K> seen = new HashSet<>();
          BitSet dups = new BitSet(); // slots that are overridden by a later duplicate key
          for (int i = size - 1; i >= 0; i--) {
            if (!seen.add(entries[i].getKey())) {
              dups.set(i);
            }
          }
          if (dups.isEmpty()) {
            return null;
          }
          @SuppressWarnings({"rawtypes", "unchecked"})
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 30 14:39:16 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  7. src/cmd/doc/doc_test.go

    			`func B`,
    			`B comment`,
    		},
    		[]string{
    			`Package A doc`,
    			`Package B doc`,
    			`A doc`,
    			`A comment`,
    			`A doc`,
    		},
    	},
    
    	// No dups with -u. Issue 21797.
    	{
    		"case matching on, no dups",
    		[]string{"-u", p, `duplicate`},
    		[]string{
    			`Duplicate`,
    			`duplicate`,
    		},
    		[]string{
    			"\\)\n+const", // This will appear if the const decl appears twice.
    		},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 31.2K bytes
    - Viewed (0)
  8. src/net/http/transfer.go

    	// Hardening against HTTP request smuggling
    	if len(contentLens) > 1 {
    		// Per RFC 7230 Section 3.3.2, prevent multiple
    		// Content-Length headers if they differ in value.
    		// If there are dups of the value, remove the dups.
    		// See Issue 16490.
    		first := textproto.TrimString(contentLens[0])
    		for _, ct := range contentLens[1:] {
    			if first != textproto.TrimString(ct) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. src/internal/poll/fd_unix.go

    			// now on.
    			dupCloexecUnsupported.Store(true)
    		default:
    			return -1, "fcntl", err
    		}
    	}
    	return dupCloseOnExecOld(fd)
    }
    
    // Dup duplicates the file descriptor.
    func (fd *FD) Dup() (int, string, error) {
    	if err := fd.incref(); err != nil {
    		return -1, "", err
    	}
    	defer fd.decref()
    	return DupCloseOnExec(fd.Sysfd)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    // "dentries".
    //
    // Writing of expected results is complicated by closures and by
    // generics, where you can have multiple functions that all share the
    // same starting line. Currently we combine up all the dups and
    // closures into the single pre-func comment.
    func updateExpected(t *testing.T, testcase string, dentries []fnInlHeur, dcsites []encodedCallSiteTab) {
    	nd := len(dentries)
    
    	ues := mkUpexState(dentries)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
Back to top