<commit_before>#include <nan.h>

#include "input.h"
#include "output.h"

Nan::Persistent<v8::FunctionTemplate> NodeMidiInput::s_ct;
Nan::Persistent<v8::FunctionTemplate> NodeMidiOutput::s_ct;

extern "C" {
    void init (v8::Local<v8::Object> target)
    {
        NodeMidiOutput::Init(target);
        NodeMidiInput::Init(target);
    }
    NODE_MODULE(midi, init)
}<commit_msg>Use the NAN module init.<commit_after>#include <nan.h>

#include "input.h"
#include "output.h"

Nan::Persistent<v8::FunctionTemplate> NodeMidiInput::s_ct;
Nan::Persistent<v8::FunctionTemplate> NodeMidiOutput::s_ct;

NAN_MODULE_INIT(InitAll) {
    NodeMidiOutput::Init(target);
    NodeMidiInput::Init(target);
}

NODE_MODULE(midi, InitAll)
{'fraction_non_alphanumeric': 0.15459610027855153, 'fraction_numerical': 0.008356545961002786, 'mean_word_length': 6.336734693877551, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '2167580', 'n_tokens_mistral': 276, 'n_tokens_neox': 268, 'n_words': 39}