<commit_before># The purpose of this script is to download information about all pull requests
# merged into the master branch of the astropy repository. This information is
# downloaded to a JSON file. This includes the 'last modified' date for all pull
# requests, so that when the script is re-run, only modified or new entries are
# downloaded. At this time, this script requires the developer version of the
# pygithub package.

import os
import json

from datetime import datetime
from github import Github

from common import get_credentials


def parse_isoformat(string):
    return datetime.strptime(string, "%Y-%m-%dT%H:%M:%S")<commit_msg>add back in missing import<commit_after># The purpose of this script is to download information about all pull requests
# merged into the master branch of the astropy repository. This information is
# downloaded to a JSON file. This includes the 'last modified' date for all pull
# requests, so that when the script is re-run, only modified or new entries are
# downloaded. At this time, this script requires the developer version of the
# pygithub package.

import os
import json

from datetime import datetime, timedelta
from github import Github

from common import get_credentials


def parse_isoformat(string):
    return datetime.strptime(string, "%Y-%m-%dT%H:%M:%S")
{'fraction_non_alphanumeric': 0.058245083207261725, 'fraction_numerical': 0.0, 'mean_word_length': 4.853982300884955, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3370219', 'n_tokens_mistral': 341, 'n_tokens_neox': 331, 'n_words': 182}