<commit_before>@echo off

if "%1" == "build" goto build
if "%1" == "tar" goto zip
if "%1" == "zip" goto zip

goto eof

:build
electron-packager . %npm_package_name% --platform=all --arch=x64 --version=%npm_package_electronVersion% --out=build --ignore="(build|node_modules)"  --app-version="%npm_package_version%" --version-string.FileDescription="%npm_package_productName%" --version-string.ProductName="%npm_package_productName%" --overwrite

goto eof

:zip
set ZIP_NAME=%~2
set BUILD_NAME=%npm_package_name%-%ZIP_NAME%-x64
set "BUILD_PATH=build/%BUILD_NAME%"

echo ===============
echo Zip name: %ZIP_NAME%
echo Zip type: %1
echo Build name: %BUILD_NAME%
echo Build path: %BUILD_PATH%
echo ===============

cd %BUILD_PATH%

if "%1" == "tar" (
  7za a -ttar -so -snl "..\%BUILD_NAME%.tar" . | 7za a -si "..\%BUILD_NAME%.tgz" | find /I "ing"
) else (
  7za a -tzip "..\%BUILD_NAME%.zip" . | find /I "ing"
)

goto eof

:eof<commit_msg>Delete old zip files before zip process<commit_after>@echo off

if "%1" == "build" goto build
if "%1" == "tar" goto zip
if "%1" == "zip" goto zip

goto eof

:build
electron-packager . %npm_package_name% --platform=all --arch=x64 --version=%npm_package_electronVersion% --out=build --ignore="(build|node_modules)"  --app-version="%npm_package_version%" --version-string.FileDescription="%npm_package_productName%" --version-string.ProductName="%npm_package_productName%" --overwrite

goto eof

:zip
set ZIP_NAME=%~2
set BUILD_NAME=%npm_package_name%-%ZIP_NAME%-x64
set "BUILD_PATH=build/%BUILD_NAME%"

echo ===============
echo Zip name: %ZIP_NAME%
echo Zip type: %1
echo Build name: %BUILD_NAME%
echo Build path: %BUILD_PATH%
echo ===============

cd %BUILD_PATH%

echo Zip process started

if "%1" == "tar" (
  del "..\%BUILD_NAME%.tgz" >nul 2>&1
  7za a -ttar -so -snl "..\%BUILD_NAME%.tar" . | 7za a -si "..\%BUILD_NAME%.tgz" | find /I "ing"
) else (
  del "..\%BUILD_NAME%.zip" >nul 2>&1
  7za a -tzip "..\%BUILD_NAME%.zip" . | find /I "ing"
)

echo Zip process finished
echo ===============

goto eof

:eof
{'fraction_non_alphanumeric': 0.20576735092864126, 'fraction_numerical': 0.01466275659824047, 'mean_word_length': 4.517520215633423, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1133268', 'n_tokens_mistral': 809, 'n_tokens_neox': 762, 'n_words': 196}