<commit_before>#!/usr/bin/env bash

set -e

readonly codacy="codacy-coverage-reporter-assembly-latest.jar"
readonly url=$(curl -s https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url)

wget -O ${codacy} "$url"
(curl -s https://codecov.io/bash) > codecov.sh
chmod +x codecov.sh

./gradlew cobertura
# Send information to https://codacy.com
java -cp "$codacy" com.codacy.CodacyCoverageReporter --language Java --coverageReport build/reports/cobertura/coverage.xml --projectToken "$codacy_project_token"
# Send information to https://sonarqube.com
#    ./gradlew sonarqube -Dsonar.host.url=$sonar_host -Dsonar.login=$sonar_login
./codecov.sh
<commit_msg>Silent mode<commit_after>#!/usr/bin/env bash

set -e

readonly codacy="codacy-coverage-reporter-assembly-latest.jar"
readonly url=$(curl -s https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/latest | jq -r .assets[0].browser_download_url)

wget -q -O ${codacy} "$url"
(curl -s https://codecov.io/bash) > codecov.sh
chmod +x codecov.sh

./gradlew cobertura
# Send information to https://codacy.com
java -cp "$codacy" com.codacy.CodacyCoverageReporter --language Java --coverageReport build/reports/cobertura/coverage.xml --projectToken "$codacy_project_token"
# Send information to https://sonarqube.com
#    ./gradlew sonarqube -Dsonar.host.url=$sonar_host -Dsonar.login=$sonar_login
./codecov.sh

{'fraction_non_alphanumeric': 0.1474493361285814, 'fraction_numerical': 0.001397624039133473, 'mean_word_length': 4.682539682539683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1025541', 'n_tokens_mistral': 541, 'n_tokens_neox': 512, 'n_words': 100}