check if there's a setter
196866
function(errors) {
			//!steal-remove-start
			if (process.env.NODE_ENV !== 'production') {
				clearTimeout(asyncTimer);
			}
			//!steal-remove-end

			var stub = error && error.call(self, errors);
			// if 'validations' is on the page it will trigger
			// the error itself and we dont want to trigger
			// the event twice. :)
			if (stub !== false) {
				mapEventsMixin.dispatch.call(self, 'error', [ prop, errors ], true);
			}
			return false;
		}
224051
@Override
    public boolean isSet(String propName) {
        if (propName.equals("level")) {
            return isSetLevel();
        }
        if (propName.equals("treeView")) {
            return isSetTreeView();
        }
        return super.isSet(propName);
    }
1200757
private boolean isSetter(AptMethod method) {
        String methodName = method.getName();

        if (methodName.length() < 4)
            return false;

        if (!methodName.startsWith("set"))
            return false;

        String argList = method.getArgList();
        if (argList.length() == 0)
            return false;

        if (argList.indexOf(',') > -1)
            return false;

        if (!"void".equals(method.getReturnType()))
            return false;

        return true;
    }
813945
function getGetterSetter(object, name, kind) {
  if (hasProperty(object, name)) {
    const descriptor = descriptorOf(object, name);
    return descriptor[kind] ?  Maybe.Just(descriptor[kind])
    :      /* otherwise */     Maybe.Nothing();
  } else {
    return Maybe.Nothing();
  }
}
819892
function checkAndSetProperty(oControl, property, value) {
			if (value !== undefined) {
				var fSetter = oControl['set' + capitalize(property)];
				if (typeof (fSetter) === "function") {
					fSetter.call(oControl, value);
					return true;
				}
			}
			return false;
		}
614827
def is_decorated_with_property_setter(node):
    
    if not node.decorators:
        return False

    for decorator in node.decorators.nodes:
        if (
            isinstance(decorator, astroid.nodes.Attribute)
            and decorator.attrname == "setter"
        ):
            return True

    return False
23985
def has_value(cls, value: int) -> bool:
        """"""
        return any(value == item.value for item in cls)
1219723
public boolean isSet(_Fields field) {
    if (field == null) {
      throw new IllegalArgumentException();
    }

    switch (field) {
    case HOST:
      return is_set_host();
    case SUPERVISOR_ID:
      return is_set_supervisorId();
    case UPTIME_SECS:
      return is_set_uptimeSecs();
    case NUM_WORKERS:
      return is_set_numWorkers();
    case NUM_USED_WORKERS:
      return is_set_numUsedWorkers();
    case VERSION:
      return is_set_version();
    case BUILD_TS:
      return is_set_buildTs();
    case PORT:
      return is_set_port();
    case ERROR_MESSAGE:
      return is_set_errorMessage();
    }
    throw new IllegalStateException();
  }
865161
def _check_configuration(self, *attrs):
        
        for attr in attrs:
            if getattr(self, attr, None) is None:
                raise ConfigurationError("{} not configured".format(attr))
532045
public static boolean isSetterMethod(final Method method) {
        
        final String methodName = method.getName();
        if(!methodName.startsWith("set")) {
            return false;
            
        } else if(methodName.length() <= 3) {
            return false;
        }
        
        if(method.getParameterCount() != 1) {
            return false;
        }
        
        return true;
        
    }
1081867
public function __isset($helper)
  {
    if (isset($this->_helpers[$helper])) {
      $isset = true;
    } else {
      $isset = !is_null($this->_getHelper($helper));
    }
    return $isset;
  }
1110703
def _find_set_info(set):
    '''
    
    '''

    cmd = '{0} list -t {1}'.format(_ipset_cmd(), set)
    out = __salt__['cmd.run_all'](cmd, python_shell=False)

    if out['retcode'] > 0:
        # Set doesn't exist return false
        return False

    setinfo = {}
    _tmp = out['stdout'].split('\n')
    for item in _tmp:
        # Only split if item has a colon
        if ':' in item:
            key, value = item.split(':', 1)
            setinfo[key] = value[1:]
    return setinfo
1260167
def is_set_on(self, xblock):
        
        # pylint: disable=protected-access
        return self._is_dirty(xblock) or xblock._field_data.has(xblock, self.name)
226967
function(attr) {
      if (attr == null) return !!Object.keys(this.changed).length;
      return _.has(this.changed, attr);
    }
1152661
function hasAtLeastOneKey(target, attrs) {
    var attrsLen = attrs.length;
    var i = 0;
    var counter = 0;
    for (; i < attrsLen; i++) {
      if (target[attrs[i]] !== undefined) {
        counter++;
      }
    }
    return !!counter;
  }
1166704
async def check_presets(cls):
        '''
        
        '''
        rqst = Request(cls.session, 'POST', '/resource/check-presets')
        async with rqst.fetch() as resp:
           return await resp.json()
97731
public boolean isSet(_Fields field) {
    if (field == null) {
      throw new IllegalArgumentException();
    }

    switch (field) {
    case ERROR:
      return is_set_error();
    case ERROR_TIME_SECS:
      return is_set_errorTimeSecs();
    case ERROR_LEVEL:
      return is_set_errorLevel();
    case ERROR_CODE:
      return is_set_errorCode();
    }
    throw new IllegalStateException();
  }