<commit_before>@echo off & setlocal
REM ======================================================================
REM 
REM  Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
REM  University of Wisconsin-Madison, WI.
REM  
REM  Licensed under the Apache License, Version 2.0 (the "License"); you
REM  may not use this file except in compliance with the License.  You may
REM  obtain a copy of the License at
REM  
REM     http://www.apache.org/licenses/LICENSE-2.0
REM  
REM  Unless required by applicable law or agreed to in writing, software
REM  distributed under the License is distributed on an "AS IS" BASIS,
REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM  See the License for the specific language governing permissions and
REM  limitations under the License.
REM 
REM ======================================================================

REM ======================================================================
REM A simple command line way to clean up the builds and externals
REM Usage: clean [type], where type can be: release, debug or externals
REM ======================================================================

REM Configure the environment
REM call set_vars.bat

REM Determine which build to clean
set CONFIGURATION=Release
if /i A%1==Arelease shift
if /i A%1==Adebug ( 
    set CONFIGURATION=Debug
    shift
)
if /i A%1==Aexternals ( 
    goto :clean_externals
    goto :EOF
)

goto :clean_build
goto :EOF

REM ======================================================================
:clean_build
REM ======================================================================
REM Cleans out the contents of a build directory
REM ======================================================================

echo Cleaning the "%CONFIGURATION%" build and logs.

REM Do the actual cleaning and remove any residual log files
rm -rf ..\%CONFIGURATION%

REM Return to caller
goto :EOF

REM ======================================================================
:clean_externals
REM ======================================================================
REM Cleans out the externals
REM ======================================================================

if A%EXTERN_DIR%==A goto :EOF

echo Cleaning the "Externals".

REM Remove all the "externals" build files
rm -rf %EXTERN_DIR%\build
rm -rf %EXTERN_DIR%\install
rm -rf %EXTERN_DIR%\triggers

REM Return to caller
goto :EOF<commit_msg>Do a more thorough cleaning of the build environment.<commit_after>@echo off & setlocal
REM ======================================================================
REM 
REM  Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
REM  University of Wisconsin-Madison, WI.
REM  
REM  Licensed under the Apache License, Version 2.0 (the "License"); you
REM  may not use this file except in compliance with the License.  You may
REM  obtain a copy of the License at
REM  
REM     http://www.apache.org/licenses/LICENSE-2.0
REM  
REM  Unless required by applicable law or agreed to in writing, software
REM  distributed under the License is distributed on an "AS IS" BASIS,
REM  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM  See the License for the specific language governing permissions and
REM  limitations under the License.
REM 
REM ======================================================================

REM ======================================================================
REM A simple command line way to clean up the builds and externals
REM Usage: clean [type], where type can be: release, debug or externals
REM ======================================================================

REM Configure the environment
REM call set_vars.bat

REM Determine which build to clean
set CONFIGURATION=Release
if /i A%1==Arelease shift
if /i A%1==Adebug ( 
    set CONFIGURATION=Debug
    shift
)
if /i A%1==Aexternals ( 
    call :clean_externals
    goto :EOF
)

call :clean_build
call :clean_dynamic_configuration
goto :EOF

REM ======================================================================
:clean_build
REM ======================================================================
REM Cleans out the contents of a build directory
REM ======================================================================

echo Cleaning the "%CONFIGURATION%" build and logs.

REM Do the actual cleaning and remove any residual log files
rm -rf ..\%CONFIGURATION%

REM Return to caller
goto :EOF

REM ======================================================================
:clean_externals
REM ======================================================================
REM Cleans out the externals
REM ======================================================================

if A%EXTERN_DIR%==A goto :EOF

echo Cleaning the "Externals".

REM Remove all the "externals" build files
rm -rf %EXTERN_DIR%\build
rm -rf %EXTERN_DIR%\install
rm -rf %EXTERN_DIR%\triggers

REM Return to caller
goto :EOF

REM ======================================================================
:clean_dynamic_configuration
REM ======================================================================
REM Cleans out the externals
REM ======================================================================

echo Cleaning the dynamicly generated files.

REM Remove all the generated files
rm -f ..\src\h\syscall_numbers.h
rm -f ..\src\condor_includes\config.h

REM Return to caller
goto :EOF
{'fraction_non_alphanumeric': 0.3374977034723498, 'fraction_numerical': 0.00551166636046298, 'mean_word_length': 6.060959792477302, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6568108', 'n_tokens_mistral': 1413, 'n_tokens_neox': 1180, 'n_words': 548}