<commit_before>index:
	@TLDRHOME=`pwd` ./scripts/build_index.rb
	@echo "Index rebuilt."

setup:
	@cp ./scripts/pre-commit .git/hooks
	@chmod +x .git/hooks/pre-commit
	@echo "Git pre-commit hook installed."
	
	@gem install mdl --install-dir .gem --no-rdoc --no-ri
	@echo "Installed required Ruby gems under .gem"
	
lint: 
	@GEM_PATH=.gem find pages -exec .gem/bin/mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
	
lint-changed:
	@./scripts/lint-changed.sh
	<commit_msg>Splits up Makefile. Adds all rule and phony tasks<commit_after>all: setup index

index:
	@TLDRHOME=`pwd` ./scripts/build_index.rb
	@echo "Index rebuilt."

setup: hooks deps

hooks:
	@cp ./scripts/pre-commit .git/hooks
	@chmod +x .git/hooks/pre-commit
	@echo "Git pre-commit hook installed."

deps:
	@bundle
	@echo "OK"
	
lint:
	@GEM_PATH=.gem find pages -exec .gem/bin/mdl {} --style ./scripts/markdown-style.rb 1>&2 \;
	
lint-changed:
	@./scripts/lint-changed.sh

.PHONY: index setup hooks deps lint lint-changed
{'fraction_non_alphanumeric': 0.1565040650406504, 'fraction_numerical': 0.0040650406504065045, 'mean_word_length': 3.4170403587443947, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4903273', 'n_tokens_mistral': 394, 'n_tokens_neox': 377, 'n_words': 97}