<commit_before><?php
/**
 * Created by PhpStorm.
 * User: gd
 * Date: 17.9.2016
 * Time: 22:57
 */

define(fullDirPath, dirname(__FILE__));
define('HAS_LOADED', true);

include_once (fullDirPath . '/../common/base.php');
$pageTitle = "Mætingaskrá";
$navAction = 'attendance';
include_once (fullDirPath . '/class.sql.php');
$newSQL = new newSQL();

    $yesterDay = date('Y-m-d',strtotime("-1 days"));
    $currDate = date('Y-m-d');
    $boxers_list = $newSQL->list_structured_attendance($currDate);
    $oldBoxer_list = $newSQL->list_structured_attendance($yesterDay);
    $framhalds = $newSQL->list_structured_attendance_for_group($currDate, utf8_decode('Framhaldshópur'));
    include_once (fullDirPath . "/head.php");
    include_once (fullDirPath . "/nav-def.php");


?>

    <div class="container">
        <div class="col-sm-6">
            <div class="well">
                <h3> <strong><?php echo date('l d M Y'); ?></strong></h3>
                <?php echo 'Week: ' . date('W') . ' - Day: ' . date('z') ?>
                <br /><br />
                <table id="boxersTable" class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>Nafn</th>
                        <th>Mætti kl:</th>
                        <th>Hópur</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    if(!$boxers_list){
                        print '<p class="text-danger">Enginn hefur skráð sig inn ennþá</p>';
                    } else {
                        print UTF8_encode($boxers_list);
                    }
                    ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="well">
                <h3> <strong><?php echo date('l d M Y', strtotime("-1 days")); ?></strong></h3>
                <?php echo 'Week: ' . date('W', strtotime("-1 days")) . ' - Day: ' . date('z', strtotime("-1 days")) ?>
                <br /><br />
                <table id="boxersTable" class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>Nafn</th>
                        <th>Mætti kl:</th>
                        <th>Hópur</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    if(!$oldBoxer_list){
                        print '<p class="text-danger">Enginn skráði sig inn í gær</p>';
                    } else {
                        print UTF8_encode($oldBoxer_list);
                    }
                    ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-sm-12">
            <div class="well">
                <h3> <strong><?php echo date('l d M Y'); ?></strong></h3>
                <?php echo 'Week: ' . date('W') . ' - Day: ' . date('z') ?>
                <br /><br />
                <table id="boxersTable" class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>Nafn</th>
                        <th>Mætti kl:</th>
                        <th>Hópur</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    if(!$framhalds){
                        print '<p class="text-danger">Enginn hefur skráð sig inn ennþá</p>';
                    } else {
                        print UTF8_encode($framhalds);
                    }
                    ?>
                    </tbody>
                </table>
        </div>
    </div>


<?php
<commit_msg>Changed the layout of attendance and also got the last 2 days of attendance<commit_after><?php
/**
 * Created by PhpStorm.
 * User: gd
 * Date: 17.9.2016
 * Time: 22:57
 */

define(fullDirPath, dirname(__FILE__));
define('HAS_LOADED', true);

include_once (fullDirPath . '/../common/base.php');
$pageTitle = "Mætingaskrá";
$navAction = 'attendance';
include_once (fullDirPath . '/class.sql.php');
$newSQL = new newSQL();

    $yesterDay = date('Y-m-d',strtotime("-1 days"));
    $currDate = date('Y-m-d');
    $attendanceToday = $newSQL->list_structured_attendance($currDate);
    $attendanceYesterday = $newSQL->list_structured_attendance($yesterDay);
    $attendance2DaysAgo = $newSQL->list_structured_attendance(date('Y-m-d',strtotime("-2 days")));
    //$framhalds = $newSQL->list_structured_attendance_for_group($currDate, utf8_decode('Framhaldshópur'));
    include_once (fullDirPath . "/head.php");
    include_once (fullDirPath . "/nav-def.php");


?>

    <div class="container">
        <div class="col-sm-12">
            <div class="well">
                <h3> <strong><?php echo date('l d M Y'); ?></strong></h3>
                <?php echo 'Week: ' . date('W') . ' - Day: ' . date('z') ?>
                <br /><br />
                <table id="boxersTable" class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>Nafn</th>
                        <th>Mætti kl:</th>
                        <th>Hópur</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    if(!$attendanceToday){
                        print '<p class="text-danger">Enginn hefur skráð sig inn ennþá</p>';
                    } else {
                        print UTF8_encode($attendanceToday);
                    }
                    ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="well">
                <h3> <strong><?php echo date('l d M Y', strtotime("-1 days")); ?></strong></h3>
                <?php echo 'Week: ' . date('W', strtotime("-1 days"))  . ' - Day: ' . date('z', strtotime("-1 days")) ?>
                <br /><br />
                <table id="boxersTable" class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>Nafn</th>
                        <th>Mætti kl:</th>
                        <th>Hópur</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    if(!$attendanceYesterday){
                        print '<p class="text-danger">Enginn hefur skráð sig inn ennþá</p>';
                    } else {
                        print UTF8_encode($attendanceYesterday);
                    }
                    ?>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="col-sm-6">
            <div class="well">
                <h3> <strong><?php echo date('l d M Y', strtotime("-2 days")); ?></strong></h3>
                <?php echo 'Week: ' . date('W', strtotime("-2 days")) . ' - Day: ' . date('z', strtotime("-2 days")) ?>
                <br /><br />
                <table id="boxersTable" class="table table-striped table-hover">
                    <thead>
                    <tr>
                        <th>Nafn</th>
                        <th>Mætti kl:</th>
                        <th>Hópur</th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php
                    if(!$attendance2DaysAgo){
                        print '<p class="text-danger">Enginn skráði sig inn í gær</p>';
                    } else {
                        print UTF8_encode($attendance2DaysAgo);
                    }
                    ?>
                    </tbody>
                </table>
            </div>
        </div>

    </div>

<?php

{'fraction_non_alphanumeric': 0.15456764743672105, 'fraction_numerical': 0.008480020557625595, 'mean_word_length': 1.1490889011595804, 'pattern_counts': {'":': 0, '<': 184, '<?xml version=': 0, '>': 189, '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': '2929811', 'n_tokens_mistral': 2374, 'n_tokens_neox': 2217, 'n_words': 437}