<commit_before>#!/bin/bash

# This script uses Travis `TRAVIS_BRANCH` environment variable to check if the artifacts should be published.
#
# If the branch is `master`, script triggers the publishing process.
# Tests are skipped during the publishing, as the script should be executed on `after_success` step of
# the build lifecycle.

echo " -- PUBLISHING: current branch is $TRAVIS_BRANCH."

if [ $TRAVIS_BRANCH == 'master' ]; then
    echo " ------ Publishing the artifacts to the repository..."
    openssl aes-256-cbc -K $encrypted_2b51ae3bcf84_key -iv $encrypted_2b51ae3bcf84_iv -in credentials.properties.enc -out credentials.properties -d
    ./gradlew publish -x test
    echo " ------ Artifacts published."
else
    echo " ------ Publishing is DISABLED for the current branch."
fi
<commit_msg>Don't publish artifacts on Travis PR build.<commit_after>#!/bin/bash

# This script uses Travis `TRAVIS_BRANCH` environment variable to check if the artifacts should be published.
#
# If the branch is `master`, script triggers the publishing process.
# Tests are skipped during the publishing, as the script should be executed on `after_success` step of
# the build lifecycle.

echo " -- PUBLISHING: current branch is $TRAVIS_BRANCH."

if [ "$TRAVIS_BRANCH" == 'master' ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
    echo " ------ Publishing the artifacts to the repository..."
    openssl aes-256-cbc -K $encrypted_2b51ae3bcf84_key -iv $encrypted_2b51ae3bcf84_iv -in credentials.properties.enc -out credentials.properties -d
    ./gradlew publish -x test
    echo " ------ Artifacts published."
else
    echo " ------ Publishing is DISABLED for the current branch."
fi

{'fraction_non_alphanumeric': 0.10607866507747318, 'fraction_numerical': 0.017878426698450536, 'mean_word_length': 3.6638888888888888, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5910638', 'n_tokens_mistral': 533, 'n_tokens_neox': 489, 'n_words': 188}