<commit_before><?php

declare(strict_types=1);

namespace App\Entity\DTO;

use App\Annotation as IS;

/**
 * Class LearnerGroupDTO
 * Data transfer object for a learner group
 *
 * @IS\DTO("learnerGroups")
 */
class LearnerGroupDTO
{
    
    /**
     * @var int
     * @IS\Id
     * @IS\Expose
     * @IS\Type("integer")
     */
    public $id;

    /**
     * @var string
     * @IS\Expose
     * @IS\Type("string")
     */
    public $title;

    /**
     * @var string
     * @IS\Expose
     * @IS\Type("string")
     */
    public $location;

    /**
     * @var int
     * @IS\Expose
     * @IS\Related("cohorts")
     * @IS\Type("string")
     */
    public $cohort;

    /**
     * @var int
     * @IS\Expose
     * @IS\Related("learnerGroups")
     * @IS\Type("string")
     */
    public $parent;

    /**
     * @var int
     * @IS\Expose
     * @IS\Related("learnerGroups")
     * @IS\Type("string")
     *
     */
    public $ancestor;

    /**
     * @var int[]
     * @IS\Expose
     * @IS\Related("learnerGroups")
     * @IS\Type("array<string>")
     *
     */
    public $descendants;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related("learnerGroups")
     * @IS\Type("array<string>")
     */
    public $children;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related
     * @IS\Type("array<string>")
     */
    public $ilmSessions;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related
     * @IS\Type("array<string>")
     */
    public $offerings;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related
     * @IS\Type("array<string>")
     */
    public $instructorGroups;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related
     * @IS\Type("array<string>")
     */
    public $users;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related("users")
     * @IS\Type("array<string>")
     */
    public $instructors;

    public function __construct(
        $id,
        $title,
        $location
    ) {
        $this->id = $id;
        $this->title = $title;
        $this->location = $location;


        $this->children = [];
        $this->ilmSessions = [];
        $this->offerings = [];
        $this->instructorGroups = [];
        $this->users = [];
        $this->instructors = [];
        $this->descendants = [];
    }
}
<commit_msg>adds url and needs-accommodations props to learner group dto.<commit_after><?php

declare(strict_types=1);

namespace App\Entity\DTO;

use App\Annotation as IS;

/**
 * Class LearnerGroupDTO
 * Data transfer object for a learner group
 *
 * @IS\DTO("learnerGroups")
 */
class LearnerGroupDTO
{

    /**
     * @var int
     * @IS\Id
     * @IS\Expose
     * @IS\Type("integer")
     */
    public $id;

    /**
     * @var string
     * @IS\Expose
     * @IS\Type("string")
     */
    public $title;

    /**
     * @var string
     * @IS\Expose
     * @IS\Type("string")
     */
    public $location;

    /**
     * @IS\Expose
     * @IS\Type("string")
     */
    public ?string $url;

    /**
     * @IS\Expose
     * @IS\Type("bool")
     */
    public bool $needsAccommodation;

    /**
     * @var int
     * @IS\Expose
     * @IS\Related("cohorts")
     * @IS\Type("string")
     */
    public $cohort;

    /**
     * @var int
     * @IS\Expose
     * @IS\Related("learnerGroups")
     * @IS\Type("string")
     */
    public $parent;

    /**
     * @var int
     * @IS\Expose
     * @IS\Related("learnerGroups")
     * @IS\Type("string")
     *
     */
    public $ancestor;

    /**
     * @var int[]
     * @IS\Expose
     * @IS\Related("learnerGroups")
     * @IS\Type("array<string>")
     *
     */
    public $descendants;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related("learnerGroups")
     * @IS\Type("array<string>")
     */
    public $children;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related
     * @IS\Type("array<string>")
     */
    public $ilmSessions;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related
     * @IS\Type("array<string>")
     */
    public $offerings;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related
     * @IS\Type("array<string>")
     */
    public $instructorGroups;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related
     * @IS\Type("array<string>")
     */
    public $users;

    /**
     * @var array
     * @IS\Expose
     * @IS\Related("users")
     * @IS\Type("array<string>")
     */
    public $instructors;

    public function __construct($id, $title, $location, $url, $needsAccommodations) {
        $this->id = $id;
        $this->title = $title;
        $this->location = $location;
        $this->url = $url;
        $this->needsAccommodation = $needsAccommodations;

        $this->children = [];
        $this->ilmSessions = [];
        $this->offerings = [];
        $this->instructorGroups = [];
        $this->users = [];
        $this->instructors = [];
        $this->descendants = [];
    }
}

{'fraction_non_alphanumeric': 0.1832260659694288, 'fraction_numerical': 0.00040225261464199515, 'mean_word_length': 1.6881081081081082, 'pattern_counts': {'":': 0, '<': 19, '<?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': '4021763', 'n_tokens_mistral': 1807, 'n_tokens_neox': 1760, 'n_words': 279}