<commit_before>// ext/foo/foo_vector.h


// Declarations for wrapped struct

#ifndef FOO_VECTOR_H
#define FOO_VECTOR_H

#include <ruby.h>
#include <math.h>

// Ruby 1.8.7 compatibility patch
#ifndef DBL2NUM
#define DBL2NUM( dbl_val ) rb_float_new( dbl_val )
#endif

void init_foo_vector( VALUE parent_module );

// This is the struct that the rest of the code wraps
typedef struct _fv {
    double x;
    double y;
    double z;
  } FVStruct;

#endif<commit_msg>Add sharable methods to header file<commit_after>// ext/foo/foo_vector.h


// Declarations for wrapped struct

#ifndef FOO_VECTOR_H
#define FOO_VECTOR_H

#include <ruby.h>
#include <math.h>

// Ruby 1.8.7 compatibility patch
#ifndef DBL2NUM
#define DBL2NUM( dbl_val ) rb_float_new( dbl_val )
#endif

void init_foo_vector( VALUE parent_module );

// This is the struct that the rest of the code wraps
typedef struct _fv {
    double x;
    double y;
    double z;
  } FVStruct;

FVStruct *create_fv_struct();
void destroy_fv_struct( FVStruct *fv );
FVStruct *copy_fv_struct( FVStruct *orig );
double fv_magnitude( FVStruct *fv );

#endif
{'fraction_non_alphanumeric': 0.09380692167577413, 'fraction_numerical': 0.009107468123861567, 'mean_word_length': 4.087962962962963, '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': '6095858', 'n_tokens_mistral': 426, 'n_tokens_neox': 407, 'n_words': 122}