<commit_before>class Module
  
  # like delegate only better
  # built upon delegate_x from http://spongetech.wordpress.com/2008/02/12/delegate-to-the-giraffe/
  def delegate_x(*methods)
    options = methods.extract_options!

    unless to = options.delete(:to)
      raise ArgumentError, "Delegation needs a target. Supply an options hash with a :to key"
    end

    include_writers = options.delete(:include_writers)
    methods.concat(options.keys)

    unless methods.any?
      raise ArgumentError, "No delegated methods specified. Specify :method => :target_method or list methods"
    end
<commit_msg>flatten method list<commit_after>class Module
  
  # like delegate only better
  # built upon delegate_x from http://spongetech.wordpress.com/2008/02/12/delegate-to-the-giraffe/
  def delegate_x(*methods)
    options = methods.extract_options!

    unless to = options.delete(:to)
      raise ArgumentError, "Delegation needs a target. Supply an options hash with a :to key"
    end

    include_writers = options.delete(:include_writers)
    methods.concat(options.keys).flatten!

    unless methods.any?
      raise ArgumentError, "No delegated methods specified. Specify :method => :target_method or list methods"
    end

{'fraction_non_alphanumeric': 0.0874493927125506, 'fraction_numerical': 0.012955465587044534, 'mean_word_length': 3.717557251908397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7613499', 'n_tokens_mistral': 377, 'n_tokens_neox': 352, 'n_words': 104}