4ca2541496d2113d7a02c2b3f4180c7d2b451afe,onnx_tf/gen_status.py,,main,#Any#,19

Before Change


      onnx_path = arg
    elif opt in ("-r", "--onnx_tf_release_build"):
      onnx_tf_release_build = True
  if onnx_version == "master" and onnx_path == "":
    print("onnx_path is required when onnx_version=master\n")
    print("gen_status.py -v <onnx_version> -p <onnx_path> " +
          "-r <onnx_tf_release_build>")
    print("eg. generate support_status.md for onnx-tf master and onnx master")
    print("        gen_status.py -v master -p /YOUR-ONNX-PATH")
    print("    generate support_status_<onnx_tf_version>.md for onnx-tf " +
          "version state in the VERSION_NUMBER file and onnx v1.5.0")
    print("        gen_status.py -v v1.5.0 -r")
    sys.exit(2)
  elif onnx_version == "":
    print("Please provide the onnx_version.")
    print("If onnx_version=master, then onnx_path is required too.\n")
    print("gen_status.py -v <onnx_version> -p <onnx_path> " +
          "-r <onnx_tf_release_build>")
    print("eg. generate support_status.md for onnx-tf master and onnx master")
    print("        gen_status.py -v master -p /YOUR-ONNX-PATH")
    print("    generate support_status_<onnx_tf_version>.md for onnx-tf " +
          "version state in the VERSION_NUMBER file and onnx v1.5.0")
    print("        gen_status.py -v v1.5.0 -r")
    sys.exit(2)

  gen_support_status(docs_dir, onnx_version, onnx_path, onnx_tf_release_build)


def gen_support_status(docs_dir, onnx_version, onnx_path,

After Change


      print("Description:")
      print("  -v, --onnx_version             installed ONNX version")
      print("  -r, --onnx_tf_release_build    create report for ONNX-TF release with version stated in the VERSION_NUMBER file")
      print("                                 when omitted, the report is for ONNX-TF master")
      print("  -h                             show this help message and exit")
      print("eg. generate support_status.md for onnx-tf master and onnx master")
      print("        gen_status.py -v master")
      print("    generate support_status_<onnx_tf_version>.md for onnx-tf " +
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: onnx/onnx-tensorflow
Commit Name: 4ca2541496d2113d7a02c2b3f4180c7d2b451afe
Time: 2019-11-07
Author: wtsang@us.ibm.com
File Name: onnx_tf/gen_status.py
Class Name:
Method Name: main


Project Name: onnx/onnx-tensorflow
Commit Name: 2782ac89ad66f2c8a670ad57503a966ee8747c76
Time: 2020-08-05
Author: wtsang@us.ibm.com
File Name: onnx_tf/gen_status.py
Class Name:
Method Name: main


Project Name: NervanaSystems/nlp-architect
Commit Name: 794bd558da80b65713b51a964ec61e7ef36d4bf2
Time: 2018-05-14
Author: peteriz@users.noreply.github.com
File Name: examples/intent_extraction/interactive.py
Class Name:
Method Name: