// Has returns true iff the Set contains value.
349989
func (s Set) Has(value string) bool {
	_, ret := s[value]
	return ret
}
632891
func (c Claims) Has(key string) bool {
	_, ok := c[key]
	return ok
}
63603
func (s Set) HasAll(values ...string) bool {
	for _, v := range values {
		if !s.Has(v) {
			return false
		}
	}
	return true
}
853388
func (t *LLRB) Has(key Item) bool {
	return t.Get(key) != nil
}
78368
func (s *Set) Has(value interface{}) bool {
	// Lock set for read
	s.mutex.RLock()
	defer s.mutex.RUnlock()

	// Check for value
	if _, ok := s.m[value]; ok {
		// Value found
		return true
	}

	// Value not found
	return false
}
1048222
func (s *Set) Has(items ...interface{}) bool {
	// assume checked for empty item, which not exist
	if len(items) == 0 {
		return false
	}

	s.l.RLock()
	defer s.l.RUnlock()

	has := true
	for _, item := range items {
		if _, has = s.m[item]; !has {
			break
		}
	}
	return has
}
253784
func (s Set) Contains(r rune) bool {
	i := sort.Search(len(s), func(i int) bool { return s[i].Contains(r) || s[i].isAbove(r) })
	if i < len(s) && s[i].Contains(r) {
		return true
	}
	return false
}
1086028
func (p *Package) Has(name string) bool {
	_, has := p.Types[name]
	return has
}
1101825
func (db *GoLevelDB) Has(key []byte) bool {
	return db.Get(key) != nil
}
578085
func (fv FlagValues) Has(name string) bool {
	_, found := fv[name]
	return found
}
549839
func (l builtList) Has(name string) bool {
	_, ok := l[name]
	return ok
}
706339
func (d Data) Has(key string) (interface{}, bool) {
	val, ok := d[key]
	return val, ok
}
199470
func (s StringSet) Contains(str string) bool {
	_, ok := s[str]
	return ok
}
684730
func (s *Set) Has(value string) (exists bool, err error) {
	if s.name == nil {
		return false, ErrDoesNotExist
	}
	return exists, (*bbolt.DB)(s.db).View(func(tx *bbolt.Tx) error {
		bucket := tx.Bucket(s.name)
		if bucket == nil {
			return ErrBucketNotFound
		}
		bucket.ForEach(func(_, byteValue []byte) error {
			if value == string(byteValue) {
				exists = true
				return ErrFoundIt // break the ForEach by returning an error
			}
			return nil // Continue ForEach
		})
		return nil // Return from View function
	})
}
492336
func (n *NetStore) Has(ctx context.Context, ref Address) bool {
	return n.store.Has(ctx, ref)
}
1269857
func (v VersionSet) Has(apiVersion string) bool {
	_, ok := v[apiVersion]
	return ok
}
1048117
func (s Int64) Has(item int64) bool {
	_, contained := s[item]
	return contained
}