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


  for split_name, split_info in info.splits.items():
    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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: mathics/Mathics
Commit Name: d6e00edb6b5e23c0aafc7b169f7517fe39da0fd6
Time: 2020-09-06
Author: pablo-escobar@riseup.net
File Name: mathics/builtin/linalg.py
Class Name: Eigenvectors
Method Name: apply


Project Name: mathics/Mathics
Commit Name: deed936ca0bfa5998af0225fab99c47bd2bc4b6d
Time: 2020-09-06
Author: pablo-escobar@riseup.net
File Name: mathics/builtin/linalg.py
Class Name: Eigenvalues
Method Name: apply