<commit_before><commit_msg>Add filters for the wiki messages<commit_after>def wiki_article_edit(config, message):
    """ Wiki: A user edited a wiki page

Fedora's `Wiki <https://fedoraproject.org/wiki>`_ has a fedmsg hook
that publishes messages like this one when a user edits a page.
    """
    return message['topic'].endswith('wiki.article.edit')


def wiki_upload_complete(config, message):
    """ Wiki: A user uploaded content on the wiki

Fedora's `Wiki <https://fedoraproject.org/wiki>`_ hook also publishes
messages when a user upload some media (like a video or a picture).
    """
    return message['topic'].endswith('wiki.upload.complete')

{'fraction_non_alphanumeric': 0.11280487804878049, 'fraction_numerical': 0.0, 'mean_word_length': 4.615384615384615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7440606', 'n_tokens_mistral': 211, 'n_tokens_neox': 191, 'n_words': 68}