<commit_before>require.config({
    paths: {
      moment: '//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.2/moment.min.js',
      handlebars: '//cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0-alpha.4/handlebars.amd.min.js'
    },
    config: {
        moment: {
            noGlobal: true
        }
    }
});

require(['handlebars', 'moment'], function (handlebars, moment) {
  console.log("Got dependencies:");
  console.log(handlebars.compile);
  console.log(moment);
});
<commit_msg>S-47665 Get protocol from window.location.protocol<commit_after>(function() {
    var protocol = window.location.protocol + "//";
    require.config({
        paths: {
          moment: protocol + 'cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.2/moment.min.js',
          handlebars: protocol + 'cdnjs.cloudflare.com/ajax/libs/handlebars.js/2.0.0-alpha.4/handlebars.amd.min.js'
        },
        config: {
            moment: {
                noGlobal: true
            }
        }
    });
    
    require(['handlebars', 'moment'], function (handlebars, moment) {
      console.log("Got dependencies:");
      console.log(handlebars.compile);
      console.log(moment);
    });
})();

{'fraction_non_alphanumeric': 0.16907391673746813, 'fraction_numerical': 0.016142735768903994, 'mean_word_length': 2.394812680115274, 'pattern_counts': {'":': 0, '<': 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': '1591799', 'n_tokens_mistral': 400, 'n_tokens_neox': 381, 'n_words': 48}