<commit_before>#!/usr/bin/env ruby -wKU

module RandomPerson
  
  module Names
    
    FORMATS = {
      :single =>                      ->(n)   { n.rand },
      :double_barrelled =>            ->(n)   { n.rand + ' ' + n.rand }, 
      :double_barrelled_hyphenated=> ->(n)   { n.rand + '-' + n.rand },
     }
     
    def Names.execute( person, names, format )
      format = FORMATS[:single] if format.nil?
      # puts format.inspect
      format.( names )
    end
    
    
    
    def self.formats
      FORMATS
    end
    
  end
end<commit_msg>removed more unnecessary code<commit_after>#!/usr/bin/env ruby -wKU

module RandomPerson
  
  module Names

    def Names.execute( names, format )
      format = ->(n){ n.rand } if format.nil?
      # puts format.inspect
      format.( names )
    end
    
  end
end
{'fraction_non_alphanumeric': 0.12317073170731707, 'fraction_numerical': 0.0, 'mean_word_length': 1.700657894736842, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '7166730', 'n_tokens_mistral': 286, 'n_tokens_neox': 276, 'n_words': 64}