4376bbf4f85f9771b0e3752ccf9504efb4e43d21,lib/alignments.py,Alignments,hashes_to_frame,#Alignments#,63
Before Change
def hashes_to_frame(self):
Return a dict of each face_hash with their parent
frame name and their index in the frame
return{face["hash"]: (frame_name, idx)
for frame_name, faces in self.data.items()
for idx, face in enumerate(faces)}
// << INIT FUNCTIONS >> //
@staticmethod
After Change
hash_faces = dict()
for frame_name, faces in self.data.items():
for idx, face in enumerate(faces):
hash_faces.setdefault(face["hash"], dict())[frame_name] = idx
return hash_faces
// << INIT FUNCTIONS >> //
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: deepfakes/faceswap
Commit Name: 4376bbf4f85f9771b0e3752ccf9504efb4e43d21
Time: 2019-01-22
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/alignments.py
Class Name: Alignments
Method Name: hashes_to_frame
Project Name: pantsbuild/pants
Commit Name: 595799cb641c6514eccd4b6908cfaf4426c5a389
Time: 2015-10-23
Author: john.sirois@gmail.com
File Name: src/python/pants/engine/exp/configuration.py
Class Name: Configuration
Method Name: create
Project Name: minerva-ml/open-solution-data-science-bowl-2018
Commit Name: 1c1914df24c211aea45b42146940c9a7b770cbee
Time: 2018-07-19
Author: kamil.kaczmarek@neptune.ml
File Name: steps/preprocessing.py
Class Name: ImageReader
Method Name: transform
Project Name: pantsbuild/pants
Commit Name: 3da21654658be16375f3723409265755519d7b8e
Time: 2019-02-18
Author: tyurina.katty@yandex.ru
File Name: src/python/pants/goal/pantsd_stats.py
Class Name: PantsDaemonStats
Method Name: get_all