<commit_before>@Moe ?= {}
$ = jQuery

class @Moe.Timeago
  constructor: ->
    $ @initialize


  initialize: =>
    @run()
    @observe()


  run: (nodes = document.body) =>
    $(nodes)
      .find(".js-timeago")
      .addBack(".js-timeago")
      .timeago()
      .each (_i, el) ->
        el.title = new Date(el.dateTime).toString()


  observe: =>
    @observer = new MutationObserver @onMutate

    config =
      childList: true
      subtree: true<commit_msg>No more flash of timestamps<commit_after>@Moe ?= {}
$ = jQuery

class @Moe.Timeago
  constructor: ->
    @observe()
    @run()


  run: (nodes = document.body) =>
    $(nodes)
      .find(".js-timeago")
      .addBack(".js-timeago")
      .timeago()
      .each (_i, el) ->
        el.title = new Date(el.dateTime).toString()


  observe: =>
    @observer = new MutationObserver @onMutate

    config =
      childList: true
      subtree: true
{'fraction_non_alphanumeric': 0.16136114160263446, 'fraction_numerical': 0.0, 'mean_word_length': 2.2455516014234878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '3217220', 'n_tokens_mistral': 323, 'n_tokens_neox': 312, 'n_words': 65}