<commit_before>package com.onfido.android.app.sample;

import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;

import com.onfido.android.sdk.capture.DocumentType;
import com.onfido.android.sdk.capture.ui.MessageFragment;
import com.onfido.android.sdk.capture.ui.NextActionListener;
import com.onfido.android.sdk.capture.utils.CountryCode;

public class FinalActivity extends AppCompatActivity implements NextActionListener {
    private Handler handler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        handler = new Handler();
        setContentView(R.layout.final_holder);

        showFinalScreen();
    }

    @Override
    public void onDocumentTypeSelected(DocumentType documentType) {

    }

    @Override
    public void onCountrySelected(DocumentType documentType, CountryCode countryCode) {

    }

    @Override
    public void onAlternateDocumentSelected() {

    }

    public void showFinalScreen() {
        Fragment fragment = MessageFragment.createInstance(
                "Verification completed",
                getString(R.string.welcome_bank_account)
        );
        setFragment(fragment);
    }

    private void setFragment(final Fragment fragment) {
        if (isFinishing()) {
            return;
        }

        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
        ft.replace(com.onfido.android.sdk.capture.R.id.fl_content, fragment);
        ft.commitAllowingStateLoss();
    }

    @Override
    public void onPreviousClicked() {

    }

    @Override
    public void onNextClicked() {
        setFragment(SummaryFragment.createInstance());
    }
}<commit_msg>Add comment to onPreviousClicked method<commit_after>package com.onfido.android.app.sample;

import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;

import com.onfido.android.sdk.capture.DocumentType;
import com.onfido.android.sdk.capture.ui.MessageFragment;
import com.onfido.android.sdk.capture.ui.NextActionListener;
import com.onfido.android.sdk.capture.utils.CountryCode;

public class FinalActivity extends AppCompatActivity implements NextActionListener {
    private Handler handler;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        handler = new Handler();
        setContentView(R.layout.final_holder);

        showFinalScreen();
    }

    @Override
    public void onDocumentTypeSelected(DocumentType documentType) {

    }

    @Override
    public void onCountrySelected(DocumentType documentType, CountryCode countryCode) {

    }

    @Override
    public void onAlternateDocumentSelected() {

    }

    public void showFinalScreen() {
        Fragment fragment = MessageFragment.createInstance(
                "Verification completed",
                getString(R.string.welcome_bank_account)
        );
        setFragment(fragment);
    }

    private void setFragment(final Fragment fragment) {
        if (isFinishing()) {
            return;
        }

        FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
        ft.replace(com.onfido.android.sdk.capture.R.id.fl_content, fragment);
        ft.commitAllowingStateLoss();
    }

    @Override
    public void onPreviousClicked() {
        //no op
    }

    @Override
    public void onNextClicked() {
        setFragment(SummaryFragment.createInstance());
    }
}
{'fraction_non_alphanumeric': 0.08927130949179887, 'fraction_numerical': 0.0016133369185264857, 'mean_word_length': 3.2465753424657535, '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': '6647510', 'n_tokens_mistral': 1030, 'n_tokens_neox': 977, 'n_words': 186}