<commit_before>#!/usr/bin/env bash

# Set up the git pre-commit hook.
if [ ! -e .git/hooks/pre-commit ]; then
	echo Symlinking git pre-commit hook
	mkdir .git/hooks
	ln -s ../../"$DEV_LIB_PATH"/git/pre-commit .git/hooks
fi

# Set up the git pre-commit hook for the dev-lib.
if [ ! -e .git/modules/"$DEV_LIB_PATH"/hooks/pre-commit ]; then
	echo Symlinking git pre-commit hook for dev-lib
	mkdir .git/modules/"$DEV_LIB_PATH"/hooks
	ln -s ../../../../"$DEV_LIB_PATH"/git/pre-commit .git/modules/"$DEV_LIB_PATH"/hooks
fi

# Install composer dependencies.
composer install

# Install npm dependencies.
if which yarn; then
	yarn
else
	npm install
fi

# EOF<commit_msg>set-up: use `mkdir -p` when symlinking pre-commit hook for dev-lib<commit_after>#!/usr/bin/env bash

# Set up the git pre-commit hook.
if [ ! -e .git/hooks/pre-commit ]; then
	echo Symlinking git pre-commit hook
	mkdir .git/hooks
	ln -s ../../"$DEV_LIB_PATH"/git/pre-commit .git/hooks
fi

# Set up the git pre-commit hook for the dev-lib.
if [ ! -e .git/modules/"$DEV_LIB_PATH"/hooks/pre-commit ]; then
	echo Symlinking git pre-commit hook for dev-lib
	mkdir -p .git/modules/"$DEV_LIB_PATH"/hooks
	ln -s ../../../../"$DEV_LIB_PATH"/git/pre-commit .git/modules/"$DEV_LIB_PATH"/hooks
fi

# Install composer dependencies.
composer install

# Install npm dependencies.
if which yarn; then
	yarn
else
	npm install
fi

# EOF
{'fraction_non_alphanumeric': 0.1463768115942029, 'fraction_numerical': 0.0, 'mean_word_length': 3.236196319018405, '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': '6761646', 'n_tokens_mistral': 525, 'n_tokens_neox': 503, 'n_words': 147}