// Includes returns true if the string matches matches the include patterns.
167310
func (c *Constraint) Includes(v string) bool {
	for _, pattern := range c.Include {
		if ok, _ := filepath.Match(pattern, v); ok {
			return true
		}
	}
	return false
}
152330
func (api *ArchiveAPI) Include(key string) *ArchiveAPI {
	api.include(key)
	return api
}
31214
func (q *TransactionQuery) Include(fields ...string) *TransactionQuery {
	q.query.Include(fields...)
	return q
}
692250
func IsMatches(str, pattern string) bool {
	match, _ := regexp.MatchString(pattern, str)
	return match
}
822799
func (set StringSet) Contains(s string) bool {
	_, ok := set[s]
	return ok
}
172668
func (t Term) Includes(args ...interface{}) Term {
	return constructMethodTerm(t, "Includes", p.Term_INCLUDES, args, map[string]interface{}{})
}
841253
func (api *NoteAPI) Include(key string) *NoteAPI {
	api.include(key)
	return api
}
94485
func IncludesAny(target string, strs []string) bool {
	for _, str := range strs {
		if target == str {
			return true
		}
	}
	return false
}
243032
func (k *Keyspace) Includes(hash uint64) bool {
	if k == nil {
		return false
	}
	a := hash
	s := k.Start
	e := k.End
	return s <= a && a < e || a < e && e < s || e < s && s <= a
}
858394
func (s String) Has(item string) bool {
	_, contained := s[item]
	return contained
}
1042966
func Contains(a interface{}, b interface{}) BoolPredicate {
	return func() bool {
		aval, ok := a.([]string)
		if !ok {
			return false
		}
		bval, ok := b.(string)
		if !ok {
			return false
		}
		for _, v := range aval {
			if v == bval {
				return true
			}
		}
		return false
	}
}
1323076
func contains(slice []string, entry string) bool {
	for _, element := range slice {
		if element == entry {
			return true
		}
	}
	return false
}
1048964
func (fsc *FetchSourceContext) Include(includes ...string) *FetchSourceContext {
	fsc.includes = append(fsc.includes, includes...)
	return fsc
}
1012893
func (d *Dependencies) includes(needle string) bool {
	for _, name := range d.All {
		if name == needle {
			return true
		}
	}
	return false
}
102200
func (api *SIMAPI) Include(key string) *SIMAPI {
	api.include(key)
	return api
}
587329
func (q *MoreLikeThisQuery) Include(include bool) *MoreLikeThisQuery {
	q.include = &include
	return q
}
1327255
func (ss *StringSet) Contains(subj string) bool {
	for _, s := range *ss {
		if glob.Glob(s, subj) {
			return true
		}
	}

	return false
}