<commit_before>#!/bin/bash

# Run tests
echo "\033[0;33mRunning tests\033[0m \n"
php vendor/bin/phpunit -c tests
<commit_msg>Add cloc to build script<commit_after>#!/bin/bash

# Run tests
echo "\033[0;33mRunning tests\033[0m \n"
php vendor/bin/phpunit -c tests

# Newline
echo ""

# Check if we can run cloc
if hash cloc 2>/dev/null; then
    # We can run cloc
    echo "\033[0;33mCounting lines with cloc\033[0m \n"
    cloc --exclude-dir=cache,node_modules,vendor ./
else
    echo "\033[0;33mcloc not installed\033[0m \n"
fi
{'fraction_non_alphanumeric': 0.13498098859315588, 'fraction_numerical': 0.0779467680608365, 'mean_word_length': 3.6228070175438596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2309259', 'n_tokens_mistral': 234, 'n_tokens_neox': 207, 'n_words': 58}