<commit_before><?php

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

class Article_View_Image extends ArticleComponent {	

    public $debug;
    public $vars;
    public $imagesobj;

    public function template() {
        $obj = new StdClass;
        $obj->type = ( $this->debug == 1 ? 'msg-plain' : 'image' );
        $obj->content = $this->content;

        $params = array(
            'onclick', 'variable','crop','image_fallback'
        );

        foreach ($params as $param) {
            if ( isset($this->options[$param]) ) {
                $obj->$param  = $this->options[$param];
            }
        }

        return $obj;<commit_msg>selected_state added for image also<commit_after><?php

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

class Article_View_Image extends ArticleComponent {	

    public $debug;
    public $vars;
    public $imagesobj;

    public function template() {
        $obj = new StdClass;
        $obj->type = ( $this->debug == 1 ? 'msg-plain' : 'image' );
        $obj->content = $this->content;

        $params = array(
            'onclick', 'variable','crop','image_fallback','selected_state'
        );

        foreach ($params as $param) {
            if ( isset($this->options[$param]) ) {
                $obj->$param  = $this->options[$param];
            }
        }

        return $obj;
{'fraction_non_alphanumeric': 0.1556842867487328, 'fraction_numerical': 0.001448225923244026, 'mean_word_length': 2.2365339578454333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '6945974', 'n_tokens_mistral': 413, 'n_tokens_neox': 401, 'n_words': 81}