<commit_before>#!/bin/bash
# This script initiates the Gradle publishing task when pushes to master occur.
# NOTE: Travis-CI can only publish SNAPSHOT versions. To release a version, you need
#       to use the internal ReadyTalk Jenkins job.

if [ "$TRAVIS_REPO_SLUG" == "Mangopay/mangopay2-java-sdk" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "sonatype" ]; then

  echo -e "Starting publish to Sonatype...\n"

  ./gradlew uploadArchives -PnexusUsername="${SONATYPE_USERNAME}" -PnexusPassword="${<PASSWORD>}" -Psigning.keyId=06974C6E -Psigning.password="${<PASSWORD>}" -Psigning.secretKeyRingFile=.utility/signingkey.gpg
  RETVAL=$?

  if [ $RETVAL -eq 0 ]; then<commit_msg>Testing configuration.<commit_after>#!/bin/bash
# This script initiates the Gradle publishing task when pushes to master occur.
# NOTE: Travis-CI can only publish SNAPSHOT versions. To release a version, you need
#       to use the internal ReadyTalk Jenkins job.

if [ "$TRAVIS_REPO_SLUG" == "Mangopay/mangopay2-java-sdk" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "sonatype" ]; then

  echo -e "Starting publish to Sonatype...\n"

  ./gradlew uploadArchives -PnexusUsername="${SONATYPE_USERNAME}" -PnexusPassword="${<PASSWORD>}" -Psigning.keyId=D7BDCEB2 -Psigning.password="${<PASSWORD>}" -Psigning.secretKeyRingFile=.utility/signingkey.gpg
  RETVAL=$?

  if [ $RETVAL -eq 0 ]; then
{'fraction_non_alphanumeric': 0.14691270404542228, 'fraction_numerical': 0.008516678495386799, 'mean_word_length': 4.755102040816326, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2239293', 'n_tokens_mistral': 520, 'n_tokens_neox': 486, 'n_words': 120}