<commit_before><?php
    $aData = Besearcher\View::data();
    $aSummary = $aData['summary'];
?>

<?php require_once(dirname(__FILE__) . '/header.php'); ?>

<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Analytics</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->

    <?php if(count($aSummary) == 0) { ?>
    <div class="row">
        <div class="col-lg-12">
            There is not enough data to perform any analytics.
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <?php } ?>

    <?php foreach($aSummary as $aMetric => $aEntry) { ?>
        <div class="row">
            <div class="col-lg-12" style="text-align: center;">
                <strong><?php echo $aMetric; ?></strong>
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <div class="row">
            <div class="col-lg-12">
                <table width="100%" class="table table-striped table-bordered table-hover">
                    <thead>
                        <tr>
                            <th>Analysis</th>
                            <th>Value</th>
                            <th>Commit-permutation</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php
                            foreach($aEntry as $aName => $aData) {
                                echo '<tr>';
                                    echo '<td>'.$aName.'</td>';
                                    echo '<td>'.$aData['value'].'</td>';
                                    echo '<td><a href="result.php?commit='.$aData['commit'].'&permutation='.$aData['permutation'].'" title="Click to view more information">'.$aData['commit'].'-'.$aData['permutation'].'</a></td>';
                                echo '</tr>';
                            }
                        ?>
                    </tbody>
                </table>
                <!-- /.table-responsive -->
            </div>
            <!-- /.col-lg-12 -->
        </div>
        <!-- /.row -->
    <?php } ?>
</div><commit_msg>Show data in a better/easier way<commit_after><?php
    $aData = Besearcher\View::data();
    $aSummary = $aData['summary'];
?>

<?php require_once(dirname(__FILE__) . '/header.php'); ?>

<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Analytics</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->

    <?php if(count($aSummary) == 0) { ?>
    <div class="row">
        <div class="col-lg-12">
            There is not enough data to perform any analytics.
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <?php } ?>

    <div class="row">
        <div class="col-lg-12">
            <table width="100%" class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th>Metric</th>
                        <th>Min</th>
                        <th>Max</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                        foreach($aSummary as $aMetric => $aEntry) {
                            echo '<tr>';
                                echo '<td>'.$aMetric.'</td>';
                                echo '<td><a href="result.php?commit='.$aEntry['min']['commit'].'&permutation='.$aEntry['min']['permutation'].'" title="Click to view more information">'.$aEntry['min']['value'].'</a></td>';
                                echo '<td><a href="result.php?commit='.$aEntry['max']['commit'].'&permutation='.$aEntry['max']['permutation'].'" title="Click to view more information">'.$aEntry['max']['value'].'</a></td>';
                            echo '</tr>';
                        }
                    ?>
                </tbody>
            </table>
            <!-- /.table-responsive -->
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
</div>
{'fraction_non_alphanumeric': 0.2003467062902427, 'fraction_numerical': 0.009905894006934125, 'mean_word_length': 1.1820637493246893, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 120, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7184435', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1137, 'n_words': 203}