<commit_before>Feature: Admin can upload a .txt file

  As a logged-in admin,
  In order to create content
  I want to be able to upload a .txt file
  Where the name of file is YYYY-MM-DD_read_english.txt and YYYY-MM-DD_chinese.txt
  Such that students will be able to see the contents of the file in the Reading View on the given date

  Background: On admin dashboard page and certain files exist
    Given a "txt" file exists for "read_english" for today
    And   it has content "Hello World"
    Given a "txt" file exists for "read_chinese" for today
    And   it has content "你好，世界"
    Given a "txt" file exists for "read_english" for tomorrow
    And   it has content "Thank you"
    Given a "txt" file exists for "read_chinese" for tomorrow
    And   it has content "谢谢"
    Given no content has been uploaded
    Given I am logged in as an admin

  Scenario: Uploading read content that a student can see with today's date
    Given I successfully upload files for today
    And I am logged in as a student
    And   I follow "Read"
    Then  I should see "Hello World"
    Then  I should see "你好，世界"
<commit_msg>refactored cucumber scenario upload<commit_after>Feature: Admin can upload a .txt file

  As a logged-in admin,
  In order to create content
  I want to be able to upload a .txt file
  Where the name of file is YYYY-MM-DD_read_english.txt and YYYY-MM-DD_chinese.txt
  Such that students will be able to see the contents of the file in the Reading View on the given date 

  Background: On admin dashboard page and certain files exist
    Given I haven't uploaded any files to the app
    And the following files exist on my local computer with today's date:
      | name                        | content      |
      | YYYY-MM-DD_read_english.txt | Hello World  |
      | YYYY-MM-DD_read_chinese.txt | 你好，世界   |
    And the following files exist on my local computer with tomorrow's date:
      | name                        | content      |
      | YYYY-MM-DD_read_english.txt | Thank you    |
      | YYYY-MM-DD_read_chinese.txt | 谢谢         |

  Scenario: Uploading read content that a student can see with today's date
    Given I successfully upload files for today
    And I am logged in as a student
    And   I follow "Read"
    Then  I should see "Hello World"
    Then  I should see "你好，世界"

{'fraction_non_alphanumeric': 0.04690189328743546, 'fraction_numerical': 0.0, 'mean_word_length': 2.667192429022082, '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': '2344547', 'n_tokens_mistral': 696, 'n_tokens_neox': 680, 'n_words': 336}