<commit_before>Feature: Review challenges as admin
  In order to review challenges
  As an admin
  I want to be able to view 'pending for review' challenges 
  And I want be able to add comments to a challenge
  And I want to be able to edit the challenge
  And I want to be able to approve the challenge
  And I want to be able to decline the challenge
  
  Background:
    Given the following user records
    |id | firstname | lastname | email | password | password_confirmation | role |
    | 1 | Marcel | Boersma | <EMAIL> | pass<PASSWORD> | pass<PASSWORD> | 2 |
    | 2 | Bas    | Veeling | <EMAIL> | pass<PASSWORD> | pass<PASSWORD> | 1 |
    | 3 | <NAME> | <EMAIL> | pass<PASSWORD> | pass<PASSWORD> | 0 |
    And the following challenge records
    | id  | title   | description  | start_date | end_date  | state    | count | supervisor_id | updated_at |
    | 1 | Awesome challenge | This is an awesome challenge | next week | next month | pending | 1 | 2 | today |
    | 2 | Not so awesome challenge | This is not so awesome | next week | next month | pending | 2 |  2 | today |
    | 3 | Not pending challenge | this is a challenge description | next week | next month | declined | 2 | 2 | today |
    When I visit the "login" page
    And I fill in email with "<EMAIL>" and password with "<PASSWORD>"
  
  Scenario: View pending challenges
    When I visit the "admin/review.index" page
    Then I should see "Awesome challenge" in the "pending_challenges" list
    And I should see "Not so awesome challenge" in the "pending_challenges" list<commit_msg>Bram buys cake for this<commit_after>Feature: Review challenges as admin
  In order to review challenges
  As an admin
  I want to be able to view 'pending for review' challenges 
  And I want be able to add comments to a challenge
  And I want to be able to edit the challenge
  And I want to be able to approve the challenge
  And I want to be able to decline the challenge
  
  Background:
    Given the following user records
    |id | firstname | lastname | email | password | password_confirmation | role |
    | 1 | <NAME> | <EMAIL> | pass<PASSWORD> | pass<PASSWORD> | 2 |
    | 2 | Bas    | Veeling | <EMAIL> | pass123456 | pass<PASSWORD> | 1 |
    | 3 | <NAME> | <EMAIL> | pass<PASSWORD> | pass<PASSWORD> | 0 |
    And the following challenge records
    | id  | title   | description  | start_date | end_date  | state    | count | supervisor_id | updated_at |
    | 1 | Awesome challenge | This is an awesome challenge | next week | next month | pending | 1 | 2 | today |
    | 2 | Not so awesome challenge | This is not so awesome | next week | next month | pending | 2 |  2 | today |
    | 3 | Not pending challenge | this is a challenge description | next week | next month | draft | 2 | 2 | today |
    When I visit the "login" page
    And I fill in email with "<EMAIL>" and password with "<PASSWORD>"
  
  Scenario: View pending challenges
    When I visit the "admin/review.index" page
    Then I should see "Awesome challenge" in the "pending_challenges" list
    And I should see "Not so awesome challenge" in the "pending_challenges" list
{'fraction_non_alphanumeric': 0.0771693884085815, 'fraction_numerical': 0.011527377521613832, 'mean_word_length': 3.094364351245085, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '4801297', 'n_tokens_mistral': 925, 'n_tokens_neox': 873, 'n_words': 426}