<commit_before>function AudioRecorder() {
}

AudioRecorder.prototype.record = function (successCallback, errorCallback, duration) {
  cordova.exec(successCallback, errorCallback, "AudioRecorder", "record", fileDir ? [fileDir] : []);
};

AudioRecorder.prototype.stop = function (successCallback, errorCallback) {
  cordova.exec(successCallback, errorCallback, "AudioRecorder", "stop", []);
};

AudioRecorder.install = function () {
  if (!window.plugins) {
    window.plugins = {};
  }
  window.plugins.audioRecorder = new AudioRecorder();
  return window.plugins.audioRecorder;
};

cordova.addConstructor(AudioRecorderAPI.install);
<commit_msg>More fixes<commit_after>function AudioRecorder() {
}

AudioRecorder.prototype.record = function (successCallback, errorCallback, duration) {
  cordova.exec(successCallback, errorCallback, "AudioRecorder", "record", fileDir ? [fileDir] : []);
};

AudioRecorder.prototype.stop = function (successCallback, errorCallback) {
  cordova.exec(successCallback, errorCallback, "AudioRecorder", "stop", []);
};

AudioRecorder.install = function () {
  if (!window.plugins) {
    window.plugins = {};
  }
  window.plugins.audioRecorder = new AudioRecorder();
  return window.plugins.audioRecorder;
};

cordova.addConstructor(AudioRecorder.install);

{'fraction_non_alphanumeric': 0.14040561622464898, 'fraction_numerical': 0.0, 'mean_word_length': 6.207865168539326, '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': '6847304', 'n_tokens_mistral': 378, 'n_tokens_neox': 376, 'n_words': 65}