docs: def get_events_in_both_arrays(events_one, events_two):
      """
      Calculates the events that exist in both arrays.
  
      """
      events_one = np.ascontiguousarray(events_one)  # change memory alignement for c++ library
      events_two = np.ascontiguousarray(events_two)  # change memory alignement for c++ library
      event_result = np.empty_like(events_one)
      count = analysis_functions.get_events_in_both_arrays(events_one, events_two, event_result)
      return event_result[:count]