<commit_before>@github_query
Feature: Displaying GitHub contribution statistics for user
  As a member of AV
  So that I can find out what projects others are contributing to
  I should see the number of commits they have made to projects listed on their profile page.

  Background:
    Given the following projects exist:
      | title      | description       | status | github_url                                  |
      | WebsiteOne | agileventures.org | active | https://github.com/AgileVentures/WebsiteOne |
    And the following users exist
      | first_name | last_name | email                  | github_profile_url         |
      | Bryan      | Yap       | <EMAIL>          | https://github.com/yggie   |
      | Thomas     | Ochman    | <EMAIL>    |                            |
    And I fetch the GitHub contribution statistics
    And "Bryan" is a member of project "WebsiteOne"
    And "Thomas" is a member of project "WebsiteOne"

  Scenario: Displays commit counts on user profile page
    Given I am on "profile" page for user "Bryan"
    Then I should see "Contributions"
    And I should see "WebsiteOne - 388"

  Scenario: Does not display commit counts for user without github profile url
    Given I am on "profile" page for user "Thomas"
    Then I should not see "Contributions"
    And I should not see "WebsiteOne - 316"

  Scenario: Does not display commit counts for projects not followed by a user
    Given I am on "profile" page for user "Thomas"
    And "Thomas" is not a member of project "WebsiteOne"
    Then I should not see "Contributions"
    And I should not see "WebsiteOne - 316"
<commit_msg>Minor fix to a broken cuccumber test<commit_after>@github_query
Feature: Displaying GitHub contribution statistics for user
  As a member of AV
  So that I can find out what projects others are contributing to
  I should see the number of commits they have made to projects listed on their profile page.

  Background:
    Given the following projects exist:
      | title      | description       | status | github_url                                  |
      | WebsiteOne | agileventures.org | active | https://github.com/AgileVentures/WebsiteOne |
    And the following users exist
      | first_name | last_name | email                  | github_profile_url         |
      | Bryan      | Yap       | <EMAIL>          | https://github.com/yggie   |
      | Thomas     | Ochman    | <EMAIL>    |                            |
    And I fetch the GitHub contribution statistics
    And "Bryan" is a member of project "WebsiteOne"
    And "Thomas" is a member of project "WebsiteOne"

  Scenario: Displays commit counts on user profile page
    Given I am on "profile" page for user "Bryan"
    Then I should see "Contributions"
    And I should see "WebsiteOne - 394"

  Scenario: Does not display commit counts for user without github profile url
    Given I am on "profile" page for user "Thomas"
    Then I should not see "Contributions"
    And I should not see "WebsiteOne - 316"

  Scenario: Does not display commit counts for projects not followed by a user
    Given I am on "profile" page for user "Thomas"
    And "Thomas" is not a member of project "WebsiteOne"
    Then I should not see "Contributions"
    And I should not see "WebsiteOne - 316"

{'fraction_non_alphanumeric': 0.055201698513800426, 'fraction_numerical': 0.00545950864422202, 'mean_word_length': 2.417616580310881, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '1357441', 'n_tokens_mistral': 916, 'n_tokens_neox': 841, 'n_words': 408}