<commit_before>package com.miguelgaeta.bootstrap.mg_preference;

import android.app.Application;
import android.content.Context;
import android.content.pm.PackageManager;

import java.util.concurrent.Executors;

import lombok.AccessLevel;
import lombok.Getter;
import rx.Scheduler;
import rx.schedulers.Schedulers;

/**
 * Created by mrkcsc on 3/9/15.
 */
@SuppressWarnings("UnusedDeclaration")
public class MGPreferenceConfig {

    // Custom scheduler to keep preferences from
    // overloading the device.
    @Getter(lazy = true, value = AccessLevel.PACKAGE)
    private static final Scheduler scheduler = Schedulers.from(Executors.newSingleThreadExecutor());

    // For any libraries within core, store a context
    // to make the calling API easier but make sure
    // that it is a application context to ensure no
    // activities or fragments can be leaked.
    @Getter
    private Context context;

    // Used as a cache breaker to avoid problems
    // in version increments due to changes in preference<commit_msg>Switched back to using the standard computation pool.<commit_after>package com.miguelgaeta.bootstrap.mg_preference;

import android.app.Application;
import android.content.Context;
import android.content.pm.PackageManager;

import lombok.AccessLevel;
import lombok.Getter;
import rx.Scheduler;
import rx.schedulers.Schedulers;

/**
 * Created by mrkcsc on 3/9/15.
 */
@SuppressWarnings("UnusedDeclaration")
public class MGPreferenceConfig {

    // Custom scheduler to keep preferences from
    // overloading the device.
    @Getter(lazy = true, value = AccessLevel.PACKAGE)
    private static final Scheduler scheduler = Schedulers.computation();

    // For any libraries within core, store a context
    // to make the calling API easier but make sure
    // that it is a application context to ensure no
    // activities or fragments can be leaked.
    @Getter
    private Context context;

    // Used as a cache breaker to avoid problems
    // in version increments due to changes in preference
{'fraction_non_alphanumeric': 0.07669616519174041, 'fraction_numerical': 0.003933136676499509, 'mean_word_length': 3.7546728971962615, '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': '5633387', 'n_tokens_mistral': 560, 'n_tokens_neox': 553, 'n_words': 200}