<commit_before>set BUILD_CONFIG=Release

REM tell cmake where Python is
set PYTHON_LIBRARY=%PREFIX%\libs\python%PY_VER:~0,1%%PY_VER:~2,1%.lib

REM work in build subdir
cd pyopcode
mkdir build
cd build


cmake ../src -G "NMake Makefiles" ^
    -Wno-dev ^
    -DCMAKE_BUILD_TYPE=%BUILD_CONFIG% ^
    -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^
    -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%/include" ^
    -DPYTHON_LIBRARY:FILEPATH="%PYTHON_LIBRARY%" ^
    -DNUMPY_INCLUDE_DIR:PATH="%SP_DIR%/numpy/core/include" ^
    -DBOOST_ROOT:PATH="%PREFIX%/Library"
if errorlevel 1 exit 1

cmake --build . --target INSTALL --config %BUILD_CONFIG%
if errorlevel 1 exit 1

copy .\build\release\_pyopcode.pyd "%PREFIX%\dlls\_pyopcode.pyd"
cd..

python setup.py bdist
python setup.py install
exit 0<commit_msg>Woops, forgot to commit some other stuff<commit_after>set BUILD_CONFIG=Release

REM tell cmake where Python is
set PYTHON_LIBRARY=%PREFIX%\libs\python%PY_VER:~0,1%%PY_VER:~2,1%.lib

REM work in build subdir
cd pyopcode
mkdir build
cd build

cmake ../src -G "NMake Makefiles" ^
    -Wno-dev ^
    -DCMAKE_BUILD_TYPE=%BUILD_CONFIG% ^
    -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^
    -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%/include" ^
    -DPYTHON_LIBRARY:FILEPATH="%PYTHON_LIBRARY%" ^
    -DNUMPY_INCLUDE_DIR:PATH="%SP_DIR%/numpy/core/include" ^
    -DBOOST_ROOT:PATH="%PREFIX%/Library"
if errorlevel 1 exit 1

echo dir /p
cmake --build . --target INSTALL --config %BUILD_CONFIG%
if errorlevel 1 exit 1

copy .\release\_pyopcode.pyd "%PREFIX%\dlls\_pyopcode.pyd"
REM We have to CD twice, because we're still inside build
cd..
cd..

python setup.py bdist
python setup.py install
exit 0
{'fraction_non_alphanumeric': 0.12780133252574197, 'fraction_numerical': 0.010902483343428226, 'mean_word_length': 4.381107491856677, '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': '5653848', 'n_tokens_mistral': 677, 'n_tokens_neox': 625, 'n_words': 142}