<commit_before>var spawn = require('child_process').spawn,
	photoshopPath = '/Applications/Adobe\ Photoshop\ CC/Adobe\ Photoshop\ CC.app',
	illustratorPath = '/Applications/Adobe\ Illustrator\ CC/Adobe\ Illustrator.app',
	prompt = require('prompt');

function runJsx(app, jsxFile, cb) {
	// open -a APPPATH SCRIPTPATH
	if (app == 'photoshop') {
		appPath = photoshopPath
	} else if (app == 'illustrator') {
		appPath = illustratorPath
	}

	prompt.start();

	var cmd = 'open',
		params = ['-a', appPath, __dirname + '/../jsx/' + jsxFile + '.jsx'],
		jsxProcess = spawn(cmd, params);

	jsxProcess.stdout.on('data', function (data) {
		console.log('stdout: ' + data);
	});

	jsxProcess.stderr.on('data', function (data) {
		console.log('stderr: ' + data);
	});

	jsxProcess.on('exit', function(code) {<commit_msg>Update adobe tools to point to CC 2014 apps<commit_after>var spawn = require('child_process').spawn,
	photoshopPath = '/Applications/Adobe\ Photoshop\ CC\ 2014/Adobe\ Photoshop\ CC\ 2014.app',
	illustratorPath = '/Applications/Adobe\ Illustrator\ CC\ 2014/Adobe\ Illustrator.app',
	prompt = require('prompt');

function runJsx(app, jsxFile, cb) {
	// open -a APPPATH SCRIPTPATH
	if (app == 'photoshop') {
		appPath = photoshopPath
	} else if (app == 'illustrator') {
		appPath = illustratorPath
	}

	prompt.start();

	var cmd = 'open',
		params = ['-a', appPath, __dirname + '/../jsx/' + jsxFile + '.jsx'],
		jsxProcess = spawn(cmd, params);

	jsxProcess.stdout.on('data', function (data) {
		console.log('stdout: ' + data);
	});

	jsxProcess.stderr.on('data', function (data) {
		console.log('stderr: ' + data);
	});

	jsxProcess.on('exit', function(code) {
{'fraction_non_alphanumeric': 0.17925659472422062, 'fraction_numerical': 0.009592326139088728, 'mean_word_length': 4.135384615384615, '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': '1729370', 'n_tokens_mistral': 658, 'n_tokens_neox': 587, 'n_words': 133}