<commit_before>#!/bin/sh
oIFS="$IFS"
IFS='
'
secno=0
testno=0
comment=0
ecode=0
for f in `cat cqlsample`; do
	if echo $f | grep '^#' >/dev/null; then
		comment=1
	else
		if test "$comment" = "1"; then
			secno=`expr $secno + 1`
			testno=0
		fi
		comment=0
		testno=`expr $testno + 1`
		OUT1=cql/$secno.$testno.out
		ERR1=cql/$secno.$testno.err
		OUT2=cql/$secno.$testno.out.tmp
		ERR2=cql/$secno.$testno.err.tmp
		DIFF=cql/$secno.$testno.diff<commit_msg>Make cql test work if srcdir != .<commit_after>#!/bin/sh
srcdir=${srcdir:-.}
oIFS="$IFS"
IFS='
'
secno=0
testno=0
comment=0
ecode=0
test -f ${srcdir}/cqlsample || exit 1
test -d cql || mkdir cql
for f in `cat ${srcdir}/cqlsample`; do
	if echo $f | grep '^#' >/dev/null; then
		comment=1
	else
		if test "$comment" = "1"; then
			secno=`expr $secno + 1`
			testno=0
		fi
		comment=0
		testno=`expr $testno + 1`
		OUT1=${srcdir}/cql/$secno.$testno.out
		ERR1=${srcdir}/cql/$secno.$testno.err
		OUT2=cql/$secno.$testno.out.tmp
		ERR2=cql/$secno.$testno.err.tmp
		DIFF=cql/$secno.$testno.diff
{'fraction_non_alphanumeric': 0.18983700862895495, 'fraction_numerical': 0.027804410354745925, 'mean_word_length': 3.7889908256880735, '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': '712538', 'n_tokens_mistral': 522, 'n_tokens_neox': 489, 'n_words': 96}