<commit_before><?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\Resource;

/**
 * Class ReplayResource
 *
 * @package App\Http\Resources
 * @mixin \App\Replay
 */
class ReplayResource extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {
        $result = [
            'id' => $this->id,
            'filename' => $this->filename,
            'size' => $this->size,
            'game_type' => $this->game_type,
            'game_date' => optional($this->game_date)->toDateTimeString(),
            'game_map' => optional($this->game_map)->name,
            'game_length' => $this->game_length,<commit_msg>add parsed_id to /replays<commit_after><?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\Resource;

/**
 * Class ReplayResource
 *
 * @package App\Http\Resources
 * @mixin \App\Replay
 */
class ReplayResource extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {
        $result = [
            'id' => $this->id,
            'parsed_id' => $this->parsed_id,
            'filename' => $this->filename,
            'size' => $this->size,
            'game_type' => $this->game_type,
            'game_date' => optional($this->game_date)->toDateTimeString(),
            'game_map' => optional($this->game_map)->name,
            'game_length' => $this->game_length,
{'fraction_non_alphanumeric': 0.15254237288135594, 'fraction_numerical': 0.0, 'mean_word_length': 2.313929313929314, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 37, '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': '2216556', 'n_tokens_mistral': 482, 'n_tokens_neox': 490, 'n_words': 90}