705e46d8c12fb86646ea5438e2225b5dd3912ae9,snorkel/viewer.py,Viewer,render,#Viewer#,89

Before Change


                lis.append(LI_HTML.format(data=li_data, context_id=context.id))

                // TODO: Remove this hack
                try:
                    page_cids += [c.id for c in sorted(candidates, key=lambda c : c.char_start)]
                except:
                    page_cids += [c.id for c in sorted(candidates, key=lambda c : c.span0.char_start)]
            pages.append(PAGE_HTML.format(pid=pid, data="".join(lis)))
            cids.append(page_cids)
            pid += 1

After Change


                // Construct the <li> and page view elements
                li_data = self._tag_context(context, candidates, gold)
                lis.append(LI_HTML.format(data=li_data, context_id=context.id))
                page_cids += [self.candidates.index(c) for c in candidates]

            // Assemble the page...
            pages.append(PAGE_HTML.format(pid=pid, data="".join(lis)))
            cids.append(page_cids)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: snorkel-team/snorkel
Commit Name: 705e46d8c12fb86646ea5438e2225b5dd3912ae9
Time: 2016-08-10
Author: ajratner@gmail.com
File Name: snorkel/viewer.py
Class Name: Viewer
Method Name: render


Project Name: commonsense/conceptnet5
Commit Name: 952f26f1f16ac30315f799e163106a688fc05cb7
Time: 2018-05-14
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/transforms.py
Class Name:
Method Name: choose_small_vocabulary


Project Name: fperazzi/proSR
Commit Name: 6b7b82ff60b8ca7a26b50e50210a06a46bdc848a
Time: 2018-07-09
Author: fperazzi@adobe.com
File Name: lib/prosr/models/generators.py
Class Name: ProSR
Method Name: forward