<commit_before>package org.mwc.debrief.dis.diagnostics.file;

import org.mwc.debrief.dis.listeners.IDISEventListener;
import org.mwc.debrief.dis.listeners.impl.DebriefEventListener;

public class EventFileListener extends CoreFileListener implements
    IDISEventListener
{

  public EventFileListener(String root, boolean toFile, boolean toScreen)
  {
    super(root, toFile, toScreen, "event", "time, exerciseId, entityId, name, eventType, eventName, message");
  }

  @Override
  public void add(long time, short exerciseId, long id, String hisName, int eventType, String message)
  {
    String eventName = DebriefEventListener.eventTypeFor(eventType);
    
    // create the line
    StringBuffer out = new StringBuffer();
    out.append(time);
    out.append(", ");
    out.append(exerciseId);
    out.append(", ");
    out.append(id);
    out.append(", ");
    out.append(hisName);
    out.append(", ");
    out.append(eventType);
    out.append(", ");
    out.append(eventName);
    out.append(", ");
    out.append(message);
    out.append(LINE_BREAK);

    // done, write it
    write(out.toString());<commit_msg>clarify entity name for event<commit_after>package org.mwc.debrief.dis.diagnostics.file;

import org.mwc.debrief.dis.listeners.IDISEventListener;
import org.mwc.debrief.dis.listeners.impl.DebriefEventListener;

public class EventFileListener extends CoreFileListener implements
    IDISEventListener
{

  public EventFileListener(String root, boolean toFile, boolean toScreen)
  {
    super(root, toFile, toScreen, "event", "time, exerciseId, entityId, entityName, eventType, eventName, message");
  }

  @Override
  public void add(long time, short exerciseId, long id, String hisName, int eventType, String message)
  {
    String eventName = DebriefEventListener.eventTypeFor(eventType);
    
    // create the line
    StringBuffer out = new StringBuffer();
    out.append(time);
    out.append(", ");
    out.append(exerciseId);
    out.append(", ");
    out.append(id);
    out.append(", ");
    out.append(hisName);
    out.append(", ");
    out.append(eventType);
    out.append(", ");
    out.append(eventName);
    out.append(", ");
    out.append(message);
    out.append(LINE_BREAK);

    // done, write it
    write(out.toString());
{'fraction_non_alphanumeric': 0.13139329805996472, 'fraction_numerical': 0.0, 'mean_word_length': 3.900647948164147, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4267807', 'n_tokens_mistral': 706, 'n_tokens_neox': 697, 'n_words': 151}