<commit_before>#!/bin/sh
set -e
file="`mktemp`"
(
  ./topodistrib --synthetic "2 2 2" 2
  echo
  ./topodistrib --synthetic "2 2 2" 4
  echo
  ./topodistrib --synthetic "2 2 2" 8
  echo
  ./topodistrib --synthetic "2 2 2" 13
  echo
  ./topodistrib --synthetic "2 2 2" 16
  echo
  ./topodistrib --synthetic "3 3 3" 4
) > "$file"
diff -u $srcdir/test-topodistrib.output "$file"
rm -f "$file"<commit_msg>fix for systems without mktemp<commit_after>#!/bin/sh
file="`mktemp`"
if ! [ -d "$file" ]
then
	file=/tmp/topodistrib-$$
	old_umask=`umask`
	umask 0077
	touch "$file"
	umask $old_umask
fi
set -e
(
  ./topodistrib --synthetic "2 2 2" 2
  echo
  ./topodistrib --synthetic "2 2 2" 4
  echo
  ./topodistrib --synthetic "2 2 2" 8
  echo
  ./topodistrib --synthetic "2 2 2" 13
  echo
  ./topodistrib --synthetic "2 2 2" 16
  echo
  ./topodistrib --synthetic "3 3 3" 4
) > "$file"
diff -u $srcdir/test-topodistrib.output "$file"
rm -f "$file"
{'fraction_non_alphanumeric': 0.16470588235294117, 'fraction_numerical': 0.059893048128342244, 'mean_word_length': 2.774193548387097, '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': '2942221', 'n_tokens_mistral': 465, 'n_tokens_neox': 404, 'n_words': 122}