<commit_before>/**
 * jQuery object.
 * @external jQuery
 * @see {@link http://api.jquery.com/jQuery/}
 */

/**
 * The jQuery plugin namespace.
 * @external "jQuery.fn"
 * @see {@link http://docs.jquery.com/Plugins/Authoring The jQuery Plugin Guide}
 */

const log = require('./log');
const utils = require('./utils');
const vulcanval = require('./main');
const plugin = require('./plugin/plugin');
const localeEN = require('./localization/en');

// Install the English language.
vulcanval.extendLocale(localeEN);
vulcanval.setLocale('en');

// Expose the public API.
if (!utils.isNodejs) {
  if (window.jQuery) {
    window.jQuery.vulcanval = vulcanval;
    window.jQuery.fn.vulcanval = plugin;
  } else {
    log.error('jQuery is required to perform operations');
  }
}

module.exports = vulcanval;<commit_msg>update: vulcanval<commit_after>/**
 * jQuery object.
 * @external jQuery
 * @see {@link http://api.jquery.com/jQuery/}
 */

/**
 * The jQuery plugin namespace.
 * @external "jQuery.fn"
 * @see {@link http://docs.jquery.com/Plugins/Authoring The jQuery Plugin Guide}
 */

const log = require('./log');
const utils = require('./utils');
const vulcanval = require('./main');
const plugin = require('./plugin/plugin');
const localeEN = require('./localization/en');

// Install the English language.
vulcanval.extendLocale(localeEN);
vulcanval.setLocale('en');

// Expose the public API.
utils.performInBrowser(true, function () {
  window.jQuery.vulcanval = vulcanval;
  window.jQuery.fn.vulcanval = plugin;
});

module.exports = vulcanval;
{'fraction_non_alphanumeric': 0.171078114912847, 'fraction_numerical': 0.0, 'mean_word_length': 4.065359477124183, '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': '6301872', 'n_tokens_mistral': 487, 'n_tokens_neox': 485, 'n_words': 117}