aa02987c141b09d35ba2606dd77b4e89699bc087,tensorflowonspark/TFNode.py,,hdfs_path,#Any#Any#,25

Before Change


  Returns:
    An absolute path prefixed with the correct filesystem scheme.
  
  if path.startswith("hdfs://") or path.startswith("viewfs://") or path.startswith("file://"):
    // absolute path w/ scheme, just return as-is
    return path
  elif path.startswith("/"):

After Change


                    "swift://",
                    "viewfs://",
                    "wasb://"]
  if (any(path.startswith(scheme) for scheme in HADOOP_SCHEMES)
      or path.startswith("file://")):
    // absolute path w/ scheme, just return as-is
    return path
  elif path.startswith("/"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: yahoo/TensorFlowOnSpark
Commit Name: aa02987c141b09d35ba2606dd77b4e89699bc087
Time: 2018-07-16
Author: vishnu@mesosphere.com
File Name: tensorflowonspark/TFNode.py
Class Name:
Method Name: hdfs_path


Project Name: mozilla/bugbug
Commit Name: 854b973d9573df5c7917911ab48a36ae14cbff06
Time: 2019-03-08
Author: ayush.shridhar1999@gmail.com
File Name: bugbug/models/qaneeded.py
Class Name: QANeededModel
Method Name: get_labels


Project Name: mathics/Mathics
Commit Name: e56f91c9b60f561712d28faae3e4d047adc67760
Time: 2016-09-14
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/importexport.py
Class Name: Import
Method Name: apply