<commit_before>#!/bin/bash
# dyno number avail in $DYNO as per http://stackoverflow.com/questions/16372425/can-you-programmatically-access-current-heroku-dyno-id-name/16381078#16381078

for ((i=1; i<=$CELERY_MULTI_WORKERS; i++))
do
  COMMAND="celery worker -n core-$DYNO:${i} --loglevel=info --config=celeryconfig --events --concurrency=$CELERY_CONCURRENCY"
  echo $COMMAND
  $COMMAND&
done
trap "kill 0" SIGINT SIGTERM EXIT
wait<commit_msg>get pool type from env var<commit_after>#!/bin/bash
# dyno number avail in $DYNO as per http://stackoverflow.com/questions/16372425/can-you-programmatically-access-current-heroku-dyno-id-name/16381078#16381078

for ((i=1; i<=$CELERY_MULTI_WORKERS; i++))
do
  COMMAND="celery worker -n core-$DYNO:${i} --loglevel=info --config=celeryconfig --events --concurrency=$CELERY_CONCURRENCY --pool=$CELERY_POOL" 
  echo $COMMAND
  $COMMAND&
done
trap "kill 0" SIGINT SIGTERM EXIT
wait
{'fraction_non_alphanumeric': 0.1462882096069869, 'fraction_numerical': 0.056768558951965066, 'mean_word_length': 5.368055555555555, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2591067', 'n_tokens_mistral': 394, 'n_tokens_neox': 354, 'n_words': 71}