<commit_before>ENUMS =

  PLATFORM:
    ANDROID: 0
    IOS: 1
    WINDOWS: 2
    BLACKBERRY: 3
    FIREFOX: 4

  RISK:
    NONE: 0
    LOW: 1
    MEDIUM: 2
    HIGH: 3

  ANALYSIS:
    ERROR: 0
    WAITING: 1
    RUNNING: 2
    COMPLETED: 3

  OFFER:
    NONE: 0
    CUSTOM: 2

  NOTIFY:
    INFO: 0
    SUCCESS: 2
    WARNING: 3
    ALERT: 4
    ERROR: 5

  DYNAMIC_STATUS:
    NONE: 0
    BOOTING: 1
    READY: 2
    SHUTTING_DOWN: 3

  MANUAL:
    NONE: 0
    REQUESTED: 1
    ASSESSING: 2
    DONE: 3

  COLLABORATION_ROLE:
    ADMIN: 0
    MANAGER: 1
    READ_ONLY: 2

  SUBMISSION_STATUS:
    DOWNLOAD_PREPARE: 0
    DOWNLOADING: 1
    DOWNLOAD_FAILED: 2
    VALIDATE_PREPARE: 3
    VALIDATING: 4
    VALIDATE_FAILED: 5
    ANALYZE_PREPARE: 6
    ANALYZING: 7

  SUBMISSION_SOURCE:
    UPLOAD: 0
    STORE: 1
    SCM: 2

  VULNERABILITY_TYPE:
    STATIC: 1
    DYNAMIC: 2
    MANUAL: 3

  PAYMENT_DURATION:
    MONTHLY: 1
    QUATERLY: 3
    HALFYEARLY: 6
    YEARLY: 10


# Populate `CHOICES`
for enumName, enumValues of ENUMS
  choices = []
  values = []
  enumValues['UNKNOWN'] = -1
  for key, value of enumValues
    choices.push {key: key, value: value}
    values.push value
  ENUMS[enumName]['CHOICES'] = choices
  ENUMS[enumName]['VALUES'] = values

`export default ENUMS;`
<commit_msg>enhance: add dynamic status enums<commit_after>ENUMS =

  PLATFORM:
    ANDROID: 0
    IOS: 1
    WINDOWS: 2
    BLACKBERRY: 3
    FIREFOX: 4

  RISK:
    NONE: 0
    LOW: 1
    MEDIUM: 2
    HIGH: 3

  ANALYSIS:
    ERROR: 0
    WAITING: 1
    RUNNING: 2
    COMPLETED: 3

  OFFER:
    NONE: 0
    CUSTOM: 2

  NOTIFY:
    INFO: 0
    SUCCESS: 2
    WARNING: 3
    ALERT: 4
    ERROR: 5

  DYNAMIC_STATUS:
    NONE: 0
    BOOTING: 1
    READY: 2
    SHUTTING_DOWN: 3
    DOWNLOADING: 4
    INSTALLING: 5
    LAUNCHING: 6
    HOOKING: 7

  MANUAL:
    NONE: 0
    REQUESTED: 1
    ASSESSING: 2
    DONE: 3

  COLLABORATION_ROLE:
    ADMIN: 0
    MANAGER: 1
    READ_ONLY: 2

  SUBMISSION_STATUS:
    DOWNLOAD_PREPARE: 0
    DOWNLOADING: 1
    DOWNLOAD_FAILED: 2
    VALIDATE_PREPARE: 3
    VALIDATING: 4
    VALIDATE_FAILED: 5
    ANALYZE_PREPARE: 6
    ANALYZING: 7

  SUBMISSION_SOURCE:
    UPLOAD: 0
    STORE: 1
    SCM: 2

  VULNERABILITY_TYPE:
    STATIC: 1
    DYNAMIC: 2
    MANUAL: 3

  PAYMENT_DURATION:
    MONTHLY: 1
    QUATERLY: 3
    HALFYEARLY: 6
    YEARLY: 10


# Populate `CHOICES`
for enumName, enumValues of ENUMS
  choices = []
  values = []
  enumValues['UNKNOWN'] = -1
  for key, value of enumValues
    choices.push {key: key, value: value}
    values.push value
  ENUMS[enumName]['CHOICES'] = choices
  ENUMS[enumName]['VALUES'] = values

`export default ENUMS;`

{'fraction_non_alphanumeric': 0.08069914466344366, 'fraction_numerical': 0.039419858683525474, 'mean_word_length': 2.1834319526627217, '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': '605717', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1125, 'n_words': 294}