9f87194a1ce25e4789ac7109fa4e2134f77426c7,mystic/scripts.py,,collapse_plotter,#Any#,731

Before Change


//   import sys
//   if "mystic_collapse_plotter.py" not in sys.argv:
    f = StringIO()
    parser.print_help(file=f)
    f.seek(0)
    if "Options:" not in collapse_plotter.__doc__:
      collapse_plotter.__doc__ += "\nOptions:%s" % f.read().split("Options:")[-1]
    f.close()

After Change


                      help="string to indicate collapse indices")
//   import sys
//   if "mystic_collapse_plotter.py" not in sys.argv:
    if PY3:
      f = StringIO()
      parser.print_help(file=f)
      f.seek(0)
      if "Options:" not in collapse_plotter.__doc__:
        collapse_plotter.__doc__ += "\nOptions:%s" % f.read().split("Options:")[-1]
      f.close()
    else:
      if "Options:" not in collapse_plotter.__doc__:
        collapse_plotter.__doc__ += "\nOptions:%s" % parser.format_help().split("Options:")[-1]

    try:
      parsed_opts, parsed_args = parser.parse_args(cmdargs)
    except UnboundLocalError:
      pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: uqfoundation/mystic
Commit Name: 9f87194a1ce25e4789ac7109fa4e2134f77426c7
Time: 2017-07-07
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/scripts.py
Class Name:
Method Name: collapse_plotter


Project Name: aertslab/pySCENIC
Commit Name: fe5db79ce2a8824413d1c1ef48480fcc76211b19
Time: 2018-03-08
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/scenic.py
Class Name:
Method Name: scenic


Project Name: uqfoundation/mystic
Commit Name: 9f87194a1ce25e4789ac7109fa4e2134f77426c7
Time: 2017-07-07
Author: mmckerns@968178ea-60bd-409e-af13-df8a517b6005
File Name: mystic/scripts.py
Class Name:
Method Name: log_reader