<commit_before>package cc.cubone.turbo.persistence;

import android.content.Context;

public class PrefAllApps extends Pref {

    public static final int LAYOUT_LIST = 0;
    public static final int LAYOUT_GRID = 1;

    public static final int DISPLAY_ALL = 0;
    public static final int DISPLAY_USER = 1;

    static final String KEY_LAYOUT = "layout";
    static final String KEY_DISPLAY = "display";

    public PrefAllApps(Context context) {
        super(context, "all_apps");
    }

    public int getLayout() {
        return mSp.getInt(KEY_LAYOUT, LAYOUT_LIST);
    }

    public void setLayout(int layout) {
        mSp.edit().putInt(KEY_LAYOUT, layout).apply();
    }

    public int getDisplay() {
        return mSp.getInt(KEY_DISPLAY, DISPLAY_ALL);
    }

    public void setDisplay(int display) {
        mSp.edit().putInt(KEY_DISPLAY, display).apply();
    }
}
<commit_msg>change app display default user<commit_after>package cc.cubone.turbo.persistence;

import android.content.Context;

public class PrefAllApps extends Pref {

    public static final int LAYOUT_LIST = 0;
    public static final int LAYOUT_GRID = 1;

    public static final int DISPLAY_ALL = 0;
    public static final int DISPLAY_USER = 1;

    static final String KEY_LAYOUT = "layout";
    static final String KEY_DISPLAY = "display";

    public PrefAllApps(Context context) {
        super(context, "all_apps");
    }

    public int getLayout() {
        return mSp.getInt(KEY_LAYOUT, LAYOUT_LIST);
    }

    public void setLayout(int layout) {
        mSp.edit().putInt(KEY_LAYOUT, layout).apply();
    }

    public int getDisplay() {
        return mSp.getInt(KEY_DISPLAY, DISPLAY_USER);
    }

    public void setDisplay(int display) {
        mSp.edit().putInt(KEY_DISPLAY, display).apply();
    }
}

{'fraction_non_alphanumeric': 0.09550249861188229, 'fraction_numerical': 0.004441976679622432, 'mean_word_length': 3.1047835990888384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1461796', 'n_tokens_mistral': 587, 'n_tokens_neox': 560, 'n_words': 148}