<commit_before>Feature: review comments

  The whole point of the bot: get comments when changes get review comments.

  Background:
    Given a person named <NAME> with email address <EMAIL>
      And a person named <NAME> with email address <EMAIL>
      And everybody sends the enable command to the bot
      And a Gerrit project named tools
  
  Scenario: review without message
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with Code-Review+2
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "+2"
       And this message includes the text "Submittable"

  Scenario: review with message
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with Code-Review+2 and the comment "Good job!"
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "+2"
       And this message includes the text "Good job!"
       And this message includes the text "Submittable"

  Scenario: insufficient review without message
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with Code-Review+1
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "+1"
       And this message does not include the text "Submittable"

  Scenario: insufficient review without message
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with Code-Review+1 and the comment "Okay job."
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "+1"
       And this message does not include the text "Submittable"

  Scenario: inline comments
     Given Bob uploads a new change to the tools project
       And Bob creates the file "README" with the following content in the change:
       """
       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
       volutpat ornare convallis. Sed luctus imperdiet nisl, at malesuada risus
       tincidunt vitae. Donec iaculis, lectus ac tempor ullamcorper, lorem odio
       eleifend quam, id ullamcorper metus lacus quis lorem. Aenean fringilla,
       erat vitae rhoncus ultrices, purus est pharetra erat, ac auctor nunc
       sapien eget justo. Nam in iaculis lacus. Cras sit amet nibh libero. Etiam
       non sem quis tortor efficitur ornare sit amet a eros. Aenean commodo
       tempor lectus, id fermentum nisl semper nec. Mauris quis odio sit amet
       nulla volutpat porta et et turpis.
       """
       And Alice replies to Bob's change with Code-Review-2 and the comment "Boo!" and the following inline comments:
       """
       File: README
       Line 0: You shouldn't be adding this file in the first place.
       Line 8: Who even is Mauris?
       """
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "-2"
       And this message includes the text "Boo!"
       And this message includes the text "README"
       And this message includes the text "You shouldn't be adding this file in the first place."
       And this message includes the text "Who even is Mauris?"

  Scenario: comment without approval is not sent by default
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with the comment "I don't care."
      When we check for messages by the bot
      Then there is no message for Bob which includes the text "I don't care."<commit_msg>test: inline comments without approvals create messages<commit_after>Feature: review comments

  The whole point of the bot: get comments when changes get review comments.

  Background:
    Given a person named <NAME> with email address <EMAIL>
      And a person named <NAME> with email address <EMAIL>
      And everybody sends the enable command to the bot
      And a Gerrit project named tools
  
  Scenario: review without message
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with Code-Review+2
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "+2"
       And this message includes the text "Submittable"

  Scenario: review with message
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with Code-Review+2 and the comment "Good job!"
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "+2"
       And this message includes the text "Good job!"
       And this message includes the text "Submittable"

  Scenario: insufficient review without message
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with Code-Review+1
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "+1"
       And this message does not include the text "Submittable"

  Scenario: insufficient review without message
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with Code-Review+1 and the comment "Okay job."
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "+1"
       And this message does not include the text "Submittable"

  Scenario: inline comments
     Given Bob uploads a new change to the tools project
       And Bob creates the file "README" with the following content in the change:
       """
       Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
       volutpat ornare convallis. Sed luctus imperdiet nisl, at malesuada risus
       tincidunt vitae. Donec iaculis, lectus ac tempor ullamcorper, lorem odio
       eleifend quam, id ullamcorper metus lacus quis lorem. Aenean fringilla,
       erat vitae rhoncus ultrices, purus est pharetra erat, ac auctor nunc
       sapien eget justo. Nam in iaculis lacus. Cras sit amet nibh libero. Etiam
       non sem quis tortor efficitur ornare sit amet a eros. Aenean commodo
       tempor lectus, id fermentum nisl semper nec. Mauris quis odio sit amet
       nulla volutpat porta et et turpis.
       """
       And Alice replies to Bob's change with Code-Review-2 and the comment "Boo!" and the following inline comments:
       """
       File: README
       Line 0: You shouldn't be adding this file in the first place.
       Line 8: Who even is Mauris?
       """
      When we check for messages by the bot
      Then there is a message for Bob which includes the text "Code-Review"
       And this message includes the text "-2"
       And this message includes the text "Boo!"
       And this message includes the text "README"
       And this message includes the text "You shouldn't be adding this file in the first place."
       And this message includes the text "Who even is Mauris?"

  Scenario: inline comments without approval
     Given Bob uploads a new change to the tools project
       And Bob creates the file "README" with the following content in the change:
       """
       We should have a README.
       """
       And Alice replies to Bob's change with the following inline comments:
       """
       File: README
       Line 1: Yes, but please write something useful at least.
       """
      When we check for messages by the bot
      Then there is no message for Bob which includes the text "Code-Review"
       And there is a message for Bob which includes the text "Yes, but please write something useful at least."

  Scenario: comment without approval is not sent by default
     Given Bob uploads a new change to the tools project
       And Alice replies to Bob's change with the comment "I don't care."
      When we check for messages by the bot
      Then there is no message for Bob which includes the text "I don't care."
{'fraction_non_alphanumeric': 0.0386844907133562, 'fraction_numerical': 0.0029575298710516978, 'mean_word_length': 2.79443447037702, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '795963', 'n_tokens_mistral': 2213, 'n_tokens_neox': 2140, 'n_words': 1248}