<commit_before>#!/bin/sh

# start up an instance of the buildbot "master" application, 
# which will run in the background and coordinate build activities
# on networked build "slave" instances

MASTER_DIRECTORY=~/.buildbot_master

rm -rf $MASTER_DIRECTORY
mkdir -p $MASTER_DIRECTORY
touch $MASTER_DIRECTORY/twistd.log
buildbot create-master $MASTER_DIRECTORY
cp ./master.cfg $MASTER_DIRECTORY
cp -r ./plugins $MASTER_DIRECTORY/
cp ./*.css $MASTER_DIRECTORY/public_html/
cp ./*.html $MASTER_DIRECTORY/public_html/

buildbot start $MASTER_DIRECTORY<commit_msg>Start buildbot master script now checks to see if it is already running; suitable for crontab usage<commit_after>#!/bin/sh

# start up an instance of the buildbot "master" application, 
# which will run in the background and coordinate build activities
# on networked build "slave" instances

MASTER_DIRECTORY=~/.buildbot_master

if ps -e | grep "\.buildbot_master" | grep -v "grep";
then
    echo "Buildbot master already started"
    exit
fi

rm -rf $MASTER_DIRECTORY
mkdir -p $MASTER_DIRECTORY
touch $MASTER_DIRECTORY/twistd.log
buildbot create-master $MASTER_DIRECTORY
cp ./master.cfg $MASTER_DIRECTORY
cp -r ./plugins $MASTER_DIRECTORY/
cp ./*.css $MASTER_DIRECTORY/public_html/
cp ./*.html $MASTER_DIRECTORY/public_html/

buildbot start $MASTER_DIRECTORY
{'fraction_non_alphanumeric': 0.08946171341925702, 'fraction_numerical': 0.0, 'mean_word_length': 5.0, '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': '5094685', 'n_tokens_mistral': 433, 'n_tokens_neox': 426, 'n_words': 137}