<commit_before>Ti.include('/includes/lib/json.i18n.js');

var win = Ti.UI.currentWindow,
	Utils = require('/includes/utils'),
	Database = require('/includes/db'),

view = Ti.UI.createView({
	height: Ti.UI.SIZE,
	top: (Utils.isiPad()) ? 30 : (((Ti.Platform.displayCaps.platformHeight - 70 - 215) / 2) - (180 / 2))
}),

tableView = Ti.UI.createTableView({
	data: [Utils.getTextFieldRow(I('addProcess.skinInfo.name'), I('addProcess.skinInfo.nameHint')), Utils.getTextAreaRow(I('addProcess.skinInfo.description'))],
	style: Ti.UI.iPhone.TableViewStyle.GROUPED,
	backgroundColor: 'transparent',
	rowBackgroundColor: 'white',
	scrollable: false,
	height: 180,
	rowHeight: 45
}),

b_next = Ti.UI.createButton({
	title: I('addProcess.next'),
	enabled: (win.skinIDToEdit != null || win.defaultSkinName != null)
});

//when returning on the name field
tableView.data[0].rows[0].children[1].addEventListener('return', function(e) {
	tableView.data[0].rows[1].children[1].focus();
});

//when returning on the description field
tableView.data[0].rows[1].children[1].addEventListener('return', function(e) {
	b_next.fireEvent('click', {});
});

tableView.data[0].rows[0].children[1].addEventListener('change', function(e) {
	if(e.value == '') {
		b_next.setEnabled(false);
	} else {
		b_next.setEnabled(true);
	}
});

b_next.addEventListener('click', function(e) {
	if(win.skinIDToEdit == null) {
		var win_process = Ti.UI.createWindow({
			title: I('addProcess.process.title'),
			url: 'processing.js',
			backgroundImage: Utils.getBGImage(),
			barColor: Utils.getNavColor(),
			backgroundRepeat: true,
	
			skinUrl: win.skinUrl,
			skinName: tableView.data[0].rows[0].children[1].getValue(),
			skinDesc: tableView.data[0].rows[1].children[1].getValue()
		});
		
		if(Utils.isiPad()) {
			win_process.masterGroup = win.masterGroup;
			win_process.prevWins = [win.prevWins[0], win];
			win.masterGroup.open(win_process);
		} else {
			win_process.container = win.container;<commit_msg>Meh, not actually continuing automatically<commit_after>Ti.include('/includes/lib/json.i18n.js');

var win = Ti.UI.currentWindow,
	Utils = require('/includes/utils'),
	Database = require('/includes/db'),

view = Ti.UI.createView({
	height: Ti.UI.SIZE,
	top: (Utils.isiPad()) ? 30 : (((Ti.Platform.displayCaps.platformHeight - 70 - 215) / 2) - (180 / 2))
}),

tableView = Ti.UI.createTableView({
	data: [Utils.getTextFieldRow(I('addProcess.skinInfo.name'), I('addProcess.skinInfo.nameHint')), Utils.getTextAreaRow(I('addProcess.skinInfo.description'))],
	style: Ti.UI.iPhone.TableViewStyle.GROUPED,
	backgroundColor: 'transparent',
	rowBackgroundColor: 'white',
	scrollable: false,
	height: 180,
	rowHeight: 45
}),

b_next = Ti.UI.createButton({
	title: I('addProcess.next'),
	enabled: (win.skinIDToEdit != null || win.defaultSkinName != null)
});

//when returning on the name field
tableView.data[0].rows[0].children[1].addEventListener('return', function(e) {
	tableView.data[0].rows[1].children[1].focus();
});

tableView.data[0].rows[0].children[1].addEventListener('change', function(e) {
	if(e.value == '') {
		b_next.setEnabled(false);
	} else {
		b_next.setEnabled(true);
	}
});

b_next.addEventListener('click', function(e) {
	if(win.skinIDToEdit == null) {
		var win_process = Ti.UI.createWindow({
			title: I('addProcess.process.title'),
			url: 'processing.js',
			backgroundImage: Utils.getBGImage(),
			barColor: Utils.getNavColor(),
			backgroundRepeat: true,
	
			skinUrl: win.skinUrl,
			skinName: tableView.data[0].rows[0].children[1].getValue(),
			skinDesc: tableView.data[0].rows[1].children[1].getValue()
		});
		
		if(Utils.isiPad()) {
			win_process.masterGroup = win.masterGroup;
			win_process.prevWins = [win.prevWins[0], win];
			win.masterGroup.open(win_process);
		} else {
			win_process.container = win.container;
{'fraction_non_alphanumeric': 0.1832940560356114, 'fraction_numerical': 0.019114951557999475, 'mean_word_length': 5.082802547770701, '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': '954917', 'n_tokens_mistral': 1446, 'n_tokens_neox': 1332, 'n_words': 204}