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

if [[ "$MAVEN_DEPLOY" == "true" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
    if [[ "$RESTHEART_VERSION" ]]; then
        mvn clean verify -DskipITs=false -Dkarate.options="$KARATE_OPS"
        echo "###### Branch is '$TRAVIS_BRANCH', Tag is '$TRAVIS_TAG', Version is '$RESTHEART_VERSION'"
        if [[ "$TRAVIS_TAG" && "$RESTHEART_VERSION" != *-SNAPSHOT ]]; then
            echo "###### Building Docker image for RESTHeart $RESTHEART_VERSION"
            echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
            docker build -t "softinstigate/restheart:$RESTHEART_VERSION" .
            if [[ "$RESTHEART_VERSION" != *-SNAPSHOT ]]; then
                docker push "softinstigate/restheart:$RESTHEART_VERSION"
            fi
            echo "###### On master branch. Tagging image softinstigate/restheart:$RESTHEART_VERSION as latest"
            docker tag "softinstigate/restheart:$RESTHEART_VERSION" softinstigate/restheart:latest
            docker push softinstigate/restheart:latest
            #echo "###### Publishing Maven site at http://softinstigate.github.io/restheart/project-info.html"
            #mvn site --settings deploy-settings.xml -P report -Dmaven.test.skip=true
        fi
        echo "###### Deploy to Maven Central"
        mvn deploy -s settings.xml -P release -Dmaven.test.skip=true
    else
        echo "###### ERROR! Variable RESTHEART_VERSION is undefined"
        exit 1
    fi
else
    mvn verify -DskipITs=false
fi<commit_msg>Fix error "gpg: signing failed: Inappropriate ioctl for device"<commit_after>#!/bin/bash
set -e

if [[ "$MAVEN_DEPLOY" == "true" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
    if [[ "$RESTHEART_VERSION" ]]; then
        mvn clean verify -DskipITs=false -Dkarate.options="$KARATE_OPS"
        echo "###### Branch is '$TRAVIS_BRANCH', Tag is '$TRAVIS_TAG', Version is '$RESTHEART_VERSION'"
        if [[ "$TRAVIS_TAG" && "$RESTHEART_VERSION" != *-SNAPSHOT ]]; then
            echo "###### Building Docker image for RESTHeart $RESTHEART_VERSION"
            echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
            docker build -t "softinstigate/restheart:$RESTHEART_VERSION" .
            if [[ "$RESTHEART_VERSION" != *-SNAPSHOT ]]; then
                docker push "softinstigate/restheart:$RESTHEART_VERSION"
            fi
            echo "###### On master branch. Tagging image softinstigate/restheart:$RESTHEART_VERSION as latest"
            docker tag "softinstigate/restheart:$RESTHEART_VERSION" softinstigate/restheart:latest
            docker push softinstigate/restheart:latest
            #echo "###### Publishing Maven site at http://softinstigate.github.io/restheart/project-info.html"
            #mvn site --settings deploy-settings.xml -P report -Dmaven.test.skip=true
        fi
        echo "###### Deploy to Maven Central"
        GPG_TTY=$(tty)
        export GPG_TTY
        mvn deploy -s settings.xml -P release -Dmaven.test.skip=true
    else
        echo "###### ERROR! Variable RESTHEART_VERSION is undefined"
        exit 1
    fi
else
    mvn verify -DskipITs=false
fi
{'fraction_non_alphanumeric': 0.12927756653992395, 'fraction_numerical': 0.0006337135614702154, 'mean_word_length': 2.840632603406326, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3066365', 'n_tokens_mistral': 1039, 'n_tokens_neox': 959, 'n_words': 240}