<commit_before>var parse = require('./parse')

/**
 * Returns array of dates withtin specified range.
 * @param {date|string} dirtyStart
 * @param {date|string} dirtyEnd
 * @returns {date[]}
 */
var eachDay = function(dirtyStart, dirtyEnd) {
  var endTime = parse(dirtyEnd).getTime()
  var dates = []
  var tmpDate

  var curDate = parse(dirtyStart)
  curDate.setHours(0, 0, 0, 0)

  while (curDate.getTime() <= endTime) {
    dates.push(new Date(curDate))

    curDate.setDate(curDate.getDate() + 1)

    /**
     * add additional 5 hours to get next day,
     * because of possible troubles with daylight savings dates
     */
    tmpDate = new Date(curDate.setTime(curDate.getTime() + 5 * 60 * 60 * 1000))
    tmpDate = new Date(tmpDate.setHours(0, 0, 0, 0))
    curDate = tmpDate
  }

  return dates
}

module.exports = eachDay

<commit_msg>Remove DST fix in `eachDay` function<commit_after>var parse = require('./parse')

/**
 * Returns array of dates withtin specified range.
 * @param {date|string} dirtyStart
 * @param {date|string} dirtyEnd
 * @returns {date[]}
 */
var eachDay = function(dirtyStart, dirtyEnd) {
  var endTime = parse(dirtyEnd).getTime()
  var dates = []

  var currentDate = parse(dirtyStart)
  currentDate.setHours(0, 0, 0, 0)

  while (currentDate.getTime() <= endTime) {
    dates.push(new Date(currentDate))
    currentDate.setDate(currentDate.getDate() + 1)
  }

  return dates
}

module.exports = eachDay


{'fraction_non_alphanumeric': 0.1341209173036831, 'fraction_numerical': 0.01667824878387769, 'mean_word_length': 3.675324675324675, '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': '6151542', 'n_tokens_mistral': 507, 'n_tokens_neox': 473, 'n_words': 128}