<commit_before>%import json
%#TODO print target_types on this page
  <div class="container">
     <a href="/debug/metrics">cached metrics</a>
     <div class="row">
        <div class="span12">
          <h2>Templates</h2>
          <table class="table table-condensed">
%for template in templates:
            <tr><td>{{template}}</td></tr>
%end
          </table>
       </div>
     </div>
     <div class="row">
        <div class="span6">
	<h2>Graphs</h2>
          <table class="table table-condensed">
		<tr><th>name</th></tr>
%for name in sorted(graphs.iterkeys()):
       %data = json.dumps(graphs[name],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 class="span6">
	<h2>Graphs from targets</h2>
          <table class="table table-condensed">
		<tr><th>options</th></tr>
		<tr><td><pre>{{graphs_targets_options}}</pre></td></tr>
		<tr><th>name</th></tr>
%for name in sorted(graphs_targets.iterkeys()):
       %data = json.dumps(graphs_targets[name],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 class="row">
        <div class="span12">
          <h2>Targets</h2>
          <table class="table table-condensed">
		<tr><th>id</th><th>tags</th></tr>
%for id in sorted(targets.iterkeys()):
	% data = targets[id]
		<tr>
			<td>{{id}}</td>
			<td>
	%for tag_key in sorted(data['tags'].iterkeys()):
		<!-- TODO target onder id -->
		% tag_val = data['tags'][tag_key]
			{{tag_key}} : {{tag_val}}<br/>
	%end
			</td>
		</tr>
%end
          </table>
       </div>
      </div>
    </div> <!-- /container -->
<commit_msg>include graphite target in targets listing<commit_after>%import json
%#TODO print target_types on this page
  <div class="container">
     <a href="/debug/metrics">cached metrics</a>
     <div class="row">
        <div class="span12">
          <h2>Templates</h2>
          <table class="table table-condensed">
%for template in templates:
            <tr><td>{{template}}</td></tr>
%end
          </table>
       </div>
     </div>
     <div class="row">
        <div class="span6">
	<h2>Graphs</h2>
          <table class="table table-condensed">
		<tr><th>name</th></tr>
%for name in sorted(graphs.iterkeys()):
       %data = json.dumps(graphs[name],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 class="span6">
	<h2>Graphs from targets</h2>
          <table class="table table-condensed">
		<tr><th>options</th></tr>
		<tr><td><pre>{{graphs_targets_options}}</pre></td></tr>
		<tr><th>name</th></tr>
%for name in sorted(graphs_targets.iterkeys()):
       %data = json.dumps(graphs_targets[name],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 class="row">
        <div class="span12">
          <h2>Targets</h2>
          <table class="table table-condensed">
		<tr><th><b>id</b><br/>&gt; <i>target</i></th><th>tags</th></tr>
%for id in sorted(targets.iterkeys()):
	% data = targets[id]
		<tr>
			<td><b>{{id}}</b><br/><br/>&gt; <i>{{data['target']}}</i></td>
			<td>
	%for tag_key in sorted(data['tags'].iterkeys()):
		% tag_val = data['tags'][tag_key]
			{{tag_key}} : {{tag_val}}<br/>
	%end
			</td>
		</tr>
%end
          </table>
       </div>
      </div>
    </div> <!-- /container -->

{'fraction_non_alphanumeric': 0.22837706511175898, 'fraction_numerical': 0.007774538386783284, 'mean_word_length': 2.3996696944673825, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 195, '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': '3164748', 'n_tokens_mistral': 1504, 'n_tokens_neox': 1417, 'n_words': 255}