

def log_files(logger, mesos_files, follow, lines):
    'Print the contents of the given `mesos_files`.  Behaves like unix\n    tail.\n    '
    line_prefixes = _line_prefixes(mesos_files)
    fn = functools.partial(_read_last_lines, follow)
    mesos_files = _stream_files(logger, fn, mesos_files, line_prefixes)
    if (not mesos_files):
        raise _no_file_exception()
    while follow:
        sys.stdout.flush()
        mesos_files = _stream_files(logger, _read_rest, mesos_files, line_prefixes)
        if (not mesos_files):
            raise _no_file_exception()
        time.sleep(1)

dataset/ETHPy150Open shopkeep/shpkpr/shpkpr/files.py log_files/VarMisuse@33/80 `lines`->`follow`