<commit_before>package ch.hevs.aislab.magpie.android;

import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.util.Log;

import ch.hevs.aislab.magpie.android.MagpieService.MagpieBinder;

public abstract class MagpieActivity extends Activity
		implements ServiceConnection, MagpieConnection {

	/**
	 * Used for debugging
	 */
	private final String TAG = getClass().getName();

    private static final String MAGPIE_PREFS = "magpie_prefs";

	protected MagpieService mService;

	public MagpieActivity() {

	}
	@Override
	protected void onStart() {
		super.onStart();
		Log.i(TAG, "onStart()");
		Intent intent = MagpieService.makeIntent(this);
		bindService(intent, this, Context.BIND_AUTO_CREATE);
	}
	<commit_msg>Changed to FragmentActivity<commit_after>package ch.hevs.aislab.magpie.android;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.os.IBinder;
import android.support.v4.app.FragmentActivity;
import android.util.Log;

import ch.hevs.aislab.magpie.android.MagpieService.MagpieBinder;

public abstract class MagpieActivity extends FragmentActivity
		implements ServiceConnection, MagpieConnection {

    // Register a Broadcast receiver to receive alerts back from the Environment??

	/**
	 * Used for debugging
	 */
	private final String TAG = getClass().getName();

    private static final String MAGPIE_PREFS = "magpie_prefs";

	protected MagpieService mService;

	public MagpieActivity() {

	}
	@Override
	protected void onStart() {
		super.onStart();
		Log.i(TAG, "onStart()");
		Intent intent = MagpieService.makeIntent(this);
		bindService(intent, this, Context.BIND_AUTO_CREATE);
	}
	
{'fraction_non_alphanumeric': 0.09718670076726342, 'fraction_numerical': 0.0005115089514066496, 'mean_word_length': 5.434210526315789, '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': '3635508', 'n_tokens_mistral': 597, 'n_tokens_neox': 563, 'n_words': 135}