<commit_before>require "./spec_helper"

describe ReadOnlyModel do
  Spec.before_each do
    Post.clear
  end

  describe "#all" do
    it "should find all the months and counts for posts" do
      post = Post.new
      post.name = "<NAME>"
      post.save
      post = Post.new
      post.name = "<NAME>"
      post.save
      posts_by_month = PostsByMonth.all("GROUP BY MONTH(created_at)")
      posts_by_month.total.should eq 2
    end
  end
end
<commit_msg>fixed minor bug in spec<commit_after>require "./spec_helper"

describe "Read Only Model" do
  Spec.before_each do
    Post.clear
  end

  describe "#all" do
    it "should find all the months and counts for posts" do
      post = Post.new
      post.name = "<NAME>"
      post.save
      post = Post.new
      post.name = "<NAME>"
      post.save
      posts_by_month = PostsByMonth.all("GROUP BY MONTH(created_at)")
      posts_by_month[0].total.should eq 2
    end
  end
end

{'fraction_non_alphanumeric': 0.09391675560298826, 'fraction_numerical': 0.0032017075773745998, 'mean_word_length': 2.486988847583643, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1656844', 'n_tokens_mistral': 311, 'n_tokens_neox': 302, 'n_words': 92}