<commit_before>/**
 * 
 * @author <NAME>
 * @copyright WizCorp Inc. [ Incorporated Wizards ] 2011
 * @file localNotification.js for PhoneGap
 *
 */

if (window.cordova) {
    window.document.addEventListener("deviceready", function () {
        cordova.exec(null, null, "LocalNotification", "ready", []);
    }, false);
}

var localNotification = {

	add : function(id, options) {

		return cordova.exec(null, null, "LocalNotification", "addNotification", [id, options]);
	},

	cancel : function(id) {
		return cordova.exec(null, null, "LocalNotification", "cancelNotification", [id]);
	},
	
	cancelAll : function() {
        return cordova.exec(null, null,"LocalNotification", "cancelAllNotifications", []);
    },
    
    queue : function(id, options) {
        
		return cordova.exec(null, null, "LocalNotification", "queueNotification", [id, options]);
	},

    getApplicationBadge : function(s) {
        return cordova.exec(s, null, "LocalNotification", "getApplicationBadge", []);
    },
        
    setApplicationBadge : function(intValue, s) {
        return cordova.exec(s, null, "LocalNotification", "setApplicationBadge", [intValue]);
    }

}



/*
*
*   Example functions
*

function sendNotif() {
    myOptions = {
        seconds: 30,
        message: 'chaaaarrrliieeeee',
        badge: 1
    }
    localNotification.add( "0", myOptions );
    
};

function cancelLastNotif() {
    localNotification.cancel( "0" );
    
};

function cancelAllNotif() {
    
    localNotification.cancelAll();
    
};



*/<commit_msg>updated plugman ios files<commit_after>/**
 * 
 * @author <NAME>
 * @copyright Wizcorp Inc. [ Incorporated Wizards ] 2013
 * @file localNotification.js for PhoneGap
 *
 */

var exec = require("cordova/exec");

if (window.cordova) {
    window.document.addEventListener("deviceready", function () {
        exec(null, null, "LocalNotification", "ready", []);
    }, false);
}

var LocalNotification = function () {};


LocalNotification.prototype.add = function (id, options) {
		exec(null, null, "LocalNotification", "addNotification", [id, options]);
	};

LocalNotification.prototype.cancel = function (id) {
		exec(null, null, "LocalNotification", "cancelNotification", [id]);
	};
	
LocalNotification.prototype.cancelAll = function () {
        exec(null, null,"LocalNotification", "cancelAllNotifications", []);
    };
    
LocalNotification.prototype.queue = function (id, options) {
        
		exec(null, null, "LocalNotification", "queueNotification", [id, options]);
	};

LocalNotification.prototype.getApplicationBadge = function (s) {
        exec(s, null, "LocalNotification", "getApplicationBadge", []);
    };
        
LocalNotification.prototype.setApplicationBadge = function (intValue, s) {
        exec(s, null, "LocalNotification", "setApplicationBadge", [intValue]);
    };

// instantiate wizCanvas (passing "mainView" which is Cordova's window)
window.localNotification = new LocalNotification();
module.exports = localNotification;
{'fraction_non_alphanumeric': 0.14792503346720215, 'fraction_numerical': 0.004350736278447122, 'mean_word_length': 3.852272727272727, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '675524', 'n_tokens_mistral': 918, 'n_tokens_neox': 872, 'n_words': 188}