Set the whole configuration for a key
776200
def set_configs(self, key, d):
        """"""
        if '_config' in self.proxy:
            self.proxy['_config'][key] = d
        else:
            self.proxy['_config'] = {key: d}
431177
def set_config(self, key, value):
        

        keyname = "config:" + key

        self.kvstore.set(keyname, value)
534930
def set_key(self, key):
        
        is_non_empty_string(key)

        self.policies.append(('eq', '$key', key))
        self.form_data['key'] = key
        self.key = key
303884
def set_to_default(section, key):
    
    section[key] = section.default_values.get(key, section[key])
1307603
function(key, data) {
        var currentData;
        currentData = settings[key] || {};
        settings[key] = _.extend(currentData, data);
      }
203633
def set key, value
      # capture new value in instance
      send("#{key}=", value)
      attributes.merge!(key => value)
      # and store it
      File.write UserConfig.config_path, YAML.dump(attributes)
    end
1116613
def cmd_config_set(key, value):
    

    habucfg = loadcfg(environment=False)
    habucfg[key.upper()] = value
    with Path('~/.habu.json').expanduser().open('w') as f:
        f.write(json.dumps(habucfg, indent=4, sort_keys=True))
470489
def setKey(self, key):
		""""""
		self.key_size = 24  # Use DES-EDE3 mode
		if len(key) != self.key_size:
			if len(key) == 16: # Use DES-EDE2 mode
				self.key_size = 16
			else:
				raise ValueError("Invalid triple DES key size. Key must be either 16 or 24 bytes long")
		if self.getMode() == CBC:
			if not self.getIV():
				# Use the first 8 bytes of the key
				self._iv = key[:self.block_size]
			if len(self.getIV()) != self.block_size:
				raise ValueError("Invalid IV, must be 8 bytes in length")
		self.__key1 = des(key[:8], self._mode, self._iv,
				  self._padding, self._padmode)
		self.__key2 = des(key[8:16], self._mode, self._iv,
				  self._padding, self._padmode)
		if self.key_size == 16:
			self.__key3 = self.__key1
		else:
			self.__key3 = des(key[16:], self._mode, self._iv,
					  self._padding, self._padmode)
		_baseDes.setKey(self, key)
100013
public Configuration set(String key, String value) {
    checkReadOnly();

    properties.put(key, value);
    return this;
  }
417127
def append_config_item(self, key, value):
        

        return _lxc.Container.set_config_item(self, key, value)
1088015
function applyKey(config, keyPath, value) {
    var currentKey;

    if (Array.isArray(keyPath)) {
        if (config[keyPath[0]] === undefined) { // eslint-disable-line no-undefined
            return;
        }

        currentKey = keyPath.shift();

        if (keyPath.length === 0) {
            config[currentKey] = value;
            return;
        }

        applyKey(config[currentKey], keyPath, value);
    }
}
967675
def config(client, key, value):
    """"""
    if value is None:
        cfg = client.repo.config_reader()
        click.echo(cfg.get_value(*_split_section_and_key(key)))
    else:
        with client.repo.config_writer() as cfg:
            section, config_key = _split_section_and_key(key)
            cfg.set_value(section, config_key, value)
            click.echo(value)
727956
def set(self, key, value):
        
        if self._component.get(key, raw=True) != value:
            self._component[key] = value
            self._main_config.dirty = True
571248
def config(key, default=None):
    
    return Mocha._app.config.get(key, default) if Mocha._app else default
909158
function setKey(key) {
  this.key = key;
  this.node = this.container[this.key];
  this.type = this.node && this.node.type;
}
1095931
def set(self, key, value):
        """"""
        self.store[key]=value
        return self.store
786512
def configure(paths, relative_to):

    """"""

    if not paths:
        return
    for path in [normalize_path(p, relative_to) for p in paths]:
        logger.debug('configuration path {0}'.format(path))
        pubkeys_path = join(path, PUBKEYSDIR)
        if os.path.exists(pubkeys_path):
            load_pubkeys(pubkeys_path, PUBKEYS)
        init_module(path)