<commit_before>require 'rails_helper'

RSpec.describe Game, type: :model do
  let(:alphabet) { %w{ a b c d e f g h i j k l m n o p q r s t u v w x y z } }
  let(:game)     { Game.new(username: name, hidden_word: word, lives: lives) }
  let(:name)     { Faker::Name.name }
  let(:word)     { Faker::Hacker.noun }
  let(:lives)    { word.length + 2 }

  describe "#create" do
    context "when a username & hidden_word are given" do
      it "assigns the username" do
        expect(game.username).to eq(name)
      end
<commit_msg>Minor formatting<commit_after>require "rails_helper"

RSpec.describe Game, type: :model do
  let(:alphabet) { %w{ a b c d e f g h i j k l m n o p q r s t u v w x y z } }
  let(:game)     { Game.new(username: name, hidden_word: word, lives: lives) }
  let(:name)     { Faker::Name.name }
  let(:word)     { Faker::Hacker.noun }
  let(:lives)    { word.length + 2 }

  describe "#create" do
    context "when a username & hidden_word are given" do
      it "assigns the username" do
        expect(game.username).to eq(name)
      end

{'fraction_non_alphanumeric': 0.12605832549388524, 'fraction_numerical': 0.0018814675446848542, 'mean_word_length': 2.7464788732394365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7286541', 'n_tokens_mistral': 390, 'n_tokens_neox': 380, 'n_words': 137}