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
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: 4
Non-data size: 7
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: pantsbuild/pants
Commit Name: ac0b7e4b3d8267c682b2e821f8db592ca94103e3
Time: 2018-03-18
Author: stuhood@twitter.com
File Name: src/python/pants/engine/build_files.py
Class Name:
Method Name: spec_to_globs
Project Name: Microsoft/dowhy
Commit Name: 20ffaf6bcf25ff6ed9de36378a55cd8a424cc9c7
Time: 2020-08-27
Author: amit_sharma@live.com
File Name: dowhy/causal_graph.py
Class Name: CausalGraph
Method Name: get_descendants
Project Name: gyoisamurai/GyoiThon
Commit Name: 8c187989b286c5b50d61c0c49ccb36f98ec25c92
Time: 2019-04-25
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_Inventory.py
Class Name: Inventory
Method Name: link_explorer