02c9a52f65a0ddf73fbbb1d9b0e5d75ef756bad8,django/comicsite/templatetags/template_tags.py,VisualizationNode,render,#VisualizationNode#Any#,301

Before Change


              });
            });
          </script>
         % ({"id": id(self),
                "path": self.args.get("dataset"),
                "w": self.args.get("width", "300"),
                "h": self.args.get("height", "300"),
                "extensionFilter": self.args.get("extensionFilter", ""),
                "deferredLoad": self.args.get("deferredLoad", "0"),
                "showBrowser": self.args.get("showBrowser", "1")})
        return htmlOut


@register.tag(name = "dropbox")
def render_dropbox(parser, token):

After Change


        

    def render(self, context):
        if self.safe_check("1","comicWorkstation",self.args):
            return self.render_comic_workstation(context)
        else:
            return self.render_comic_viewer(context) 
    
    def safe_check(self,value,key,list):
        Is there a cleaner way to do this?         
        if key in list:
            if list[key] == value:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: comic/grand-challenge.org
Commit Name: 02c9a52f65a0ddf73fbbb1d9b0e5d75ef756bad8
Time: 2013-04-03
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/templatetags/template_tags.py
Class Name: VisualizationNode
Method Name: render


Project Name: Microsoft/nni
Commit Name: 192a807b39bc029c273c2d1349fb73850ed9484c
Time: 2020-12-13
Author: Quanlu.Zhang@microsoft.com
File Name: nni/retiarii/converter/graph_gen.py
Class Name:
Method Name: convert_module


Project Name: comic/grand-challenge.org
Commit Name: 5af8caab8783fe76552214649ff4fc6973037e18
Time: 2013-04-03
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/templatetags/template_tags.py
Class Name: VisualizationNode
Method Name: render