f25740fd4548273a3b1aebb5cfdc0a18a55c9d23,server/dvaapp/serializers.py,VideoImporter,bulk_import_region_relations,#VideoImporter#Any#,543
Before Change
for i, f in enumerate(region_relation_list_json):
region_relations.append(self.create_region_relation(f))
region_relations_index_to_fid[i] = f["id"]
bulk_rr = RegionRelation.objects.bulk_create(region_relations)
for i, k in enumerate(bulk_rr):
self.region_relation_to_pk[region_relations_index_to_fid[i]] = k.id
def create_region(self, a):
da = Region()
da.video_id = self.video.pk
da.x = a["x"]
After Change
for i, f in enumerate(region_relation_list_json):
region_relations.append(self.create_region_relation(f))
region_relations_index_to_fid[i] = f["id"]
RegionRelation.objects.bulk_create(region_relations)
def create_region(self, a):
da = Region()
da.video_id = self.video.pk
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: f25740fd4548273a3b1aebb5cfdc0a18a55c9d23
Time: 2018-06-30
Author: akshayubhat@gmail.com
File Name: server/dvaapp/serializers.py
Class Name: VideoImporter
Method Name: bulk_import_region_relations
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: f25740fd4548273a3b1aebb5cfdc0a18a55c9d23
Time: 2018-06-30
Author: akshayubhat@gmail.com
File Name: server/dvaapp/serializers.py
Class Name: VideoImporter
Method Name: bulk_import_region_relations
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: c24cecb1de3112e6d6d964b26c00e817c29efb61
Time: 2018-07-01
Author: akshayubhat@gmail.com
File Name: server/dvaapp/serializers.py
Class Name: VideoImporter
Method Name: bulk_import_frames
Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: f25740fd4548273a3b1aebb5cfdc0a18a55c9d23
Time: 2018-06-30
Author: akshayubhat@gmail.com
File Name: server/dvaapp/serializers.py
Class Name: VideoImporter
Method Name: bulk_import_regions