<commit_before>Feature: File adjustement
  Scenario: Adjust inexistent destination file
    Given a random file "source" exists and is 42 B
    And a file "target" does not exist
    When I synchronize "source" -> "target"
    Then the file "target" should exist
    And the file "target" sould be 42 B long
    And "source" and "target" should have the same mtime
    And "source" and "target" should have the same content

  Scenario: Adjust different destination file
    Given a random file "source" exists and is 42 B
    And I wait 0.1 s
    And a random file "target" exists and is 42 B
    When I synchronize "source" -> "target"
    Then the file "target" should exist
    And the file "target" sould be 42 B long
    And "source" and "target" should have the same mtime
    And "source" and "target" should have the same content

  Scenario: Adjust larger destination file
    Given a random file "source" exists and is 42 B
    And a random file "target" exists and is 4 KB
    When I synchronize "source" -> "target"
    Then the file "target" should exist
    And the file "target" sould be 42 B long
    And "source" and "target" should have the same mtime
    And "source" and "target" should have the same content

  Scenario: Transfer only changed chunks
    Given a random file "source" exists and is 42 MB
    And "target" is a copy of "source" with 1 byte changed
    When I synchronize "source" -> "target"
    Then "source" and "target" should have the same size
    And "source" and "target" should have the same mtime
    And "source" and "target" should have the same content
    And the client should have sent 8288 B
    And the client should have received 131075 B
<commit_msg>Check client's xfer information<commit_after>Feature: File adjustement
  Scenario: Adjust inexistent destination file
    Given a random file "source" exists and is 42 B
    And a file "target" does not exist
    When I synchronize "source" -> "target"
    Then the file "target" should exist
    And the file "target" sould be 42 B long
    And "source" and "target" should have the same mtime
    And "source" and "target" should have the same content
    And the client should have sent 42 B
    And the client should have received 0 B

  Scenario: Adjust different destination file
    Given a random file "source" exists and is 42 B
    And I wait 0.1 s
    And a random file "target" exists and is 42 B
    When I synchronize "source" -> "target"
    Then the file "target" should exist
    And the file "target" sould be 42 B long
    And "source" and "target" should have the same mtime
    And "source" and "target" should have the same content
    And the client should have sent 75 B
    And the client should have received 33 B

  Scenario: Adjust larger destination file
    Given a random file "source" exists and is 42 B
    And a random file "target" exists and is 4 KB
    When I synchronize "source" -> "target"
    Then the file "target" should exist
    And the file "target" sould be 42 B long
    And "source" and "target" should have the same mtime
    And "source" and "target" should have the same content
    And the client should have sent 75 B
    And the client should have received 33 B

  Scenario: Transfer only changed chunks
    Given a random file "source" exists and is 42 MB
    And "target" is a copy of "source" with 1 byte changed
    When I synchronize "source" -> "target"
    Then "source" and "target" should have the same size
    And "source" and "target" should have the same mtime
    And "source" and "target" should have the same content
    And the client should have sent 8288 B
    And the client should have received 131075 B

{'fraction_non_alphanumeric': 0.05400271370420624, 'fraction_numerical': 0.019267299864314788, 'mean_word_length': 3.132286995515695, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7019038', 'n_tokens_mistral': 1062, 'n_tokens_neox': 981, 'n_words': 587}