<commit_before>var missing_translations = new Object();
translate_init = function() {
	missing_translations = new Object();
}

translate_add_id = function(id, org) {
	if ($(id)) missing_translations[id] = org;
}

translate_first_on_the_list = function() {
	for (var id in missing_translations) {
		if ($(id).innerHTML) continue;
		lang_translate(missing_translations[id], id);
		return;
	}
	document.querySelectorAll(".nav_button")[2].down("a").onclick(); // A bit lazy way
}

lang_translate = function (original, span_id) {
        var span = jq('#'+span_id);
	var ret = prompt("Translate: "+original, span.html());<commit_msg>[FEATURE] Base/Lang - prototype to jquery<commit_after>var missing_translations = new Object();
translate_init = function() {
	missing_translations = new Object();
}

translate_add_id = function(id, org) {
	if (jq('#'+id).length) missing_translations[id] = org;
}

translate_first_on_the_list = function() {
	for (var id in missing_translations) {
		if (jq('#'+id).html()   ) continue;
		lang_translate(missing_translations[id], id);
		return;
	}
	jq(".nav_button").get(2).find("a").click();
}

lang_translate = function (original, span_id) {
        var span = jq('#'+span_id);
	var ret = prompt("Translate: "+original, span.html());
{'fraction_non_alphanumeric': 0.16402535657686212, 'fraction_numerical': 0.001584786053882726, 'mean_word_length': 5.476923076923077, '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': '2482302', 'n_tokens_mistral': 430, 'n_tokens_neox': 418, 'n_words': 91}