<commit_before># encoding: utf-8
require File.expand_path('../spec_helper', __FILE__)

describe Darian do

  it "should return own version" do
    Darian::VERSION.should be_a(String)
  end

  it "should convert by argument class" do
    Darian.from_earth(Time.now).should be_a(Darian::Time)
    Darian.from_earth(DateTime.now).should be_a(Darian::Time)
    Darian.from_earth(Date.today).should be_a(Darian::Date)
  end

end<commit_msg>Spec argument error in Darian.from_earth<commit_after># encoding: utf-8
require File.expand_path('../spec_helper', __FILE__)

describe Darian do

  it "should return own version" do
    Darian::VERSION.should be_a(String)
  end

  it "should convert by argument class" do
    Darian.from_earth(Time.now).should     be_a(Darian::Time)
    Darian.from_earth(DateTime.now).should be_a(Darian::Time)
    Darian.from_earth(Date.today).should   be_a(Darian::Date)
    lambda { Darian.from_earth(1) }.should raise_error(ArgumentError)
  end

end
{'fraction_non_alphanumeric': 0.11408016443987667, 'fraction_numerical': 0.003083247687564234, 'mean_word_length': 4.630057803468208, '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': '3263649', 'n_tokens_mistral': 349, 'n_tokens_neox': 332, 'n_words': 73}