<commit_before>#!/bin/bash
set -euo pipefail

function native_changes_common() {
    echo " - Configuring GIT user"
    git config --global user.email "travis-ci"
    git config --global user.name "travis-ci"
    echo " - Decrypting private key"
    openssl aes-256-cbc -K $encrypted_f0a0b284e2e8_key -iv $encrypted_f0a0b284e2e8_iv -in private/key.enc -out "$HOME/.ssh/id_rsa" -d
    chmod 600 "$HOME/.ssh/id_rsa"
    # ls jme3-bullet-native/build/libs/bulletjme/shared/
    # md5 -r jme3-bullet-native/libs/native/osx/x86/libbulletjme.dylib jme3-bullet-native/build/libs/bulletjme/shared/mac32/libbulletjme.dylib
    echo " - Pushing natives onto branch $TRAVIS_BRANCH"
    git checkout "$TRAVIS_BRANCH"
}

echo " - Checking if natives changed in commit $TRAVIS_COMMIT.."
NATIVE_CHANGES_BULLET="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
NATIVE_CHANGES_ANDROID_BULLET="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native-android/)"
NATIVE_CHANGES_BULLET="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-android-native/)"

if [ "$NATIVE_CHANGES_BULLET" != "" ]; then
    native_changes_common
    git add -v -- jme3-bullet-native/libs/native/
    git commit -v -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
    git pull -q --rebase
    git push <EMAIL>:jMonkeyEngine/jmonkeyengine.git
elif [ "$NATIVE_CHANGES_ANDROID_BULLET" != "" ]; then
    native_changes_common
    git add -v -- jme3-bullet-native-android/libs/
    git commit -v -m "[ci skip] android bullet: update natives"
    git pull -q --rebase
    git push <EMAIL>:jMonkeyEngine/jmonkeyengine.git
elif [ "$NATIVE_CHANGES_ANDROID_NATIVES" != "" ]; then
    native_changes_common
    git add -v -- jme3-android-native/libs/
    git commit -v -m "[ci skip] android: update natives"
    git pull -q --rebase
    git push <EMAIL>:jMonkeyEngine/jmonkeyengine.git
else
    echo No native changes.
fi
<commit_msg>Continuous Integration: Fix regression in 21d0854b6132cf450c4eeba470594f16a4b76eba. Variable was misnamed.<commit_after>#!/bin/bash
set -euo pipefail

function native_changes_common() {
    echo " - Configuring GIT user"
    git config --global user.email "travis-ci"
    git config --global user.name "travis-ci"
    echo " - Decrypting private key"
    openssl aes-256-cbc -K $encrypted_f0a0b284e2e8_key -iv $encrypted_f0a0b284e2e8_iv -in private/key.enc -out "$HOME/.ssh/id_rsa" -d
    chmod 600 "$HOME/.ssh/id_rsa"
    # ls jme3-bullet-native/build/libs/bulletjme/shared/
    # md5 -r jme3-bullet-native/libs/native/osx/x86/libbulletjme.dylib jme3-bullet-native/build/libs/bulletjme/shared/mac32/libbulletjme.dylib
    echo " - Pushing natives onto branch $TRAVIS_BRANCH"
    git checkout "$TRAVIS_BRANCH"
}

echo " - Checking if natives changed in commit $TRAVIS_COMMIT.."
NATIVE_CHANGES_BULLET="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native/)"
NATIVE_CHANGES_ANDROID_BULLET="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-bullet-native-android/)"
NATIVE_CHANGES_ANDROID_NATIVES="$(git diff-tree --name-only "$TRAVIS_COMMIT" -- jme3-android-native/)"

if [ "$NATIVE_CHANGES_BULLET" != "" ]; then
    native_changes_common
    git add -v -- jme3-bullet-native/libs/native/
    git commit -v -m "[ci skip] bullet: update $TRAVIS_OS_NAME natives"
    git pull -q --rebase
    git push <EMAIL>:jMonkeyEngine/jmonkeyengine.git
elif [ "$NATIVE_CHANGES_ANDROID_BULLET" != "" ]; then
    native_changes_common
    git add -v -- jme3-bullet-native-android/libs/
    git commit -v -m "[ci skip] android bullet: update natives"
    git pull -q --rebase
    git push <EMAIL>:jMonkeyEngine/jmonkeyengine.git
elif [ "$NATIVE_CHANGES_ANDROID_NATIVES" != "" ]; then
    native_changes_common
    git add -v -- jme3-android-native/libs/
    git commit -v -m "[ci skip] android: update natives"
    git pull -q --rebase
    git push <EMAIL>:jMonkeyEngine/jmonkeyengine.git
else
    echo No native changes.
fi

{'fraction_non_alphanumeric': 0.1265212981744422, 'fraction_numerical': 0.023580121703853957, 'mean_word_length': 3.603267211201867, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7214967', 'n_tokens_mistral': 1578, 'n_tokens_neox': 1482, 'n_words': 320}