de6d474bd667cc040856792cce62148691fbabda,pliers/extractors/api.py,ClarifaiAPIExtractor,_extract,#ClarifaiAPIExtractor#Any#,163

Before Change


                tags = self.tagger.tag_images(f, select_classes=self.select_classes)

        tagged = tags["results"][0]["result"]["tag"]
        return ExtractorResult([tagged["probs"]], stim, self,
                               features=tagged["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: de6d474bd667cc040856792cce62148691fbabda
Time: 2017-05-08
Author: quinten.mcnamara@gmail.com
File Name: pliers/extractors/api.py
Class Name: ClarifaiAPIExtractor
Method Name: _extract


Project Name: etal/cnvkit
Commit Name: 0263f12a8f84d7866a719494bad83f1b57750093
Time: 2018-02-22
Author: eric.talevich@gmail.com
File Name: skgenome/tabio/__init__.py
Class Name:
Method Name: write


Project Name: etal/cnvkit
Commit Name: 0263f12a8f84d7866a719494bad83f1b57750093
Time: 2018-02-22
Author: eric.talevich@gmail.com
File Name: skgenome/tabio/__init__.py
Class Name:
Method Name: safe_write