def parse_war_path(war, include_war = False):
    """ Parse off the raw WAR name for setting its context
    """

    if war in '/':
        war = war.rsplit('/', 1)[1]

    if include_war:
        return war
    else:
        return war.split('.')[0]
dataset/ETHPy150Open hatRiot/clusterd/src/module/deploy_utils.py/parse_war_path/swapped operands of `in`