<commit_before>
$(function(){

    $.fn.updateAttr = function (attrName, oldVal, newVal) {

        return this.each(function () {

            var $this = $(this);

            var attr = $this.attr(attrName);
            if (attr.indexOf(oldVal) === 0){
                attr = attr.replace(oldVal, newVal);
                $this.attr(attrName, attr);
            }
        });
    };

    var testBuild = 0;
    var uri = document.location.href;
    var isLocalhost = uri.indexOf('localhost') != -1;

    if (testBuild){
        $("body").append('<script type="text/javascript" id="embedWellcomePlayer" src="/build/wellcomeplayer/js/embed.js"><\/script>');
    } else {
        if (isLocalhost){
            $("body").append('<script type="text/javascript" id="embedWellcomePlayer" src="/src/js/embed.js"><\/script>');
        } else {
            // built version<commit_msg>added build param<commit_after>
$(function(){

    $.fn.updateAttr = function (attrName, oldVal, newVal) {

        return this.each(function () {

            var $this = $(this);

            var attr = $this.attr(attrName);
            if (attr.indexOf(oldVal) === 0){
                attr = attr.replace(oldVal, newVal);
                $this.attr(attrName, attr);
            }
        });
    };

    var testBuild = getQuerystringParameter("build");
    var uri = document.location.href;
    var isLocalhost = uri.indexOf('localhost') != -1;

    if (testBuild){
        $("body").append('<script type="text/javascript" id="embedWellcomePlayer" src="/build/wellcomeplayer/js/embed.js"><\/script>');
    } else {
        if (isLocalhost){
            $("body").append('<script type="text/javascript" id="embedWellcomePlayer" src="/src/js/embed.js"><\/script>');
        } else {
            // built version
{'fraction_non_alphanumeric': 0.17197096594081518, 'fraction_numerical': 0.0027917364600781687, 'mean_word_length': 2.2288288288288287, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3541158', 'n_tokens_mistral': 539, 'n_tokens_neox': 517, 'n_words': 99}