def running(processname):
  """Look for processname in the list of running processes"""
  try:
    return int(execute("ps wax | grep -v grep |  grep -c '%s'" % (processname))) > 0
  except Exception, e:
    # Pipeline exits nonzero if it doesn't find process, so return False
    # instead of letting the exception take out the test.
    return False
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/process.py/running/original