Returns an appropriate value for the given name.
505451
def _resolve_value(self, name):
        
        name = str(name)
        if name in self._metadata._meta.elements:
            element = self._metadata._meta.elements[name]

            # Look in instances for an explicit value
            if element.editable:
                value = getattr(self, name)
                if value:
                    return value

            # Otherwise, return an appropriate default value (populate_from)
            populate_from = element.populate_from
            if isinstance(populate_from, collections.Callable):
                return populate_from(self, **self._populate_from_kwargs())
            elif isinstance(populate_from, Literal):
                return populate_from.value
            elif populate_from is not NotSet:
                return self._resolve_value(populate_from)

        # If this is not an element, look for an attribute on metadata
        try:
            value = getattr(self._metadata, name)
        except AttributeError:
            pass
        else:
            if isinstance(value, collections.Callable):
                if getattr(value, '__self__', None):
                    return value(self)
                else:
                    return value(self._metadata, obj=self)
            return value
549042
def get_value(self, name):
        """"""
        value = self.shellwidget.get_value(name)
        # Reset temporal variable where value is saved to
        # save memory
        self.shellwidget._kernel_value = None
        return value
969838
def get(self, name, default=None):
        """"""
        value = self.params.get(name, default)
        if isinstance(value, str):
            value = os.path.expandvars(value)
        return value
69364
public String getValue(String name)
  {
    Attr attr = ((Attr) m_attrs.getNamedItem(name));
    return (null != attr) 
          ? attr.getValue() : null;
  }
55013
private function Value($name)
    {
        $value = Request::PostData($this->prefix . $name);
        return Str::Trim($value);
    }
324801
public V get(String name) {
        V rc = null;
        K key = getKey(name);
        if (null != key) {
            rc = get(key);
        }
        return rc;
    }
429322
private Object get(String name) {

		Object value = find(name);
		if (value == null) {
			throw new IllegalArgumentException("Setting: '" + name + "', not found!");
		}

		return value;
	}
1207415
def get_var(self, name):
        
        for var in self.vars:
            if var.name == name:
                return var
        else:
            raise ValueError
1346343
def require(self, name):
        """"""
        value = self.get(name)
        if value is None:
            raise TypeError(
                "{0} requires the parameter '{1}'.".format(
                    self.__class__, name
                )
            )
        return value
608428
def get(self, name, default=None):
        """"""
        value = self.parameters.get(name)
        self._processed_parameters.append(name)
        if value is None:
            return default
        return value
78570
public void expectValue(String name, String message) {
        String value = Optional.ofNullable(get(name)).orElse("");

        if (StringUtils.isBlank(StringUtils.trimToNull(value))) {
            addError(name, Optional.ofNullable(message).orElse(messages.get(Validation.REQUIRED_KEY.name(), name)));
        }
    }
226975
public synchronized String getValue(String name) {
        if (map == null) {
            return null;
        }
        return map.get(name);
    }
715479
function( name, actual, expected ) {
		return this.ok( name, actual === expected, this.equal, "\nValues should match\nActual:" + actual + "\nExpected:" + expected );
	}
700996
public String getValue(String name) {
        return System.getProperty(name, _map.get(name));
    }
208851
private String getValue(String name) {
        for (YamlProperties yamlProp : yamlProps) {
            String value = yamlProp.getString(name);
            if (value != null)
                return value;
        }
        if (javaProps != null) {
            for (Properties javaProp : javaProps) {
                String value = javaProp.getProperty(name);
                if (value != null)
                    return value;
            }
        }
        return null;
    }
130347
public Object valueIn(String name, Map<String, Object> map) {
        return getMapHelper().getValue(map, name);
    }
653633
public <R> R get(@NotNull final String name, R defaultValue) {
        if (context.containsKey(name)) {
            return get(name);
        } else {
            return defaultValue;
        }
    }