def grep_file(query, item):
    """This function performs the actual grep on a given file."""
    return ['%s: %s' % (item, line) for line in open(item)
            if re.search(query, line)]
dataset/ETHPy150Open Workiva/furious/example/grep.py/grep_file/original