<commit_before>package be.ugent.zeus.hydra;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.View;
import com.actionbarsherlock.app.ActionBar;
import com.google.analytics.tracking.android.GoogleAnalytics;
import com.testflightapp.lib.TestFlight;
import java.util.Locale;

/**
 * @author <NAME>
 */
public class Hydra extends AbstractSherlockActivity {

    public static final Locale LOCALE = new Locale("nl", "BE");
    private static final boolean DEBUG = false; // Put to true when implementing new features!
    private static final boolean BETA = true; // Put to true when releasing a beta update!
    public static boolean SHOWED_NETWORK = false;

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        setContentView(R.layout.hydra);
        setTitle("");

        if (!SHOWED_NETWORK) {
            // Check if internet is available
            ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
            NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
            if (activeNetworkInfo == null || !activeNetworkInfo.isConnectedOrConnecting()) {
                new AlertDialog.Builder(this)
                    .setTitle(R.string.no_network_title)
                    .setMessage(R.string.no_network)<commit_msg>Put the debug and beta booleans back<commit_after>package be.ugent.zeus.hydra;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.View;
import com.actionbarsherlock.app.ActionBar;
import com.google.analytics.tracking.android.GoogleAnalytics;
import com.testflightapp.lib.TestFlight;
import java.util.Locale;

/**
 * @author <NAME>
 */
public class Hydra extends AbstractSherlockActivity {

    public static final Locale LOCALE = new Locale("nl", "BE");
    private static final boolean DEBUG = true; // Put to true when implementing new features!
    private static final boolean BETA = false; // Put to true when releasing a beta update!
    public static boolean SHOWED_NETWORK = false;

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);

        setContentView(R.layout.hydra);
        setTitle("");

        if (!SHOWED_NETWORK) {
            // Check if internet is available
            ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
            NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();
            if (activeNetworkInfo == null || !activeNetworkInfo.isConnectedOrConnecting()) {
                new AlertDialog.Builder(this)
                    .setTitle(R.string.no_network_title)
                    .setMessage(R.string.no_network)
{'fraction_non_alphanumeric': 0.0883338409990862, 'fraction_numerical': 0.0, 'mean_word_length': 3.6581560283687944, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6634875', 'n_tokens_mistral': 897, 'n_tokens_neox': 863, 'n_words': 219}