<commit_before><body style="margin:20;padding:0">
<?php
ini_set("allow_url_include", true);
include("header.php");

//This displays the path, current file name, and provides the edit and show options //


echo "<a href=index.php?action=list&file=><img src='" . ASSETS_PATH . "/arrowup.png' height=25></a><a href=$_SERVER[PHP_SELF]?action=list&file=$rootdir[dirname]/>$rootdir[dirname]</a>/<b>$filenameX</b><br></h4>";

$lib_path = LIB_PATH;

include("$lib_path/view-tabs.php");

?>


<div class="container">

<?php
  echo "
<div id='tabs'><ul><li>
<a href='#tab-source'>Source</a></li>
</ul><div id='tab-render'>" ;
?>
</div>



<div id="tab-source">

<!--table formatting for the document -->
<!--<table class="TFtable";>-->
<?php 
foreach($contents as $n) {
        list($k, $v) = array_pad( explode ("=", $n, 2), 2, null);

        if(preg_match('/\[\?(.+?)\]/', $v, $matches)) {
                $v = "<a href=$matches[1]>$v</a>";
        }

        else if(preg_match('/\[(.+?)\]/', $v, $matches)) {
                $v = "<a href=$_SERVER[PHP_SELF]?action=source&file=$matches[1]>$v</a>";
        }

        echo "<tr>";
        if(isset($v)) { echo "\"$k\" : \"$v\"<br>"; }
        else { echo "<th height='10' style='text-align:right'></th><td width='20'></td><td>$k</td>"; }
        echo "</tr>";
}

?>
</table>

</div>


</div>




</div></div>

</div>
<commit_msg>can go from one json-ette to another<commit_after><body style="margin:20;padding:0">
<?php
ini_set("allow_url_include", true);
include("header.php");

//This displays the path, current file name, and provides the edit and show options //


echo "<a href=index.php?action=list&file=><img src='" . ASSETS_PATH . "/arrowup.png' height=25></a><a href=$_SERVER[PHP_SELF]?action=list&file=$rootdir[dirname]/>$rootdir[dirname]</a>/<b>$filenameX</b><br></h4>";

$lib_path = LIB_PATH;

include("$lib_path/view-tabs.php");

?>


<div class="container">

<?php
  echo "
<div id='tabs'><ul><li>
<a href='#tab-source'>Source</a></li>
</ul><div id='tab-render'>" ;
?>
</div>



<div id="tab-source">

<!--table formatting for the document -->
<!--<table class="TFtable";>-->
<?php 
foreach($contents as $n) {
        list($k, $v) = array_pad( explode ("=", $n, 2), 2, null);

        if(preg_match('/\[\?(.+?)\]/', $v, $matches)) {
                $v = "<a href=$matches[1]>$v</a>";
        }

        else if(preg_match('/\[(.+?)\]/', $v, $matches)) {
                $v = "<a href=$_SERVER[PHP_SELF]?action=json&file=$matches[1]>$v</a>";
        }

        echo "<tr>";
        if(isset($v)) { echo "\"$k\" : \"$v\" ; <br><br>"; }
        else { echo "<th height='10' style='text-align:right'></th><td width='20'></td><td>$k</td>"; }
        echo "</tr>";
}

?>
</table>

</div>


</div>




</div></div>

</div>

{'fraction_non_alphanumeric': 0.27036770007209804, 'fraction_numerical': 0.010093727469358327, 'mean_word_length': 3.3495297805642634, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 96, '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': '2702884', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1053, 'n_words': 197}