cf5f38373ec0a08518dae7051e53e44c316c166c,estnltk/prettyprinter/prettyprinter.py,PrettyPrinter,render,#PrettyPrinter#Any#,50

Before Change


        descriptions = list(set(temporary))
        dictionary = {}
        for el in range(0,len(descriptions),1):
            try:
                asi = kwargs[descriptions[el]]
            except KeyError:
                asi = {}
            dictionary[descriptions[el]] = asi
        self.properties = dictionary
        // TODO: render meetod peaks väljastama stringi HTML sisuga, põhimõtteliselt mida createHTMl teeb,
        // aga ilma eraldi faili kirjutamata

After Change


    def render(self, inputText):
        // TODO: tähelepanek, et siin meetodis tuleb kindlasti abstraheerida konkreetsed kihid
        text = Text(inputText)
        content = StringIO()
        content.write(self.createHTML(text))
        html = content.getvalue()
        content.close()
        print(html)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: estnltk/estnltk
Commit Name: cf5f38373ec0a08518dae7051e53e44c316c166c
Time: 2015-07-28
Author: karl.valliste@gmail.com
File Name: estnltk/prettyprinter/prettyprinter.py
Class Name: PrettyPrinter
Method Name: render


Project Name: sony/nnabla
Commit Name: 5aa0e65747cd13c072749cbc7364f61bd149cadf
Time: 2020-03-24
Author: Yuchi.Wen@sony.com
File Name: python/src/nnabla/utils/save.py
Class Name:
Method Name: save


Project Name: EpistasisLab/penn-ml-benchmarks
Commit Name: 8eec4f9d1578c7ff1cbfa3efd8338a301adebe52
Time: 2020-09-10
Author: weixuanf@upenn.edu
File Name: pmlb/dataset_lists.py
Class Name:
Method Name: