<commit_before>
import os
import json

# Get project settings
projectData = open("project.json")
projectConfig = json.load(projectData)
buildVersion = projectConfig["version"]
buildCultures = projectConfig["cultures"]
buildConfiguration = projectConfig["configuration"]
projectData.close()

# Get system settings
systemData = open("system.json")
systemConfig = json.load(systemData)
buildPlatform = systemConfig["platform"]
inputDir = systemConfig["inputDir"]
outputDir = systemConfig["outputDir"]
engineDir = systemConfig["engineDir"]
systemData.close()

# Generate paths
inputProject = os.path.join(inputDir, "HeliumRain.uproject")
buildTool = os.path.join(engineDir, "Engine", "Build", "BatchFiles", "RunUAT.bat")

# Generate full command line
commandLine = buildTool
commandLine += " BuildCookRun -project=" + inputProject + " -nocompile -nocompileeditor -installed -nop4 -clientconfig=" + buildConfiguration
commandLine += " -cook -allmaps -stage -archive -archivedirectory=" + outputDir
commandLine += " -package -ue4exe=UE4Editor-Cmd.exe -build -pak -prereqs -distribution -nodebuginfo -createreleaseversion=" + buildVersion
commandLine += " -utf8output -CookCultures=" + buildCultures

# Call
os.system(commandLine)<commit_msg>Update build script for linux<commit_after>#!/usr/bin/env python
import os
import json

# Get project settings
projectData = open("project.json")
projectConfig = json.load(projectData)
buildVersion = projectConfig["version"]
buildCultures = projectConfig["cultures"]
buildConfiguration = projectConfig["configuration"]
projectData.close()

# Get system settings
systemData = open("system.json")
systemConfig = json.load(systemData)
buildPlatform = systemConfig["platform"]
inputDir = systemConfig["inputDir"]
outputDir = systemConfig["outputDir"]
engineDir = systemConfig["engineDir"]
systemData.close()

# Generate paths
inputProject = os.path.join(inputDir, "HeliumRain.uproject")
if buildPlatform == "Linux":
	buildTool = os.path.join(engineDir, "Engine", "Build", "BatchFiles", "RunUAT.sh")
else:
	buildTool = os.path.join(engineDir, "Engine", "Build", "BatchFiles", "RunUAT.bat")

# Generate full command line
commandLine = buildTool
commandLine += " BuildCookRun -project=" + inputProject + " -nocompile"
if buildPlatform == "Linux":
	commandLine += " -LinuxNoEditor"
else:
	commandLine += " -nocompileeditor -installed"
commandLine += "-nop4 -clientconfig=" + buildConfiguration
commandLine += " -cook -allmaps -stage -archive -archivedirectory=" + outputDir
commandLine += " -package"
if buildPlatform == "Linux":
	commandLine += " -ue4exe=UE4Editor -targetplatform=Linux"
else:
	commandLine += " -ue4exe=UE4Editor-Cmd.exe"
commandLine += " -build -pak -prereqs -distribution -nodebuginfo -createreleaseversion=" + buildVersion
commandLine += " -utf8output -CookCultures=" + buildCultures

# Call
os.system(commandLine)
{'fraction_non_alphanumeric': 0.13137665967854648, 'fraction_numerical': 0.0034940600978336828, 'mean_word_length': 6.514435695538058, 'pattern_counts': {'":': 3, '<': 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': '762187', 'n_tokens_mistral': 868, 'n_tokens_neox': 836, 'n_words': 201}