<commit_before>require File.expand_path(File.join(File.dirname(__FILE__),"..","..",'/spec_helper'))

describe <%= full_class_name %> do

   use_vcr_cassette "<%= full_class_name %>", :record => :all, :match_requests_on => [:uri, :method, :body] # Change :record => :new_episodes when done
  
   before(:each) do      
      # Here you should provide an implementation of the creation of the object that is going to 
      # be used to test the name will be test_<%= normalized_file_name %> 
      @<%= normalized_file_name %> = <%= full_class_name %>.find("test_<%= normalized_file_name %>")
   end				

   after(:each) do
      # Here you should provide a way of deleting the object that was used to test ( test_<%= normalized_file_name %> ) 
   end <% children_filtered(:of_class => MethodDeclaration).each do |method| %>          
  <% method_name = method.properties[:name] =~ /^get_(.*)/ ? $1 : method.properties[:name] %>
  describe "#<%= method_name %>" do<% if method.properties[:name] =~ /^get_(.*)/ %>
    it "should return without raising any exception" do
      lambda { @<%= normalized_file_name %>.<%= method_name %> }.should_not raise_exception
    end
  <% end %>
    it "<%= method.properties[:comments] %>" do 
      pending
    end
    <% if method.return_type.type != "void" %>    
    it "returns an instance of <%= method.return_type.type %>" do<commit_msg>Added the works thid way to the spec fixtures generator<commit_after>require File.expand_path(File.join(File.dirname(__FILE__),"..","..",'/spec_helper'))

describe <%= full_class_name %> do

   use_vcr_cassette "<%= full_class_name %>", :record => :all, :match_requests_on => [:uri, :method, :body] # Change :record => :new_episodes when done
  
   before(:each) do      
      # Here you should provide an implementation of the creation of the object that is going to 
      # be used to test the name will be test_<%= normalized_file_name %> 
      @<%= normalized_file_name %> = <%= full_class_name %>.find("test_<%= normalized_file_name %>")
   end				

   after(:each) do
      # Here you should provide a way of deleting the object that was used to test ( test_<%= normalized_file_name %> ) 
   end <% children_filtered(:of_class => MethodDeclaration).each do |method| %>          
  <% method_name = method.properties[:name] =~ /^get_(.*)/ ? $1 : method.properties[:name] %>
  describe "#<%= method_name %>" do<% if method.properties[:name] =~ /^get_(.*)/ %>
    it "should return without raising any exception" do
      lambda { @<%= normalized_file_name %>.<%= method_name %> }.should_not raise_exception
    end
  <% end %>
    it "<%= method.properties[:comments] %>" do 
      pending
    end

    it "works this way" do
      pending
    end 
    <% if method.return_type.type != "void" %>    
    it "returns an instance of <%= method.return_type.type %>" do
{'fraction_non_alphanumeric': 0.15152578042792003, 'fraction_numerical': 0.0007015082427218519, 'mean_word_length': 3.47723704866562, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 45, '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': '7292372', 'n_tokens_mistral': 945, 'n_tokens_neox': 851, 'n_words': 247}