parameters: (self)
return_statement: return history
docstring: Gets the history of collisions
docstring_summary: Gets the history of collisions
docstring_tokens: Gets the history of collisions
function: def get_collision_history(self):
          """Gets the history of collisions"""
          history = collections.defaultdict(int)
          for frame, intensity in self.history:
              history[frame] += intensity
          return history
function_tokens: def get_collision_history ( self ) : history = collections . defaultdict ( int ) for frame , intensity in self . history : history [ frame ] += intensity return history