<commit_before><?php

namespace App\Containers\Channel\UI\API\Transformers;

use App\Containers\Channel\Models\Channel;
use App\Ship\Parents\Transformers\Transformer;

class ChannelTransformer extends Transformer
{
    /**
     * @var  array
     */
    protected $defaultIncludes = [
    ];

    /**
     * @var  array
     */
    protected $availableIncludes = [
    ];

    /**
     * @param Channel $entity
     * @return array
     */
    public function transform(Channel $entity)
    {
        $response = [

            'object' => 'Channel',
            'id' => $entity->getHashedKey(),
            'name' => $entity->name,
            'created_at' => $entity->created_at,
            'updated_at' => $entity->updated_at,


        ];

        $response = $this->ifAdmin([
            'real_id'    => $entity->id,
        ], $response);

        return $response;
    }
}
<commit_msg>[*] Additional fields for channel transformer<commit_after><?php

namespace App\Containers\Channel\UI\API\Transformers;

use App\Containers\Channel\Models\Channel;
use App\Ship\Parents\Transformers\Transformer;

class ChannelTransformer extends Transformer
{
    /**
     * @var  array
     */
    protected $defaultIncludes = [
    ];

    /**
     * @var  array
     */
    protected $availableIncludes = [
    ];

    /**
     * @param Channel $entity
     * @return array
     */
    public function transform(Channel $entity)
    {
        $response = [

            'object'        => 'Channel',
            'id'            => $entity->getHashedKey(),
            'name'          => $entity->name,
            'has_password'  => $entity->hasPassword(),
            'image_url'     => $entity->image_url,
            'created_at'    => $entity->created_at,
            'updated_at'    => $entity->updated_at,


        ];

        $response = $this->ifAdmin([
            'real_id'    => $entity->id,
        ], $response);

        return $response;
    }
}

{'fraction_non_alphanumeric': 0.14358712314767502, 'fraction_numerical': 0.0, 'mean_word_length': 1.8625730994152048, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '2768971', 'n_tokens_mistral': 593, 'n_tokens_neox': 576, 'n_words': 101}