<commit_before>#!/bin/bash

LOCAL_REPO=$(readlink -f $1)  # Path to the local repo: gogo/src/github.com/foo
REMOTE_REPO=$(echo "$LOCAL_REPO" | sed -e 's,.*/src/,,')

: ${CI_TOOLS=$(readlink -f $(dirname $0))}
CLOUD_CITY=$(readlink -f $CI_TOOLS/../cloud-city)

while [[ "${1-}" != "" ]]; do
    case $1 in
        --cloud-city)
            shift
            CLOUD_CITY=$(readlink -f $1)
            ;;
    esac
    shift
done

cd $LOCAL_REPO
git co master
OLD_HASH=$(git log --first-parent -1 --pretty=format:%h)
source $CLOUD_CITY/juju-bot.txt
git pull https://$github_user:$github_password@$REMOTE_REPO.git master
NEW_HASH=$(git log --first-parent -1 --pretty=format:%h)
if [[ $OLD_HASH == $NEW_HASH ]]; then
    echo "Nothing to test."
    exit 1
else
    echo "A new revision can be tested."
    exit 0
fi<commit_msg>Update the eco project deps after pulling a  new revision.<commit_after>#!/bin/bash
set -eu

LOCAL_REPO=$(readlink -f $1)  # Path to the local repo: gogo/src/github.com/foo
REMOTE_REPO=$(echo "$LOCAL_REPO" | sed -e 's,.*/src/,,')

: ${CI_TOOLS=$(readlink -f $(dirname $0))}
CLOUD_CITY=$(readlink -f $CI_TOOLS/../cloud-city)

while [[ "${1-}" != "" ]]; do
    case $1 in
        --cloud-city)
            shift
            CLOUD_CITY=$(readlink -f $1)
            ;;
    esac
    shift
done

cd $LOCAL_REPO
git co master
OLD_HASH=$(git log --first-parent -1 --pretty=format:%h)
source $CLOUD_CITY/juju-bot.txt
git pull https://$github_user:$github_password@$REMOTE_REPO.git master
NEW_HASH=$(git log --first-parent -1 --pretty=format:%h)
if [[ $OLD_HASH == $NEW_HASH ]]; then
    echo "Nothing to test."
    exit 1
else
    echo "A new revision can be tested."
    set +e
    echo "Updating all go deps."
    go get ./...
    exit 0
fi
{'fraction_non_alphanumeric': 0.17046750285062715, 'fraction_numerical': 0.010262257696693273, 'mean_word_length': 2.823529411764706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2980386', 'n_tokens_mistral': 687, 'n_tokens_neox': 661, 'n_words': 175}