<commit_before>Feature: Registration - Chat App Account
    As a ChatApp user
    I want to create a new ChatApp account
    In order to chat with my friends


    #See list of valid and invalid email addreses at: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses
    #See wikipedia entry at: https://en.wikipedia.org/wiki/Email_address
    #See password strength options at: http://www.passwordmeter.com/

    Scenario Outline: Valid Email and Password
        Given I do not have a chat app account
        When I attempt to register with the email address: <email> 
        And I attempt to register with the password: <password>
        Then I should be sent a registration email

        Examples:
            | <email>                                                           | <password>                         |  
            | <EMAIL>                                                 | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                    | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                       | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                    | CorrectHorseBatteryStaple          |                           
            | email@172.16.17.32                                             | CorrectHorseBatteryStaple          |                           
            | email@[172.16.17.32]                                           | CorrectHorseBatteryStaple          |                           
            | “<EMAIL> <EMAIL>                                               | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                            | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                             | CorrectHorseBatteryStaple          |                           
            | _______<EMAIL>                                               | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                                | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                              | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                               | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                    | CorrectHorseBatteryStaple          |                           
            | much.“<EMAIL>\ unusual”@<EMAIL>                                  | CorrectHorseBatteryStaple          |                           
            | very.unusual.“<EMAIL>                          | CorrectHorseBatteryStaple          |                           
            | very.“(),:;<>[]”.VERY.“<EMAIL>@\\"<EMAIL>  | CorrectHorseBatteryStaple          |  


    Scenario Outline: Invalid Email
        Given I do not have a chat app account
        When I attempt to register with the email address: <email>
        And I attempt to register with the password: <password>
        Then I should be informed "Email is not a valid format"

        Examples:
            | <email>                       | <password>                |  
            | plainaddress                  | CorrectHorseBatteryStaple |  
            | #@%^%#$@#$@#.com              | CorrectHorseBatteryStaple |  
            | @example.com                  | CorrectHorseBatteryStaple |  
            | <NAME> <<EMAIL>> | CorrectHorseBatteryStaple |  
            | email.example.com             | CorrectHorseBatteryStaple |  
            | <EMAIL>     | CorrectHorseBatteryStaple |  
            | <EMAIL>            | CorrectHorseBatteryStaple |  
            | <EMAIL>            | CorrectHorseBatteryStaple |  
            | email..<EMAIL>      | CorrectHorseBatteryStaple |  
            | <EMAIL>         | CorrectHorseBatteryStaple |  
            | <EMAIL> (<NAME>) | CorrectHorseBatteryStaple |  
            | email@<EMAIL>                 | CorrectHorseBatteryStaple |  
            | <EMAIL>            | CorrectHorseBatteryStaple |  
            | <EMAIL>             | CorrectHorseBatteryStaple |  
            | email@111.222.333.44444       | CorrectHorseBatteryStaple |  
            | <EMAIL>            | CorrectHorseBatteryStaple |  
            | <EMAIL>          | CorrectHorseBatteryStaple |  


    #This depends entirely on your password policy
    Scenario Outline: Invalid Password
        Given I do not have a chat app account
        When I attempt to register with the email address: <email>
        And I attempt to register with the password: <password>
        Then I should be informed "Password is not a valid format"

        Examples:
            | <email>           | <password> |  
            | <EMAIL> |            |  
            | <EMAIL> |            |  
            | <EMAIL> |            |  
            | <EMAIL> |            |  
            | <EMAIL> |            |  
            | <EMAIL> |            |  



    Scenario: Email already in use
        Given I have a chat app account
        And I use the email address: "<EMAIL>"
        When I attempt to register with the email address: "<EMAIL>" 
        Then I should be informed: "An account already exists with this email address. Reset Password?"


<commit_msg>Valid registration now auto logs-in the user<commit_after>Feature: Registration - Chat App Account
    As a ChatApp user
    I want to create a new ChatApp account
    In order to chat with my friends


    #See list of valid and invalid email addreses at: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses
    #See wikipedia entry at: https://en.wikipedia.org/wiki/Email_address
    #See password strength options at: http://www.passwordmeter.com/

    Scenario Outline: Valid Email and Password
        Given I do not have a chat app account
        When I attempt to register with the email address: <email> 
        And I attempt to register with the password: <password>
        Then I should be sent a registration email
        And I should be logged in immediately

        Examples:
            | <email>                                                           | <password>                         |  
            | <EMAIL>                                                 | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                    | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                       | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                    | CorrectHorseBatteryStaple          |                           
            | email@192.168.3.1123                                             | CorrectHorseBatteryStaple          |                           
            | email@[123.123.123.123]                                           | CorrectHorseBatteryStaple          |                           
            | “<EMAIL> <EMAIL>                                               | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                            | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                             | CorrectHorseBatteryStaple          |                           
            | _______<EMAIL>                                               | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                                | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                              | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                               | CorrectHorseBatteryStaple          |                           
            | <EMAIL>                                    | CorrectHorseBatteryStaple          |                           
            | much.“more\ unusual”<EMAIL>                                  | CorrectHorseBatteryStaple          |                           
            | very.un<EMAIL>.“<EMAIL>                          | CorrectHorseBatteryStaple          |                           
            | very.“(),:;<>[]”.VERY.“very@\\"<EMAIL>  | CorrectHorseBatteryStaple          |  


    Scenario Outline: Invalid Email
        Given I do not have a chat app account
        When I attempt to register with the email address: <email>
        And I attempt to register with the password: <password>
        Then I should be informed "Email is not a valid format"

        Examples:
            | <email>                       | <password>                |  
            | plainaddress                  | CorrectHorseBatteryStaple |  
            | #@%^%#$@#$@#.com              | CorrectHorseBatteryStaple |  
            | @example.com                  | CorrectHorseBatteryStaple |  
            | <NAME> <<EMAIL>> | CorrectHorseBatteryStaple |  
            | email.<EMAIL>.<EMAIL>             | CorrectHorseBatteryStaple |  
            | <EMAIL>     | CorrectHorseBatteryStaple |  
            | <EMAIL>            | CorrectHorseBatteryStaple |  
            | <EMAIL>            | CorrectHorseBatteryStaple |  
            | email..<EMAIL>      | CorrectHorseBatteryStaple |  
            | <EMAIL>         | CorrectHorseBatteryStaple |  
            | <EMAIL> (<NAME>) | CorrectHorseBatteryStaple |  
            | <EMAIL>                 | CorrectHorseBatteryStaple |  
            | <EMAIL>            | CorrectHorseBatteryStaple |  
            | <EMAIL>             | CorrectHorseBatteryStaple |  
            | email@111.222.333.44444       | CorrectHorseBatteryStaple |  
            | <EMAIL>            | CorrectHorseBatteryStaple |  
            | <EMAIL>          | CorrectHorseBatteryStaple |  


    #This depends entirely on your password policy
    Scenario Outline: Invalid Password
        Given I do not have a chat app account
        When I attempt to register with the email address: <email>
        And I attempt to register with the password: <password>
        Then I should be informed "Password is not a valid format"

        Examples:
            | <email>           | <password> |  
            | <EMAIL> |            |  
            | <EMAIL> |            |  
            | <EMAIL> |            |  
            | <EMAIL> |            |  
            | email.example.com |            |  
            | <EMAIL> |            |  



    Scenario: Email already in use
        Given I have a chat app account
        And I use the email address: "<EMAIL>"
        When I attempt to register with the email address: "<EMAIL>" 
        Then I should be informed: "An account already exists with this email address. Reset Password?"



{'fraction_non_alphanumeric': 0.06518452645620276, 'fraction_numerical': 0.008092485549132947, 'mean_word_length': 0.9507372072853426, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 4, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 88, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1689310', 'n_tokens_mistral': 2743, 'n_tokens_neox': 2479, 'n_words': 635}