30b3deb54d5420a55d138f176aee9fe857c02f4b,graphbrain/agents/reddit_parser.py,RedditParser,_parse_title,#RedditParser#Any#Any#,42

Before Change



                // add main edge
                if main_edge:
                    self.add(main_edge)

                    // attach text to edge
                    text = parse["text"]
                    self.hg.set_attribute(main_edge, "text", text)

                    // add extra edges
                    for edge in parse["extra_edges"]:
                        self.add(edge)

                    if main_edge.type()[0] == "R":
                        title_edge.append(main_edge)
                    else:

After Change



                    // add extra edges
                    for edge in parse["extra_edges"]:
                        yield wrap_edge(edge)

                    if main_edge.type()[0] == "R":
                        title_edge.append(main_edge)
                    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: graphbrain/graphbrain
Commit Name: 30b3deb54d5420a55d138f176aee9fe857c02f4b
Time: 2020-08-19
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/reddit_parser.py
Class Name: RedditParser
Method Name: _parse_title


Project Name: graphbrain/graphbrain
Commit Name: 30b3deb54d5420a55d138f176aee9fe857c02f4b
Time: 2020-08-19
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/reddit_parser.py
Class Name: RedditParser
Method Name: _parse_title


Project Name: graphbrain/graphbrain
Commit Name: 30b3deb54d5420a55d138f176aee9fe857c02f4b
Time: 2020-08-19
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/txt_parser.py
Class Name: TxtParser
Method Name: input_file


Project Name: graphbrain/graphbrain
Commit Name: 30b3deb54d5420a55d138f176aee9fe857c02f4b
Time: 2020-08-19
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/csv_parser.py
Class Name: CsvParser
Method Name: _parse_row