<commit_before><?php

include_once 'header.php';
include_once 'database.php';
include_once 'tohtml.php';
include_once 'html2text.php';

echo "<h2>Browse AWSs of a particular day</h2>";

echo printInfo( "Please select a day (MONDAY) to see the details of annual 
    work seminars" );

$today = dbDate( 'next monday' );

if( array_key_exists( 'date', $_GET ) )
    $default[ 'date' ] = $_GET[  'date' ];
else
    $default = array( 'date' => $today );

echo '
    <form method="get" action="">
    <table border="0">
        <tr>
            <td>Select date</td>
            <td><input class="datepicker" type="text" name="date" value="' . 
                    $default[ 'date' ] . '" ></td>
            <td><button type="submit" name="response" value="show">' . 
                $symbScan . '</button></td>
        </tr>
    </table>
    </form>
    ';

$whichDay = $default[ 'date' ];

$awses = getTableEntries( 'annual_work_seminars', 'date' , "date='$whichDay'" );

if( count( $awses ) < 1 )
{
    echo printInfo( "I could not find any AWS in my database on this day" );
}
else 
{
    foreach( $awses as $aws )
    {
        $user = $aws[ 'speaker' ];<commit_msg>Show both upcoming and recent AWS.<commit_after><?php

include_once 'header.php';
include_once 'database.php';
include_once 'tohtml.php';
include_once 'html2text.php';

echo "<h2>Browse AWSs of a particular day</h2>";

echo printInfo( "Please select a day (MONDAY) to see the details of annual 
    work seminars" );

$today = dbDate( 'next monday' );

if( array_key_exists( 'date', $_GET ) )
    $default[ 'date' ] = $_GET[  'date' ];
else
    $default = array( 'date' => $today );

echo '
    <form method="get" action="">
    <table border="0">
        <tr>
            <td>Select date</td>
            <td><input class="datepicker" type="text" name="date" value="' . 
                    $default[ 'date' ] . '" ></td>
            <td><button type="submit" name="response" value="show">' . 
                $symbScan . '</button></td>
        </tr>
    </table>
    </form>
    ';

$whichDay = $default[ 'date' ];

$awses = getTableEntries( 'annual_work_seminars', 'date' , "date='$whichDay'" );
$upcoming = getTableEntries( 'upcoming_aws', 'date', "date='$whichDay'" );
$awses = array_merge( $awses, $upcoming );

if( count( $awses ) < 1 )
{
    echo printInfo( "I could not find any AWS in my database on this day" );
}
else 
{
    foreach( $awses as $aws )
    {
        $user = $aws[ 'speaker' ];
{'fraction_non_alphanumeric': 0.1798298906439854, 'fraction_numerical': 0.004050222762251924, 'mean_word_length': 2.8354037267080745, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 39, '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': '873379', 'n_tokens_mistral': 875, 'n_tokens_neox': 848, 'n_words': 230}