def exists(username):
  try:
    return int(execute("getent passwd %s | wc -l" % (username))) > 0
  except:
    return False
Tests that client stats are collected more often when client is busy.
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/user.py/exists--crossover with--dataset/ETHPy150Open google/grr/grr/lib/communicator_test.py/HTTPClientTests.testClientStatsCollectionHappensEveryMinuteWhenClientIsBusy