6fa628a1cb68800faaedc98ce6f448bf0c3bfb9f,tensorflow_hub/tf_utils.py,,get_temp_export_dir,#Any#,119

Before Change


  temp_export_dir = os.path.join(
      tf.compat.as_bytes(dirname),
      tf.compat.as_bytes("temp-{}".format(basename)))
  return temp_export_dir


// Note: This is written from scratch to mimic the pattern in:
// `tf_v1.estimator.LatestExporter._garbage_collect_exports()`.

After Change


    A sister directory prefixed with "temp-", e.g. /foo/bar/temp-<timestamp>.
  
  dirname, basename = os.path.split(tf.compat.as_bytes(timestamped_export_dir))
  return os.path.join(dirname, b"temp-" + basename)


// Note: This is written from scratch to mimic the pattern in:
// `tf_v1.estimator.LatestExporter._garbage_collect_exports()`.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: tensorflow/hub
Commit Name: 6fa628a1cb68800faaedc98ce6f448bf0c3bfb9f
Time: 2020-02-18
Author: no-reply@google.com
File Name: tensorflow_hub/tf_utils.py
Class Name:
Method Name: get_temp_export_dir


Project Name: descarteslabs/descarteslabs-python
Commit Name: 45dd94b55d6dc80eb8fd4bd35d1138026b84dd55
Time: 2019-07-30
Author: gabe@descarteslabs.com
File Name: descarteslabs/common/http/authorization.py
Class Name:
Method Name: add_bearer


Project Name: biocore/scikit-bio
Commit Name: 7a5a5ece0cc1fa825b43a72cb15c340f26485096
Time: 2014-04-19
Author: jorgecanardo@gmail.com
File Name: skbio/format/fastq.py
Class Name:
Method Name: format_fastq_record