94bddd88f3ece6669c77291d84a7f8531ab4c6b3,tensorflow_datasets/scripts/documentation/dataset_markdown_builder.py,VersionSection,get_key,#VersionSection#Any#,186

Before Change


      )

  def get_key(self, builder):
    return tuple((str(v), v.description) for v in builder.versions)

  def content(self, builder):
    return IntentedBlock("\n".join(self._list_versions(builder)))

After Change


      yield f"    * {version_name}{nightly_str}: {description}"

  def get_key(self, builder: tfds.core.DatasetBuilder):
    release_key = tuple((k, v) for k, v in builder.release_notes.items())
    return (tuple(builder.versions), release_key)

  def content(self, builder: tfds.core.DatasetBuilder):
    return IntentedBlock("\n".join(self._list_versions(builder)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: tensorflow/datasets
Commit Name: 94bddd88f3ece6669c77291d84a7f8531ab4c6b3
Time: 2020-11-05
Author: epot@google.com
File Name: tensorflow_datasets/scripts/documentation/dataset_markdown_builder.py
Class Name: VersionSection
Method Name: get_key


Project Name: deepmind/sonnet
Commit Name: 2a3a5d3cef42e5bf997cfb9dac87163ccaa3c8f1
Time: 2019-09-16
Author: tomhennigan@google.com
File Name: sonnet/src/utils.py
Class Name:
Method Name: format_variables


Project Name: lovit/soynlp
Commit Name: 3c0a9cde3912b39b4b277327669b505a64a43d03
Time: 2019-03-07
Author: soy.lovit@gmail.com
File Name: soynlp/hangle/_hangle.py
Class Name: ConvolutionHangleEncoder
Method Name: onehot_to_sent