<commit_before>RUST_CHANNEL ?= nightly

CRATES = matches show text_writer triable return_if_ok zip_longest
ifeq "$(RUST_CHANNEL)" "nightly"
    CRATES += mod_path
endif

.PHONY: default
default: test

define ALL

.PHONY: $(1)
$(1): $(addprefix $(1)-,$(CRATES))
$(foreach crate,$(CRATES),$(eval $(call ONE,$(1),$(crate))))

endef

define ONE

.PHONY: $(1)-$(2)
$(1)-$(2):
	cargo $(1) --manifest-path $(2)/Cargo.toml
<commit_msg>zip_longest tests still require nightly.<commit_after>RUST_CHANNEL ?= nightly

CRATES = matches show text_writer triable return_if_ok
ifeq "$(RUST_CHANNEL)" "nightly"
    CRATES += zip_longest mod_path
endif

.PHONY: default
default: test

define ALL

.PHONY: $(1)
$(1): $(addprefix $(1)-,$(CRATES))
$(foreach crate,$(CRATES),$(eval $(call ONE,$(1),$(crate))))

endef

define ONE

.PHONY: $(1)-$(2)
$(1)-$(2):
	cargo $(1) --manifest-path $(2)/Cargo.toml

{'fraction_non_alphanumeric': 0.20090805902383654, 'fraction_numerical': 0.022701475595913734, 'mean_word_length': 5.391304347826087, 'pattern_counts': {'":': 0, '<': 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': '1574410', 'n_tokens_mistral': 361, 'n_tokens_neox': 350, 'n_words': 84}