<commit_before>#!/bin/bash

MAX_PORTS=1000
PORTS_PER_RUN=5
MAX_RUNS=`echo "($MAX_PORTS / $PORTS_PER_RUN) - 1" | bc`

if [ "$1" == "create" ]; then
    neutron net-create provider-test
    neutron subnet-create --name provider-test provider-test 10.10.0.0/16

    for i in `seq 0 $MAX_RUNS`; do
        seq 0 `echo $PORTS_PER_RUN - 1 | bc` | xargs -n 1 -P 5 bash _provider-scale-create.sh $i
    done
elif [ "$2" == "destroy" ]; then
    for i in `seq 0 $MAX_RUNS`; do
        seq 0 `echo $PORTS_PER_RUN - 1 | bc` | xargs -n 1 -P 5 bash _provider-scale-destroy.sh $i
    done

    neutron subnet-delete provider-test
    neutron net-delete provider-test
else
    echo "Usage: provider-scale.sh <create | destroy>"
fi<commit_msg>Fix typo<commit_after>#!/bin/bash

MAX_PORTS=1000
PORTS_PER_RUN=5
MAX_RUNS=`echo "($MAX_PORTS / $PORTS_PER_RUN) - 1" | bc`

if [ "$1" == "create" ]; then
    neutron net-create provider-test
    neutron subnet-create --name provider-test provider-test 10.10.0.0/16

    for i in `seq 0 $MAX_RUNS`; do
        seq 0 `echo $PORTS_PER_RUN - 1 | bc` | xargs -n 1 -P 5 bash _provider-scale-create.sh $i
    done
elif [ "$1" == "destroy" ]; then
    for i in `seq 0 $MAX_RUNS`; do
        seq 0 `echo $PORTS_PER_RUN - 1 | bc` | xargs -n 1 -P 5 bash _provider-scale-destroy.sh $i
    done

    neutron subnet-delete provider-test
    neutron net-delete provider-test
else
    echo "Usage: provider-scale.sh <create | destroy>"
fi
{'fraction_non_alphanumeric': 0.13250517598343686, 'fraction_numerical': 0.035886818495514144, 'mean_word_length': 2.877005347593583, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6161941', 'n_tokens_mistral': 599, 'n_tokens_neox': 548, 'n_words': 164}