<commit_before>BUILDDIR := build
MACROS =

GIT_VERSION := $(shell git --version | check_version.py --match 'version (\d+\.\d+\.\d+)' --operator ge --check-version 2.21)

ifeq ($(.SHELLSTATUS), 0)
	MACROS += -D DF_GIT_DATE_FORMAT="human"
	MACROS += -D DF_GIT_PUSH_DEFAULT
else
	MACROS += -D DF_GIT_DATE_FORMAT="short"
endif

SOURCES := $(wildcard *.m4)
TARGETS := $(patsubst %.m4, %, $(SOURCES))
BUILD_TARGETS := $(addprefix $(BUILDDIR)/, $(TARGETS))

.PHONY: all clean

all: $(TARGETS)

%: $(BUILDDIR)/%
	cp $< $@

.INTERMEDIATE: $(BUILD_TARGETS)
$(BUILDDIR)/% : %.m4
	m4 $(M4_OPTS) $(MACROS) $< > $@

$(BUILD_TARGETS): | $(BUILDDIR)

$(BUILDDIR):
	mkdir $@

clean:
	rm -rf $(BUILDDIR)
	rm -fv $(TARGETS)<commit_msg>Fix check_version path in Makefile<commit_after>BUILDDIR := build
MACROS =

GIT_VERSION := $(shell git --version | bin/check_version.py --match 'version (\d+\.\d+\.\d+)' --operator ge --check-version 2.21)

ifeq ($(.SHELLSTATUS), 0)
	MACROS += -D DF_GIT_DATE_FORMAT="human"
	MACROS += -D DF_GIT_PUSH_DEFAULT
else
	MACROS += -D DF_GIT_DATE_FORMAT="short"
endif

SOURCES := $(wildcard *.m4)
TARGETS := $(patsubst %.m4, %, $(SOURCES))
BUILD_TARGETS := $(addprefix $(BUILDDIR)/, $(TARGETS))

.PHONY: all clean

all: $(TARGETS)

%: $(BUILDDIR)/%
	cp $< $@

.INTERMEDIATE: $(BUILD_TARGETS)
$(BUILDDIR)/% : %.m4
	m4 $(M4_OPTS) $(MACROS) $< > $@

$(BUILD_TARGETS): | $(BUILDDIR)

$(BUILDDIR):
	mkdir -p $@

clean:
	rm -rf $(BUILDDIR)
	rm -fv $(TARGETS)
{'fraction_non_alphanumeric': 0.21506849315068494, 'fraction_numerical': 0.012328767123287671, 'mean_word_length': 4.293478260869565, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '4162018', 'n_tokens_mistral': 648, 'n_tokens_neox': 638, 'n_words': 134}