<commit_before>#! /usr/bin/env bash

# Copyright (c) 2015 <NAME>
#
# The contents of this file are subject to the terms and conditions defined 
# within the file LICENSE.txt, located within this project's root directory.

SRC="./src/org/greydamian/netbatjava/Netbat.java";
OUT="./bin/netbat.jar";

MAINCLASS="org.greydamian.netbatjava.Netbat";

# create output directory
mkdir -p ./bin/classes;

# compile java source code
javac -d ./bin/classes $SRC;

# create executable jar file
jar cfe $OUT $MAINCLASS -C ./bin/classes/ .;

# remove compiled class files
rm -r ./bin/classes;

# create execution script (here document)
cat <<EOF >./bin/netbat-java.sh;
#! /usr/bin/env bash

java -jar ./netbat.jar \$@;

EOF
chmod +x ./bin/netbat-java.sh;

ln -s ./netbat-java.sh ./bin/netbat-java;
<commit_msg>Corrected execution script in build.sh<commit_after>#! /usr/bin/env bash

# Copyright (c) 2015 <NAME>
#
# The contents of this file are subject to the terms and conditions defined 
# within the file LICENSE.txt, located within this project's root directory.

SRC="./src/org/greydamian/netbatjava/Netbat.java";
OUT="./bin/netbat.jar";

MAINCLASS="org.greydamian.netbatjava.Netbat";

# create output directory
mkdir -p ./bin/classes;

# compile java source code
javac -d ./bin/classes $SRC;

# create executable jar file
jar cfe $OUT $MAINCLASS -C ./bin/classes/ .;

# remove compiled class files
rm -r ./bin/classes;

# create execution script (here document)
cat <<EOF >./bin/netbat-java.sh;
#! /usr/bin/env bash

java -jar \$(dirname \$0)/netbat.jar \$@;

EOF
chmod +x ./bin/netbat-java.sh;

ln -s ./netbat-java.sh ./bin/netbat-java;

{'fraction_non_alphanumeric': 0.14714898835070508, 'fraction_numerical': 0.005518087063151441, 'mean_word_length': 3.610169491525424, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '5635797', 'n_tokens_mistral': 591, 'n_tokens_neox': 564, 'n_words': 175}