<commit_before>IGNORE = Makefile
APPS = $(filter-out $(IGNORE), $(wildcard *))
ifneq ("","$(VERSION)")
OPT_VERSION="VERSION=$(VERSION)"
endif

.PHONY: help list install update $(APPS)
help:
	@echo commands:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = " ## "}; {cmd=sub(":[^#]+#?","",$$1)}; {printf "\033[36m%-40s\033[0m %s\n", $$cmd, $$2}'

list: version all ## show apps list

install: # [VERSION=version] PACKAGE... ## install specified apps
	@:
	$(eval SUBTARGET := install)

update: # PACKAGE... ## update specified apps version
	@:
	$(eval SUBTARGET := update)

version: # PACKAGE... ## show install app version
	@:
	$(eval SUBTARGET := version)

versions: # PACKAGE... ## show available versions
	@:
	$(eval SUBTARGET... := versions)

all: $(APPS) ## install all apps

$(APPS): 
	@:
	$(info $@	 $(shell $(MAKE) $(OPT_VERSION) --no-print-directory -C $@ $(SUBTARGET)))<commit_msg>fmt app cmd<commit_after>IGNORE = Makefile
APPS = $(filter-out $(IGNORE), $(wildcard *))
ifneq ("","$(VERSION)")
OPT_VERSION="VERSION=$(VERSION)"
endif

.PHONY: help list install update $(APPS)
help:
	@echo commands:
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = " ## "}; {cmd=sub(":[^#]+#?","",$$1)}; {printf "\033[36m%-40s\033[0m %s\n", $$cmd, $$2}'

list: version all ## show apps list

install: # [VERSION=version] PACKAGE... ## install specified apps
	@:
	$(eval SUBTARGET := install)

update: # PACKAGE... ## update specified apps version
	@:
	$(eval SUBTARGET := update)

version: # PACKAGE... ## show install app version
	@:
	$(eval SUBTARGET := version)

versions: # PACKAGE... ## show available versions
	@:
	$(eval SUBTARGET... := versions)

all: $(APPS) ## install all apps

$(APPS): 
	@:
	@$(MAKE) $(OPT_VERSION) --no-print-directory -C $@ $(SUBTARGET) | awk '{printf "\033[36m%-20s\033[0m %s\n", "$@", $$0}'
{'fraction_non_alphanumeric': 0.24226254002134473, 'fraction_numerical': 0.020277481323372464, 'mean_word_length': 4.326704545454546, 'pattern_counts': {'":': 2, '<': 3, '<?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': '7180099', 'n_tokens_mistral': 738, 'n_tokens_neox': 701, 'n_words': 178}