Produce a string from holder[key].
172850
function str(key, holder) {
		var mind = gap, value = holder[key];
		
		// If the value has a toJSON method, call it to obtain a replacement value.
		if (value && typeof value === 'object' && typeof value.toJSON === 'function') {
			value = value.toJSON(key);
		}
		
		// If we were called with a replacer function, then call the replacer to
		// obtain a replacement value.
		if (typeof rep === 'function') { value = rep.call(holder, key, value); }
		
		switch (typeof value) {
			case 'string':
				return quote(value);
			case 'number':
				// JSON numbers must be finite
				return isFinite(value) ? String(value) : 'null';
			case 'boolean':
				return String(value);
			case 'object': // object, array, date, null
				if (value === null) { return 'null'; } // typeof null == 'object'
				if (value.constructor === Date) { return exports.stringifyDate(value); }
			
				gap += indent;
				var partial = [];
				
				// Is the value an array?
				if (value.constructor === Array) {
					var length = value.length;
					for (var i = 0; i < length; i += 1) {
						partial[i] = str(i, value) || 'null';
					}
					
					// Join all of the elements together, separated with commas, and wrap them in brackets.
					var v = partial.length === 0 ? '[]' :
						gap ? '[\n' + gap +
								partial.join(',\n' + gap) + '\n' +
									mind + ']' :
							  '[' + partial.join(',') + ']';
					gap = mind;
					return v;
				}
				
				if (rep && typeof rep === 'object') { // rep is an array
					var length = rep.length;
					for (var i = 0; i < length; i += 1) {
						var k = rep[i];
						if (typeof k === 'string') {
							var v = str(k, value);
							if (v) {
								partial.push(quote(k) + (gap ? ': ' : ':') + v);
							}
						}
					}
				} else { // iterate through all of the keys in the object.
					for (var k in value) {
						if (Object.hasOwnProperty.call(value, k)) {
							var v = str(k, value);
							if (v) {
								partial.push(quote(k) + (gap ? ': ' : ':') + v);
							}
						}
					}
				}

				// Join all of the member texts together, separated with commas,
				// and wrap them in braces.
				var v = partial.length === 0 ? '{}' :
					gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' +
							mind + '}' : '{' + partial.join(',') + '}';
				gap = mind;
				return v;
		}
	}
777991
def gen_key(self, *values):
        """"""
        key = md5()
        KeyGen._recursive_convert(values, key)
        return key.hexdigest()
19803
public String getString(final String key) {
    if (containsKey(key)) {
      return get(key);
    } else {
      throw new UndefinedPropertyException("Missing required property '" + key
          + "'");
    }
  }
959760
def _key_from_json(self, data):
        
        key = Key()
        key.algorithm = data["Algorithm"]
        key.cipher_mode = data["CipherMode"]
        key.expiration = datetime.strptime(data["Expiration"].split(".")[0],
                                           "%Y-%m-%dT%H:%M:%S")
        key.key_id = data["ID"]
        key.key = data["Key"]
        key.size = data["KeySize"]
        key.url = data["KeyUrl"]
        return key
1054815
def get_string(self, key):
        """"""
        if key not in self.all_options:
            kwargs = {}
            if len(self.chain) > 1:
                kwargs['source'] = Meta(self.all_options, self.chain[-2]).source
            raise BadOptionFormat("Can't find key in options", key=key, chain=self.chain, **kwargs)

        # Make sure we special case the "content" option
        if type(key) is str and key.startswith("content."):
            return self.no_format(self.all_options["content"][key[8:]])
        if type(key) is list and len(key) is 2 and key[0] == "content":
            return self.no_format(self.all_options[key])

        return super(MergedOptionStringFormatter, self).get_string(key)
473292
def _docstring_key(self, line):
        """"""
        decormatch = self.docparser.RE_DECOR.match(line)
        if decormatch is not None:
            key = "{}.{}".format(self.docelement.name, decormatch.group("name"))
        else:
            key = self.element.name

        return key
860125
def _stringifyKeys(d):
    
    return dict((k.encode('ascii'), v)  for (k, v) in d.iteritems())
1077642
def format_item(self, item):
        ""
        result = {
            'id': self.get_item_id(item),
            'value': self.get_item_value(item),
            'label': self.get_item_label(item),
        }
        for key in settings.SELECTABLE_ESCAPED_KEYS:
            if key in result:
                result[key] = conditional_escape(result[key])
        return result
253593
function parsePullDownPlaceHolders( str ) {
	log( "Pong-PullDown",  "parsePullDownPlaceHolders: "+ str );
	for (var key in sessionInfo) {
		if ( str.indexOf( '${'+key+'}' ) >=0 ) {
			str = str.replace( '${'+key+'}', $.i18n( sessionInfo[key] ) );
		}
	}
	log( "Pong-PullDown", "Processed value: "+ str );
	return str;
}
471177
def from_text(textring):
    """"""

    keyring = {}
    for keytext in textring:
        keyname = dns.name.from_text(keytext)
        secret = base64.decodestring(textring[keytext])
        keyring[keyname] = secret
    return keyring
611530
def _iter_keys_as_str(key):
    
    for i in range(winreg.QueryInfoKey(key)[0]):
        yield winreg.EnumKey(key, i)
505438
public String getString(String key) {
		if (key == null || key.isEmpty()) {
			return null;
		}
		String property = null;
		for (ConfigurationSource configurationSource : configurationSources) {
			property = configurationSource.getValue(key);
			if (property != null) {
				break;
			}
		}
		return property;
	}
331116
def pretty_dict_str(d, indent=2):
    """"""
    b = StringIO()
    write_pretty_dict_str(b, d, indent=indent)
    return b.getvalue()
797759
def fetch_key(key)
      string_key = key.to_s
      keys.detect { |k| k.to_s.casecmp(string_key) == 0 }
    end
898751
def get_string_list(self, key):
        """"""
        strings = []
        size = self.beginReadArray(key)
        for i in range(size):
            self.setArrayIndex(i)
            entry = str(self._value("entry"))
            strings.append(entry)
        self.endArray()
        return strings
1293109
public String getString(String key) {
        Object tmp = objectMap.get(key);
        return tmp == null ? null : tmp.toString();
    }
255387
def tostring(self, inject):
        """"""
        return inject(self, '\n'.join(document.tostring(inject) for document in self.documents))