<commit_before>Feature: gcli content

  Scenario: Available commands

    When I run `gcli content`
    Then the exit status should be 0
      And the output should contain "gcli content get"
      And the output should contain "gcli content readme"
      And the output should contain "gcli content archive"

  Scenario: Readme
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/readme') { status 200 }
    """
    When I run `gcli content readme wycats thor`
    Then the exit status should be 0

  Scenario: Get content
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/contents/lib') { status 200 }
    """
    When I run `gcli content get wycats thor lib`
    Then the exit status should be 0

  Scenario: Archive
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/zipball/master') { status 200 }
    """
    When I run `gcli content archive wycats thor`
    Then the exit status should be 0

  Scenario: Archive with params
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/tarball/new_feature') { status 200 }
    """
    When I run `gcli content archive wycats thor --params=archive_format:tarball ref:new_feature`
    Then the exit status should be 0
<commit_msg>Add content commands feature to ci run.<commit_after>Feature: gcli content

  @ci-run
  Scenario: Available commands

    When I run `gcli content`
    Then the exit status should be 0
      And the output should contain "content get"
      And the output should contain "content readme"
      And the output should contain "content archive"

  Scenario: Readme
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/readme') { status 200 }
    """
    When I run `gcli content readme wycats thor`
    Then the exit status should be 0

  Scenario: Get content
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/contents/lib') { status 200 }
    """
    When I run `gcli content get wycats thor lib`
    Then the exit status should be 0

  Scenario: Archive
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/zipball/master') { status 200 }
    """
    When I run `gcli content archive wycats thor`
    Then the exit status should be 0

  Scenario: Archive with params
    Given the GitHub API server:
    """
    get('/repos/wycats/thor/tarball/new_feature') { status 200 }
    """
    When I run `gcli content archive wycats thor --archive_format=tarball --ref=new_feature`
    Then the exit status should be 0

{'fraction_non_alphanumeric': 0.08213716108452951, 'fraction_numerical': 0.013556618819776715, 'mean_word_length': 2.8188736681887367, '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': '7357193', 'n_tokens_mistral': 806, 'n_tokens_neox': 715, 'n_words': 300}