<commit_before>/**
*	NotificationService.java
*
*	@author Johan
*/

package se.chalmers.watchme.notifications;

import java.util.Calendar;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;

public class NotificationService extends Service {
	
	private final IBinder binder = new ServiceBinder();

	public class ServiceBinder extends Binder {
		NotificationService getService() {
			return NotificationService.this;
		}
	}

	@Override
	public IBinder onBind(Intent arg0) {
		return this.binder;
	}
	
	public int startCommand(Intent intent, int flags, int startID) {

		// This service is sticky - it runs until it's stopped.
		return START_STICKY;
	}
	
	public void setAlarm(Calendar c) {
		// Start a new task for the alarm on another thread (separated from the UI thread)
		new AlarmTask(this, c).run();
	}
}
<commit_msg>Fix incorrect name of start command callback<commit_after>/**
*	NotificationService.java
*
*	@author Johan
*/

package se.chalmers.watchme.notifications;

import java.util.Calendar;

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

public class NotificationService extends Service {
	
	private final IBinder binder = new ServiceBinder();

	public class ServiceBinder extends Binder {
		NotificationService getService() {
			return NotificationService.this;
		}
	}

	@Override
	public IBinder onBind(Intent arg0) {
		return this.binder;
	}
	
	@Override
	public int onStartCommand(Intent intent, int flags, int startID) {
		Log.i("Custom", "Received start id " + startID + ": " + intent);
				
		// This service is sticky - it runs until it's stopped.
		return START_STICKY;
	}
	
	public void setAlarm(Calendar c) {
		Log.i("Custom", "Set alarm");
		// Start a new task for the alarm on another thread (separated from the UI thread)
		new AlarmTask(this, c).run();
	}
}

{'fraction_non_alphanumeric': 0.09680741503604531, 'fraction_numerical': 0.0010298661174047373, 'mean_word_length': 4.167553191489362, 'pattern_counts': {'":': 1, '<': 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': '677281', 'n_tokens_mistral': 644, 'n_tokens_neox': 582, 'n_words': 186}