<commit_before>Feature: Notify when changed
  In order to keep track of changes to files
  As an admin
  I want Filewatcher to send me an email after N amount of changed files

  Scenario: Change four files
    Given an empty file named "spots/Noord-Holland/Wijk aan Zee"
    And an empty file named "spots/Noord-Holland/IJmuiden"
    And an empty file named "spots/Gelderland/Strand Horst"
    And an empty file named "spots/Zeeland/Brouwersdam"
    And I set the environment variables to:
      | variable       | value |
      | FW_BUFFER_PATH | .     |
      | FW_BUFFER_SIZE | 3     |
    When I run `filewatcher spots/Noord-Holland/Wijk aan Zee`
    And I run `filewatcher spots/Noord-Holland/IJmuiden`
    Then a file matching %r<buffer/.+> should exist
    When I run `filewatcher spots/Gelderland/Strand Horst`
    Then a file matching %r<email/.*/plain.html> should exist
    And a file matching %r<buffer/.+> should not exist
    When I run `filewatcher spots/Zeeland/Brouwersdam`
    Then the output from "filewatcher spots/Zeeland/Brouwersdam" should contain exactly ""
    And a file matching %r<buffer/.+> should exist
<commit_msg>Clean up feature<commit_after>Feature: Notify when changed
  In order to keep track of changes to files
  As an admin
  I want Filewatcher to send me an email after N amount of changed files

  Scenario: Change four files
    Given an empty file named "spots/Noord-Holland/Wijk aan Zee"
    And an empty file named "spots/Noord-Holland/IJmuiden"
    And an empty file named "spots/Gelderland/Strand Horst"
    And an empty file named "spots/Zeeland/Brouwersdam"
    And I set the environment variables to:
      | variable       | value |
      | FW_BUFFER_PATH | .     |
      | FW_BUFFER_SIZE | 3     |
    When I run `filewatcher spots/Noord-Holland/Wijk aan Zee`
    And I run `filewatcher spots/Noord-Holland/IJmuiden`
    Then a file matching %r<buffer/.+> should exist
    When I run `filewatcher spots/Gelderland/Strand Horst`
    Then a file matching %r<email/.*/plain.html> should exist
    And a file matching %r<buffer/.+> should not exist
    When I run `filewatcher spots/Zeeland/Brouwersdam`
    Then a file matching %r<buffer/.+> should exist

{'fraction_non_alphanumeric': 0.07346938775510205, 'fraction_numerical': 0.0009070294784580499, 'mean_word_length': 3.108007448789572, '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': '2936823', 'n_tokens_mistral': 719, 'n_tokens_neox': 682, 'n_words': 261}