<commit_before>from django.contrib.syndication.feeds import Feed
from wlanlj.nodes.models import Event

class LatestEvents(Feed):
  title = "wlan ljubljana - Latest mesh events"
  link = "http://nodes.wlan-lj.net"
  description = "Latest events generated by nodes participating in the mesh."

  def items(self):
    return Event.objects.order_by('-timestamp')[:30]

  def item_link(self, item):
    return "http://nodes.wlan-lj.net/nodes/node/%s" % item.node.ip
<commit_msg>Fixed RSS feed link as it's also used as a GUID.<commit_after>from django.contrib.syndication.feeds import Feed
from wlanlj.nodes.models import Event

class LatestEvents(Feed):
  title = "wlan ljubljana - Latest mesh events"
  link = "http://nodes.wlan-lj.net"
  description = "Latest events generated by nodes participating in the mesh."

  def items(self):
    return Event.objects.order_by('-timestamp')[:30]

  def item_link(self, item):
    return "http://nodes.wlan-lj.net/nodes/node/%s#evt%s" % (item.node.ip, item.id)

{'fraction_non_alphanumeric': 0.128, 'fraction_numerical': 0.004, 'mean_word_length': 4.213541666666667, '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': '6320024', 'n_tokens_mistral': 341, 'n_tokens_neox': 331, 'n_words': 87}