<commit_before>package org.duckdns.raven.ttscallresponder;

import org.duckdns.raven.ttscallresponder.testStuff.MyCallReceiver;

import android.app.Service;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;

public class TtsCallResponderService extends Service {
	private final static String TAG = "TtsCallResponderService";
	public static final String EXTRA_KEY_RECEIVER_ENABLED = "receiverEnabled";

	private MyCallReceiver callReceiver = null;

	public MyCallReceiver getCallReceiver() {
		return this.callReceiver;
	}

	@Override
	public void onCreate() {
		Log.i(TtsCallResponderService.TAG, "Enter on Create");
		super.onCreate();

		this.callReceiver = new MyCallReceiver(this);

		// Register call receiver
		this.registerReceiver(this.callReceiver, new IntentFilter("android.intent.action.PHONE_STATE"));
		Log.i(TAG, "Receiver registered");

		Intent notifyMainActivity = new Intent(this, MainActivity.class);
		notifyMainActivity.putExtra(EXTRA_KEY_RECEIVER_ENABLED, this.callReceiver.isEnabled());
		this.sendBroadcast(notifyMainActivity);
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		Log.i(TAG, "Service started");

		return START_STICKY;
	}

	@Override
	public IBinder onBind(Intent intent) {
		return new LocalBinder();
	}

	@Override<commit_msg>[Cleanup] Removed useless Broadcast.<commit_after>package org.duckdns.raven.ttscallresponder;

import org.duckdns.raven.ttscallresponder.testStuff.MyCallReceiver;

import android.app.Service;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Binder;
import android.os.IBinder;
import android.util.Log;

public class TtsCallResponderService extends Service {
	private final static String TAG = "TtsCallResponderService";
	public static final String EXTRA_KEY_RECEIVER_ENABLED = "receiverEnabled";

	private MyCallReceiver callReceiver = null;

	public MyCallReceiver getCallReceiver() {
		return this.callReceiver;
	}

	@Override
	public void onCreate() {
		Log.i(TtsCallResponderService.TAG, "Enter on Create");
		super.onCreate();

		this.callReceiver = new MyCallReceiver(this);

		// Register call receiver
		this.registerReceiver(this.callReceiver, new IntentFilter("android.intent.action.PHONE_STATE"));
		Log.i(TAG, "Receiver registered");
	}

	@Override
	public int onStartCommand(Intent intent, int flags, int startId) {
		Log.i(TAG, "Service started");

		return START_STICKY;
	}

	@Override
	public IBinder onBind(Intent intent) {
		return new LocalBinder();
	}

	@Override
{'fraction_non_alphanumeric': 0.09709480122324159, 'fraction_numerical': 0.0, 'mean_word_length': 5.77979274611399, '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': '1463916', 'n_tokens_mistral': 854, 'n_tokens_neox': 802, 'n_words': 182}