<commit_before><?php

function searchForWindow($dbconn)
{
    $SR = pg_query($dbconn, "SELECT * FROM Time_window");
    $line = pg_fetch_array($SR, null, PGSQL_ASSOC);
    while($line)
    {
        $date = date("Y-m-d");
        if(/*$line['startTime'] < $date && $line['endTime'] > $date */true)
        {
            return $line['windowname'];
        }
        $line = pg_fetch_array($SR, null, PGSQL_ASSOC);
    }
}
    

<commit_msg>window done<commit_after><?php

function searchForWindow($dbconn)
{
    $SR = pg_query($dbconn, "SELECT * FROM Time_window");
    $line = pg_fetch_array($SR, null, PGSQL_ASSOC);
    while($line)
    {
        if(time() - strtotime($line['startTime']) > 0 && time() - strtotime($line['endTime']) < 0)
        {
            return $line['windowname'];
        }
        $line = pg_fetch_array($SR, null, PGSQL_ASSOC);
    }
}
    


{'fraction_non_alphanumeric': 0.1781609195402299, 'fraction_numerical': 0.0022988505747126436, 'mean_word_length': 2.6596638655462184, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '2170965', 'n_tokens_mistral': 312, 'n_tokens_neox': 314, 'n_words': 52}