4b8716fd4bd6f462a9db9eee958f2508576ec019,gluoncv/utils/metrics/coco_detection.py,COCODetectionMetric,__init__,#COCODetectionMetric#Any#Any#Any#Any#Any#,32

Before Change


            t = ""
        self._filename = osp.abspath(osp.expanduser(save_prefix) + t + ".json")
        try:
            f = open(self._filename, "w")
        except IOError as e:
            raise RuntimeError("Unable to open json file to dump. What(): {}".format(str(e)))
        else:
            f.close()

After Change


        except IOError as e:
            raise RuntimeError("Unable to dump json file, ignored. What(): {}".format(str(e)))

        pred = self.dataset.coco.loadRes(self._filename)
        gt = self.dataset.coco
        // lazy import pycocotools
        try_import_pycocotools()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: dmlc/gluon-cv
Commit Name: 4b8716fd4bd6f462a9db9eee958f2508576ec019
Time: 2018-06-15
Author: cheungchih@gmail.com
File Name: gluoncv/utils/metrics/coco_detection.py
Class Name: COCODetectionMetric
Method Name: __init__


Project Name: streamlit/streamlit
Commit Name: 8328c47f9ac4aac0801a65f949476fea8c0f5271
Time: 2018-10-12
Author: thiagot@gmail.com
File Name: examples/run_on_save.py
Class Name:
Method Name:


Project Name: NTMC-Community/MatchZoo
Commit Name: 2f211a064e25d52bbbe58cceaa5a0e1239bbddd2
Time: 2017-11-05
Author: yangliuyx@gmail.com
File Name: matchzoo/inputs/preprocess.py
Class Name:
Method Name:


Project Name: streamlit/streamlit
Commit Name: c3ef7a43acd931ea2b354b2e6c04d340d2de3a29
Time: 2018-10-12
Author: thiagot@gmail.com
File Name: examples/run_on_save.py
Class Name:
Method Name: