<commit_before>Feature: Optional Display Username on Teams Page
    As a user
    So that I can control my anonymity
    I want to be able to choose whether my name is displayed on the teams page.

  Background:
    Given the following users exist
     | name  |       email                    |team_passcode | major           | sid  | skill      |
     | Sahai | <EMAIL>            | penguindrool | EECS            | 000  | JavaScript |
     | Jorge | <EMAIL>  | penguindrool | Football Player | 999  | Back-end   |
     | Kandi | <EMAIL>       | anotherteam  | EECS            | 567  | CSS        |
    And I am on the login page
    And I log in as a user with email "<EMAIL>"
    And I follow "My Info"

  Scenario: I want to display my name on the teams page
    Given I follow "Edit"
    And I check "Name Visible to Other Teams" 
    And I press "Update Information"
    And I am on the teams page
    Then I should see "Sahai"

  Scenario: I do not want to display my name on the teams page
    Given I follow "Edit"
    And I uncheck "Name Visible to Other Teams" 
    And I press "Update Information"
    And I am on the teams page
    Then I should see "Sahai"

<commit_msg>[fix] Minor cucumber bug<commit_after>Feature: Optional Display Username on Teams Page
    As a user
    So that I can control my anonymity
    I want to be able to choose whether my name is displayed on the teams page.

  Background:
    Given the following users exist
     | name  |       email                    |team_passcode | major           | sid  | skill      |
     | Sahai | <EMAIL>            | penguindrool | EECS            | 000  | JavaScript |
     | Jorge | <EMAIL>  | penguindrool | Football Player | 999  | Back-end   |
     | Kandi | <EMAIL>       | anotherteam  | EECS            | 567  | CSS        |
    And I am on the login page
    And I log in as a user with email "<EMAIL>"
    And I follow "My Info"

  Scenario: I want to display my name on the teams page
    Given I follow "Edit"
    And I check "Name Visible to Other Teams" 
    And I press "Update Information"
    And I am on the teams page
    Then I should see "Sahai"

  Scenario: I do not want to display my name on the teams page
    Given I follow "Edit"
    And I uncheck "Name Visible to Other Teams" 
    And I press "Update Information"
    And I am on the teams page
    Then I should not see "Sahai"


{'fraction_non_alphanumeric': 0.055345911949685536, 'fraction_numerical': 0.007547169811320755, 'mean_word_length': 2.024081115335868, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2545494', 'n_tokens_mistral': 725, 'n_tokens_neox': 673, 'n_words': 340}