<commit_before>/* Do not add C line and file to the log messages */
#define SD_JOURNAL_SUPPRESS_LOCATION

#include <ruby.h>
#include <systemd/sd-journal.h>

void Init_journald_logger();

/* initializers */
void jdl_init_modules();
void jdl_init_constants();
void jdl_init_methods();

/* methods */
VALUE jdl_native_print(VALUE v_self, VALUE priority, VALUE message);
//VALUE jdl_native_send();
VALUE jdl_native_perror(VALUE v_self, VALUE message);

VALUE mJournald;
VALUE mNative;

void Init_journald_logger()
{
    jdl_init_modules();
    jdl_init_constants();
    jdl_init_methods();
}

void jdl_init_modules()
{
    mJournald = rb_define_module("Journald");
    mNative   = rb_define_module_under(mJournald, "Native");
}<commit_msg>style<commit_after>/* Do not add C line and file to the log messages */
#define SD_JOURNAL_SUPPRESS_LOCATION

#include <ruby.h>
#include <systemd/sd-journal.h>

void Init_journald_logger();

/* initializers */
void jdl_init_modules();
void jdl_init_constants();
void jdl_init_methods();

/* methods */
VALUE jdl_native_print(VALUE self, VALUE priority, VALUE message);
//VALUE jdl_native_send();
VALUE jdl_native_perror(VALUE self, VALUE message);

VALUE mJournald;
VALUE mNative;

void Init_journald_logger()
{
    jdl_init_modules();
    jdl_init_constants();
    jdl_init_methods();
}

void jdl_init_modules()
{
    mJournald = rb_define_module("Journald");
    mNative   = rb_define_module_under(mJournald, "Native");
}
{'fraction_non_alphanumeric': 0.11522633744855967, 'fraction_numerical': 0.0, 'mean_word_length': 5.662100456621005, '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': '4894953', 'n_tokens_mistral': 517, 'n_tokens_neox': 521, 'n_words': 116}