// Is returns true if state is the current state.
325894
func (f *FSM) Is(state string) bool {
	f.stateMu.RLock()
	defer f.stateMu.RUnlock()
	return state == f.current
}
855439
func isNewGUI(st *state.State) bool {
	vers, err := st.GUIVersion()
	if err != nil {
		logger.Warningf("cannot retrieve GUI version: %v", err)
		// Assume a recent version of the GUI is being served.
		return true
	}
	return vers.Major > 2 || (vers.Major == 2 && vers.Minor >= 3)
}
839706
func (is *Is) True(b bool) {
	is.TB.Helper()
	if !b {
		fail(is, "expected boolean to be true")
	}
}
1253956
func (this *Request) Is(t string) bool {
	h := this.Get("Content-Type")
	return strings.ToLower(h) == strings.ToLower(t)
}
772236
func (s *Selection) Is(selector string) bool {
	return s.IsMatcher(compileMatcher(selector))
}
571603
func IsInState(ctx context.Context, client client.APIClient, containerID string, state ...string) func(log poll.LogT) poll.Result {
	return func(log poll.LogT) poll.Result {
		inspect, err := client.ContainerInspect(ctx, containerID)
		if err != nil {
			return poll.Error(err)
		}
		for _, v := range state {
			if inspect.State.Status == v {
				return poll.Success()
			}
		}
		return poll.Continue("waiting for container to be one of (%s), currently %s", strings.Join(state, ", "), inspect.State.Status)
	}
}
311051
func NewState(name string) State {
	s := State{
		Name:    name,
		IsMoved: false,
		Chain:   "",
	}

	return s
}
869360
func (sm *SyncManager) IsCurrent() bool {
	reply := make(chan bool)
	sm.msgChan <- isCurrentMsg{reply: reply}
	return <-reply
}
1330722
func IsColor(ctx context.Context) bool {
	bv, ok := ctx.Value(ctxKeyColor).(bool)
	if !ok {
		return true
	}
	return bv
}
818782
func (e *ErrorClass) Is(parent *ErrorClass) bool {
	for check := e; check != nil; check = check.parent {
		if check == parent {
			return true
		}
	}
	return false
}
865452
func (c *CLI) IsVersion() bool {
	c.once.Do(c.init)
	return c.isVersion
}
825740
func (h *haManager) state() seesaw.HAState {
	h.statusLock.RLock()
	defer h.statusLock.RUnlock()
	return h.status.State
}
510523
func (p *parser) isStatement() bool {
	if !p.have(1) {
		return false
	}

	switch p.next().Kind {
	case lexer.TokenOpen, lexer.TokenOpenUnescaped, lexer.TokenOpenBlock,
		lexer.TokenOpenInverse, lexer.TokenOpenRawBlock, lexer.TokenOpenPartial,
		lexer.TokenContent, lexer.TokenComment:
		return true
	}

	return false
}
21018
func (s *StringFlag) IsSet() bool {
	if s != nil && s.string != nil {
		return true
	}
	return false
}
872458
func (sc *SetComprehension) IsGround() bool {
	return sc.Term.IsGround() && sc.Body.IsGround()
}
1035683
func (oc *ObjectComprehension) IsGround() bool {
	return oc.Key.IsGround() && oc.Value.IsGround() && oc.Body.IsGround()
}
43231
func is(lhs Expression, val interface{}) BooleanExpression {
	return checkBoolExpType(IS_OP, lhs, val, false)
}