prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Making messages for translation has system dependent output
  When calling `make makemessages` the output of the generated "djangojs.po" is dependent on the system configuration. 
  For example in my case it inserts messages from:
  "adhocracy4/node_modules/ajv/dist/regenerator.min.js"  and
  "adhocracy4/node_modules/js-yaml/dist/js-yaml.min.js"
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `apps/contrib/management/commands/makemessages.py`
  Content:
  ```
  1 from os import path
  2 
  3 from django.conf import settings
  4 from django.core.management.commands import makemessages
  5 
  6 
  7 def get_module_dir(name):
  8     module = __import__(name)
  9     return path.dirname(module.__file__)
  10 
  11 
  12 class Command(makemessages.Command):
  13     msgmerge_options = (
  14         makemessages.Command.msgmerge_options + ['--no-fuzzy-matching']
  15     )
  16 
  17     def handle(self, *args, **options):
  18         if options['domain'] == 'djangojs':
  19             if options['extensions'] is None:
  20                 options['extensions'] = ['js', 'jsx']
  21         return super().handle(*args, **options)
  22 
  23     def find_files(self, root):
  24         a4js_paths = super().find_files(
  25             path.join(settings.BASE_DIR, 'node_modules', 'adhocracy4')
  26         )
  27         a4_paths = super().find_files(get_module_dir('adhocracy4'))
  28         apps_paths = super().find_files(path.relpath(get_module_dir('apps')))
  29         meinberlin_paths = super().find_files(
  30             path.relpath(get_module_dir('meinberlin'))
  31         )
  32 
  33         return a4js_paths + a4_paths + apps_paths + meinberlin_paths
  34
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/apps/contrib/management/commands/makemessages.py b/apps/contrib/management/commands/makemessages.py
  --- a/apps/contrib/management/commands/makemessages.py
  +++ b/apps/contrib/management/commands/makemessages.py
  @@ -21,9 +21,9 @@
           return super().handle(*args, **options)
   
       def find_files(self, root):
  -        a4js_paths = super().find_files(
  -            path.join(settings.BASE_DIR, 'node_modules', 'adhocracy4')
  -        )
  +        a4js_paths = super().find_files(path.join(
  +            settings.BASE_DIR, 'node_modules', 'adhocracy4', 'adhocracy4'
  +        ))
           a4_paths = super().find_files(get_module_dir('adhocracy4'))
           apps_paths = super().find_files(path.relpath(get_module_dir('apps')))
           meinberlin_paths = super().find_files(
  
verification_info: {"golden_diff": "diff --git a/apps/contrib/management/commands/makemessages.py b/apps/contrib/management/commands/makemessages.py\n--- a/apps/contrib/management/commands/makemessages.py\n+++ b/apps/contrib/management/commands/makemessages.py\n@@ -21,9 +21,9 @@\n         return super().handle(*args, **options)\n \n     def find_files(self, root):\n-        a4js_paths = super().find_files(\n-            path.join(settings.BASE_DIR, 'node_modules', 'adhocracy4')\n-        )\n+        a4js_paths = super().find_files(path.join(\n+            settings.BASE_DIR, 'node_modules', 'adhocracy4', 'adhocracy4'\n+        ))\n         a4_paths = super().find_files(get_module_dir('adhocracy4'))\n         apps_paths = super().find_files(path.relpath(get_module_dir('apps')))\n         meinberlin_paths = super().find_files(\n", "issue": "Making messages for translation has system dependent output\nWhen calling `make makemessages` the output of the generated \"djangojs.po\" is dependent on the system configuration. \r\nFor example in my case it inserts messages from:\r\n\"adhocracy4/node_modules/ajv/dist/regenerator.min.js\"  and\r\n\"adhocracy4/node_modules/js-yaml/dist/js-yaml.min.js\"\n", "before_files": [{"content": "from os import path\n\nfrom django.conf import settings\nfrom django.core.management.commands import makemessages\n\n\ndef get_module_dir(name):\n    module = __import__(name)\n    return path.dirname(module.__file__)\n\n\nclass Command(makemessages.Command):\n    msgmerge_options = (\n        makemessages.Command.msgmerge_options + ['--no-fuzzy-matching']\n    )\n\n    def handle(self, *args, **options):\n        if options['domain'] == 'djangojs':\n            if options['extensions'] is None:\n                options['extensions'] = ['js', 'jsx']\n        return super().handle(*args, **options)\n\n    def find_files(self, root):\n        a4js_paths = super().find_files(\n            path.join(settings.BASE_DIR, 'node_modules', 'adhocracy4')\n        )\n        a4_paths = super().find_files(get_module_dir('adhocracy4'))\n        apps_paths = super().find_files(path.relpath(get_module_dir('apps')))\n        meinberlin_paths = super().find_files(\n            path.relpath(get_module_dir('meinberlin'))\n        )\n\n        return a4js_paths + a4_paths + apps_paths + meinberlin_paths\n", "path": "apps/contrib/management/commands/makemessages.py"}], "after_files": [{"content": "from os import path\n\nfrom django.conf import settings\nfrom django.core.management.commands import makemessages\n\n\ndef get_module_dir(name):\n    module = __import__(name)\n    return path.dirname(module.__file__)\n\n\nclass Command(makemessages.Command):\n    msgmerge_options = (\n        makemessages.Command.msgmerge_options + ['--no-fuzzy-matching']\n    )\n\n    def handle(self, *args, **options):\n        if options['domain'] == 'djangojs':\n            if options['extensions'] is None:\n                options['extensions'] = ['js', 'jsx']\n        return super().handle(*args, **options)\n\n    def find_files(self, root):\n        a4js_paths = super().find_files(path.join(\n            settings.BASE_DIR, 'node_modules', 'adhocracy4', 'adhocracy4'\n        ))\n        a4_paths = super().find_files(get_module_dir('adhocracy4'))\n        apps_paths = super().find_files(path.relpath(get_module_dir('apps')))\n        meinberlin_paths = super().find_files(\n            path.relpath(get_module_dir('meinberlin'))\n        )\n\n        return a4js_paths + a4_paths + apps_paths + meinberlin_paths\n", "path": "apps/contrib/management/commands/makemessages.py"}]}