<commit_before>SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

REPO_NAME := sprout-wrap
REPO := $(REPO_NAME)
#REV := $(shell TZ=UTC date +'%Y%m%dT%H%M%S')-$(shell git rev-parse --short HEAD)

.PHONY: clean librarian-clean librarian-clean-install bootstrap test

include $(SELF_DIR)/main.mk

#test: ## Run tests
#	bundle exec .... validate yaml?


$(SELF_DIR)/cookbooks Cheffile.lock: ## no-help
	bundle exec librarian-chef install

librarian-clean: ## Cleans up all cookbooks & librarian cache files
	bundle exec librarian-chef clean
	rm -rf tmp/librarian/ 
	rm -rf cookbooks/

librarian-install: $(SELF_DIR)/cookbooks Cheffile.lock ## Runs librarian-chef install, if needed

librarian-clean-install: librarian-clean librarian-install ## Runs librarian-clean then install

bootstrap: ## Run bootstrap & soloist on this node
	./bootstrap-scripts/bootstrap.sh

clean:: ## Remove temporary/cache files.
	rm -rf tmp/librarian/ 
	rmdir tmp/ || true
	sudo rm -rf nodes/
	rm -f cookies<commit_msg>Add `test` Makefile target for validating soloistrc files<commit_after>SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))

REPO_NAME := sprout-wrap
REPO := $(REPO_NAME)
#REV := $(shell TZ=UTC date +'%Y%m%dT%H%M%S')-$(shell git rev-parse --short HEAD)

.PHONY: clean librarian-clean librarian-clean-install bootstrap test

include $(SELF_DIR)/main.mk

test: soloistrc* ## Run test to validate soloistrc files
	for f in $? ; do bundle exec ruby -r yaml -e 'YAML.load_file ARGV[0];printf(".")' "$$f" ; done


$(SELF_DIR)/cookbooks Cheffile.lock: ## no-help
	bundle exec librarian-chef install

librarian-clean: ## Cleans up all cookbooks & librarian cache files
	bundle exec librarian-chef clean
	rm -rf tmp/librarian/ 
	rm -rf cookbooks/

librarian-install: $(SELF_DIR)/cookbooks Cheffile.lock ## Runs librarian-chef install, if needed

librarian-clean-install: librarian-clean librarian-install ## Runs librarian-clean then install

bootstrap: ## Run bootstrap & soloist on this node
	./bootstrap-scripts/bootstrap.sh

clean:: ## Remove temporary/cache files.
	rm -rf tmp/librarian/ 
	rmdir tmp/ || true
	sudo rm -rf nodes/
	rm -f cookies
{'fraction_non_alphanumeric': 0.12941176470588237, 'fraction_numerical': 0.00047058823529411766, 'mean_word_length': 4.437340153452685, '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': '7257391', 'n_tokens_mistral': 771, 'n_tokens_neox': 730, 'n_words': 215}