<commit_before>BINS = simplest simple_module simple_class class_under_module
MRB_HEADERS = simplest_mrb.h simple_module_mrb.h simple_class_mrb.h class_under_module_mrb.h
MRB_SAMPLES = simplest_mrb.rb simple_module_mrb.rb simple_class_mrb.rb class_under_module_mrb.rb

all: $(BINS)

$(MRB_HEADERS): $(MRB_SAMPLES) mruby/bin/mrbc
	mruby/bin/mrbc -B $* -o $*.h $*.rb

%.c: %_mrb.h
	gcc -c $@ -Imruby/include

simplest: simplest.c mruby/build/host/lib/libmruby.a
	gcc -o simplest simplest.o -lmruby -lm -Lmruby/build/host/lib

simple_module: simple_module.c mruby/build/host/lib/libmruby.a
	gcc -o simple_module simple_module.o -lmruby -lm -Lmruby/build/host/lib

simple_class: simple_class.c mruby/build/host/lib/libmruby.a
	gcc -o simple_class simple_class.o -lmruby -lm -Lmruby/build/host/lib

class_under_module: class_under_module.c mruby/build/host/lib/libmruby.a
	gcc -o class_under_module class_under_module.o -lmruby -lm -Lmruby/build/host/lib

mruby/build/host/lib/libmruby.a:
	cd mruby; rake

mruby/bin/mrbc:
	cd mruby; rake

clean:
	rm -f $(BINS)
	rm -f *.o
	rm -f $(MRB_HEADERS)

test: $(BINS)
	./simplest
	./simple_module
	./simple_class
	./class_under_module<commit_msg>More consolidation<commit_after>BINS = simplest simple_module simple_class class_under_module
SRC = simplest.c simple_module.c simple_class.c class_under_module.c
OBJS = simplest.o simple_module.o simple_class.o class_under_module.o
MRB_HEADERS = simplest_mrb.h simple_module_mrb.h simple_class_mrb.h class_under_module_mrb.h
MRB_SAMPLES = simplest_mrb.rb simple_module_mrb.rb simple_class_mrb.rb class_under_module_mrb.rb

all: $(BINS)

$(MRB_HEADERS): $(MRB_SAMPLES) mruby/bin/mrbc
	mruby/bin/mrbc -B $* -o $*.h $*.rb

$(OBJS): $(MRB_HEADERS) $(SRC)
	gcc -c $*.c -o $@ -Imruby/include

$(BINS): $(OBJS) mruby/build/host/lib/libmruby.a
	gcc -o $@ $@.o -lmruby -lm -Lmruby/build/host/lib

mruby/build/host/lib/libmruby.a:
	cd mruby; rake

mruby/bin/mrbc:
	cd mruby; rake

clean:
	rm -f $(BINS)
	rm -f *.o
	rm -f $(MRB_HEADERS)

test: $(BINS)
	./simplest
	./simple_module
	./simple_class
	./class_under_module
{'fraction_non_alphanumeric': 0.12972714217328865, 'fraction_numerical': 0.0, 'mean_word_length': 4.414507772020725, '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': '1472854', 'n_tokens_mistral': 961, 'n_tokens_neox': 889, 'n_words': 170}