<commit_before>require './views/base'

module Views
  class GameMail < Base
    needs :game
    needs :current_user

    def content
      current_player = game.player_by_id current_user.id
      tier = game.ownership_tier

      a "Go To Game #{game.id}", href: "#{app.request.base_url}#{app.path(game)}"

      log_style = inline(
        background_color: 'lightgray',
        padding: '5px',
        margin: '10px 0',
      )

      div style: log_style do
        widget Log, game: game, current_player: current_player, email: true
      end

      widget Players, players: game.players, tier: tier, current_player: current_player
    end

  end
end
<commit_msg>Update game_mail.rb<commit_after>require './views/base'

module Views
  class GameMail < Base
    needs :game
    needs :current_user

    def content
      current_player = game.player_by_id current_user.id
      tier = game.ownership_tier

      a "Go To Game #{game.id}", href: "#{app.request.base_url}#{app.path(game)}"

      log_style = inline(
        background_color: 'lightgray',
        padding: '5px',
        margin: '10px 0',
      )

      div style: log_style do
        widget Log, game: game, current_player: current_player, email: true
      end

      widget Players, players: game.players.sort_by(&:order), tier: tier, current_player: current_player
    end

  end
end

{'fraction_non_alphanumeric': 0.1016949152542373, 'fraction_numerical': 0.0058953574060427415, 'mean_word_length': 2.710382513661202, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1831310', 'n_tokens_mistral': 439, 'n_tokens_neox': 420, 'n_words': 117}