<commit_before>@if not defined _echo echo off
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
SET _originalScript=%~f0

:parseArguments
if "%1"=="" goto doneParsingArguments
if /i "%1"=="--scope" set SCOPE=%2&& shift && shift && goto parseArguments
if /i "%1"=="--target" set TARGET=%2&& shift && shift && goto parseArguments
if /i "%1"=="--host" set HOST=%2&& shift && shift && goto parseArguments
if /i "%1"=="--config" set BASE_CONFIG=%2&& shift && shift && goto parseArguments
if /i "%1"=="--build-only" set BUILD_ONLY=true&& shift && goto parseArguments
if /i "%1"=="--bootstrap-only" set BOOTSTRAP_ONLY=true&& shift && goto parseArguments
if /i "%1"=="--localized-build" set LOCALIZED_BUILD=true&& shift && goto parseArguments
if /i "%1"=="--sync-xlf" set SYNC_XLF=true&& shift && goto parseArguments

if /i "%1"=="--windows-core-localized-job" (
    CALL "!_originalScript!" --target Full --scope Compile --build-only --localized-build
    IF ERRORLEVEL 1 GOTO :error
    CALL "!_originalScript!" --target CoreCLR --scope test --localized-Build
    IF ERRORLEVEL 1 GOTO :error
    CALL "msbuild" build/NugetPackages/CreateNuGetPackages.proj
    IF ERRORLEVEL 1 GOTO :error
    EXIT /B 0
    )

:: Unknown parameters
goto :usage

:doneParsingArguments

:: Default target
set TARGET_ARG=RebuildAndTest

if /i "%SCOPE%"=="Compile" set TARGET_ARG=Build
if /i "%SCOPE%"=="Build" set TARGET_ARG=Build

:: Assign target configuration

:: Default to full-framework build
if not defined TARGET (
    set TARGET=Full
)

if not defined BASE_CONFIG (
    set BASE_CONFIG=Debug
)

set BUILD_CONFIGURATION=
if /i "%TARGET%"=="CoreCLR" (
    set BUILD_CONFIGURATION=%BASE_CONFIG%-NetCore
) else if /i "%TARGET%"=="Full" (
    set BUILD_CONFIGURATION=%BASE_CONFIG%
) else if /i "%TARGET%"=="All" (
    SET _originalArguments=%*
    CALL "!_originalScript!" !_originalArguments:All=Full!
    IF ERRORLEVEL 1 GOTO :error
    CALL "!_originalScript!" !_originalArguments:All=CoreCLR!
    IF ERRORLEVEL 1 GOTO :error
    EXIT /B 0
) else (
    echo Unsupported target detected: %TARGET%. Configuring as if for Full.
    set TARGET=Full
    set BUILD_CONFIGURATION=%BASE_CONFIG%
)

echo Using Configuration: %BUILD_CONFIGURATION%

:: Assign runtime host

:: By default match host to target
if not defined HOST (
    if /i "%TARGET%"=="CoreCLR" (
        set HOST=CoreCLR
    ) else (
        set HOST=Full
    )
)

set RUNTIME_HOST=
if /i "%HOST%"=="CoreCLR" (
    set RUNTIME_HOST=%~dp0Tools\DotNetCLI\Dotnet.exe
    set MSBUILD_CUSTOM_PATH=%~dp0Tools\MSBuild.exe
    :: The LKG MSBuild on Core is too old to support
    :: SourceLink targets, so disable them.
    set SOURCE_LINK_ARGUMENT=/p:SourceLinkCreate=false
) else if /i "%HOST%"=="Full" (<commit_msg>Generate full symbols for GenApi<commit_after>@if not defined _echo echo off
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
SET _originalScript=%~f0

:parseArguments
if "%1"=="" goto doneParsingArguments
if /i "%1"=="--scope" set SCOPE=%2&& shift && shift && goto parseArguments
if /i "%1"=="--target" set TARGET=%2&& shift && shift && goto parseArguments
if /i "%1"=="--host" set HOST=%2&& shift && shift && goto parseArguments
if /i "%1"=="--config" set BASE_CONFIG=%2&& shift && shift && goto parseArguments
if /i "%1"=="--build-only" set BUILD_ONLY=true&& shift && goto parseArguments
if /i "%1"=="--bootstrap-only" set BOOTSTRAP_ONLY=true&& shift && goto parseArguments
if /i "%1"=="--localized-build" set LOCALIZED_BUILD=true&& shift && goto parseArguments
if /i "%1"=="--sync-xlf" set SYNC_XLF=true&& shift && goto parseArguments

if /i "%1"=="--windows-core-localized-job" (
    CALL "!_originalScript!" --target Full --scope Compile --build-only --localized-build
    IF ERRORLEVEL 1 GOTO :error
    CALL "!_originalScript!" --target CoreCLR --scope test --localized-Build
    IF ERRORLEVEL 1 GOTO :error
    CALL "msbuild" build/NugetPackages/CreateNuGetPackages.proj
    IF ERRORLEVEL 1 GOTO :error
    EXIT /B 0
    )

:: Unknown parameters
goto :usage

:doneParsingArguments

:: Default target
set TARGET_ARG=RebuildAndTest

if /i "%SCOPE%"=="Compile" set TARGET_ARG=Build
if /i "%SCOPE%"=="Build" set TARGET_ARG=Build

:: Assign target configuration

:: Default to full-framework build
if not defined TARGET (
    set TARGET=Full
)

if not defined BASE_CONFIG (
    set BASE_CONFIG=Debug
)

set BUILD_CONFIGURATION=
if /i "%TARGET%"=="CoreCLR" (
    set BUILD_CONFIGURATION=%BASE_CONFIG%-NetCore
) else if /i "%TARGET%"=="Full" (
    set BUILD_CONFIGURATION=%BASE_CONFIG%
) else if /i "%TARGET%"=="All" (
    SET _originalArguments=%*
    CALL "!_originalScript!" !_originalArguments:All=Full!
    IF ERRORLEVEL 1 GOTO :error
    CALL "!_originalScript!" !_originalArguments:All=CoreCLR!
    IF ERRORLEVEL 1 GOTO :error
    EXIT /B 0
) else (
    echo Unsupported target detected: %TARGET%. Configuring as if for Full.
    set TARGET=Full
    set BUILD_CONFIGURATION=%BASE_CONFIG%
)

echo Using Configuration: %BUILD_CONFIGURATION%

:: Assign runtime host

:: By default match host to target
if not defined HOST (
    if /i "%TARGET%"=="CoreCLR" (
        set HOST=CoreCLR
    ) else (
        set HOST=Full
    )
)

set RUNTIME_HOST=
if /i "%HOST%"=="CoreCLR" (
    set RUNTIME_HOST=%~dp0Tools\DotNetCLI\Dotnet.exe
    set MSBUILD_CUSTOM_PATH=%~dp0Tools\MSBuild.exe
    :: The LKG MSBuild on Core is too old to support
    :: SourceLink targets, so disable them.
    set SOURCE_LINK_ARGUMENT=/p:SourceLinkCreate=false /p:DebugType=full
) else if /i "%HOST%"=="Full" (
{'fraction_non_alphanumeric': 0.13758813957693003, 'fraction_numerical': 0.00867835834387995, 'mean_word_length': 4.165266106442577, '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': '4346906', 'n_tokens_mistral': 1945, 'n_tokens_neox': 1847, 'n_words': 543}