<commit_before>#include <string.h>
#include <time.h>
#include "erl_nif.h"

#define MAX_SIZE        255
#define ATOM_OK         enif_make_atom(env, "ok")
#define ATOM_ERROR      enif_make_atom(env, "error")
#define BADARG          enif_make_badarg(env)
#define TUPLE2(A, B)    enif_make_tuple2(env, A, B)
#define TUPLE3(A, B, C) enif_make_tuple3(env, A, B, C)
#define TUPLE_OK(A)     TUPLE2(ATOM_OK, A)
#define TUPLE_ERROR(A)  TUPLE2(ATOM_ERROR, A)
#define INT(A)          enif_make_int(env, A)
#define INT64(A)        enif_make_int64(env, A)
#define ATOM(A)         enif_make_atom(env, A)

extern char *strptime(const char *s, const char *format, struct tm *tm);
extern size_t strftime(char *s, size_t max, const char *format,
                       const struct tm *tm);

inline unsigned enif_get_binary_str(const ErlNifBinary *bin, char *buf)
{<commit_msg>Removed unused macros from 'tempo.c'<commit_after>#include <string.h>
#include <time.h>
#include "erl_nif.h"

#define MAX_SIZE        255
#define ATOM_OK         ATOM("ok")
#define ATOM_ERROR      ATOM("error")
#define BADARG          enif_make_badarg(env)
#define TUPLE2(A, B)    enif_make_tuple2(env, A, B)
#define TUPLE_OK(A)     TUPLE2(ATOM_OK, A)
#define TUPLE_ERROR(A)  TUPLE2(ATOM_ERROR, A)
#define INT64(A)        enif_make_int64(env, A)
#define ATOM(A)         enif_make_atom(env, A)

extern char *strptime(const char *s, const char *format, struct tm *tm);
extern size_t strftime(char *s, size_t max, const char *format,
                       const struct tm *tm);

inline unsigned enif_get_binary_str(const ErlNifBinary *bin, char *buf)
{
{'fraction_non_alphanumeric': 0.11878109452736318, 'fraction_numerical': 0.014925373134328358, 'mean_word_length': 3.8318318318318316, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4687082', 'n_tokens_mistral': 661, 'n_tokens_neox': 645, 'n_words': 160}