<commit_before>(function (vue, win, doc) {
  var md = new markdownit("default", {
    linkify: true,
  });

  vue.filter('markdown', function (value) {
    return md.render(value);
  });

  vue.filter('better_date', function (value) {
    return moment(value).calendar();
  });

  vue.filter('escape_html', function (value) {
    return he.encode(value);
  });

  vue.filter('falsy_to_block_display', function (value) {
    return value ? 'block' : 'none';
  });


  var fragmentNode = document.createDocumentFragment();
  var virtualDiv = document.createElement('div');
  fragmentNode.appendChild(virtualDiv);
  vue.filter('emojify', function (value) {
    if (!emojify) {
      return value;
    }

    virtualDiv.innerHTML = value;
    emojify.run(virtualDiv);
    return virtualDiv.innerHTML;
  });

  vue.filter('avatar_url', function (value) {
    // return '//api.adorable.io/avatars/face/eyes6/nose7/face1/AA0000';
    return '//api.adorable.io/avatars/256/zmg-' + value + '.png';
  });
})(Vue, window, window.document);<commit_msg>Moving to new avatar<commit_after>(function (vue, win, doc) {
  var md = new markdownit("default", {
    linkify: true,
  });

  vue.filter('markdown', function (value) {
    return md.render(value);
  });

  vue.filter('better_date', function (value) {
    return moment(value).calendar();
  });

  vue.filter('escape_html', function (value) {
    return he.encode(value);
  });

  vue.filter('falsy_to_block_display', function (value) {
    return value ? 'block' : 'none';
  });


  var fragmentNode = document.createDocumentFragment();
  var virtualDiv = document.createElement('div');
  fragmentNode.appendChild(virtualDiv);
  vue.filter('emojify', function (value) {
    if (!emojify) {
      return value;
    }

    virtualDiv.innerHTML = value;
    emojify.run(virtualDiv);
    return virtualDiv.innerHTML;
  });

  vue.filter('avatar_url', function (value) {
    // return '//api.adorable.io/avatars/face/eyes6/nose7/face1/AA0000';
    // return '//api.adorable.io/avatars/256/zmg-' + value + '.png';
    return 'http://fileio.raspchat.com/img/?size=128&text=' + encodeURIComponent(value);
  });
})(Vue, window, window.document);
{'fraction_non_alphanumeric': 0.17117944011014227, 'fraction_numerical': 0.010555300596603947, 'mean_word_length': 3.7084233261339095, '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': '1527437', 'n_tokens_mistral': 770, 'n_tokens_neox': 714, 'n_words': 131}