<commit_before>NUM_ARTICLES=100

for article in `ls -1 /opt/nlp_shared/data/news_articles/webhose_english_dataset/ | shuf`; do
	cp "/opt/nlp_shared/data/news_articles/webhose_english_dataset/$article" .;
	((i++));
	if [[ "$i" -gt "${NUM_ARTICLES}" ]]; then
		break;
	fi
done<commit_msg>Fixed bugs in corpus builder script<commit_after>NUM_ARTICLES=16275
dataset_dir_name="WebHoseDataset-${NUM_ARTICLES}-Articles"
rm -rf "$dataset_dir_name" >> /dev/null 2>&1
mkdir $dataset_dir_name
i=1
for article in `ls -1 /opt/nlp_shared/data/news_articles/webhose_english_dataset/ | shuf`; do
	cp "/opt/nlp_shared/data/news_articles/webhose_english_dataset/$article" "${dataset_dir_name}/${article}";
	((i++));
	if [[ "$i" -gt "${NUM_ARTICLES}" ]]; then
		break;
	fi
done
{'fraction_non_alphanumeric': 0.16358839050131926, 'fraction_numerical': 0.017150395778364115, 'mean_word_length': 5.9, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '2758451', 'n_tokens_mistral': 316, 'n_tokens_neox': 302, 'n_words': 54}