def stdoutContains(command, required):
  """Run command, check for string required in the output"""
  try:
    return execute(command).find(required) >= 0
  except:
    return False
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/process.py/stdoutContains/original