b354803b038659359816213443108cf0ee18f74a,graphbrain/agents/txt_parser.py,TxtParser,input_file,#TxtParser#Any#,59
Before Change
for line in f:
self._parse_line(line)
i += 1
bar.update(i)
def report(self):
rep_str = ("lines parsed: {}\nedges found: {}".format(
self.lines, self.edges))
After Change
self.hg.set_next(last_edge, main_edge)
elif main_edge:
self.hg.create_sequence(self.sequence, main_edge)
if main_edge:
last_edge = main_edge
self.edges += 1
// attach text to edge
self.hg.set_attribute(main_edge, "text", parse["text"])
// add extra edges
for edge in parse["extra_edges"]:
self.add(edge)
def report(self):
rep_str = ("edges found: {}".format(self.edges))
return "{}\n\n{}".format(rep_str, super().report())
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: graphbrain/graphbrain
Commit Name: b354803b038659359816213443108cf0ee18f74a
Time: 2020-01-08
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/txt_parser.py
Class Name: TxtParser
Method Name: input_file
Project Name: graphbrain/graphbrain
Commit Name: b354803b038659359816213443108cf0ee18f74a
Time: 2020-01-08
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/txt_parser.py
Class Name: TxtParser
Method Name: input_file
Project Name: pantsbuild/pants
Commit Name: 02aad68bd3ee98e864bb22c1fba0b6493bad6b61
Time: 2016-02-03
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/scheduler.py
Class Name: LocalScheduler
Method Name: schedule
Project Name: lovit/soynlp
Commit Name: db72a13f9c546015601972a1ec89dcfb4d85a21e
Time: 2018-06-11
Author: soy.lovit@gmail.com
File Name: soynlp/lemmatizer/_lemmatizer.py
Class Name: Lemmatizer
Method Name: lemmatize