<commit_before># -*- coding: utf-8 -*-
#
# This work by Hazard-SJ ( https://github.com/HazardSJ ) is licensed under a
# Creative Commons Attribution-ShareAlike 4.0 International License ( http://creativecommons.org/licenses/by-sa/4.0/ ).


import re
import mwparserfromhell
import pywikibot

pywikibot.config.family = "wikipedia"
pywikibot.config.mylang = "en"
site = pywikibot.Site()
site.login()


class ResearchHelpBot(object):
    """Adds {{Research help}} to articles from specific WikiProjects"""

    def __init__(self):
        self.maximum_edits = 8000  # Per-run based, will be divided equally among all WikiProjects.
        self.groups = {
            "MED": {
                "template": "{{Research help|Med}}",
                "categories": (
                    pywikibot.Category(site, "Category:All WikiProject Medicine articles"),
                )
            },
            "MIL": {
                "template": "{{Research help|Mil}}",
                "categories": (<commit_msg>seems I forgot to pull, so only 900 got done<commit_after># -*- coding: utf-8 -*-
#
# This work by Hazard-SJ ( https://github.com/HazardSJ ) is licensed under a
# Creative Commons Attribution-ShareAlike 4.0 International License ( http://creativecommons.org/licenses/by-sa/4.0/ ).


import re
import mwparserfromhell
import pywikibot

pywikibot.config.family = "wikipedia"
pywikibot.config.mylang = "en"
site = pywikibot.Site()
site.login()


class ResearchHelpBot(object):
    """Adds {{Research help}} to articles from specific WikiProjects"""

    def __init__(self):
        self.maximum_edits = 7100  # Per-run based, will be divided equally among all WikiProjects.
        self.groups = {
            "MED": {
                "template": "{{Research help|Med}}",
                "categories": (
                    pywikibot.Category(site, "Category:All WikiProject Medicine articles"),
                )
            },
            "MIL": {
                "template": "{{Research help|Mil}}",
                "categories": (
{'fraction_non_alphanumeric': 0.1275233874938454, 'fraction_numerical': 0.0103397341211226, 'mean_word_length': 2.420875420875421, 'pattern_counts': {'":': 12, '<': 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': '1037226', 'n_tokens_mistral': 629, 'n_tokens_neox': 581, 'n_words': 151}