<commit_before>/*
 * Invoke callbacks on time basis.
 *
 * This is an utility to share the only timer
 * to invoke different functions
 */

#ifndef CRON_H
#define CRON_H

#include <stdint.h>

void cron_init ();

void cron_try ();

typedef void (*cron_callback) ();

enum {
  CRON_ID_AT,
  CRON_ID_BUZZ,
  CRON_ID_CLOCK,
  CRON_ID_FLUSH,
  CRON_ID_HEARTBEAT,
  /* CRON_ID_ROTOR, */
  CRON_ID_MAX,                /* Keep last */
};

/* factor is 0.02 sec */
uint8_t cron_enable (uint8_t id,
                     uint8_t factor, cron_callback callback);
uint8_t cron_disable (uint8_t id);

#endif<commit_msg>avr Polish cron<commit_after>/*
 * Invoke callbacks on time basis.
 *
 * This is an utility to share the only timer
 * to invoke different functions
 */

#ifndef CRON_H
#define CRON_H

#include <stdint.h>

void cron_init ();

void cron_try ();

typedef void (*cron_callback) ();

enum {
  CRON_ID_AT,
  CRON_ID_BUZZ,
  CRON_ID_CLOCK,
  CRON_ID_FLUSH,
  CRON_ID_HEARTBEAT,
  /* CRON_ID_ROTOR, */
  CRON_ID_MAX,                /* Keep last */
};

/* factor is 0.02 sec */
uint8_t cron_enable (uint8_t id, uint8_t factor, cron_callback callback);
uint8_t cron_disable (uint8_t id);

#endif
{'fraction_non_alphanumeric': 0.10411418975650713, 'fraction_numerical': 0.01343408900083963, 'mean_word_length': 3.287769784172662, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3253474', 'n_tokens_mistral': 486, 'n_tokens_neox': 461, 'n_words': 119}