<commit_before>#!/bin/sh

[ $1 -eq 0 ] || exit 0

dep sft

niters=100
sizes=$(cat <<EOF
	123
	24789
	770924789
	524789
	22524789
	57824789
	52478900
	2111524789
	3111520000
EOF
)

for i in $(seq $niters); do
	for j in $(seq $sizes); do
		# $RANDOM gives you a 'random' value between [0,32767]
		# so we scale that out between [1k,128k]
		bs=$((127*1024 * RANDOM/32767 + 1024))
		fn=t.$i.$j
		sft -w -s $size -b $bs $LOCAL_TMP/$fn
		dd if=$LOCAL_TMP/$fn of=$fn bs=$bs
		diff -q $LOCAL_TMP/$fn $fn
	done
done<commit_msg>fix crap<commit_after>#!/bin/sh

[ $1 -eq 0 ] || exit 0

dep sft

niters=100
sizes='
	123
	24789
	770924789
	524789
	22524789
	57824789
	52478900
	2111524789
	3111520000
'

for i in $(seq $niters); do
	for j in $sizes; do
		# $RANDOM gives you a 'random' value between [0,32767]
		# so we scale that out between [1k,128k]
		bs=$((127*1024 * RANDOM/32767 + 1024))
		fn=t.$i.$j
		sft -w -s $size -b $bs $LOCAL_TMP/$fn
		dd if=$LOCAL_TMP/$fn of=$fn bs=$bs
		diff -q $LOCAL_TMP/$fn $fn
	done
done
{'fraction_non_alphanumeric': 0.14653465346534653, 'fraction_numerical': 0.19603960396039605, 'mean_word_length': 3.302127659574468, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1677041', 'n_tokens_mistral': 601, 'n_tokens_neox': 468, 'n_words': 135}