<commit_before>@javascript
Feature: Manage ALM Database
  I should be able to manage ALM content via the command line

  Background:
    Given I am logged in as "admin"

    Scenario: Articles are queued succesfully
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles.txt"
      Then the output should contain "Started import of 2 articles in the background..."

    Scenario: Articles are added succesfully
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles.txt"
      And I go to the "Alerts" admin page
      Then I should see 0 alert

    Scenario: Articles with year and month as publication date added succesfully
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles_year_month.txt"
      And I go to the "Alerts" admin page
      Then I should see 0 alert

    Scenario: Articles with year as publication date added succesfully
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles_year.txt"
      And I go to the "Alerts" admin page
      Then I should see 0 alert

    Scenario: Articles without publication date are not added
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles_nil_dates.txt"
      And I go to the "Alerts" admin page
      Then I should see 0 alert

    Scenario: Articles are deleted succesfully
      When I run `bundle exec rake db:articles:delete` interactively
      And I pipe in the file "../../spec/fixtures/articles.txt"
      Then the output should contain "Reading dois from standard input..."
      Then the output should contain "Read 2 valid entries; ignored 0 invalid entries"
      Then the output should contain "Deleted 0 articles, ignored 2 articles"<commit_msg>ALM-682 don't use admin namespace<commit_after>@javascript
Feature: Manage ALM Database
  I should be able to manage ALM content via the command line

  Background:
    Given I am logged in as "admin"

    Scenario: Articles are queued succesfully
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles.txt"
      Then the output should contain "Started import of 2 articles in the background..."

    Scenario: Articles are added succesfully
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles.txt"
      And I go to the "Alerts" page
      Then I should see 0 alert

    Scenario: Articles with year and month as publication date added succesfully
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles_year_month.txt"
      And I go to the "Alerts" page
      Then I should see 0 alert

    Scenario: Articles with year as publication date added succesfully
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles_year.txt"
      And I go to the "Alerts" page
      Then I should see 0 alert

    Scenario: Articles without publication date are not added
      When I run `bundle exec rake db:articles:load` interactively
      And I pipe in the file "../../spec/fixtures/articles_nil_dates.txt"
      And I go to the "Alerts" page
      Then I should see 0 alert

    Scenario: Articles are deleted succesfully
      When I run `bundle exec rake db:articles:delete` interactively
      And I pipe in the file "../../spec/fixtures/articles.txt"
      Then the output should contain "Reading dois from standard input..."
      Then the output should contain "Read 2 valid entries; ignored 0 invalid entries"
      Then the output should contain "Deleted 0 articles, ignored 2 articles"
{'fraction_non_alphanumeric': 0.06531645569620254, 'fraction_numerical': 0.005316455696202532, 'mean_word_length': 2.919642857142857, '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': '7115645', 'n_tokens_mistral': 1082, 'n_tokens_neox': 1024, 'n_words': 521}