<commit_before>#!/bin/bash


# create directory if needed and print absolute path
function make-dir {
    [ -d $1 ] || mkdir -p $1
    cd $1
    pwd
    cd - > /dev/null
}

# download file from given url
function get-file {
    FILE="$DL/${1##*/}"
    curl $1 -o $FILE
}

# install jar in local repo
function mvn-deploy {
    mvn deploy:deploy-file \
        -Dfile=$1 \
        -DgroupId=$(basename $REPO) \
        -DartifactId=$(basename $1 .jar) \
        -Dversion=$2 \
        -Dpackaging=jar \
        -Durl=file:$REPO
}


# downloads directory
DL=$(make-dir 'downloads')
# local maven repository
REPO=$(make-dir 'local-repo')
# Scenes directory
ASSETS=$(make-dir 'assets')


# jMonkeyEngine 3.0
get-file 'http://www.jmonkeyengine.com/nightly/jME3_2012-08-02.zip'
unzip $FILE -d "$DL/jme3"
for jar in $DL/jme3/lib/*.jar; do
    mvn-deploy $jar 3.0
done

# put test data in assets directory
# instead of including it in the jar
unzip $DL/jme3/lib/jME3-testdata.jar -d $ASSETS
<commit_msg>remove jME3-testdata.jar metadata<commit_after>#!/bin/bash


# create directory if needed and print absolute path
function make-dir {
    [ -d $1 ] || mkdir -p $1
    cd $1
    pwd
    cd - > /dev/null
}

# download file from given url
function get-file {
    FILE="$DL/${1##*/}"
    curl $1 -o $FILE
}

# install jar in local repo
function mvn-deploy {
    mvn deploy:deploy-file \
        -Dfile=$1 \
        -DgroupId=$(basename $REPO) \
        -DartifactId=$(basename $1 .jar) \
        -Dversion=$2 \
        -Dpackaging=jar \
        -Durl=file:$REPO
}


# downloads directory
DL=$(make-dir 'downloads')
# local maven repository
REPO=$(make-dir 'local-repo')
# Scenes directory
ASSETS=$(make-dir 'assets')


# jMonkeyEngine 3.0
get-file 'http://www.jmonkeyengine.com/nightly/jME3_2012-08-02.zip'
unzip $FILE -d "$DL/jme3"
for jar in $DL/jme3/lib/*.jar; do
    mvn-deploy $jar 3.0
done

# put test data in assets directory
# instead of including it in the jar
unzip $DL/jme3/lib/jME3-testdata.jar -d $ASSETS
rm -rf "$ASSETS/META-INF"
rm "$ASSETS/profiling points"

{'fraction_non_alphanumeric': 0.14728682170542637, 'fraction_numerical': 0.024709302325581394, 'mean_word_length': 2.7341772151898733, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2582896', 'n_tokens_mistral': 819, 'n_tokens_neox': 766, 'n_words': 204}