<commit_before>var exec = require('cordova/exec');

/**
 * open
 *
 * @param {String} args File URI
 * @param {Function} [success] Call on success
 * @param {Function} [error] Call on error
 */
exports.open = function(args, success, error) {
  if (!args || arguments.length === 0) return;

  function defaultSuccess() {
    // invoke optional callback
    if (typeof success === 'function') success();
  }

  function defaultError() {
    // invoke optional callback
    if (typeof error === 'function') error();
  }
  exec(defaultSuccess, defaultError, "BridgeOpen", "open", [args]); 
};<commit_msg>Clean up javascript<commit_after>var exec = require('cordova/exec');

/**
 * open
 * Open documents with compatible apps
 *
 * @param {String} args File URI
 * @param {Function} [success] Call on success
 * @param {Function} [error] Call on error
 */
exports.open = function(args, success, error) {
  if (!args || arguments.length === 0) return;

  function onSuccess() {
    // invoke optional callback
    if (typeof success === 'function') success();
  }

  function onError() {
    // invoke optional callback
    if (typeof error === 'function') error();
  }
  exec(onSuccess, onError, "BridgeOpen", "open", [args]);
};
{'fraction_non_alphanumeric': 0.15931372549019607, 'fraction_numerical': 0.0016339869281045752, 'mean_word_length': 3.841897233201581, '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': '1410748', 'n_tokens_mistral': 361, 'n_tokens_neox': 350, 'n_words': 117}