<commit_before>require "spec"
require "../src/*"

describe "Gigasecond" do
  describe "#from" do
    it "finds gigsecond from 2011_04_25" do
      result = Gigasecond.from(Time.new(2011, 4, 25, 0, 0, 0))
      result.should eq Time.new(2043, 1, 1, 1, 46, 40)
    end

    pending "finds gigsecond from 1977_06_13" do
      result = Gigasecond.from(Time.new(1977, 6, 13, 0, 0, 0))
      result.should eq Time.new(2009, 2, 19, 1, 46, 40)
    end

    pending "finds gigsecond from 1959_07_19" do
      result = Gigasecond.from(Time.new(1959, 7, 19, 0, 0, 0))
      result.should eq Time.new(1991, 3, 27, 1, 46, 40)
    end

    pending "finds gigsecond with full_time specified" do
      result = Gigasecond.from(Time.new(2015, 1, 24, 22, 0, 0))
      result.should eq Time.new(2046, 10, 2, 23, 46, 40)
    end

    pending "finds gigsecond with full_time with day rollover" do
      result = Gigasecond.from(Time.new(2015, 1, 24, 23, 59, 59))
      result.should eq Time.new(2046, 10, 3, 1, 46, 39)
    end

    pending "test_with_your_birthday" do
    end
  end
end
<commit_msg>using Time.utc instead of Time.new (#115)<commit_after>require "spec"
require "../src/*"

describe "Gigasecond" do
  describe "#from" do
    it "finds gigsecond from 2011_04_25" do
      result = Gigasecond.from(Time.utc(2011, 4, 25, 0, 0, 0))
      result.should eq Time.utc(2043, 1, 1, 1, 46, 40)
    end

    pending "finds gigsecond from 1977_06_13" do
      result = Gigasecond.from(Time.utc(1977, 6, 13, 0, 0, 0))
      result.should eq Time.utc(2009, 2, 19, 1, 46, 40)
    end

    pending "finds gigsecond from 1959_07_19" do
      result = Gigasecond.from(Time.utc(1959, 7, 19, 0, 0, 0))
      result.should eq Time.utc(1991, 3, 27, 1, 46, 40)
    end

    pending "finds gigsecond with full_time specified" do
      result = Gigasecond.from(Time.utc(2015, 1, 24, 22, 0, 0))
      result.should eq Time.utc(2046, 10, 2, 23, 46, 40)
    end

    pending "finds gigsecond with full_time with day rollover" do
      result = Gigasecond.from(Time.utc(2015, 1, 24, 23, 59, 59))
      result.should eq Time.utc(2046, 10, 3, 1, 46, 39)
    end

    pending "test_with_your_birthday" do
    end
  end
end

{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.12774725274725274, 'mean_word_length': 2.8879003558718863, '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': '5002051', 'n_tokens_mistral': 1082, 'n_tokens_neox': 815, 'n_words': 265}