<commit_before>@cookbooks @cookbook_metadata
Feature: Cookbook Metadata 
  In order to understand cookbooks without evaluating them 
  As an Administrator 
  I want to automatically generate metadata about cookbooks  

  Scenario: Generate metadata for all cookbooks 
    Given a local cookbook repository 
     When I run the task to generate cookbook metadata 
     Then the run should exit '0'
      And 'stdout' should have 'Generating Metadata'
      And a file named 'cookbooks_dir/cookbooks/metadata/metadata.json' should exist

  Scenario: Generate metadata for a specific cookbook
    Given a local cookbook repository
     When I run the task to generate cookbook metadata for 'metadata'
     Then the run should exit '0'
      And 'stdout' should have 'Generating Metadata'
      And a file named 'cookbooks_dir/cookbooks/metadata/metadata.json' should exist
      <commit_msg>feature test fixes: you say Motato, I say motato.<commit_after>@cookbooks @cookbook_metadata
Feature: Cookbook Metadata 
  In order to understand cookbooks without evaluating them 
  As an Administrator 
  I want to automatically generate metadata about cookbooks  

  Scenario: Generate metadata for all cookbooks 
    Given a local cookbook repository 
     When I run the task to generate cookbook metadata 
     Then the run should exit '0'
      And 'stdout' should have 'Generating metadata'
      And a file named 'cookbooks_dir/cookbooks/metadata/metadata.json' should exist

  Scenario: Generate metadata for a specific cookbook
    Given a local cookbook repository
     When I run the task to generate cookbook metadata for 'metadata'
     Then the run should exit '0'
      And 'stdout' should have 'Generating metadata'
      And a file named 'cookbooks_dir/cookbooks/metadata/metadata.json' should exist
      
{'fraction_non_alphanumeric': 0.039183222958057394, 'fraction_numerical': 0.002207505518763797, 'mean_word_length': 3.625, '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': '4720886', 'n_tokens_mistral': 458, 'n_tokens_neox': 438, 'n_words': 218}