<commit_before>Feature: Bootstrap a new command-line app
  As an awesome developer who wants to make a command-line app
  I should be able to use methadone to bootstrap it
  And get all kinds of cool things

  Background:
    Given the directory "tmp/newgem" does not exist
    And the directory "tmp/new-gem" does not exist

  Scenario: Bootstrap a new app from scratch
    When I successfully run `methadone tmp/newgem`
    Then the following directories should exist:
      |tmp/newgem                           |
      |tmp/newgem/bin                       |
      |tmp/newgem/lib                       |
      |tmp/newgem/lib/newgem                |
      |tmp/newgem/test                      |
      |tmp/newgem/features                  |
      |tmp/newgem/features/support          |
      |tmp/newgem/features/step_definitions |
    Then the following directories should not exist:
      |tmp/newgem/spec |
    And the following files should exist:
      |tmp/newgem/newgem.gemspec                            |
      |tmp/newgem/Rakefile                                  |
      |tmp/newgem/.gitignore                                |
      |tmp/newgem/Gemfile                                   |
      |tmp/newgem/bin/newgem                                |
      |tmp/newgem/features/newgem.feature                   |
      |tmp/newgem/features/support/env.rb                   |
      |tmp/newgem/features/step_definitions/newgem_steps.rb |
      |tmp/newgem/test/tc_something.rb                      |
    And the file "tmp/newgem/.gitignore" should match /results.html/
    And the file "tmp/newgem/.gitignore" should match /html/
    And the file "tmp/newgem/.gitignore" should match /pkg/
    And the file "tmp/newgem/.gitignore" should match /.DS_Store/
    And the file "tmp/newgem/newgem.gemspec" should match /add_development_dependency\('aruba'/
    And the file "tmp/newgem/newgem.gemspec" should match /add_development_dependency\('rdoc'/
    And the file "tmp/newgem/newgem.gemspec" should match /add_development_dependency\('rake', '~> 0.9.2'/
    And the file "tmp/newgem/newgem.gemspec" should match /add_dependency\('methadone'/
    And the file "tmp/newgem/newgem.gemspec" should use the same block variable throughout
    Given I cd to "tmp/newgem"
    And my app's name is "newgem"
    When I successfully run `bin/newgem --help` with "lib" in the library path
    Then the banner should be present
    And the banner should document that this app takes options
    And the following options should be documented:
      |--version|
      |--help|
      |--log-level|
    And the banner should document that this app takes no arguments
    When I successfully run `rake -T -I../../lib`
    Then the output should contain:
    """
    rake clean         # Remove any temporary products.
    rake clobber       # Remove any generated file.
    rake clobber_rdoc  # Remove RDoc HTML files
    rake features      # Run Cucumber features
    """
    And the output should contain:
    """
    rake rdoc          # Build RDoc HTML files
    rake release       # Create tag v0.0.1 and build and push newgem-0.0.1.gem to Rubygems
    rake rerdoc        # Rebuild RDoc HTML files
    rake test          # Run tests
    """
    And the output should match /rake install       # Build and install newgem-0.0.1.gem into system gems/
    And the output should match /rake build         # Build newgem-0.0.1.gem into the pkg directory/
    When I run `rake -I../../../../lib`
    Then the exit status should be 0<commit_msg>fix the failing bootstrap feature<commit_after>Feature: Bootstrap a new command-line app
  As an awesome developer who wants to make a command-line app
  I should be able to use methadone to bootstrap it
  And get all kinds of cool things

  Background:
    Given the directory "tmp/newgem" does not exist
    And the directory "tmp/new-gem" does not exist

  Scenario: Bootstrap a new app from scratch
    When I successfully run `methadone tmp/newgem`
    Then the following directories should exist:
      |tmp/newgem                           |
      |tmp/newgem/bin                       |
      |tmp/newgem/lib                       |
      |tmp/newgem/lib/newgem                |
      |tmp/newgem/test                      |
      |tmp/newgem/features                  |
      |tmp/newgem/features/support          |
      |tmp/newgem/features/step_definitions |
    Then the following directories should not exist:
      |tmp/newgem/spec |
    And the following files should exist:
      |tmp/newgem/newgem.gemspec                            |
      |tmp/newgem/Rakefile                                  |
      |tmp/newgem/.gitignore                                |
      |tmp/newgem/Gemfile                                   |
      |tmp/newgem/bin/newgem                                |
      |tmp/newgem/features/newgem.feature                   |
      |tmp/newgem/features/support/env.rb                   |
      |tmp/newgem/features/step_definitions/newgem_steps.rb |
      |tmp/newgem/test/tc_something.rb                      |
    And the file "tmp/newgem/.gitignore" should match /results.html/
    And the file "tmp/newgem/.gitignore" should match /html/
    And the file "tmp/newgem/.gitignore" should match /pkg/
    And the file "tmp/newgem/.gitignore" should match /.DS_Store/
    And the file "tmp/newgem/newgem.gemspec" should match /add_development_dependency\('aruba'/
    And the file "tmp/newgem/newgem.gemspec" should match /add_development_dependency\('rdoc'/
    And the file "tmp/newgem/newgem.gemspec" should match /add_development_dependency\('rake', '~> 0.9.2'/
    And the file "tmp/newgem/newgem.gemspec" should match /add_dependency\('methadone'/
    And the file "tmp/newgem/newgem.gemspec" should use the same block variable throughout
    Given I cd to "tmp/newgem"
    And my app's name is "newgem"
    When I successfully run `bin/newgem --help` with "lib" in the library path
    Then the banner should be present
    And the banner should document that this app takes options
    And the following options should be documented:
      |--version|
      |--help|
      |--log-level|
    And the banner should document that this app takes no arguments
    When I successfully run `rake -T -I../../lib`
    Then the output should contain:
    """
    rake clean         # Remove any temporary products
    rake clobber       # Remove any generated file
    rake clobber_rdoc  # Remove RDoc HTML files
    rake features      # Run Cucumber features
    """
    And the output should contain:
    """
    rake rdoc          # Build RDoc HTML files
    rake release       # Create tag v0.0.1 and build and push newgem-0.0.1.gem to Rubygems
    rake rerdoc        # Rebuild RDoc HTML files
    rake test          # Run tests
    """
    And the output should match /rake install       # Build and install newgem-0.0.1.gem into system gems/
    And the output should match /rake build         # Build newgem-0.0.1.gem into the pkg directory/
    When I run `rake -I../../../../lib`
    Then the exit status should be 0
{'fraction_non_alphanumeric': 0.08138552520416784, 'fraction_numerical': 0.004505773021684032, 'mean_word_length': 1.8652682533279548, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1651962', 'n_tokens_mistral': 2044, 'n_tokens_neox': 1946, 'n_words': 671}