

def process_payload_files(payload, github_auth):
    ' Return a dictionary of file paths to raw JSON contents and file IDs.\n    '
    if (('action' in payload) and ('pull_request' in payload)):
        return process_pullrequest_payload_files(payload, github_auth)
    if (('commits' in payload) and ('head_commit' in payload)):
        return process_pushevent_payload_files(payload, github_auth)
    raise ValueError('Unintelligible webhook payload')

dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py process_payload_files/original