<commit_before>#!/bin/bash

set -e
set -e pipefail

if [[ -f "pom.xml" ]]; then
    PROTOC_VERSION="$(xmlstarlet sel -t -v '/_:project/_:properties/_:protobuf.version/text()' pom.xml)"
fi

PROTOC_VERSION="${PROTOC_VERSION:-2.5.0}"
PROTOC_DISTR_NAME="protobuf-${PROTOC_VERSION}"
PROTOC_DISTR_FILE="${PROTOC_DISTR_NAME}.tar.gz"
PROTOC_PATH="/tmp/${PROTOC_DISTR_NAME}/src/protoc"

SONATYPE_PASSWORD=${SON<PASSWORD>_PASSWORD-}
GITHUB_PASSWORD=${GITHUB_PASSWORD-}
GITHUB_PASSWORD="$(echo ${GITHUB_PASSWORD} | base64 -d)"
<commit_msg>build: workaround for old xmlstarlet version<commit_after>#!/bin/bash

set -e
set -e pipefail

POM_NAMESPACE="http://maven.apache.org/POM/4.0.0"

if [[ -f "pom.xml" ]]; then
    PROTOC_VERSION="$(xmlstarlet sel -N p=${POM_NAMESPACE} -t -v '/p:project/p:properties/p:protobuf.version/text()' pom.xml)"
fi

PROTOC_VERSION="${PROTOC_VERSION:-2.5.0}"
PROTOC_DISTR_NAME="protobuf-${PROTOC_VERSION}"
PROTOC_DISTR_FILE="${PROTOC_DISTR_NAME}.tar.gz"
PROTOC_PATH="/tmp/${PROTOC_DISTR_NAME}/src/protoc"

SONATYPE_PASSWORD=${<PASSWORD>_PASSWORD-}
GITHUB_PASSWORD=${GITHUB_PASSWORD-}
GITHUB_PASSWORD="$(echo ${GITHUB_PASSWORD} | base64 -d)"

{'fraction_non_alphanumeric': 0.18323249783923942, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 6.771812080536913, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 7}, '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': '4842756', 'n_tokens_mistral': 483, 'n_tokens_neox': 471, 'n_words': 62}