<commit_before>COMPILATOR=clang++
#COMPILATOR=g++
ifeq ($(COMPILATOR), clang++)
	CFLAGS=-std=c++11 -Wpedantic -Wall -Wextra -Winit-self -Winline -Wconversion -Weffc++ -Wctor-dtor-privacy -Woverloaded-virtual -Wconversion -Wsign-promo -g
else
	CFLAGS=-std=c++11 -Wpedantic -Wall -Wextra -Winit-self -Winline -Wconversion -Weffc++ -Wstrict-null-sentinel -Wnoexcept -Wctor-dtor-privacy -Woverloaded-virtual -Wconversion -Wsign-promo -Wzero-as-null-pointer-constant
endif
LDFLAGS= -g

SOURCES=$(wildcard *.cpp)
OBJECTS=$(SOURCES:.cpp=.o)
HEADER=$(wildcard *.hpp)
EXECUTABLE=MatchInstance

all : $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(COMPILATOR) $(LDFLAGS) $^ -o $@

$(EXECUTABLE).o: $(HEADER)

%.o:%.cpp
	$(COMPILATOR) $(CFLAGS) -c $< -o $@

run:all
	@echo -e "\e[0;31m================= Run ================\e[0m"
	./$(EXECUTABLE)

.PHONY: clean mrproper

clean:
	rm -f *.o

mrproper: clean
	rm -rf $(EXECUTABLE)
<commit_msg>[code] Add options to models Makefile<commit_after>ifdef C
    COMPILATOR=$(C)
else
    COMPILATOR=clang++
endif

ifdef N

ifeq ($(COMPILATOR), clang++)
	CFLAGS=-std=c++11 -Wpedantic -Wall -Wextra -Winit-self -Winline -Wconversion -Weffc++ -Wctor-dtor-privacy -Woverloaded-virtual -Wconversion -Wsign-promo -g
else
	CFLAGS=-std=c++11 -Wpedantic -Wall -Wextra -Winit-self -Winline -Wconversion -Weffc++ -Wstrict-null-sentinel -Wnoexcept -Wctor-dtor-privacy -Woverloaded-virtual -Wconversion -Wsign-promo -Wzero-as-null-pointer-constant
endif

else
	CFLAGS=-std=c++11
endif

LDFLAGS= -g

SOURCES=$(wildcard *.cpp)
OBJECTS=$(SOURCES:.cpp=.o)
HEADER=$(wildcard *.hpp)
EXECUTABLE=MatchInstance

all : $(SOURCES) $(EXECUTABLE)

$(EXECUTABLE): $(OBJECTS)
	$(COMPILATOR) $(LDFLAGS) $^ -o $@

$(EXECUTABLE).o: $(HEADER)

%.o:%.cpp
	$(COMPILATOR) $(CFLAGS) -c $< -o $@

run:all
	@echo -e "\e[0;31m================= Run ================\e[0m"
	./$(EXECUTABLE)

.PHONY: clean mrproper

clean:
	rm -f *.o

mrproper: clean
	rm -rf $(EXECUTABLE)

{'fraction_non_alphanumeric': 0.212798374809548, 'fraction_numerical': 0.009141696292534281, 'mean_word_length': 4.549295774647887, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5342948', 'n_tokens_mistral': 845, 'n_tokens_neox': 786, 'n_words': 168}