<commit_before>describe 'dateTimeLocalizerMoment', ->
  # Not sure how to test this...

describe 'dateTimeLocalizer', ->
  localizer = hx.dateTimeLocalizer()

  testDate = new Date(1452130200000) # Thu Jan 07 2016 01:30:00 GMT+0000 (GMT)
  zeroHourDate = new Date(1452124800000) # Thu Jan 07 2016 00:00:00 GMT+0000 (GMT)
  invalidDate = new Date('Invalid Date')
  # 0 - London, -120 - Sofia, -60 Krakow, -540 Tokio
  timezonesOfsets = [0, -120, -60, -540]

  # This is helper function. It accepts
  # function as a argument and execute it
  # in all timezones that is provided
  executeFunctionInAllTimeZones = (func) ->
    for currentOffset in timezonesOfsets
      calculatedTimeZoneMiliseconds = (new Date()).getTime() + (-1 * currentOffset * 60000)
      clock = sinon.useFakeTimers calculatedTimeZoneMiliseconds
      func()
      clock.restore()
    return
<commit_msg>There is no need to negate offset in tests.<commit_after>describe 'dateTimeLocalizerMoment', ->
  # Not sure how to test this...

describe 'dateTimeLocalizer', ->
  localizer = hx.dateTimeLocalizer()

  testDate = new Date(1452130200000) # Thu Jan 07 2016 01:30:00 GMT+0000 (GMT)
  zeroHourDate = new Date(1452124800000) # Thu Jan 07 2016 00:00:00 GMT+0000 (GMT)
  invalidDate = new Date('Invalid Date')
  # 0 - London, -120 - Sofia, -60 Krakow, -540 Tokio
  timezonesOfsets = [0, -120, -60, -540]

  # This is helper function. It accepts
  # function as a argument and execute it
  # in all timezones that is provided
  executeFunctionInAllTimeZones = (func) ->
    for currentOffset in timezonesOfsets
      calculatedTimeZoneMiliseconds = (new Date()).getTime() + (currentOffset * 60000)
      clock = sinon.useFakeTimers calculatedTimeZoneMiliseconds
      func()
      clock.restore()
    return

{'fraction_non_alphanumeric': 0.10298255486775464, 'fraction_numerical': 0.09172763083849184, 'mean_word_length': 3.691292875989446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6187767', 'n_tokens_mistral': 698, 'n_tokens_neox': 569, 'n_words': 179}