7c28a775bcb81b62a7fbcfddb3949634e58e42e0,server/dvaui/views.py,FrameDetail,get_context_data,#FrameDetail#,204
Before Change
def get_context_data(self, **kwargs):
context = super(FrameDetail, self).get_context_data(**kwargs)
context["detection_list"] = Region.objects.all().filter(frame_index=self.object.frame_index,
video_id=self.object.video_id,
region_type=Region.DETECTION)
context["annotation_list"] = Region.objects.all().filter(frame_index=self.object.frame_index,
video_id=self.object.video_id,
region_type=Region.ANNOTATION)
context["video"] = self.object.video
After Change
def get_context_data(self, **kwargs):
context = super(FrameDetail, self).get_context_data(**kwargs)
context["detection_list"] = models.Region.objects.all().filter(frame_index=self.object.frame_index,
video_id=self.object.video_id,
region_type=models.Region.DETECTION)
context["annotation_list"] = models.Region.objects.all().filter(frame_index=self.object.frame_index,
video_id=self.object.video_id,
region_type=models.Region.ANNOTATION)
context["video"] = self.object.video
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 7c28a775bcb81b62a7fbcfddb3949634e58e42e0
Time: 2018-08-19
Author: akshayubhat@gmail.com
File Name: server/dvaui/views.py
Class Name: FrameDetail
Method Name: get_context_data
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 7c28a775bcb81b62a7fbcfddb3949634e58e42e0
Time: 2018-08-19
Author: akshayubhat@gmail.com
File Name: server/dvaui/views.py
Class Name: VisualSearchDetail
Method Name: get_context_data
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 7c28a775bcb81b62a7fbcfddb3949634e58e42e0
Time: 2018-08-19
Author: akshayubhat@gmail.com
File Name: server/dvaui/views.py
Class Name: ProcessDetail
Method Name: get_context_data