Reset all configuration options to defaults
341025
def reset
      self.adapter        = DEFAULT_ADAPTER
      self.endpoint       = DEFAULT_ENDPOINT
      self.user_agent     = DEFAULT_USER_AGENT
      self.http_user      = DEFAULT_HTTP_USER
      self.http_password  = DEFAULT_HTTP_PASSWORD
    end
191790
def reset_to_default(self):
        """"""
        reset = QMessageBox.warning(self, _("Shortcuts reset"),
                                    _("Do you want to reset "
                                      "to default values?"),
                                    QMessageBox.Yes | QMessageBox.No)
        if reset == QMessageBox.No:
            return
        reset_shortcuts()
        self.main.apply_shortcuts()
        self.table.load_shortcuts()
        self.load_from_conf()
        self.set_modified(False)
1250985
def set_default(name=None, index=None):
    
    default_was_set = False
    count = 1

    for configuration in _CONFIG.sections():
        if index != None:
            if count == index:
                _CONFIG.set(configuration, 'default', True)
                default_was_set = True
            else:
                _CONFIG.remove_option(configuration, 'default')

        if name != None:
            if configuration == name:
                _CONFIG.set(configuration, 'default', True)
                default_was_set = True
            else:
                _CONFIG.remove_option(configuration, 'default')

        count += 1

    if not default_was_set:
        raise JutException('Unable to find %s configuration' % name)

    with open(_CONFIG_FILEPATH, 'w') as configfile:
        _CONFIG.write(configfile)

    info('Configuration updated at %s' % _JUT_HOME)
300544
def reset(self):
        

        # Delete user config file
        try:
            os.remove(self._user_config_file)
        except FileNotFoundError:
            pass

        # Empty and refill the config object
        for section_name in self.sections():
            self.remove_section(section_name)
        self.read_defaults()
95685
def _setDefaults(self):
        

        for configName, configDict in self.configs.items():
            self._setConfig(configName, configDict['default'])
958247
def reset
      self.user_api_key       = DEFAULT_API_KEY
      self.adapter            = DEFAULT_ADAPTER
      self.endpoint           = DEFAULT_ENDPOINT
      self.gitpoint           = DEFAULT_GITPOINT
      self.pushpoint          = DEFAULT_PUSHPOINT
      self.user_agent         = DEFAULT_USER_AGENT
      self.api_version        = DEFAULT_API_VERSION
      self.account            = DEFAULT_ACCOUNT
      self
    end
126571
private static void reset()
    {
        description = null;
        argName = null;
        longopt = null;
        type = String.class;
        required = false;
        numberOfArgs = Option.UNINITIALIZED;
        optionalArg = false;
        valuesep = (char) 0;
    }
158310
def clear_system_defaults
      @region = nil if @region == Rudy::DEFAULT_REGION
      @zone = nil if @zone == Rudy::DEFAULT_ZONE
      @environment = nil if @environment == Rudy::DEFAULT_ENVIRONMENT
      @role = nil if @role == Rudy::DEFAULT_ROLE
      @localhost = nil if @localhost == (Rudy.sysinfo.hostname || 'localhost')
      @auto = nil if @auto == false
    end
1087343
private void resetConfigToDefault() {
    isUseWebservice = true;
    isUpdateAutomatic = true;
    isUseExternalMonomers = false;
    isUseExternalNucleotides = false;
    setUseExternalAttachments(false);
    webserviceMonomersURL = "http://localhost:8080/HELM2MonomerService/rest";
    webserviceMonomersPath = "monomer/";
    webserviceMonomersPutPath = "monomer/";
    webserviceEditorCategorizationURL = "http://localhost:8080";
    webserviceEditorCategorizationPath = "";
    externalNucleotidesPath = "";
    externalMonomersPath = "";
    setExternalAttachmentsPath("");
  }
1079595
def discard_config(self):
        """"""
        self.device.cu.rollback(rb_id=0)
        if not self.config_lock:
            self._unlock()
184652
def merge_with_default_options(self, config_opts):
        """"""
        return dict(list(self.defaults.items()) + list(config_opts.items()))
991359
protected function resetSettings()
    {
        $this->controlAccess('module_edit');
        $this->module->setSettings('frontend', array());
        $this->redirect('', $this->text('Settings have been reset to default values'), 'success');
    }
383039
def remove_defaults(self, *args):
        '''
        
        '''
        for arg in args:
            if arg not in self.defaults:
                raise KeyError('{0}'.format(arg))
        return self.discard_defaults(*args)
460754
def _clear_config(self):
        # type: () -> None
        """"""
        for section in self._config.sections():
            self._config.remove_section(section)
605687
async def restore_default_configuration(self):
        
        self._data = await self._handler.restore_default_configuration(
            system_id=self.system_id)
951571
def reset
      self.apikey = DEFAULT_APIKEY
      self.endpoint = DEFAULT_ENDPOINT
      self.sandbox_endpoint = DEFAULT_SANDBOX_ENDPOINT
      self.sandbox_enabled = DEFAULT_SANDBOX_ENABLED
      self.fmt = DEFAULT_FMT
    end
118307
def restore_default_configuration():
    

    def restore(target, default_value):
        if target == default_value:
            return default_value

        if not isinstance(target, RedirectBuffer):
            return target

        try:
            target.active = False
            target.close()
        except Exception:
            pass

        return default_value

    sys.stdout = restore(sys.stdout, sys.__stdout__)
    sys.stderr = restore(sys.stderr, sys.__stderr__)