<commit_before>%import json
  <div class="container">
     <div class="row">
        <div class="span4">
          <h2>Metrics</h2>
          <table class="table table-condensed">
%for metric in metrics:
            <tr><td>{{metric}}</td></tr>
%end
          </table>
        </div>
        <div class="span4">
          <h2>GraphTemplates</h2>
          <table class="table table-condensed">
%for template in templates:
            <tr><td>{{template}}</td></tr>
%end
          </table>
       </div>
        <div class="span4">
          <h2>Graphs</h2>
          <table class="table table-condensed">
%for (name, data) in graphs.items():
	%data = json.dumps(data,indent=1)
		<tr><td>
			<a href="#" data-toggle="collapse" data-target="#graph-{{name}}">{{name}}</a>
			<div id="graph-{{name}}" class="collapse in"><pre>{{data}}</pre></div>
		</td></tr>
%end
          </table>
		<script type="text/javascript">
                $(document).ready(function() {
                        $(".collapse").collapse(); // Uncaught TypeError: Object [object Object] has no method 'collapse'  ?
                });
                </script>
       </div>
      </div>
    </div> <!-- /container -->
<commit_msg>fix "collapse by default"<commit_after>%import json
  <div class="container">
     <div class="row">
        <div class="span4">
          <h2>Metrics</h2>
          <table class="table table-condensed">
%for metric in metrics:
            <tr><td>{{metric}}</td></tr>
%end
          </table>
        </div>
        <div class="span4">
          <h2>GraphTemplates</h2>
          <table class="table table-condensed">
%for template in templates:
            <tr><td>{{template}}</td></tr>
%end
          </table>
       </div>
        <div class="span4">
          <h2>Graphs</h2>
          <table class="table table-condensed">
%for (name, data) in graphs.items():
	%data = json.dumps(data,indent=1)
		<tr><td>
			<a href="#" data-toggle="collapse" data-target="#graph-{{name}}">{{name}}</a>
			<div id="graph-{{name}}" class="collapse"><pre>{{data}}</pre></div>
		</td></tr>
%end
          </table>
       </div>
      </div>
    </div> <!-- /container -->

{'fraction_non_alphanumeric': 0.2091624248033318, 'fraction_numerical': 0.00925497454881999, 'mean_word_length': 2.1840942562592045, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, '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': '7435864', 'n_tokens_mistral': 722, 'n_tokens_neox': 692, 'n_words': 142}