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
return names, n_elements, n_rows
After Change
Return a list of attributes that appear in the file
n_elements = 0
classes = file.readline().strip()
header = classes .lower().startswith("classes:")
if header:
classes = set(x.strip() for x in classes[8:].split(","))
names = set(classes)
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: uhh-lt/sensegram
Commit Name: 6e8311cd7ed93769ed72bc04aa7359be0fdd57b2
Time: 2018-03-22
Author: panchenko.alexander@gmail.com
File Name: sensegram.py
Class Name: SenseGram
Method Name: get_senses
Project Name: polyaxon/polyaxon
Commit Name: 0d88c0895622a3749f5722a130da8e92eeaaaec3
Time: 2020-04-20
Author: mouradmourafiq@gmail.com
File Name: core/polyaxon/polyflow/run/kubeflow/clean_pod_policy.py
Class Name: V1CleanPodPolicy
Method Name: V1CleanPodPolicy_1