prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Embed query description appearing larger than vizualization name
  The query description is appearing larger then the visualization name:
  
  ![image](https://cloud.githubusercontent.com/assets/7199904/14591358/6bf74f9e-0553-11e6-91c4-70912b25025b.png)
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `redash/handlers/embed.py`
  Content:
  ```
  1 import json
  2 
  3 from funcy import project
  4 from flask import render_template, request
  5 from flask_login import login_required, current_user
  6 from flask_restful import abort
  7 
  8 from redash import models, settings
  9 from redash import serializers
  10 from redash.utils import json_dumps
  11 from redash.handlers import routes
  12 from redash.handlers.base import org_scoped_rule
  13 from redash.permissions import require_access, view_only
  14 from authentication import current_org
  15 
  16 
  17 @routes.route(org_scoped_rule('/embed/query/<query_id>/visualization/<visualization_id>'), methods=['GET'])
  18 @login_required
  19 def embed(query_id, visualization_id, org_slug=None):
  20     # TODO: add event for embed access
  21     query = models.Query.get_by_id_and_org(query_id, current_org)
  22     require_access(query.groups, current_user, view_only)
  23     vis = query.visualizations.where(models.Visualization.id == visualization_id).first()
  24     qr = {}
  25 
  26     if vis is not None:
  27         vis = vis.to_dict()
  28         qr = query.latest_query_data
  29         if qr is None:
  30             abort(400, message="No Results for this query")
  31         else:
  32             qr = qr.to_dict()
  33     else:
  34         abort(404, message="Visualization not found.")
  35 
  36     client_config = {}
  37     client_config.update(settings.COMMON_CLIENT_CONFIG)
  38 
  39     qr = project(qr, ('data', 'id', 'retrieved_at'))
  40     vis = project(vis, ('description', 'name', 'id', 'options', 'query', 'type', 'updated_at'))
  41     vis['query'] = project(vis['query'], ('created_at', 'description', 'name', 'id', 'latest_query_data_id', 'name', 'updated_at'))
  42 
  43     return render_template("embed.html",
  44 
  45                            client_config=json_dumps(client_config),
  46                            visualization=json_dumps(vis),
  47                            query_result=json_dumps(qr))
  48 
  49 
  50 @routes.route(org_scoped_rule('/public/dashboards/<token>'), methods=['GET'])
  51 @login_required
  52 def public_dashboard(token, org_slug=None):
  53     # TODO: verify object is a dashboard?
  54     if not isinstance(current_user, models.ApiUser):
  55         api_key = models.ApiKey.get_by_api_key(token)
  56         dashboard = api_key.object
  57     else:
  58         dashboard = current_user.object
  59 
  60     user = {
  61         'permissions': [],
  62         'apiKey': current_user.id
  63     }
  64 
  65     headers = {
  66         'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate'
  67     }
  68 
  69     response = render_template("public.html",
  70                                headless='embed' in request.args,
  71                                user=json.dumps(user),
  72                                seed_data=json_dumps({
  73                                  'dashboard': serializers.public_dashboard(dashboard)
  74                                }),
  75                                client_config=json.dumps(settings.COMMON_CLIENT_CONFIG))
  76 
  77     return response, 200, headers
  78
  ```
  --- 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/redash/handlers/embed.py b/redash/handlers/embed.py
  --- a/redash/handlers/embed.py
  +++ b/redash/handlers/embed.py
  @@ -41,7 +41,6 @@
       vis['query'] = project(vis['query'], ('created_at', 'description', 'name', 'id', 'latest_query_data_id', 'name', 'updated_at'))
   
       return render_template("embed.html",
  -
                              client_config=json_dumps(client_config),
                              visualization=json_dumps(vis),
                              query_result=json_dumps(qr))
  
verification_info: {"golden_diff": "diff --git a/redash/handlers/embed.py b/redash/handlers/embed.py\n--- a/redash/handlers/embed.py\n+++ b/redash/handlers/embed.py\n@@ -41,7 +41,6 @@\n     vis['query'] = project(vis['query'], ('created_at', 'description', 'name', 'id', 'latest_query_data_id', 'name', 'updated_at'))\n \n     return render_template(\"embed.html\",\n-\n                            client_config=json_dumps(client_config),\n                            visualization=json_dumps(vis),\n                            query_result=json_dumps(qr))\n", "issue": "Embed query description appearing larger than vizualization name\nThe query description is appearing larger then the visualization name:\n\n![image](https://cloud.githubusercontent.com/assets/7199904/14591358/6bf74f9e-0553-11e6-91c4-70912b25025b.png)\n\n", "before_files": [{"content": "import json\n\nfrom funcy import project\nfrom flask import render_template, request\nfrom flask_login import login_required, current_user\nfrom flask_restful import abort\n\nfrom redash import models, settings\nfrom redash import serializers\nfrom redash.utils import json_dumps\nfrom redash.handlers import routes\nfrom redash.handlers.base import org_scoped_rule\nfrom redash.permissions import require_access, view_only\nfrom authentication import current_org\n\n\n@routes.route(org_scoped_rule('/embed/query/<query_id>/visualization/<visualization_id>'), methods=['GET'])\n@login_required\ndef embed(query_id, visualization_id, org_slug=None):\n    # TODO: add event for embed access\n    query = models.Query.get_by_id_and_org(query_id, current_org)\n    require_access(query.groups, current_user, view_only)\n    vis = query.visualizations.where(models.Visualization.id == visualization_id).first()\n    qr = {}\n\n    if vis is not None:\n        vis = vis.to_dict()\n        qr = query.latest_query_data\n        if qr is None:\n            abort(400, message=\"No Results for this query\")\n        else:\n            qr = qr.to_dict()\n    else:\n        abort(404, message=\"Visualization not found.\")\n\n    client_config = {}\n    client_config.update(settings.COMMON_CLIENT_CONFIG)\n\n    qr = project(qr, ('data', 'id', 'retrieved_at'))\n    vis = project(vis, ('description', 'name', 'id', 'options', 'query', 'type', 'updated_at'))\n    vis['query'] = project(vis['query'], ('created_at', 'description', 'name', 'id', 'latest_query_data_id', 'name', 'updated_at'))\n\n    return render_template(\"embed.html\",\n\n                           client_config=json_dumps(client_config),\n                           visualization=json_dumps(vis),\n                           query_result=json_dumps(qr))\n\n\n@routes.route(org_scoped_rule('/public/dashboards/<token>'), methods=['GET'])\n@login_required\ndef public_dashboard(token, org_slug=None):\n    # TODO: verify object is a dashboard?\n    if not isinstance(current_user, models.ApiUser):\n        api_key = models.ApiKey.get_by_api_key(token)\n        dashboard = api_key.object\n    else:\n        dashboard = current_user.object\n\n    user = {\n        'permissions': [],\n        'apiKey': current_user.id\n    }\n\n    headers = {\n        'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate'\n    }\n\n    response = render_template(\"public.html\",\n                               headless='embed' in request.args,\n                               user=json.dumps(user),\n                               seed_data=json_dumps({\n                                 'dashboard': serializers.public_dashboard(dashboard)\n                               }),\n                               client_config=json.dumps(settings.COMMON_CLIENT_CONFIG))\n\n    return response, 200, headers\n", "path": "redash/handlers/embed.py"}], "after_files": [{"content": "import json\n\nfrom funcy import project\nfrom flask import render_template, request\nfrom flask_login import login_required, current_user\nfrom flask_restful import abort\n\nfrom redash import models, settings\nfrom redash import serializers\nfrom redash.utils import json_dumps\nfrom redash.handlers import routes\nfrom redash.handlers.base import org_scoped_rule\nfrom redash.permissions import require_access, view_only\nfrom authentication import current_org\n\n\n@routes.route(org_scoped_rule('/embed/query/<query_id>/visualization/<visualization_id>'), methods=['GET'])\n@login_required\ndef embed(query_id, visualization_id, org_slug=None):\n    # TODO: add event for embed access\n    query = models.Query.get_by_id_and_org(query_id, current_org)\n    require_access(query.groups, current_user, view_only)\n    vis = query.visualizations.where(models.Visualization.id == visualization_id).first()\n    qr = {}\n\n    if vis is not None:\n        vis = vis.to_dict()\n        qr = query.latest_query_data\n        if qr is None:\n            abort(400, message=\"No Results for this query\")\n        else:\n            qr = qr.to_dict()\n    else:\n        abort(404, message=\"Visualization not found.\")\n\n    client_config = {}\n    client_config.update(settings.COMMON_CLIENT_CONFIG)\n\n    qr = project(qr, ('data', 'id', 'retrieved_at'))\n    vis = project(vis, ('description', 'name', 'id', 'options', 'query', 'type', 'updated_at'))\n    vis['query'] = project(vis['query'], ('created_at', 'description', 'name', 'id', 'latest_query_data_id', 'name', 'updated_at'))\n\n    return render_template(\"embed.html\",\n                           client_config=json_dumps(client_config),\n                           visualization=json_dumps(vis),\n                           query_result=json_dumps(qr))\n\n\n@routes.route(org_scoped_rule('/public/dashboards/<token>'), methods=['GET'])\n@login_required\ndef public_dashboard(token, org_slug=None):\n    # TODO: verify object is a dashboard?\n    if not isinstance(current_user, models.ApiUser):\n        api_key = models.ApiKey.get_by_api_key(token)\n        dashboard = api_key.object\n    else:\n        dashboard = current_user.object\n\n    user = {\n        'permissions': [],\n        'apiKey': current_user.id\n    }\n\n    headers = {\n        'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate'\n    }\n\n    response = render_template(\"public.html\",\n                               headless='embed' in request.args,\n                               user=json.dumps(user),\n                               seed_data=json_dumps({\n                                 'dashboard': serializers.public_dashboard(dashboard)\n                               }),\n                               client_config=json.dumps(settings.COMMON_CLIENT_CONFIG))\n\n    return response, 200, headers\n", "path": "redash/handlers/embed.py"}]}