<commit_before>ruby_config = $(shell ruby -rrbconfig -e "puts Config::CONFIG['$(strip $1)']")
RUBY_CFLAGS = -I$(call ruby_config, archdir)
RUBY_LDFLAGS = -L$(call ruby_config, libdir) \
               -L$(call ruby_config, archdir) \
               -lruby $(call ruby_config, LIBS) \
               $(call ruby_config, LDFLAGS)

CPPFLAGS=$(RUBY_CFLAGS) -I..
CXXFLAGS+=-fno-inline
CXXFLAGS+= -g
LDFLAGS+=$(RUBY_LDFLAGS) -L../rice -lrice

UT_OBJS = \
	unittest.o \
	test_Address_Registration_Guard.o \
	test_Allocation_Strategies.o \
	test_Array.o \
	test_Builtin_Object.o \
	test_Class.o \
	test_Constructor.o \
	test_Critical_Guard.o \
	test_Data_Object.o \
	test_Enum.o \
	test_Exception.o \
	test_Hash.o \
	test_Identifier.o \
	test_Jump_Tag.o \
	test_Module.o \
	test_Object.o \
	test_String.o \
	test_Struct.o \
	test_Symbol.o \
	test_To_From_Ruby.o \

all: unittest vm_unittest

unittest: $(UT_OBJS) ../rice/librice.a
	$(CXX) -o$@ $(UT_OBJS) $(LDFLAGS)

VM_UT_OBJS = \
	unittest.o \
	test_VM.o \
	
vm_unittest: $(VM_UT_OBJS) ../rice/librice.a
	$(CXX) -o$@ $(VM_UT_OBJS) $(LDFLAGS)

clean:
	rm -f $(UT_OBJS) $(VM_UT_OBJS) unittest

.PHONY: clean

CXXFLAGS+=-MMD
<commit_msg>Fixes to build on cygwin.<commit_after>ruby_config = $(shell ruby -rrbconfig -e "puts Config::CONFIG['$(strip $1)']")
RUBY_CFLAGS = -I$(call ruby_config, archdir)
RUBY_LDFLAGS = -L$(call ruby_config, libdir) \
               $(call ruby_config, LDFLAGS)
RUBY_LIBS = -lruby $(call ruby_config, LIBS) \

CPPFLAGS=$(RUBY_CFLAGS) -I..
CXXFLAGS+=-fno-inline
CXXFLAGS+= -g
LDFLAGS+=$(RUBY_LDFLAGS) 
LIBS+=-L../rice -lrice $(RUBY_LIBS)

UT_OBJS = \
	unittest.o \
	test_Address_Registration_Guard.o \
	test_Allocation_Strategies.o \
	test_Array.o \
	test_Builtin_Object.o \
	test_Class.o \
	test_Constructor.o \
	test_Critical_Guard.o \
	test_Data_Object.o \
	test_Enum.o \
	test_Exception.o \
	test_Hash.o \
	test_Identifier.o \
	test_Jump_Tag.o \
	test_Module.o \
	test_Object.o \
	test_String.o \
	test_Struct.o \
	test_Symbol.o \
	test_To_From_Ruby.o \

all: unittest vm_unittest

unittest: $(UT_OBJS) ../rice/librice.a
	$(CXX) -o$@ $(UT_OBJS) $(LDFLAGS) $(LIBS)

VM_UT_OBJS = \
	unittest.o \
	test_VM.o \
	
vm_unittest: $(VM_UT_OBJS) ../rice/librice.a
	$(CXX) -o$@ $(VM_UT_OBJS) $(LDFLAGS) $(LIBS)

clean:
	rm -f $(UT_OBJS) $(VM_UT_OBJS) unittest

.PHONY: clean

CXXFLAGS+=-MMD

{'fraction_non_alphanumeric': 0.15427114322141947, 'fraction_numerical': 0.0008499787505312367, 'mean_word_length': 3.4415094339622643, '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': '5165374', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1034, 'n_words': 173}