<commit_before>package com.massivedisaster.adal.utils;

import android.app.NotificationManager;
import android.content.Context;

public class NotificationUtils {

    /**
     * Cancel a specify notification based on notification id
     *
     * @param context        the application context
     * @param notificationId the notification id
     */
    public static void cancelNotification(Context context, int notificationId) {
        String ns = Context.NOTIFICATION_SERVICE;
        NotificationManager nMgr = (NotificationManager) context.getSystemService(ns);
        nMgr.cancel(notificationId);
    }

    /**
     * Cancel a specify notification based on notification id and tag
     *
     * @param context        the application context
     * @param tag            the notification tag
     * @param notificationId the notification id
     */
    public static void cancelNotification(Context context, String tag, int notificationId) {
        String ns = Context.NOTIFICATION_SERVICE;
        NotificationManager nMgr = (NotificationManager) context.getSystemService(ns);
        nMgr.cancel(tag, notificationId);
    }
}<commit_msg>Removed repeated code from NotificationUtils.<commit_after>package com.massivedisaster.adal.utils;

import android.app.NotificationManager;
import android.content.Context;

public class NotificationUtils {

    /**
     * Cancel a specify notification based on notification id
     *
     * @param context        the application context
     * @param notificationId the notification id
     */
    public static void cancelNotification(Context context, int notificationId) {
        internalCancelNotification(context, null, notificationId);
    }

    /**
     * Cancel a specify notification based on notification id and tag
     *
     * @param context        the application context
     * @param tag            the notification tag
     * @param notificationId the notification id
     */
    public static void cancelNotification(Context context, String tag, int notificationId) {
        internalCancelNotification(context, tag, notificationId);
    }

    public static void internalCancelNotification(Context context, String tag, int notificationId) {
        String ns = Context.NOTIFICATION_SERVICE;
        NotificationManager nMgr = (NotificationManager) context.getSystemService(ns);
        nMgr.cancel(tag, notificationId);
    }
}
{'fraction_non_alphanumeric': 0.06722338204592902, 'fraction_numerical': 0.0, 'mean_word_length': 3.1961471103327495, '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': '2500225', 'n_tokens_mistral': 563, 'n_tokens_neox': 551, 'n_words': 181}