<commit_before>var gaTracker = (function(dLayer) {

    // Push the object to the dataLayer
    // Parameters:
    // eventName, category, action, label, Type String
    // value Type Number (int)
    var pushEventToDataLayer = function(eventName, category, action, label, value) {
        dLayer.push({
            "event": eventName, // on GTM this would be the event that triggers the tag.
            "category": category,
            "action": action,
            "label": label,
            "value": value
        });
    };

    var isUniversalAnalytics = function(ga) {
        return typeof ga !== "undefined" && typeof ga.getAll === 'function' ? true : false;
    }

    var isClassicAnalytics = function(_gat) {
        return typeof _gat !== "undefined" && typeof _gat._getTrackers === 'function' ? true : false;
    }

    // decorate target URL for cross domain tracker.
    var decorateLink = function(url) {
        var trackers, linker;

        if (isUniversalAnalytics(ga)) {
            trackers = ga.getAll();
            if (trackers.length) {
                linker = new window.gaplugins.Linker(trackers[0]);
                url = linker.decorate(url);
            }
        }

        if (isClassicAnalytics(_gat)) {
            trackers = _gat._getTrackers();
            if (trackers.length) {
                url = trackers[0]._getLinkerUrl(url);
            }
        }

        return url;
    };

    return {
        "event": pushEventToDataLayer,
        "decorateLink": decorateLink
    };

})(dataLayer);<commit_msg>Add missing semi-colons and if/else that statement<commit_after>var gaTracker = (function(dLayer) {

    // Push the object to the dataLayer
    // Parameters:
    // eventName, category, action, label, Type String
    // value Type Number (int)
    var pushEventToDataLayer = function(eventName, category, action, label, value) {
        dLayer.push({
            "event": eventName, // on GTM this would be the event that triggers the tag.
            "category": category,
            "action": action,
            "label": label,
            "value": value
        });
    };

    var isUniversalAnalytics = function(ga) {
        return typeof ga !== "undefined" && typeof ga.getAll === 'function' ? true : false;
    };

    var isClassicAnalytics = function(_gat) {
        return typeof _gat !== "undefined" && typeof _gat._getTrackers === 'function' ? true : false;
    };

    // decorate target URL for cross domain tracker.
    var decorateLink = function(url) {
        var trackers, linker;

        if (isUniversalAnalytics(ga)) {
            trackers = ga.getAll();
            if (trackers.length) {
                linker = new window.gaplugins.Linker(trackers[0]);
                url = linker.decorate(url);
            }
        } else if (isClassicAnalytics(_gat)) {
            trackers = _gat._getTrackers();
            if (trackers.length) {
                url = trackers[0]._getLinkerUrl(url);
            }
        }

        return url;
    };

    return {
        "event": pushEventToDataLayer,
        "decorateLink": decorateLink
    };

})(dataLayer);
{'fraction_non_alphanumeric': 0.11730953139942621, 'fraction_numerical': 0.001275103602167676, 'mean_word_length': 1.9687795648060549, 'pattern_counts': {'":': 14, '<': 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': '1146787', 'n_tokens_mistral': 914, 'n_tokens_neox': 872, 'n_words': 232}