<commit_before>var stackUndo = [];
var stackRedo = [];
var lastState = null;
function addAction() {
	if (stackRedo.length > 0) {
		stackRedo=[];
	}
	if (lastState != null) {
			stackUndo.push(lastState);
	}
	lastState = JSON.stringify(cur_ns);
	if (stackUndo.length > 5) {
		stackUndo.splice(0, 1);
	}
}

function redo() {
	if (stackRedo.length > 0) {
		var doAction = stackRedo.pop();<commit_msg>make # undo_ step to 10<commit_after>var stackUndo = [];
var stackRedo = [];
var lastState = null;
function addAction() {
	if (stackRedo.length > 0) {
		stackRedo=[];
	}
	if (lastState != null) {
		stackUndo.push(lastState);
	}
	lastState = JSON.stringify(cur_ns);
	if (stackUndo.length > 10) {
		stackUndo.splice(0, 1);
	}
}

function redo() {
	if (stackRedo.length > 0) {
		var doAction = stackRedo.pop();
{'fraction_non_alphanumeric': 0.1654228855721393, 'fraction_numerical': 0.01616915422885572, 'mean_word_length': 4.062893081761007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2042693', 'n_tokens_mistral': 342, 'n_tokens_neox': 320, 'n_words': 67}