<commit_before>#!/usr/bin/env bash

for i in $(git diff --name-only HEAD..$TRAVIS_BRANCH | grep 'locations/spiders')
do
    echo "Would process spider ${i}"
done<commit_msg>Run the spider when it has changed<commit_after>#!/usr/bin/env bash

echo $(pwd)
for spider in $(git diff --name-only HEAD..$TRAVIS_BRANCH | grep 'locations/spiders')
do
    output=$(./run_one_spider.sh $spider)
    echo $output
done
{'fraction_non_alphanumeric': 0.14532019704433496, 'fraction_numerical': 0.0, 'mean_word_length': 4.151898734177215, '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': '207234', 'n_tokens_mistral': 158, 'n_tokens_neox': 144, 'n_words': 42}