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: eth-cscs/reframe
Commit Name: f0be29988d637f2d40616e4f857648f87bc77451
Time: 2018-11-27
Author: manitaras@cscs.ch
File Name: reframe/core/schedulers/slurm.py
Class Name: SlurmJob
Method Name: _check_and_cancel


Project Name: nipunsadvilkar/pySBD
Commit Name: 29d9d12a26718405763103e997285026f8fd4563
Time: 2020-07-21
Author: nipunsadvilkar@gmail.com
File Name: pysbd/segmenter.py
Class Name: Segmenter
Method Name: sentences_with_char_spans