Ejemplo n.º 1
0
 def diff2(self, other):
     """Compare this assignment to another one.
     """
     checker = PlagChecker()
     result = checker.compare(
         str(self.getFile()), str(other.getFile()), self.pretty_title_or_id(), other.pretty_title_or_id()
     )
     vis = PlagVisualizer()
     strList = vis.resultToHtml(result, str(self.getFile()), str(other.getFile()))
     return strList
Ejemplo n.º 2
0
 def dotplot(self, other):  # , REQUEST=None):
     """Compare this assignment to another one. Using a dotplot.
     """
     vis = PlagVisualizer()
     image = vis.stringsToDotplot(
         str(self.getFile()),
         str(other.getFile()),
         id1=self.pretty_title_or_id(),
         id2=other.pretty_title_or_id(),
         showIdNums=True,
     )
     return image