<commit_before>package com.cghio.easyjobs;

import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.util.Base64;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.Toast;

import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

import org.apache.http.Header;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Jobs extends EasyJobsBase {

    private static String PREF_FILE = "auth_info";
    private static String PREF_VERSION = "VERSION";
    private static String PREF_URL = "URL";
    private static String PREF_CONTENT = "CONTENT";

    private static String API_HELP_URL = "";
    private static String API_TOKEN = "";

    private static String JOBS_INDEX_VERB = "";
    private static String JOBS_INDEX_URL = "";

    private static String JOBS_SHOW_URL = "";
    private static String JOBS_RUN_URL = "";
    private static String JOBS_PARAMETERS_INDEX_URL = "";
    private static String REVOKE_TOKEN_URL = "";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jobs);

        String fromURI = null;
        Intent intent = getIntent();
        if (intent != null) {
            Uri data = getIntent().getData();
            if (data != null) {
                fromURI = data.getSchemeSpecificPart();
            }
        }

        if (fromURI != null) {
            if (readPrefs()) {
                revokeAccessOnly();
            }
            decode(fromURI.substring(2));
        } else {
            startEasyJobs();
        }
    }

    @Override
    public void onStop() {
        super.onStop();
        hideLoading();
    }<commit_msg>fix display problem when log in then return home and then go back to app;<commit_after>package com.cghio.easyjobs;

import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.util.Base64;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.SimpleAdapter;
import android.widget.Toast;

import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

import org.apache.http.Header;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Jobs extends EasyJobsBase {

    private static String PREF_FILE = "auth_info";
    private static String PREF_VERSION = "VERSION";
    private static String PREF_URL = "URL";
    private static String PREF_CONTENT = "CONTENT";

    private static String API_HELP_URL = "";
    private static String API_TOKEN = "";

    private static String JOBS_INDEX_VERB = "";
    private static String JOBS_INDEX_URL = "";

    private static String JOBS_SHOW_URL = "";
    private static String JOBS_RUN_URL = "";
    private static String JOBS_PARAMETERS_INDEX_URL = "";
    private static String REVOKE_TOKEN_URL = "";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_jobs);
    }

    @Override
    public void onResume() {
        super.onResume();
        String fromURI = null;
        Intent intent = getIntent();
        if (intent != null) {
            Uri data = getIntent().getData();
            if (data != null) {
                fromURI = data.getSchemeSpecificPart();
            }
        }

        if (fromURI != null) {
            if (readPrefs()) {
                revokeAccessOnly();
            }
            decode(fromURI.substring(2));
        } else {
            startEasyJobs();
        }
    }

    @Override
    public void onStop() {
        super.onStop();
        hideLoading();
    }
{'fraction_non_alphanumeric': 0.09713932908005762, 'fraction_numerical': 0.001234821979831241, 'mean_word_length': 3.178847807394669, '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': '6433889', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1353, 'n_words': 331}