1e73293efb902f223f60b89750d66f953338499b,logger/plotter.py,Plotter,plot_config,#Plotter#Any#,112
Before Change
cache.clear()
def plot_config(self, config):
config = dict((str(k), v) for (k, v) in config.items())
// format dictionary with pretty print
pp = pprint.PrettyPrinter(indent=4, width=1)
msg = pp.pformat(config)
// format with html
msg = msg.replace("{", "")
msg = msg.replace("}", "")
msg = msg.replace("\n", "<br />")
// display dict on visdom
self.viz.text(msg)
After Change
def plot_config(self, config):
msg = "<br />".join(["{}: {}".format(str(k), v)
for (k, v) in sorted(config.items(), key=lambda x: x[0])])
// display dict on visdom
self.viz.text(msg)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: oval-group/logger
Commit Name: 1e73293efb902f223f60b89750d66f953338499b
Time: 2018-05-11
Author: leonardbj@hotmail.fr
File Name: logger/plotter.py
Class Name: Plotter
Method Name: plot_config
Project Name: pantsbuild/pants
Commit Name: 52c7c260e7c0a85e6b051af48b46e8fe9493b117
Time: 2020-08-04
Author: benjyw@gmail.com
File Name: src/python/pants/core/util_rules/determine_source_files.py
Class Name:
Method Name: determine_all_source_files
Project Name: pantsbuild/pants
Commit Name: 52c7c260e7c0a85e6b051af48b46e8fe9493b117
Time: 2020-08-04
Author: benjyw@gmail.com
File Name: src/python/pants/core/util_rules/determine_source_files.py
Class Name:
Method Name: determine_specified_source_files