<commit_before>package org.fraunhofer.cese.madcap.services;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import java.util.HashMap;

/**
 * Created by MMueller on 10/7/2016.
 */
public class OnBootService extends Service implements Cloneable{
    private static final String TAG = "Madcap On Boot Service";
    private Context context = this;

    /**
     * Gets called when the Service gets bonund to an Activity.
     * @param intent the starting Intent.
     * @return the answer.
     */
    @Override
    public final IBinder onBind(Intent intent) {
        return null;
    }

    /**
     * Gets invoked when the Service gets destroyed.
     */
    @Override
    public final void onDestroy() {
        Log.d(TAG, "onDestroy");
    }

    /**
     * Gets invoked when the Service gets created, right before it gets started.
     */
    @Override
    public final void onCreate(){
        Log.d(TAG, "onCreate Boot Service");
        Intent intent = new Intent(this, LoginService.class);
        startService(intent);
        this.stopSelf();
    }

    /**
     * Setter for the context. For testing purposes only.
     * @deprecated
     * @param context the context to be set.
     */
    @Deprecated<commit_msg>Let the stopService from OnBootService out, because of some strange issues. Resolve this with another method on a late point.<commit_after>package org.fraunhofer.cese.madcap.services;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.util.Log;
import java.util.HashMap;

/**
 * Created by MMueller on 10/7/2016.
 */
public class OnBootService extends Service implements Cloneable{
    private static final String TAG = "Madcap On Boot Service";
    private Context context = this;

    /**
     * Gets called when the Service gets bonund to an Activity.
     * @param intent the starting Intent.
     * @return the answer.
     */
    @Override
    public final IBinder onBind(Intent intent) {
        return null;
    }

    /**
     * Gets invoked when the Service gets destroyed.
     */
    @Override
    public final void onDestroy() {
        Log.d(TAG, "onDestroy");
    }

    /**
     * Gets invoked when the Service gets created, right before it gets started.
     */
    @Override
    public final void onCreate(){
        Log.d(TAG, "onCreate Boot Service");
        Intent intent = new Intent(this, LoginService.class);
        startService(intent);
    }

    /**
     * Setter for the context. For testing purposes only.
     * @deprecated
     * @param context the context to be set.
     */
    @Deprecated
{'fraction_non_alphanumeric': 0.09277594426109277, 'fraction_numerical': 0.005133846718005134, 'mean_word_length': 2.618037135278515, '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': '4557022', 'n_tokens_mistral': 765, 'n_tokens_neox': 740, 'n_words': 265}