<commit_before>#!/bin/sh

function fixFormattingOnSrcFiles ()
{
    echo -ne "Fixing SRC files... \033[36mcleaning\033[0m"\\r
    bin/php-cs-fixer fix src --quiet
    if [ $? -eq 0 ]; then
        echo -e "Fixing SRC files... \033[32mclean   \033[0m"
        return 0
    else
        echo -e "Fixing SRC files... \033[33mfixed   \033[0m"
        return 1
    fi
}

FORMATTING_TOOLS+=('fixFormattingOnSrcFiles')

if [ -n "$ENABLE_ALIAS" ] && [ "$ENABLE_ALIAS" = true ]; then
    alias ccache="rm -rf app/cache/*"
    alias clogs="rm -rf app/logs/*"
    alias call="ccache && clogs"
    alias ac="app/console"
fi<commit_msg>Enable composer quick start<commit_after>#!/bin/sh

function fixFormattingOnSrcFiles ()
{
    echo -ne "Fixing SRC files... \033[36mcleaning\033[0m"\\r
    bin/php-cs-fixer fix src --quiet
    if [ $? -eq 0 ]; then
        echo -e "Fixing SRC files... \033[32mclean   \033[0m"
        return 0
    else
        echo -e "Fixing SRC files... \033[33mfixed   \033[0m"
        return 1
    fi
}

FORMATTING_TOOLS+=('fixFormattingOnSrcFiles')

if [ -n "$ENABLE_ALIAS" ] && [ "$ENABLE_ALIAS" = true ]; then
    alias ccache="rm -rf app/cache/*"
    alias clogs="rm -rf app/logs/*"
    alias call="ccache && clogs"
    alias ac="app/console"

    function composer ()
    {
        if [ ! -f "composer.phar" ]; then
            curl -sS https://getcomposer.org/installer | php > /dev/null 2>&1
            if [ ! -f "composer.phar" ]; then
                echo -e "\033[31mUnable to download a copy of composer.\033[0m"
                return 1;
            fi
        fi

        php composer.phar self-update > /dev/null 2>&1

        php composer.phar "$@"

        return $?
    }
fi
{'fraction_non_alphanumeric': 0.1473869641808573, 'fraction_numerical': 0.04345273047563124, 'mean_word_length': 2.037433155080214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5747822', 'n_tokens_mistral': 671, 'n_tokens_neox': 610, 'n_words': 155}