<commit_before>Given(/^Patty is being treated for a peritonitis episode$/) do
  record_peritonitis_episode_for(
    patient: @patty,
    user: @clyde,
    diagnosed_on: "10-10-2016"
  )

  record_organism_for(
    infectable: @patty.peritonitis_episodes.last!,
    organism_name: "Acineobactor"
  )

  record_medication_for(
    treatable: @patty.peritonitis_episodes.last!,
    drug_name: "Ciprofloxacin Infusion",
    dose: "100 ml",
    route_name: "PO",
    frequency: "once a day",
    starts_on: "10-10-2015",
    provider: "GP"
  )
end

When(/^Clyde records a peritonitis episode for Patty$/) do
  record_peritonitis_episode_for(
    patient: @patty,<commit_msg>Implement setup steps for terminating an organism<commit_after>Given(/^Patty is being treated for a peritonitis episode$/) do
  record_peritonitis_episode_for(
    patient: @patty,
    user: @clyde,
    diagnosed_on: "10-10-2016"
  )

  record_organism_for(
    infectable: @patty.peritonitis_episodes.last!,
    organism_name: "Acineobactor"
  )

  record_medication_for(
    treatable: @patty.peritonitis_episodes.last!,
    drug_name: "Ciprofloxacin Infusion",
    dose: "100 ml",
    route_name: "PO",
    frequency: "once a day",
    starts_on: "10-10-2015",
    provider: "GP"
  )
end

Given(/^Clyde recorded a peritonitis episode for Patty$/) do
  record_peritonitis_episode_for(
    patient: @patty,
    user: @clyde,
    diagnosed_on: "10-10-2016"
  )
end

Given(/^recorded the organism for the episode$/) do
  record_organism_for(
    infectable: @patty.peritonitis_episodes.last!,
    organism_name: "Acineobactor"
  )
end

When(/^Clyde records a peritonitis episode for Patty$/) do
  record_peritonitis_episode_for(
    patient: @patty,
{'fraction_non_alphanumeric': 0.10949330227140361, 'fraction_numerical': 0.026790914385556204, 'mean_word_length': 3.9653179190751446, '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': '937489', 'n_tokens_mistral': 707, 'n_tokens_neox': 638, 'n_words': 138}