1e73293efb902f223f60b89750d66f953338499b,logger/plotter.py,Plotter,plot_config,#Plotter#,112

Before Change


        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


            cache.clear()

    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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: HazyResearch/fonduer
Commit Name: 3b8bb2c905e58655fa58fcc49d387e2a9fe0a42f
Time: 2020-10-06
Author: hiromu.hota@hal.hitachi.com
File Name: src/fonduer/parser/preprocessors/hocr_doc_preprocessor.py
Class Name: HOCRDocPreprocessor
Method Name: _parse_file


Project Name: Microsoft/MMdnn
Commit Name: e3dbf30b449033ee584159dc0e462741d4e0e15b
Time: 2020-07-31
Author: 50827462+XiaoXYe@users.noreply.github.com
File Name: mmdnn/conversion/pytorch/pytorch_graph.py
Class Name: PytorchGraph151
Method Name: extractgraph