<commit_before>package csu.bryanreilly.partypush.UI;

import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import csu.bryanreilly.partypush.UI.Login.LoginActivity;
import csu.bryanreilly.partypush.UI.Main.MainActivity;

public class UIManager {
    public static void returnToLogin(Activity callingActivity){
        Intent startLoginActivity = new Intent(callingActivity, LoginActivity.class);
        //Clears the backstack
        startLoginActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
        callingActivity.startActivity(startLoginActivity);
    }

    public static void returnToMain(Activity callingActivity){
        returnToMain(callingActivity, 0);
    }

    public static void returnToMain(Activity callingActivity, int tab){
        Intent startMainActivity = new Intent(callingActivity, MainActivity.class);
        //Clears the backstack
        startMainActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
        startMainActivity.putExtra("Tab", tab);
        callingActivity.startActivity(startMainActivity);
    }
}<commit_msg>App starts on friends screen<commit_after>package csu.bryanreilly.partypush.UI;

import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import csu.bryanreilly.partypush.UI.Login.LoginActivity;
import csu.bryanreilly.partypush.UI.Main.FragmentInfo;
import csu.bryanreilly.partypush.UI.Main.MainActivity;

public class UIManager {
    public static void returnToLogin(Activity callingActivity){
        Intent startLoginActivity = new Intent(callingActivity, LoginActivity.class);
        //Clears the backstack
        startLoginActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
        callingActivity.startActivity(startLoginActivity);
    }

    public static void returnToMain(Activity callingActivity){
        returnToMain(callingActivity, FragmentInfo.PartiesFragment);
    }

    public static void returnToMain(Activity callingActivity, int tab){
        Intent startMainActivity = new Intent(callingActivity, MainActivity.class);
        //Clears the backstack
        startMainActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
        startMainActivity.putExtra("Tab", tab);
        callingActivity.startActivity(startMainActivity);
    }
}
{'fraction_non_alphanumeric': 0.07974947807933194, 'fraction_numerical': 0.0004175365344467641, 'mean_word_length': 4.585081585081585, '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': '1091189', 'n_tokens_mistral': 694, 'n_tokens_neox': 683, 'n_words': 122}