prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  take out secret dev notes visible in frontend :-)
  
  ![Bildschirmfoto 2019-07-05 um 11 58 43](https://user-images.githubusercontent.com/35491681/60715029-65f58280-9f1c-11e9-85ff-91caecfbd2db.png)
  
  
  
  
  </issue>
  <code>
  [start of meinberlin/apps/projects/templatetags/meinberlin_project_tags.py]
  1 from django import template
  2 
  3 from adhocracy4.comments.models import Comment
  4 from meinberlin.apps.budgeting.models import Proposal as budget_proposal
  5 from meinberlin.apps.ideas.models import Idea
  6 from meinberlin.apps.kiezkasse.models import Proposal as kiezkasse_proposal
  7 from meinberlin.apps.mapideas.models import MapIdea
  8 from meinberlin.apps.projects import get_project_type
  9 
  10 register = template.Library()
  11 
  12 
  13 @register.filter
  14 def project_url(project):
  15     if get_project_type(project) in ('external', 'bplan'):
  16         return project.externalproject.url
  17     return project.get_absolute_url()
  18 
  19 
  20 @register.filter
  21 def project_type(project):
  22     return get_project_type(project)
  23 
  24 
  25 @register.filter
  26 def is_external(project):
  27     return get_project_type(project) in ('external', 'bplan')
  28 
  29 
  30 @register.filter
  31 def is_container(project):
  32     return get_project_type(project) == 'container'
  33 
  34 
  35 @register.simple_tag
  36 def to_class_name(value):
  37     return value.__class__.__name__
  38 
  39 
  40 @register.simple_tag
  41 def get_num_entries(module):
  42     """Count all user-generated items."""
  43     item_count = Idea.objects.filter(module=module).count() \
  44         + MapIdea.objects.filter(module=module).count() \
  45         + budget_proposal.objects.filter(module=module).count() \
  46         + kiezkasse_proposal.objects.filter(module=module).count() \
  47         + Comment.objects.filter(idea__module=module).count() \
  48         + Comment.objects.filter(mapidea__module=module).count() \
  49         + Comment.objects.filter(budget_proposal__module=module).count() \
  50         + Comment.objects.filter(kiezkasse_proposal__module=module).count()
  51     return item_count
  52
  [end of meinberlin/apps/projects/templatetags/meinberlin_project_tags.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
  --- a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
  +++ b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py
  @@ -40,12 +40,18 @@
   @register.simple_tag
   def get_num_entries(module):
       """Count all user-generated items."""
  -    item_count = Idea.objects.filter(module=module).count() \
  +    item_count = \
  +        Idea.objects.filter(module=module).count() \
           + MapIdea.objects.filter(module=module).count() \
           + budget_proposal.objects.filter(module=module).count() \
           + kiezkasse_proposal.objects.filter(module=module).count() \
           + Comment.objects.filter(idea__module=module).count() \
           + Comment.objects.filter(mapidea__module=module).count() \
           + Comment.objects.filter(budget_proposal__module=module).count() \
  -        + Comment.objects.filter(kiezkasse_proposal__module=module).count()
  +        + Comment.objects.filter(kiezkasse_proposal__module=module).count() \
  +        + Comment.objects.filter(topic__module=module).count() \
  +        + Comment.objects.filter(maptopic__module=module).count() \
  +        + Comment.objects.filter(paragraph__chapter__module=module).count() \
  +        + Comment.objects.filter(chapter__module=module).count() \
  +        + Comment.objects.filter(poll__module=module).count()
       return item_count
  
verification_info: {"golden_diff": "diff --git a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py\n--- a/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py\n+++ b/meinberlin/apps/projects/templatetags/meinberlin_project_tags.py\n@@ -40,12 +40,18 @@\n @register.simple_tag\n def get_num_entries(module):\n     \"\"\"Count all user-generated items.\"\"\"\n-    item_count = Idea.objects.filter(module=module).count() \\\n+    item_count = \\\n+        Idea.objects.filter(module=module).count() \\\n         + MapIdea.objects.filter(module=module).count() \\\n         + budget_proposal.objects.filter(module=module).count() \\\n         + kiezkasse_proposal.objects.filter(module=module).count() \\\n         + Comment.objects.filter(idea__module=module).count() \\\n         + Comment.objects.filter(mapidea__module=module).count() \\\n         + Comment.objects.filter(budget_proposal__module=module).count() \\\n-        + Comment.objects.filter(kiezkasse_proposal__module=module).count()\n+        + Comment.objects.filter(kiezkasse_proposal__module=module).count() \\\n+        + Comment.objects.filter(topic__module=module).count() \\\n+        + Comment.objects.filter(maptopic__module=module).count() \\\n+        + Comment.objects.filter(paragraph__chapter__module=module).count() \\\n+        + Comment.objects.filter(chapter__module=module).count() \\\n+        + Comment.objects.filter(poll__module=module).count()\n     return item_count\n", "issue": "take out secret dev notes visible in frontend :-)\n\r\n![Bildschirmfoto 2019-07-05 um 11 58 43](https://user-images.githubusercontent.com/35491681/60715029-65f58280-9f1c-11e9-85ff-91caecfbd2db.png)\r\n\r\n\r\n\n", "before_files": [{"content": "from django import template\n\nfrom adhocracy4.comments.models import Comment\nfrom meinberlin.apps.budgeting.models import Proposal as budget_proposal\nfrom meinberlin.apps.ideas.models import Idea\nfrom meinberlin.apps.kiezkasse.models import Proposal as kiezkasse_proposal\nfrom meinberlin.apps.mapideas.models import MapIdea\nfrom meinberlin.apps.projects import get_project_type\n\nregister = template.Library()\n\n\n@register.filter\ndef project_url(project):\n    if get_project_type(project) in ('external', 'bplan'):\n        return project.externalproject.url\n    return project.get_absolute_url()\n\n\n@register.filter\ndef project_type(project):\n    return get_project_type(project)\n\n\n@register.filter\ndef is_external(project):\n    return get_project_type(project) in ('external', 'bplan')\n\n\n@register.filter\ndef is_container(project):\n    return get_project_type(project) == 'container'\n\n\n@register.simple_tag\ndef to_class_name(value):\n    return value.__class__.__name__\n\n\n@register.simple_tag\ndef get_num_entries(module):\n    \"\"\"Count all user-generated items.\"\"\"\n    item_count = Idea.objects.filter(module=module).count() \\\n        + MapIdea.objects.filter(module=module).count() \\\n        + budget_proposal.objects.filter(module=module).count() \\\n        + kiezkasse_proposal.objects.filter(module=module).count() \\\n        + Comment.objects.filter(idea__module=module).count() \\\n        + Comment.objects.filter(mapidea__module=module).count() \\\n        + Comment.objects.filter(budget_proposal__module=module).count() \\\n        + Comment.objects.filter(kiezkasse_proposal__module=module).count()\n    return item_count\n", "path": "meinberlin/apps/projects/templatetags/meinberlin_project_tags.py"}]}