<commit_before>package org.lamport.tla.toolbox.tool.tlc.ui.preference;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.lamport.tla.toolbox.tool.tlc.launch.IModelConfigurationDefaults;
import org.lamport.tla.toolbox.tool.tlc.ui.TLCUIActivator;

/**
 * Class used to initialize default TLC preference values.
 */
public class TLCPreferenceInitializer extends AbstractPreferenceInitializer
{

    /**
     * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
     */
    public void initializeDefaultPreferences()
    {

        IPreferenceStore store = TLCUIActivator.getDefault().getPreferenceStore();
        store.setDefault(ITLCPreferenceConstants.I_TLC_POPUP_ERRORS, true);
        store.setDefault(ITLCPreferenceConstants.I_TLC_REVALIDATE_ON_MODIFY, true);
        store.setDefault(ITLCPreferenceConstants.I_TLC_MAXIMUM_HEAP_SIZE_DEFAULT, 50);
        store.setDefault(ITLCPreferenceConstants.I_TLC_AUTO_LOCK_MODEL_TIME,
                IModelConfigurationDefaults.MODEL_AUTO_LOCK_TIME_DEFAULT);
        // store.setDefault(ITLCPreferenceConstants.I_TLC_DELETE_PREVIOUS_FILES, true);
    }
}
<commit_msg>NEW - bug 253: Default for memory slider should make a better initial suggestion than 50%  https://bugzilla.tlaplus.net/show_bug.cgi?id=253 - Defaults to 25% now<commit_after>package org.lamport.tla.toolbox.tool.tlc.ui.preference;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.lamport.tla.toolbox.tool.tlc.launch.IModelConfigurationDefaults;
import org.lamport.tla.toolbox.tool.tlc.ui.TLCUIActivator;

/**
 * Class used to initialize default TLC preference values.
 */
public class TLCPreferenceInitializer extends AbstractPreferenceInitializer
{

    /**
     * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
     */
    public void initializeDefaultPreferences()
    {

        IPreferenceStore store = TLCUIActivator.getDefault().getPreferenceStore();
        store.setDefault(ITLCPreferenceConstants.I_TLC_POPUP_ERRORS, true);
        store.setDefault(ITLCPreferenceConstants.I_TLC_REVALIDATE_ON_MODIFY, true);
        store.setDefault(ITLCPreferenceConstants.I_TLC_MAXIMUM_HEAP_SIZE_DEFAULT, 25);
        store.setDefault(ITLCPreferenceConstants.I_TLC_AUTO_LOCK_MODEL_TIME,
                IModelConfigurationDefaults.MODEL_AUTO_LOCK_TIME_DEFAULT);
        // store.setDefault(ITLCPreferenceConstants.I_TLC_DELETE_PREVIOUS_FILES, true);
    }
}

{'fraction_non_alphanumeric': 0.08590806330067823, 'fraction_numerical': 0.0052750565184626974, 'mean_word_length': 5.047835990888383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5533806', 'n_tokens_mistral': 841, 'n_tokens_neox': 819, 'n_words': 101}