<commit_before>#!/bin/bash
eval $(/usr/local/bin/docker-machine env default --shell=bash)

VERSION=`cat VERSION`

_clean() {
  docker rmi crier_worker
}

_build() {
  docker-compose build
}

_up() {
  docker-compose up
}

_tag() {
  docker tag -f crier_worker publicradioexchange/crier_worker:$VERSION
  docker tag -f crier_worker publicradioexchange/crier_worker:latest
}

_push() {
  docker push publicradioexchange/crier_worker:$VERSION
  docker push publicradioexchange/crier_worker:latest
}

if [ "$1" = "clean" ]; then
  _clean
elif [ "$1" = "up" ]; then
  _up
elif [ "$1" = "tag" ]; then
  _tag<commit_msg>Use correct image name for clean and tag<commit_after>#!/bin/bash
eval $(/usr/local/bin/docker-machine env default --shell=bash)

VERSION=`cat VERSION`

_clean() {
  docker rmi crierprxorg_worker
}

_build() {
  docker-compose build
}

_up() {
  docker-compose up
}

_tag() {
  docker tag -f crierprxorg_worker publicradioexchange/crier_worker:$VERSION
  docker tag -f crierprxorg_worker publicradioexchange/crier_worker:latest
}

_push() {
  docker push publicradioexchange/crier_worker:$VERSION
  docker push publicradioexchange/crier_worker:latest
}

if [ "$1" = "clean" ]; then
  _clean
elif [ "$1" = "up" ]; then
  _up
elif [ "$1" = "tag" ]; then
  _tag
{'fraction_non_alphanumeric': 0.12903225806451613, 'fraction_numerical': 0.004720692368214005, 'mean_word_length': 4.435897435897436, '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': '4644129', 'n_tokens_mistral': 495, 'n_tokens_neox': 460, 'n_words': 108}