<commit_before>require 'test_helper'

describe ActiveRecord::Querify do

	before do
		truncate_db
	end

	describe 'Expressions' do

		describe 'without arguments' do

			before do

				@statement = "CASE WHEN posts.comments_count > 2 THEN 'Popular' ELSE 'Not Popular' END"

				# Create posts
				@post1 = FactoryGirl.create :post
				@post2 = FactoryGirl.create :post
				@post3 = FactoryGirl.create :post

				# Create comments
				4.times do<commit_msg>Fixed floppy tests<commit_after>require 'test_helper'

describe ActiveRecord::Querify do

	before do
		truncate_db
	end

	describe 'Expressions' do

		describe 'without arguments' do

			before do

				ActiveRecord::Querify.params = {}

				@statement = "CASE WHEN posts.comments_count > 2 THEN 'Popular' ELSE 'Not Popular' END"

				# Create posts
				@post1 = FactoryGirl.create :post
				@post2 = FactoryGirl.create :post
				@post3 = FactoryGirl.create :post

				# Create comments
				4.times do
{'fraction_non_alphanumeric': 0.08158995815899582, 'fraction_numerical': 0.010460251046025104, 'mean_word_length': 3.47196261682243, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6579441', 'n_tokens_mistral': 379, 'n_tokens_neox': 287, 'n_words': 90}