// HasScope checks if the token has the specified scope
338408
func (claims *Claims) HasScope(scope string) bool {
	return claims != nil && contains(claims.Scope, scope)
}
910798
func (p *propScope) IsSharedScope() bool {
	if p == nil {
		return false
	}
	return p.Scope == string(ESCopeShared)
}
1161113
func (s *Style) Has(ttype TokenType) bool {
	return !s.get(ttype).IsZero() || s.synthesisable(ttype)
}
1373722
func HasTokens(filename, section string) bool {
	config, err := ini.Load(filename)
	if err != nil {
		return false
	}

	tokens, err := config.GetSection(section)

	if err != nil {
		return false
	}

	if tokens.Key("kumoru_token_public").String() == "" || tokens.Key("kumoru_token_private").String() == "" {
		return false
	}

	return true

}
138558
func Has(keyvals []KeyVal, keyword string) []KeyVal {
	return HasKeyword(keyvals, Keyword(keyword))
}
368377
func (p *propScope) IsUserScope() bool {
	if p == nil {
		return false
	}
	return p.Scope == string(ESCopeUser)
}
1217794
func (n *NodeAuthorizer) hasToken(token *Token) (bool, error) {
	resp, err := n.client.CoreV1().Secrets(tokenNamespace).List(metav1.ListOptions{
		LabelSelector: "name=" + token.Name(),
		Limit:         1,
	})
	if err != nil {
		return false, err
	}

	return len(resp.Items) > 0, nil
}
920300
func (s *Server) HasChannel(name string) bool {
	_, ok := s.channels[name]
	return ok
}
284659
func (ctx *Context) PopScope() {
	l := len(ctx.scopes)
	if l == 0 {
		panic("no scopes")
	}

	ctx.scopes = ctx.scopes[:l-1]
}
297173
func (p *peer) hasChannel(chID byte) bool {
	for _, ch := range p.channels {
		if ch == chID {
			return true
		}
	}
	// NOTE: probably will want to remove this
	// but could be helpful while the feature is new
	p.Logger.Debug(
		"Unknown channel for peer",
		"channel",
		chID,
		"channels",
		p.channels,
	)
	return false
}
900666
func (c *Connector) ScopeExists(ctx context.Context, scope string) (bool, error) {
	panic("not implemented")
}
914754
func (c *FormatCheckerChain) Has(name string) bool {
	lock.Lock()
	_, ok := c.formatters[name]
	lock.Unlock()

	return ok
}
29208
func (r *Allocator) Has(block uid.Block) bool {
	ok, offset := r.contains(block)
	if !ok {
		return false
	}

	return r.alloc.Has(int(offset))
}
1035657
func (m *Table) HasField(name string) bool {
	if _, ok := m.FieldMap[name]; ok {
		return true
	}
	return false
}
421329
func (vm *Engine) hasFlag(flag ScriptFlags) bool {
	return vm.flags&flag == flag
}
1000406
func hasOption(opt int, options []int) bool {
	for _, v := range options {
		if opt == v {
			return true
		}
	}

	return false
}
30303
func (r *apiHandler) HasPermission(operation permission.Access, target names.Tag) (bool, error) {
	return common.HasPermission(r.state.UserPermission, r.entity.Tag(), operation, target)
}