<commit_before>#!/bin/bash

VERSION=$1
FLAVOR=$2
TOPOLOGY=$3

[ -z "$TOPOLOGY" ] && FLAVOR=none

case $FLAVOR in
    mysql)
        ;;
    mariadb)
        ;;
    *)
        unset TOPOLOGY
        ;;
esac

case $TOPOLOGY in
    FAN-IN)
        ;;
    ALL-MASTERS)
        ;;
    *)
        unset TOPOLOGY
        ;;
esac


if [ -z "$TOPOLOGY" ]
then
    echo "VERSION, FLAVOR, and TOPOLOGY  required"
    echo "Where VERSION is an indentifier like 5.7.7 or ma10.0.20 "
    echo "      FLAVOR is either mysql or mariadb"
    echo "      TOPOLOGY is either FAN-IN or ALL-MASTERS"
   exit 1 
fi

[ -z "$SANDBOX_BINARY" ] && SANDBOX_BINARY=$HOME/opt/mysql

if [ ! -d $SANDBOX_BINARY ]
then
    echo "$SANDBOX_BINARY does not exist"
    echo "Set the variable SANDBOX_BINARY to indicate where to find the expanded tarballs for MySQL::Sandbox"
    exit 1
fi

if [ ! -d $SANDBOX_BINARY ]
then
    echo "$SANDBOX_BINARY/$VERSION not found"
    exit 1
fi

# ---------------
DASHED_VERSION=$(echo $VERSION| tr '.' '_')

if [ -n "$DRYRUN" -o -n "$DRY_RUN" ]
then
    SKIP_INSTALLATION=1
    DRYRUN=1
fi

sandbox_name=$HOME/sandboxes/multi_msb_$DASHED_VERSION
initialdir=$PWD
if [ -n "$DRYRUN" ]
then
    echo "# make_multiple_sandbox --how_many_nodes=4 $VERSION"
    echo "cd $sandbox_name"
fi
<commit_msg>Fixed check for existing binaries<commit_after>#!/bin/bash

VERSION=$1
FLAVOR=$2
TOPOLOGY=$3

[ -z "$TOPOLOGY" ] && FLAVOR=none

case $FLAVOR in
    mysql)
        ;;
    mariadb)
        ;;
    *)
        unset TOPOLOGY
        ;;
esac

case $TOPOLOGY in
    FAN-IN)
        ;;
    ALL-MASTERS)
        ;;
    *)
        unset TOPOLOGY
        ;;
esac


if [ -z "$TOPOLOGY" ]
then
    echo "VERSION, FLAVOR, and TOPOLOGY  required"
    echo "Where VERSION is an indentifier like 5.7.7 or ma10.0.20 "
    echo "      FLAVOR is either mysql or mariadb"
    echo "      TOPOLOGY is either FAN-IN or ALL-MASTERS"
   exit 1 
fi

[ -z "$SANDBOX_BINARY" ] && SANDBOX_BINARY=$HOME/opt/mysql

if [ ! -d $SANDBOX_BINARY ]
then
    echo "$SANDBOX_BINARY does not exist"
    echo "Set the variable SANDBOX_BINARY to indicate where to find the expanded tarballs for MySQL::Sandbox"
    exit 1
fi

if [ ! -d $SANDBOX_BINARY/$VERSION ]
then
    echo "$SANDBOX_BINARY/$VERSION not found"
    exit 1
fi

# ---------------
DASHED_VERSION=$(echo $VERSION| tr '.' '_')

if [ -n "$DRYRUN" -o -n "$DRY_RUN" ]
then
    SKIP_INSTALLATION=1
    DRYRUN=1
fi

sandbox_name=$HOME/sandboxes/multi_msb_$DASHED_VERSION
initialdir=$PWD
if [ -n "$DRYRUN" ]
then
    echo "# make_multiple_sandbox --how_many_nodes=4 $VERSION"
    echo "cd $sandbox_name"
fi

{'fraction_non_alphanumeric': 0.1267659411989309, 'fraction_numerical': 0.012982054219167621, 'mean_word_length': 2.5026737967914436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2433420', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1018, 'n_words': 260}