<commit_before>#!/bin/sh

startingDir= pwd

if [[ $OSTYPE == darwin* ]]; then
  eval $(docker-machine env default)
else
  echo "Unable to determine a supported operating system for this script.  Currently only supported on Linux and Macs"
  exit 1
fi


cd ../../../

start() {
    docker-compose up -d
}

stop() {
    docker-compose stop
}

restart() {
    docker-compose restart
}

rebuild() {
    stop
    docker-compose up -d --build

}
redeploy() {
    docker-compose exec $1 gradle cleanDeploy --daemon
}

noTest() {
     docker-compose exec $1 gradle cleanDeploy -x test --daemon
}

migrate() {
    docker-compose  exec data gradle flywayClean flywayMigrate --daemon
}<commit_msg>Changing to bash, otherwise would be using dash in Ubuntu which doesn't have linux-gnu. Also supporting Linux. :D<commit_after>#!/bin/bash

startingDir= pwd

case $OSTYPE in
    darwin*)
        echo "Mac detected"
        eval $(docker-machine env default)
        ;;
    linux*)
        echo "Linux detected"
        ;;
    *)
        echo "Unable to determine a supported operating system for this script.  Currently only supported on Linux and Macs"
        exit 1
        ;;
esac

cd ../../../

start() {
    docker-compose up -d
}

stop() {
    docker-compose stop
}

restart() {
    docker-compose restart
}

rebuild() {
    stop
    docker-compose up -d --build

}
redeploy() {
    docker-compose exec $1 gradle cleanDeploy --daemon
}

noTest() {
     docker-compose exec $1 gradle cleanDeploy -x test --daemon
}

migrate() {
    docker-compose  exec data gradle flywayClean flywayMigrate --daemon
}
{'fraction_non_alphanumeric': 0.11048336472065286, 'fraction_numerical': 0.003766478342749529, 'mean_word_length': 2.582022471910112, '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': '5429540', 'n_tokens_mistral': 556, 'n_tokens_neox': 517, 'n_words': 171}