<commit_before>@SETLOCAL enableextensions enabledelayedexpansion
@ECHO OFF

SET CURRENT_DIR=%cd%

:JAVAC_READY
WHERE "javac.exe">nul 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=JDK ã  ϴ.
	GOTO :ERR
)
ECHO === JDK غ [OK]

:PYTHON_READY
WHERE "python.exe">nul 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=̽ ã  ϴ
	GOTO :ERR
)
ECHO === ̽ غ [OK]

:ANDROID_SDK_READY
WHERE "SDK Manager.exe">nul 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=ȵ̵ SDK ã  ϴ.
	GOTO :ERR
)
ECHO === ȵ̵ SDK [OK]

:MAKE_APK_PY_READY
ECHO === make_apk.py  ã ֽϴ.
WHERE /R %HOMEPATH%\desktop make_apk.py >temp_path.txt 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=make_apk.py  ã  ϴ
	GOTO :ERR
)

:SET_XWALK_PATH
SET /p TEMP_XWALK_PATH=0<temp_path.txt
DEL temp_path.txt
SET XWALK_PATH=%TEMP_XWALK_PATH%
ECHO === make_apk.py غ [OK]
SET /p PACKAGE=package name Էϼ(com.biud436.example.sample):
IF EXIST manifest.json (
	SET MANIFEST=manifest.json
) ELSE (
	SET ERRORMSG=manifest.json  ã  ϴ.
	GOTO :ERR
)
ECHO === manifest.json غ [OK]
IF EXIST *.keystore (
	GOTO :FOUND_ALREADY_KEYSTORE
) ELSE (
	GOTO :NOT_FOUND
)

:FOUND_ALREADY_KEYSTORE
ECHO === Ű  غ [OK]
ECHO === Ű  ã ֽϴ.
WHERE /r %CURRENT_DIR% *.keystore >temp_path.txt 2>nul
SET /p KS_PATH=0<temp_path.txt
DEL temp_path.txt
ECHO %KS_PATH% ãҽϴ.
SET /p KS_ALIAS=Ű Ī Էϼ:
SET /p KS_PASSCODE=Ű йȣ Էϼ(6ڸ̻):
SET /p KS_ALIAS_PASSCODE=Ű йȣ ٽ   Էϼ(6ڸ̻):
GOTO :MAKE_APK

:NOT_FOUND

ECHO Ű  ã  ϴ.
CHOICE /C YN -M "Ű  Ͻðڽϱ?"
IF %ERRORLEVEL%==1 (
	GOTO :CREATE_KEYSTORE
) ELSE (
	GOTO :OTHER_KEYSTORE_SET
)

:CREATE_KEYSTORE

where keytool.exe>nul 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=keytool Ƿ Ű    ϴ.
	GOTO ERR
)
SET /p KS_PATH=Ű θ Էϼ(Ȯڴ keystore):
SET /p KS_ALIAS=Ű Ī Էϼ:
SET /p KS_PASSCODE=Ű йȣ Էϼ:
SET /P KS_ALIAS_PASSCODE=Ű йȣ ٽ   Էϼ:
SET CN=%PACKAGE%
SET /P OU=  ̸ Էϼ:
SET /P O= ̸ Էϼ:
SET /P L=// ̸ Էϼ:
SET /P S=/ ̸ Էϼ:
SET C=KR
keytool -genkey -v -keystore %KS_PATH% -alias %KS_ALIAS% -keyalg RSA -keysize 2048 -validity 10000 -keypass %KS_PASSCODE% -storepass %KS_ALIAS_PASSCODE% -dname "CN=%CN%,OU=%OU%,O=%O%,L=%L%,S=%S%,C=%C%"
GOTO :MAKE_APK

:OTHER_KEYSTORE_SET

SET /p KS_PATH=Ű  θ Էϼ (game.keystore):

IF NOT EXIST %KS_PATH% (
	SET ERRORMSG=Ű  ϴ.
	GOTO :ERR
)
SET /p KS_ALIAS=Ű Ī Էϼ:
SET /p KS_PASSCODE=Ű йȣ Էϼ(6ڸ̻):	
SET /p KS_ALIAS_PASSCODE=Ű йȣ ٽ   Էϼ(6ڸ̻):

:MAKE_APK
SET ARCH=arm
SET MODE=embedded
SET XCL='--ignore-gpu-blacklist:--show-fps-counter'

%XWALK_PATH% --package=%PACKAGE% --manifest=%MANIFEST% --keystore-path=%KS_PATH% --keystore-alias=%KS_ALIAS% --keystore-passcode=%KS_PASSCODE% --keystore-alias-passcode=%KS_ALIAS_PASSCODE% --keep-screen-on --fullscreen --orientation=landscape --arch=%ARCH% --mode=%MODE% --xwalk-command-line=%XCL% --enable-remote-debugging

@ENDLOCAL
GOTO :EOF
PAUSE >NUL

:ERR
ECHO %ERRORMSG%
PAUSE >NUL
GOTO :EOF<commit_msg>build file updated<commit_after>@SETLOCAL enableextensions enabledelayedexpansion
@ECHO OFF

SET CURRENT_DIR=%cd%

:JAVAC_READY
WHERE "javac.exe">nul 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=JDK ã  ϴ.
	GOTO :ERR
)
ECHO === JDK غ [OK]

:PYTHON_READY
WHERE "python.exe">nul 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=̽ ã  ϴ
	GOTO :ERR
)
ECHO === ̽ غ [OK]

:ANDROID_SDK_READY
WHERE "SDK Manager.exe">nul 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=ȵ̵ SDK ã  ϴ.
	GOTO :ERR
)
ECHO === ȵ̵ SDK [OK]

:MAKE_APK_PY_READY
ECHO === make_apk.py  ã ֽϴ.
WHERE /R %HOMEPATH%\desktop make_apk.py >temp_path.txt 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=make_apk.py  ã  ϴ
	GOTO :ERR
)

:SET_XWALK_PATH
SET /p TEMP_XWALK_PATH=0<temp_path.txt
DEL temp_path.txt
SET XWALK_PATH=%TEMP_XWALK_PATH%
ECHO === make_apk.py غ [OK]
SET /p PACKAGE=package name Էϼ(com.biud436.example.sample):
IF EXIST manifest.json (
	SET MANIFEST=manifest.json
) ELSE (
	SET ERRORMSG=manifest.json  ã  ϴ.
	GOTO :ERR
)
ECHO === manifest.json غ [OK]
IF EXIST *.keystore (
	GOTO :FOUND_ALREADY_KEYSTORE
) ELSE (
	GOTO :NOT_FOUND
)

:FOUND_ALREADY_KEYSTORE
ECHO === Ű  غ [OK]
ECHO === Ű  ã ֽϴ.
WHERE /r %CURRENT_DIR% *.keystore >temp_path.txt 2>nul
SET /p KS_PATH=0<temp_path.txt
DEL temp_path.txt
ECHO %KS_PATH% ãҽϴ.
SET /p KS_ALIAS=Ű Ī Էϼ:
SET /p KS_PASSCODE=Ű йȣ Էϼ(6ڸ̻):
SET /p KS_ALIAS_PASSCODE=Ű йȣ ٽ   Էϼ(6ڸ̻):
GOTO :MAKE_APK

:NOT_FOUND

ECHO Ű  ã  ϴ.
CHOICE /C YN -M "Ű  Ͻðڽϱ?"
IF %ERRORLEVEL%==1 (
	GOTO :CREATE_KEYSTORE
) ELSE (
	GOTO :OTHER_KEYSTORE_SET
)

:CREATE_KEYSTORE

where keytool.exe>nul 2>nul
IF NOT %errorlevel%==0 (
	SET ERRORMSG=keytool Ƿ Ű    ϴ.
	GOTO ERR
)
SET /p KS_PATH=Ű θ Էϼ(Ȯڴ keystore):
SET /p KS_ALIAS=Ű Ī Էϼ:
SET /p KS_PASSCODE=Ű йȣ Էϼ:
SET /P KS_ALIAS_PASSCODE=Ű йȣ ٽ   Էϼ:
SET CN=%PACKAGE%
SET /P OU=  ̸ Էϼ:
SET /P O= ̸ Էϼ:
SET /P L=// ̸ Էϼ:
SET /P S=/ ̸ Էϼ:
SET C=KR
keytool -genkey -v -keystore %KS_PATH% -alias %KS_ALIAS% -keyalg RSA -keysize 2048 -validity 10000 -keypass %KS_PASSCODE% -storepass %KS_ALIAS_PASSCODE% -dname "CN=%CN%,OU=%OU%,O=%O%,L=%L%,S=%S%,C=%C%"
GOTO :MAKE_APK

:OTHER_KEYSTORE_SET

SET /p KS_PATH=Ű  θ Էϼ (game.keystore):

IF NOT EXIST %KS_PATH% (
	SET ERRORMSG=Ű  ϴ.
	GOTO :ERR
)
SET /p KS_ALIAS=Ű Ī Էϼ:
SET /p KS_PASSCODE=Ű йȣ Էϼ(6ڸ̻):	
SET /p KS_ALIAS_PASSCODE=Ű йȣ ٽ   Էϼ(6ڸ̻):

:MAKE_APK
SET ARCH=arm
SET MODE=embedded
SET XCL='--ignore-gpu-blacklist'

%XWALK_PATH% --package=%PACKAGE% --manifest=%MANIFEST% --keystore-path=%KS_PATH% --keystore-alias=%KS_ALIAS% --keystore-passcode=%KS_PASSCODE% --keystore-alias-passcode=%KS_ALIAS_PASSCODE% --keep-screen-on --fullscreen --orientation=landscape --arch=%ARCH% --mode=%MODE% --xwalk-command-line=%XCL% --enable-remote-debugging

@ENDLOCAL
GOTO :EOF
PAUSE >NUL

:ERR
ECHO %ERRORMSG%
PAUSE >NUL
GOTO :EOF
{'fraction_non_alphanumeric': 0.14806173725771715, 'fraction_numerical': 0.010768126346015794, 'mean_word_length': 4.223055295220243, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 31, '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': '4607143', 'n_tokens_mistral': 3101, 'n_tokens_neox': 2935, 'n_words': 653}