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


            names = set()
            classes = set()
            file.seek(0)
        reader = csv.reader(file)
        for line in reader:
            names.update(mo.split("=")[0] for mo in line)
            n_elements += len(line)
        return names - classes, classes, n_elements, reader.line_num, header
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: tryolabs/luminoth
Commit Name: 7da6a0d12fdcec21f9bbdf51690f29f2ca7250dd
Time: 2018-05-24
Author: falbertoni811@gmail.com
File Name: luminoth/tools/dataset/readers/object_detection/openimages.py
Class Name: OpenImagesReader
Method Name: get_classes


Project Name: AlexsLemonade/refinebio
Commit Name: 39ae84d64af798c7dbef9c6f86ab17d2a1075817
Time: 2018-09-21
Author: rich@anomos.info
File Name: foreman/data_refinery_foreman/surveyor/harmony.py
Class Name:
Method Name: parse_sdrf