<commit_before>#!/bin/sh

tmpfile=".check-parsing.$$.tmp"

ec=0

for ref in ../tests/*.asn1.-*; do
	src=`echo "$ref" | sed -e 's/\.-[-a-zA-Z0-9=]*$//'`
	flags=`echo "$ref" | sed -e 's/.*\.-//'`
	echo "Checking $src against $ref"
	./asn1c "-$flags" "$src" > "$tmpfile" || ec=$?
	if [ $? = 0 ]; then
		diff -u "$ref" "$tmpfile" || ec=$?
	fi
	rm -f "$tmpfile"
done

exit $ec<commit_msg>treat embedded zeroes well<commit_after>#!/bin/sh

tmpfile=".check-parsing.$$.tmp"

ec=0

for ref in ../tests/*.asn1.-*; do
	src=`echo "$ref" | sed -e 's/\.-[-a-zA-Z0-9=]*$//'`
	flags=`echo "$ref" | sed -e 's/.*\.-//'`
	echo "Checking $src against $ref"
	./asn1c "-$flags" "$src" > "$tmpfile" || ec=$?
	if [ $? = 0 ]; then
		diff -a -u "$ref" "$tmpfile" || ec=$?
	fi
	rm -f "$tmpfile"
done

exit $ec
{'fraction_non_alphanumeric': 0.29539641943734013, 'fraction_numerical': 0.015345268542199489, 'mean_word_length': 2.764423076923077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1642245', 'n_tokens_mistral': 380, 'n_tokens_neox': 362, 'n_words': 89}