<commit_before>/**
 * this represents the mobile device, and provides properties for inspecting the model, version, UUID of the
 * phone, etc.
 * @constructor
 */
var exec = require('cordova/exec'),
    utils = require('cordova/utils'),
    channel = require('cordova/channel');

var Device = function() {
    this.platform = null;
    this.version  = null;
    this.name     = null;
    this.cordova  = null;
    this.uuid     = null;
};

Device.prototype.setInfo = function(info) {
    try {
        this.platform = info.platform;
        this.version = info.version;
        this.name = info.name;
        this.cordova = info.gap;
        this.uuid = info.uuid;
        channel.onCordovaInfoReady.fire();
    } catch(e) {
        utils.alert('Error during device info setting in cordova/plugin/ios/device!');
    }
};

module.exports = new Device();<commit_msg>[CB-512] proper reference to cordova version in deviceproperties on iOS<commit_after>/**
 * this represents the mobile device, and provides properties for inspecting the model, version, UUID of the
 * phone, etc.
 * @constructor
 */
var exec = require('cordova/exec'),
    utils = require('cordova/utils'),
    channel = require('cordova/channel');

var Device = function() {
    this.platform = null;
    this.version  = null;
    this.name     = null;
    this.cordova  = null;
    this.uuid     = null;
};

Device.prototype.setInfo = function(info) {
    try {
        this.platform = info.platform;
        this.version = info.version;
        this.name = info.name;
        this.cordova = info.cordova;
        this.uuid = info.uuid;
        channel.onCordovaInfoReady.fire();
    } catch(e) {
        utils.alert('Error during device info setting in cordova/plugin/ios/device!');
    }
};

module.exports = new Device();
{'fraction_non_alphanumeric': 0.12793296089385475, 'fraction_numerical': 0.0016759776536312849, 'mean_word_length': 2.7234927234927233, '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': '6246986', 'n_tokens_mistral': 536, 'n_tokens_neox': 531, 'n_words': 138}