<commit_before>#include "c9/channel9.hpp"
#include "c9/environment.hpp"
#include "c9/context.hpp"
#include "c9/string.hpp"
#include "c9/value.hpp"
#include "c9/loader.hpp"

#include "ruby.h"

using namespace Channel9;

static VALUE rb_ruby_mod;
static ID rb_compile;
static ID rb_compile_string;
static ID rb_to_json;
<commit_msg>Add an implementation of STR2CSTR if it's not there.<commit_after>#include "c9/channel9.hpp"
#include "c9/environment.hpp"
#include "c9/context.hpp"
#include "c9/string.hpp"
#include "c9/value.hpp"
#include "c9/loader.hpp"

#include "ruby.h"

using namespace Channel9;

static VALUE rb_ruby_mod;
static ID rb_compile;
static ID rb_compile_string;
static ID rb_to_json;

#ifndef STR2CSTR
const char *STR2CSTR(VALUE val)
{
    return StringValuePtr(val);
}
#endif

{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.023989898989898988, 'mean_word_length': 5.836206896551724, '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': '6830323', 'n_tokens_mistral': 308, 'n_tokens_neox': 302, 'n_words': 75}