def vcs_completer(commands, event):
    """ utility to make writing typical version control app completers easier

    VCS command line apps typically have the format:

    [sudo ]PROGNAME [help] [command] file file...

    """


    cmd_param = event.line.split()
    if event.line.endswith(' '):
        cmd_param.append('')

    if cmd_param[0] == 'sudo':
        cmd_param = cmd_param[1:]

    if len(cmd_param) == 2 or cmd_param in 'help':
        return commands.split()

    return ip.Completer.file_matches(event.symbol)
dataset/ETHPy150Open ipython/ipython-py3k/IPython/quarantine/ipy_completers.py/vcs_completer/swapped operands of `in`