7b270c7526d74355fcf27496ac8ee5878aaa1683,tensorflow_datasets/scripts/document_datasets.py,,make_statistics_information,#Any#,206
Before Change
l.append((k.upper(), v.num_examples))
l.append(("ALL", info.num_examples))
// Sort reverse on number of examples.
l = reversed(sorted(l, key=lambda x: x[1]))
l = "\n".join(["{0:10} | {1:>10,}".format(a[0], a[1]) for a in l])
return STATISTICS_TABLE.format(split_statistics=l)
After Change
stats.append((split_info.num_examples, split_name.upper()))
// Sort reverse on number of examples.
stats.sort(reverse=True)
stats = "\n".join([
"{0:10} | {1:>10,}".format(name, num_exs) for (num_exs, name) in stats
])
return STATISTICS_TABLE.format(split_statistics=stats)
def dataset_docs_str():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: tensorflow/datasets
Commit Name: 7b270c7526d74355fcf27496ac8ee5878aaa1683
Time: 2018-12-11
Author: rsepassi@google.com
File Name: tensorflow_datasets/scripts/document_datasets.py
Class Name:
Method Name: make_statistics_information
Project Name: dpressel/mead-baseline
Commit Name: 88345b88d60bd6e77ee214b83d037310713a0533
Time: 2018-07-22
Author: blester125@users.noreply.github.com
File Name: python/baseline/dy/tagger/model.py
Class Name: RNNTaggerModel
Method Name: forward
Project Name: dpressel/mead-baseline
Commit Name: 1b8ca89144d2eb858ef0763a6f9b272619b7ee59
Time: 2020-10-28
Author: dpressel@gmail.com
File Name: api-examples/transformer_utils.py
Class Name: NextTurnPredictionFileLoader
Method Name: process_line