<commit_before>const utcWeekdays = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
const utcMonths = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']

module.exports = function rotation (d = new Date(), opts = {}) {
  let ret = []

  // between 1 and 31
  if (d.getUTCDate() === 1) {
    // between 0 and 11
    if (d.getUTCMonth() === 0) {
      ret.push('yearly', d.getUTCFullYear())
    } else {
      ret.push(`monthly-${utcMonths[d.getUTCMonth()]}`)
    }
  } else {
    ret.push(`weekly-${utcWeekdays[d.getUTCDay()]}`) // 0 = sunday
  }

  return ret.join('-')
}<commit_msg>simpler concatenation<commit_after>const utcWeekdays = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday']
const utcMonths = ['january', 'february', 'march', 'april', 'may', 'june', 'july', 'august', 'september', 'october', 'november', 'december']

module.exports = function rotation (d = new Date(), opts = {}) {
  let ret = []

  // between 1 and 31
  if (d.getUTCDate() === 1) {
    // between 0 and 11
    if (d.getUTCMonth() === 0) {
      ret.push('yearly', d.getUTCFullYear())
    } else {
      ret.push('monthly', utcMonths[d.getUTCMonth()])
    }
  } else {
    ret.push('weekly', utcWeekdays[d.getUTCDay()])
  }

  return ret.join('-')
}
{'fraction_non_alphanumeric': 0.21985294117647058, 'fraction_numerical': 0.0125, 'mean_word_length': 3.7587412587412588, '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': '2173452', 'n_tokens_mistral': 538, 'n_tokens_neox': 523, 'n_words': 113}