<commit_before>class WhatsNextScreen < PM::Screen
  include GameQuitDelegate

  title '次はどうする？'

  BAR_BUTTON_SIZE = 28

  attr_reader :layout

  def on_load
    @layout = WhatsNextLayout.new.tap{|l|
      l.sizes = app_delegate.sizes ? app_delegate.sizes :
          OH::DeviceSizeManager.select_sizes  # こっちはRSpecテスト用。
    }
    self.view = layout.view
    set_navigation_bar_buttons
    set_button_actions
  end

  private

  def set_navigation_bar_buttons
    set_nav_bar_button :right, {<commit_msg>Fix broken layout of header buttons on WhatsNextScreen<commit_after>class WhatsNextScreen < PM::Screen
  include GameQuitDelegate

  title '次はどうする？'

  # BAR_BUTTON_SIZE = 28
  BAR_BUTTON_SIZE = 14

  attr_reader :layout

  def on_load
    @layout = WhatsNextLayout.new.tap{|l|
      l.sizes = app_delegate.sizes ? app_delegate.sizes :
          OH::DeviceSizeManager.select_sizes  # こっちはRSpecテスト用。
    }
    self.view = layout.view
    set_navigation_bar_buttons
    set_button_actions
  end

  private

  def set_navigation_bar_buttons
    set_nav_bar_button :right, {
{'fraction_non_alphanumeric': 0.06890130353817504, 'fraction_numerical': 0.00558659217877095, 'mean_word_length': 3.594017094017094, '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': '2740604', 'n_tokens_mistral': 404, 'n_tokens_neox': 370, 'n_words': 69}