<commit_before>require 'test_helper'

class CreationTest < Minitest::Test


  def test_create_with_now
    @time = Time.now
    @st_time = StaticTime.now

    assert_equal @time.hour, @st_time.hours
    assert_equal @time.min, @st_time.minutes
    assert_equal @time.sec, @st_time.seconds
    assert_equal @time.strftime("%H:%M:%S"), @st_time.to_s
    assert_equal (@time.sec + (@time.min * 60) + (@time.hour * 60 * 60)), @st_time.to_i
  end


  def test_create_with_time
    @time = Time.parse "13:37:42"
    @st_time = StaticTime.new @time

    assert_equal 13, @st_time.hours
    assert_equal 37, @st_time.minutes
    assert_equal 42, @st_time.seconds
    assert_equal (42 + (37 * 60) + (13 * 60 * 60)), @st_time.to_i
  end



  def test_create_with_string
    @st_time = StaticTime.new "12:13:14"
  
    assert_equal 12, @st_time.hours
    assert_equal 13, @st_time.minutes
    assert_equal 14, @st_time.seconds
    assert_equal (14 + (13 * 60) + (12 * 60 * 60)), @st_time.to_i
  end

<commit_msg>removed a stdlib dependency from a test case<commit_after>require 'test_helper'

class CreationTest < Minitest::Test


  def test_create_with_now
    @time = Time.now
    @st_time = StaticTime.now

    assert_equal @time.hour, @st_time.hours
    assert_equal @time.min, @st_time.minutes
    assert_equal @time.sec, @st_time.seconds
    assert_equal @time.strftime("%H:%M:%S"), @st_time.to_s
    assert_equal (@time.sec + (@time.min * 60) + (@time.hour * 60 * 60)), @st_time.to_i
  end


  def test_create_with_time
    @time = Time.new 2014, 1, 1, 13, 37, 42
    @st_time = StaticTime.new @time

    assert_equal 13, @st_time.hours
    assert_equal 37, @st_time.minutes
    assert_equal 42, @st_time.seconds
    assert_equal (42 + (37 * 60) + (13 * 60 * 60)), @st_time.to_i
  end



  def test_create_with_string
    @st_time = StaticTime.new "12:13:14"
  
    assert_equal 12, @st_time.hours
    assert_equal 13, @st_time.minutes
    assert_equal 14, @st_time.seconds
    assert_equal (14 + (13 * 60) + (12 * 60 * 60)), @st_time.to_i
  end


{'fraction_non_alphanumeric': 0.12481644640234948, 'fraction_numerical': 0.055800293685756244, 'mean_word_length': 3.414686825053996, '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': '4294619', 'n_tokens_mistral': 900, 'n_tokens_neox': 766, 'n_words': 174}