<commit_before>package com.futureplatforms.kirin.gwt.client.delegates;

import com.futureplatforms.kirin.dependencies.NotificationDelegate;

public class GwtNotificationDelegate implements NotificationDelegate {

	private static native void callScheduleNotification(final int notificationId, final double timeMillisSince1970, final String title, final String text) /*-{
	    var notifications = require("LocalNotifications");
	    
	    var config = {
	    	title: title,
	        text: text,
	        id: notificationId,
	        timeMillisSince1970: timeMillisSince1970
	    };
	    
	    notifications.scheduleNotification(config);
	}-*/;
	
	private static native void callCancelNotification(final int notificationId) /*-{
	    require("LocalNotifications").cancelNotification(notificationId);
	}-*/;
	
	@Override
	public void scheduleNotification(final int notificationId, final long timeMillisSince1970, final String title, final String text) {
		callScheduleNotification(notificationId, timeMillisSince1970, title, text);
	}
	
	@Override
	public void cancelNotification(final int notificationId) {
		callCancelNotification(notificationId);
	}

}
<commit_msg>Ensuring require is accessed correclty for LocalNotifications<commit_after>package com.futureplatforms.kirin.gwt.client.delegates;

import com.futureplatforms.kirin.dependencies.NotificationDelegate;

public class GwtNotificationDelegate implements NotificationDelegate {

	private static native void callScheduleNotification(final int notificationId, final double timeMillisSince1970, final String title, final String text) /*-{
	    var notifications = $wnd.require("LocalNotifications");
	    
	    var config = {
	    	title: title,
	        text: text,
	        id: notificationId,
	        timeMillisSince1970: timeMillisSince1970
	    };
	    
	    notifications.scheduleNotification(config);
		
	}-*/;
	
	private static native void callCancelNotification(final int notificationId) /*-{
	    $wnd.require("LocalNotifications").cancelNotification(notificationId);
	}-*/;
	
	@Override
	public void scheduleNotification(final int notificationId, final long timeMillisSince1970, final String title, final String text) {
		callScheduleNotification(notificationId, timeMillisSince1970, title, text);
	}
	
	@Override
	public void cancelNotification(final int notificationId) {
		callCancelNotification(notificationId);
	}

}

{'fraction_non_alphanumeric': 0.07869401423189619, 'fraction_numerical': 0.016743407283382167, 'mean_word_length': 4.800970873786408, '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': '4447436', 'n_tokens_mistral': 662, 'n_tokens_neox': 595, 'n_words': 152}