<commit_before>package com.jeff_fennell.capstone;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Camera extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_camera);
        if (savedInstanceState == null) {
            loadCameraFragment();
        }
    }

    private void loadCameraFragment() {
        getFragmentManager().beginTransaction()
                .replace(R.id.container, CameraFragment.newInstance())
                .commit();
    }
}<commit_msg>Prevent backwards navigation to login when user is already logged in.<commit_after>package com.jeff_fennell.capstone;

import android.app.Activity;
import android.os.Bundle;

public class Camera extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_camera);
        if (savedInstanceState == null) {
            loadCameraFragment();
        }
    }

    @Override
    public void onBackPressed() {
        moveTaskToBack(true);
    }

    private void loadCameraFragment() {
        getFragmentManager().beginTransaction()
                .replace(R.id.container, CameraFragment.newInstance())
                .commit();
    }
}
{'fraction_non_alphanumeric': 0.09280575539568345, 'fraction_numerical': 0.0007194244604316547, 'mean_word_length': 2.842541436464088, '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': '985780', 'n_tokens_mistral': 367, 'n_tokens_neox': 349, 'n_words': 73}