<commit_before>package fr.neamar.kiss;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;

public class SettingsActivity extends PreferenceActivity implements
        SharedPreferences.OnSharedPreferenceChangeListener {

    // Those settings can be set without resetting the DataHandler
    private String safeSettings = "theme enable-spellcheck display-keyboard root-mode require-layout-update";
    // Those settings require the app to restart
    private String requireRestartSettings = "theme enable-spellcheck force-portrait";
    private SharedPreferences prefs;

    @SuppressWarnings("deprecation")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        prefs = PreferenceManager.getDefaultSharedPreferences(this);
        String theme = prefs.getString("theme", "light");<commit_msg>hide icons can be changed without reseting the DataHandler<commit_after>package fr.neamar.kiss;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;

public class SettingsActivity extends PreferenceActivity implements
        SharedPreferences.OnSharedPreferenceChangeListener {

    // Those settings can be set without resetting the DataHandler
    private String safeSettings = "theme enable-spellcheck display-keyboard root-mode require-layout-update icons-hide";
    // Those settings require the app to restart
    private String requireRestartSettings = "theme enable-spellcheck force-portrait";
    private SharedPreferences prefs;

    @SuppressWarnings("deprecation")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        prefs = PreferenceManager.getDefaultSharedPreferences(this);
        String theme = prefs.getString("theme", "light");
{'fraction_non_alphanumeric': 0.06852791878172589, 'fraction_numerical': 0.0, 'mean_word_length': 5.064615384615385, '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': '5559184', 'n_tokens_mistral': 470, 'n_tokens_neox': 465, 'n_words': 136}