Restores the default values of all preferences, which are contained by the fragment.
543292
public final void restoreDefaults() {
        SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences();

        if (getPreferenceScreen() != null) {
            restoreDefaults(getPreferenceScreen(), sharedPreferences);
        }
    }
535703
private void restoreDefaultSettings() {
        if (getProject() != null) {
            // By default, don't run FindBugs automatically
            chkEnableFindBugs.setSelection(false);
            chkRunAtFullBuild.setEnabled(false);
            FindBugsPreferenceInitializer.restoreDefaults(projectStore);
        } else {
            FindBugsPreferenceInitializer.restoreDefaults(workspaceStore);
        }
        currentUserPreferences = FindBugsPreferenceInitializer.createDefaultUserPreferences();
        refreshUI(currentUserPreferences);
    }
258736
def default_preference_list(self, prefs):
        
        prefs = _check_preferences(prefs)
        if prefs is not None:
            self._prefs = prefs
125367
def reset(self):
        
        for i in range(len(self.values)):
            self.values[i].delete(0, tk.END)

            if self.defaults[i] is not None:
                self.values[i].insert(0, self.defaults[i])
529827
private void initializeAppearanceNavigationPreference(
            @NonNull final PreferenceFragmentCompat fragment) {
        String key = getString(R.string.appearance_navigation_preference_key);
        NavigationPreference navigationPreference =
                (NavigationPreference) fragment.findPreference(key);
        Bundle extras = new Bundle();
        extras.putBoolean(PreferenceFragment.EXTRA_SHOW_RESTORE_DEFAULTS_BUTTON, true);
        navigationPreference.setExtras(extras);

    }
838922
def _set_defaults(self):
        
        self.contents.setdefault('log', [])
        self.contents.setdefault('rollback', None)
        self.contents.setdefault('rollforward', None)
83519
private void resetValues(final Constraint constraintContainer) {
		log.info("Reset " + key + " form data");
		for (FormEntry e : entries.values()) {
			e.resetValue();
		}
		constraintContainer.resetValues();
	}
259540
function preferencesInitialize() {
          return this.initializedPromise = defaultPreferences.then(function (defaults) {
            Object.defineProperty(this, 'defaults', {
              value: Object.freeze(defaults),
              writable: false,
              enumerable: true,
              configurable: false
            });
            this.prefs = cloneObj(defaults);
            return this._readFromStorage(defaults);
          }.bind(this)).then(function (prefObj) {
            this.isInitializedPromiseResolved = true;
            if (prefObj) {
              this.prefs = prefObj;
            }
          }.bind(this));
        }
1222366
def restore_defaults_ratio(self):
        """"""
        # Set the flag to true because user ask to.
        self.is_restore_default = True
        # remove current default ratio
        for i in reversed(list(range(self.container_layout.count()))):
            widget = self.container_layout.itemAt(i).widget()
            if widget is not None:
                widget.setParent(None)

        # reload default ratio
        self.restore_default_values_page()
1083455
function preferencesReset() {
    return this.initializedPromise.then(function() {
      this.prefs = Object.create(DEFAULT_PREFERENCES);
      return this._writeToStorage(DEFAULT_PREFERENCES);
    }.bind(this));
  }
303884
def set_to_default(section, key):
    
    section[key] = section.default_values.get(key, section[key])
767934
private void restore() {

        Element parent = getElement().getParentElement();
        if (parent != null) {
            parent.getStyle().clearZIndex();
        }
        getElement().getStyle().setVisibility(Visibility.HIDDEN);
    }
138086
private void obtainRestoreDefaultsButtonText() {
        CharSequence text;

        try {
            text = ThemeUtil.getText(getActivity(), R.attr.restoreDefaultsButtonText);
        } catch (NotFoundException e) {
            text = getText(R.string.restore_defaults_button_text);
        }

        setRestoreDefaultsButtonText(text);
    }
1291705
public void restoreComponentsValue() {
        targetBulkTokenTags.populateContainer();
        final TargetBulkUpload targetBulkUpload = managementUIState.getTargetTableFilters().getBulkUpload();
        progressBar.setValue(targetBulkUpload.getProgressBarCurrentValue());
        dsNamecomboBox.setValue(targetBulkUpload.getDsNameAndVersion());
        descTextArea.setValue(targetBulkUpload.getDescription());
        targetBulkTokenTags.addAlreadySelectedTags();

        if (targetBulkUpload.getProgressBarCurrentValue() >= 1) {
            targetsCountLabel.setVisible(true);
            targetsCountLabel.setCaption(getFormattedCountLabelValue(targetBulkUpload.getSucessfulUploadCount(),
                    targetBulkUpload.getFailedUploadCount()));
        }
    }
605687
async def restore_default_configuration(self):
        
        self._data = await self._handler.restore_default_configuration(
            system_id=self.system_id)
543698
public void restoreSavedSettings() {
        if (mCallbacks.loadExtensionSetting(SETTING_PROXY) != null) {
            jCheckBoxProxy.setSelected(getSetting(SETTING_PROXY));
        }
        if (mCallbacks.loadExtensionSetting(SETTING_REPEATER) != null) {
            jCheckBoxRepeater.setSelected(getSetting(SETTING_REPEATER));
        }
        if (mCallbacks.loadExtensionSetting(SETTING_SCANNER) != null) {
            jCheckBoxScanner.setSelected(getSetting(SETTING_SCANNER));
        }
        if (mCallbacks.loadExtensionSetting(SETTING_INTRUDER) != null) {
            jCheckBoxIntruder.setSelected(getSetting(SETTING_INTRUDER));
        }
        if (mCallbacks.loadExtensionSetting(SETTING_SEQUENCER) != null) {
            jCheckBoxSequencer.setSelected(getSetting(SETTING_SEQUENCER));
        }
        if (mCallbacks.loadExtensionSetting(SETTING_SPIDER) != null) {
            jCheckBoxSpider.setSelected(getSetting(SETTING_SPIDER));
        }
        if (mCallbacks.loadExtensionSetting(SETTING_EXTENDER) != null) {
            jCheckBoxExtender.setSelected(getSetting(SETTING_EXTENDER));
        }
    }
800316
def reset_defaults
      names_set = {}
      self.class.ancestors.each do |klass| # look at all ancestors
        defaults =
          klass.instance_variable_defined?("@defaults") &&
          klass.instance_variable_get("@defaults")
        next unless defaults
        defaults.each do |key, value|
          next if names_set[key]
          names_set[key] = true
          self[key] = Proc === value ? value.call : value
        end
      end
    end