def create_queued_job(queue, files, job_url_template, commit_sha, owner, repo, status_url):
    filenames = list(files.keys())
    file_states = {name: None for name in filenames}
    file_results = {name: None for name in filenames}

    job_id = calculate_job_id(files)
    job_url = job_url_template and expand_uri(job_url_template, dict(id=job_id))
    job_status = None

    with queue as db:
        task_files = add_files_to_queue(queue, job_id, job_url, files, commit_sha)
        add_job(db, job_id, None, task_files, file_states, file_results, owner, repo, status_url)
    
    return job_id
If something doesn't parse, we just return an empty doc
dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py/create_queued_job--crossover with--dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py/OrphanHALNavigator._can_parse