<commit_before>package com.futureplatforms.kirin.android;

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

import com.futureplatforms.kirin.dependencies.StaticDependencies.SettingsDelegate;

public class AndroidSettings implements SettingsDelegate
{
    SharedPreferences mSharedPreferences;
    Context context;
    
    public AndroidSettings(Context context)
	{
    	this.context = context;
    	mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
	}

	
	@Override
	public String get(String key)
	{
		return mSharedPreferences.getString(key, null);
	}
	
	@Override
	public void put(String key, String value)
	{
		Editor e = mSharedPreferences.edit();
		e.putString(key, value);
		e.apply();
	}


	@Override
	public void clear() {
		mSharedPreferences.edit().clear().commit();
	}
	
}<commit_msg>Commented out settings reset<commit_after>package com.futureplatforms.kirin.android;

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

import com.futureplatforms.kirin.dependencies.StaticDependencies.SettingsDelegate;

public class AndroidSettings implements SettingsDelegate
{
    SharedPreferences mSharedPreferences;
    Context context;
    
    public AndroidSettings(Context context)
	{
    	this.context = context;
    	mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(context);
	}

	
	@Override
	public String get(String key)
	{
		return mSharedPreferences.getString(key, null);
	}
	
	@Override
	public void put(String key, String value)
	{
		Editor e = mSharedPreferences.edit();
		e.putString(key, value);
		e.apply();
	}


	@Override
	public void clear() {
		//mSharedPreferences.edit().clear().commit();
	}
	
}
{'fraction_non_alphanumeric': 0.09248554913294797, 'fraction_numerical': 0.0, 'mean_word_length': 5.063694267515924, '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': '1568989', 'n_tokens_mistral': 554, 'n_tokens_neox': 528, 'n_words': 111}