<commit_before># Code spec

Description goes here.

## Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.<commit_msg>README done<commit_after># Code spec

RSpec 2 matchers to facilitate making specs regarding Ruby code files, f.ex as generated or modified/mutated by a code generator.

## Install

gem install code-spec

## Usage

See specs for examples on how to use it.

Example: Nested DSL
<pre>  ...   
  with_subclass = %q{
      class Hello < Greeting
        def hello
          # howdy
        end
      end}    
  
  it "should not have subclass Greeting" do            
    with_subclass.should have_subclass :hello, :greeting do |content|
      content.should have_method :hello do |hello|
        hello.should have_comment 'howdy'
      end
    end
  end
</pre>

## Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
{'fraction_non_alphanumeric': 0.06907894736842106, 'fraction_numerical': 0.0010964912280701754, 'mean_word_length': 2.6666666666666665, 'pattern_counts': {'":': 0, '<': 6, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5237279', 'n_tokens_mistral': 282, 'n_tokens_neox': 272, 'n_words': 110}