<commit_before>XFCE_TERMINAL_VERSION := $(shell xfce4-terminal --version 2>/dev/null)
ifdef XFCE_TERMINAL_VERSION
	TERMINAL = xfce4-terminal -e
else
	TERMINAL = screen
endif

BIN = blamerl
LIBS = -lncurses
SOURCES = $(wildcard *.cpp)
OBJ = $(SOURCES:.cpp=.o)
CXXFLAGS = -Werror -Wall

run: deps $(BIN)
	$(TERMINAL) './$(BIN)'

$(BIN): $(OBJ)
	$(CXX) $(LIBS) -o $@ $^

%.o: %.cpp
	$(CXX) $(CXXFLAGS) -c $<

.PHONY: deps clean Makefile

deps: $(OBJ:.o=.cpp)
	$(CXX) -MM $^ > $@

clean:
	$(RM) -rf *.o $(BIN) deps

include deps
<commit_msg>Makefile: moved objects and deps to a tmp dir.<commit_after>XFCE_TERMINAL_VERSION := $(shell xfce4-terminal --version 2>/dev/null)
ifdef XFCE_TERMINAL_VERSION
	TERMINAL = xfce4-terminal -e
else
	TERMINAL = screen
endif

BIN = blamerl
LIBS = -lncurses
SOURCES = $(wildcard *.cpp)
OBJ = $(addprefix tmp/,$(SOURCES:.cpp=.o))
CXXFLAGS = -Werror -Wall

run: $(BIN)
	$(TERMINAL) './$(BIN)'

$(BIN): tmp/deps $(OBJ)
	$(CXX) $(LIBS) -o $@ $(OBJ)

tmp/%.o: %.cpp
	$(CXX) $(CXXFLAGS) -c $< -o $@

.PHONY: tmp/deps clean Makefile

tmp/deps: $(SOURCES)
	$(CXX) -MM $^ > $@

clean:
	$(RM) -rf tmp/*.o $(BIN) tmp/deps

$(shell mkdir -p tmp)
include tmp/deps

{'fraction_non_alphanumeric': 0.20660457239627433, 'fraction_numerical': 0.005080440304826418, 'mean_word_length': 3.785425101214575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6007095', 'n_tokens_mistral': 561, 'n_tokens_neox': 507, 'n_words': 129}