<commit_before><?php

/*
 * Configure JS.
 *
 * jQuery is included externally (for compatability with plugins), everything
 * else is loaded via Browserify.
 */

add_action('wp_enqueue_scripts', function () {
    $deps = [];

    // jQuery

    wp_deregister_script('jquery');
    wp_enqueue_script('jquery', '//code.jquery.com/jquery-1.11.1.min.js', false, null, true);
    $deps[] = 'jquery';

    // Modernizr (this goes in the head, see http://v3.modernizr.com/docs/#installing)

    $modernizr = '/assets/js/vendor/modernizr.js';
    $modernizrPath = get_template_directory() . $modernizr;
    $modernizrUrl = get_template_directory_uri() . $modernizr;
    $modernizrVersion = filemtime($modernizrPath);
    wp_enqueue_script('modernizr', $modernizrUrl, false, $modernizrVersion, false);

    // Browserify JS

    $file = '/assets/js/compiled.js';
    $path = get_template_directory() . $file;
    $url = get_template_directory_uri() . $file;
    $version = filemtime($path);

    wp_enqueue_script('theme-main', $url, $deps, $version, true);
    wp_localize_script('theme-main', 'themeAjax', ['ajaxurl' => admin_url('admin-ajax.php')]);
});<commit_msg>Update to jQuery v2.2.2<commit_after><?php

/*
 * Configure JS.
 *
 * jQuery is included externally (for compatability with plugins), everything
 * else is loaded via Browserify.
 */

add_action('wp_enqueue_scripts', function () {
    $deps = [];

    // jQuery

    wp_deregister_script('jquery');
    wp_enqueue_script('jquery', '//code.jquery.com/jquery-2.2.2.min.js', false, null, true);
    $deps[] = 'jquery';

    // Modernizr (this goes in the head, see http://v3.modernizr.com/docs/#installing)

    $modernizr = '/assets/js/vendor/modernizr.js';
    $modernizrPath = get_template_directory() . $modernizr;
    $modernizrUrl = get_template_directory_uri() . $modernizr;
    $modernizrVersion = filemtime($modernizrPath);
    wp_enqueue_script('modernizr', $modernizrUrl, false, $modernizrVersion, false);

    // Browserify JS

    $file = '/assets/js/compiled.js';
    $path = get_template_directory() . $file;
    $url = get_template_directory_uri() . $file;
    $version = filemtime($path);

    wp_enqueue_script('theme-main', $url, $deps, $version, true);
    wp_localize_script('theme-main', 'themeAjax', ['ajaxurl' => admin_url('admin-ajax.php')]);
});
{'fraction_non_alphanumeric': 0.162440911044263, 'fraction_numerical': 0.005156854318865492, 'mean_word_length': 4.017241379310345, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3306181', 'n_tokens_mistral': 842, 'n_tokens_neox': 794, 'n_words': 149}