<commit_before>#!/bin/bash

ANUMCLIENT=( 100 1000 10000)
AQOS=(mqtt_at_most_once mqtt_at_least_once mqtt_extactly_once)
ARETAIN=(true false)

for NUMCLIENT in ${ANUMCLIENT[*]}
do
for QOS in ${AQOS[*]}
do
for RETAIN in ${ARETAIN[*]}
do
        SUFFIX=$NUMCLIENT.$QOS.$RETAIN
	echo "generating testplan.$SUFFIX.jmx"
	sed  's/__NUMCLIENT__/'$NUMCLIENT'/g' TestPlan.tmpl.jmx | sed 's/__QOS__/'$QOS'/g'  | sed 's/__RETAIN__/'$RETAIN'/g' > testplan.$SUFFIX.jmx
done
done
done<commit_msg>modify script generating<commit_after>#!/bin/bash

ANUMCLIENT=( 100 1000 10000)
AQOS=(0 1 3)
ARETAIN=(true false)
qos[0]=mqtt_at_most_once
qos[1]=mqtt_at_least_once
qos[3]=mqtt_extactly_once
if [ ! -d "TestPlans" ]; then
  mkdir TestPlans
fi
for NUMCLIENT in ${ANUMCLIENT[*]}
do
for QOS in ${AQOS[*]}
do
for RETAIN in ${ARETAIN[*]}
do
        SUFFIX=$NUMCLIENT.$QOS.$RETAIN
	echo "generating testplan.$SUFFIX.jmx"
	sed  's/__NUMCLIENT__/'$NUMCLIENT'/g' TestPlan.tmpl.jmx | sed 's/__QOS__/'${qos[$QOS]}'/g'  | sed 's/__RETAIN__/'$RETAIN'/g' >TestPlans/testplan.$SUFFIX.jmx
done
done
done
{'fraction_non_alphanumeric': 0.16494845360824742, 'fraction_numerical': 0.028116213683223992, 'mean_word_length': 5.357142857142857, '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': '940265', 'n_tokens_mistral': 518, 'n_tokens_neox': 471, 'n_words': 91}