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
def construct_domain(self, names):
attributes = [ContinuousVariable.make(name) for name in sorted(names)]
return Domain(attributes)
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()
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
def construct_domain(self, names, classes):
attributes = [ContinuousVariable.make(name) for name in sorted(names)]
classes = [ContinuousVariable.make(name) for name in sorted(classes)]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 10
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: polyaxon/polyaxon
Commit Name: 8d4140e264a0a47d3d690a5adc6386c027e2f8e2
Time: 2019-07-13
Author: mouradmourafiq@gmail.com
File Name: polystores/stores/azure_store.py
Class Name: AzureStore
Method Name: parse_wasbs_url
Project Name: calico/basenji
Commit Name: 5ba781c281d60ad03d0c8088400a73802dd82d03
Time: 2018-05-11
Author: noreply@google.com
File Name: basenji/ops.py
Class Name:
Method Name: per_target_r2