<commit_before>#!/bin/bash

# need to sniff the file format for netpbm
fmt=$(file $1)

if echo $fmt | grep -i tif > /dev/null; then
	in=tifftopnm
	out=pnmtotiff
elif echo $fmt | grep -i jpe > /dev/null; then
	in=jpegtopnm
	out=pnmtojpeg
else 
	echo unknown file type
	exit 1
fi

cat > mask <<EOF
P2
3 3
32
14 14 14 
14 48 14
14 14 14
EOF
<commit_msg>oops netpbm maxval<commit_after>#!/bin/bash

# need to sniff the file format for netpbm
fmt=$(file $1)

if echo $fmt | grep -i tif > /dev/null; then
	in=tifftopnm
	out=pnmtotiff
elif echo $fmt | grep -i jpe > /dev/null; then
	in=jpegtopnm
	out=pnmtojpeg
else 
	echo unknown file type
	exit 1
fi

cat > mask <<EOF
P2
3 3
48
14 14 14 
14 48 14
14 14 14
EOF

{'fraction_non_alphanumeric': 0.09645390070921986, 'fraction_numerical': 0.07092198581560284, 'mean_word_length': 3.278787878787879, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6025292', 'n_tokens_mistral': 353, 'n_tokens_neox': 298, 'n_words': 114}