hunk.code_window:             data = survey_obj.prepare_result(request.cr, request.uid, question, current_filters, context=request.context)
               for answer in data['answers']:
                   values = []
                   for res in data['result']:
                       if res[1] == answer:
                           values.append({'text': data['rows'][res[0]], 'count': data['result'][res]})
                   result.append({'key': data['answers'].get(answer), 'values': values})
           return json.dumps(result)
   def dict_soft_update(dictionary, key, value):
  
hunk.labels: keep keep keep replace replace replace keep keep keep keep
hunk.after_edit:                 for row in data['rows']:
                       values.append({'text': data['rows'].get(row), 'count': data['result'].get((row, answer))})
  
hunk.file_path: addons/survey/controllers/main.py
hunk.type: replace
file: /*
   * small_flask.css_t
   * ~~~~~~~~~~~~~~~~~
   *
   * :copyright: Copyright 2010 by Armin Ronacher.
   * :license: Flask Design License, see LICENSE for details.
   */
  
  body {
      margin: 0;
      padding: 20px 30px;
  }
  
  div.documentwrapper {
      float: none;
      background: white;
  }
  
  div.sphinxsidebar {
      display: block;
      float: none;
      width: 102.5%;
      margin: 50px -30px -20px -30px;
      padding: 10px 20px;
      background: #333;
      color: white;
  }
  
  div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p,
  div.sphinxsidebar h3 a {
      color: white;
  }
  
  div.sphinxsidebar a {
      color: #aaa;
  }
  
  div.sphinxsidebar p.logo {
      display: none;
  }
  
  div.document {
      width: 100%;
      margin: 0;
  }
  
  div.related {
      display: block;
      margin: 0;
      padding: 10px 0 20px 0;
  }
  
  div.related ul,
  div.related ul li {
      margin: 0;
      padding: 0;
  }
  
  div.footer {
      display: none;
  }
  
  div.bodywrapper {
      margin: 0;
  }
  
  div.body {
      min-height: 0;
      padding: 0;
  }
  