

def _tar_file(cmd):
    for c in cmd:
        for ext in tar_extensions:
            if c.endswith(cmd):
                return (c, c[0:(len(c) - len(ext))])

dataset/ETHPy150Open nvbn/thefuck/thefuck/rules/dirty_untar.py _tar_file/VarMisuse@29/35 `ext`->`cmd`