Retrieve the given property, if it does indeed exist
1491
public function getProperty(PHPStanClassReflection $reflection, string $property) : PHPStanPropertyReflection
	{
		$native = $reflection->getNativeReflection();
		
		if($native->hasMethod("getter_".$property))
			return $this->getUnderscoreGetter($reflection, $property);
		
		return null;
	}
1350963
def then_a_model_exists(context, model_name, key, value):
    
    model = apps.get_model(model_name)
    args = {
        key: value
    }
    obj = model.objects.get(**args)
    assert obj is not None
817403
function getValue(property, attrVal) {
    if ((attrVal === '' || ((property.attrName || property.name) === attrVal)) && property.accepts(Boolean)) {
        return true;
    }
    if (!property.accepts(String)) {
        try {
            return JSON.parse(attrVal);
        } catch (ex) {
            //
        }
    }
    return attrVal;
}
511549
def get_is_property(value, is_bytes=False):
    """"""

    if value.startswith('^'):
        prefix = value[1:3]
        temp = value[3:]
        negate = '^'
    else:
        prefix = value[:2]
        temp = value[2:]
        negate = ''

    if prefix != 'is':
        raise ValueError("Does not start with 'is'!")

    script_obj = unidata.ascii_script_extensions if is_bytes else unidata.unicode_script_extensions
    bin_obj = unidata.ascii_binary if is_bytes else unidata.unicode_binary

    value = negate + unidata.unicode_alias['script'].get(temp, temp)

    if value not in script_obj:
        value = negate + unidata.unicode_alias['binary'].get(temp, temp)
        obj = bin_obj
    else:
        obj = script_obj

    return obj[value]
678893
def has_property(obj, name):
        
        if obj == None:
            raise Exception("Object cannot be null")
        if name == None:
            raise Exception("Property name cannot be null")

        name = name.lower()

        for property_name in dir(obj): 
            if property_name.lower() != name:
                continue

            property = getattr(obj, property_name)

            if PropertyReflector._is_property(property, property_name):
                return True
        
        return False
339511
def get_property(self, key):
        """"""
        _key = DJANGO_CONF[key]
        return getattr(self, _key, CONF_SPEC[_key])
948035
def getattr(self, key):
		
		if key in _MethodFactoryMeta[self.classId]:
			""" property exists """
			return self.__dict__[key]
		else:
			""" property does not exist """
			return None
1272867
def extract_entity(found):
    """"""
    obj = dict()
    for prop in found.entity.property:
        obj[prop.name] = prop.value.string_value
    return obj
1050134
def get(self, item, not_found_value=None):
        ""

        if item in self.keys:
            return self.__data[item]
        else:
            return not_found_value
558103
def get(self, copy=False):
        """"""
        array = getattr(self.owner, self.name)
        if copy:
            return array.copy()
        else:
            return array
1194121
function getPropertyValue(wofData, property) {

  if (wofData.properties.hasOwnProperty(property)) {

    // if the value is an array, return the first item
    if (wofData.properties[property] instanceof Array) {
      return wofData.properties[property][0];
    }

    // otherwise just return the value as is
    return wofData.properties[property];
  }
  return false;
}
521116
def is_true(entity, prop, name):
    ""
    return is_not_empty(entity, prop, name) and name in entity._data and bool(getattr(entity, name))
890150
def get_prop(self, key, default_val=None):
        
        if self.props.has_key(key):
            return self.props[key]
        else:
            return default_val
839891
def getProperty(self, prop, *args, **kwargs):
        
        f = self.__getAttrs.get(prop)
        if not f:
            raise KeyError('Unknown readable property: %s' % prop)
        return f(self, *args, **kwargs)
1229698
private TResult queryForValues(String property) {
		TResult result = null;
		if (has()) {
			result = getDao().queryForEq(COLUMN_PROPERTY, property);
		}
		return result;
	}
1113663
def _get_boolean_property(self, propname):
        
        tblPr = self.tblPr
        if tblPr is None:
            return False
        propval = getattr(tblPr, propname)
        return {
            True:  True,
            False: False,
            None:  False
        }[propval]
451461
async def exist(self, key, param=None):
        """"""
        identity = self._gen_identity(key, param)
        return await self.client.exists(identity)