<commit_before>/**
 * ga-shim.js 0.0.1
 *
 * (c) 2014 <NAME>, Mobify 
 * ga-shim.js may be freely distributed under the MIT license.
 *
 */
(function (root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define([], factory);
    } else if (typeof exports === 'object') {
        // Node. Does not work with strict CommonJS, but
        // only CommonJS-like environments that support module.exports,
        // like Node.
        module.exports = factory();
    } else {
        // Browser globals (root is window)
        root.GAShim = factory();
    }
}(this, function () {

    var GAShim = {};

    /**
     * Maps old GA commands to it's respective GUA equivalent
     *
     * apiName - name of new API in GUA that corresponds with the
     *           key name.
     * args    - Defines the name of the arguments that will be used to
     *           construct the argument map to be passed into the GUA API.
     *           The ordering also corresponds to the order of these fields
     *           in the old GA API.
     * send    - Send should be set to 'true' if the first argument passed
     *           into the GUA API is 'send'. We differentiate on this because
     *           the API is called slightly differently for this case.
     *
     * For commands that aren't simple to convert, you can define a function that
     * will convert into the format needed for the `ga` GUA API. The function
     * provides the arguments of the old API, and expects exact arguments
     * that should be applied to `ga` in return.
     */
    GAShim._gaCommandShimMap = {<commit_msg>Check for "exports" before "define"<commit_after>/**
 * ga-shim.js 0.0.2
 *
 * (c) 2014 <NAME>, Mobify 
 * ga-shim.js may be freely distributed under the MIT license.
 *
 */
(function (root, factory) {
    if (typeof exports === 'object') {
        // Node. Does not work with strict CommonJS, but
        // only CommonJS-like environments that support module.exports,
        // like Node.
        module.exports = factory();
    } else if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define([], factory);
    } else {
        // Browser globals (root is window)
        root.GAShim = factory();
    }
}(this, function () {

    var GAShim = {};

    /**
     * Maps old GA commands to it's respective GUA equivalent
     *
     * apiName - name of new API in GUA that corresponds with the
     *           key name.
     * args    - Defines the name of the arguments that will be used to
     *           construct the argument map to be passed into the GUA API.
     *           The ordering also corresponds to the order of these fields
     *           in the old GA API.
     * send    - Send should be set to 'true' if the first argument passed
     *           into the GUA API is 'send'. We differentiate on this because
     *           the API is called slightly differently for this case.
     *
     * For commands that aren't simple to convert, you can define a function that
     * will convert into the format needed for the `ga` GUA API. The function
     * provides the arguments of the old API, and expects exact arguments
     * that should be applied to `ga` in return.
     */
    GAShim._gaCommandShimMap = {
{'fraction_non_alphanumeric': 0.0875, 'fraction_numerical': 0.004166666666666667, 'mean_word_length': 2.0582347588717016, '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': '6379606', 'n_tokens_mistral': 915, 'n_tokens_neox': 886, 'n_words': 414}