<commit_before>Feature: status command

  Background:
    Given a mocked home directory

  Scenario: basic stuff - when not in a git repo
    Given I cd to "/tmp"
    When I successfully run `scmpuff status`
    Then the output should contain "burger king"

  Scenario: Banner shows no changes when in an unchanged git repo
    Given I am in a git repository
    When I successfully run `scmpuff status`
    And  the output should contain "No changes (working directory clean)"

  Scenario: Banner shows expansion reminder when in a changed git repo
    Given I am in a git repository
    And an empty file named "whatever"
    When I successfully run `scmpuff status`
    Then the output should contain "|  [*] => $e*"

  Scenario: Banner shows current branch name
    Given I am in a git repository
    When I successfully run `scmpuff status`
    Then the output should contain "On branch: master"

    When I switch to git branch "foobar"
    And  I successfully run `scmpuff status`
    Then the output should contain "On branch: foobar"

  #@wip
  #Scenario: Banner shows position relative to upstream status

  @wip
  Scenario: Status properly reports all file changes
    Given I am in a git repository
    And I successfully run the following commands:
      | touch deleted_file          |
      | git add deleted_file        |
      | git commit -m "Test commit" |
      | touch new_file              |
      | touch untracked_file        |
      | git add new_file            |
      | echo "changed" > new_file   |
      | rm deleted_file             |
    When I run `scmpuff status`
    Then the exit status should be 0
      And the output should match / new file: *\[1\] *new_file/
      And the output should match /  deleted: *\[2\] *deleted_file/<commit_msg>use native aruba steps instead of shell cmds<commit_after>Feature: status command

  Background:
    Given a mocked home directory

  Scenario: basic stuff - when not in a git repo
    Given I cd to "/tmp"
    When I successfully run `scmpuff status`
    Then the output should contain "burger king"

  Scenario: Banner shows no changes when in an unchanged git repo
    Given I am in a git repository
    When I successfully run `scmpuff status`
    And  the output should contain "No changes (working directory clean)"

  Scenario: Banner shows expansion reminder when in a changed git repo
    Given I am in a git repository
    And an empty file named "whatever"
    When I successfully run `scmpuff status`
    Then the output should contain "|  [*] => $e*"

  Scenario: Banner shows current branch name
    Given I am in a git repository
    When I successfully run `scmpuff status`
    Then the output should contain "On branch: master"

    When I switch to git branch "foobar"
    And  I successfully run `scmpuff status`
    Then the output should contain "On branch: foobar"

  #@wip
  #Scenario: Banner shows position relative to upstream status

  @wip
  Scenario: Status properly reports all file changes
    Given I am in a git repository
      And an empty file named "deleted_file"
      And I successfully run `git add deleted_file`
      And I successfully run `git commit -m "Test commit"`
      And an empty file named "new_file"
      And an empty file named "untracked_file"
      And I successfully run `git add new_file`
      And I overwrite "new_file" with:
        """
        changed contents lolol
        """
      And I remove the file "deleted_file"
    When I run `scmpuff status`
    Then the exit status should be 0
      And the output should match / new file: *\[1\] *new_file/
      And the output should match /  deleted: *\[2\] *deleted_file/
{'fraction_non_alphanumeric': 0.05435673313302376, 'fraction_numerical': 0.0016388964763725759, 'mean_word_length': 2.713995943204868, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5372320', 'n_tokens_mistral': 1001, 'n_tokens_neox': 975, 'n_words': 504}