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

# Post-process the coner-core-client-java/.bintray.json
CONER_CORE_CLIENT_JAVA_BINTRAY_JSON="client-generator/target/generated-sources/swagger-codegen/coner-core-client-java/.bintray.json"
jq_mutate_file ".version.name = \"${TRAVIS_TAG}\"" $CONER_CORE_CLIENT_JAVA_BINTRAY_JSON
jq_mutate_file ".version.desc = \"${TRAVIS_TAG}\"" $CONER_CORE_CLIENT_JAVA_BINTRAY_JSON
TODAY=`date +%Y-%m-%d`
jq_mutate_file ".version.released = \"${TODAY}\"" $CONER_CORE_CLIENT_JAVA_BINTRAY_JSON
jq_mutate_file ".version.vcs_tag = \"$TRAVIS_COMMIT\"" $CONER_CORE_CLIENT_JAVA_BINTRAY_JSON

# Push generated client repos
cd client-generator/target/generated-sources/swagger-codegen/coner-core-client-java
git init
git add .
git commit -m "Generated coner-core-client-java $TRAVIS_TAG"
git tag "$TRAVIS_TAG"
git remote add origin "https://${GITHUB_JAVA_CLIENT_API_KEY}@github.com/caeos/coner-core-client-java.git"
git push --tags --force origin master
<commit_msg>Fix git push authentication for java client<commit_after>#!/usr/bin/env bash

# Post-process the coner-core-client-java/.bintray.json
CONER_CORE_CLIENT_JAVA_BINTRAY_JSON="client-generator/target/generated-sources/swagger-codegen/coner-core-client-java/.bintray.json"
jq_mutate_file ".version.name = \"${TRAVIS_TAG}\"" $CONER_CORE_CLIENT_JAVA_BINTRAY_JSON
jq_mutate_file ".version.desc = \"${TRAVIS_TAG}\"" $CONER_CORE_CLIENT_JAVA_BINTRAY_JSON
TODAY=`date +%Y-%m-%d`
jq_mutate_file ".version.released = \"${TODAY}\"" $CONER_CORE_CLIENT_JAVA_BINTRAY_JSON
jq_mutate_file ".version.vcs_tag = \"$TRAVIS_COMMIT\"" $CONER_CORE_CLIENT_JAVA_BINTRAY_JSON

# Push generated client repos
cd client-generator/target/generated-sources/swagger-codegen/coner-core-client-java
git init
git add .
git commit -m "Generated coner-core-client-java $TRAVIS_TAG"
git tag "$TRAVIS_TAG"
git remote add origin "https://carltonwhitehead:${GITHUB_JAVA_CLIENT_API_KEY}@github.com/caeos/coner-core-client-java
.git"
git push --tags --force origin master

{'fraction_non_alphanumeric': 0.1335, 'fraction_numerical': 0.0, 'mean_word_length': 6.356617647058823, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1219389', 'n_tokens_mistral': 788, 'n_tokens_neox': 767, 'n_words': 115}