<commit_before>package ca.hoogit.powerhour.Selection;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;

import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.answers.Answers;
import com.crashlytics.android.answers.CustomEvent;
import com.squareup.otto.Subscribe;

import java.util.List;

import butterknife.Bind;
import ca.hoogit.powerhour.About.AboutActivity;
import ca.hoogit.powerhour.About.TourActivity;
import ca.hoogit.powerhour.BaseActivity;
import ca.hoogit.powerhour.Configure.ConfigureGameFragment;
import ca.hoogit.powerhour.Configure.GameOptions;
import ca.hoogit.powerhour.Game.Action;
import ca.hoogit.powerhour.Game.Engine;
import ca.hoogit.powerhour.Game.GameEvent;
import ca.hoogit.powerhour.Game.GameModel;
import ca.hoogit.powerhour.Game.State;
import ca.hoogit.powerhour.Game.WearData;
import ca.hoogit.powerhour.GameOver.GameOver;
import ca.hoogit.powerhour.Notifications.Constants;
import ca.hoogit.powerhour.R;
import ca.hoogit.powerhour.Screen.GameScreen;
import ca.hoogit.powerhour.Util.BusProvider;
import ca.hoogit.powerhour.Util.PowerHourUtils;
import ca.hoogit.powerhour.Util.SharedPrefs;
import ca.hoogit.powerhour.Util.StatusBarUtil;
import ca.hoogit.powerhour.Views.GameTypeItem;
import ca.hoogit.powerhourshared.DataLayer.Consts;
import io.fabric.sdk.android.Fabric;

public class MainActivity extends BaseActivity {

    private static final int REQUEST_RESOLVE_ERROR = 1000;
    private final String TAG = MainActivity.class.getSimpleName();

    @Bind({R.id.type_power_hour, R.id.type_century_club, R.id.type_spartan, R.id.type_custom})
    List<GameTypeItem> mGameTypes;

    private FragmentManager mFragmentManager;

    private WearData mWearData;
    private boolean mResolvingError = false;

    private boolean mChosen;

    @Override
    protected int getToolbarColor() {
        return getResources().getColor(R.color.primary);
    }

    @Override
    protected int getLayoutResource() {
        return R.layout.activity_main;
    }

    @Override
    protected int getMenuResource() {
        return R.menu.menu_main;
    }

    @Override
    protected boolean getDisplayHomeAsUpEnabled() {
        return false;
    }

    @Override
    protected boolean getEventBusEnabled() {
        return true;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        //TODO DEBUGGING A FAILED BUILD
        this IS a failed build

        Fabric.with(this, new Crashlytics());
        mFragmentManager = getSupportFragmentManager();
        mWearData = new WearData(this);

        super.onCreate(savedInstanceState);

        SharedPrefs prefs = SharedPrefs.get(this);

        if (prefs.isFirstRun()) {
            prefs.setFirstRun(false);
            startActivity(new Intent(this, TourActivity.class));
        }


        setupListeners();
    }

    @Override
    protected void onStart() {
        super.onStart();
        mWearData.connect();
    }

    @Override
    protected void onStop() {<commit_msg>Reverting<commit_after>package ca.hoogit.powerhour.Selection;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.util.Log;
import android.view.MenuItem;
import android.view.View;

import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.answers.Answers;
import com.crashlytics.android.answers.CustomEvent;
import com.squareup.otto.Subscribe;

import java.util.List;

import butterknife.Bind;
import ca.hoogit.powerhour.About.AboutActivity;
import ca.hoogit.powerhour.About.TourActivity;
import ca.hoogit.powerhour.BaseActivity;
import ca.hoogit.powerhour.Configure.ConfigureGameFragment;
import ca.hoogit.powerhour.Configure.GameOptions;
import ca.hoogit.powerhour.Game.Action;
import ca.hoogit.powerhour.Game.Engine;
import ca.hoogit.powerhour.Game.GameEvent;
import ca.hoogit.powerhour.Game.GameModel;
import ca.hoogit.powerhour.Game.State;
import ca.hoogit.powerhour.Game.WearData;
import ca.hoogit.powerhour.GameOver.GameOver;
import ca.hoogit.powerhour.Notifications.Constants;
import ca.hoogit.powerhour.R;
import ca.hoogit.powerhour.Screen.GameScreen;
import ca.hoogit.powerhour.Util.BusProvider;
import ca.hoogit.powerhour.Util.PowerHourUtils;
import ca.hoogit.powerhour.Util.SharedPrefs;
import ca.hoogit.powerhour.Util.StatusBarUtil;
import ca.hoogit.powerhour.Views.GameTypeItem;
import ca.hoogit.powerhourshared.DataLayer.Consts;
import io.fabric.sdk.android.Fabric;

public class MainActivity extends BaseActivity {

    private static final int REQUEST_RESOLVE_ERROR = 1000;
    private final String TAG = MainActivity.class.getSimpleName();

    @Bind({R.id.type_power_hour, R.id.type_century_club, R.id.type_spartan, R.id.type_custom})
    List<GameTypeItem> mGameTypes;

    private FragmentManager mFragmentManager;

    private WearData mWearData;
    private boolean mResolvingError = false;

    private boolean mChosen;

    @Override
    protected int getToolbarColor() {
        return getResources().getColor(R.color.primary);
    }

    @Override
    protected int getLayoutResource() {
        return R.layout.activity_main;
    }

    @Override
    protected int getMenuResource() {
        return R.menu.menu_main;
    }

    @Override
    protected boolean getDisplayHomeAsUpEnabled() {
        return false;
    }

    @Override
    protected boolean getEventBusEnabled() {
        return true;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Fabric.with(this, new Crashlytics());
        mFragmentManager = getSupportFragmentManager();
        mWearData = new WearData(this);

        super.onCreate(savedInstanceState);

        SharedPrefs prefs = SharedPrefs.get(this);

        if (prefs.isFirstRun()) {
            prefs.setFirstRun(false);
            startActivity(new Intent(this, TourActivity.class));
        }


        setupListeners();
    }

    @Override
    protected void onStart() {
        super.onStart();
        mWearData.connect();
    }

    @Override
    protected void onStop() {
{'fraction_non_alphanumeric': 0.09707837378265574, 'fraction_numerical': 0.0021641675684031534, 'mean_word_length': 3.89780469341408, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2652906', 'n_tokens_mistral': 2083, 'n_tokens_neox': 2001, 'n_words': 360}