e4c330615d355c6bbcef72a4358411e5718f25d3,ilastik.py,,main,#,60

Before Change


    parsed_args, workflow_cmdline_args = ilastik_main.parse_known_args()
    
    // allow to start-up by double-clicking an ".ilp" file
    if len(workflow_cmdline_args) == 1 and \
       workflow_cmdline_args[0].endswith(".ilp") and \
       parsed_args.project is None:
            parsed_args.project = workflow_cmdline_args[0]
            workflow_cmdline_args = []

    hShell = ilastik_main.main(parsed_args, workflow_cmdline_args)
    // in headless mode the headless shell is returned and its project manager still has an open project file
    hShell.closeCurrentProject()

After Change



    // Allow to start-up by double-clicking a project file.
    if len(sys.argv) == 2 and sys.argv[1].endswith(".ilp"):
        sys.argv.insert(1, "--project")

    import ilastik_main
    parsed_args, workflow_cmdline_args = ilastik_main.parse_known_args()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ilastik/ilastik
Commit Name: e4c330615d355c6bbcef72a4358411e5718f25d3
Time: 2019-01-07
Author: emilmelnikov@gmail.com
File Name: ilastik.py
Class Name:
Method Name: main


Project Name: dask/dask-image
Commit Name: 9982ea13b8562996047c96381e96fbc720973fee
Time: 2018-06-18
Author: jakirkham@gmail.com
File Name: docs/conf.py
Class Name:
Method Name: run_apidoc


Project Name: scikit-learn-contrib/DESlib
Commit Name: 1002cfbcc9f8182404fb058f959d625de2eabbfc
Time: 2018-03-22
Author: rafaelmenelau@gmail.com
File Name: deslib/des/knora_e.py
Class Name: KNORAE
Method Name: estimate_competence