<commit_before>jQuery(function($){

  $("*[data-webmention]").each(function(i,e){
    var parser = document.createElement('a');
    target = $(e).data('url');
  });

  $.getJSON("https://webmention.io/api/count?jsonp=?", {
    target: target
  }, function(data){
    $("*[data-webmention-count]").each(function(i,e){
      $(e).text(data.count);
    });
  });
  
  $.getJSON("https://webmention.io/api/mentions?jsonp=?", {
    target: target
  }, function(data){
    $("*[data-webmention]").each(function(i,e){
      $(e).html(data.links[0].activity.sentence_html);<commit_msg>Update mentions.js<commit_after>jQuery(function($){

  $("*[data-webmention]").each(function(i,e){
    var parser = document.createElement('a');
    target = $(e).data('url');
  });

  $.getJSON("https://webmention.io/api/count?jsonp=?", {
    target: target
  }, function(data){
    $("*[data-webmention-count]").each(function(i,e){
      $(e).text(data.count);
    });
  });
  
  $.getJSON("https://webmention.io/api/mentions?jsonp=?", {
    target: target
  }, function(data){
    $("*[data-webmention]").each(function(i,e){
      data.links.forEach(function(link){$(e).html('<p><a href="'+link.source + '">'+ link.source + '</a> linked here</p>')});
{'fraction_non_alphanumeric': 0.2577235772357724, 'fraction_numerical': 0.0008130081300813008, 'mean_word_length': 4.129166666666666, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '567151', 'n_tokens_mistral': 463, 'n_tokens_neox': 452, 'n_words': 43}