547d1bce970b6b671cfab1a41a8dad7f9f79d763,tensorflow_datasets/text/reddit_disentanglement.py,RedditDisentanglement,_generate_examples,#RedditDisentanglement#Any#,144
Before Change
data = _deduplicate(data)
for row in data:
row["text"] = row.pop("body")
yield row[_MESSAGE_ID], row
After Change
Yields examples.
data = list(_read_csv(path))
data = _deduplicate(data)
for link_id, one_topic_data in itertools.groupby(
data, lambda row: row["link_id"]):
one_topic_data = list(one_topic_data)
for row in one_topic_data:
row["text"] = row.pop("body")
yield link_id, {_THREAD_KEY: one_topic_data}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: tensorflow/datasets
Commit Name: 547d1bce970b6b671cfab1a41a8dad7f9f79d763
Time: 2020-06-22
Author: khalman@google.com
File Name: tensorflow_datasets/text/reddit_disentanglement.py
Class Name: RedditDisentanglement
Method Name: _generate_examples
Project Name: tensorflow/datasets
Commit Name: 547d1bce970b6b671cfab1a41a8dad7f9f79d763
Time: 2020-06-22
Author: khalman@google.com
File Name: tensorflow_datasets/text/reddit_disentanglement.py
Class Name: RedditDisentanglement
Method Name: _generate_examples
Project Name: scipy/scipy
Commit Name: 4c9a786e33eeb44aa531e6bbbf9da015e55c1920
Time: 2017-04-20
Author: nikolay.mayorov@zoho.com
File Name: scipy/integrate/_ivp/common.py
Class Name: OdeSolution
Method Name: __call__
Project Name: mittagessen/kraken
Commit Name: 6e6c12425a787d8c954ce5c31ceed59cdd531001
Time: 2018-05-20
Author: mittagessen@l.unchti.me
File Name: kraken/lib/ctc_decoder.py
Class Name:
Method Name: greedy_decoder