

def _create_context(self, request, *args, **kwargs):
    request_id = kwargs.get('request_id')
    if request_id:
        silk_request = Request.objects.get(pk=request_id)
    else:
        silk_request = None
    show = request.GET.get('show', self.default_show)
    order_by = request.GET.get('order_by', self.defualt_order_by)
    if show:
        show = int(show)
    func_name = request.GET.get('func_name', None)
    name = request.GET.get('name', None)
    filters = request.session.get(self.session_key_profile_filters, {
        
    })
    context = {
        'show': show,
        'order_by': order_by,
        'request': request,
        'func_name': func_name,
        'options_show': x.show,
        'options_order_by': self.order_by,
        'options_func_names': self._get_function_names(silk_request),
        'options_names': self._get_names(silk_request),
        'filters': filters,
    }
    context.update(csrf(request))
    if silk_request:
        context['silk_request'] = silk_request
    if func_name:
        context['func_name'] = func_name
    if name:
        context['name'] = name
    objs = self._get_objects(show=show, order_by=order_by, func_name=func_name, silk_request=silk_request, name=name, filters=[BaseFilter.from_dict(x) for (_, x) in filters.items()])
    context['results'] = objs
    return context

dataset/ETHPy150Open django-silk/silk/silk/views/profiling.py ProfilingView._create_context/VarMisuse@168/234 `self`->`x`