<commit_before>class RoundsController < ApplicationController
  def show
    current_round = Round.with_game_and_players.find(params[:id])
    service = ReplayRound.new(:round => current_round)
    game_state = service.call

    @round = CurrentRoundPresenter.new(
      :current_round => current_round,
      :game_state => game_state
    )
  end

  def create
    service = CreateRound.new(:game_id => params[:game_id])
    round = service.call
    redirect_to round
  end
end<commit_msg>Renamed service to create_round as it better reflects what it is<commit_after>class RoundsController < ApplicationController
  def show
    current_round = Round.with_game_and_players.find(params[:id])
    service = ReplayRound.new(:round => current_round)
    game_state = service.call

    @round = CurrentRoundPresenter.new(
      :current_round => current_round,
      :game_state => game_state
    )
  end

  def create
    create_round = CreateRound.new(:game_id => params[:game_id])
    round = create_round.call
    redirect_to round
  end
end
{'fraction_non_alphanumeric': 0.08645533141210375, 'fraction_numerical': 0.0, 'mean_word_length': 3.8465116279069766, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7373777', 'n_tokens_mistral': 317, 'n_tokens_neox': 311, 'n_words': 69}