def IsUserSudoerInLines(user, sudoer_lines):
  """Return whether the user has an entry in the sudoer lines."""

  def IsUserSudoerEntry(line):
    return re.match(user % r'^%s\s+', line)

  return filter(IsUserSudoerEntry, sudoer_lines)
dataset/ETHPy150Open GoogleCloudPlatform/compute-image-packages/google-daemon/usr/share/google/google_daemon/accounts.py/IsUserSudoerInLines/swapped operands of `%`