<commit_before><html>
<head>
  <meta charset="utf-8">
  <title>Blockly Demo: Code</title>
  <script type="text/javascript" src="../blockly_compressed.js"></script>
  <script type="text/javascript" src="../../generators/dart.js"></script>
  <script type="text/javascript" src="../../generators/dart/control.js"></script>
  <script type="text/javascript" src="../../generators/dart/logic.js"></script>
  <script type="text/javascript" src="../../generators/dart/math.js"></script>
  <script type="text/javascript" src="../../generators/dart/text.js"></script>
  <script type="text/javascript" src="../../generators/dart/lists.js"></script>
  <script type="text/javascript" src="../../generators/dart/variables.js"></script>
  <script type="text/javascript" src="../../generators/dart/procedures.js"></script>
  <script type="text/javascript" src="../../generators/javascript.js"></script>
  <script type="text/javascript" src="../../generators/javascript/control.js"></script>
  <script type="text/javascript" src="../../generators/javascript/logic.js"></script>
  <script type="text/javascript" src="../../generators/javascript/math.js"></script>
  <script type="text/javascript" src="../../generators/javascript/text.js"></script>
  <script type="text/javascript" src="../../generators/javascript/lists.js"></script>
  <script type="text/javascript" src="../../generators/javascript/variables.js"></script>
  <script type="text/javascript" src="../../generators/javascript/procedures.js"></script>
  <script type="text/javascript" src="../../generators/python.js"></script>
  <script type="text/javascript" src="../../generators/python/control.js"></script>
  <script type="text/javascript" src="../../generators/python/logic.js"></script>
  <script type="text/javascript" src="../../generators/python/math.js"></script>
  <script type="text/javascript" src="../../generators/python/text.js"></script>
  <script type="text/javascript" src="../../generators/python/lists.js"></script>
  <script type="text/javascript" src="../../generators/python/variables.js"></script>
  <script type="text/javascript" src="../../generators/python/procedures.js"></script>
  <style>
    html, body {
      background-color: #fff;
      margin: 0;
      padding:0;
      overflow: hidden;
    }
    .blocklySvg {
      height: 100%;
      width: 100%;
    }
  </style>
  <script>
    (function() {
      // Load the language-specific files listed on the URL.
      var files =
          decodeURIComponent(window.location.search.substring(1)).split('&');
      for (var x = 0; x < files.length; x++) {
        var file = files[x];
        if (file.match(/^\w+\/\w+\.js$/)) {
          var tag = document.createElement('script');
          tag.setAttribute('type', 'text/javascript');
          tag.setAttribute('src', '../../language/' + file);
          document.head.appendChild(tag);
        } else {
          console.error('Illegal language file: ' + file);
        }
      }
    })();

    function init() {
      Blockly.inject(document.body, {path: '../../'});

      if (window.parent.init) {
        // Let the top-level application know that Blockly is ready.
        window.parent.init(Blockly);
      } else {
        // Attempt to diagnose the problem.
        var msg = 'Error: Unable to communicate between frames.\n\n';
        if (window.parent == window) {
          msg += 'Try loading index.html instead of frame.html';
        } else if (window.location.protocol == 'file:') {
          msg += 'This may be due to a security restriction preventing\n' +
              'access when using the file:// protocol.\n' +
              'http://code.google.com/p/chromium/issues/detail?id=47416';
        }
        alert(msg);
      }
    }
  </script>
</head>
<body onload="init()">
</body>
</html>
<commit_msg>Fix non-deterministic loading of language files.<commit_after><html>
<head>
  <meta charset="utf-8">
  <title>Blockly Demo: Code</title>
  <script type="text/javascript" src="../blockly_compressed.js"></script>
  <script type="text/javascript" src="../../generators/dart.js"></script>
  <script type="text/javascript" src="../../generators/dart/control.js"></script>
  <script type="text/javascript" src="../../generators/dart/logic.js"></script>
  <script type="text/javascript" src="../../generators/dart/math.js"></script>
  <script type="text/javascript" src="../../generators/dart/text.js"></script>
  <script type="text/javascript" src="../../generators/dart/lists.js"></script>
  <script type="text/javascript" src="../../generators/dart/variables.js"></script>
  <script type="text/javascript" src="../../generators/dart/procedures.js"></script>
  <script type="text/javascript" src="../../generators/javascript.js"></script>
  <script type="text/javascript" src="../../generators/javascript/control.js"></script>
  <script type="text/javascript" src="../../generators/javascript/logic.js"></script>
  <script type="text/javascript" src="../../generators/javascript/math.js"></script>
  <script type="text/javascript" src="../../generators/javascript/text.js"></script>
  <script type="text/javascript" src="../../generators/javascript/lists.js"></script>
  <script type="text/javascript" src="../../generators/javascript/variables.js"></script>
  <script type="text/javascript" src="../../generators/javascript/procedures.js"></script>
  <script type="text/javascript" src="../../generators/python.js"></script>
  <script type="text/javascript" src="../../generators/python/control.js"></script>
  <script type="text/javascript" src="../../generators/python/logic.js"></script>
  <script type="text/javascript" src="../../generators/python/math.js"></script>
  <script type="text/javascript" src="../../generators/python/text.js"></script>
  <script type="text/javascript" src="../../generators/python/lists.js"></script>
  <script type="text/javascript" src="../../generators/python/variables.js"></script>
  <script type="text/javascript" src="../../generators/python/procedures.js"></script>
  <style>
    html, body {
      background-color: #fff;
      margin: 0;
      padding:0;
      overflow: hidden;
    }
    .blocklySvg {
      height: 100%;
      width: 100%;
    }
  </style>
  <script>
    (function() {
      // Load the language-specific files listed on the URL.
      var files =
          decodeURIComponent(window.location.search.substring(1)).split('&');
      for (var x = 0; x < files.length; x++) {
        var file = files[x];
        if (file.match(/^\w+\/\w+\.js$/)) {
          document.writeln('<script type="text/javascript" ' +
              'src="../../language/' + file + '"><' + '/script>');
        } else {
          console.error('Illegal language file: ' + file);
        }
      }
    })();

    function init() {
      Blockly.inject(document.body, {path: '../../'});

      if (window.parent.init) {
        // Let the top-level application know that Blockly is ready.
        window.parent.init(Blockly);
      } else {
        // Attempt to diagnose the problem.
        var msg = 'Error: Unable to communicate between frames.\n\n';
        if (window.parent == window) {
          msg += 'Try loading index.html instead of frame.html';
        } else if (window.location.protocol == 'file:') {
          msg += 'This may be due to a security restriction preventing\n' +
              'access when using the file:// protocol.\n' +
              'http://code.google.com/p/chromium/issues/detail?id=47416';
        }
        alert(msg);
      }
    }
  </script>
</head>
<body onload="init()">
</body>
</html>

{'fraction_non_alphanumeric': 0.2111801242236025, 'fraction_numerical': 0.00422888859521607, 'mean_word_length': 2.8910025706940874, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 131, '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': '880430', 'n_tokens_mistral': 2235, 'n_tokens_neox': 2200, 'n_words': 411}