<commit_before>var app = {};
app.ctrls={
    'init':function(){
        if(as.dvice_model == 'MAG200'){
            views.home.child[0].child[2].attrs.id = 'button_search';
            views.home.child[0].child[2].attrs.html = '{$cat_search$}';
            views.home.child.splice(1, 1);
        }
        app.ctrls.drawScreen(
            function(){
                setTimeout(
                    function(){
                        app.views._loading.hide();
                    },
                    150
                );
            }
        );
        log($('button_search').style.margin);
        log(as.dvice_model);
        if(as.dvice_model == 'MAG200'){
            //$('page_home').getElementsByClassName('inner_box')[0].removeChild($('button_images'));
            $('button_search').style.position = 'static';
            $('button_search').style.cssFloat = 'left';
            $('button_search').style.margin = as.actualSize==1080?'30px 0 0 25px':'10px';
        }
    },
    'drawScreen':function(callback){
        for(var key in views){
            log('key='+key)
            if(views.hasOwnProperty(key) && key!='components'){
                app.views.addElement(views[key],document.body);
                if(key=='loading') {
                    app.views._loading.show();
                }
                
            }
        }
        app.views.addElement(volobj,document.body);
        //app.classes.list.ctrls.init();
        callback.call(this);
    },
    "getContent":function(feed,callback,no_clean){
        app.models.getHTMLFromUrl(feed,callback);
    },
    "getCatListFromHTML":function(html){
        log('Top categories: ---');
        var cats=[],
            source_html_splited,
            source_html;
        source_html = /include_0(.*?)table/img.exec(html)[0].toString();
        source_html_splited = source_html.split('</td>');
        for(var i=0;i<source_html_splited.length;i++){
            //var result = /href='(\/view\/.*?)'\><b>(.*?)<\/b><\/a/igm.exec(source_html_splited[i]);
            var result = /href='(\/ru\/video\/.*?)'\><b>(.*?)<\/b><\/a/igm.exec(source_html_splited[i]);
            if(result==null){continue;}
            cats.push({
                "url":'http://www.ex.ua'+result [1],
                "name":result[2],
            });
        }
        $(as.navig).getElementsByClassName('first')[0].show();
        log('branch: '+branch);
        $('navigation_s').getElementsByClassName('first')[0].html('/ '+lang['cat_'+branch]);
        $('navigation').getElementsByClassName('first')[0].html('/ '+lang['cat_'+branch]);
        $(as.navig).getElementsByClassName('second')[0].style.display='none';
        
        //app.classes.list.views.fill.simple(cats);<commit_msg>Fix ex.ua audio (issue #1110)<commit_after>var app = {};
app.ctrls={
    'init':function(){
        if(as.dvice_model == 'MAG200'){
            views.home.child[0].child[2].attrs.id = 'button_search';
            views.home.child[0].child[2].attrs.html = '{$cat_search$}';
            views.home.child.splice(1, 1);
        }
        app.ctrls.drawScreen(
            function(){
                setTimeout(
                    function(){
                        app.views._loading.hide();
                    },
                    150
                );
            }
        );
        log($('button_search').style.margin);
        log(as.dvice_model);
        if(as.dvice_model == 'MAG200'){
            //$('page_home').getElementsByClassName('inner_box')[0].removeChild($('button_images'));
            $('button_search').style.position = 'static';
            $('button_search').style.cssFloat = 'left';
            $('button_search').style.margin = as.actualSize==1080?'30px 0 0 25px':'10px';
        }
    },
    'drawScreen':function(callback){
        for(var key in views){
            log('key='+key)
            if(views.hasOwnProperty(key) && key!='components'){
                app.views.addElement(views[key],document.body);
                if(key=='loading') {
                    app.views._loading.show();
                }
                
            }
        }
        app.views.addElement(volobj,document.body);
        //app.classes.list.ctrls.init();
        callback.call(this);
    },
    "getContent":function(feed,callback,no_clean){
        app.models.getHTMLFromUrl(feed,callback);
    },
    "getCatListFromHTML":function(html){
        log('Top categories: ---');
        var cats=[],
            source_html_splited,
            source_html;
        source_html = /include_0(.*?)table/img.exec(html)[0].toString();
        source_html_splited = source_html.split('</td>');
        for(var i=0;i<source_html_splited.length;i++){
            var result1 = /href='(\/view\/.*?)'\><b>(.*?)<\/b><\/a/igm.exec(source_html_splited[i]);
            var result2 = /href='(\/ru\/video\/.*?)'\><b>(.*?)<\/b><\/a/igm.exec(source_html_splited[i]);
            if(result1==null && result2==null){continue;}
            var result = result1 || result2;
            cats.push({
                "url":'http://www.ex.ua'+result [1],
                "name":result[2],
            });
        }
        $(as.navig).getElementsByClassName('first')[0].show();
        log('branch: '+branch);
        $('navigation_s').getElementsByClassName('first')[0].html('/ '+lang['cat_'+branch]);
        $('navigation').getElementsByClassName('first')[0].html('/ '+lang['cat_'+branch]);
        $(as.navig).getElementsByClassName('second')[0].style.display='none';
        
        //app.classes.list.views.fill.simple(cats);
{'fraction_non_alphanumeric': 0.19250761785266177, 'fraction_numerical': 0.015056461731493099, 'mean_word_length': 1.936842105263158, 'pattern_counts': {'":': 8, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7352169', 'n_tokens_mistral': 1751, 'n_tokens_neox': 1685, 'n_words': 170}