<commit_before>#!/bin/bash
# Rebuild all collections of stop words

for lang in $(ls ./mots_vides/datas/)
do
  lang=$(echo $lang | cut -f1 -d.)
  ./bin/merge-stop-words $lang mots_vides/datas/$lang.txt
done<commit_msg>A custom path can be passed in parameter<commit_after>#!/bin/bash
# Rebuild all collections of stop words

path=${1-mots_vides/datas/}

for lang in $(ls $path)
do
  lang=$(echo $lang | cut -f1 -d.)
  ./bin/merge-stop-words $lang $path$lang.txt
done
{'fraction_non_alphanumeric': 0.15236051502145923, 'fraction_numerical': 0.006437768240343348, 'mean_word_length': 3.814432989690722, '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': '6474482', 'n_tokens_mistral': 179, 'n_tokens_neox': 171, 'n_words': 51}