<commit_before>Feature: Generic Delete Function
  As a car owner
  In order to know much I spend on gas
  I want to delete a previously entered fuel receipt

  # # Usage:
  #   `./mileage delete id`
  #
  # # Acceptance Criteria:
  #   * If id is invalid, it informs me that the id is invalid
  #   * Returns data from entry
  #   * Asks for confirmation

  Scenario: Invalid ID
    Given I have an invalid id
    When I use the 'delete id' argument
    Then It should display 'Invalid Id. Use "list" to find the id and try again.'
    And It should update the entry to the database

  Scenario: No Confirmation
    Given I have a valid id
    When I use the 'delete id' argument
    Then It should display the entry's data and ask to confirm deletion.
    When I press any key other than 'y'
    Then It should display 'Canceled'

  Scenario: Confirmed
    Given I have a valid id
    When I use the 'delete id' argument
    Then It should display the entry's data and ask to confirm deletion.
    When I press 'y'
    Then It should delete the entry from the database
    When The entry has been deleted
    Then It should display 'Deleted!'<commit_msg>delete misprint and acceptance clarification<commit_after>Feature: Generic Delete Function
  As a car owner
  In order to know much I spend on gas
  I want to delete a previously entered fuel receipt

  # # Usage:
  #   `./mileage delete id`
  #
  # # Acceptance Criteria:
  #   * If id is invalid, it informs me that the id is invalid
  #   * Returns data from entry
  #   * Asks for a deletion confirmation

  Scenario: Invalid ID
    Given I have an invalid id
    When I use the 'delete id' argument
    Then It should display 'Invalid Id. Use "list" to find the id and try again.'

  Scenario: No Confirmation
    Given I have a valid id
    When I use the 'delete id' argument
    Then It should display the entry's data and ask to confirm deletion.
    When I press any key other than 'y'
    Then It should display 'Canceled'

  Scenario: Confirmed
    Given I have a valid id
    When I use the 'delete id' argument
    Then It should display the entry's data and ask to confirm deletion.
    When I press 'y'
    Then It should delete the entry from the database
    When The entry has been deleted
    Then It should display 'Deleted!'
{'fraction_non_alphanumeric': 0.04432855280312908, 'fraction_numerical': 0.0, 'mean_word_length': 2.849498327759197, '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': '885720', 'n_tokens_mistral': 637, 'n_tokens_neox': 616, 'n_words': 362}