Skip the question if flag is set and return the default instead.
973750
def skip_if(self, condition: bool, default: Any = None) -> 'Question':
        """"""

        self.should_skip_question = condition
        self.default = default
        return self
93076
def remove_flag(self, flag):
        
        if self.has_flag(flag):
            del self._flags[flag.lower()]
182489
def filtered(self):
        """"""
        if not is_tagged(self.tags, self.opt.tags):
            LOG.info("Skipping %s as it does not have requested tags",
                     self.path)
            return False

        if not specific_path_check(self.path, self.opt):
            LOG.info("Skipping %s as it does not match specified paths",
                     self.path)
            return False

        return True
132923
function skip( testName ) {
	if ( focused )  { return; }

	var test = new Test( {
		testName: testName,
		skip: true
	} );

	test.queue();
}
1149151
def _ignore_request(self, path):
        """"""
        return any([
            re.match(pattern, path) for pattern in QC_SETTINGS['IGNORE_REQUEST_PATTERNS']
        ])
60009
def SkipToken(obj, eng, callbacks, exc_info):
        """"""
        msg = "Skipped running this object: {0}".format(obj.id)
        eng.log.debug(msg)
        raise Continue
716849
def skip(self):
        """"""
        # Should we skip?
        if self.skip_list and isinstance(self.skip_list, list):
            for skip in self.skip_list:
                if request.path.startswith('/{0}'.format(skip)):
                    return True
        return False
280613
def reset_flags(self):
        
        self.C = None
        self.Z = None
        self.P = None
        self.S = None
44132
def ask(self, question, default=False):
        
        choices = '[%s/%s]' % ('Y' if default else 'y', 'n' if default else 'N')
        while True:
            response = raw_input('%s %s' % (question, choices)).strip()
            if not response:
                return default
            elif response in 'yYoO':
                return True
            elif response in 'nN':
                return False
921267
function flag(input) {
  if (!CODE_RE.test(input) || input === 'UK') {
    input = nameToCode(input);
  }

  return codeToFlag(input);
}
1125525
def ask(question, default=None):
    
    question = str(question)

    if default:
        question += ' [' + str(default) + ']'

    question += ': '

    reply = raw_input(question)
    return reply if reply else default
654406
def ask_str(question: str, default: str = None):
    """"""
    default_q = " [default: {0}]: ".format(
        default) if default is not None else ""
    answer = input("{0} [{1}]: ".format(question, default_q))

    if answer == "":
        return default
    return answer
320113
private void checkForDuplicateDefault(List<Stmt.Case> cases) {
		boolean hasDefault = false;
		for(int i=0;i!=cases.size();++i) {
			Stmt.Case c = cases.get(i);
			if (c.getConditions().size() > 0 && hasDefault) {
				syntaxError("unreachable code", c);
			} else if (c.getConditions().size() == 0 && hasDefault) {
				syntaxError("duplicate default label", c);
			} else {
				hasDefault = c.getConditions().size() == 0;
			}
		}
	}
988423
def choice_default_invalidator(self, obj):
        """"""
        invalid = [('Question', obj.question_id, True)]
        for pk in obj.voters.values_list('pk', flat=True):
            invalid.append(('User', pk, False))
        return invalid
1139939
public function setRequired(bool $flag = null): QuestionPrompt
    {
        $this->required = $flag ?? true;

        return $this;
    }
798533
def _ask(question, default=None, data_type='str', show_hint=False):
    """"""

    data = default

    if data_type == 'bool':
        data = None
        default_string = "Y" if default else "N"

        while data not in ('Y', 'J', 'N', '1', '0'):
            data = input("%s? [%s]: " % (question, default_string)).upper()

            if data == '':
                return default

        return data in ('Y', 'J', '1')

    elif data_type in ('str', 'unicode'):
        if show_hint:
            msg = "%s? [%s] (%s): " % (question, default, data_type)
        else:
            msg = question

        data = input(msg)

        if len(data) == 0:
            data = default
    elif data_type == 'int':
        if show_hint:
            msg = "%s? [%s] (%s): " % (question, default, data_type)
        else:
            msg = question

        data = input(msg)

        if len(data) == 0:
            data = int(default)
        else:
            data = int(data)

    return data
113859
def yes_no_query(question):
    

    print("{} (y/n)".format(question), end=" "),
    while True:
        try:
            return strtobool(input().lower())
        except ValueError:
            print("Please respond with 'y' or 'n'.")