<commit_before>INPUT = $(wildcard [0-9]*.hs)
PROGRAMS = $(basename $(INPUT))
GHCFLAGS = -Wall -O2 --make
GHCFLAGS += -fno-warn-type-defaults -fno-warn-missing-signatures
#GHCFLAGS += -prof -auto-all

% %.o %.hi: %.hs Euler.hs Makefile
	ghc $(GHCFLAGS) $<
	@touch $@

%.test: %
	@echo -n $< '... '
	@if [ "`head -n1 $<.hs | cut -c4-`" != "`./$<`" ] ; then \
		echo 'FAIL' && false ; \
	else \
		echo 'OK' ; \
	fi

.PHONY: all clean test
all: $(PROGRAMS)
test: $(addsuffix .test,$(PROGRAMS))
clean:
	rm -f $(PROGRAMS) *.hi *.o *.prof<commit_msg>Fix parallel make.<commit_after>INPUT = $(wildcard [0-9]*.hs)
PROGRAMS = $(basename $(INPUT))
GHCFLAGS = -Wall -O2 --make
GHCFLAGS += -fno-warn-type-defaults -fno-warn-missing-signatures
#GHCFLAGS += -prof -auto-all

% %.o %.hi: %.hs Euler.o Makefile
	ghc $(GHCFLAGS) $<
	@touch $@

%.test: %
	@echo -n $< '... '
	@if [ "`head -n1 $<.hs | cut -c4-`" != "`./$<`" ] ; then \
		echo 'FAIL' && false ; \
	else \
		echo 'OK' ; \
	fi

.PHONY: all clean test
all: $(PROGRAMS)
Euler.o: Euler.hs
	ghc $(GHCFLAGS) $<
	@touch $@
test: $(addsuffix .test,$(PROGRAMS))
clean:
	rm -f $(PROGRAMS) *.hi *.o *.prof
{'fraction_non_alphanumeric': 0.2440737489025461, 'fraction_numerical': 0.00877963125548727, 'mean_word_length': 2.944636678200692, 'pattern_counts': {'":': 0, '<': 12, '<?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': '2035997', 'n_tokens_mistral': 534, 'n_tokens_neox': 496, 'n_words': 120}