<commit_before>#ifndef __SEED_TIME_H
#define __SEED_TIME_H

#define __SEED_TIME_API extern

#include <stdint.h>

typedef struct {
	int64_t sec;    /* sec gives the number of seconds eclapsed since 1-1-1 00:00:00 */
	int32_t nsec;   /* nanoseconds [0, 999999999] */
	int16_t offset;
} __seed_timestamp;

typedef __seed_timestamp* __seed_timestamp_t;

typedef __seed_timestamp_t Time;

__SEED_TIME_API __seed_timestamp_t timeNow();

__SEED_TIME_API int timeAfter(__seed_timestamp_t t, __seed_timestamp_t u);
__SEED_TIME_API int timeBefore(__seed_timestamp_t t, __seed_timestamp_t u);
__SEED_TIME_API int timeEqual(__seed_timestamp_t t, __seed_timestamp_t u);

__SEED_TIME_API int32_t timeHour(__seed_timestamp_t t);
__SEED_TIME_API int32_t timeMinute(__seed_timestamp_t t);

__SEED_TIME_API char* timeFormat(__seed_timestamp_t t);
#endif<commit_msg>add little docs for timeFormat<commit_after>#ifndef __SEED_TIME_H
#define __SEED_TIME_H

#define __SEED_TIME_API extern

#include <stdint.h>

typedef struct {
	int64_t sec;    /* sec gives the number of seconds eclapsed since 1-1-1 00:00:00 */
	int32_t nsec;   /* nanoseconds [0, 999999999] */
	int16_t offset;
} __seed_timestamp;

typedef __seed_timestamp* __seed_timestamp_t;

typedef __seed_timestamp_t Time;

__SEED_TIME_API __seed_timestamp_t timeNow();

__SEED_TIME_API int timeAfter(__seed_timestamp_t t, __seed_timestamp_t u);
__SEED_TIME_API int timeBefore(__seed_timestamp_t t, __seed_timestamp_t u);
__SEED_TIME_API int timeEqual(__seed_timestamp_t t, __seed_timestamp_t u);

__SEED_TIME_API int32_t timeHour(__seed_timestamp_t t);
__SEED_TIME_API int32_t timeMinute(__seed_timestamp_t t);

/**
 * return a 1991-01-30 12:00:00.990 like timestamp.
 *
 * USAGE
 *
 * 	Time tm_now = timeNow();
 * 	char* ts_now = timeFormat(tm_now);
 *
 * 	dosomething(ts_now);
 *
 * 	free(ts_now);
 * 	free(tm_now);
 * */
__SEED_TIME_API char* timeFormat(__seed_timestamp_t t);
#endif
{'fraction_non_alphanumeric': 0.08372334893395736, 'fraction_numerical': 0.0390015600624025, 'mean_word_length': 6.4, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '5742182', 'n_tokens_mistral': 803, 'n_tokens_neox': 736, 'n_words': 161}