<commit_before># encoding: utf-8

module Subway

  class Presenter
    include AbstractType
    include Concord.new(:data)
    include Adamantium::Flat

    def method_missing(method, *args, &block)
      @data.send(method, *args, &block)
    end<commit_msg>Add Presenter.group to expose grouped collections<commit_after># encoding: utf-8

module Subway

  class Presenter
    include AbstractType
    include Concord.new(:data)
    include Adamantium::Flat

    def self.group(name, klass = nil)
      define_method(name) do
        (klass || self.class::Collection).new(super())
      end
      memoize(name)
    end

    def method_missing(method, *args, &block)
      @data.send(method, *args, &block)
    end
{'fraction_non_alphanumeric': 0.10378681626928471, 'fraction_numerical': 0.002805049088359046, 'mean_word_length': 3.3012048192771086, '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': '1744027', 'n_tokens_mistral': 227, 'n_tokens_neox': 221, 'n_words': 57}