99095d5412483ec623278bdb1a0c9e24b18bfc85,pdpipe/core.py,Pipeline,__str__,#Pipeline#,252

Before Change


        res = "A pdpipe pipline:\n"
        res += "df -> " + self._stages[0].__str__() + "\n"
        for stage in self._stages[1:]:
            res += "   -> " + stage.__str__() + "\n"
        return res

After Change


        res += "[ 0]  " +  "\n      ".join(
            textwrap.wrap(self._stages[0].__str__())) + "\n"
        for i, stage in enumerate(self._stages[1:]):
            res += "[{:>2}]  ".format(i+1) + "\n      ".join(
                textwrap.wrap(stage.__str__())) + "\n"
        return res
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: shaypal5/pdpipe
Commit Name: 99095d5412483ec623278bdb1a0c9e24b18bfc85
Time: 2017-03-16
Author: shaypal5@gmail.com
File Name: pdpipe/core.py
Class Name: Pipeline
Method Name: __str__


Project Name: Microsoft/MMdnn
Commit Name: 7cd06707255b85e1c02fe63fd5655b641232a03d
Time: 2020-08-12
Author: 50827462+XiaoXYe@users.noreply.github.com
File Name: mmdnn/conversion/pytorch/pytorch_graph.py
Class Name: PytorchGraph
Method Name: build