<commit_before>/** *****
 *
 *
 *  Hey there. Glad you found your way here. Please be sure to alphabetize your constants.
 *
 *
 ****** */

export const AUDIO = 'audio';
export const AUDIO_BANDWIDTH_LIMIT = '64000';
export const AUDIOINPUT = 'audioinput';
export const ALTERNATE_REDIRECT_TRUE = 'alternateRedirect=true';
export const ANSWER = 'ANSWER';

export const CALL = 'call';
export const CONFLICT = 'CONFLICT';
export const CONVERSATION_URL = 'CONVERSATION_URL';
export const CONVERSATIONS = 'conversations';
export const CALENDAR = 'calendar';
export const CALENDAR_EVENTS_API = 'calendarEvents';
export const CMR_MEETINGS = 'cmrmeetings';
export const CLAIM = 'claim';

export const DEVELOPMENT = 'development';

export const ERROR = 'ERROR';

export const GET = 'GET';

export const HECATE = 'hecate';

export const IDLE = 'IDLE';
export const ICE_TIMEOUT = 1000;

export const LEAVE = 'leave';
export const LOCAL = 'local';
export const LOCI = 'loci';
export const LOCUS = 'locus';
export const LOCUS_ID = 'LOCUS_ID';

export const MEETING_LINK = 'MEETING_LINK';
export const MEETINGS = 'Meetings';
export const MEETING_ID = 'MEETING_ID';
export const MEETINGINFO = 'meetingInfo';
export const MEDIA_SIP_URI = 'MEDIA_SIP_URI';
export const MEDIA = 'media';

export const ONE_ON_ONE = 'ONE_ON_ONE';
export const OFFER = 'OFFER';

export const PARTICIPANT = 'participant';
export const PERSONAL_ROOM = 'PERSONAL_ROOM';
export const PUT = 'PUT';
export const POST = 'POST';

export const RETRY_TIMEOUT = 3000;
export const REMOTE = 'remote';
export const REQUESTED = 'REQUESTED';
export const _ANSWER_ = 'answer';
export const _ERROR_ = 'error';
export const _DATA_ = 'data';
export const _CLOSED_ = 'closed';
export const RTC_CONFIGURATION_FIREFOX = {iceServers: [], bundlePolicy: 'max-compat'};
export const RTC_CONFIGURATION = {iceServers: []};

export const SIP_URI = 'SIP_URI';

export const TEMP_SIP_URI = 'TEMP_SIP_URI';
export const TYPE = 'type';

export const USE_URI_LOOKUP_FALSE = 'useUriLookup=false';

export const VALID_PMR_ADDRESS = /([a-z0-9][-a-z0-9, '.']{0,62})@([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com/i;
export const VALID_PMR_LINK = /(https:\/\/)?([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com\/(meet|join)\/([a-z0-9][-a-z0-9, '.']{0,62})\/?/i;
export const VALID_PIN = /([0-9]{4,6})/;
export const VIDEO = 'video';
export const VIDEO_BANDWIDTH_LIMIT = '4000000';
export const VIDEOINPUT = 'videoinput';

export const WEBEX_DOT_COM = 'webex.com';

export const DIALER_REGEX = {
  // modified from https://github.com/kirm/sip.js base
  // and with https://tools.ietf.org/html/rfc3261
  // requires the @ symbol
  SIP_ADDRESS: /^(sips?)?:?(?:([^\s>:@]+)(?::([^\s@>]+))?@)([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/,
  // standard telephony num regex
  PHONE_NUMBER: /^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/
};

export const CALENDAR_EVENTS = {
  CREATE: 'event:calendar.meeting.create',
  UPDATE: 'event:calendar.meeting.update',
  CREATE_MINIMAL: 'event:calendar.meeting.create.minimal',
  UPDATE_MINIMAL: 'event:calendar.meeting.update.minimal',
  DELETE: 'event:calendar.meeting.delete'
};

export const FLOOR_ACTION = {
  GRANTED: 'GRANTED',
  RELEASED: 'RELEASED'
};

export const MEETING_STATE_MACHINE = {
  TRANSITIONS: {
    ERROR: 'error',
    START: 'start',
    JOIN: 'join',
    JOINED: 'joined',
    LOCAL: 'local',
    CONNECT: 'connect',
    ESTABLISH: 'establish',
    LEAVE: 'leave',
    END: 'end',
    CLEAN: 'clean'
  },
  STATES: {
    IDLE: 'IDLE',
    INCOMING: 'INCOMING',
    DIALING: 'DIALING',
    ON_GOING: 'ON_GOING',
    CONNECTING_MEDIA_LOCAL: 'CONNECTING_MEDIA_LOCAL',
    CONNECTING_MEDIA_REMOTE: 'CONNECTING_MEDIA_REMOTE',
    ESTABLISHED_MEDIA: 'ESTABLISHED_MEDIA',
    TERMINATING: 'TERMINATING',
    ENDED: 'ENDED',
    ERROR: 'ERROR'
  }
};

export const EVENT_TRIGGERS = {
  MEDIA_AUDIO_CHANGED: 'media:audioChanged',
  MEDIA_VIDEO_CHANGED: 'media:videoChanged',
  MEDIA_READY: 'media:ready',
  MEDIA_STOPPED: 'media:stopped',
  MEDIA_UPDATE: 'media:update',
  STATS_UPDATE: 'stats:update'
};

export const EVENT_STATS_MAP = {
  BYTES_SENT: 'bytesSent',
  BYTES_RECEIVED: 'bytesReceived'
};

export const EVENT_TYPES = {
  SELF: 'self',
  OTHER: 'other',
  LOCAL: 'local',
  REMOTE: 'remote',
  REMOTE_SHARE: 'localShare',
  LOCAL_SHARE: 'remoteShare',
  ERROR: 'error'
};

export const MEETING_AUDIO_STATE_MACHINE = {
  TRANSITIONS: {<commit_msg>fix: updated the event<commit_after>/** *****
 *
 *
 *  Hey there. Glad you found your way here. Please be sure to alphabetize your constants.
 *
 *
 ****** */

export const AUDIO = 'audio';
export const AUDIO_BANDWIDTH_LIMIT = '64000';
export const AUDIOINPUT = 'audioinput';
export const ALTERNATE_REDIRECT_TRUE = 'alternateRedirect=true';
export const ANSWER = 'ANSWER';

export const CALL = 'call';
export const CONFLICT = 'CONFLICT';
export const CONVERSATION_URL = 'CONVERSATION_URL';
export const CONVERSATIONS = 'conversations';
export const CALENDAR = 'calendar';
export const CALENDAR_EVENTS_API = 'calendarEvents';
export const CMR_MEETINGS = 'cmrmeetings';
export const CLAIM = 'claim';

export const DEVELOPMENT = 'development';

export const ERROR = 'ERROR';

export const GET = 'GET';

export const HECATE = 'hecate';

export const IDLE = 'IDLE';
export const ICE_TIMEOUT = 1000;

export const LEAVE = 'leave';
export const LOCAL = 'local';
export const LOCI = 'loci';
export const LOCUS = 'locus';
export const LOCUS_ID = 'LOCUS_ID';

export const MEETING_LINK = 'MEETING_LINK';
export const MEETINGS = 'Meetings';
export const MEETING_ID = 'MEETING_ID';
export const MEETINGINFO = 'meetingInfo';
export const MEDIA_SIP_URI = 'MEDIA_SIP_URI';
export const MEDIA = 'media';

export const ONE_ON_ONE = 'ONE_ON_ONE';
export const OFFER = 'OFFER';

export const PARTICIPANT = 'participant';
export const PERSONAL_ROOM = 'PERSONAL_ROOM';
export const PUT = 'PUT';
export const POST = 'POST';

export const RETRY_TIMEOUT = 3000;
export const REMOTE = 'remote';
export const REQUESTED = 'REQUESTED';
export const _ANSWER_ = 'answer';
export const _ERROR_ = 'error';
export const _DATA_ = 'data';
export const _CLOSED_ = 'closed';
export const RTC_CONFIGURATION_FIREFOX = {iceServers: [], bundlePolicy: 'max-compat'};
export const RTC_CONFIGURATION = {iceServers: []};

export const SIP_URI = 'SIP_URI';

export const TEMP_SIP_URI = 'TEMP_SIP_URI';
export const TYPE = 'type';

export const USE_URI_LOOKUP_FALSE = 'useUriLookup=false';

export const VALID_PMR_ADDRESS = /([a-z0-9][-a-z0-9, '.']{0,62})@([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com/i;
export const VALID_PMR_LINK = /(https:\/\/)?([a-z0-9][-a-z0-9, '.']{0,62})\.webex\.com\/(meet|join)\/([a-z0-9][-a-z0-9, '.']{0,62})\/?/i;
export const VALID_PIN = /([0-9]{4,6})/;
export const VIDEO = 'video';
export const VIDEO_BANDWIDTH_LIMIT = '4000000';
export const VIDEOINPUT = 'videoinput';

export const WEBEX_DOT_COM = 'webex.com';

export const DIALER_REGEX = {
  // modified from https://github.com/kirm/sip.js base
  // and with https://tools.ietf.org/html/rfc3261
  // requires the @ symbol
  SIP_ADDRESS: /^(sips?)?:?(?:([^\s>:@]+)(?::([^\s@>]+))?@)([\w\-.]+)(?::(\d+))?((?:;[^\s=?>;]+(?:=[^\s?;]+)?)*)(?:\?(([^\s&=>]+=[^\s&=>]+)(&[^\s&=>]+=[^\s&=>]+)*))?$/,
  // standard telephony num regex
  PHONE_NUMBER: /^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/
};

export const CALENDAR_EVENTS = {
  CREATE: 'event:calendar.meeting.create',
  UPDATE: 'event:calendar.meeting.update',
  CREATE_MINIMAL: 'event:calendar.meeting.create.minimal',
  UPDATE_MINIMAL: 'event:calendar.meeting.update.minimal',
  DELETE: 'event:calendar.meeting.delete'
};

export const FLOOR_ACTION = {
  GRANTED: 'GRANTED',
  RELEASED: 'RELEASED'
};

export const MEETING_STATE_MACHINE = {
  TRANSITIONS: {
    ERROR: 'error',
    START: 'start',
    JOIN: 'join',
    JOINED: 'joined',
    LOCAL: 'local',
    CONNECT: 'connect',
    ESTABLISH: 'establish',
    LEAVE: 'leave',
    END: 'end',
    CLEAN: 'clean'
  },
  STATES: {
    IDLE: 'IDLE',
    INCOMING: 'INCOMING',
    DIALING: 'DIALING',
    ON_GOING: 'ON_GOING',
    CONNECTING_MEDIA_LOCAL: 'CONNECTING_MEDIA_LOCAL',
    CONNECTING_MEDIA_REMOTE: 'CONNECTING_MEDIA_REMOTE',
    ESTABLISHED_MEDIA: 'ESTABLISHED_MEDIA',
    TERMINATING: 'TERMINATING',
    ENDED: 'ENDED',
    ERROR: 'ERROR'
  }
};

export const LOCUSEVENT = {
  // update the tp unit status
  CONTROLS_UPDATED: 'locus.controls_updated',

  // delta events
  DIFFERENCE: 'locus.difference',

  // screen sharing
  FLOOR_GRANTED: 'locus.floor_granted',
  FLOOR_RELEASED: 'locus.floor_released',

  // Roap
  MESSAGE_ROAP: 'locus.message.roap',

  // Join events
  PARTICIPANT_JOIN: 'locus.participant_joined',
  PARTICIPANT_LEFT: 'locus.participant_left',
  PARTICIPANT_DECLINED: 'locus.participant_declined',
  PARTICIPANT_UPDATED: 'locus.participant_updated',
  PARTICIPANT_CONTROLS_UPDATED: 'locus.participant_controls_updated',
  PARTICIPANT_ROLES_UPDATED: 'locus.participant_roles_updated',
  PARTICIPANT_AUDIO_MUTED: 'locus.participant_audio_muted',
  PARTICIPANT_AUDIO_UNMUTED: 'locus.participant_audio_unmuted',
  PARTICIPANT_VIDEO_MUTED: 'locus.participant_video_muted',
  PARTICIPANT_VIDE_UNMUTED: 'locus.participant_video_unmuted',

  RECORDING_STARTED: 'locus.recording_started',
  RECORDING_START_FAILED: 'locus.recording_start_failed',
  RECORDING_STOPPED: 'locus.recording_stopped',

  SELF_CHANGED: 'locus.self_changed'
};

export const EVENT_TRIGGERS = {
  MEDIA_AUDIO_CHANGED: 'media:audioChanged',
  MEDIA_VIDEO_CHANGED: 'media:videoChanged',
  MEDIA_READY: 'media:ready',
  MEDIA_STOPPED: 'media:stopped',
  MEDIA_UPDATE: 'media:update',
  STATS_UPDATE: 'stats:update'
};

export const EVENT_STATS_MAP = {
  BYTES_SENT: 'bytesSent',
  BYTES_RECEIVED: 'bytesReceived'
};

export const EVENT_TYPES = {
  SELF: 'self',
  OTHER: 'other',
  LOCAL: 'local',
  REMOTE: 'remote',
  REMOTE_SHARE: 'localShare',
  LOCAL_SHARE: 'remoteShare',
  ERROR: 'error'
};

export const MEETING_AUDIO_STATE_MACHINE = {
  TRANSITIONS: {
{'fraction_non_alphanumeric': 0.18773181169757489, 'fraction_numerical': 0.022444127436994768, 'mean_word_length': 4.995438996579248, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 4, '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': '2890702', 'n_tokens_mistral': 4446, 'n_tokens_neox': 4224, 'n_words': 806}