<commit_before>#include "ruby.h"
#include "stdlib.h"
#include "stdio.h"
#include "math.h"
#define PI 3.14159265358979323846
#define MAX_DISTG 10000000.0
#define DOTZOOM 10000.0

typedef struct {
  VALUE id;
  VALUE lng;
  VALUE lat;
} point_data;


static VALUE t_init(VALUE self, VALUE dotes);
static VALUE t_search(VALUE self, VALUE lng, VALUE lat);
void quickSortR(point_data* a, long N);

VALUE NNSearcher = Qnil;

static point_data *p_dotes;
int global_dot_count;
int GLOBAL_INIT = 0;
int cities_passed = 0;

static VALUE t_init(VALUE self, VALUE dotes)
{
  VALUE dot = Qnil;
  VALUE funcall_result = Qnil;
  VALUE ary_count = Qnil;
  ary_count = rb_funcall(dotes, rb_intern("count"),0);
  printf("BEFORE");
  int dot_count = NUM2INT(ary_count);
  printf("AFTER %d", dot_count);   <commit_msg>ary count<commit_after>#include "ruby.h"
#include "stdlib.h"
#include "stdio.h"
#include "math.h"
#define PI 3.14159265358979323846
#define MAX_DISTG 10000000.0
#define DOTZOOM 10000.0

typedef struct {
  VALUE id;
  VALUE lng;
  VALUE lat;
} point_data;


static VALUE t_init(VALUE self, VALUE dotes);
static VALUE t_search(VALUE self, VALUE lng, VALUE lat);
void quickSortR(point_data* a, long N);

VALUE NNSearcher = Qnil;

static point_data *p_dotes;
int global_dot_count;
int GLOBAL_INIT = 0;
int cities_passed = 0;

static VALUE t_init(VALUE self, VALUE dotes)
{
  VALUE dot = Qnil;
  VALUE funcall_result = Qnil;
  VALUE ary_count = Qnil;
  printf("BEFORE");
  ary_count = rb_funcall(dotes, rb_intern("count"),0);
  int dot_count = NUM2INT(ary_count);
  printf("AFTER %d", dot_count);   
{'fraction_non_alphanumeric': 0.11306532663316583, 'fraction_numerical': 0.05025125628140704, 'mean_word_length': 5.080152671755725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '3682826', 'n_tokens_mistral': 706, 'n_tokens_neox': 619, 'n_words': 169}