<commit_before>import Promise from 'bluebird'
import {savePools, addPlayerIdsToPool} from 'src/server/db/pool'
import {flatten} from 'src/common/util'
import {shuffle, range} from 'src/server/util'
import getActivePlayersInChapter from 'src/server/actions/getActivePlayersInChapter'

const MAX_POOL_SIZE = 15
/* eslint-disable key-spacing */
const LEVELS = [
  {level: 0, xp:    0, elo:    0},
  {level: 1, xp:    0, elo:  900},
  {level: 2, xp:  150, elo: 1000},
  {level: 3, xp:  500, elo: 1050},
  {level: 4, xp:  750, elo: 1100},
  {level: 5, xp: 1000, elo: 1150},
]
/* eslint-enable key-spacing */
const LEVELS_DESC = LEVELS.slice().reverse()

const POOL_NAMES = [
  'Red',
  'Orange',
  'Yellow',
  'Green',
  'Blue',
  'Indigo',
  'Violet',
  'Black',
  'White',
  'Silver',<commit_msg>changing ELO threshold between level 0 and 1<commit_after>import Promise from 'bluebird'
import {savePools, addPlayerIdsToPool} from 'src/server/db/pool'
import {flatten} from 'src/common/util'
import {shuffle, range} from 'src/server/util'
import getActivePlayersInChapter from 'src/server/actions/getActivePlayersInChapter'

const MAX_POOL_SIZE = 15
/* eslint-disable key-spacing */
const LEVELS = [
  {level: 0, xp:    0, elo:    0},
  {level: 1, xp:    0, elo:  850},
  {level: 2, xp:  150, elo: 1000},
  {level: 3, xp:  500, elo: 1050},
  {level: 4, xp:  750, elo: 1100},
  {level: 5, xp: 1000, elo: 1150},
]
/* eslint-enable key-spacing */
const LEVELS_DESC = LEVELS.slice().reverse()

const POOL_NAMES = [
  'Red',
  'Orange',
  'Yellow',
  'Green',
  'Blue',
  'Indigo',
  'Violet',
  'Black',
  'White',
  'Silver',
{'fraction_non_alphanumeric': 0.16573902288188003, 'fraction_numerical': 0.05442176870748299, 'mean_word_length': 3.96319018404908, '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': '6423069', 'n_tokens_mistral': 739, 'n_tokens_neox': 654, 'n_words': 170}