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

if [ "$TRAVIS_PULL_REQUEST" = false ]; then
  if [ "$TRAVIS_BRANCH" = "master" ]; then
    echo "nexusUsername=$SONATYPE_USER" >> gradle.properties
    echo "nexusPassword=$<PASSWORD>" >> gradle.properties
    ./gradlew build --scan --parallel --build-cache --configure-on-demand
    ./gradlew sonarqube \
            -Dsonar.login=$SONAR_TOKEN \
            -Dsonar.host.url=https://sonarqube.com \
            -Dsonar.organization=rahulsom-github
    ./gradlew uploadArchives --scan --parallel --build-cache --configure-on-demand
  else
    ./gradlew check --scan --parallel --build-cache --configure-on-demand
  fi
else
  ./gradlew check --scan --parallel --build-cache --configure-on-demand
fi<commit_msg>Prevent dirty flag for travis builds<commit_after>#!/usr/bin/env bash
set -e

if [ "$TRAVIS_PULL_REQUEST" = false ]; then
  if [ "$TRAVIS_BRANCH" = "master" ]; then
    echo "nexusUsername=$SONATYPE_USER" >> ~/.gradle/gradle.properties
    echo "nexusPassword=$<PASSWORD>" >> ~/.gradle/gradle.properties
    ./gradlew build --scan --parallel --build-cache --configure-on-demand
    ./gradlew sonarqube \
            -Dsonar.login=$SONAR_TOKEN \
            -Dsonar.host.url=https://sonarqube.com \
            -Dsonar.organization=rahulsom-github
    ./gradlew uploadArchives --scan --parallel --build-cache --configure-on-demand
  else
    ./gradlew check --scan --parallel --build-cache --configure-on-demand
  fi
else
  ./gradlew check --scan --parallel --build-cache --configure-on-demand
fi
{'fraction_non_alphanumeric': 0.15255332902391727, 'fraction_numerical': 0.0, 'mean_word_length': 2.6857142857142855, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '279969', 'n_tokens_mistral': 528, 'n_tokens_neox': 501, 'n_words': 106}