<commit_before>set -e
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$GITHUB_TOKEN" != "" ]; then
    echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
    git config --global user.name "jews-bot"
    git config --global user.email "<EMAIL>"
    git config --bool core.bare true

    npm run production

    RELEASE_DIR="$TRAVIS_BUILD_DIR"/../jews-release
    VERSION="v$(date +%Y-%m-%d)-r$TRAVIS_BUILD_NUMBER"
    TAG_MESSAGE="release $VERSION"
    echo "git clone release"
    git clone https://github.com/disjukr/jews.git $RELEASE_DIR
    echo "pushd to RELEASE_DIR"
    pushd $RELEASE_DIR
    echo "git checkout release"
    git checkout release
    echo "git merge master"
    git merge --no-edit master
    echo "mkdir dist if not exists"
    [ -d dist ] || mkdir dist
    echo "cp jews.user.js"
    cp $TRAVIS_BUILD_DIR/dist/jews.user.js dist/jews.user.js
    echo "git add -f dist/jews.user.js"
    git add -f dist/jews.user.js
    echo "check git status"
    git status
    if git status | grep 'no changes added to commit'; then
        exit
    fi
    echo "git commit"
    git commit -m "release new version"
    echo "git tag"
    git tag -a -m $TAG_MESSAGE $VERSION
    echo "git push origin release"
    git push origin release
    echo "git push origin TAG"
    git push origin $TAG
    echo "popd"
    popd
fi
<commit_msg>disable git tag :(<commit_after>set -e
if [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$GITHUB_TOKEN" != "" ]; then
    echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
    git config --global user.name "jews-bot"
    git config --global user.email "<EMAIL>"
    git config --bool core.bare true

    npm run production

    RELEASE_DIR="$TRAVIS_BUILD_DIR"/../jews-release
    VERSION="$(date +%Y-%m-%d)-r$TRAVIS_BUILD_NUMBER"
    TAG_MESSAGE="release $VERSION"
    echo "git clone release"
    git clone https://github.com/disjukr/jews.git $RELEASE_DIR
    echo "pushd to RELEASE_DIR"
    pushd $RELEASE_DIR
    echo "git checkout release"
    git checkout release
    echo "git merge master"
    git merge --no-edit master
    echo "mkdir dist if not exists"
    [ -d dist ] || mkdir dist
    echo "cp jews.user.js"
    cp $TRAVIS_BUILD_DIR/dist/jews.user.js dist/jews.user.js
    echo "git add -f dist/jews.user.js"
    git add -f dist/jews.user.js
    echo "check git status"
    git status
    if git status | grep 'no changes added to commit'; then
        exit
    fi
    echo "git commit"
    git commit -m "release new version"
    # echo "git tag"
    # git tag -a -m $TAG_MESSAGE $VERSION
    echo "git push origin release"
    git push origin release
    # echo "git push origin --tags"
    # git push origin $TAG
    echo "popd"
    popd
fi

{'fraction_non_alphanumeric': 0.11454998221273568, 'fraction_numerical': 0.0, 'mean_word_length': 2.7, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1149261', 'n_tokens_mistral': 992, 'n_tokens_neox': 962, 'n_words': 307}