Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 138 for Intersect (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication.go

    	})
    }
    
    func audiencesAreAcceptable(apiAuds, responseAudiences authenticator.Audiences) bool {
    	if len(apiAuds) == 0 || len(responseAudiences) == 0 {
    		return true
    	}
    
    	return len(apiAuds.Intersect(responseAudiences)) > 0
    }
    
    func isAnonymousUser(u user.Info) bool {
    	if u.GetName() == user.Anonymous {
    		return true
    	}
    	for _, group := range u.GetGroups() {
    		if group == user.AllUnauthenticated {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 12 20:54:07 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DirectoryFileTree.java

        }
    
        @Override
        public File getDir() {
            return dir;
        }
    
        @Override
        public DirectoryFileTree filter(PatternFilterable patterns) {
            PatternSet patternSet = this.patternSet.intersect();
            patternSet.copyFrom(patterns);
            return new DirectoryFileTree(dir, patternSet, fileSystem, postfix);
        }
    
        @Override
        public boolean contains(File file) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 21:33:45 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typeset.go

    		// The type set of an interface is the intersection of the type sets of all its elements.
    		// Due to language restrictions, only embedded interfaces can add methods, they are handled
    		// separately. Here we only need to intersect the term lists and comparable bits.
    		allTerms, allComparable = intersectTermLists(allTerms, allComparable, terms, comparable)
    	}
    
    	ityp.tset.comparable = allComparable
    	if len(allMethods) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go

    				return nil, fmt.Errorf("invalid embedded type %T", embedded)
    			}
    			tset2, err := computeTermSetInternal(embedded, seen, depth+1)
    			if err != nil {
    				return nil, err
    			}
    			tset.terms = tset.terms.intersect(tset2.terms)
    		}
    	case *types.Union:
    		// The term set of a union is the union of term sets of its terms.
    		tset.terms = nil
    		for i := 0; i < u.Len(); i++ {
    			t := u.Term(i)
    			var terms termlist
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  5. src/go/types/typeset.go

    		// The type set of an interface is the intersection of the type sets of all its elements.
    		// Due to language restrictions, only embedded interfaces can add methods, they are handled
    		// separately. Here we only need to intersect the term lists and comparable bits.
    		allTerms, allComparable = intersectTermLists(allTerms, allComparable, terms, comparable)
    	}
    
    	ityp.tset.comparable = allComparable
    	if len(allMethods) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/GeneralRange.java

       * Returns the intersection of the two ranges, or an empty range if their intersection is empty.
       */
      @SuppressWarnings("nullness") // TODO(cpovirk): Add casts as needed. Will be noisy and annoying...
      GeneralRange<T> intersect(GeneralRange<T> other) {
        checkNotNull(other);
        checkArgument(comparator.equals(other.comparator));
    
        boolean hasLowBound = this.hasLowerBound;
        T lowEnd = getLowerEndpoint();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. pkg/util/sets/set_test.go

    	want := New("a", "b")
    
    	t.Run("intersection", func(t *testing.T) {
    		d := s1.Intersection(s2)
    		if !d.Equals(want) {
    			t.Errorf("want %+v, but got %+v", want, d)
    		}
    	})
    
    	t.Run("intersect in replace", func(t *testing.T) {
    		s1c := s1.Copy()
    		d := s1c.IntersectInPlace(s2)
    		if !want.Equals(d) {
    			t.Errorf("want %+v, but got %+v", want, d)
    		}
    		// s1c should be updated
    		if !want.Equals(s1c) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 05:26:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. pilot/pkg/xds/workload.go

    		addresses = req.Delta.Subscribed
    	} else {
    		if w.Wildcard {
    			addresses = updatedAddresses
    		} else {
    			// this is from the external triggers instead of request
    			// send response for all the subscribed intersect with the updated
    			addresses = updatedAddresses.IntersectInPlace(subs)
    		}
    	}
    
    	if !w.Wildcard {
    		// We only need this for on-demand. This allows us to subscribe the client to resources they
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 14:14:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/GeneralRange.java

       * Returns the intersection of the two ranges, or an empty range if their intersection is empty.
       */
      @SuppressWarnings("nullness") // TODO(cpovirk): Add casts as needed. Will be noisy and annoying...
      GeneralRange<T> intersect(GeneralRange<T> other) {
        checkNotNull(other);
        checkArgument(comparator.equals(other.comparator));
    
        boolean hasLowBound = this.hasLowerBound;
        T lowEnd = getLowerEndpoint();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. subprojects/core-api/src/main/java/org/gradle/api/tasks/util/PatternSet.java

            target.excludeSpecs = from.excludeSpecs == null ? null : Sets.newLinkedHashSet(from.excludeSpecs);
        }
    
        public PatternSet intersect() {
            if (isEmpty()) {
                return new PatternSet(this.patternSpecFactory);
            } else {
                return new IntersectionPatternSet(this);
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 15 21:33:45 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top