<commit_before>@FOR /F "tokens=* USEBACKQ" %%n IN (`%mesa%\llvm\%abi%-%llvmlink%\bin\llvm-config --libnames bitwriter engine mcdisassembler mcjit`) DO @SET llvmlibs=%%~n
@FOR /F "tokens=* USEBACKQ" %%o IN (`%mesa%\llvm\%abi%-%llvmlink%\bin\llvm-config --version`) DO @SET llvmver=%%~o
@set llvmlibs=%llvmlibs:.lib=%
@set llvmlibs='%llvmlibs: =', '%'
@IF NOT EXIST %mesa%\mesa\subprojects\llvm md %mesa%\mesa\subprojects\llvm
@echo project('llvm', ['cpp']) > %mesa%\mesa\subprojects\llvm\meson.build
@echo. >> %mesa%\mesa\subprojects\llvm\meson.build
@echo cpp = meson.get_compiler('cpp') >> %mesa%\mesa\subprojects\llvm\meson.build
@echo. >> %mesa%\mesa\subprojects\llvm\meson.build
@echo _deps = [] >> %mesa%\mesa\subprojects\llvm\meson.build
@echo _search = join_paths('%LLVM:\=\\%', 'lib') >> %mesa%\mesa\subprojects\llvm\meson.build
@echo foreach d : [%llvmlibs%] >> %mesa%\mesa\subprojects\llvm\meson.build
@echo   _deps += cpp.find_library(d, dirs : _search) >> %mesa%\mesa\subprojects\llvm\meson.build
@echo endforeach >> %mesa%\mesa\subprojects\llvm\meson.build
@echo. >> %mesa%\mesa\subprojects\llvm\meson.build
@echo ext_llvm = declare_dependency( >> %mesa%\mesa\subprojects\llvm\meson.build
@echo   include_directories : include_directories(join_paths('%LLVM:\=\\%','include')), >> %mesa%\mesa\subprojects\llvm\meson.build
@echo   dependencies : _deps, >> %mesa%\mesa\subprojects\llvm\meson.build
@echo   version : '%llvmver%', >> %mesa%\mesa\subprojects\llvm\meson.build
@echo ) >> %mesa%\mesa\subprojects\llvm\meson.build
@echo. >> %mesa%\mesa\subprojects\llvm\meson.build
@echo irbuilder_h = files(join_paths('%LLVM:\=\\%','include/llvm/IR/IRBuilder.h')) >> %mesa%\mesa\subprojects\llvm\meson.build<commit_msg>LLVM wrap generator: Replace \ with / instead \\ in LLVM variable It is consistent with second argument of join_paths() function<commit_after>@FOR /F "tokens=* USEBACKQ" %%n IN (`%mesa%\llvm\%abi%-%llvmlink%\bin\llvm-config --libnames bitwriter engine mcdisassembler mcjit`) DO @SET llvmlibs=%%~n
@FOR /F "tokens=* USEBACKQ" %%o IN (`%mesa%\llvm\%abi%-%llvmlink%\bin\llvm-config --version`) DO @SET llvmver=%%~o
@set llvmlibs=%llvmlibs:.lib=%
@set llvmlibs='%llvmlibs: =', '%'
@IF NOT EXIST %mesa%\mesa\subprojects\llvm md %mesa%\mesa\subprojects\llvm
@echo project('llvm', ['cpp']) > %mesa%\mesa\subprojects\llvm\meson.build
@echo. >> %mesa%\mesa\subprojects\llvm\meson.build
@echo cpp = meson.get_compiler('cpp') >> %mesa%\mesa\subprojects\llvm\meson.build
@echo. >> %mesa%\mesa\subprojects\llvm\meson.build
@echo _deps = [] >> %mesa%\mesa\subprojects\llvm\meson.build
@echo _search = join_paths('%LLVM:\=/%', 'lib') >> %mesa%\mesa\subprojects\llvm\meson.build
@echo foreach d : [%llvmlibs%] >> %mesa%\mesa\subprojects\llvm\meson.build
@echo   _deps += cpp.find_library(d, dirs : _search) >> %mesa%\mesa\subprojects\llvm\meson.build
@echo endforeach >> %mesa%\mesa\subprojects\llvm\meson.build
@echo. >> %mesa%\mesa\subprojects\llvm\meson.build
@echo ext_llvm = declare_dependency( >> %mesa%\mesa\subprojects\llvm\meson.build
@echo   include_directories : include_directories(join_paths('%LLVM:\=/%','include')), >> %mesa%\mesa\subprojects\llvm\meson.build
@echo   dependencies : _deps, >> %mesa%\mesa\subprojects\llvm\meson.build
@echo   version : '%llvmver%', >> %mesa%\mesa\subprojects\llvm\meson.build
@echo ) >> %mesa%\mesa\subprojects\llvm\meson.build
@echo. >> %mesa%\mesa\subprojects\llvm\meson.build
@echo irbuilder_h = files(join_paths('%LLVM:\=/%','include/llvm/IR/IRBuilder.h')) >> %mesa%\mesa\subprojects\llvm\meson.build
{'fraction_non_alphanumeric': 0.20449438202247192, 'fraction_numerical': 0.0, 'mean_word_length': 5.474545454545455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 69, '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': '347101', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1390, 'n_words': 208}