24e2cc72278d0c60081d9164350a30f29cf73228,prody/database/cath.py,CATHDB,save,#CATHDB#Any#,352

Before Change


        // add indentation to nodes
        indentElement(root)

        if isinstance(file, str):
            file = open(file, "wb")
        tree.write(file)
        file.close()

        LOGGER.report("CATH local database saved in %.2fs.", "_cath_write")

After Change


        LOGGER.timeit("_cath_write")

        if not isinstance(filename, str):
            try:
                fn = filename.name
            except AttributeError:
                fn = repr(filename)
            f = filename
        else:
            fn = filename
            f = open(filename, "w")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: prody/ProDy
Commit Name: 24e2cc72278d0c60081d9164350a30f29cf73228
Time: 2018-05-08
Author: jamesmkrieger@gmail.com
File Name: prody/database/cath.py
Class Name: CATHDB
Method Name: save


Project Name: SheffieldML/GPy
Commit Name: f3f4bf67ad87c4d30e3694e251d274c3b85c81da
Time: 2015-11-09
Author: ibinbei@gmail.com
File Name: GPy/__init__.py
Class Name:
Method Name: load


Project Name: akkana/scripts
Commit Name: e1e3f45530006843db21dc084f2dde2725056168
Time: 2018-06-24
Author: akkana@shallowsky.com
File Name: quickbrowse.py
Class Name:
Method Name: