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)
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: vatlab/SoS
Commit Name: 9bf869816f70e078418f5f595e781712c79d03fc
Time: 2016-11-30
Author: ben.bog@gmail.com
File Name: sos/jupyter/sos_executor.py
Class Name:
Method Name: runfile
Project Name: chainer/chainercv
Commit Name: 9e0ec5d4b358404c7dd833847f267ea46e32d054
Time: 2019-01-31
Author: shingogo@hotmail.co.jp
File Name: tests/experimental_tests/links_tests/model_tests/fcis_tests/test_fcis_resnet101.py
Class Name: TestFCISResNet101Pretrained
Method Name: test_pretrained
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