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

/**
 * Launches a capture of different types.
 *
 * @param (DOMString} type 
 * @param {Function} successCB
 * @param {Function} errorCB
 * @param {CaptureVideoOptions} options
 */
function _capture(type, successCallback, errorCallback, options) {
    var win = function(result) {
        var mediaFiles = [];
        var i;
        for (i = 0; i < pluginResult.message.length; i++) {
            var mediaFile = new MediaFile();
            mediaFile.name = pluginResult.message[i].name;
            mediaFile.fullPath = pluginResult.message[i].fullPath;
            mediaFile.type = pluginResult.message[i].type;
            mediaFile.lastModifiedDate = pluginResult.message[i].lastModifiedDate;
            mediaFile.size = pluginResult.message[i].size;
            mediaFiles.push(mediaFile);
        }
        successCallback(mediaFiles);
    };<commit_msg>Making the capture API work correctly on Android<commit_after>var exec = require('cordova/exec'),
    MediaFile = require('cordova/plugin/MediaFile');

/**
 * Launches a capture of different types.
 *
 * @param (DOMString} type 
 * @param {Function} successCB
 * @param {Function} errorCB
 * @param {CaptureVideoOptions} options
 */
function _capture(type, successCallback, errorCallback, options) {
    var win = function(pluginResult) {
        var mediaFiles = [];
        var i;
        for (i = 0; i < pluginResult.length; i++) {
            var mediaFile = new MediaFile();
            mediaFile.name = pluginResult[i].name;
            mediaFile.fullPath = pluginResult[i].fullPath;
            mediaFile.type = pluginResult[i].type;
            mediaFile.lastModifiedDate = pluginResult[i].lastModifiedDate;
            mediaFile.size = pluginResult[i].size;
            mediaFiles.push(mediaFile);
        }
        successCallback(mediaFiles);
    };
{'fraction_non_alphanumeric': 0.11831862999481059, 'fraction_numerical': 0.0010378827192527244, 'mean_word_length': 2.8253968253968256, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1164629', 'n_tokens_mistral': 532, 'n_tokens_neox': 528, 'n_words': 121}