<commit_before>DIFF = diff
RM = rm -f
CXXFLAGS += -ggdb -Wall -I.

default: ini_test

.PHONY : IniFile.h
IniFile.h : ../../src/IniFile.h
	echo '' > $@
	echo '#include "arduino_compat.h"' >> $@
	echo '#include <iostream>' >> $@
	echo 'using namespace ::std;' >> $@
	cat $< >> $@

IniFile.cpp : ../../src/IniFile.cpp
	cp $< $@

IniFile.o : IniFile.cpp IniFile.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

File.o : File.cpp File.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

IPAddress.o : IPAddress.cpp IPAddress.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

ini_test.o : ini_test.cpp IniFile.h

ini_test : ini_test.o IniFile.o File.o IPAddress.o
	$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@

# Regression testing. Run as "make regressiontest", should display
# "TEST PASSED" if everything ok.
.PHONY : regressiontest
regressiontest :
	$(MAKE) realclean
	$(MAKE) ini_test
	./ini_test > ini_test.regressiontest.tmp
	$(DIFF) -s -u ini_test.regressiontest ini_test.regressiontest.tmp
	-$(RM) ini_test.regressiontest.tmp
	@echo
	@echo TEST PASSED

.PHONY : clean
clean : 
	-$(RM) *.o IniFile.h IniFile.cpp ini_test.regressiontest.tmp

.PHONY : realclean
realclean : clean
	-$(RM) -f ini_test

readtest : readtest.o File.o IniFile.o IPAddress.o 
	$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@

readtest.o : readtest.cpp IniFile.h

<commit_msg>Make "regressiontest" target the default target<commit_after>DIFF = diff
RM = rm -f
CXXFLAGS += -ggdb -Wall -I.

default: regressiontest

.PHONY : IniFile.h
IniFile.h : ../../src/IniFile.h
	echo '' > $@
	echo '#include "arduino_compat.h"' >> $@
	echo '#include <iostream>' >> $@
	echo 'using namespace ::std;' >> $@
	cat $< >> $@

IniFile.cpp : ../../src/IniFile.cpp
	cp $< $@

IniFile.o : IniFile.cpp IniFile.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

File.o : File.cpp File.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

IPAddress.o : IPAddress.cpp IPAddress.h
	$(CXX) $(CXXFLAGS) -c $< -o $@

ini_test.o : ini_test.cpp IniFile.h

ini_test : ini_test.o IniFile.o File.o IPAddress.o
	$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@

# Regression testing. Run as "make regressiontest", should display
# "TEST PASSED" if everything ok.
.PHONY : regressiontest
regressiontest :
	$(MAKE) realclean
	$(MAKE) ini_test
	./ini_test > ini_test.regressiontest.tmp
	$(DIFF) -s -u ini_test.regressiontest ini_test.regressiontest.tmp
	-$(RM) ini_test.regressiontest.tmp
	@echo
	@echo TEST PASSED

.PHONY : clean
clean :
	-$(RM) *.o IniFile.h IniFile.cpp ini_test.regressiontest.tmp

.PHONY : realclean
realclean : clean
	-$(RM) -f ini_test

readtest : readtest.o File.o IniFile.o IPAddress.o
	$(CXX) $(CXXFLAGS) $^ $(LDFLAGS) -o $@

readtest.o : readtest.cpp IniFile.h


{'fraction_non_alphanumeric': 0.17862595419847327, 'fraction_numerical': 0.0, 'mean_word_length': 3.5346020761245676, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 25, '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': '4970109', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1063, 'n_words': 251}