// contains - Returns boolean indicating whether the plugin was found.
// If the plugin is found the index returned as the second return value.
970482
func (p plugins) Contains(item Plugin) (bool, int) {
	for idx, i := range p {
		if i.Name() == item.Name() && i.Version() == item.Version() && i.TypeName() == item.TypeName() {
			return true, idx
		}
	}
	return false, -1
}
942609
func (e *Error) Contains(sub string) bool {
	if e.err == nil {
		return false
	}
	return strings.Contains(e.formatError(), sub)
}
254811
func (e *domEngine) Contains(c Compo) bool {
	e.mutex.RLock()
	defer e.mutex.RUnlock()

	_, ok := e.compos[c]
	return ok
}
153924
func (options tagOptions) Contains(optionName string) bool {
	s := string(options)
	for s != "" {
		var next string
		i := strings.Index(s, ",")
		if i >= 0 {
			s, next = s[:i], s[i+1:]
		}
		if s == optionName {
			return true
		}
		s = next
	}
	return false
}
1078511
func (s *Set) Contains(key interface{}) bool {
	_, ok := s.skiplist.Get(key)
	return ok
}
596149
func (m *MultiMap) Contains(key interface{}, value interface{}) bool {
	values, found := m.m[key]
	for _, v := range values {
		if v == value {
			return true && found
		}
	}
	return false && found
}
1227389
func (ns *Namespace) Contains(s, substr interface{}) (bool, error) {
	ss, err := cast.ToStringE(s)
	if err != nil {
		return false, err
	}

	su, err := cast.ToStringE(substr)
	if err != nil {
		return false, err
	}

	return _strings.Contains(ss, su), nil
}
941254
func (q Query) Contains(value interface{}) bool {
	next := q.Iterate()

	for item, ok := next(); ok; item, ok = next() {
		if item == value {
			return true
		}
	}

	return false
}
12699
func (s *stringSet) Contains(v string) bool {
	_, ok := s.values[v]
	return ok
}
1247082
func (v *Oid) Contains(o *Oid) bool {
	if o == nil || len(v.Value) < len(o.Value) {
		return false
	}
	for i := 0; i < len(o.Value); i++ {
		if v.Value[i] != o.Value[i] {
			return false
		}
	}
	return true
}
27700
func (t *TSMReader) Contains(key []byte) bool {
	return t.index.Contains(key)
}
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())
}
899360
func (it *Resolver) Contains(ctx context.Context, value graph.Value) bool {
	graph.ContainsLogIn(it, value)
	if !it.cached {
		it.err = it.resolve(ctx)
		if it.err != nil {
			return false
		}
	}
	_, ok := it.nodes[value.Key()]
	return graph.ContainsLogOut(it, value, ok)
}
37991
func (f Format) Contains(sub string) bool {
	return strings.Contains(string(f), sub)
}
993826
func (m *MultiMap) Contains(key interface{}, value interface{}) bool {
	set, found := m.m[key]
	if _, ok := set[value]; ok {
		return true && found
	}
	return false && found
}
1100352
func Contains(slice []string, item string) bool {
	set := make(map[string]struct{}, len(slice))
	for _, s := range slice {
		set[s] = struct{}{}
	}

	_, ok := set[item]
	return ok
}
1333793
func contains(s []string, e string) bool {
	for i := range s {
		if s[i] == e {
			return true
		}
	}
	return false
}