<commit_before>// poor man's dependency injection.
// if you'd like to use the ragel parser
// for another language or framework,
// override these.
#define TNETS_WRAP_NUM(n) (INT2FIX(n))
#define TNETS_WRAP_TRUE (Qtrue)
#define TNETS_WRAP_FALSE (Qfalse)
#define TNETS_WRAP_NULL (Qnil)
#define TNETS_WRAP_STR(s,size) (rb_str_new(s,size))
// TODO: find a better way to symbolize length-specified
// strings.
#define TNETS_WRAP_DICT_KEY(k,size) (ID2SYM(rb_to_id(TNETS_WRAP_STR(k,size))))
 <commit_msg>a modest plea for help<commit_after>// poor man's dependency injection.
// if you'd like to use the ragel parser
// for another language or framework,
// override these.
// if anyone has suggestions on how to do this better,
// plz let me know.
#define TNETS_WRAP_NUM(n) (INT2FIX(n))
#define TNETS_WRAP_TRUE (Qtrue)
#define TNETS_WRAP_FALSE (Qfalse)
#define TNETS_WRAP_NULL (Qnil)
#define TNETS_WRAP_STR(s,size) (rb_str_new(s,size))
// TODO: find a better way to symbolize length-specified
// strings.
#define TNETS_WRAP_DICT_KEY(k,size) (ID2SYM(rb_to_id(TNETS_WRAP_STR(k,size))))
 
{'fraction_non_alphanumeric': 0.11851851851851852, 'fraction_numerical': 0.003703703703703704, 'mean_word_length': 5.591463414634147, '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': '718795', 'n_tokens_mistral': 426, 'n_tokens_neox': 417, 'n_words': 112}