<commit_before>#!/bin/bash
onexit() {
  kill -2 $(jobs -p)
  kill $(jobs -p)
  echo "Waiting for children to exit..."
  sleep 1
  kill -9 0
}
trap onexit SIGINT SIGTERM EXIT INT QUIT TERM
cd "$( dirname "${BASH_SOURCE[0]}" )"

(cd core && elasticsearch -f -Des.config=config/developmentservers/elasticsearch.yml -Des.cluster.name="elasticsearch_$(hostname)"  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;31m[elasticsearch] \x1b[0m/" &
(cd core && redis-server config/developmentservers/redis.conf  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;32m[redis] \x1b[0m/" &
(cd core && redis-server config/developmentservers/redis-for-tests.conf  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;33m[redisfortests] \x1b[0m/" &
(cd core && redis-server config/developmentservers/redis-resque.conf  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;34m[resqueredis] \x1b[0m/" &
(cd core && mongod --config config/developmentservers/mongo.conf  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;35m[mongo] \x1b[0m/" &
(cd local_development && bundle exec mailcatcher -fv || kill $$) 2>&1| perl -pe "s/^/\x1b[0;36m[mailcatcher] \x1b[0m/" &
wait
<commit_msg>Bugfix: don't kill process group - that might be your parent!<commit_after>#!/bin/bash
onexit() {
  kill -2 $(jobs -p)
  kill $(jobs -p)
  echo "Waiting for children to exit..."
  sleep 1
  kill -9 -$$ 2>/dev/null
}
trap onexit SIGINT SIGTERM EXIT INT QUIT TERM
cd "$( dirname "${BASH_SOURCE[0]}" )"

(cd core && elasticsearch -f -Des.config=config/developmentservers/elasticsearch.yml -Des.cluster.name="elasticsearch_$(hostname)"  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;31m[elasticsearch] \x1b[0m/" &
(cd core && redis-server config/developmentservers/redis.conf  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;32m[redis] \x1b[0m/" &
(cd core && redis-server config/developmentservers/redis-for-tests.conf  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;33m[redisfortests] \x1b[0m/" &
(cd core && redis-server config/developmentservers/redis-resque.conf  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;34m[resqueredis] \x1b[0m/" &
(cd core && mongod --config config/developmentservers/mongo.conf  || kill $$)  2>&1| perl -pe "s/^/\x1b[0;35m[mongo] \x1b[0m/" &
(cd local_development && bundle exec mailcatcher -fv || kill $$) 2>&1| perl -pe "s/^/\x1b[0;36m[mailcatcher] \x1b[0m/" &
wait

{'fraction_non_alphanumeric': 0.2075637642919965, 'fraction_numerical': 0.04661389621811785, 'mean_word_length': 3.967248908296943, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '1139768', 'n_tokens_mistral': 1001, 'n_tokens_neox': 974, 'n_words': 203}