<commit_before><?php

namespace Apps\Webiny\Php\Entities;

use Apps\Webiny\Php\Lib\Entity\AbstractEntity;
use Apps\Webiny\Php\Lib\Exceptions\AppException;

/**
 * Class I18NTextGroup
 *
 * @property string $name
 * @property string $description
 * @property string $app
 * @property int    $totalTexts
 */
class I18NTextGroup extends AbstractEntity
{
    protected static $collection = 'I18NTextGroups';
    protected static $i18nNamespace = 'Webiny.Entities.I18NTextGroup';
    protected static $classId = 'Webiny.Entities.I18NTextGroup';

    public function __construct()
    {
        parent::__construct();

        $this->attr('app')->char()->setValidators('required')->setToArrayDefault();
        $this->attr('name')->char()->setValidators('required')->setToArrayDefault();
        $this->attr('description')->char()->setToArrayDefault();

        $this->attr('totalTexts')->dynamic(function () {
            return I18NText::count(['group' => $this->id]);<commit_msg>PHP @api docs.<commit_after><?php

namespace Apps\Webiny\Php\Entities;

use Apps\Webiny\Php\Lib\Entity\AbstractEntity;
use Apps\Webiny\Php\Lib\Exceptions\AppException;

/**
 * Class I18NTextGroup
 *
 * @property string $name
 * @property string $description
 * @property string $app
 * @property int    $totalTexts
 */
class I18NTextGroup extends AbstractEntity
{
    protected static $collection = 'I18NTextGroups';
    protected static $i18nNamespace = 'Webiny.Entities.I18NTextGroup';
    protected static $classId = 'Webiny.Entities.I18NTextGroup';

    public function __construct()
    {
        parent::__construct();
        $this->attr('app')->char()->setValidators('required')->setToArrayDefault();
        $this->attr('name')->char()->setValidators('required')->setToArrayDefault();
        $this->attr('description')->char()->setToArrayDefault();

        $this->attr('totalTexts')->dynamic(function () {
            return I18NText::count(['group' => $this->id]);
{'fraction_non_alphanumeric': 0.1598360655737705, 'fraction_numerical': 0.014344262295081968, 'mean_word_length': 4.264150943396227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '6061669', 'n_tokens_mistral': 596, 'n_tokens_neox': 587, 'n_words': 97}