Configure parameters.
546306
protected function configureParameters()
    {
        $this['debug'] = false;

        if (isset($this['parameters']['debug'])) {
            if (is_bool($this['parameters']['debug'])) {
                $this['debug'] = (bool) $this['parameters']['debug'];
            } else {
                if ('true' === (string) strtolower($this['parameters']['debug'])) {
                    $this['debug'] = (bool) true;
                }
            }
        }

        if ($this['debug']) {
            error_reporting(E_ALL);
            ini_set('display_errors', 'on');
        }

        $this['locale'] = 'en_US';
        if (isset($this['parameters']['locale'])) {
            $this['locale'] = $this['parameters']['locale'];
        }
        setlocale(LC_ALL, $this['locale']);

        $this['timezone'] = 'UTC';
        if (isset($this['parameters']['timezone'])) {
            $this['timezone'] = $this['parameters']['timezone'];
        }
        date_default_timezone_set($this['timezone']);
    }
1105702
protected function configureId()
    {
        $this->id = sprintf(
            $this->options['id_format'],
            $this->options['server_name'],
            $this->options['pid'],
            implode(',', $this->queues)
        );
    }
1209476
def setup(self):
        """"""

        self.allow = self.config['allow']
        self.halt = self.config['halt']
        self.skip = self.config['skip']
138371
def set_param(self, key, value):
        
        self.__dict__[key] = value
        self._parameters[key] = value
691176
def set_config_parameter(self, param, value):
        '''

        '''
        with self._mutex:
            if self._obj.set_configuration(param, value) != RTC.RTC_OK:
                raise exceptions.FailedToSetConfigurationError(param, value)
            # Force a reparse of the configuration
            self._configuration = None
414176
protected function configure()
    {
        $config = $this->config->get('app');

        $this->charset = $config['charset'];
        mb_internal_encoding($this->charset);

        date_default_timezone_set($config['timezone']);
    }
1274987
def configure(logstash_host=None, logstash_port=None, logdir=None):
    ''''''

    if not (logstash_host or logstash_port or logdir):
        raise ValueError('you must specify at least one parameter')

    config.logstash.host = logstash_host or config.logstash.host
    config.logstash.port = logstash_port or config.logstash.port
    config.logdir = logdir or config.logdir

    create_logdir(config.logdir)
1006895
@Override
    public void configure(String parameters) {
        coefficients.clear();
        if (parameters.isEmpty()) {
            return;
        }
        List<String> values = Op.split(parameters, " ");
        for (String x : values) {
            coefficients.add(Op.toDouble(x));
        }
    }
422614
def configure(self, config):
        
        parameters = config.get_section("parameters")
        if len(parameters) > 0:
            self._parameters = parameters
271484
@Override
	public void configure(Configuration parameters) {
		super.configure(parameters);
		
		String delimString = parameters.getString(RECORD_DELIMITER, null);
		if (delimString != null) {
			String charsetName = parameters.getString(RECORD_DELIMITER_ENCODING, null);

			if (charsetName == null) {
				setDelimiter(delimString);
			} else {
				try {
					setDelimiter(delimString, charsetName);
				}
				catch (UnsupportedCharsetException e) {
					throw new IllegalArgumentException("The charset with the name '" + charsetName + 
							"' is not supported on this TaskManager instance.", e);
				}
			}
		}
		
		// set the number of samples
		String samplesString = parameters.getString(NUM_STATISTICS_SAMPLES, null);
		if (samplesString != null) {
			try {
				setNumLineSamples(Integer.parseInt(samplesString));
			}
			catch (NumberFormatException e) {
				if (LOG.isWarnEnabled()) {
					LOG.warn("Invalid value for number of samples to take: " + samplesString + ". Skipping sampling.");
				}
				setNumLineSamples(0);
			}
		}
	}
389700
def params(self, dict):
        """"""
        self._configuration.update(dict)
        self._measurements.update()
469054
@Override
	public void configure(Configuration parameters) {
		// pass parameters to FileInputFormat
		super.configure(parameters);

		// read own parameters
		this.recordLength = parameters.getInteger(RECORDLENGTH_PARAMETER_KEY, 0);
		if (recordLength < 1) {
			throw new IllegalArgumentException("The record length parameter must be set and larger than 0.");
		}
	}
726271
public function configure()
    {
        $this->setName($this->command);
        $this->setDescription($this->description);
        $this->arguments();
    }
1031443
private function configure(): void
    {
        $services = array_keys($this->container->findTaggedServiceIds('app.service'));
        foreach ($services as $service) {
            $service = $this->container->get($service);
            $this->services[$service->getName()] = $service;
        }
    }
1290592
@Override
	public void configure(Configuration parameters) {
		super.configure(parameters);
		
		if (charsetName == null || !Charset.isSupported(charsetName)) {
			throw new RuntimeException("Unsupported charset: " + charsetName);
		}
		
		this.decoder = Charset.forName(charsetName).newDecoder();
		this.byteWrapper = ByteBuffer.allocate(1);
	}
832828
public void addConfiguredParam( Parameter param)
    {
    options_.getTransformParams().put( param.getName(), param.getValue());
    }
1144604
protected function specifyParameters()
    {
        // We will loop through all of the arguments and options for the command and
        // set them all on the base command instance. This specifies what can get
        // passed into these commands as "parameters" to control the execution.
        foreach ($this->getArguments() as $arguments)
        {
            call_user_func_array(array($this, 'addArgument'), $arguments);
        }

        // Options (Daemon + Custom)
        $options = $this->daemon ? $this->getDaemonOptions() : [];
        $options = array_merge([], $options, $this->getOptions());
        foreach ($options as $op_item)
        {
            call_user_func_array(array($this, 'addOption'), $op_item);
        }
    }