<commit_before>var childProcess = require("child_process"), 
	path = require("path"),
	fileUtils = require("./fileUtils");

var verbose = fileUtils.verbose;
var iphoneSDK = null;

var _ = require("underscore");
function compileProject (environment, dir, callback, errback) {
	verbose = environment.verbose;
	var directory = path.join(dir, environment["ios.dir"] || "ios");
	if (!path.existsSync(directory)) {
		console.log("# cd " + directory + " # directory doesn't exist");
		callback();
		return;
	}

	if (!iphoneSDK) {
		childProcess.exec("xcodebuild -showsdks | grep -o 'iphoneos*.*' | tail -n 1", function (error, stdout, stderr) {
			if (!error) {
				iphoneSDK = stdout.toString().replace(/[\n\s]/g, "");
				compileProject (environment, dir, callback, errback);
			} else {
				errback(error);
			}
			
		});
		return;
	}

	var cwd = process.cwd();
	
	console.log("cd \"" + directory + "\"");
	var args = ["xcodebuild"];

	if (iphoneSDK) {
		args.push("-sdk " + iphoneSDK);
	}
	
	if (environment["ios.project"]) {
		args.push("-project " + environment["ios.project"]);		
	}
	
	if (environment["ios.code_sign_identity"]) {
		args.push("CODE_SIGN_IDENTITY=\"" + environment["ios.code_sign_identity"] + "\"");
	}

	if (environment["ios.other_code_sign_flags"]) {
		args.push("OTHER_CODE_SIGN_FLAGS=\"" + environment["ios.other_code_sign_flags"] + "\"");
	}

	if (environment["ios.provisioning_profile"]) {
		args.push("PROVISIONING_PROFILE=\"" + environment["ios.ios.provisioning_profile"] + "\"");
	}
	
	if (environment["ios.workspace"]) {
		args.push("-workspace " + environment["ios.workspace"]);
	}
	
	if (environment["ios.target"]) {
		args.push("-target " + environment["ios.target"]);	
	}
	
	if (environment["ios.configuration"]) {<commit_msg>Correcting argument<commit_after>var childProcess = require("child_process"), 
	path = require("path"),
	fileUtils = require("./fileUtils");

var verbose = fileUtils.verbose;
var iphoneSDK = null;

var _ = require("underscore");
function compileProject (environment, dir, callback, errback) {
	verbose = environment.verbose;
	var directory = path.join(dir, environment["ios.dir"] || "ios");
	if (!path.existsSync(directory)) {
		console.log("# cd " + directory + " # directory doesn't exist");
		callback();
		return;
	}

	if (!iphoneSDK) {
		childProcess.exec("xcodebuild -showsdks | grep -o 'iphoneos*.*' | tail -n 1", function (error, stdout, stderr) {
			if (!error) {
				iphoneSDK = stdout.toString().replace(/[\n\s]/g, "");
				compileProject (environment, dir, callback, errback);
			} else {
				errback(error);
			}
			
		});
		return;
	}

	var cwd = process.cwd();
	
	console.log("cd \"" + directory + "\"");
	var args = ["xcodebuild"];

	if (iphoneSDK) {
		args.push("-sdk " + iphoneSDK);
	}
	
	if (environment["ios.project"]) {
		args.push("-project " + environment["ios.project"]);		
	}
	
	if (environment["ios.code_sign_identity"]) {
		args.push("CODE_SIGN_IDENTITY=\"" + environment["ios.code_sign_identity"] + "\"");
	}

	if (environment["ios.other_code_sign_flags"]) {
		args.push("OTHER_CODE_SIGN_FLAGS=\"" + environment["ios.other_code_sign_flags"] + "\"");
	}

	if (environment["ios.provisioning_profile"]) {
		args.push("PROVISIONING_PROFILE=\"" + environment["ios.provisioning_profile"] + "\"");
	}
	
	if (environment["ios.workspace"]) {
		args.push("-workspace " + environment["ios.workspace"]);
	}
	
	if (environment["ios.target"]) {
		args.push("-target " + environment["ios.target"]);	
	}
	
	if (environment["ios.configuration"]) {
{'fraction_non_alphanumeric': 0.19550369948776322, 'fraction_numerical': 0.0005691519635742744, 'mean_word_length': 4.432766615146831, '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': '2256236', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1188, 'n_words': 205}