<commit_before>package com.github.willjgriff.ethereumwallet;

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

import com.github.willjgriff.ethereumwallet.di.ApplicationInjector;
import com.squareup.leakcanary.LeakCanary;

import io.realm.Realm;
import io.realm.RealmConfiguration;
import timber.log.Timber;

/**
 * Created by Will on 29/01/2017.
 */

public class EthereumWalletApplication extends Application {

	private static EthereumWalletApplication mEthereumWalletApplication;

	public static Context getApp() {
		return mEthereumWalletApplication;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		mEthereumWalletApplication = this;
		setupLeakCanary();
		setupTimber();
		setupRealm();
		setupDagger();
	}

	private void setupLeakCanary() {
		if (LeakCanary.isInAnalyzerProcess(this)) {
			// This process is dedicated to LeakCanary for heap analysis.
			// You should not init your app in this process.
			return;
		}
		LeakCanary.install(this);
		// Normal app init code...
	}

	private void setupTimber() {
		if (BuildConfig.DEBUG) {
			Timber.plant(new Timber.DebugTree());
		}
	}

	private void setupRealm() {
		Realm.init(this);

		// TODO: Delete for prod, test migrations first.
		RealmConfiguration realmConfig = new RealmConfiguration.Builder()
			.deleteRealmIfMigrationNeeded()
			.build();

		Realm.setDefaultConfiguration(realmConfig);
	}

	private void setupDagger() {
		ApplicationInjector.INSTANCE.initAppComponent(this);
	}
}
<commit_msg>Added TODO<commit_after>package com.github.willjgriff.ethereumwallet;

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

import com.github.willjgriff.ethereumwallet.di.ApplicationInjector;
import com.squareup.leakcanary.LeakCanary;

import io.realm.Realm;
import io.realm.RealmConfiguration;
import timber.log.Timber;

/**
 * Created by Will on 29/01/2017.
 */

public class EthereumWalletApplication extends Application {

	// TODO: Remove for production, just for testing purposes.
	private static EthereumWalletApplication mEthereumWalletApplication;
	
	public static Context getApp() {
		return mEthereumWalletApplication;
	}

	@Override
	public void onCreate() {
		super.onCreate();
		mEthereumWalletApplication = this;
		setupLeakCanary();
		setupTimber();
		setupRealm();
		setupDagger();
	}

	private void setupLeakCanary() {
		if (LeakCanary.isInAnalyzerProcess(this)) {
			// This process is dedicated to LeakCanary for heap analysis.
			// You should not init your app in this process.
			return;
		}
		LeakCanary.install(this);
		// Normal app init code...
	}

	private void setupTimber() {
		if (BuildConfig.DEBUG) {
			Timber.plant(new Timber.DebugTree());
		}
	}

	private void setupRealm() {
		Realm.init(this);

		// TODO: Delete for prod, test migrations first.
		RealmConfiguration realmConfig = new RealmConfiguration.Builder()
			.deleteRealmIfMigrationNeeded()
			.build();

		Realm.setDefaultConfiguration(realmConfig);
	}

	private void setupDagger() {
		ApplicationInjector.INSTANCE.initAppComponent(this);
	}
}

{'fraction_non_alphanumeric': 0.10144451739986868, 'fraction_numerical': 0.005252790544977019, 'mean_word_length': 4.5, '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': '21306', 'n_tokens_mistral': 1049, 'n_tokens_neox': 963, 'n_words': 219}