<commit_before>#!/bin/bash
apps="astrobin rawdata nested_comments astrobin_apps_users astrobin_apps_images astrobin_apps_platesolving astrobin_apps_donations astrobin_apps_premium astrobin_apps_groups"
langs="ar be ca cs de el en es fa fi fr hu it ja nl pl pt-BR pt ro ru sk sq sr tr zh-CN zh-TW"
manage="../manage.py"

echo "Processing apps..."
for app in $apps; do
    echo " * $app"
    for lang in $langs; do
        echo -n " $lang"
        (cd $app; python $manage compilemessages -l $lang)
    done
    echo
done

<commit_msg>Improve formatting of output of compilemessages scripts<commit_after>#!/bin/bash
apps="astrobin rawdata nested_comments astrobin_apps_users astrobin_apps_images astrobin_apps_platesolving astrobin_apps_donations astrobin_apps_premium astrobin_apps_groups"
langs="ar be ca cs de el en es fa fi fr hu it ja nl pl pt-BR pt ro ru sk sq sr tr zh-CN zh-TW"
manage="../manage.py"

echo "Processing apps..."
for app in $apps; do
    echo " * $app"
    for lang in $langs; do
        echo -n " $lang: "
        (cd $app; python $manage compilemessages -l $lang)
    done
    echo
done


{'fraction_non_alphanumeric': 0.08558558558558559, 'fraction_numerical': 0.0, 'mean_word_length': 3.629166666666667, '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': '4120818', 'n_tokens_mistral': 400, 'n_tokens_neox': 378, 'n_words': 136}