<commit_before>package co.infinum.princeofversions;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

@Deprecated
/**
 * Implementation of {@link Storage} which stores data in default {@link SharedPreferences}.
 * @deprecated due to possibility of value erasure in shared storage. Use {@link
 * PrinceOfVersionsDefaultNamedPreferenceStorage} and migrate existing data to it.
 */
class PrinceOfVersionsDefaultStorage implements Storage {

    private static final String KEY = "PrinceOfVersions_LastNotifiedUpdate";

    private SharedPreferences sp;

    PrinceOfVersionsDefaultStorage(Context context) {
        sp = PreferenceManager.getDefaultSharedPreferences(context);
    }

    @Override
    public String lastNotifiedVersion(String defaultValue) {
        return sp.getString(KEY, defaultValue);
    }<commit_msg>Fix dangling javadoc<commit_after>package co.infinum.princeofversions;

import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

/**
 * Implementation of {@link Storage} which stores data in default {@link SharedPreferences}.
 * @deprecated due to possibility of value erasure in shared storage. Use {@link
 * PrinceOfVersionsDefaultNamedPreferenceStorage} and migrate existing data to it.
 */
@Deprecated
class PrinceOfVersionsDefaultStorage implements Storage {

    private static final String KEY = "PrinceOfVersions_LastNotifiedUpdate";

    private SharedPreferences sp;

    PrinceOfVersionsDefaultStorage(Context context) {
        sp = PreferenceManager.getDefaultSharedPreferences(context);
    }

    @Override
    public String lastNotifiedVersion(String defaultValue) {
        return sp.getString(KEY, defaultValue);
    }
{'fraction_non_alphanumeric': 0.06923506420993858, 'fraction_numerical': 0.0, 'mean_word_length': 5.158075601374571, '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': '4049914', 'n_tokens_mistral': 452, 'n_tokens_neox': 431, 'n_words': 130}