<commit_before><?php $this->view('partials/head'); ?>

<div class="container">

    <div class="row">

        <h3 class="col-lg-12">Munkireport System Status</h3>
      
    </div>

    <div class="row">
        
        <div id="mr-db" class="col-lg-6">
            
            <h4>Database</h4>
            
            <table class="table table-striped"></table>
              
        </div>
        <div class="col-lg-6">
        </div>
    </div>
    <div class="row">
        
        <div class="col-lg-12">
            
            <?php 

            // Sort config file
            $this_config = $GLOBALS['conf'];
            ksort($this_config);

            ?>
              
            <h4>Configuration file</h4>

            <table class="table striped">
                <?php foreach($this_config as $key => $item):?>

                <tr>
                    <th>
                      <?=$key?>
                    </th>
                    <td>
                      <pre><?print_r($item)?></pre>
                    </td>
                </tr>

                <?php endforeach?>
              
            </table>
            
        </div>

    </div>
    

</div>  <!-- /container -->

<script>
$(document).on('appReady', function(e, lang) {
    $.getJSON( appUrl + '/system/DataBaseInfo', function( data ) {
        var table = $('#mr-db table');
        for(var prop in data) {
            console.log(prop);
            if(data.hasOwnProperty(prop)){
                table.append($('<tr>')
                    .append($('<th>')
                        .text(prop))
                    .append($('<td>')
                        .text(data[prop])))
            }
        }
    });
});
</script>


<?php $this->view('partials/foot'); ?><commit_msg>Add label to negative<commit_after><?php $this->view('partials/head'); ?>

<div class="container">

    <div class="row">

        <h3 class="col-lg-12">Munkireport System Status</h3>
      
    </div>

    <div class="row">
        
        <div id="mr-db" class="col-lg-6">
            
            <h4>Database</h4>
            
            <table class="table table-striped"></table>
              
        </div>
        <div class="col-lg-6">
        </div>
    </div>
    <div class="row">
        
        <div class="col-lg-12">
            
            <?php 

            // Sort config file
            $this_config = $GLOBALS['conf'];
            ksort($this_config);

            ?>
              
            <h4>Configuration file</h4>

            <table class="table striped">
                <?php foreach($this_config as $key => $item):?>

                <tr>
                    <th>
                      <?=$key?>
                    </th>
                    <td>
                      <pre><?print_r($item)?></pre>
                    </td>
                </tr>

                <?php endforeach?>
              
            </table>
            
        </div>

    </div>
    

</div>  <!-- /container -->

<script>
$(document).on('appReady', function(e, lang) {
    $.getJSON( appUrl + '/system/DataBaseInfo', function( data ) {
        var table = $('#mr-db table');
        for(var prop in data) {
            if(data[prop] == false){
                data[prop] = '<span class="label label-danger">No</span>';
            }
            table.append($('<tr>')
                .append($('<th>')
                    .html(prop))
                .append($('<td>')
                    .html(data[prop])))
        }
    });
});
</script>


<?php $this->view('partials/foot'); ?>
{'fraction_non_alphanumeric': 0.17308766052484645, 'fraction_numerical': 0.006700167504187605, 'mean_word_length': 1.0953216374269006, 'pattern_counts': {'":': 0, '<': 95, '<?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': '3486609', 'n_tokens_mistral': 1067, 'n_tokens_neox': 1014, 'n_words': 183}