<commit_before>#!/usr/bin/env bash
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "develop" ];
then

    echo "The current JDK version is ${TRAVIS_JDK_VERSION}"
    echo "The current Scala version is ${TRAVIS_SCALA_VERSION}"

    echo "Creating credentials file"
    if [ -e "$HOME/.bintray/.credentials" ]; then
        echo "Bintray redentials file already exists"
    else
        touch "$HOME/.bintray/.credentials"
        echo "realm = Bintray API Realm" >> "$HOME/.bintray/.credentials"
        echo "host = api.bintray.com" >> "$HOME/.bintray/.credentials"
        echo "user = $bintray_user" >> "$HOME/.bintray/.credentials"
        echo "password = <PASSWORD>" >> "$HOME/.bintray/.credentials"
    fi

    if [ -e "$HOME/.bintray/.credentials" ]; then
        echo "Bintray credentials file succesfully created"
    else
        echo "Bintray credentials still not found"
    fi


    CURRENT_VERSION = "$(sbt version)"
    echo "Bumping release version with a patch increment from $CURRENT_VERSION"
    sbt version-bump-patch

    NEW_VERSION = "$(sbt version)"
    echo "Creating Git tag for version $NEW_VERSION"

    echo "Pushing tag to GitHub."
    git push --tags "https://${github_token}@${GH_REF}" > /dev/null 2>&1

    echo "Publishing signed artifact"

    if [ "${TRAVIS_SCALA_VERSION}" == "2.11.7" ] && [ "${TRAVIS_JDK_VERSION}" == "oraclejdk8" ];
    then
        "Publishing $NEW_VERSION to bintray"
        sbt bintray:publish
    else
        echo "Only publishing version for Scala 2.11.7 and Oracle JDK 8 to prevent multiple artifacts"
    fi

    git checkout master
    git merge develop

    git push --all  "https://${github_token}@${GH_REF}" master > /dev/null 2>&1


else
    echo "This is either a pull request or the branch is not develop, deployment not necessary"
fi<commit_msg>Updating publish script.<commit_after>#!/usr/bin/env bash
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "develop" ];
then

    echo "The current JDK version is ${TRAVIS_JDK_VERSION}"
    echo "The current Scala version is ${TRAVIS_SCALA_VERSION}"

    echo "Creating credentials file"
    if [ -e "$HOME/.bintray/.credentials" ]; then
        echo "Bintray redentials file already exists"
    else
        mkdir -p "$HOME/.bintray/"
        touch "$HOME/.bintray/.credentials"
        echo "realm = Bintray API Realm" >> "$HOME/.bintray/.credentials"
        echo "host = api.bintray.com" >> "$HOME/.bintray/.credentials"
        echo "user = $bintray_user" >> "$HOME/.bintray/.credentials"
        echo "password = <PASSWORD>" >> "$HOME/.bintray/.credentials"
    fi

    if [ -e "$HOME/.bintray/.credentials" ]; then
        echo "Bintray credentials file succesfully created"
    else
        echo "Bintray credentials still not found"
    fi


    echo "Bumping release version with a patch increment from $(sbt version)"
    sbt version-bump-patch

    SET NEW_VERSION = "$(sbt version)"
    echo "Creating Git tag for version $(sbt version)"

    echo "Pushing tag to GitHub."
    git push --tags "https://${github_token}@${GH_REF}" > /dev/null 2>&1

    echo "Publishing signed artifact"

    if [ "${TRAVIS_SCALA_VERSION}" == "2.11.7" ] && [ "${TRAVIS_JDK_VERSION}" == "oraclejdk8" ];
    then
        "Publishing $(sbt version) to bintray"
        sbt +publish
    else
        echo "Only publishing version for Scala 2.11.7 and Oracle JDK 8 to prevent multiple artifacts"
    fi

    git checkout master
    git merge develop

    git push --all  "https://${github_token}@${GH_REF}" develop:master > /dev/null 2>&1


else
    echo "This is either a pull request or the branch is not develop, deployment not necessary"
fi
{'fraction_non_alphanumeric': 0.12723819858925664, 'fraction_numerical': 0.007596310363537711, 'mean_word_length': 2.934898612593383, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 4, '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': '2097955', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1153, 'n_words': 357}