<commit_before>userEmail = "";
userName = "";
userOptin = '';
externalHost = '';
var clicked = false;

function setUserGlobals(data) {
    userName = data.name;
    userOptin = data.optin;
    externalHost = data.externalHost;

    $.cookie('optin', userOptin, {path: '/'});

    $(".user-info-name-link").text(userName);
}

$(document).ready(function() {
    if (userOptin === "true") {
        $(".app-page").append('<script type="text/javascript" charset="utf-8" src="js/ga.js"></script>');
    }
});<commit_msg>Added new globals being exposed by hosting endpoing.<commit_after>userEmail = "";
userName = "";
userOptin = '';
externalHost = '';
var clicked = false;

function setUserGlobals(data) {
    userName = data.name;
    userEmail = data.email;
    userImageUrl = data.imageUrl;
    userOptin = data.optin;
    userApiToken = data.apiToken;
    externalHost = data.externalHost;

    $.cookie('optin', userOptin, {path: '/'});

    $(".user-info-name-link").text(userName);
}

$(document).ready(function() {
    if (userOptin === "true") {
        $(".app-page").append('<script type="text/javascript" charset="utf-8" src="js/ga.js"></script>');
    }
});
{'fraction_non_alphanumeric': 0.20257510729613734, 'fraction_numerical': 0.0017167381974248926, 'mean_word_length': 3.7983539094650207, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '348432', 'n_tokens_mistral': 396, 'n_tokens_neox': 389, 'n_words': 67}