Reset $options to static::$default_options, if it exists.
196305
private function preloadDefaults()
    {
        $this->options = array();
        $defaults = static::getDefaults() ?: array();
        foreach ($defaults as $k => $v) {
            $this->options[$k] = $v;
        }
    }
830999
public function setOptions(array $options = [], $reset = false)
    {
        return $this->setSearch(current($options))
                ->setReplace(next($options));
    }
1268598
private function _applyDefaults() {
		foreach($this->_flags as $flag => $settings) {
			$this[$flag] = $settings['default'];
		}

		foreach($this->_options as $option => $settings) {
			// If the default is 0 we should still let it be set.
			if (!empty($settings['default']) || $settings['default'] === 0) {
				$this[$option] = $settings['default'];
			}
		}
	}
1200882
public function setOptions(array $options) : self
    {
        $this->_options = array_replace_recursive($this->getDefaultOptions(), $options);

        return $this;
    }
341959
def reset_to_default(self):
        """"""
        # Checks that this is indeed a default scheme
        scheme = self.current_scheme
        names = self.get_option('names')
        if scheme in names:
            for key in syntaxhighlighters.COLOR_SCHEME_KEYS:
                option = "{0}/{1}".format(scheme, key)
                value = CONF.get_default(self.CONF_SECTION, option)
                self.set_option(option, value)

            self.load_from_conf()
119712
public static function reset() {
		if (empty(self::$_initialState)) {
			self::$_initialState = get_class_vars('Inflector');
			return;
		}
		foreach (self::$_initialState as $key => $val) {
			if ($key != '_initialState') {
				self::${$key} = $val;
			}
		}
	}
234103
def reset(self):
        
        self._options = {}
        self.save(force=True)
        self._success = True
247738
function addDefaultOptions(options, defaultOptions) {

    _.defaults(options, defaultOptions);
    options.currentRetries = 0;
    return options;

}
871207
def set_default_option(cls, key, value):
        """"""
        cls._default_options.update(cls._option_schema({key: value}))
609645
protected function resetAttributes() {
        foreach($this->options as $op=>$junk){
            if(preg_match("#Destination.AttributeList#",$op)){
                unset($this->options[$op]);
            }
        }
    }
1030554
public function cleanOptions($options = [])
    {
        // If item is null or empty we will remove them.
        return collect($options)->reject(function ($item) {
            return empty($item) || is_null($item);
        })->all();
    }
1309013
protected function setDefaultOptions($options = array()) {
        if (!isset($options['padding'])) {
            $plugins = static::getPaddingPluginManager();
            $padding = $plugins->get(self::DEFAULT_PADDING);
            $this->padding = $padding;
        }
    }
691931
def reset!
      Putio::Configurable.keys.each do |key|
        public_send("#{key}=".to_sym, Putio::Defaults.options[key])
      end
      self
    end
1326772
public function resetOptions($keys = null)
    {
        $keys = $keys ? (array) $keys : $this->supportedOptions();
        foreach ($keys as $key) {
            $this->checkOptionKey($key);
            if (isset($this->_options[$key])) {
                unset($this->_options[$key]);
            }
        }

        return $this;
    }
159858
protected function reset()
    {
        $this->scriptName      = null;
        $this->commandName     = null;
        $this->options         = [];
        $this->arguments       = [];

        return $this;
    }
955396
public function resetCurlOptions() {
        unset($this->curlOptions['CURLOPT_HTTPGET']);
        unset($this->curlOptions['CURLOPT_POST']);
        unset($this->curlOptions['CURLOPT_POSTFIELDS']);
        unset($this->curlOptions['CURLOPT_PUT']);
        unset($this->curlOptions['CURLOPT_INFILE']);
        unset($this->curlOptions['CURLOPT_INFILESIZE']);
        unset($this->curlOptions['CURLOPT_CUSTOMREQUEST']);
    }
52528
def change_option_default(self, opt_name, default_val):
        
        if not self.has_option(opt_name):
            raise ValueError("Unknow option name (%s)" % opt_name)
        self._options[opt_name].default = default_val