<commit_before>$(document).ready(function() {
  // read manifest
  $.get('manifest.json', function(manifest) {
    window.config = {};
    var properties = manifest.properties;
    properties.forEach(function(p) {
      window.config[p.name] = p.value;
    });
    
    // load HTML and append to body canvas
    var document_html = manifest.html[0],
        document_css = manifest.stylesheet[0],
        document_js = manifest.javascript[0],
        document_data = manifest.data[0]
      
    $.get(document_html, function(html) {
      $('#canvas').append(html);
      
      $.get(document_data, function(data) {
        window.data = data;

        // load CSS
        var css = $('<link rel="stylesheet" type="text/css" href="' + document_css + '" />');
        $('body').append(css);
      
        // load Javascript
        var script = $('<script type="text/javascript" src="' + document_js +'"></script>');
        $('body').append(script);<commit_msg>Read multiple javascript files<commit_after>$(document).ready(function() {
  // read manifest
  $.get('manifest.json', function(manifest) {
    window.config = {};
    var properties = manifest.properties;
    properties.forEach(function(p) {
      window.config[p.name] = p.value;
    });
    
    // load HTML and append to body canvas
    var document_html = manifest.html[0],
        document_css = manifest.stylesheet[0],
        document_data = manifest.data[0]
      
    $.get(document_html, function(html) {
      $('#canvas').append(html);
      
      $.get(document_data, function(data) {
        window.data = data;

        // load CSS
        var css = $('<link rel="stylesheet" type="text/css" href="' + document_css + '" />');
        $('body').append(css);

        // load Javascript
        for (var i = 0; i < manifest.javascript.length; i++) {
          var js = manifest.javascript[i]
          var script = $('<script type="text/javascript" src="' + js +'"></script>');
          $('body').append(script);
        }
{'fraction_non_alphanumeric': 0.16824762855716424, 'fraction_numerical': 0.00399400898652022, 'mean_word_length': 2.5157894736842104, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, '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': '4378943', 'n_tokens_mistral': 592, 'n_tokens_neox': 575, 'n_words': 120}