<commit_before>module Teebo
  #
  # Generates names in accordance with their frequency in the United States
  # population.
  #
  class Name < Base

    #
    # Picks a random full name, selecting a random gender if it's not specified.
    #
    def name sex
      
    end

    #
    # Finds the total count for the number of names in the database.
    #
    def sum_count sex
      find_count = <<-SQL<commit_msg>Adding a general 'name' function.<commit_after>module Teebo
  #
  # Generates names in accordance with their frequency in the United States
  # population.
  #
  class Name < Base

    #
    # Picks a random full name, selecting a random gender if it's not specified.
    #
    def name sex=nil
      if sex.nil?
        sex = ['M', 'F'].sample
      end
      given_name(sex) + " " + surname
    end

    #
    # Finds the total count for the number of names in the database.
    #
    def sum_count sex
      find_count = <<-SQL
{'fraction_non_alphanumeric': 0.07089947089947089, 'fraction_numerical': 0.0, 'mean_word_length': 2.2176870748299318, 'pattern_counts': {'":': 0, '<': 9, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2923938', 'n_tokens_mistral': 287, 'n_tokens_neox': 278, 'n_words': 113}