0e62a365308c002945120551c8026f746f61e987,pliers/extractors/api.py,ClarifaiAPIExtractor,_extract,#ClarifaiAPIExtractor#Any#,167

Before Change


    def _extract(self, stim):
        stims = listify(stim)

        with nested(*(s.get_filename() for s in stims)) as files:
            with nested(*(open(f, "rb") for f in files)) as fps:
                tags = self.tagger.tag_images(fps, select_classes=self.select_classes)

After Change


        stims = listify(stim)

        with ExitStack() as stack:
            files = [stack.enter_context(s.get_filename()) for s in stims]
            fps = [stack.enter_context(open(f, "rb")) for f in files]
            tags = self.tagger.tag_images(fps, select_classes=self.select_classes)

        extracted = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tyarkoni/pliers
Commit Name: 0e62a365308c002945120551c8026f746f61e987
Time: 2017-05-10
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api.py
Class Name: ClarifaiAPIExtractor
Method Name: _extract


Project Name: pyinstaller/pyinstaller
Commit Name: 1d241e8531b03ece85213d64a7d8a3df6cbe29c8
Time: 2015-07-21
Author: mzibr.public@gmail.com
File Name: PyInstaller/utils/hooks/hookutils.py
Class Name:
Method Name: get_module_file_attribute


Project Name: nilearn/nilearn
Commit Name: 972c3a6795770c70239d91a5207ac19581f40729
Time: 2013-06-11
Author: gael.varoquaux@normalesup.org
File Name: nisl/_utils/niimg_conversions.py
Class Name:
Method Name: _repr_niimgs