<commit_before>/* Run the test dates
   Serves as a tutorial for the use of the provided functions */

int gregorian(int year, int month, int day);

int main(void)
{

    return 0;
}
<commit_msg>Tested gregorian.c on today's date.<commit_after>/* Run for the date of today */

#include <stdio.h>
#include <time.h>

int gregorian(int year, int month, int day);

int main(void)
{
    /* Test the algorithm with the current date */
    int dayToday, monthToday, yearToday;
    struct tm *currentTime;
    time_t timer;
    time(&timer);
    currentTime = localtime(&timer);
    dayToday = currentTime->tm_mday;
    monthToday = currentTime->tm_mon + 1;
    yearToday = currentTime->tm_year + 1900;
    int realDay = currentTime->tm_wday;

    /* Compare it with the calculated date */
    if (realDay == 0)
        realDay = 7;
    int computedDay = gregorian(yearToday ,monthToday, dayToday);
    if (computedDay == realDay)
        printf("The calculated and the extracted day agrees.\n");
    else
        printf("The algorithm fails for the current day.\n");

    return 0;
}

{'fraction_non_alphanumeric': 0.10770659238625813, 'fraction_numerical': 0.008356545961002786, 'mean_word_length': 3.114503816793893, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5119357', 'n_tokens_mistral': 362, 'n_tokens_neox': 334, 'n_words': 117}