<commit_before>#!/usr/bin/env bash

set -e

if [ $# != 4 ]; then
    echo "usage: $(basename "$0") <username> <password> <current tag> <new tag>" >&2
    exit 1
fi

USERNAME=${1:-}
PASSWORD=${2:-}
CURRENT_TAG=${3:-}
NEW_TAG=${4:-}

BASE_IMAGE=xenial-dev-env
CURRENT_IMAGE="$USERNAME/$BASE_IMAGE:$CURRENT_TAG"
NEW_IMAGE="$USERNAME/$BASE_IMAGE:$NEW_TAG"

docker tag "$CURRENT_IMAGE" "$NEW_IMAGE"

docker login --username="$USERNAME" --password="$PASSWORD"
docker push "$NEW_IMAGE"

exit 0<commit_msg>fix docker login warning<commit_after>#!/usr/bin/env bash

set -e

if [ $# != 4 ]; then
    echo "usage: $(basename "$0") <username> <password> <current tag> <new tag>" >&2
    exit 1
fi

USERNAME=${1:-}
PASSWORD=${2:-}
CURRENT_TAG=${3:-}
NEW_TAG=${4:-}

BASE_IMAGE=xenial-dev-env
CURRENT_IMAGE="$USERNAME/$BASE_IMAGE:$CURRENT_TAG"
NEW_IMAGE="$USERNAME/$BASE_IMAGE:$NEW_TAG"

docker tag "$CURRENT_IMAGE" "$NEW_IMAGE"

docker login --username="$USERNAME" --password-stdin < "$PASSWORD"
docker push "$NEW_IMAGE"

exit 0
{'fraction_non_alphanumeric': 0.1960591133004926, 'fraction_numerical': 0.017733990147783252, 'mean_word_length': 5.471337579617835, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 13, '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': '358629', 'n_tokens_mistral': 397, 'n_tokens_neox': 375, 'n_words': 85}