<commit_before>@api
Feature: Event types API
  To permit searching by event types
  The frontend application
  Needs to know what event types exists.

  Background:
    Given I use the credentials "user":"user"
    And Pancakes uses MDES version 3.2

  Scenario: GET /api/v1/event_types.json returns all known event types
    When I GET /api/v1/event_types.json

    Then the response status is 200
    And the response body contains 40 objects under "/event_types"

  Scenario: GET /api/v1/event_types returns an event type name and code
    When I GET /api/v1/event_types.json

    Then the response body satisfies<commit_msg>Correct a pluralization error.<commit_after>@api
Feature: Event types API
  To permit searching by event types
  The frontend application
  Needs to know what event types exist.

  Background:
    Given I use the credentials "user":"user"
    And Pancakes uses MDES version 3.2

  Scenario: GET /api/v1/event_types.json returns all known event types
    When I GET /api/v1/event_types.json

    Then the response status is 200
    And the response body contains 40 objects under "/event_types"

  Scenario: GET /api/v1/event_types returns an event type name and code
    When I GET /api/v1/event_types.json

    Then the response body satisfies
{'fraction_non_alphanumeric': 0.05267295597484277, 'fraction_numerical': 0.01729559748427673, 'mean_word_length': 3.4048442906574397, 'pattern_counts': {'":': 2, '<': 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': '4869974', 'n_tokens_mistral': 380, 'n_tokens_neox': 354, 'n_words': 162}