<commit_before>{{ globals()['right_sidebar_enabled']=True }}
{{extend 'layout.html'}}
<head>
    <script src="http://d3js.org/d3.v3.min.js" type="text/javascript"></script>
    <script src="{{=URL('static', 'js/newick.js')}}" type="text/javascript"></script>
    <script src="{{=URL('static', 'js/d3.phylogram.js')}}" type="text/javascript"></script>
    <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
</head>
  <body>
    <table>
      <tr>
        <td>
          <h2>Phylogram of convex subtree {{=rec}}</h2>
              <div id='phylogram'>
              <script>
				$(document).ready(function() {
	            var tree = $.ajax({type: "GET", url: "{{=URL('convexsubtrees', 'newick.txt', args=rec)}}", async: false}).responseText;
				console.log(tree)
				var newick = Newick.parse(tree)
        		var newickNodes = []
        		function buildNewickNodes(node, callback) {
          		newickNodes.push(node)
          		if (node.branchset) {
            		for (var i=0; i < node.branchset.length; i++) {
              		buildNewickNodes(node.branchset[i])
            		}
          		}		
        		}
	        	buildNewickNodes(newick)
        
    	    d3.phylogram.build('#phylogram', newick, {
        	  width: 800,
          	height: 600});
    		   });
      	
    		 </script>
          </div>

        </td>
      </tr>
    </table>
{{block right_sidebar}}
<table width="100%">
<tr>
<td width="100%" colspan="2" style="background: #d3d3d3">Tree Statistics</td></tr>
<tr>
<td>Unique TIs: {{=len(tis)}}</td>
</tr>
<tr>
<td>Unique GIs: {{=len(gis)}}</td>
</tr>
<tr>
<td width="100%" colspan="2" style="background: #d3d3d3">Visualizations</td></tr>
<tr>
<td><a href="#">View Tree Aligned to NCBI Taxonomy</a></td>
</tr>
</table>
{{end}}
</body>
</html><commit_msg>Fixed blocked-with-mixed-content error. Was calling jquery with http instead of https.<commit_after>{{ globals()['right_sidebar_enabled']=True }}
{{extend 'layout.html'}}
<head>
    <script src="//d3js.org/d3.v3.min.js" type="text/javascript"></script>
    <script src="{{=URL('static', 'js/newick.js')}}" type="text/javascript"></script>
    <script src="{{=URL('static', 'js/d3.phylogram.js')}}" type="text/javascript"></script>
    <script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
</head>
  <body>
    <table>
      <tr>
        <td>
          <h2>Phylogram of convex subtree {{=rec}}</h2>
              <div id='phylogram'>
              <script>
				$(document).ready(function() {
	            var tree = $.ajax({type: "GET", url: "{{=URL('convexsubtrees', 'newick.txt', args=rec)}}", async: false}).responseText;
				console.log(tree)
				var newick = Newick.parse(tree)
        		var newickNodes = []
        		function buildNewickNodes(node, callback) {
          		newickNodes.push(node)
          		if (node.branchset) {
            		for (var i=0; i < node.branchset.length; i++) {
              		buildNewickNodes(node.branchset[i])
            		}
          		}		
        		}
	        	buildNewickNodes(newick)
        
    	    d3.phylogram.build('#phylogram', newick, {
        	  width: 800,
          	height: 600});
    		   });
      	
    		 </script>
          </div>

        </td>
      </tr>
    </table>
{{block right_sidebar}}
<table width="100%">
<tr>
<td width="100%" colspan="2" style="background: #d3d3d3">Tree Statistics</td></tr>
<tr>
<td>Unique TIs: {{=len(tis)}}</td>
</tr>
<tr>
<td>Unique GIs: {{=len(gis)}}</td>
</tr>
<tr>
<td width="100%" colspan="2" style="background: #d3d3d3">Visualizations</td></tr>
<tr>
<td><a href="#">View Tree Aligned to NCBI Taxonomy</a></td>
</tr>
</table>
{{end}}
</body>
</html>
{'fraction_non_alphanumeric': 0.209531635168447, 'fraction_numerical': 0.01862503423719529, 'mean_word_length': 2.5594541910331383, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 101, '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': '5442721', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1312, 'n_words': 235}