<commit_before>package com.onegini.mobile.exampleapp.storage;

import android.content.Context;
import android.content.SharedPreferences;

public class SettingsStorage {

  private static final String PREFS_NAME = "settings_storage";
  private static final String KEY_MOBILE_AUTH = "mobile_auth_enabled";

  private final SharedPreferences sharedPreferences;

  public SettingsStorage(final Context context) {
    sharedPreferences = context.getSharedPreferences(PREFS_NAME, 0);
  }

  public boolean isMobileAuthenticationEnabled() {
    return sharedPreferences.getBoolean(KEY_MOBILE_AUTH, false);
  }

  public void setMobileAuthenticationEnabled(final boolean isEnabled) {
    sharedPreferences.edit().
        putBoolean(KEY_MOBILE_AUTH, isEnabled)
        .apply();
  }
}
<commit_msg>SDKAND-191 Minor code style improvement<commit_after>package com.onegini.mobile.exampleapp.storage;

import android.content.Context;
import android.content.SharedPreferences;

public class SettingsStorage {

  private static final String PREFS_NAME = "settings_storage";
  private static final String KEY_MOBILE_AUTH = "mobile_auth_enabled";

  private final SharedPreferences sharedPreferences;

  public SettingsStorage(final Context context) {
    sharedPreferences = context.getSharedPreferences(PREFS_NAME, 0);
  }

  public boolean isMobileAuthenticationEnabled() {
    return sharedPreferences.getBoolean(KEY_MOBILE_AUTH, false);
  }

  public void setMobileAuthenticationEnabled(final boolean isEnabled) {
    sharedPreferences.edit().putBoolean(KEY_MOBILE_AUTH, isEnabled).apply();
  }
}

{'fraction_non_alphanumeric': 0.07503152585119799, 'fraction_numerical': 0.0031525851197982345, 'mean_word_length': 5.72457627118644, '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': '3112190', 'n_tokens_mistral': 434, 'n_tokens_neox': 414, 'n_words': 96}