// Has returns true if the metadata contains the key. Keys with blank values
// will return true.
960513
func (m Metadata) Has(key string) (exists bool) {
	_, exists = m[key]
	return
}
1223525
func (mod Mod) Has(p string) bool {
	for _, v := range mod.All() {
		if filepath.Clean(p) == filepath.Clean(v) {
			return true
		}
	}
	return false
}
660636
func (h *HashMap) Has(owner, key string) (bool, error) {
	rows, err := h.host.db.Query("SELECT "+valCol+" FROM "+h.table+" WHERE "+ownerCol+" = ? AND "+keyCol+" = ?", owner, key)
	if err != nil {
		return false, err
	}
	defer rows.Close()
	var value string
	// Get the value. Should only loop once.
	counter := 0
	for rows.Next() {
		err = rows.Scan(&value)
		if err != nil {
			// Unusual, worthy of panic
			panic(err.Error())
		}
		counter++
	}
	if err := rows.Err(); err != nil {
		// Unusual, worthy of panic
		panic(err.Error())
	}
	if counter > 1 {
		panic("Duplicate keys in hash map! " + value)
	}
	return counter > 0, nil
}
632891
func (c Claims) Has(key string) bool {
	_, ok := c[key]
	return ok
}
211696
func (t *Mutable) Has(key []byte) bool {
	if node, _ := t.get(key); node != nil {
		return true
	}
	return false
}
603261
func (db *Database) Has(key []byte) (bool, error) {
	return db.db.Has(key, nil)
}
706339
func (d Data) Has(key string) (interface{}, bool) {
	val, ok := d[key]
	return val, ok
}
846836
func (ini *INI) Has(section, key string) bool {
	if key == "" {
		return ini.getSection(section) != nil
	}
	return ini.get(section, key) != nil
}
823817
func (b *Builder) Has(name string) bool {
	if _, ok := b.t.cols[name]; ok {
		return true
	}
	if _, ok := b.t.consts[name]; ok {
		return true
	}
	return false
}
1133395
func (f Index) Has(keyFields Item) (bool, error) {
	key, err := f.encodeKeyFunc(keyFields)
	if err != nil {
		return false, err
	}
	return f.db.Has(key)
}
149667
func (snap *dbCacheSnapshot) Has(key []byte) bool {
	// Check the cached entries first.
	if snap.pendingRemove.Has(key) {
		return false
	}
	if snap.pendingKeys.Has(key) {
		return true
	}

	// Consult the database.
	hasKey, _ := snap.dbSnapshot.Has(key, nil)
	return hasKey
}
1130853
func (d *MapDatastore) Has(key Key) (exists bool, err error) {
	_, found := d.values[key]
	return found, nil
}
804716
func (u *User) Has(key string) bool {
	u.RLock()
	defer u.RUnlock()

	_, ok := u.data[key]
	return ok
}
349989
func (s Set) Has(value string) bool {
	_, ret := s[value]
	return ret
}
1336033
func (m Map) Contains(key, value string) bool {
	for _, v := range m[key] {
		if v == value {
			return true
		}
	}
	return false
}
1337091
func (c *Context) Has(key string) bool {
	return c.Get(key) != nil
}
915944
func (s Int32) Has(item int32) bool {
	_, contained := s[item]
	return contained
}