<commit_before>/*!
 * Module dependencies.
 */

var path = require('path'),
    cordovaLibPath = path.join('..', '..', 'node_modules', 'cordova', 'node_modules', 'cordova-lib');

/**
 * Cordova CLI API.
 *
 * Eventually, it will be replaced by:
 *
 *     require('cordova').cli;
 */

module.exports.cordova = require(cordovaLibPath).cordova;

/**
 * Cordova Lib.
 *
 * Eventually, it will be replaced by:<commit_msg>[#515] Add support for npm 3.x.x flatten node_modules/<commit_after>/*!
 * Module dependencies.
 */

var fs = require('fs'),
    path = require('path'),
    cordovaLibPath = path.join('..', '..', 'node_modules', 'cordova', 'node_modules', 'cordova-lib');

// npm 3.x flattens the node_modules/ and moves 'cordova-lib'
// More info at phonegap/phonegap#515
if (!fs.existsSync(cordovaLibPath)) {
    cordovaLibPath = path.join('..', '..', 'node_modules', 'cordova-lib');
}

/**
 * Cordova CLI API.
 *
 * Eventually, it will be replaced by:
 *
 *     require('cordova').cli;
 */

module.exports.cordova = require(cordovaLibPath).cordova;

/**
 * Cordova Lib.
 *
 * Eventually, it will be replaced by:
{'fraction_non_alphanumeric': 0.18688230008984727, 'fraction_numerical': 0.0071877807726864335, 'mean_word_length': 3.6416666666666666, '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': '2807701', 'n_tokens_mistral': 391, 'n_tokens_neox': 376, 'n_words': 90}