<commit_before>import re
import urllib


############### Functions called by stackdoc

def get_version():
    return 1

def get_ids(title, body, tags):
    ids = []
    if "http://www.python.org/" in body:
        urls = re.findall(r'<a href="([^"]+)"', body)
        for url in urls:
            m = re.match("http:\/\/www\.python\.org\/dev\/peps\/pep\-([0-9]+)", url)
            if m:
                ids.append(m.group(1))
    return ids

def get_tags():
    return [
        "python"
    ]<commit_msg>Be more restrictive with PEP parsing.<commit_after>import re
import urllib


############### Functions called by stackdoc

def get_version():
    return 1

def get_ids(title, body, tags):
    ids = []
    if "http://www.python.org/dev/peps/pep-" in body:
        urls = re.findall(r'<a href="([^"]+)"', body)
        for url in urls:
            m = re.match("http:\/\/www\.python\.org\/dev\/peps\/pep\-([0-9]+)", url)
            if m:
                ids.append(m.group(1))
    return ids

def get_tags():
    return [
        "python"
    ]
{'fraction_non_alphanumeric': 0.19637750238322213, 'fraction_numerical': 0.0076263107721639654, 'mean_word_length': 2.0701754385964914, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1078842', 'n_tokens_mistral': 380, 'n_tokens_neox': 367, 'n_words': 87}