Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 304 for deduped (0.29 sec)

  1. pkg/config/analysis/diag/messages.go

    		if len(deduped) != 0 && deduped[len(deduped)-1].String() == m.String() {
    			continue
    		}
    		deduped = append(deduped, m)
    	}
    	return deduped
    }
    
    // SetDocRef sets the doc URL reference tracker for the messages
    func (ms *Messages) SetDocRef(docRef string) *Messages {
    	for i := range *ms {
    		(*ms)[i].DocRef = docRef
    	}
    	return ms
    }
    
    // FilterOutLowerThan only keeps messages at or above the specified output level
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 02:47:46 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. pilot/pkg/networking/plugin/authn/util.go

    	}
    	return dedupTrustDomains(tds)
    }
    
    func dedupTrustDomains(tds []string) []string {
    	known := sets.New[string]()
    	deduped := make([]string, 0, len(tds))
    
    	for _, td := range tds {
    		if td != "" && !known.InsertContains(td) {
    			deduped = append(deduped, td)
    		}
    	}
    	return deduped
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 24 16:11:07 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. src/go/ast/import.go

    	})
    
    	// Dedup. Thanks to our sorting, we can just consider
    	// adjacent pairs of imports.
    	deduped := specs[:0]
    	for i, s := range specs {
    		if i == len(specs)-1 || !collapse(s, specs[i+1]) {
    			deduped = append(deduped, s)
    		} else {
    			p := s.Pos()
    			fset.File(p).MergeLine(lineAt(fset, p))
    		}
    	}
    	specs = deduped
    
    	// Fix up comment positions
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    final String[] deduped = dedupe(elements);
                    return new AbstractSet<String>() {
                      @Override
                      public int size() {
                        return deduped.length;
                      }
    
                      @Override
                      public Iterator<String> iterator() {
                        return MinimalCollection.of(deduped).iterator();
                      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/go_test.go

    import (
    	_ "net"
    )
    
    //go:cgo_import_dynamic _ _ "libc.so"
    
    func main() {}`
    	if err := os.WriteFile(srcFile, []byte(src), 0644); err != nil {
    		t.Fatal(err)
    	}
    
    	exe := filepath.Join(dir, "deduped.exe")
    	out, err := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", exe, srcFile).CombinedOutput()
    	if err != nil {
    		t.Fatalf("build failure: %s\n%s\n", err, string(out))
    	}
    
    	// Result should be runnable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  6. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

            result.addAll(stories)
          }
          return result
        }
    
        /**
         * Checks if `expected` and `observed` are equal when viewed as a set and headers are
         * deduped.
         *
         * TODO: See if duped headers should be preserved on decode and verify.
         */
        private fun assertSetEquals(
          message: String,
          expected: List<Header>,
          observed: List<Header>,
        ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestsForSetsInJavaUtil.java

                    final String[] deduped = dedupe(elements);
                    return new AbstractSet<String>() {
                      @Override
                      public int size() {
                        return deduped.length;
                      }
    
                      @Override
                      public Iterator<String> iterator() {
                        return MinimalCollection.of(deduped).iterator();
                      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/quota/v1/resources.go

    	for _, prefix := range prefixSet {
    		if strings.HasPrefix(string(item), prefix) {
    			return true
    		}
    	}
    	return false
    }
    
    // Intersection returns the intersection of both list of resources, deduped and sorted
    func Intersection(a []corev1.ResourceName, b []corev1.ResourceName) []corev1.ResourceName {
    	result := make([]corev1.ResourceName, 0, len(a))
    	for _, item := range a {
    		if Contains(result, item) {
    			continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 06 23:11:22 UTC 2021
    - 8.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/batch_function_deduplicate.mlir

      func.return %arg0, %arg1 : tensor<?x?xi32>, tensor<?x?xi32>
    }
    
    // Batch function in batch_1 uses the same shared_name as the one in batch_0,
    // so compute_1 is deduped, and compute_0 will be used here.
    // CHECK-LABEL: func private @batch_1
    // CHECK: f = @compute_0
    // CHECK-NOT: f = @compute_1
    func.func private @batch_1(%arg0: tensor<?x?xi32>) -> tensor<*xi32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. pkg/test/framework/components/cluster/clusters.go

    func (c Clusters) Contains(cc Cluster) bool {
    	return c.GetByName(cc.Name()) != nil
    }
    
    // Names returns the deduped list of names of the clusters.
    func (c Clusters) Names() []string {
    	dedup := sets.String{}
    	for _, cc := range c {
    		dedup.Insert(cc.Name())
    	}
    	return dedup.UnsortedList()
    }
    
    type ClustersByNetwork map[string]Clusters
    
    func (c ClustersByNetwork) Networks() []string {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top