<commit_before>Feature: Notify push to repository
  In order to automatically process a repository
  As a regular user
  I want to use a webhook in my repository to notify Mezuro of new pushes

  @kalibro_configuration_restart @kalibro_processor_restart
  Scenario: Valid repository
    Given I am a regular user
    And I have a sample configuration with native metrics
    And I have a sample repository
    And I start to process that repository
    And I wait up for a ready processing
    When I push some commits to the repository
    Then Mezuro should process the repository again

  @kalibro_configuration_restart @kalibro_processor_restart
  Scenario: Invalid repository
    Given I am a regular user
    When I push some commits to an invalid repository
    Then I should get a not found error

  @kalibro_configuration_restart @kalibro_processor_restart
  Scenario: Repository with an errored processing
    Given I am a regular user
    And I have a sample configuration with native metrics
    And I have a compound metric configuration with script "rtrnaqdfwqefwqr213r2145211234ed a = b=2" within the given mezuro configuration
    And I have a sample repository
    And I start to process that repository
    And I wait up for an error processing
    When I push some commits to the repository
    Then Mezuro should process the repository again
<commit_msg>Use metric fu metrics instead of analizo metrics on acceptance tests<commit_after>Feature: Notify push to repository
  In order to automatically process a repository
  As a regular user
  I want to use a webhook in my repository to notify Mezuro of new pushes

  @kalibro_configuration_restart @kalibro_processor_restart
  Scenario: Valid repository
    Given I am a regular user
    And I have a sample configuration with hotspot metrics
    And I have a sample repository
    And I start to process that repository
    And I wait up for a ready processing
    When I push some commits to the repository
    Then Mezuro should process the repository again

  @kalibro_configuration_restart @kalibro_processor_restart
  Scenario: Invalid repository
    Given I am a regular user
    When I push some commits to an invalid repository
    Then I should get a not found error

  @kalibro_configuration_restart @kalibro_processor_restart
  Scenario: Repository with an errored processing
    Given I am a regular user
    And I have a sample configuration with native metrics
    And I have a compound metric configuration with script "rtrnaqdfwqefwqr213r2145211234ed a = b=2" within the given mezuro configuration
    And I have a sample repository
    And I start to process that repository
    And I wait up for an error processing
    When I push some commits to the repository
    Then Mezuro should process the repository again

{'fraction_non_alphanumeric': 0.012125534950071327, 'fraction_numerical': 0.009985734664764621, 'mean_word_length': 3.827882960413081, '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': '4214696', 'n_tokens_mistral': 727, 'n_tokens_neox': 696, 'n_words': 392}