:reek:BooleanParameter
 :reek:TooManyStatements
15741
def git_tag sign: false
      message_file = Tempfile.new Identity.name
      File.open(message_file, "w") { |file| file.write git_message }
      status = system "git tag #{git_options message_file, sign: sign}"
      fail Errors::Git, "Unable to create tag: #{@version}." unless status
    ensure
      message_file.close
      message_file.unlink
    end
16221
public void setBoolean(Enum<?> key, boolean value)
    {
        if (key == null)
        {
            return;
        }

        setBoolean(key.name(), value);
    }
859079
def assert_bool(dist, attr, value):
    """"""
    if bool(value) != value:
        tmpl = "{attr!r} must be a boolean value (got {value!r})"
        raise DistutilsSetupError(tmpl.format(attr=attr, value=value))
358800
def boolean_union(self, entities, delete_first=True, delete_other=True):
        
        out = self._boolean_operation(
            "BooleanUnion",
            [entities[0]],
            entities[1:],
            delete_first=delete_first,
            delete_other=delete_other,
        )
        # Cannot add Compound Surface yet; see
        # <https://gitlab.onelab.info/gmsh/gmsh/issues/525>.
        # if compound:
        #     self._GMSH_CODE.append("Compound Surface {{{}}};".format(out.id))
        return out
1346171
public boolean getBoolean(String key, boolean defaultResponse) {
        Boolean b = (Boolean) get(key);
        if (b != null) {
            return b.booleanValue();
        }
        return defaultResponse;
    }
1150276
@NonNull
    @Override
    public MutableDictionary setBoolean(@NonNull String key, boolean value) {
        return setValue(key, value);
    }
760551
public void putBooleanMapping(String property, Object trueValue, Object falseValue) {
        Map<String, Object> mapping = new HashMap<>(2);
        mapping.put(TRUE, trueValue);
        mapping.put(FALSE, falseValue);
        this.getBooleanMapping().put(property, mapping);
    }
403136
def validate(self, *args, **kwds):
        
        if self.behavior:
            return self.behavior.validate(self, *args, **kwds)
        return True
54257
def _validator(key, val, env):
    
    if not env[key] in (True, False):
        raise SCons.Errors.UserError(
            'Invalid value for boolean option %s: %s' % (key, env[key]))
1267022
@Override
    public Boolean parameterAsBoolean(String name) {
        String parameter = parameter(name);
        try {
            return Boolean.parseBoolean(parameter);
        } catch (Exception e) { //NOSONAR
            return false;
        }
    }
257224
def set_valid(self, boolean):
        '''
        
        '''
        old_state = self.is_valid()
        self.valid_file = boolean

        if old_state != self.valid_file:
            self.call_valid(self.valid_file)
812876
def _check_and_convert_bools(self):
        
        replacements = {
            True: 'T',
            False: 'F',
        }

        for key in self.bools:
            if isinstance(self[key], bool):
                self[key] = replacements[self[key]]
866804
def boolean(description, **kwargs) -> typing.Type:
    
    kwargs['description'] = description
    return type('Boolean', (Boolean,), kwargs)
276420
def arg_bool(name, default=False):
    
    v = request.args.get(name, '')
    if not len(v):
        return default
    return v in BOOL_TRUISH
670478
protected void validateBoolean(String field, String errorKey, String errorMessage) {
		validateBooleanValue(controller.getPara(field), errorKey, errorMessage);
	}
538238
protected void validateBoolean(int index, String errorKey, String errorMessage) {
		validateBooleanValue(controller.getPara(index), errorKey, errorMessage);
	}
647037
function assertBoolean(value, name, description) {
  if (!underscore.isBoolean(value)) {
    throw new Error(
        '<' + value + '> is not a boolean, ' + name + ': ' + description);
  }
}