<commit_before><doctype html>
<html>
  <head>
    <title>Twitter Tone Analyzer</title>
  </head>
  <body>
    <h1>Twitter Tone Analyzer</h1>

    <main id="main"></main>

    <script src="scripts/Chart.bundle.min.js"></script>
    <script src="scripts/moment.min.js"></script>
    <script type="text/javascript">
    fetch('tone/cascadia16')
      .then(function(response) {
        return response.json();
      })
      .then(function(json) {
        var main = document.getElementById('main');
        main.innerHTML = JSON.stringify(json);
      });

    </script>
  </body>
</html><commit_msg>transform the dates to moment objects.<commit_after><doctype html>
<html>
  <head>
    <title>Twitter Tone Analyzer</title>
  </head>
  <body>
    <h1>Twitter Tone Analyzer</h1>

    <main id="main"></main>

    <script src="scripts/Chart.bundle.min.js"></script>
    <script src="scripts/moment.min.js"></script>
    <script type="text/javascript">
    fetch('tone/cascadia16')
      .then(function(response) {
        return response.json();
      })
      .then(function(json) {
        json.results.forEach(function(tone) {
          tone.date = moment(tone.date);
        });
        return json.results;
      })
      .then(function(toneResults) {
        console.log(toneResults);
      });

    </script>
  </body>
</html>
{'fraction_non_alphanumeric': 0.17306245297215953, 'fraction_numerical': 0.006019563581640331, 'mean_word_length': 2.6944444444444446, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '7440976', 'n_tokens_mistral': 454, 'n_tokens_neox': 429, 'n_words': 72}