def _tar_file(cmd):
    for c in cmd:
        for ext in tar_extensions:
            if c.endswith(ext):
                return (c, c[0:len(c) - len(ext)])
dataset/ETHPy150Open nvbn/thefuck/thefuck/rules/dirty_untar.py/_tar_file/original