We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Doc fixes
Some minor doc fixes with a bit of style change


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `src/ralph/dashboards/management/commands/push_graphs_to_statsd.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 import logging
3 import textwrap
4 
5 from django.conf import settings
6 from django.core.management.base import BaseCommand
7 from django.utils.text import slugify
8 
9 from ralph.dashboards.models import Graph
10 from ralph.lib.metrics import build_statsd_client
11 
12 logger = logging.getLogger(__name__)
13 PREFIX = settings.STATSD_GRAPHS_PREFIX
14 STATSD_PATH = '{}.{{}}.{{}}'.format(PREFIX)
15 
16 
17 def normalize(s):
18     s = slugify(s)
19     return s.replace('-', '_')
20 
21 
22 class Command(BaseCommand):
23     """Push to statsd data generated by graphs."""
24     help = textwrap.dedent(__doc__).strip()
25 
26     def handle(self, *args, **kwargs):
27         statsd = build_statsd_client(prefix=STATSD_PATH)
28         graphs = Graph.objects.filter(push_to_statsd=True)
29         for graph in graphs:
30             graph_data = graph.get_data()
31             graph_name = normalize(graph.name)
32             for label, value in zip(graph_data['labels'], graph_data['series']):
33                 path = STATSD_PATH.format(graph_name, normalize(label))
34                 statsd.gauge(path, value)
35
```
--- 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()

```

diff --git a/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py b/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py
--- a/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py
+++ b/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py
@@ -10,8 +10,6 @@
 from ralph.lib.metrics import build_statsd_client
 
 logger = logging.getLogger(__name__)
-PREFIX = settings.STATSD_GRAPHS_PREFIX
-STATSD_PATH = '{}.{{}}.{{}}'.format(PREFIX)
 
 
 def normalize(s):
@@ -24,11 +22,11 @@
     help = textwrap.dedent(__doc__).strip()
 
     def handle(self, *args, **kwargs):
-        statsd = build_statsd_client(prefix=STATSD_PATH)
+        statsd = build_statsd_client(prefix=settings.STATSD_GRAPHS_PREFIX)
         graphs = Graph.objects.filter(push_to_statsd=True)
         for graph in graphs:
             graph_data = graph.get_data()
             graph_name = normalize(graph.name)
             for label, value in zip(graph_data['labels'], graph_data['series']):
-                path = STATSD_PATH.format(graph_name, normalize(label))
+                path = '.'.join((graph_name, normalize(label)))
                 statsd.gauge(path, value)

{"golden_diff": "diff --git a/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py b/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py\n--- a/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py\n+++ b/src/ralph/dashboards/management/commands/push_graphs_to_statsd.py\n@@ -10,8 +10,6 @@\n from ralph.lib.metrics import build_statsd_client\n \n logger = logging.getLogger(__name__)\n-PREFIX = settings.STATSD_GRAPHS_PREFIX\n-STATSD_PATH = '{}.{{}}.{{}}'.format(PREFIX)\n \n \n def normalize(s):\n@@ -24,11 +22,11 @@\n     help = textwrap.dedent(__doc__).strip()\n \n     def handle(self, *args, **kwargs):\n-        statsd = build_statsd_client(prefix=STATSD_PATH)\n+        statsd = build_statsd_client(prefix=settings.STATSD_GRAPHS_PREFIX)\n         graphs = Graph.objects.filter(push_to_statsd=True)\n         for graph in graphs:\n             graph_data = graph.get_data()\n             graph_name = normalize(graph.name)\n             for label, value in zip(graph_data['labels'], graph_data['series']):\n-                path = STATSD_PATH.format(graph_name, normalize(label))\n+                path = '.'.join((graph_name, normalize(label)))\n                 statsd.gauge(path, value)\n", "issue": "Doc fixes\nSome minor doc fixes with a bit of style change\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\nimport logging\nimport textwrap\n\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\nfrom django.utils.text import slugify\n\nfrom ralph.dashboards.models import Graph\nfrom ralph.lib.metrics import build_statsd_client\n\nlogger = logging.getLogger(__name__)\nPREFIX = settings.STATSD_GRAPHS_PREFIX\nSTATSD_PATH = '{}.{{}}.{{}}'.format(PREFIX)\n\n\ndef normalize(s):\n    s = slugify(s)\n    return s.replace('-', '_')\n\n\nclass Command(BaseCommand):\n    \"\"\"Push to statsd data generated by graphs.\"\"\"\n    help = textwrap.dedent(__doc__).strip()\n\n    def handle(self, *args, **kwargs):\n        statsd = build_statsd_client(prefix=STATSD_PATH)\n        graphs = Graph.objects.filter(push_to_statsd=True)\n        for graph in graphs:\n            graph_data = graph.get_data()\n            graph_name = normalize(graph.name)\n            for label, value in zip(graph_data['labels'], graph_data['series']):\n                path = STATSD_PATH.format(graph_name, normalize(label))\n                statsd.gauge(path, value)\n", "path": "src/ralph/dashboards/management/commands/push_graphs_to_statsd.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\nimport logging\nimport textwrap\n\nfrom django.conf import settings\nfrom django.core.management.base import BaseCommand\nfrom django.utils.text import slugify\n\nfrom ralph.dashboards.models import Graph\nfrom ralph.lib.metrics import build_statsd_client\n\nlogger = logging.getLogger(__name__)\n\n\ndef normalize(s):\n    s = slugify(s)\n    return s.replace('-', '_')\n\n\nclass Command(BaseCommand):\n    \"\"\"Push to statsd data generated by graphs.\"\"\"\n    help = textwrap.dedent(__doc__).strip()\n\n    def handle(self, *args, **kwargs):\n        statsd = build_statsd_client(prefix=settings.STATSD_GRAPHS_PREFIX)\n        graphs = Graph.objects.filter(push_to_statsd=True)\n        for graph in graphs:\n            graph_data = graph.get_data()\n            graph_name = normalize(graph.name)\n            for label, value in zip(graph_data['labels'], graph_data['series']):\n                path = '.'.join((graph_name, normalize(label)))\n                statsd.gauge(path, value)\n", "path": "src/ralph/dashboards/management/commands/push_graphs_to_statsd.py"}]}