<commit_before>package ca.alexland.renewpass;

import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;

import ca.alexland.renewpass.model.Callback;
import ca.alexland.renewpass.model.Status;
import ca.alexland.renewpass.utils.LoggerUtil;
import ca.alexland.renewpass.views.LoadingFloatingActionButton;
import ca.alexland.renewpass.utils.PreferenceHelper;
import ca.alexland.renewpass.utils.UPassLoader;

public class MainActivity extends AppCompatActivity {
    PreferenceHelper preferenceHelper;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        // Clear the log on start
        LoggerUtil.deleteLog(getApplicationContext());

        this.preferenceHelper = PreferenceHelper.getInstance(getApplicationContext());
        startIntroActivity();

        final LoadingFloatingActionButton loadingFab = (LoadingFloatingActionButton) findViewById(R.id.loading_fab);
        loadingFab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                onRenew(loadingFab);
            }
        });
        Drawable completeIcon = loadingFab.getCompleteIconDrawable();
        if (completeIcon != null) {
            tintDrawable(completeIcon, Color.WHITE);
        }

        Drawable failureIcon = loadingFab.getFailureIconDrawable();
        if (failureIcon != null) {
            tintDrawable(failureIcon, Color.WHITE);
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {<commit_msg>Remove clearing the log<commit_after>package ca.alexland.renewpass;

import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.design.widget.Snackbar;
import android.support.v4.graphics.drawable.DrawableCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;

import ca.alexland.renewpass.model.Callback;
import ca.alexland.renewpass.model.Status;
import ca.alexland.renewpass.utils.LoggerUtil;
import ca.alexland.renewpass.views.LoadingFloatingActionButton;
import ca.alexland.renewpass.utils.PreferenceHelper;
import ca.alexland.renewpass.utils.UPassLoader;

public class MainActivity extends AppCompatActivity {
    PreferenceHelper preferenceHelper;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        this.preferenceHelper = PreferenceHelper.getInstance(getApplicationContext());
        startIntroActivity();

        final LoadingFloatingActionButton loadingFab = (LoadingFloatingActionButton) findViewById(R.id.loading_fab);
        loadingFab.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                onRenew(loadingFab);
            }
        });
        Drawable completeIcon = loadingFab.getCompleteIconDrawable();
        if (completeIcon != null) {
            tintDrawable(completeIcon, Color.WHITE);
        }

        Drawable failureIcon = loadingFab.getFailureIconDrawable();
        if (failureIcon != null) {
            tintDrawable(failureIcon, Color.WHITE);
        }
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
{'fraction_non_alphanumeric': 0.0900544285007422, 'fraction_numerical': 0.0014844136566056407, 'mean_word_length': 3.7397420867526376, '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': '7586784', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1067, 'n_words': 193}