<commit_before>require 'rails_helper'

describe Api::V3::RunsController do
  describe '#show' do
    let(:game) do
      instance_double(
        "Game",
        name: "Tron: Evolution",
        read_attribute_for_serialization: self,
      )
    end
    let(:category) do
      instance_double(
        "Category",
        game: game,
        name: "Any% NG+",
        read_attribute_for_serialization: self,
      )
    end
    let(:run) do
      instance_double(
        "Run",
        id: 10,
        id36: 'a',
        path: '/a',
        game: game,
        category: category,
        to_s: "Tron: Evolution Any% NG+",
        image_url: nil,
        sum_of_best: 2,
        splits: [
          instance_double("Split", 'best' => 3, 'best=' => true)
        ],
        read_attribute_for_serialization: self,
      )
      create(:run)
    end
<commit_msg>Remove a useless `create`<commit_after>require 'rails_helper'

describe Api::V3::RunsController do
  describe '#show' do
    let(:game) do
      instance_double(
        "Game",
        name: "Tron: Evolution",
        read_attribute_for_serialization: self,
      )
    end
    let(:category) do
      instance_double(
        "Category",
        game: game,
        name: "Any% NG+",
        read_attribute_for_serialization: self,
      )
    end
    let(:run) do
      instance_double(
        "Run",
        id: 10,
        id36: 'a',
        path: '/a',
        game: game,
        category: category,
        to_s: "Tron: Evolution Any% NG+",
        image_url: nil,
        sum_of_best: 2,
        splits: [
          instance_double("Split", 'best' => 3, 'best=' => true)
        ],
        read_attribute_for_serialization: self,
      )
    end

{'fraction_non_alphanumeric': 0.11925538103548575, 'fraction_numerical': 0.008144269924374637, 'mean_word_length': 1.8618968386023294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6263756', 'n_tokens_mistral': 568, 'n_tokens_neox': 547, 'n_words': 128}