<commit_before>#!/usr/bin/env bash
pipe=$LARAVEL_LOG_STREAM

while true
do
    if read line <$pipe; then
        if [[ "$line" == 'quit' ]]; then
            break
        fi
        echo $line | sed 's#INFO#\x1b[32m&\x1b[0m#; s#NOTICE#\x1b[1;32m&\x1b[0m#; s#WARNING#\x1b[1;33m&\x1b[0m#; s#ERROR#\x1b[1;31m&\x1b[0m#; s#CRITICAL#\x1b[1;31m&\x1b[0m#; s#ALERT#\x1b[1;31m&\x1b[0m#; s#EMERGENCY#\x1b[1;31m&\x1b[0m#'
    fi
done<commit_msg>Fixed logs buffer<commit_after>#!/usr/bin/env bash
cat $LARAVEL_LOG_STREAM | stdbuf -oL sed 's#INFO#\x1b[32m&\x1b[0m#; s#NOTICE#\x1b[1;32m&\x1b[0m#; s#WARNING#\x1b[1;33m&\x1b[0m#; s#ERROR#\x1b[1;31m&\x1b[0m#; s#CRITICAL#\x1b[1;31m&\x1b[0m#; s#ALERT#\x1b[1;31m&\x1b[0m#; s#EMERGENCY#\x1b[1;31m&\x1b[0m#'
{'fraction_non_alphanumeric': 0.2418478260869565, 'fraction_numerical': 0.11141304347826086, 'mean_word_length': 4.713178294573644, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3063662', 'n_tokens_mistral': 451, 'n_tokens_neox': 431, 'n_words': 44}