<commit_before>#include "clock.h"
#include "segment.h"

inline void clock_tick()
{
    static uint8_t ticks = 0;
    PIR0 &= ~_PIR0_TMR0IF_MASK;
    ticks++;
#define US_IN_SECONDS 1000000
#define TICKS_PER_SECOND US_IN_SECONDS / TICK_LENGTH_US
    if (ticks == TICKS_PER_SECOND - 1)
    {
        ticks = 0;
        clock_increment_second();
        SECONDS_INDICATOR_PORT ^= SECONDS_INDICATOR_MASK;
    }
}

inline static void clock_increment_second()
{
    static uint8_t seconds = 0;
    static uint8_t minutes_for_correction = 0;
    if (seconds == 59)
    {
        if (minutes_for_correction == CORRECTION_MIN - 1) //or maybe I shouldn't have the -1 here?<commit_msg>Perhaps made the timing more correct<commit_after>#include "clock.h"
#include "segment.h"

inline void clock_tick()
{
    static uint8_t ticks = 0;
    PIR0 &= ~_PIR0_TMR0IF_MASK;
    ticks++;
#define US_IN_SECONDS 1000000
#define TICKS_PER_SECOND US_IN_SECONDS / TICK_LENGTH_US
    if (ticks == TICKS_PER_SECOND - 1)
    {
        ticks = 0;
        clock_increment_second();
        SECONDS_INDICATOR_PORT ^= SECONDS_INDICATOR_MASK;
    }
}

inline static void clock_increment_second()
{
    static uint8_t seconds = 0;
    static uint8_t minutes_for_correction = 0;
    if (seconds == 59)
    {
        if (minutes_for_correction == CORRECTION_MIN)
{'fraction_non_alphanumeric': 0.09214501510574018, 'fraction_numerical': 0.03172205438066465, 'mean_word_length': 3.3585526315789473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2581823', 'n_tokens_mistral': 533, 'n_tokens_neox': 499, 'n_words': 109}