<commit_before><?php
/*require('./Code/autoload.php'); */
ini_set("allow_url_include", true);
include("header.php");

?>

<div class="row " >
<div class="container">
<div class = "col-lg-12"  >

<?php

if(! ($dir == './')) {
        $rootdir = pathinfo($dir);
 	

	echo "<div id='updir'><h3 class='sc subtitle'><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>/".$rootdir['filename']."</h3><br>";

echo "<center><a href=" . URLFORDOCSINREPO . $dir.">Github</a> &emsp;</div>";

} 

$files = scandir($path.$dir);

if(file_exists($path.$dir . 'README.md')) {

echo "<div class='includers'>";

$readme= file_get_contents($path.$dir . 'README.md');

$readme = str_replace(array("\n\r\n\r", "\n\n", "\r\r"), '<br>', $readme);

echo "$readme </div>";

}

if(file_exists($path.$dir . 'list.html')) {
echo "<div class='includers'>"; 
   include $path.$dir . 'list.html';
echo "</div>";
}

echo '<div class="listings">';
echo "<div id='content-list'>";
foreach($files as $f) {
        if(is_dir($path.$dir.$f)) {
                if( !( ($f == '.') || ($f == '..') || ($f == '.git')) ) {

                        echo "<br><a href=$_SERVER[PHP_SELF]?action=list&file=$dir$f/><img height=20 src='" . ASSETS_PATH . "/folder.png'> $f</a>";
                }
        }
        else {
                if( !( ($f == 'list.html') || ($f == 'README.md') || preg_match('/^\./', $f) ) ) {
                        echo "<br><a href=$_SERVER[PHP_SELF]?action=source&file=$dir$f><img height=20 src='" . ASSETS_PATH . "/play.png'> $f</a>";
                }
        }
}
echo "</div></div>";
?>

<commit_msg>cmccc-app - better presentation of README.md<commit_after><?php
/*require('./Code/autoload.php'); */
ini_set("allow_url_include", true);
include("header.php");

?>

<div class="row " >
<div class="container">
<div class = "col-lg-12"  >

<?php

if(! ($dir == './')) {
        $rootdir = pathinfo($dir);
 	

	echo "<div id='updir'><h3 class='sc subtitle'><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>/".$rootdir['filename']."</h3><br>";

echo "<center><a href=" . URLFORDOCSINREPO . $dir.">Github</a> &emsp;</div>";

} 

$files = scandir($path.$dir);

if(file_exists($path.$dir . 'README.md')) {

echo "<div>";

$readme= file_get_contents($path.$dir . 'README.md');

$readme = str_replace(array("\n\r\n\r", "\n\n", "\r\r"), '<br>', $readme);

echo "<table><tr><td valign='top'><b>README.md:</b></td><td> &emsp; </td><td>$readme </td></tr></table></div>";

}

if(file_exists($path.$dir . 'list.html')) {
echo "<div class='includers'>"; 
   include $path.$dir . 'list.html';
echo "</div>";
}

echo '<div class="listings">';
echo "<div id='content-list'>";
foreach($files as $f) {
        if(is_dir($path.$dir.$f)) {
                if( !( ($f == '.') || ($f == '..') || ($f == '.git')) ) {

                        echo "<br><a href=$_SERVER[PHP_SELF]?action=list&file=$dir$f/><img height=20 src='" . ASSETS_PATH . "/folder.png'> $f</a>";
                }
        }
        else {
                if( !( ($f == 'list.html') || ($f == 'README.md') || preg_match('/^\./', $f) ) ) {
                        echo "<br><a href=$_SERVER[PHP_SELF]?action=source&file=$dir$f><img height=20 src='" . ASSETS_PATH . "/play.png'> $f</a>";
                }
        }
}
echo "</div></div>";
?>


{'fraction_non_alphanumeric': 0.27899774774774777, 'fraction_numerical': 0.00563063063063063, 'mean_word_length': 3.102771362586605, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '4868079', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1360, 'n_words': 218}