<commit_before>package edu.uw.informatics.brewsky;

import android.app.Application;
import android.util.Log;

/**
 * Created by ginoclement on 3/10/15.
 */
public class Brewsky extends Application {
    private static Brewsky instance;

    private Brewsky(){
        instance = (Brewsky)getApplication();
    }

    public static Brewsky getInstance(){
        if (instance == null){
            instance = new Brewsky();
        }
        return instance;
    }

    @Override
    public void onCreate(){
        super.onCreate();
        Log.i(getString(R.string.log_general), "Brewsky has been launched");
    }

    public Brewsky getApplication(){
        return this.instance;
    }

}<commit_msg>Fixing private app constructor which was causing an error in the application manifest.<commit_after>package edu.uw.informatics.brewsky;

import android.app.Application;
import android.util.Log;

/**
 * Created by ginoclement on 3/10/15.
 */
public class Brewsky extends Application {
    private static Brewsky instance;

    /* Application manifest throws an error if I set this as private. I don't believe we want a
     * public constructor though, otherwise you could create another app instance.
     */
    public Brewsky(){
        this.instance = getInstance();
    }

    public static Brewsky getInstance(){
        if (instance == null){
            instance = new Brewsky();
        }
        return instance;
    }

    @Override
    public void onCreate(){
        super.onCreate();
        Log.i(getString(R.string.log_general), "Brewsky has been launched");
    }

    public Brewsky getApplication(){
        return this.instance;
    }

}
{'fraction_non_alphanumeric': 0.09698795180722891, 'fraction_numerical': 0.006024096385542169, 'mean_word_length': 2.6345733041575494, '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': '253517', 'n_tokens_mistral': 460, 'n_tokens_neox': 435, 'n_words': 141}