hunk.code_window:         #Calculate and return statistics for choice
           if question.type in ['simple_choice', 'multiple_choice']:
               result_summary = {}
               [result_summary.update({label.id: {'text': label.value, 'count': 0, 'answer_id': label.id}}) for label in question.labels_ids]
               for input_line in question.user_input_line_ids:
                   if input_line.answer_type == 'suggestion' and result_summary.get(input_line.value_suggested.id) and (not(current_filters) or input_line.user_input_id.id in current_filters):
                       result_summary[input_line.value_suggested.id]['count'] += 1
               result_summary = result_summary.values()
           #Calculate and return statistics for matrix
           if question.type == 'matrix':
  
hunk.labels: keep keep replace replace replace replace replace replace keep keep keep
hunk.after_edit:             result_summary = []
               for label in question.labels_ids:
                   count = 0
                   for input_line in question.user_input_line_ids:
                       if input_line.answer_type == 'suggestion' and input_line.value_suggested.id == label.id and (not current_filters or input_line.user_input_id.id in current_filters):
                           count = count + 1
                   label_summary = {'text': label.value, 'count': count, 'answer_id': label.id}
                   result_summary = result_summary + [label_summary]
  
hunk.file_path: addons/survey/survey.py
hunk.type: replace
file: id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
  access_pos_order,pos.order,model_pos_order,group_pos_user,1,1,1,1
  access_pos_order_line,pos.order.line,model_pos_order_line,group_pos_user,1,1,1,1
  access_pos_order_manager,pos.order manager,model_pos_order,group_pos_manager,1,0,0,0
  access_pos_order_line_manager,pos.order.line manager,model_pos_order_line,group_pos_manager,1,0,0,0
  access_report_transaction_pos,report.transaction.pos,model_report_transaction_pos,group_pos_manager,1,1,1,1
  access_account_journal_pos_user,account.journal pos_user,account.model_account_journal,group_pos_user,1,0,0,0
  access_account_move_pos_user,account.move pos_user,account.model_account_move,group_pos_user,1,1,1,0
  access_account_account_pos_user,account.account pos_user,account.model_account_account,group_pos_user,1,0,0,0
  access_stock_picking_pos_user,stock.picking pos_user,stock.model_stock_picking,group_pos_user,1,1,1,1
  access_stock_warehouse_pos_user,stock.warehouse pos_user,stock.model_stock_warehouse,group_pos_user,1,0,0,0
  access_pos_order_stock_worker,pos.order stock_worker,model_pos_order,stock.group_stock_user,1,0,0,0
  access_stock_move_pos_user,stock.move pos_user,stock.model_stock_move,group_pos_user,1,1,1,1
  access_report_sales_by_user_pos,report.sales.by.user.pos,model_report_sales_by_user_pos,group_pos_user,1,0,0,0
  access_report_sales_by_user_pos_month,report.sales.by.user.pos.month,model_report_sales_by_user_pos_month,group_pos_user,1,0,0,0
  access_report_pos_order,report.pos.order,model_report_pos_order,group_pos_user,1,1,1,1
  access_account_bank_statement,account.bank.statement,account.model_account_bank_statement,group_pos_user,1,1,1,0
  access_account_bank_statement_manager,account.bank.statement manager,account.model_account_bank_statement,group_pos_manager,1,1,1,1
  access_account_bank_statement_line,account.bank.statement.line,account.model_account_bank_statement_line,group_pos_user,1,1,1,0
  access_account_invoice_pos,account.invoice pos user,account.model_account_invoice,group_pos_user,1,1,1,0
  access_account_invoice_pos_manager,account.invoice pos manager,account.model_account_invoice,group_pos_manager,1,0,0,0
  access_account_invoice_line_pos,account.invoice.line pos user,account.model_account_invoice_line,group_pos_user,1,1,1,0
  access_account_invoice_line_pos_manager,account.invoice.line pos manager,account.model_account_invoice_line,group_pos_manager,1,0,0,0
  access_account_invoice_tax_pos,account.invoice.tax pos user,account.model_account_invoice_tax,group_pos_user,1,1,1,0
  access_account_invoice_tax_pos_manager,account.invoice.tax pos manager,account.model_account_invoice_tax,group_pos_manager,1,0,0,0
  access_account_period_pos,account.period pos user,account.model_account_period,group_pos_user,1,1,1,0
  access_account_period_pos_manager,account.period pos manager,account.model_account_period,group_pos_manager,1,0,0,0
  access_account_fiscalyear_pos_user,account.fiscalyear user,account.model_account_fiscalyear,group_pos_user,1,1,1,0
  access_account_fiscalyear_pos_manager,account.fiscalyear manager,account.model_account_fiscalyear,group_pos_manager,1,0,0,0
  access_account_cashbox_line,account.cashbox.line,account.model_account_cashbox_line,group_pos_user,1,1,1,0
  access_account_journal_cashbox_line,account.cashbox.journal.line,account.model_account_journal_cashbox_line,group_pos_user,1,1,1,0
  access_account_cashbox_line_manager,account.cashbox.line manager,account.model_account_cashbox_line,group_pos_manager,1,1,1,1
  access_product_product,product.product,product.model_product_product,group_pos_user,1,0,0,0
  access_product_template_pos_user,product.template pos user,product.model_product_template,group_pos_user,1,0,0,0
  access_product_product_pos_manager,product.product.pos manager,product.model_product_product,group_pos_manager,1,1,1,1
  access_product_template_pos_manager,product.template pos manager,product.model_product_template,group_pos_manager,1,1,1,1
  access_account_move_line,account.move.line,account.model_account_move_line,group_pos_user,1,1,1,0
  access_account_move_line_manager,account.move.line manager,account.model_account_move_line,group_pos_manager,1,1,1,1
  access_account_move,account.move,account.model_account_move,group_pos_manager,1,0,0,0
  access_account_journal,account.journal,account.model_account_journal,group_pos_user,1,1,1,0
  access_account_journal_period_user,account.journal.period user,account.model_account_journal_period,group_pos_user,1,1,1,1
  access_account_journal_period_manager,account.journal.period manager,account.model_account_journal_period,group_pos_manager,1,0,0,0
  access_account_analytic_line,account.analytic.line,analytic.model_account_analytic_line,group_pos_user,1,1,1,0
  access_account_analytic_account,account.analytic.account,analytic.model_account_analytic_account,group_pos_user,1,1,1,0
  access_ir_property_pos_manager,ir.property manager,base.model_ir_property,group_pos_manager,1,1,1,1
  access_account_bank_statement_line_manager,account.bank.statement.line manager,account.model_account_bank_statement_line,group_pos_manager,1,1,1,1
  access_account_invoice_manager,account.invoice manager,account.model_account_invoice,group_pos_manager,1,1,1,1
  access_product_product_supplierinfo_user,product.supplierinfo user,product.model_product_supplierinfo,group_pos_user,1,0,0,0
  access_product_product_packaging_user,product.packaging user,product.model_product_packaging,group_pos_user,1,0,0,0
  access_account_sequence_fiscalyear_manager,account.sequence.fiscalyear manager,account.model_account_sequence_fiscalyear,group_pos_manager,1,0,0,0
  access_stock_warehouse_manager,stock.warehouse manager,stock.model_stock_warehouse,group_pos_manager,1,0,0,0
  access_stock_location_manager,stock.location manager,stock.model_stock_location,group_pos_manager,1,0,0,0
  access_product_uom_manager,product.uom manager,product.model_product_uom,group_pos_manager,1,1,1,1
  access_res_partner_manager,res.partner manager,base.model_res_partner,group_pos_manager,1,0,0,0
  access_product_category_manager,product.category manager,product.model_product_category,group_pos_manager,1,1,1,1
  access_product_pricelist_manager,product.pricelist manager,product.model_product_pricelist,group_pos_manager,1,0,0,0
  access_pos_session_user,pos.session user,model_pos_session,group_pos_user,1,1,1,0
  access_pos_config_user,pos.config user,model_pos_config,group_pos_user,1,1,1,0
  access_ir_sequence_manager,ir.sequence manager,base.model_ir_sequence,group_pos_manager,1,1,1,1
  access_product_category_pos_manager,pos.category manager,model_pos_category,group_pos_manager,1,1,1,1
  access_product_category_pos_user,pos.category user,model_pos_category,group_pos_user,1,0,0,0
  