<commit_before>import arrow
import logging

import settings
import github_api as gh

__log = logging.getLogger("chaosbot")

def poll_pull_requests():
    __log.info("looking for PRs")

    now = arrow.utcnow()
    voting_window = gh.voting.get_voting_window(now)
    prs = gh.prs.get_ready_prs(api, settings.URN, voting_window)

    needs_update = False
    for pr in prs:
        pr_num = pr["number"]<commit_msg>hotfix for api not defined #97<commit_after>import arrow
import logging

import settings
import github_api as gh

__log = logging.getLogger("chaosbot")

def poll_pull_requests():
    __log.info("looking for PRs")

    api = gh.API(settings.GITHUB_USER, settings.GITHUB_SECRET)
    now = arrow.utcnow()
    voting_window = gh.voting.get_voting_window(now)
    prs = gh.prs.get_ready_prs(api, settings.URN, voting_window)

    needs_update = False
    for pr in prs:
        pr_num = pr["number"]
{'fraction_non_alphanumeric': 0.09911894273127753, 'fraction_numerical': 0.0022026431718061676, 'mean_word_length': 3.9672131147540983, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1175828', 'n_tokens_mistral': 330, 'n_tokens_neox': 317, 'n_words': 73}