<commit_before>Feature: Repository hotspot metric results
  In order to better understand the results of the analysis
  As a regular user
  I should see the hotspot metric results list

  @kalibro_configuration_restart @kalibro_processor_restart @javascript
  Scenario: Should show the message when the graphic of the given metric has only a single point
    Given I am a regular user
    And I am signed in
    And I own a sample configuration
    And I am at the Sample Configuration page
    And I click the Add Metric link
    And I click the "MetricFu" h3
    And I click the Duplicate Code link
    And I press the Save button
    Given I have a sample project
    And I have a sample ruby repository within the sample project
    And I start to process that repository
    And I wait up for a ready processing
    And I ask for the last ready processing of the given repository
    And I ask for the module result of the given processing
    And I ask for the hotspot metric results of the given module result
    When I visit the repository show page
    And I click the "Hotspot Metric Results" h3
    Then I should have at least one hotspot metric result
    And I should see the hotspot metric results file names
    And I should see the hotspot metric results messages
    When I click the "Tree Metric Results" h3
    Then I should not see "Duplicate Code"

  @kalibro_configuration_restart @kalibro_processor_restart @javascript
  Scenario: Should show the error message when the process fails
    Given I am a regular user
    And I am signed in
    And I have a sample project
    And I have a sample configuration with native metrics
    And I have a sample of an invalid repository within the sample project
    And I start to process that repository
    And I wait up for an error processing
    When I visit the repository show page
    And I click the "Hotspot Metric Results" h3
    Then I should see "Repository process returned with error. There are no hotspot metric results."
<commit_msg>Remove wrong Save click in Repository Hotspot Result show feature<commit_after>Feature: Repository hotspot metric results
  In order to better understand the results of the analysis
  As a regular user
  I should see the hotspot metric results list

  @kalibro_configuration_restart @kalibro_processor_restart @javascript
  Scenario: Should show the message when the graphic of the given metric has only a single point
    Given I am a regular user
    And I am signed in
    And I own a sample configuration
    And I am at the Sample Configuration page
    And I click the Add Metric link
    And I click the "MetricFu" h3
    And I click the Duplicate Code link
    Given I have a sample project
    And I have a sample ruby repository within the sample project
    And I start to process that repository
    And I wait up for a ready processing
    And I ask for the last ready processing of the given repository
    And I ask for the module result of the given processing
    And I ask for the hotspot metric results of the given module result
    When I visit the repository show page
    And I click the "Hotspot Metric Results" h3
    Then I should have at least one hotspot metric result
    And I should see the hotspot metric results file names
    And I should see the hotspot metric results messages
    When I click the "Tree Metric Results" h3
    Then I should not see "Duplicate Code"

  @kalibro_configuration_restart @kalibro_processor_restart @javascript
  Scenario: Should show the error message when the process fails
    Given I am a regular user
    And I am signed in
    And I have a sample project
    And I have a sample configuration with native metrics
    And I have a sample of an invalid repository within the sample project
    And I start to process that repository
    And I wait up for an error processing
    When I visit the repository show page
    And I click the "Hotspot Metric Results" h3
    Then I should see "Repository process returned with error. There are no hotspot metric results."

{'fraction_non_alphanumeric': 0.012845849802371542, 'fraction_numerical': 0.001976284584980237, 'mean_word_length': 3.325854700854701, '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': '2365182', 'n_tokens_mistral': 976, 'n_tokens_neox': 967, 'n_words': 647}