def get_end_description(self, code):
        if code == ESCAPED_DUNGEON:
            explanation = 'managed to escape alive'
        elif code == DIED_IN_DUNGEON:
            explanation = 'was killed in dungeon'
        else:
            explanation = 'got tired of living'

        return explanation
Processes a command received from the Java side
dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/controllers/endscreen.py/EndScreenController.get_end_description--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/common/diagnostic/pydevDebug/pydevd.py/PyDB.processNetCommand