<commit_before>***Test Cases***

Adding employee
    Given no employee "Juha" exists in the system
    When "Juha" with start date 2010-01-01 is added
    Then message "Employee 'Juha' was added successfully." is shown
    and "Juha" exists in the employee listing
    and "Juha" with start date 2010-01-01 exists in the database

Adding employee with same name
    Given employee "Juha" with start date 2010-01-01 exists in the system
    When "Juha" with start date 2010-02-02 is added
    Then message "Employee 'Juha' already exists in the system." is shown
    and "Juha" with start date 2010-01-01 exists in the database

Adding Two Employees
    Given no employee exists in the system
    When "Pekka" with start date 2010-01-01 is added
    and "Janne" with start date 2010-01-01 is added
    Then "Janne" exists in the employee listing
    and "Janne" with start date 2010-01-01 exists in the database


*** Keywords ***
Given no employee "${name}" exists in the system
    Clear Database

Given no employee exists in the system
    Clear Database

"${name}" with start date ${date} is added
    Add Employee  ${name}  ${date}

Then message "${message}" is shown
    Status Message Should Be  ${message}

"${name}" exists in the employee listing
    Employee Should Be Selected  ${name}

and "${name}" with start date ${date} exists in the database
    Employee exists in the database  ${name}  ${date}

Given employee "${name}" with start date ${date} exists in the system
    Clear Database
    Add Employee  ${name}  ${date}


***Settings***
Force Tags   Sprint-1
Resource  resource.txt
<commit_msg>Updated to work with new db clearing.<commit_after>***Test Cases***

Adding employee
    Given no employee "Juha" exists in the system
    When "Juha" with start date 2010-01-01 is added
    Then message "Employee 'Juha' was added successfully." is shown
    and "Juha" exists in the employee listing
    and "Juha" with start date 2010-01-01 exists in the database

Adding employee with same name
    Given employee "Juha" with start date 2010-01-01 exists in the system
    When "Juha" with start date 2010-02-02 is added
    Then message "Employee 'Juha' already exists in the system." is shown
    and "Juha" with start date 2010-01-01 exists in the database

Adding Two Employees
    Given no employee exists in the system
    When "Pekka" with start date 2010-01-01 is added
    and "Janne" with start date 2010-01-01 is added
    Then "Janne" exists in the employee listing
    and "Janne" with start date 2010-01-01 exists in the database


*** Keywords ***
Given no employee "${name}" exists in the system
    Start Vacalc With No Employees

Given no employee exists in the system
    Start Vacalc With No Employees

"${name}" with start date ${date} is added
    Add Employee  ${name}  ${date}

Then message "${message}" is shown
    Status Message Should Be  ${message}

"${name}" exists in the employee listing
    Employee Should Be Selected  ${name}

and "${name}" with start date ${date} exists in the database
    Employee exists in the database  ${name}  ${date}

Given employee "${name}" with start date ${date} exists in the system
    Start Vacalc With No Employees
    Add Employee  ${name}  ${date}


***Settings***
Force Tags   Sprint-1
Resource  resource.txt
Test Teardown  Close Vacalc
{'fraction_non_alphanumeric': 0.08099969888587774, 'fraction_numerical': 0.039144835892803376, 'mean_word_length': 3.4831309041835357, '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': '5010738', 'n_tokens_mistral': 1069, 'n_tokens_neox': 904, 'n_words': 471}