<commit_before>require 'test_helper'

class LocotimezoneTest < Minitest::Test
  attr_reader :loco

  def test_that_it_has_a_version_number
    refute_nil ::Locotimezone::VERSION
  end

  def setup
    @loco = Locotimezone.locotime address
  end

  def test_that_it_has_correct_formatted_address
    assert_equal '525 NW 1st Ave, Fort Lauderdale, FL 33301, USA', 
      loco[:formatted_address]
  end

  def test_that_it_has_correct_geolocation
    assert_equal 26.1288238, loco[:location]['lat']
    assert_equal -80.1449743, loco[:location]['lng']
  end

  def test_that_it_has_correct_timezone_id
    assert_equal 'America/New_York', loco[:timezone]['timeZoneId']
  end
end<commit_msg>Test options for location_only and timezone_only<commit_after>require 'test_helper'

class LocotimezoneTest < Minitest::Test
  attr_reader :locotime
  attr_reader :just_location
  attr_reader :just_timezone

  def setup
    @locotime = Locotimezone.locotime address
    @just_location = Locotimezone.locotime address, loction_only: true
    @just_timezone = Locotimezone.locotime address, timezone_only: true
  end

  def test_that_it_has_a_version_number
    refute_nil ::Locotimezone::VERSION
  end

  def test_that_it_has_correct_formatted_address
    assert_equal '525 NW 1st Ave, Fort Lauderdale, FL 33301, USA', 
      locotime[:formatted_address]
  end

  def test_that_it_has_correct_geolocation
    assert_equal 26.1288238, locotime[:location]['lat']
    assert_equal -80.1449743, locotime[:location]['lng']
  end

  def test_that_it_has_correct_timezone_id
    assert_equal 'America/New_York', locotime[:timezone]['timeZoneId']
  end

  def test_that_it_only_returns_location
    refute_nil just_location[:location]
    assert_nil just_location[:timezone]
  end

  def test_that_it_only_returns_timezone
    assert_nil just_location[:location]
    refute_nil just_location[:timezone]
  end
end
{'fraction_non_alphanumeric': 0.07089947089947089, 'fraction_numerical': 0.02857142857142857, 'mean_word_length': 5.26158940397351, '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': '4119506', 'n_tokens_mistral': 710, 'n_tokens_neox': 655, 'n_words': 128}