<commit_before>#!/bin/bash

# from https://github.com/Sorien/silex-idea-plugin

ideaVersion="2017.1"

if [ ! -d ./idea ]; then
    # Get our IDEA dependency
    wget http://download.jetbrains.com/idea/ideaIU-${ideaVersion}.tar.gz

    # Unzip IDEA
    tar zxf ideaIU-${ideaVersion}.tar.gz
    rm -rf ideaIU-${ideaVersion}.tar.gz

    # Move the versioned IDEA folder to a known location
    ideaPath=$(find . -name 'idea-IU*' | head -n 1)
    mv ${ideaPath} ./idea
fi

# Run the tests
if [ "$1" = "-d" ]; then
    ant -d -f build.xml -DIDEA_HOME=./idea -DJDK.HOME.1.8=/usr/lib/jvm/java-8-oracle
else
    ant -f build.xml -DIDEA_HOME=./idea -DJDK.HOME.1.8=/usr/lib/jvm/java-8-oracle
fi

# Was our build successful?
stat=$?

if [ "${TRAVIS}" != true ]; then
    ant -f build.xml -q clean

    if [ "$1" = "-r" ]; then
        rm -rf idea
        rm -rf plugins
    fi
fi

# Return the build status
exit ${stat}<commit_msg>testing travis<commit_after>#!/bin/bash

# from https://github.com/Sorien/silex-idea-plugin

ideaVersion="2017.1"

if [ ! -d ./idea ]; then
    # Get our IDEA dependency
    wget http://download.jetbrains.com/idea/ideaIU-${ideaVersion}.tar.gz

    # Unzip IDEA
    tar zxf ideaIU-${ideaVersion}.tar.gz
    rm -rf ideaIU-${ideaVersion}.tar.gz

    # Move the versioned IDEA folder to a known location
    ideaPath=$(find . -name 'idea-IU*' | head -n 1)
    mv ${ideaPath} ./idea
fi

# Run the tests
if [ "$1" = "-d" ]; then
    ant -d -f build.xml -DIDEA_HOME=./idea -DJAVE_HOME=/usr/lib/jvm/java-8-oracle
else
    ant -f build.xml -DIDEA_HOME=./idea -DJAVA_HOME=/usr/lib/jvm/java-8-oracle
fi

# Was our build successful?
stat=$?

if [ "${TRAVIS}" != true ]; then
    ant -f build.xml -q clean

    if [ "$1" = "-r" ]; then
        rm -rf idea
        rm -rf plugins
    fi
fi

# Return the build status
exit ${stat}
{'fraction_non_alphanumeric': 0.16348773841961853, 'fraction_numerical': 0.013079019073569483, 'mean_word_length': 2.50381679389313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1810109', 'n_tokens_mistral': 747, 'n_tokens_neox': 695, 'n_words': 186}