<commit_before>#!/usr/bin/env bash

# Auto generate single AllTests file for CuTest.
# Searches through all *.c files in the current directory.
# Prints to stdout.
# Author: <NAME>
# Date: 01/08/2003

if test $# -eq 0 ; then FILES=test/*.c ; else FILES=$* ; fi

echo '
/* This is auto-generated code. Edit at your own peril. */

#include <stdio.h>

#include "../lib/CuTest.h"

'
cat $FILES | grep '^CuSuite*' | 
    sed -e 's/$/;/'
        
echo \
'

int RunAllTests(void) {
    CuString *output = CuStringNew();
    CuSuite *suite = CuSuiteNew();

	'
cat $FILES | grep '^CuSuite*' | 
    sed -e 's/^CuSuite\* //' \
        -e 's/(.*$//' \
        -e 's/^/    CuSuiteAddSuite(suite, /' \
        -e 's/$/());/'

echo \
'
	
    CuSuiteRun(suite);
    CuSuiteSummary(suite, output);
    CuSuiteDetails(suite, output);
    printf("%s\n", output->buffer);
	CuStringDelete(output);
    CuSuiteDelete(suite);
    //return suite->failCount;
}

int main(void) {
    return RunAllTests();
}
<commit_msg>build fix<commit_after>#!/usr/bin/env bash

# Auto generate single AllTests file for CuTest.
# Searches through all *.c files in the current directory.
# Prints to stdout.
# Author: <NAME>
# Date: 01/08/2003

if test $# -eq 0 ; then FILES=test/*.c ; else FILES=$* ; fi

echo '
/* This is auto-generated code. Edit at your own peril. */

#include <stdio.h>

#include "../lib/CuTest.h"

'
cat $FILES | grep '^CuSuite*' | 
    sed -e 's/$/;/'
        
echo \
'

int RunAllTests(void) {
    CuString *output = CuStringNew();
    CuSuite *suite = CuSuiteNew();
	'
cat $FILES | grep '^CuSuite*' | 
    sed -e 's/^CuSuite\* //' \
        -e 's/(.*$//' \
        -e 's/^/    CuSuiteAddSuite(suite, /' \
        -e 's/$/());/'
echo \
'
    CuSuiteRun(suite);
    CuSuiteSummary(suite, output);
    CuSuiteDetails(suite, output);
    printf("%s\n", output->buffer);
	CuStringDelete(output);
    CuSuiteDelete(suite);
    //return suite->failCount;
}

int main(void) {
    return RunAllTests();
}

{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.00909090909090909, 'mean_word_length': 2.5758122743682312, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '6089602', 'n_tokens_mistral': 782, 'n_tokens_neox': 726, 'n_words': 189}