<commit_before>var dialer =  {
  dialNumber: function(phone_number, successCallback, errorCallback) {
    cordova.exec(
      successCallback, // success callback function
      errorCallback, // error callback function
      'DialerPlugin', // mapped to our native Java class called "Calendar"
      'dialNumber', // with this action name
      [{                  // and this array of custom arguments to create our entry
        "phone_number": phone_number
      }]
    );
  }
}
module.exports = dialer;<commit_msg>updated js to expose a global var<commit_after>var exec = require("cordova/exec");


function DialerPlugin() {}

// **Initialize speech kit**
//
// `credentialClassName`  The class name to be loaded to retrieve the app id and key  
// `serverName`  The hostname of the server to connect to  
// `port`  The port number for connection  
// `sslEnabled`  True if SSL is enabled for the connection  
// `successCallback`  The callback function for success  
// `failureCallback`  The callback function for error  
DialerPlugin.prototype.dialNumber =function(phone_number, successCallback, errorCallback) {

  exec(
      successCallback, // success callback function
      errorCallback, // error callback function
      'DialerPlugin', // mapped to our native Java class called "Calendar"
      'dialNumber', // with this action name
      [{                  // and this array of custom arguments to create our entry
        "phone_number": phone_number
      }]
    );
  }

});

 var DialerPlugin = new DialerPlugin();
        module.exports = DialerPlugin;
{'fraction_non_alphanumeric': 0.0901015228426396, 'fraction_numerical': 0.0, 'mean_word_length': 2.8842364532019706, 'pattern_counts': {'":': 2, '<': 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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5652031', 'n_tokens_mistral': 415, 'n_tokens_neox': 404, 'n_words': 151}