<commit_before>Feature: The shopcarts service back-end
    As a Shopcarts Owner
    I need a RESTful shopcarts service
    So that I can keep track of all the products in my Shopcart

Scenario: The server is running
    When I visit the "Home Page"
    Then I should see "Shopcarts REST API Service"
    And I should not see "404 Not Found"

Scenario: List all shopcarts
    Given the following shopcarts
        | user_id   |
        | 2         |
        | 3         |
        | 4         |
    When I visit the "Home Page"
    Then I should see "2" in the results
    And I should see "3" in the results
    And I should see "4" in the results

Scenario: Create a Shopcart
    When I visit the "Home Page"
    And I set the Shopcart "user_id" to "1"
    And I click the "Add-Products" button
    And I add "2" of Product "3" to the cart
    And I click the "Create" button
    Then I should see Shopcart "1" in the results
    And I should not see "Status Code: 409. Shopcart for user 1 already exits" in the form

Scenario: Visit an existing Shopcart
    When I visit the "Home Page"
    And I visit Shopcart "1"
    Then I should see "1" in the header
    And I should not see "404 Not Found"

@slow
Scenario: Delete a Shopcart
    Given the following shopcarts
        | user_id |
        | 1     |
    When I visit the "Home Page"
    And I visit Shopcart "1"
    And I click the "Delete" button
    Then I should not see Shopcart "1" in the results

@slow
Scenario: Delete a Product from a Shopcart
    Given the following shopcarts
        | user_id | product_id | quantity |
        | 1       | 2          | 5        |
    When I visit the "Home Page"
    And I visit Shopcart "1"
    And I delete product "2" from the cart
    Then I should see "No products in this shopcart" on the cart page
<commit_msg>moving scenario to correct issue<commit_after>Feature: The shopcarts service back-end
    As a Shopcarts Owner
    I need a RESTful shopcarts service
    So that I can keep track of all the products in my Shopcart

Scenario: The server is running
    When I visit the "Home Page"
    Then I should see "Shopcarts REST API Service"
    And I should not see "404 Not Found"

Scenario: List all shopcarts
    Given the following shopcarts
        | user_id   |
        | 2         |
        | 3         |
        | 4         |
    When I visit the "Home Page"
    Then I should see "2" in the results
    And I should see "3" in the results
    And I should see "4" in the results

Scenario: Create a Shopcart
    When I visit the "Home Page"
    And I set the Shopcart "user_id" to "1"
    And I click the "Add-Products" button
    And I add "2" of Product "3" to the cart
    And I click the "Create" button
    Then I should see Shopcart "1" in the results
    And I should not see "Status Code: 409. Shopcart for user 1 already exits" in the form

@slow
Scenario: Delete a Shopcart
    Given the following shopcarts
        | user_id |
        | 1     |
    When I visit the "Home Page"
    And I visit Shopcart "1"
    And I click the "Delete" button
    Then I should not see Shopcart "1" in the results

@slow
Scenario: Delete a Product from a Shopcart
    Given the following shopcarts
        | user_id | product_id | quantity |
        | 1       | 2          | 5        |
    When I visit the "Home Page"
    And I visit Shopcart "1"
    And I delete product "2" from the cart
    Then I should see "No products in this shopcart" on the cart page

{'fraction_non_alphanumeric': 0.05043227665706052, 'fraction_numerical': 0.01585014409221902, 'mean_word_length': 2.25, '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': '7118945', 'n_tokens_mistral': 1056, 'n_tokens_neox': 1012, 'n_words': 538}