<commit_before>#! /bin/sh

echo "Converting videos"
cd videos
for f in *;
do
  echo "Encoding $f"
  ffmpeg -i $f -s 20x20 -vf hue=s=0 -an -r 10 encoded_$f
done

echo "Running hasher"
cd ..
python3 main.py videos/encoded_*<commit_msg>For starting python with unbuffered ouput option (for debugging...)<commit_after>#! /bin/sh

echo "Converting videos"
cd videos
for f in *;
do
  echo "Encoding $f"
  ffmpeg -i $f -s 20x20 -vf hue=s=0 -an -r 10 encoded_$f
done

echo "Running hasher"
cd ..
python3 -u main.py videos/encoded_*
{'fraction_non_alphanumeric': 0.12619502868068833, 'fraction_numerical': 0.030592734225621414, 'mean_word_length': 3.5172413793103448, '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': '5232068', 'n_tokens_mistral': 219, 'n_tokens_neox': 203, 'n_words': 74}