def METHOD_NAME(f):
    pattern = re.compile(r'.*(lammps.sandia.gov|www.cs.sandia.gov).*')    # lgtm [py/incomplete-hostname-regexp]
    lineno = 1
    errors = set()
    for line in f:
        if pattern.match(line):
            errors.add(lineno)
        lineno += 1
    return errors