<commit_before><?php
namespace Suyabay\Http\Transformers;

use League\Fractal;
use Suyabay\Episode;

class ChannelEpisodesTransformer extends Fractal\TransformerAbstract
{
    public function transform(Episode $episode)
    {
        return [
            'id'                 => (int) $episode->id,
            'channel_name'       => $episode->channel->channel_name,
            'name'               => $episode->episode_name,
            'brief_description'  => $episode->episode_description,
            'views'              => $episode->view_count,
            'likes'              => $episode->likes,
            'picture_url'        => $episode->image,
            'audio_url'          => $episode->audio_mp3,
            'date_created'       => $episode->created_at,
            'date_modified'      => $episode->updated_at,
            'created_by'         => $episode->channel->user->username,
        ];
    }
}<commit_msg>[Feature #103072032] Add comments field to the existing result<commit_after><?php
namespace Suyabay\Http\Transformers;

use League\Fractal;
use Suyabay\Episode;

class ChannelEpisodesTransformer extends Fractal\TransformerAbstract
{
    public function transform(Episode $episode)
    {
        return [
            'id'                 => (int) $episode->id,
            'channel_name'       => $episode->channel->channel_name,
            'name'               => $episode->episode_name,
            'brief_description'  => $episode->episode_description,
            'views'              => $episode->view_count,
            'likes'              => $episode->likes,
            'picture_url'        => $episode->image,
            'audio_url'          => $episode->audio_mp3,
            'date_created'       => $episode->created_at,
            'date_modified'      => $episode->updated_at,
            'created_by'         => $episode->channel->user->username,
            'comments'           => $episode->comments,
        ];
    }
}
{'fraction_non_alphanumeric': 0.1263318112633181, 'fraction_numerical': 0.005580923389142567, 'mean_word_length': 1.8051209103840682, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2554541', 'n_tokens_mistral': 604, 'n_tokens_neox': 569, 'n_words': 88}