import copy


def match_files(input_files, results_files):
    """Takes in results from parse_input_files and parse_docuscope_results and sets the 'present' values
    in the results dictionary to True for all the input files present in it. Does nothing if an input file
    isn't in the docuscope results"""
    job = copy.copy(results_files)
    for f in input_files:
        if f in job:
            job[f]['present'] = True
    return job