<commit_before>package com.repofetcher;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;

import com.controller.ActionBarController;
import com.controller.FragmentController;
import com.service.holder.RepoServiceType;

import java.util.ArrayList;

public class MainActivity extends AppCompatActivity implements FragmentTransitionService{

    private static final String TAG = MainActivity.class.getName();

    private ActionBarController actionBarController;

    private FragmentController fragmentController;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.d(TAG, "onCreate");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);
        setSupportActionBar(myToolbar);

        actionBarController = new ActionBarController(getSupportActionBar(), this);

        fragmentController = new FragmentController(this);
        fragmentController.restoreState(savedInstanceState);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        Log.d(TAG, "onCreateOptionsMenu");
        return actionBarController.onMainCreateOptionsMenu(menu, getMenuInflater());
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        return actionBarController.onMainOptionsItemSelected(item) || super.onOptionsItemSelected(item);<commit_msg>Resolved NullPointerException bug from MainActivity.<commit_after>package com.repofetcher;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;

import com.controller.ActionBarController;
import com.controller.FragmentController;
import com.service.holder.RepoServiceType;

import java.util.ArrayList;

import static com.service.ServiceUtils.checkNotNull;

public class MainActivity extends AppCompatActivity implements FragmentTransitionService{

    private static final String TAG = MainActivity.class.getName();

    private ActionBarController actionBarController;

    private FragmentController fragmentController;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.d(TAG, "onCreate");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar myToolbar = (Toolbar) findViewById(R.id.my_toolbar);
        setSupportActionBar(myToolbar);

        actionBarController = new ActionBarController(checkNotNull(getSupportActionBar()), this);

        fragmentController = new FragmentController(this);
        fragmentController.restoreState(savedInstanceState);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        Log.d(TAG, "onCreateOptionsMenu");
        return actionBarController.onMainCreateOptionsMenu(menu, getMenuInflater());
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        return actionBarController.onMainOptionsItemSelected(item) || super.onOptionsItemSelected(item);
{'fraction_non_alphanumeric': 0.08340169537872573, 'fraction_numerical': 0.0021875854525567405, 'mean_word_length': 4.986906710310966, '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': '6023569', 'n_tokens_mistral': 944, 'n_tokens_neox': 917, 'n_words': 188}