<commit_before>package io.github.jokoframework.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;

import java.net.SocketTimeoutException;

import io.github.jokoframework.R;
import io.github.jokoframework.mboehaolib.constants.Constants;
import io.github.jokoframework.mboehaolib.constants.Constants.StartUpKeys;
import io.github.jokoframework.model.UserAccessResponse;
import io.github.jokoframework.model.UserData;
import io.github.jokoframework.repository.LoginRepository;
import io.github.jokoframework.repository.RepoBuilder;
import io.github.jokoframework.utilities.AppUtils;
import retrofit2.Response;


public class SplashActivity extends BaseActivity {

    public static final String LOG_TAG = SplashActivity.class.getSimpleName();
    private UserData userData;
    private LoginRepository api;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_splash);
        super.onCreate(savedInstanceState);
        showProgress(true, "Inicializando la aplicación...");
        if (isWithInternetConnection()) {
            api = RepoBuilder.getSyncApi(LoginRepository.class);
            userData = getUserData();
            initializeFirstActivity();
        }
    }

    public void checkConnection() {
        if (!AppUtils.networkConnectivity(getApplicationContext())) {
            showNoConnectionAndQuit();
        } else {
            initApp();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        checkConnection();
    }

    private void initializeFirstActivity() {
        int splashTimeOut = 3000;
        Intent i = new Intent(SplashActivity.this, LoginActivity.class);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(i);
                finish();
            }
        }, splashTimeOut);
    }

    private void initApp() {
        new CheckUserDataTask(this).execute();<commit_msg>Ruta cambiada a PreLogin antes de Login para Welcome Screen.<commit_after>package io.github.jokoframework.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;

import java.net.SocketTimeoutException;

import io.github.jokoframework.R;
import io.github.jokoframework.mboehaolib.constants.Constants;
import io.github.jokoframework.mboehaolib.constants.Constants.StartUpKeys;
import io.github.jokoframework.model.UserAccessResponse;
import io.github.jokoframework.model.UserData;
import io.github.jokoframework.repository.LoginRepository;
import io.github.jokoframework.repository.RepoBuilder;
import io.github.jokoframework.utilities.AppUtils;
import retrofit2.Response;


public class SplashActivity extends BaseActivity {

    public static final String LOG_TAG = SplashActivity.class.getSimpleName();
    private UserData userData;
    private LoginRepository api;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_splash);
        super.onCreate(savedInstanceState);
        showProgress(true, "Inicializando la aplicación...");
        if (isWithInternetConnection()) {
            api = RepoBuilder.getSyncApi(LoginRepository.class);
            userData = getUserData();
            initializeFirstActivity();
        }
    }

    public void checkConnection() {
        if (!AppUtils.networkConnectivity(getApplicationContext())) {
            showNoConnectionAndQuit();
        } else {
            initApp();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        checkConnection();
    }

    private void initializeFirstActivity() {
        int splashTimeOut = 3000;
        Intent i = new Intent(SplashActivity.this, PreLoginActivity.class);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                startActivity(i);
                finish();
            }
        }, splashTimeOut);
    }

    private void initApp() {
        new CheckUserDataTask(this).execute();
{'fraction_non_alphanumeric': 0.09402706486234251, 'fraction_numerical': 0.0023331777881474567, 'mean_word_length': 3.1102588686481303, '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': '7591074', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1134, 'n_words': 226}