<commit_before>import assign from 'object-assign'

// turns a string of words into an object of { WORD: number }
const enumish = (list, start = 0) => list.split(' ')
  .reduce((o, name, i) => assign(o, { [name]: start + i }), {})

export const ROLE = assign(enumish('NONE DJ BOUNCER MANAGER COHOST HOST')
                          , { AMBASSADOR: 3, ADMIN: 5 })

export const MEDIA_SOURCE = enumish('YOUTUBE SOUNDCLOUD', 1)

export const BAN_DURATION = { HOUR: 'h', DAY: 'd', PERMA: 'f' }
export const BAN_REASON =
  enumish('SPAMMING VERBAL_ABUSE OFFENSIVE_PLAYS GENRE ATTITUDE', 1)

export const MUTE_DURATION = { SHORT: 's', MEDIUM: 'm', LONG: 'l' }
export const MUTE_REASON =
  enumish('VIOLATING_RULES VERBAL_ABUSE SPAMMING LANGUAGE ATTITUDE', 1)<commit_msg>uncleverisationise constants definitions<commit_after>export const ROLE = {
  NONE: 0,
  DJ: 1,
  BOUNCER: 2,
  MANAGER: 3,
  COHOST: 4,
  HOST: 5,

  AMBASSADOR: 3,
  ADMIN: 5
}

export const MEDIA_SOURCE = {
  YOUTUBE: 1,
  SOUNDCLOUD: 2
}

export const BAN_DURATION = {
  HOUR: 'h',
  DAY: 'd',
  PERMA: 'f'
}

export const BAN_REASON = {
  SPAMMING: 1,
  VERBAL_ABUSE: 2,
  OFFENSIVE_PLAYS: 3,
  GENRE: 4,
  ATTITUDE: 5
}

export const MUTE_DURATION = {
  SHORT: 's',
  MEDIUM: 'm',
  LONG: 'l'
}

export const MUTE_REASON = {
  VIOLATING_RULES: 1,
  VERBAL_ABUSE: 2,
  SPAMMING: 3,
  LANGUAGE: 4,
  ATTITUDE: 5
}
{'fraction_non_alphanumeric': 0.1318840579710145, 'fraction_numerical': 0.01884057971014493, 'mean_word_length': 3.6498316498316496, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5956843', 'n_tokens_mistral': 647, 'n_tokens_neox': 592, 'n_words': 154}