<commit_before>$(function() {
    if(jQuery('#arbo-select').size() > 0) {
        
        $('#arbo-select').on('change',function()
        {
            if($(this[this.selectedIndex]).attr('data-controller') == "") {
                window.location.href = window.location.origin + '/admin/translate'
                    + '?locale=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-lang'));
            } else {
                window.location.href = window.location.origin + '/admin/translate'
                    + '?controller=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-controller')) 
                    + '&action=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-action'))
                    + '&locale=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-lang')) ;
            }
        });
        $('#lang-select').on('change',function()
        {
            window.location.href = window.location.origin + '/admin/translate'
                + '?controller=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-controller')) 
                + '&action=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-action'))
                + '&locale=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-lang')) ;
        });
        $('#translate-keys textarea').on('keyup', function() {
            var key = $(this).parent().parent().find('td').first().html().trim();
            var value = $(this).val();
            var oldValue = $(this).parent().find('input[type=hidden]').val();
            var oldValueInput = $(this).parent().find('input[type=hidden]');

            $(document.getElementById('translate-iframe').contentWindow.document.getElementsByTagName('*')).each(function(i, e){ 
                $(this).contents().each(function(i, e){<commit_msg>fix ie 9 path<commit_after>$(function() {
    if(jQuery('#arbo-select').size() > 0) {
        
        $('#arbo-select').on('change',function()
        {
            if($(this[this.selectedIndex]).attr('data-controller') == "") {
                window.location.href = '/admin/translate'
                    + '?locale=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-lang'));
            } else {
                window.location.href = '/admin/translate'
                    + '?controller=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-controller')) 
                    + '&action=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-action'))
                    + '&locale=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-lang')) ;
            }
        });
        $('#lang-select').on('change',function()
        {
            window.location.href = '/admin/translate'
                + '?controller=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-controller')) 
                + '&action=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-action'))
                + '&locale=' + encodeURIComponent($(this[this.selectedIndex]).attr('data-lang')) ;
        });
        $('#translate-keys textarea').on('keyup', function() {
            var key = $(this).parent().parent().find('td').first().html().trim();
            var value = $(this).val();
            var oldValue = $(this).parent().find('input[type=hidden]').val();
            var oldValueInput = $(this).parent().find('input[type=hidden]');

            $(document.getElementById('translate-iframe').contentWindow.document.getElementsByTagName('*')).each(function(i, e){ 
                $(this).contents().each(function(i, e){
{'fraction_non_alphanumeric': 0.20232493772488236, 'fraction_numerical': 0.0008303349017437033, 'mean_word_length': 2.5362035225048922, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7564906', 'n_tokens_mistral': 977, 'n_tokens_neox': 979, 'n_words': 97}