<commit_before>Darkswarm.filter "date_in_words", ->
  (date) ->
    moment(date).fromNow()

Darkswarm.filter "sensible_timeframe", (date_in_wordsFilter)->
  (date) ->
    if moment().add('days', 2) < moment(date)
      t 'orders_open'
    else
      t('closing') + date_in_wordsFilter(date)<commit_msg>[ISSUE-3348] LC: Fix moment.js deprecation warning<commit_after>Darkswarm.filter "date_in_words", ->
  (date) ->
    moment(date).fromNow()

Darkswarm.filter "sensible_timeframe", (date_in_wordsFilter)->
  (date) ->
    if moment().add(2, 'days') < moment(date)
      t 'orders_open'
    else
      t('closing') + date_in_wordsFilter(date)
{'fraction_non_alphanumeric': 0.16380655226209048, 'fraction_numerical': 0.0093603744149766, 'mean_word_length': 4.17741935483871, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6033680', 'n_tokens_mistral': 241, 'n_tokens_neox': 228, 'n_words': 38}