<commit_before>
OBJDIR=./obj
SRCDIR=./src
INCDIR=./inc

CPPFLAGS=-I$(INCDIR) -DDEBUG_NODE_BASE -DUNIT_TEST -Wall -Os -g -std=c++0x
LDFLAGS=

EXECS= \
	flatsegmenttree-test \
	segmenttree-test \
	stlperf-test

HEADERS= \
	$(INCDIR)/node.hpp \
	$(INCDIR)/global.hpp \
	$(INCDIR)/flatsegmenttree.hpp \
	$(INCDIR)/segmenttree.hpp \
	$(INCDIR)/rectangle_set.hpp

OBJFILES= \
	$(OBJDIR)/flatsegmenttree_test.o \
	$(OBJDIR)/segmenttree_test.o \
	$(OBJDIR)/rectangle_set_test.o

DEPENDS= \
	$(HEADERS)

all: $(EXECS)

pre:
	mkdir $(OBJDIR) 2>/dev/null || /bin/true

$(OBJDIR)/flatsegmenttree_test.o: $(SRCDIR)/flatsegmenttree_test.cpp $(DEPENDS)
	$(CXX) $(CPPFLAGS) -c -o $@ $(SRCDIR)/flatsegmenttree_test.cpp

$(OBJDIR)/segmenttree_test.o: $(SRCDIR)/segmenttree_test.cpp  $(DEPENDS)
	$(CXX) $(CPPFLAGS) -c -o $@ $(SRCDIR)/segmenttree_test.cpp

$(OBJDIR)/rectangle_set_test.o: $(SRCDIR)/rectangle_set_test.cpp  $(DEPENDS)
	$(CXX) $(CPPFLAGS) -c -o $@ $(SRCDIR)/rectangle_set_test.cpp

flatsegmenttree-test: pre $(OBJDIR)/flatsegmenttree_test.o
	$(CXX) $(LDFLAGS) $(OBJDIR)/flatsegmenttree_test.o -o $@

segmenttree-test: pre $(OBJDIR)/segmenttree_test.o
	$(CXX) $(LDFLAGS) $(OBJDIR)/segmenttree_test.o -o $@

rectangle-set-test: pre $(OBJDIR)/rectangle_set_test.o
	$(CXX) $(LDFLAGS) $(OBJDIR)/rectangle_set_test.o -o $@

stlperf-test: pre $(SRCDIR)/stlperf_test.cpp
	$(CXX) $(LDFLAGS) $(CPPFLAGS) $(SRCDIR)/stlperf_test.cpp -o $@

$(OBJDIR)/template_test.o: $(SRCDIR)/template_test.cpp $(DEPENDS)
	$(CXX) $(CPPFLAGS) -c -o $@ $(SRCDIR)/template_test.cpp

test.fst: flatsegmenttree-test
	./flatsegmenttree-test

test.recset: rectangle-set-test
	./rectangle-set-test func

test.recset.perf: rectangle-set-test
	./rectangle-set-test perf

test.recset.mem: rectangle-set-test
	valgrind --tool=memcheck --leak-check=full ./rectangle-set-test

test.fst.mem: flatsegmenttree-test
	valgrind --tool=memcheck --leak-check=full ./flatsegmenttree-test

test.st: segmenttree-test
	./segmenttree-test func

test.st.mem: segmenttree-test
	valgrind --tool=memcheck --leak-check=full ./segmenttree-test func

test.stl: stlperf-test
	./stlperf-test

clean:
	rm -rf $(OBJDIR) 2>/dev/null || /bin/true
	rm $(EXECS) 2>/dev/null || /bin/true
<commit_msg>Fixed mem check target.<commit_after>
OBJDIR=./obj
SRCDIR=./src
INCDIR=./inc

CPPFLAGS=-I$(INCDIR) -DDEBUG_NODE_BASE -DUNIT_TEST -Wall -Os -g -std=c++0x
LDFLAGS=

EXECS= \
	flatsegmenttree-test \
	segmenttree-test \
	stlperf-test

HEADERS= \
	$(INCDIR)/node.hpp \
	$(INCDIR)/global.hpp \
	$(INCDIR)/flatsegmenttree.hpp \
	$(INCDIR)/segmenttree.hpp \
	$(INCDIR)/rectangle_set.hpp

OBJFILES= \
	$(OBJDIR)/flatsegmenttree_test.o \
	$(OBJDIR)/segmenttree_test.o \
	$(OBJDIR)/rectangle_set_test.o

DEPENDS= \
	$(HEADERS)

all: $(EXECS)

pre:
	mkdir $(OBJDIR) 2>/dev/null || /bin/true

$(OBJDIR)/flatsegmenttree_test.o: $(SRCDIR)/flatsegmenttree_test.cpp $(DEPENDS)
	$(CXX) $(CPPFLAGS) -c -o $@ $(SRCDIR)/flatsegmenttree_test.cpp

$(OBJDIR)/segmenttree_test.o: $(SRCDIR)/segmenttree_test.cpp  $(DEPENDS)
	$(CXX) $(CPPFLAGS) -c -o $@ $(SRCDIR)/segmenttree_test.cpp

$(OBJDIR)/rectangle_set_test.o: $(SRCDIR)/rectangle_set_test.cpp  $(DEPENDS)
	$(CXX) $(CPPFLAGS) -c -o $@ $(SRCDIR)/rectangle_set_test.cpp

flatsegmenttree-test: pre $(OBJDIR)/flatsegmenttree_test.o
	$(CXX) $(LDFLAGS) $(OBJDIR)/flatsegmenttree_test.o -o $@

segmenttree-test: pre $(OBJDIR)/segmenttree_test.o
	$(CXX) $(LDFLAGS) $(OBJDIR)/segmenttree_test.o -o $@

rectangle-set-test: pre $(OBJDIR)/rectangle_set_test.o
	$(CXX) $(LDFLAGS) $(OBJDIR)/rectangle_set_test.o -o $@

stlperf-test: pre $(SRCDIR)/stlperf_test.cpp
	$(CXX) $(LDFLAGS) $(CPPFLAGS) $(SRCDIR)/stlperf_test.cpp -o $@

$(OBJDIR)/template_test.o: $(SRCDIR)/template_test.cpp $(DEPENDS)
	$(CXX) $(CPPFLAGS) -c -o $@ $(SRCDIR)/template_test.cpp

test.fst: flatsegmenttree-test
	./flatsegmenttree-test

test.recset: rectangle-set-test
	./rectangle-set-test func

test.recset.perf: rectangle-set-test
	./rectangle-set-test perf

test.recset.mem: rectangle-set-test
	valgrind --tool=memcheck --leak-check=full ./rectangle-set-test func

test.fst.mem: flatsegmenttree-test
	valgrind --tool=memcheck --leak-check=full ./flatsegmenttree-test

test.st: segmenttree-test
	./segmenttree-test func

test.st.mem: segmenttree-test
	valgrind --tool=memcheck --leak-check=full ./segmenttree-test func

test.stl: stlperf-test
	./stlperf-test

clean:
	rm -rf $(OBJDIR) 2>/dev/null || /bin/true
	rm $(EXECS) 2>/dev/null || /bin/true

{'fraction_non_alphanumeric': 0.1835088505489581, 'fraction_numerical': 0.0017925162446784674, 'mean_word_length': 4.511111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5570600', 'n_tokens_mistral': 1881, 'n_tokens_neox': 1820, 'n_words': 290}