<commit_before>require 'test/unit'
require 'active_support/test_case'
require 'active_support/inflector'
require 'jbuilder'

Comment = Struct.new(:content, :id)

unless JbuilderProxy.method_defined? :instance_eval
  # Faking Object#instance_eval for 1.8 and some newer JRubies
  class JbuilderProxy
    def instance_eval(code)
      eval code
    end
  end
end

class NonEnumerable
  def initialize(collection)
    @collection = collection<commit_msg>Remove 1.8 support test code<commit_after>require 'test/unit'
require 'active_support/test_case'
require 'active_support/inflector'
require 'jbuilder'

Comment = Struct.new(:content, :id)

class NonEnumerable
  def initialize(collection)
    @collection = collection
{'fraction_non_alphanumeric': 0.08228730822873083, 'fraction_numerical': 0.005578800557880056, 'mean_word_length': 5.527272727272727, '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': '5410345', 'n_tokens_mistral': 217, 'n_tokens_neox': 214, 'n_words': 57}