<commit_before>#!/bin/bash
set -e

IMAGE=ibuildthecloud/lets-chat:${BUILD_ID:-latest}

docker build -t $IMAGE -f docker/Dockerfile .

if [[ "$DOCKER_HUB_USER" && -n "$DOCKER_HUB_PASS" && -n "$DOCKER_HUB_EMAIL" ]]; then
    docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_PASS" -e "$DOCKER_HUB_EMAIL"

    echo Pushing $IMAGE
    docker push $IMAGE
fi

if [[ -n "$RANCHER_SECRET_KEY" ]]; then
    sed 's!sdelements/lets-chat:latest!'$IMAGE'!' > docker-compose.yml
    rancher-compose -p lets-chat-${BUILD_ID} up
fi<commit_msg>Switch to build number<commit_after>#!/bin/bash
set -e

IMAGE=ibuildthecloud/lets-chat:${BUILD_NUMBER:-latest}

docker build -t $IMAGE -f docker/Dockerfile .

if [[ "$DOCKER_HUB_USER" && -n "$DOCKER_HUB_PASS" && -n "$DOCKER_HUB_EMAIL" ]]; then
    docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_PASS" -e "$DOCKER_HUB_EMAIL"

    echo Pushing $IMAGE
    docker push $IMAGE
fi

if [[ -n "$RANCHER_SECRET_KEY" ]]; then
    sed 's!sdelements/lets-chat:latest!'$IMAGE'!' > docker-compose.yml
    rancher-compose -p lets-chat-${BUILD_NUMBER} up
fi
{'fraction_non_alphanumeric': 0.1602982292637465, 'fraction_numerical': 0.0, 'mean_word_length': 4.264705882352941, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4676254', 'n_tokens_mistral': 466, 'n_tokens_neox': 449, 'n_words': 90}