8d4d199c35f5163ed21ae705a16ce3c8548d60c6,Orange/data/io.py,BasketReader,prescan_file,#BasketReader#Any#,191

Before Change


        n_elements = 0
        n_rows = 0
        for line in file:
            items = set(mo.group(1).strip()
                        for mo in self.re_name.finditer(line))
            names.update(items)
            n_elements += len(items)
            n_rows += 1

After Change


        classes = file.readline().strip()
        header = classes.lower().startswith("classes:")
        if header:
            classes = set(x.strip() for x in classes[8:].split(","))
            names = set(classes)
        else:
            names = set()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: biolab/orange3
Commit Name: 8d4d199c35f5163ed21ae705a16ce3c8548d60c6
Time: 2012-11-28
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/data/io.py
Class Name: BasketReader
Method Name: prescan_file


Project Name: hanxiao/bert-as-service
Commit Name: 3618f2773407f7c6016940a6dca8c3e12565f6d8
Time: 2018-11-11
Author: hanhxiao@tencent.com
File Name: utils/sentence_split.py
Class Name: SentenceSplitter
Method Name: _split


Project Name: has2k1/plotnine
Commit Name: 4ee8f67612e87a6ece9c939ccac64901fc712c08
Time: 2017-09-21
Author: has2k1@gmail.com
File Name: plotnine/facets/facet_grid.py
Class Name:
Method Name: parse_grid_facets