<commit_before>module Playa
  class View
    def self.render(menu)
      new(menu).render
    end

    def initialize(menu)
      @menu = menu
    end

    def render
      Vedeu::Parser.parse(['playlist', playlist])
    end

    private

    attr_reader :menu

    def playlist
      menu.map { |sel, cur, item| [sel, cur, item.title] }
    end
  end
end<commit_msg>Extract interface to a method.<commit_after>module Playa
  class View
    def self.render(menu)
      new(menu).render
    end

    def initialize(menu)
      @menu = menu
    end

    def render
      Vedeu::Parser.parse([ interface, playlist ])
    end

    private

    attr_reader :menu

    def playlist
      menu.map { |sel, cur, item| [ sel, cur, item.title ] }
    end

    def interface
      'playlist'
    end
  end
end
{'fraction_non_alphanumeric': 0.09147869674185463, 'fraction_numerical': 0.0, 'mean_word_length': 2.1333333333333333, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5349825', 'n_tokens_mistral': 267, 'n_tokens_neox': 256, 'n_words': 74}