<commit_before>export interface CoreEvents {
  CHANNEL_CREATED: string;
  GET_CURRENT_STORY: string;
  SET_CURRENT_STORY: string;
  GET_STORIES: string;
  SET_STORIES: string;
  SELECT_STORY: string;
  APPLY_SHORTCUT: string;
  STORY_ADDED: string;
  FORCE_RE_RENDER: string;
  REGISTER_SUBSCRIPTION: string;
  STORY_RENDERED: string;
  STORY_ERRORED: string;
  STORY_THREW_EXCEPTION: string;
}

const events: CoreEvents = {
  CHANNEL_CREATED: 'channelCreated',
  GET_CURRENT_STORY: 'getCurrentStory',
  SET_CURRENT_STORY: 'setCurrentStory',
  GET_STORIES: 'getStories',
  SET_STORIES: 'setStories',
  SELECT_STORY: 'selectStory',
  APPLY_SHORTCUT: 'applyShortcut',
  STORY_ADDED: 'storyAdded',
  FORCE_RE_RENDER: 'forceReRender',
  REGISTER_SUBSCRIPTION: 'registerSubscription',
  STORY_RENDERED: 'storyRendered',
  STORY_ERRORED: 'storyErrored',
  STORY_THREW_EXCEPTION: 'storyThrewException',
};

export default events;<commit_msg>Use an enum instead of an interface for core events<commit_after>enum events {
  CHANNEL_CREATED = 'channelCreated',
  GET_CURRENT_STORY = 'getCurrentStory',
  SET_CURRENT_STORY = 'setCurrentStory',
  GET_STORIES = 'getStories',
  SET_STORIES = 'setStories',
  SELECT_STORY = 'selectStory',
  APPLY_SHORTCUT = 'applyShortcut',
  STORY_ADDED = 'storyAdded',
  FORCE_RE_RENDER = 'forceReRender',
  REGISTER_SUBSCRIPTION = 'registerSubscription',
  STORY_RENDERED = 'storyRendered',
  STORY_ERRORED = 'storyErrored',
  STORY_THREW_EXCEPTION = 'storyThrewException',
}

export default events;
{'fraction_non_alphanumeric': 0.09658344283837056, 'fraction_numerical': 0.0, 'mean_word_length': 6.577114427860696, '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': '4011865', 'n_tokens_mistral': 583, 'n_tokens_neox': 562, 'n_words': 100}