<commit_before><html>
<head>
  <meta charset="UTF-8">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.min.js"></script>
  <style> body {padding: 0; margin: 0;} </style>
</head>

<body>

<input type="file" id="fileinput" />

<select id="chartType">
</select>
<select name="select1" id="select1">
    <option value="">-- select a value --</option>
    <option value="temp">temp</option>
    <option value="humd">humd</option>
    <option value="soil">soil</option>
</select>
<select name="select2" id="select2">
</select>

<canvas id="myChart" width="400" height="200"></canvas>

<pre id="fileDisplayArea"><pre>

<script src="/visualise.js" ></script>

</body>
</html>
<commit_msg>Use the visualise.js script in same folder as html (chart) page instead of in the root folder.<commit_after><html>
<head>
  <meta charset="UTF-8">
  <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.1.4/Chart.min.js"></script>
  <style> body {padding: 0; margin: 0;} </style>
</head>

<body>

<input type="file" id="fileinput" />

<select id="chartType">
</select>
<select name="select1" id="select1">
    <option value="">-- select a value --</option>
    <option value="temp">temp</option>
    <option value="humd">humd</option>
    <option value="soil">soil</option>
</select>
<select name="select2" id="select2">
</select>

<canvas id="myChart" width="400" height="200"></canvas>

<pre id="fileDisplayArea"><pre>

<script src="./visualise.js" ></script>

</body>
</html>

{'fraction_non_alphanumeric': 0.22479240806642942, 'fraction_numerical': 0.02372479240806643, 'mean_word_length': 4.738095238095238, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 4, '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': '5844619', 'n_tokens_mistral': 651, 'n_tokens_neox': 618, 'n_words': 124}