<commit_before>#! /bin/sh
GRADLE_FOLDER=~/.gradle/
GRADLE_PROPERTIES=$GRADLE_FOLDER/gradle.properties
KEY_PATH=`pwd`/tools/bitrise-secret.key

add_signing() {
    echo "Adding bitrise key to gradle properties..."
    cat > $GRADLE_PROPERTIES << EOF
signing.keyId=9719DC41
signing.secretKeyRingFile=
EOF
    echo "New gradle properties:"
    cat $GRADLE_PROPERTIES
}

if [ ! -d $GRADLE_FOLDER ]
then
    echo "Fatal error: no $GRADLE_FOLDER"
    exit 1
fi

if [ -e $GRADLE_PROPERTIES ]
then
    if grep -q "signing." $GRADLE_PROPERTIES
    then
        echo "Fatal error: the gradle properties already have a signing profile"
        exit 2
    fi<commit_msg>chore(tools): create .gradle if missing<commit_after>#! /bin/sh
GRADLE_FOLDER=~/.gradle/
GRADLE_PROPERTIES=$GRADLE_FOLDER/gradle.properties
KEY_PATH=`pwd`/tools/bitrise-secret.key

add_signing() {
    echo "Adding bitrise key to gradle properties..."
    cat > $GRADLE_PROPERTIES << EOF
signing.keyId=9719DC41
signing.secretKeyRingFile=
EOF
    echo "New gradle properties:"
    cat $GRADLE_PROPERTIES
}

if [ ! -d $GRADLE_FOLDER ]
then
    mkdir $GRADLE_FOLDER
fi

if [ -e $GRADLE_PROPERTIES ]
then
    if grep -q "signing." $GRADLE_PROPERTIES
    then
        echo "Fatal error: the gradle properties already have a signing profile"
        exit 2
    fi
{'fraction_non_alphanumeric': 0.09969558599695585, 'fraction_numerical': 0.01141552511415525, 'mean_word_length': 3.6140350877192984, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '5353991', 'n_tokens_mistral': 520, 'n_tokens_neox': 493, 'n_words': 120}