<commit_before>#!/bin/bash
set -o pipefail

NAME="splash/web"
IMAGE="gose.fiehnlab.ucdavis.edu:5000/$NAME"

cd ../docker
pwd
docker build -t ${IMAGE} --rm=true . | tee build.log || exit 1
ID=$(tail -1 build.log | awk '{print $3;}')
docker tag -f $ID ${IMAGE}:latest
docker tag -f $ID ${NAME}:latest

echo "push: $1"
if [ "$1" == "push" ]; then
  docker push $IMAGE
else
  echo "pushing disabled!"
fi<commit_msg>switching registries<commit_after>#!/bin/bash
set -o pipefail

NAME="splash/web"
IMAGE="eros.fiehnlab.ucdavis.edu/$NAME"

cd ../docker
pwd
docker build -t ${IMAGE} --rm=true . | tee build.log || exit 1
ID=$(tail -1 build.log | awk '{print $3;}')
docker tag -f $ID ${IMAGE}:latest
docker tag -f $ID ${NAME}:latest

echo "push: $1"
if [ "$1" == "push" ]; then
  docker push $IMAGE
else
  echo "pushing disabled!"
fi
{'fraction_non_alphanumeric': 0.19053398058252427, 'fraction_numerical': 0.01699029126213592, 'mean_word_length': 3.9698795180722892, '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': '5851522', 'n_tokens_mistral': 337, 'n_tokens_neox': 312, 'n_words': 98}