<commit_before># Script to run benchmarks on some pre-chosen, structured problems.  Results
# are placed in the $RESULTS_DIR and simply contain the output of the SAT
# solver as well as timing information.

DSAT=./dist/build/funsat/funsat
RESULTS_DIR=bench-results/$(gdate +%F.%H%M)

MAX_PROB_SECONDS="300"
echo "Max time per problem:" $MAX_PROB_SECONDS "seconds"

# Use expect to terminate process if it times out.
TIMED="expect -f /Volumes/work/scripts/misc/timed-run $MAX_PROB_SECONDS"

mkdir -p $RESULTS_DIR

echo "Timeout:" $MAX_PROB_SECONDS "seconds" >> $RESULTS_DIR/info

# record feature set


i=$((0))
for options in ""                                    \
               "--no-clause-learning"                \
               "--no-restarts"                       \
               "--no-watched-literals"               \
               "--no-vsids"
do
    i=$(($i+1))
    OUTPUT="$RESULTS_DIR/result.$i"

    CMD="$DSAT $options"
    echo "-->" $CMD

#     find ./bench -iname "*.cnf" -exec $TIMED $CMD 2>&1 > $OUTPUT \;<commit_msg>comment out benchmark options require a description of benchmark run<commit_after># Script to run benchmarks on some pre-chosen, structured problems.  Results
# are placed in the $RESULTS_DIR and simply contain the output of the SAT
# solver as well as timing information.

DSAT=./dist/build/funsat/funsat
RESULTS_DIR=bench-results/$(gdate +%F.%H%M)

MAX_PROB_SECONDS="300"
echo "Max time per problem:" $MAX_PROB_SECONDS "seconds"

# Use expect to terminate process if it times out.
TIMED="expect -f /Volumes/work/scripts/misc/timed-run $MAX_PROB_SECONDS"

mkdir -p $RESULTS_DIR

echo "Timeout:" $MAX_PROB_SECONDS "seconds" >> $RESULTS_DIR/info

read -p "Purpose: " -e MOREINFO
echo $MOREINFO >> $RESULTS_DIR/info

# record feature set


i=$((0))
for options in ""
#               "--no-clause-learning"                \
#               "--no-restarts"                       \
#               "--no-watched-literals"               \
#               "--no-vsids"
do
    i=$(($i+1))
    OUTPUT="$RESULTS_DIR/result.$i"

    CMD="$DSAT $options"
    echo "-->" $CMD

#     find ./bench -iname "*.cnf" -exec $TIMED $CMD 2>&1 > $OUTPUT \;
{'fraction_non_alphanumeric': 0.1347126436781609, 'fraction_numerical': 0.006436781609195402, 'mean_word_length': 2.384136858475894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3879591', 'n_tokens_mistral': 748, 'n_tokens_neox': 696, 'n_words': 195}