<commit_before>package me.thenightmancodeth.classi.controllers.receivers;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.NotificationManagerCompat;
import android.util.Log;

import me.thenightmancodeth.classi.R;

/**
 * Created by thenightman on 1/12/17.
 **/

public class AlarmReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String title = intent.getExtras().getString("title");
        String location = intent.getExtras().getString("location");
        Log.i("Notification", "alarm received from: " +title);

        NotificationCompat.Builder builder =
                new NotificationCompat.Builder(context)
                .setSmallIcon(R.drawable.ic_noti_icon)
                .setContentTitle(title)
                .setContentText(location);
        int notifyID = 1;
        NotificationManager nm = (NotificationManager)context.
                getSystemService(Context.NOTIFICATION_SERVICE);
        nm.notify(notifyID, builder.build());
    }
}<commit_msg>Adds vibration and notification sound to alerts<commit_after>package me.thenightmancodeth.classi.controllers.receivers;

import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.provider.Settings;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.NotificationManagerCompat;
import android.util.Log;

import me.thenightmancodeth.classi.R;

/**
 * Created by thenightman on 1/12/17.
 **/

public class AlarmReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String title = intent.getExtras().getString("title");
        String location = intent.getExtras().getString("location");
        Log.i("Notification", "alarm received from: " +title);

        NotificationCompat.Builder builder =
                new NotificationCompat.Builder(context)
                .setSmallIcon(R.drawable.ic_noti_icon)
                .setContentTitle(title)
                .setContentText(location)
                .setVibrate(new long[] {1000, 1000})
                .setSound(Settings.System.DEFAULT_NOTIFICATION_URI);
        int notifyID = 1;
        NotificationManager nm = (NotificationManager)context.
                getSystemService(Context.NOTIFICATION_SERVICE);
        nm.notify(notifyID, builder.build());
    }
}
{'fraction_non_alphanumeric': 0.09813617344998098, 'fraction_numerical': 0.009128946367440091, 'mean_word_length': 3.3687707641196014, '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': '3960793', 'n_tokens_mistral': 739, 'n_tokens_neox': 690, 'n_words': 137}