<commit_before>#!/bin/sh
#
# Testing script for clean setup on Mac
#
#     The existing VM will be deleted.
#

PROJECT_DIR=$(cd $(dirname $0)/.. && pwd -P)

echo "First, enter your password if required."
sudo id

boot2docker halt
boot2docker delete
boot2docker init
boot2docker up
boot2docker ssh '/bin/sh -c "curl https://raw.githubusercontent.com/mogproject/docker-attach/master/setup_boot2docker.sh | /bin/sh"'

docker run -d -t centos /bin/sleep 10000
cid1=$(docker ps -lq --no-trunc=true)

docker run -d -t centos /bin/sleep 10000
cid2=$(docker ps -lq --no-trunc=true)

docker ps

sudo curl -o /usr/local/bin/docker-attach \
    https://raw.githubusercontent.com/mogproject/docker-attach/master/docker-attach

sudo chmod +x /usr/local/bin/docker-attach

$PROJECT_DIR/test/upload_script.sh<commit_msg>fix to update mac-local script<commit_after>#!/bin/sh
#
# Testing script for clean setup on Mac
#
#     The existing VM will be deleted.
#

PROJECT_DIR=$(cd $(dirname $0)/.. && pwd -P)

echo "First, enter your password if required."
sudo id

boot2docker halt
boot2docker delete
boot2docker init
boot2docker up
boot2docker ssh '/bin/sh -c "curl https://raw.githubusercontent.com/mogproject/docker-attach/master/setup_boot2docker.sh | /bin/sh"'

docker run -d -t centos /bin/sleep 10000
cid1=$(docker ps -lq --no-trunc=true)

docker run -d -t centos /bin/sleep 10000
cid2=$(docker ps -lq --no-trunc=true)

docker ps

sudo rm -f /usr/local/bin/docker-attach
sudo ln -s $PROJECT_DIR/docker-attach /usr/local/bin/docker-attach
$PROJECT_DIR/test/upload_script.sh
{'fraction_non_alphanumeric': 0.13068545803971812, 'fraction_numerical': 0.024343369634849454, 'mean_word_length': 3.866043613707165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '6404669', 'n_tokens_mistral': 619, 'n_tokens_neox': 547, 'n_words': 157}