<commit_before>require 'test_helper'

class ImageTest < ActiveSupport::TestCase

	fixtures :images

	def test_titles
		assert_equal "The World", images(:the_world).title
		assert_equal "Car Wallpapers19", images(:our_car).title
	end
	
	def test_per_page
		assert_equal 18, Image.per_page(dialog = true)
		assert_equal 20, Image.per_page # dialog = false
	end
	
	def test_attachment_fu_options
		assert_equal 50.megabytes, Image.attachment_options[:max_size]
		assert_equal 'Rmagick', Image.attachment_options[:processor]
	end

end<commit_msg>whitespace<commit_after>require 'test_helper'

class ImageTest < ActiveSupport::TestCase

  fixtures :images

  def test_titles
    assert_equal "The%20world!.gif", images(:the_world).filename
    assert_equal "The World!", images(:the_world).title
    
    assert_equal "car-wallpapers19.jpg", images(:our_car).filename
    assert_equal "Car Wallpapers19", images(:our_car).title
  end

  def test_per_page
    assert_equal 18, Image.per_page(dialog = true)
    assert_equal 20, Image.per_page # dialog = false
  end

  def test_attachment_fu_options
    assert_equal 50.megabytes, Image.attachment_options[:max_size]
    assert_equal 'Rmagick', Image.attachment_options[:processor]
  end

end
{'fraction_non_alphanumeric': 0.0889967637540453, 'fraction_numerical': 0.016181229773462782, 'mean_word_length': 5.311224489795919, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5685056', 'n_tokens_mistral': 431, 'n_tokens_neox': 392, 'n_words': 85}