<commit_before># Your Names
# 1)
# 2)

# We spent [#] hours on this challenge.

# 


def serving_size_calc(item_to_make, people)
  #change order_quantity to something more intuitive
  #change library name to menu
  #Lines 8-16 determine if item_to_make is on the menu.  Refactor these lines just to print a simple message.  Error counter not neccessary.
  
  menu = {"cookie" => 1, "cake" =>  5, "pie" => 7}
  # error_counter = 3
  
  raise ArgumentError.new("#{item_to_make} is not a valid input") unless menu.has_key?(item_to_make)
  
  

  # serving_size = library[item_to_make]
  leftovers = people % menu[item_to_make]
  number_of_items = people/menu[item_to_make]

  case leftovers
  when 0
    return "Calculations complete: Make #{number_of_items} of #{item_to_make}"
  when 6
    return "Calculations complete: Make #{number_of_items} of #{item_to_make}, you have #{leftovers} leftover ingredients.  Suggested baking items: 1 cake and 1 cookie or 6 cookies"
  when 5<commit_msg>Fix heading in gps<commit_after># Your Names
# 1) <NAME>
# 2) <NAME>

# We spent 1.25 hours on this challenge.

# 


def serving_size_calc(item_to_make, people)
  #change order_quantity to something more intuitive
  #change library name to menu
  #Lines 8-16 determine if item_to_make is on the menu.  Refactor these lines just to print a simple message.  Error counter not neccessary.
  
  menu = {"cookie" => 1, "cake" =>  5, "pie" => 7}
  # error_counter = 3
  
  raise ArgumentError.new("#{item_to_make} is not a valid input") unless menu.has_key?(item_to_make)
  
  

  # serving_size = library[item_to_make]
  leftovers = people % menu[item_to_make]
  number_of_items = people/menu[item_to_make]

  case leftovers
  when 0
    return "Calculations complete: Make #{number_of_items} of #{item_to_make}"
  when 6
    return "Calculations complete: Make #{number_of_items} of #{item_to_make}, you have #{leftovers} leftover ingredients.  Suggested baking items: 1 cake and 1 cookie or 6 cookies"
  when 5
{'fraction_non_alphanumeric': 0.09227683049147442, 'fraction_numerical': 0.016549648946840523, 'mean_word_length': 4.12853470437018, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1945303', 'n_tokens_mistral': 717, 'n_tokens_neox': 657, 'n_words': 225}