<commit_before>/**
  Phonegap CameraAttachment Plugin
  https://github.com/francescobitmunks/cordova-plugin-cameraattachment

  MIT Licensed
*/

var exec = require('cordova/exec');
/**
 * Constructor
 */
function CameraAttachment() {
    this._callback;
}

/**
 * show - true to show the ad, false to hide the ad
 */
CameraAttachment.prototype.show = function(options, cb) {
    var padDate = function(date) {
      if (date.length == 1) {
        return ("0" + date);
      }
      return date;
    };

    var defaults = {
        mode : 'date',
        date : -1,
        minDate: -1,
        maxDate: -1,
        minuteInterval:1,
        positiveButtonText: 'Set',
        negativeButtonText: 'Cancel',
        setDateTitle: 'Set date',
        setTimeTitle: 'Set time',
        x: '0',
        y: '0',
    };

    for (var key in defaults) {
        if (typeof options[key] !== "undefined")
            defaults[key] = options[key];
    }
    this._callback = cb;

    exec(null, 
      null, 
      "CameraAttachmentPlugin", 
      "show",
      [defaults]
    );
};

CameraAttachment.prototype._dateSelected = function(date) {
    var d = new Date(parseFloat(date) * 1000);
    if (this._callback)
        this._callback(d);
}

CameraAttachment.prototype._dateSelectionCanceled = function() {
    if (this._callback)
        this._callback();
}



var cameraAttachmentPlugin = new CameraAttachment();
module.exports = cameraAttachmentPlugin;

// Make plugin work under window.plugins
if (!window.plugins) {
    window.plugins = {};
}
if (!window.plugins.cameraAttachmentPlugin) {
    window.plugins.cameraAttachmentPlugin = cameraAttachmentPlugin;
}
<commit_msg>iOS test<commit_after>/**
  Phonegap CameraAttachment Plugin
  https://github.com/francescobitmunks/cordova-plugin-cameraattachment

  MIT Licensed
*/

var exec = require('cordova/exec');
/**
 * Constructor
 */
function CameraAttachmentPlugin() {
    this._callback;
}

/**
 * show - true to show the ad, false to hide the ad
 */
CameraAttachmentPlugin.prototype.show = function(options, cb) {
    var padDate = function(date) {
      if (date.length == 1) {
        return ("0" + date);
      }
      return date;
    };

    var defaults = {
        mode : 'date',
        date : -1,
        minDate: -1,
        maxDate: -1,
        minuteInterval:1,
        positiveButtonText: 'Set',
        negativeButtonText: 'Cancel',
        setDateTitle: 'Set date',
        setTimeTitle: 'Set time',
        x: '0',
        y: '0',
    };

    for (var key in defaults) {
        if (typeof options[key] !== "undefined")
            defaults[key] = options[key];
    }
    this._callback = cb;

    exec(null, 
      null, 
      "CameraAttachmentPlugin", 
      "show",
      [defaults]
    );
};

CameraAttachmentPlugin.prototype._dateSelected = function(date) {
    var d = new Date(parseFloat(date) * 1000);
    if (this._callback)
        this._callback(d);
}

CameraAttachmentPlugin.prototype._dateSelectionCanceled = function() {
    if (this._callback)
        this._callback();
}



var cameraAttachmentPlugin = new CameraAttachmentPlugin();
module.exports = cameraAttachmentPlugin;

// Make plugin work under window.plugins
if (!window.plugins) {
    window.plugins = {};
}
if (!window.plugins.cameraAttachmentPlugin) {
    window.plugins.cameraAttachmentPlugin = cameraAttachmentPlugin;
}

{'fraction_non_alphanumeric': 0.12897473997028233, 'fraction_numerical': 0.00713224368499257, 'mean_word_length': 2.611587982832618, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6181405', 'n_tokens_mistral': 1016, 'n_tokens_neox': 1006, 'n_words': 231}