<commit_before>language: java

before_script:
  - wget -c http://download.libsodium.org/libsodium/releases/libsodium-0.4.1.tar.gz
  - tar xzvf libsodium-0.4.1.tar.gz
  - pushd libsodium-0.4.1 && mkdir vendor
  - ./configure --prefix=`pwd`/vendor
  - make && make install
  - popd
  - wget http://prdownloads.sourceforge.net/swig/swig-2.0.10.tar.gz
  - tar -xvf swig-2.0.10.tar.gz
  - pushd swig-2.0.10 && mkdir vendor
  - ./configure --prefix=`pwd`/vendor
  - make -j 5 && make install
  - popd
  - wget https://raw.github.com/joshjdevl/kalium-jni/master/jni/sodium.i
  - find /home/travis/build/joshjdevl/kalium-jni/swig-2.0.10/vendor
  - /home/travis/build/joshjdevl/kalium-jni/swig-2.0.10/vendor/bin/swig -java sodium.i
  - gcc -I/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/include -I/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/sodium -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux sodium_wrap.c -shared -fPIC -L/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib -lsodium -o /home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib/libtestjni.so


script: "LD_LIBRARY_PATH=/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib "

env: JAVA_OPTS="-Djava.library.path=/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib"

jdk:<commit_msg>env var instead of script<commit_after>language: java

before_script:
  - wget -c http://download.libsodium.org/libsodium/releases/libsodium-0.4.1.tar.gz
  - tar xzvf libsodium-0.4.1.tar.gz
  - pushd libsodium-0.4.1 && mkdir vendor
  - ./configure --prefix=`pwd`/vendor
  - make && make install
  - popd
  - wget http://prdownloads.sourceforge.net/swig/swig-2.0.10.tar.gz
  - tar -xvf swig-2.0.10.tar.gz
  - pushd swig-2.0.10 && mkdir vendor
  - ./configure --prefix=`pwd`/vendor
  - make -j 5 && make install
  - popd
  - wget https://raw.github.com/joshjdevl/kalium-jni/master/jni/sodium.i
  - find /home/travis/build/joshjdevl/kalium-jni/swig-2.0.10/vendor
  - /home/travis/build/joshjdevl/kalium-jni/swig-2.0.10/vendor/bin/swig -java sodium.i
  - gcc -I/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/include -I/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/sodium -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux sodium_wrap.c -shared -fPIC -L/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib -lsodium -o /home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib/libtestjni.so


#script: "LD_LIBRARY_PATH=/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib "

env: 
  - JAVA_OPTS="-Djava.library.path=/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib"
  - LD_LIBRARY_PATH=/home/travis/build/joshjdevl/kalium-jni/libsodium-0.4.1/vendor/lib

jdk:
{'fraction_non_alphanumeric': 0.17356859920777817, 'fraction_numerical': 0.035649981994958585, 'mean_word_length': 3.2672811059907834, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4169424', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1264, 'n_words': 124}