<commit_before><?php

Yii::import('application.modules.aelogic.article.components.*');

class ArticleBottommenu extends ArticleComponent {


    public function template(){

        foreach ($this->factoryobj->menus['menus'] as $menu){
            if($menu['id'] == $this->factoryobj->bottom_menu_id){
                $menudata = $menu['items'];
            }
        }

        if(!isset($menudata)){
            $output[] = $this->factoryobj->getText('Menu not defined correctly',array('text-align' => 'center'));
            return $output;
        }

        $count = count($menudata);
        $counter = 1;

        foreach($menudata as $menuitem){
            /* show flag */
            if($menuitem['slug'] == 'mailbox' AND $this->factoryobj->sessionGet('msgcount')){
                $menuitem['flag'] = $this->factoryobj->msgcount;
            }
            $column[] = $this->getItem($menuitem,$count,$counter);
            $counter++;
        }

        if(isset($column)){
            $row[] = $this->factoryobj->getText('',array('height' => '2', 'background-color' => $this->factoryobj->color_topbar_hilite));<commit_msg>flagging fix<commit_after><?php

Yii::import('application.modules.aelogic.article.components.*');

class ArticleBottommenu extends ArticleComponent {


    public function template(){

        foreach ($this->factoryobj->menus['menus'] as $menu){
            if($menu['id'] == $this->factoryobj->bottom_menu_id){
                $menudata = $menu['items'];
            }
        }

        if(!isset($menudata)){
            $output[] = $this->factoryobj->getText('Menu not defined correctly',array('text-align' => 'center'));
            return $output;
        }

        $count = count($menudata);
        $counter = 1;

        foreach($menudata as $menuitem){
            /* show flag */
            if($menuitem['slug'] == 'mailbox' AND $this->factoryobj->msgcount){
                $menuitem['flag'] = $this->factoryobj->msgcount;
            }
            $column[] = $this->getItem($menuitem,$count,$counter);
            $counter++;
        }

        if(isset($column)){
            $row[] = $this->factoryobj->getText('',array('height' => '2', 'background-color' => $this->factoryobj->color_topbar_hilite));
{'fraction_non_alphanumeric': 0.1810918774966711, 'fraction_numerical': 0.001775410563692854, 'mean_word_length': 2.404833836858006, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '811277', 'n_tokens_mistral': 647, 'n_tokens_neox': 638, 'n_words': 100}