<commit_before>/* Spinner/Loader Cordova Plugin - JavaScript side of the bridge to iOS
*
* @author <NAME>
* @copyright WizCorp Inc. [ Incorporated Wizards ] 2012
* @file JavaScript wizSpinner for Cordova
*
*/

/*

============= example code ====================

function shouldRotateToOrientation (orientation)
{
if (deviceIsReady == true) {
switch (orientation) {
case 0:
// portrait normal
window.wizSpinner.rotate(1);
return true;
break;
case 90:
// landscape left
window.wizSpinner.rotate(3);
return true;
break;
case -90:
// landscape right
window.wizSpinner.rotate(4);
return true;
break;
case 180:
// portrait upside down
return false;
break
}
}
}


function onDeviceReady()
{
deviceIsReady = true;
}
*/

var wizSpinner = {


    create: function(s,f,a) {
        if(typeof(a) == "undefined") {
			return cordova.exec(s, f, 'wizSpinnerPlugin', 'create', []);
		} else {
			return cordova.exec(s, f, 'wizSpinnerPlugin', 'create', [a]);
		}
        
    },
    
    show: function(s,f,a) {

        if(typeof(a) == "undefined") {
            
            return cordova.exec(s, f, 'wizSpinnerPlugin', 'show', []);
		} else {
            return cordova.exec(s, f, 'wizSpinnerPlugin', 'show', [a]);
        }
        

    },
    
    hide: function(s,f) {

        return cordova.exec(null, null, 'wizSpinnerPlugin', 'hide', []);
        
    },
    
    rotate: function(orientation) {
        cordova.exec(null, null, 'wizSpinnerPlugin', 'rotate', [orientation]);
    }


};<commit_msg>Update v1.7<commit_after>/* Spinner/Loader Cordova Plugin - JavaScript side of the bridge to iOS
*
* @author <NAME>
* @copyright WizCorp Inc. [ Incorporated Wizards ] 2012
* @file JavaScript wizSpinner for Cordova
*
*/

/*

============= example code ====================

function shouldRotateToOrientation (orientation)
{
if (deviceIsReady == true) {
switch (orientation) {
case 0:
// portrait normal
window.wizSpinner.rotate(1);
return true;
break;
case 90:
// landscape left
window.wizSpinner.rotate(3);
return true;
break;
case -90:
// landscape right
window.wizSpinner.rotate(4);
return true;
break;
case 180:
// portrait upside down
return false;
break
}
}
}


function onDeviceReady()
{
deviceIsReady = true;
}
*/

var wizSpinner = {


    show: function(options) {

        if(typeof(options) == "undefined") {
            
            return cordova.exec(null, null, 'wizSpinnerPlugin', 'show', []);
		} else {
            return cordova.exec(null, null, 'wizSpinnerPlugin', 'show', [options]);
        }
        

    },
    
    hide: function() {

        return cordova.exec(null, null, 'wizSpinnerPlugin', 'hide', []);
        
    },
    
    rotate: function(orientation) {
        cordova.exec(null, null, 'wizSpinnerPlugin', 'rotate', [orientation]);
    }


};
{'fraction_non_alphanumeric': 0.16516408222142084, 'fraction_numerical': 0.01153984853948792, 'mean_word_length': 3.0734214390602057, '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': '4033120', 'n_tokens_mistral': 977, 'n_tokens_neox': 904, 'n_words': 221}