<commit_before>export default function run(simulation) {
  while (
    simulation.getState().currentEventIndex <
    simulation.getState().timeline.length
  ) {
    const currentEventIndex = simulation.getState().currentEventIndex;
    const timeline = simulation.getState().timeline;
    const currentEvent = timeline[currentEventIndex];
    simulation.dispatch(currentEvent);
    simulation.dispatch({ type: 'LOG_ACTOR_HISTORIES' });
    simulation.dispatch({ type: 'INCREMENT_CURRENT_EVENT_INDEX' });
  }
}<commit_msg>Add time to log-actor & increment-index events<commit_after>export default function run(simulation) {
  while (
    simulation.getState().currentEventIndex <
    simulation.getState().timeline.length
  ) {
    const currentEventIndex = simulation.getState().currentEventIndex;
    const timeline = simulation.getState().timeline;
    const currentEvent = timeline[currentEventIndex];
    const currentTime = currentEvent.time;
    const logEvent = { type: 'LOG_ACTOR_HISTORIES', time: currentTime };
    const incrementEventIndexEvent = {
      type: 'INCREMENT_CURRENT_EVENT_INDEX', time: currentTime,
    };
    simulation.dispatch(currentEvent);
    simulation.dispatch(logEvent);
    simulation.dispatch(incrementEventIndexEvent);
  }
}
{'fraction_non_alphanumeric': 0.10547184773988898, 'fraction_numerical': 0.0, 'mean_word_length': 4.842592592592593, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1614496', 'n_tokens_mistral': 348, 'n_tokens_neox': 352, 'n_words': 62}