<commit_before>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

# example class
class Crap
  include Deeper
  def prints_shit
    puts "shit"
  end
  def prints_something(something)
    puts something
  end
end

describe "Deeper" do
  before(:each) do
    @obj = Crap.new
  end
  
  it "shows #arrayed_class returning an array" do
    @obj.arrayed_class.class == Array
  end
  
  it "shows #method_parameters returning an array" do
    @obj.method_parameters("prints_shit").class == Array
  end
  
  it "should be an empty Array for a method with no parameters" do
    @obj.method_parameters("prints_shit").should == []
  end
  
  it "should be a Array containing the parameters for #prints_something" do
    @obj.method_parameters("prints_something").should == [[:req, :something]] 
  end
  
end<commit_msg>Modified rspec tests so they would pass :)<commit_after>require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

# example class
class Crap
  include Deeper
  def prints_shit
    puts "shit"
  end
  def prints_something(something)
    puts something
  end
end

describe "Deeper" do
  before(:each) do
    @obj = Crap.new
  end

  it "shows #arrayed_class returning an array" do
    @obj.deeper.class_array.class == Array
  end

  it "shows #method_parameters returning an array" do
    @obj.deeper.parameters("prints_shit").class == Array
  end

  it "should be an empty Array for a method with no parameters" do
    @obj.deeper.parameters("prints_shit").should == []
  end

  it "should be a Array containing the parameters for #prints_something" do
    @obj.deeper.parameters("prints_something").should == [[:req, :something]]
  end

end
{'fraction_non_alphanumeric': 0.09671641791044776, 'fraction_numerical': 0.0, 'mean_word_length': 3.8022922636103154, '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': '6496840', 'n_tokens_mistral': 530, 'n_tokens_neox': 524, 'n_words': 164}