<commit_before>/*
 * Copyright 2011, <NAME> @tbranyen <<EMAIL>>
 * @author <NAME> @codeofinterest <<EMAIL>>
 *
 * Dual licensed under the MIT and GPL licenses.
 */

#include <v8.h>
#include <node.h>

#include "../vendor/libgit2/include/git2.h"

using namespace node;
using namespace v8;

/**
 * Class wrapper for libgit2 git_threads_*
 */
class GitThreads : public ObjectWrap {
  public:
    /**
     * v8::FunctionTemplate used to create Node.js constructor
     */
    static Persistent<Function> constructor_template;

    static void Initialize (Handle<v8::Object> target);

    static Handle<Value> Init(const Arguments& args);

  protected:

    GitThreads() {}
    ~GitThreads() {}

    static Handle<Value> New(const Arguments& args);

};
<commit_msg>Documentation<commit_after>/*
 * Copyright 2011, <NAME> @tbranyen <<EMAIL>>
 * @author <NAME> @codeofinterest <<EMAIL>>
 *
 * Dual licensed under the MIT and GPL licenses.
 */

#include <v8.h>
#include <node.h>

#include "../vendor/libgit2/include/git2.h"

using namespace node;
using namespace v8;

/**
 * Class wrapper for libgit2 git_threads_*
 */
class GitThreads : public ObjectWrap {
  public:
    /**
     * v8::FunctionTemplate used to create Node.js constructor
     */
    static Persistent<Function> constructor_template;

    static void Initialize (Handle<v8::Object> target);

    /**
     * Calls git_threads_init synchronously. This is called one time
     * on initialization, and is required for libgit2 to run correctly.
     */
    static Handle<Value> Init(const Arguments& args);

  protected:

    GitThreads() {}
    ~GitThreads() {}

    static Handle<Value> New(const Arguments& args);

};

{'fraction_non_alphanumeric': 0.1265671641791045, 'fraction_numerical': 0.01373134328358209, 'mean_word_length': 3.6043956043956045, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '461745', 'n_tokens_mistral': 539, 'n_tokens_neox': 514, 'n_words': 152}