<commit_before>@echo off
setlocal

REM This file is for building the Poker Enlighter executable.

REM Some very important notes:
REM - The script assumes the availability of the java, javac and jar commands.
REM - The script makes very specific assumptions of the structure of the JAR file, in the packaging
REM stage. Please keep this script in sync with this structure.

REM We're going to count execution time. So, remeber start time. Note that we don't look at the date, so this
REM calculation won't work right if the program run spans local midnight.
set t0=%time: =0%

REM First, let's define some variables that contain most used names and paths
REM throughout the build script. Changes of these variables will propagate down the script.

set mainclass=org/javafling/pokerenlighter/main/PokerEnlighterSimulator
set manifestfile=Manifest.txt
set simulatorjar=simulator.jar
set simulatorclass=org/javafling/pokerenlighter/simulation/Simulator
set extraclass1=org/javafling/pokerenlighter/simulation/SimulationExport
set extraclass2=org/javafling/pokerenlighter/main/PokerEnlighterSimulator

REM The actual compilation command. It is compiled without any debugging
REM symbols, to add some obfuscation. These symbols will probably be removed by Proguard anyway, but
REM it's not a bad thing to be extra-careful.

javac -g:none -Xlint:unchecked %simulatorclass%.java %extraclass1%.java %extraclass2%.java 2>&1
timeout /t 1 /nobreak > NUL

REM Next, the script will move inside the "org/" folder and delete all the source code files.
REM This is to ensure that the resulting executable will not contain the source code.
REM The script will move back to the build folder root after it's done deleting.

cd org
del /s *.java 2>&1
timeout /t 1 /nobreak > NUL
cd..

REM Next, the Manifest file is built. This is needed for the JAR file.

echo Main-Class: %mainclass% > %manifestfile%

REM Package everything in a JAR file.

jar cfm0 %simulatorjar% %manifestfile% org/* 2>&1

REM And we are done. Enjoy.

REM Capture the end time before doing anything else
set t=%time: =0%

REM make t0 into a scaler in 100ths of a second, being careful not 
REM to let SET/A misinterpret 08 and 09 as octal
set /a h=1%t0:~0,2%-100
set /a m=1%t0:~3,2%-100<commit_msg>A few small updates to the build script<commit_after>@echo off
setlocal

REM This file is for building the Poker Enlighter executable.

REM Some very important notes:
REM - The script assumes the availability of the javac and jar commands.
REM - The script makes very specific assumptions of the structure of the JAR file, in the packaging
REM stage. Please keep this script in sync with this structure.

REM We're going to count execution time. So, remeber start time. Note that we don't look at the date, so this
REM calculation won't work right if the program run spans local midnight.
set t0=%time: =0%

REM First, let's define some variables that contain most used names and paths
REM throughout the build script. Changes of these variables will propagate down the script.

set mainclass=org/javafling/pokerenlighter/main/PokerEnlighterSimulator
set manifestfile=Manifest.txt
set simulatorjar=simulator.jar
set simulatorclass=org/javafling/pokerenlighter/simulation/Simulator
set extraclass1=org/javafling/pokerenlighter/simulation/SimulationExport
set extraclass2=org/javafling/pokerenlighter/main/PokerEnlighterSimulator

REM The actual compilation command. It is compiled without any debugging
REM symbols, to add some obfuscation.

javac -g:none -Xlint:unchecked %simulatorclass%.java %extraclass1%.java %extraclass2%.java 2>&1
timeout /t 1 /nobreak > NUL

REM Next, the script will move inside the "org/" folder and delete all the source code files.
REM This is to ensure that the resulting executable will not contain the source code.
REM The script will move back to the build folder root after it's done deleting.

cd org
del /s *.java > NUL
timeout /t 1 /nobreak > NUL
cd..

REM Next, the Manifest file is built. This is needed for the JAR file.

echo Main-Class: %mainclass% > %manifestfile%

REM Package everything in a JAR file.

jar cfm0 %simulatorjar% %manifestfile% org/* 2>&1

REM And we are done. Enjoy.

REM Capture the end time before doing anything else
set t=%time: =0%

REM make t0 into a scaler in 100ths of a second, being careful not 
REM to let SET/A misinterpret 08 and 09 as octal
set /a h=1%t0:~0,2%-100
set /a m=1%t0:~3,2%-100
{'fraction_non_alphanumeric': 0.06258503401360545, 'fraction_numerical': 0.016780045351473923, 'mean_word_length': 4.562421185372005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '5764580', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1290, 'n_words': 626}