<commit_before>-- Notes : For windows, msbuild.exe must be in path (ex: C:\Windows\Microsoft.NET\Framework64\v4.0.30319) and VCTargetsPath to something such as C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0

dofile("args.lua")

if isBuildSystem == true then
    print("Cleaning all output directories")
    os.rmdir("../tmp")
    os.rmdir("../output")
    
    -- Java directories unfortunatly output to /target because of eclipse
    local srcFolders = os.matchdirs("../src/*")
    for matchCount = 1, #srcFolders do
        os.rmdir(srcFolders[matchCount] .. "/target" )
    end
    
    local srcFolders = os.matchdirs("../extern/*")
    for matchCount = 1, #srcFolders do
        os.rmdir(srcFolders[matchCount] .. "/target" )
    end
end

if string.startswith(compiler, "vs") then
    executeCmd("cmd /C ..\\projects\\launcher.bat " .. solutionName .. " noide")

    executeCmd("msbuild \"" .. projectPath .. "/" .. solutionName .. ".sln\" /p:Configuration=" .. configuration)
elseif string.startswith(compiler, "xcode") then
    executeCmd("../projects/launcher " .. solutionName .. " noide" )
elseif string.find(compiler , "gmake") ~= nil then
   executeCmd("../projects/launcher.sh " .. solutionName .. " noide" )

   executeCmd("cd " .. projectPath .. " && make config=" .. configuration )
end
<commit_msg>Search for msbuild instead of forcing user to add msbuild to path.<commit_after>dofile("args.lua")

if isBuildSystem == true then
    print("Cleaning all output directories")
    os.rmdir("../tmp")
    os.rmdir("../output")
    
    -- Java directories unfortunatly output to /target because of eclipse
    local srcFolders = os.matchdirs("../src/*")
    for matchCount = 1, #srcFolders do
        os.rmdir(srcFolders[matchCount] .. "/target" )
    end
    
    local srcFolders = os.matchdirs("../extern/*")
    for matchCount = 1, #srcFolders do
        os.rmdir(srcFolders[matchCount] .. "/target" )
    end
end

if string.startswith(compiler, "vs") then
    executeCmd("cmd /C ..\\projects\\launcher.bat " .. solutionName .. " noide")
	
	local folders = os.matchdirs(os.getenv("SystemRoot") .. "/Microsoft.NET/Framework64/v*")
	-- Last folder should be highest version
	msbuildversion = folders[#folders]
    executeCmd( msbuildversion .. "/msbuild \"" .. projectPath .. "/" .. solutionName .. ".sln\" /p:Configuration=" .. configuration)
elseif string.startswith(compiler, "xcode") then
    executeCmd("../projects/launcher " .. solutionName .. " noide" )
elseif string.find(compiler , "gmake") ~= nil then
   executeCmd("../projects/launcher.sh " .. solutionName .. " noide" )

   executeCmd("cd " .. projectPath .. " && make config=" .. configuration )
end

{'fraction_non_alphanumeric': 0.16144668158090977, 'fraction_numerical': 0.0070842654735272185, 'mean_word_length': 3.022488755622189, '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': '7080583', 'n_tokens_mistral': 878, 'n_tokens_neox': 848, 'n_words': 203}