<commit_before>Feature: Install WP-CLI packages

  Scenario: Install a package with an old package index url in package composer.json
    Given an empty directory
    And a composer.json file:
      """
      {
        "repositories": {
          "wp-cli": {
            "type": "composer",
            "url": "http://wp-cli.org/package-index/"
          }
        }
      }
      """
    When I run `rm -rf /tmp/wp-cli-package-install-test/ && mkdir /tmp/wp-cli-package-install-test/ && mv composer.json /tmp/wp-cli-package-install-test/`
    Then the /tmp/wp-cli-package-install-test/composer.json file should exist
    When I run `WP_CLI_PACKAGES_DIR=/tmp/wp-cli-package-install-test/ wp --info`
    Then STDOUT should contain:
      """
      WP-CLI packages dir:	/tmp/wp-cli-package-install-test/<commit_msg>clarify scenario verbiage to specify http<commit_after>Feature: Install WP-CLI packages

  Scenario: Install a package with an http package index url in package composer.json
    Given an empty directory
    And a composer.json file:
      """
      {
        "repositories": {
          "wp-cli": {
            "type": "composer",
            "url": "http://wp-cli.org/package-index/"
          }
        }
      }
      """
    When I run `rm -rf /tmp/wp-cli-package-install-test/ && mkdir /tmp/wp-cli-package-install-test/ && mv composer.json /tmp/wp-cli-package-install-test/`
    Then the /tmp/wp-cli-package-install-test/composer.json file should exist
    When I run `WP_CLI_PACKAGES_DIR=/tmp/wp-cli-package-install-test/ wp --info`
    Then STDOUT should contain:
      """
      WP-CLI packages dir:	/tmp/wp-cli-package-install-test/
{'fraction_non_alphanumeric': 0.13172205438066464, 'fraction_numerical': 0.0, 'mean_word_length': 2.2217898832684826, 'pattern_counts': {'":': 8, '<': 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': '2992301', 'n_tokens_mistral': 536, 'n_tokens_neox': 527, 'n_words': 128}