<commit_before><commit_msg>adding features for view permission<commit_after>Feature: View List
  Users want to view some lists

  Scenario: A registered user tries to view his own list
    Given I am a registered user
    And I have a public list
    When I try to view my list
    Then I should see it

  Scenario: A registered user tries to view his own non-readable list
    Given I am a registered user
    And I have a non-readable list
    When I try to view my list
    Then I should see it

  Scenario: A registered user tries to view a non-readable list
    Given I am a registered user
    When I try to view a non-readable list
    Then I should see a warning which reads "That list could not be found."
    And I should see my organizer

  Scenario: A registered user tries to view a public list
    Given I am a registered user
    When I try to view a public list
    Then I should see it

  Scenario: An anonymous user tries to view his own list
    Given I am an anonymous user
    And I have a public list
    When I try to view my list
    Then I should see it
    
  Scenario: An anonymous user tries to view a non-readable list
    Given I am an anonymous user
    When I try to view a non-readable list
    Then I should see a warning which reads "That list could not be found."
    And I should see my organizer

  Scenario: An anonymous user tries to view a non-existent list
    Given I am an anonymous user
    When I try to view a non-existent list
    Then I should see a warning which reads "That list could not be found."
    And I should see my organizer

  Scenario: An anonymous user tries to view a public list
    Given I am an anonymous user
    When I try to view a public list
    Then I should see it

  Scenario: A guest tries to view a non-readable list
    Given I am a guest
    When I try to view a non-readable list
    Then I should be redirected to the home page
    And I should see a warning which reads "That list could not be found."

  Scenario: A guest tries to view a non-existent list
    Given I am a guest
    When I try to view a non-existent list
    Then I should be redirected to the home page
    And I should see a warning which reads "That list could not be found."

{'fraction_non_alphanumeric': 0.01973979362943024, 'fraction_numerical': 0.0, 'mean_word_length': 2.7043189368770766, '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': '7189968', 'n_tokens_mistral': 594, 'n_tokens_neox': 569, 'n_words': 396}