<commit_before>var gitPull = {
	get: function (req, res) {
		res.send("Can't pull from GET request!");
	},
	post: function (req, res) {
		console.log("Pulling...");
		run_cmd("git stash", function() {
			run_cmd("git pull origin master", function() {
				run_cmd("git stash apply");		
			});	
		});
		
		console.log("Pulled!");
		res.send("Pulled!", 200);
	}
}

function run_cmd(cmd, callback) {
    var sys = require('sys')
	var exec = require('child_process').exec;
	function puts(error, stdout, stderr) { sys.puts(stdout) }
	exec(cmd, puts, callback);
}

exports.gitPull = gitPull;<commit_msg>GitPull fix<commit_after>var gitPull = {
	get: function (req, res) {
		res.send("Can't pull from GET request!");
	},
	post: function (req, res) {
		console.log("Pulling...");
		run_cmd("git pull");
		// run_cmd("git stash", function() {
		// 	run_cmd("git pull origin master", function() {
		// 		run_cmd("git stash apply");		
		// 	});	
		// });
		
		console.log("Pulled!");
		res.send("Pulled!", 200);
	}
}

function run_cmd(cmd) {
    var sys = require('sys')
	var exec = require('child_process').exec;
	function puts(error, stdout, stderr) { sys.puts(stdout) }
	exec(cmd, puts);
}

exports.gitPull = gitPull;
{'fraction_non_alphanumeric': 0.19288079470198677, 'fraction_numerical': 0.004966887417218543, 'mean_word_length': 3.7786561264822134, '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': '1511025', 'n_tokens_mistral': 495, 'n_tokens_neox': 439, 'n_words': 98}