def contains(path, data):
  try:
    raw = open(path).read()
  except:
    return False
  if raw.find(data) >= 0:
    return True
  return False
Return True if data is present in file path.
dataset/ETHPy150Open NumentaCorp/agamotto/agamotto/file.py/contains