def parseBoolean(self, boolean):
    """
    Parse a boolean descriptor and return True or False accordingly.
    """
    try:
      return bool(int(boolean))
    except __HOLE__:
      if boolean.lower() in ["yes", "on", "true", "enabled"]:
        return True
    return False
dataset/ETHPy150Open skyostil/tracy/src/analyzer/Analyzer.py/InteractiveAnalyzer.parseBoolean