94bddd88f3ece6669c77291d84a7f8531ab4c6b3,tensorflow_datasets/scripts/documentation/dataset_markdown_builder.py,VersionSection,_list_versions,#VersionSection#Any#,171
Before Change
nightly_str = " " + self._nightly_doc_util.icon
else:
nightly_str = ""
yield " * {}{}: {}".format(
version_name, nightly_str, v.description or "No release notes."
)
def get_key(self, builder):
return tuple((str(v), v.description) for v in builder.versions)
After Change
List versions.
curr_versions = set(builder.versions) // Registered version
// Merge all versions
all_versions = [*builder.versions, *builder.release_notes]
// Normalize and remove duplicates
all_versions = set(tfds.core.Version(v) for v in all_versions)
for v in sorted(all_versions) : // List all available versions
if v == builder.version: // Highlight the default version
version_name = "**`{}`** (default)".format(str(v))
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: _list_versions
Project Name: pantsbuild/pants
Commit Name: 05d6ff5b4ef75c31fdc68644d02bc70cffd54005
Time: 2016-08-16
Author: lahosken@gmail.com
File Name: src/python/pants/help/build_dictionary_info_extracter.py
Class Name: BuildDictionaryInfoExtracter
Method Name: _get_args_for_target_type
Project Name: CamDavidsonPilon/lifelines
Commit Name: b1d839cb8e521c3cf2efaebe17082f1a9680a253
Time: 2020-05-13
Author: cam.davidson.pilon@gmail.com
File Name: experiments/working_npmle.py
Class Name:
Method Name: create_turnball_intervals