// Contains determines whether the host is within aws.
11798
func (s *awsIPs) contains(ip net.IP) bool {
	networks := s.getCandidateNetworks(ip)
	for _, network := range networks {
		if network.Contains(ip) {
			return true
		}
	}
	return false
}
664844
func (s Set) Contains(value string) bool {
	_, ok := s[value]
	return ok
}
1303448
func (s *Set) Contains(item interface{}) bool {
	_, ok := s.m[s.hash(item)]
	return ok
}
95443
func (aSpace *addrSpace) contains(space string, nw *net.IPNet) bool {
	for k, v := range aSpace.subnets {
		if space == k.AddressSpace && k.ChildSubnet == "" {
			if nw.Contains(v.Pool.IP) || v.Pool.Contains(nw.IP) {
				return true
			}
		}
	}
	return false
}
1244883
func Contains(list []string, e string) bool {
	for _, x := range list {
		if x == e {
			return true
		}
	}

	return false
}
151849
func (pe *PathExp) Contains(other *PathExp) bool {
	return pe.Org.Contains(other.Org.String()) &&
		pe.Project.Contains(other.Project.String()) &&
		pe.Envs.Contains(other.Envs.String()) &&
		pe.Services.Contains(other.Services.String()) &&
		pe.Identities.Contains(other.Identities.String()) &&
		pe.Instances.Contains(other.Instances.String())
}
738982
func (hm *HashMap) Contains(h Hashable) bool {
	if _, ok := (*hm).keys[h.Hash()]; ok {
		return ok
	}
	return false
}
807392
func (e Entries) Contains(entry *Entry) bool {
	for _, curr := range e {
		if curr.Equals(entry) {
			return true
		}
	}
	return false
}
63616
func (p *DB) Contains(key []byte) bool {
	p.mu.RLock()
	_, exact := p.findGE(key, false)
	p.mu.RUnlock()
	return exact
}
1132856
func (q *EvictingStringQueue) Contains(v string) bool {
	q.mu.Lock()
	defer q.mu.Unlock()
	return q.set[v]
}
605033
func ContainsAll(subject, that []mesos.Resource) bool {
	remaining := mesos.Resources(subject).Clone()
	for i := range that {
		// NOTE: We use contains() because resources only contain valid
		// Resource objects, and we don't want the performance hit of the
		// validity check.
		if !contains(remaining, that[i]) {
			return false
		}
		if that[i].GetDisk().GetPersistence() != nil {
			remaining.Subtract1(that[i])
		}
	}
	return true
}
704440
func (r *NetIDRange) Contains(netid uint32) (bool, uint32) {
	if (netid >= r.Base) && ((netid - r.Base) < r.Size) {
		offset := netid - r.Base
		return true, offset
	}
	return false, 0
}
1333793
func contains(s []string, e string) bool {
	for i := range s {
		if s[i] == e {
			return true
		}
	}
	return false
}
822799
func (set StringSet) Contains(s string) bool {
	_, ok := set[s]
	return ok
}
999219
func (pr *PortRange) Contains(p int) bool {
	return (p >= pr.Base) && ((p - pr.Base) < pr.Size)
}
795035
func (set IdentifierSet) Contains(i Identifier) bool {
	_, found := set[i]
	return found
}
461911
func (a Attributes) Contains(attr string) bool {
	_, ok := a[attr]
	return ok
}