<commit_before># -*- coding: utf-8 -*-
import feedparser

url = "https://edit.yournextmp.com/results/all.atom"
feed = feedparser.parse(url)

entries = {x['post_id']: x for x in feed.entries}.values()

results = {}
for x in entries:
    if x['winner_party_name'] not in results:
        results[x['winner_party_name']] = 0
    results[x['winner_party_name']] += 1

for x, y in results.items():
    print x, y

print len(entries)<commit_msg>Update check_numbers script<commit_after>import feedparser


url = 'https://candidates.democracyclub.org.uk/results/all.atom'
feed = feedparser.parse(url)

entries = {x['post_id']: x for x in feed.entries}.values()

results = {}
for x in entries:
    if x['winner_party_name'] not in results:
        results[x['winner_party_name']] = 0
    results[x['winner_party_name']] += 1

for x, y in results.items():
    print(x, y)

print(len(entries))
{'fraction_non_alphanumeric': 0.15628539071347677, 'fraction_numerical': 0.0056625141562853904, 'mean_word_length': 4.169590643274854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3574679', 'n_tokens_mistral': 322, 'n_tokens_neox': 312, 'n_words': 76}