<commit_before>require 'spec_helper'
module Alf
  describe "Support#to_ruby_literal" do

    it 'works on Integers' do
      Support.to_ruby_literal(12).should eql("12")
    end

    it 'works on DateTime' do
      dt = DateTime.parse('2012-05-11T12:00:00+02:00')
      rl = Support.to_ruby_literal(dt)
      rl.should eql("DateTime.parse('2012-05-11T12:00:00+02:00')")
      ::Kernel.eval(rl).should eq(dt)
    end

    it 'works on Time' do
      t = Time.parse('2012-05-11T12:00:00+02:00')
      rl = Support.to_ruby_literal(t)
      rl.should eql("Time.parse('2012-05-11T12:00:00+02:00')")
      ::Kernel.eval(rl).should eq(t)
    end

  end
end<commit_msg>Fix to_ruby_literal test on DateTime/Time<commit_after>require 'spec_helper'
module Alf
  describe "Support#to_ruby_literal" do

    it 'works on Integers' do
      Support.to_ruby_literal(12).should eql("12")
    end

    it 'works on DateTime' do
      dt = DateTime.parse('2012-05-11T12:00:00+00:00')
      rl = Support.to_ruby_literal(dt)
      ::Kernel.eval(rl).should eq(dt)
    end

    it 'works on Time' do
      t = Time.parse('2012-05-11T12:00:00+00:00')
      rl = Support.to_ruby_literal(t)
      ::Kernel.eval(rl).should eq(t)
    end

  end
end
{'fraction_non_alphanumeric': 0.1418032786885246, 'fraction_numerical': 0.09508196721311475, 'mean_word_length': 3.1530612244897958, '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': '3216857', 'n_tokens_mistral': 546, 'n_tokens_neox': 458, 'n_words': 89}