<commit_before>#!/bin/bash

while true; do
    bash ./launch_local_redis.sh
    echo 'Preparing Redis database'
    python ./init_redis.py
    echo 'Done.'

    date
    echo 'Exporting ranks to CSV....'
    for i in {1..10}; do
        python ./consumer.py &
    done

    python ./consumer.py
    echo 'Export finished.'
    date
    sleep 10

    redis-cli -s ./redis_export.sock shutdown

    echo 'Building aggregations...'
    python ./generate_aggs.py
    echo 'Done.'
    date

    sleep 10000
done<commit_msg>more informative logging for ASN info export<commit_after>#!/bin/bash

while true; do
    echo ----- New Run -----
    date
    bash ./launch_local_redis.sh
    echo -n 'Preparing Redis database... '
    python ./init_redis.py
    echo 'done.'

    date
    echo -n 'Exporting ranks to CSV... '
    for i in {1..10}; do
        python ./consumer.py &
    done
    echo 'done.'
    date

    python ./consumer.py
    sleep 10

    redis-cli -s ./redis_export.sock shutdown

    echo -n 'Building aggregations... '
    python ./generate_aggs.py
    echo 'done.'
    date

    echo ----- End of Run. -----
    sleep 10000
done
{'fraction_non_alphanumeric': 0.12094653812445223, 'fraction_numerical': 0.017528483786152498, 'mean_word_length': 1.8267326732673268, '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': '3291496', 'n_tokens_mistral': 407, 'n_tokens_neox': 359, 'n_words': 117}