<commit_before><!DOCTYPE html>
<html>
  <head>
    <title>Aran</title>
      <style>
      #main {
        width: 500px;
        margin: auto;
      }
      .code {
        font-family: "Lucida Console", Monaco, monospace;
      }
      .error {
        color: red;
      }
      button {
        margin-bottom: 30px;
      }
    </style>
    <script src="lib/esprima.js"></script>
    <script src="lib/escodegen.browser.js"></script>
    <script src="miley.js"></script>
    <script>window.aran={}</script>
    <script src="aran.js"></script>
    <script>

      function instr () {
        document.getElementById("instr-code").value = aran.compile(document.getElementById("code").value)
      }

      function reinit () {
        delete aran.saved_window
        for (var k in window) { if (String(k)[0] === "$") { delete window[k] } }
        window.eval(document.getElementById("options").value)
      }

      function run () {
        var code = document.getElementById("instr-code").value
        try { var res = window.eval(code) } catch (e) {
          document.getElementById("result").className = "code error"
          document.getElementById("result").innerText = String(e)
          throw e;
        }
        document.getElementById("result").className = "code"
        try { res = JSON.stringify(res) } catch (e) { res = String(res) }
        document.getElementById("result").innerText = res
      }

    </script>
  </head>
  <body>
    <div id="main">
      <label>Options: </label><br/>
      <textarea id="options" class="code" cols="70" rows="10"></textarea><br/>
      <button id="reinit" onclick="reinit()">(Re)Initialize</button><br/>
      <label>JavaScript code:</label><br/>
      <textarea id="code" class="code" cols="70" rows="10"></textarea><br/>
      <button id="instr" onclick="instr()">Instrument</button><br/>
      <label>Instrumented code:</label><br/>
      <textarea id="instr-code" class="code" cols="70" rows="10"></textarea><br/>
      <button id="run" onclick="run()">Run</button><br/>
      <label>Result:</label><br/>
      <p id="result"></p>
    </div>
  </body>
</html>
<commit_msg>demo no display result in foirefoxx<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>Aran</title>
      <style>
      #main {
        width: 500px;
        margin: auto;
      }
      .code {
        font-family: "Lucida Console", Monaco, monospace;
      }
      .error {
        color: red;
      }
      button {
        margin-bottom: 30px;
      }
    </style>
    <script src="lib/esprima.js"></script>
    <script src="lib/escodegen.browser.js"></script>
    <script src="miley.js"></script>
    <script>window.aran={}</script>
    <script src="aran.js"></script>
    <script>

      function instr () {
        document.getElementById("instr-code").value = aran.compile(document.getElementById("code").value)
      }

      function reinit () {
        delete aran.saved_window
        for (var k in window) { if (String(k)[0] === "$") { delete window[k] } }
        window.eval(document.getElementById("options").value)
      }

      function run () {
        var code = document.getElementById("instr-code").value
        try { var res = window.eval(code) } catch (e) {
          document.getElementById("result").className = "code error"
          document.getElementById("result").textContent = String(e)
          throw e;
        }
        document.getElementById("result").className = "code"
        try { res = JSON.stringify(res) } catch (e) { res = String(res) }
        document.getElementById("result").textContent = res
      }

    </script>
  </head>
  <body>
    <div id="main">
      <label>Options: </label><br/>
      <textarea id="options" class="code" cols="70" rows="10"></textarea><br/>
      <button id="reinit" onclick="reinit()">(Re)Initialize</button><br/>
      <label>JavaScript code:</label><br/>
      <textarea id="code" class="code" cols="70" rows="10"></textarea><br/>
      <button id="instr" onclick="instr()">Instrument</button><br/>
      <label>Instrumented code:</label><br/>
      <textarea id="instr-code" class="code" cols="70" rows="10"></textarea><br/>
      <button id="run" onclick="run()">Run</button><br/>
      <label>Result:</label><br/>
      <p id="result"></p>
    </div>
  </body>
</html>

{'fraction_non_alphanumeric': 0.18584070796460178, 'fraction_numerical': 0.008383791336748951, 'mean_word_length': 2.603187919463087, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, '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': '3764839', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1314, 'n_words': 249}