<commit_before>@echo off

SET SCRIPTPATH=%~dp0
CD /D %~dp0

setlocal

SET ICU_MAJOR_VER=58
SET ICU_MINOR_VER=2

SET VC=%ProgramFiles%\Microsoft Visual Studio 14.0\VC
SET VC64=%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC
if exist %VC64% (
	SET VC=%VC64%
)

SET UNSIP_PROGRAMM="%ProgramFiles%\7-Zip\7z.exe"
SET UNSIP_PROGRAMM2="%ProgramFiles(x86)%\7-Zip\7z.exe"
if exist %UNSIP_PROGRAMM2% (
	SET UNSIP_PROGRAMM=%UNSIP_PROGRAMM2%
)

if defined BUILD_PLATFORM (
	if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:all=%" (
		SET "BUILD_PLATFORMS=win_64 win_32"
		GOTO :found
	)
)

SET "BUILD_PLATFORMS=win_32"
if defined ProgramFiles(x86) (
	SET "BUILD_PLATFORMS=win_64"
	GOTO :found
)
if defined TARGET (
	SET "BUILD_PLATFORMS=%TARGET%"
	GOTO :found
)

echo "error"
GOTO :end

:found
for %%a in (%BUILD_PLATFORMS%) do (
	cd "%SCRIPTPATH%"	
	if not exist "%%a" (
		md "%%a"
	)
	if not exist "%%a\build" (
		md "%%a\build"
	)
	cd "%SCRIPTPATH%%%a"
	if exist "icu" (
		echo "icu already exported"
	) else (
		svn export http://source.icu-project.org/repos/icu/tags/release-%ICU_MAJOR_VER%-%ICU_MINOR_VER%/icu4c ./icu
	)
	
	if "%%a" == "win_64" (
		call "%VC%\vcvarsall.bat" x64
		MSBuild.exe icu\source\allinone\allinone.sln /p:Configuration=Release /p:PlatformToolset=v140 /p:Platform="X64"
		XCOPY /Y "icu\bin64\icudt%ICU_MAJOR_VER%.dll" "build\"
		XCOPY /Y "icu\bin64\icuuc%ICU_MAJOR_VER%.dll" "build\"
		XCOPY /Y "icu\lib64\icudt.lib" "build\"
		XCOPY /Y "icu\lib64\icuuc.lib" "build\"
	) else (
		call "%VC%\vcvarsall.bat" x86
		MSBuild.exe icu\source\allinone\allinone.sln /p:Configuration=Release /p:PlatformToolset=v140 /p:Platform="Win32"
		XCOPY /Y "icu\bin\icudt%ICU_MAJOR_VER%.dll" "build\"
		XCOPY /Y "icu\bin\icuuc%ICU_MAJOR_VER%.dll" "build\"
		XCOPY /Y "icu\lib\icudt.lib" "build\"
		XCOPY /Y "icu\lib\icuuc.lib" "build\"
	)
)
cd "%SCRIPTPATH%"

:end
endlocal

@echo on<commit_msg>Build icu with only xp target (#167)<commit_after>@echo off

SET SCRIPTPATH=%~dp0
CD /D %~dp0

setlocal

SET ICU_MAJOR_VER=58
SET ICU_MINOR_VER=2

SET VC=%ProgramFiles%\Microsoft Visual Studio 14.0\VC
SET VC64=%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC
if exist %VC64% (
	SET VC=%VC64%
)

SET UNSIP_PROGRAMM="%ProgramFiles%\7-Zip\7z.exe"
SET UNSIP_PROGRAMM2="%ProgramFiles(x86)%\7-Zip\7z.exe"
if exist %UNSIP_PROGRAMM2% (
	SET UNSIP_PROGRAMM=%UNSIP_PROGRAMM2%
)

if defined BUILD_PLATFORM (
	if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:all=%" (
		SET "BUILD_PLATFORMS=win_64 win_32"
		GOTO :found
	)
	if not "%BUILD_PLATFORM%"=="%BUILD_PLATFORM:xp=%" (
		SET "BUILD_PLATFORMS=win_64 win_32"
		GOTO :found
	)
)

SET "BUILD_PLATFORMS=win_32"
if defined ProgramFiles(x86) (
	SET "BUILD_PLATFORMS=win_64"
	GOTO :found
)
if defined TARGET (
	SET "BUILD_PLATFORMS=%TARGET%"
	GOTO :found
)

echo "error"
GOTO :end

:found
for %%a in (%BUILD_PLATFORMS%) do (
	cd "%SCRIPTPATH%"	
	if not exist "%%a" (
		md "%%a"
	)
	if not exist "%%a\build" (
		md "%%a\build"
	)
	cd "%SCRIPTPATH%%%a"
	if exist "icu" (
		echo "icu already exported"
	) else (
		svn export http://source.icu-project.org/repos/icu/tags/release-%ICU_MAJOR_VER%-%ICU_MINOR_VER%/icu4c ./icu
	)
	
	if "%%a" == "win_64" (
		call "%VC%\vcvarsall.bat" x64
		MSBuild.exe icu\source\allinone\allinone.sln /p:Configuration=Release /p:PlatformToolset=v140 /p:Platform="X64"
		XCOPY /Y "icu\bin64\icudt%ICU_MAJOR_VER%.dll" "build\"
		XCOPY /Y "icu\bin64\icuuc%ICU_MAJOR_VER%.dll" "build\"
		XCOPY /Y "icu\lib64\icudt.lib" "build\"
		XCOPY /Y "icu\lib64\icuuc.lib" "build\"
	) else (
		call "%VC%\vcvarsall.bat" x86
		MSBuild.exe icu\source\allinone\allinone.sln /p:Configuration=Release /p:PlatformToolset=v140 /p:Platform="Win32"
		XCOPY /Y "icu\bin\icudt%ICU_MAJOR_VER%.dll" "build\"
		XCOPY /Y "icu\bin\icuuc%ICU_MAJOR_VER%.dll" "build\"
		XCOPY /Y "icu\lib\icudt.lib" "build\"
		XCOPY /Y "icu\lib\icuuc.lib" "build\"
	)
)
cd "%SCRIPTPATH%"

:end
endlocal

@echo on
{'fraction_non_alphanumeric': 0.16483516483516483, 'fraction_numerical': 0.03398926654740608, 'mean_word_length': 4.474125874125874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '787744', 'n_tokens_mistral': 2010, 'n_tokens_neox': 1812, 'n_words': 331}