<commit_before>function action_publish_right() {
	$('Form_EditForm_action_publish').value = 'Publishing...';
	$('Form_EditForm_action_publish').className = 'action loading';
	var publish = true;
	$('Form_EditForm').save(false, null, 'save', publish);
}
function action_revert_right() {
	$('Form_EditForm_action_unpublish').value = 'Unpublishing...';
	$('Form_EditForm_action_unpublish').className = 'action loading';
	Ajax.SubmitForm('Form_EditForm', 'action_revert', {
		onSuccess : Ajax.Evaluator,
		onFailure : function(response) {
			errorMessage('Error reverting to live content', response);
		}
	});
}
/*function action_submit_right() {
	$('action_submit_options').configure('CanApprove', 'Awaiting editor approval');
	$('action_submit_options').toggle();
}*/
function action_reject_right() {
	$('action_submit_options').configure('CanReject', 'Content declined');
	$('action_submit_options').toggle();
}
function action_submit_right() {
	$('action_submit_options').configure('CanPublish', 'Awaiting final approval');
	$('action_submit_options').toggle();
}
function action_rollback_right() {
	var options = {
		OK: function() {
			var pageID = $('Form_EditForm').elements.ID.value;
		
			Ajax.SubmitForm('Form_EditForm', 'action_rollback', {
				onSuccess : function(response) {<commit_msg>elofgren: BUGFIX: Fix trac ticket: #66 Error when "Restore" button is clicked after a page is "Removed from the draft site" http://support.silverstripe.com/gsoc/ticket/66  (merged from branches/gsoc)<commit_after>function action_publish_right() {
	$('Form_EditForm_action_publish').value = 'Publishing...';
	$('Form_EditForm_action_publish').className = 'action loading';
	var publish = true;
	$('Form_EditForm').save(false, null, 'save', publish);
}
function action_revert_right() {
	$('Form_EditForm_action_revert').value = 'Restoring...';
	$('Form_EditForm_action_revert').className = 'action loading';
	Ajax.SubmitForm('Form_EditForm', 'action_revert', {
		onSuccess : Ajax.Evaluator,
		onFailure : function(response) {
			errorMessage('Error reverting to live content', response);
		}
	});
}
/*function action_submit_right() {
	$('action_submit_options').configure('CanApprove', 'Awaiting editor approval');
	$('action_submit_options').toggle();
}*/
function action_reject_right() {
	$('action_submit_options').configure('CanReject', 'Content declined');
	$('action_submit_options').toggle();
}
function action_submit_right() {
	$('action_submit_options').configure('CanPublish', 'Awaiting final approval');
	$('action_submit_options').toggle();
}
function action_rollback_right() {
	var options = {
		OK: function() {
			var pageID = $('Form_EditForm').elements.ID.value;
		
			Ajax.SubmitForm('Form_EditForm', 'action_rollback', {
				onSuccess : function(response) {
{'fraction_non_alphanumeric': 0.16275712739083364, 'fraction_numerical': 0.001443522194153735, 'mean_word_length': 6.92, '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': '7559699', 'n_tokens_mistral': 917, 'n_tokens_neox': 874, 'n_words': 156}