<commit_before><?php

namespace tests\web\admin\ngrest\plugins;

class ImageTest extends \tests\web\BasePlugin
{
    public function testPlugin()
    {
        $text = new \admin\ngrest\plugins\Image();
        $this->assertEquals('<span>{{item.}}</span>', $this->renderListHtml($text));
        $this->assertEquals('<zaa-image-upload fieldid="" fieldname="" model="" label="" i18n="" options=\'{"no_filter":false}\'></zaa-image-upload>', $this->renderCreateHtml($text));
        $this->assertEquals('<zaa-image-upload fieldid="" fieldname="" model="" label="" i18n="" options=\'{"no_filter":false}\'></zaa-image-upload>', $this->renderUpdateHtml($text));

        /* @todo: test against real config values 
        $text->setConfig('id', 'foo', 'bar', 'baz', 12);
        $this->assertEquals("<span>{{item.}}</span>", $this->renderListHtml($text));
        $this->assertEquals('<zaa-text fieldid="" fieldname="" model="" label="" grid="" placeholder=""></zaa-text>', $this->renderCreateHtml($text));
        $this->assertEquals('<zaa-text fieldid="" fieldname="" model="" label="" grid="" placeholder=""></zaa-text>', $this->renderUpdateHtml($text));
        */
    }
}<commit_msg>removed not used ngrest test<commit_after><?php

namespace tests\web\admin\ngrest\plugins;

class ImageTest extends \tests\web\BasePlugin
{
    public function testPlugin()
    {
        $text = new \admin\ngrest\plugins\Image();
        //$this->assertEquals('<span>{{item.}}</span>', $this->renderListHtml($text));
        //$this->assertEquals('<zaa-image-upload fieldid="" fieldname="" model="" label="" i18n="" options=\'{"no_filter":false}\'></zaa-image-upload>', $this->renderCreateHtml($text));
        //$this->assertEquals('<zaa-image-upload fieldid="" fieldname="" model="" label="" i18n="" options=\'{"no_filter":false}\'></zaa-image-upload>', $this->renderUpdateHtml($text));

        /* @todo: test against real config values 
        $text->setConfig('id', 'foo', 'bar', 'baz', 12);
        $this->assertEquals("<span>{{item.}}</span>", $this->renderListHtml($text));
        $this->assertEquals('<zaa-text fieldid="" fieldname="" model="" label="" grid="" placeholder=""></zaa-text>', $this->renderCreateHtml($text));
        $this->assertEquals('<zaa-text fieldid="" fieldname="" model="" label="" grid="" placeholder=""></zaa-text>', $this->renderUpdateHtml($text));
        */
    }
}
{'fraction_non_alphanumeric': 0.23731656184486374, 'fraction_numerical': 0.005031446540880503, 'mean_word_length': 4.485057471264367, 'pattern_counts': {'":': 4, '<': 29, '<?xml version=': 0, '>': 53, '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': '1877874', 'n_tokens_mistral': 713, 'n_tokens_neox': 702, 'n_words': 124}