<commit_before>import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  history: [],
  picks: [],
  players: [],
  settings: {
    app: {
      domes: ['ARI', 'ATL', 'DAL', 'DET', 'HOU', 'IND', 'MIN', 'NOS'],
      draftOrderTypes: {
        'random': 'ran',
        'sequential': 'seq',
        'serpentine': 'ser'
      },
      positions: [
        { key: 'QB', name: 'QB', category: 'Offense', order: 1 },
        { key: 'RB', name: 'RB', category: 'Offense', order: 2 },
        { key: 'WR', name: 'WR', category: 'Offense', order: 3 },
        { key: 'TE', name: 'TE', category: 'Offense', order: 4 },
        { key: 'DE', name: 'Defensive End', category: 'Defense', order: 5 },
        { key: 'DT', name: 'Defensive Tackle', category: 'Defense', order: 6 },
        { key: 'LB', name: 'Linebacker', category: 'Defense', order: 7 },
        { key: 'CB', name: 'Cornerback', category: 'Defense', order: 8 },
        { key: 'S', name: 'Safety', category: 'Defense', order: 9 },
        { key: 'Off', name: 'Offense', category: 'Team', order: 10 },
        { key: 'Def', name: 'Defense/Special Teams', category: 'Team', order: 11 },
        { key: 'TMQB', name: 'Team QB', category: 'Team', order: 12 },
        { key: 'TMRB', name: 'Team RB', category: 'Team', order: 13 },
        { key: 'TMWR', name: 'Team WR', category: 'Team', order: 14 },
        { key: 'TMTE', name: 'Team TE', category: 'Team', order: 15 },
        { key: 'TMDL', name: 'Team Defensive Line', category: 'Team', order: 16 },
        { key: 'TMLB', name: 'Team Linebackers', category: 'Team', order: 17 },
        { key: 'TMDB', name: 'Team Defensive Backs', category: 'Team', order: 18 },
        { key: 'TMPK', name: 'Team Place Kicker', category: 'Team', order: 19 },
        { key: 'TMPN', name: 'Team Punter', category: 'Team', order: 20 },
        { key: 'ST', name: 'Special Teams', category: 'Other', order: 21 },
        { key: 'PK', name: 'Kicker', category: 'Other', order: 22 },
        { key: 'PN', name: 'Punter', category: 'Other', order: 23 },
        { key: 'Coach', name: 'Coach', category: 'Other', order: 24 },
        { key: 'XX', name: 'Unknown', order: 25 }
      ]
    },
    /*
      Family settings
    */
    league: {
      draftOrderType: 'ser',
      keepers: false,
      positions: [
        { key: 'QB', min: 2, max: 4 },
        { key: 'RB', min: 2, max: 6 },
        { key: 'WR', min: 2, max: 6 },
        { key: 'TE', min: 1, max: 6 },
        { key: 'PK', min: 1, max: 3 },
        { key: 'Def', min: 1, max: 3 }
      ],
      rosterSize: 18,
      secondsPerPick: 0,
      teams: [
        { name: 'Team Matt', owner: '<NAME>', draftOrder: 1 },
        { name: 'Team Megan', owner: '<NAME>', draftOrder: 2 },
        { name: 'Team Amanda', owner: '<NAME>', draftOrder: 3 },
        { name: 'Team DadKos', owner: '<NAME>', draftOrder: 4 },
        { name: 'From <NAME>', owner: '<NAME>', draftOrder: 5, isUser: true },
        { name: '<NAME>', owner: '<NAME>', draftOrder: 6 },
        { name: '<NAME>', owner: '<NAME>', draftOrder: 7 },
        { name: '<NAME>', owner: '<NAME>', draftOrder: 8 }
      ]
    },
    team: {
      idealSize: [
        { positionKey: 'QB', count: 3 },
        { positionKey: 'RB', count: 5 },
        { positionKey: 'WR', count: 6 },
        { positionKey: 'TE', count: 2 },
        { positionKey: 'PK', count: 1 },
        { positionKey: 'Def', count: 1 }
      ],
      rankings: [],
      tags: [
        { name: 'avoid', players: ['2842', '6982', '7942', '9054', '9101', '9898', '10302', '10722', '11180', '11201', '11384', '11454', '11642', '11678', '11746', '12155', '13113', '13115', '13116', '13188'] },
        { name: 'handcuff', players: ['9087', '10300', '12626', '13138'] },
        { name: 'injuryprone', players: ['9054', '9693', '9823', '9902', '10695', '10722', '11248', '11670', '12151', '12186'] },
        { name: 'overpriced', players: ['8670', '9099', '9662', '9693', '9823', '11644'] },
        { name: 'target', players: ['0509', '0527', '7394', '7877', '8360', '8670', '8673', '9087', '9525', '9881', '9925', '10261', '10273', '10313', '10413', '10506', '10703', '10709', '11516', '11668', '11688', '11695', '12141', '12626', '13129'] }
      ],
      tiers: [
        { positionKey: 'QB', sizes: [3, 7, 3, 6, 6, 7] },
        { positionKey: 'RB', sizes: [] },
        { positionKey: 'WR', sizes: [] },
        { positionKey: 'TE', sizes: [1, 10] },
        { positionKey: 'PK', sizes: [] },
        { positionKey: 'Def', sizes: [4, 3] }
      ]
    }
    /*
      CTS settings
    */
    // league: {
    //   draftOrderType: 'ser',
    //   keepers: true,
    //   positions: [
    //     { key: 'QB', min: 1, max: 6 },
    //     { key: 'RB', min: 1, max: 6 },
    //     { key: 'WR', min: 1, max: 6 },
    //     { key: 'TE', min: 1, max: 6 },
    //     { key: 'PK', min: 1, max: 5 },
    //     { key: 'Def', min: 1, max: 5 }
    //   ]
    //   rosterSize: 11,
    //   secondsPerPick: 60,
    //   teams: [
    //     { name: 'Mark’s Team', owner: '<NAME>', draftOrder: 1, keeper: '10273' },
    //     { name: 'Team Evan', owner: '<NAME>', draftOrder: 2, keeper: '9988' },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 3, keeper: '7836', isUser: true },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 4, keeper: '10271' },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 5, keeper: '11679' },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 6, keeper: '10695' },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 7, keeper: '12171' },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 8, keeper: '12150' }
    //   ]
    // },
    // team: {
    //   idealSize: [
    //     { positionKey: 'QB', count: 3 },
    //     { positionKey: 'RB', count: 2 },
    //     { positionKey: 'WR', count: 2 },
    //     { positionKey: 'TE', count: 1 },
    //     { positionKey: 'PK', count: 1 },
    //     { positionKey: 'Def', count: 1 }
    //   ],
    //   rankings: [],
    //   tiers: [
    //     { positionKey: 'QB', sizes: [3, 7, 3, 6, 6, 7] },
    //     { positionKey: 'RB', sizes: [] },
    //     { positionKey: 'WR', sizes: [] },
    //     { positionKey: 'TE', sizes: [1] },
    //     { positionKey: 'PK', sizes: [] },
    //     { positionKey: 'Def', sizes: [] }
    //   ]
    // }

    /*
      Crossroads settings
    */
    // league: {
    //   draftOrderType: 'ser',
    //   positions: [
    //     { key: 'QB', min: 1, max: 4 },
    //     { key: 'RB', min: 1, max: 8 },
    //     { key: 'WR', min: 2, max: 8 },
    //     { key: 'TE', min: 1, max: 3 },
    //     { key: 'PK', min: 1, max: 3 },
    //     { key: 'Def', min: 1, max: 3 },
    //     { key: 'Coach', min: 1, max: 10 }
    //   ],
    //   rosterSize: 17,
    //   secondsPerPick: 60,
    //   teams: [
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 12 },
    //     { name: '’Aints -', owner: '<NAME>' draftOrder: 11 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 10, isUser: true },
    //     { name: '<NAME>.', owner: '<NAME>', draftOrder: 9 },
    //     { name: 'Buck stops here', owner: '<NAME>', draftOrder: 8 },
    //     { name: 'Small Arms Dealer', owner: '<NAME>', draftOrder: 7 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 6 },
    //     { name: 'Brown Mikes DeadBeat Bums', owner: '<NAME>',  draftOrder: 5 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 4 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 3 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 2 },
    //     { name: 'Crossroads Zealots', owner: '<NAME>', draftOrder: 1 }
    //   ]
    // },
    // team: {
    //   idealSize: [
    //     { positionKey: 'QB', count: 2 },
    //     { positionKey: 'RB', count: 4 },
    //     { positionKey: 'WR', count: 5 },
    //     { positionKey: 'TE', count: 2 },
    //     { positionKey: 'PK', count: 1 },
    //     { positionKey: 'Def', count: 2 },
    //     { positionKey: 'Coach', count: 1 }
    //   ]
    // }
  }
}

const mutations = {
  ADDPICK (state, pick) {
    state.picks.push(pick)
  },
  ADDSTATEENTRY (state, entry) {
    state.history.push(entry)
  },
  SETPLAYERS (state, players) {
    state.players = players
  },
  SETTEAMRANKINGS (state, rankings) {
    state.settings.team.rankings = rankings
  },
  UNDOLASTPICK (state) {
    state.picks.pop()
  },
  UNDOSTATEENTRY (state) {
    state.history.pop()
  },
  UPDATEKEEPERS (state, keeperPicks) {
    state.picks = keeperPicks
  }
}

export default new Vuex.Store({
  state,
  mutations
})
<commit_msg>CGI 2017 settings<commit_after>import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const state = {
  history: [],
  picks: [],
  players: [],
  settings: {
    app: {
      domes: ['ARI', 'ATL', 'DAL', 'DET', 'HOU', 'IND', 'MIN', 'NOS'],
      draftOrderTypes: {
        'random': 'ran',
        'sequential': 'seq',
        'serpentine': 'ser'
      },
      positions: [
        { key: 'QB', name: 'QB', category: 'Offense', order: 1 },
        { key: 'RB', name: 'RB', category: 'Offense', order: 2 },
        { key: 'WR', name: 'WR', category: 'Offense', order: 3 },
        { key: 'TE', name: 'TE', category: 'Offense', order: 4 },
        { key: 'DE', name: 'Defensive End', category: 'Defense', order: 5 },
        { key: 'DT', name: 'Defensive Tackle', category: 'Defense', order: 6 },
        { key: 'LB', name: 'Linebacker', category: 'Defense', order: 7 },
        { key: 'CB', name: 'Cornerback', category: 'Defense', order: 8 },
        { key: 'S', name: 'Safety', category: 'Defense', order: 9 },
        { key: 'Off', name: 'Offense', category: 'Team', order: 10 },
        { key: 'Def', name: 'Defense/Special Teams', category: 'Team', order: 11 },
        { key: 'TMQB', name: 'Team QB', category: 'Team', order: 12 },
        { key: 'TMRB', name: 'Team RB', category: 'Team', order: 13 },
        { key: 'TMWR', name: 'Team WR', category: 'Team', order: 14 },
        { key: 'TMTE', name: 'Team TE', category: 'Team', order: 15 },
        { key: 'TMDL', name: 'Team Defensive Line', category: 'Team', order: 16 },
        { key: 'TMLB', name: 'Team Linebackers', category: 'Team', order: 17 },
        { key: 'TMDB', name: 'Team Defensive Backs', category: 'Team', order: 18 },
        { key: 'TMPK', name: 'Team Place Kicker', category: 'Team', order: 19 },
        { key: 'TMPN', name: 'Team Punter', category: 'Team', order: 20 },
        { key: 'ST', name: 'Special Teams', category: 'Other', order: 21 },
        { key: 'PK', name: 'Kicker', category: 'Other', order: 22 },
        { key: 'PN', name: 'Punter', category: 'Other', order: 23 },
        { key: 'Coach', name: 'Coach', category: 'Other', order: 24 },
        { key: 'XX', name: 'Unknown', order: 25 }
      ]
    },
    /*
      Family settings
    */
    // league: {
    //   draftOrderType: 'ser',
    //   keepers: false,
    //   positions: [
    //     { key: 'QB', min: 2, max: 4 },
    //     { key: 'RB', min: 2, max: 6 },
    //     { key: 'WR', min: 2, max: 6 },
    //     { key: 'TE', min: 1, max: 6 },
    //     { key: 'PK', min: 1, max: 3 },
    //     { key: 'Def', min: 1, max: 3 }
    //   ],
    //   rosterSize: 18,
    //   secondsPerPick: 0,
    //   teams: [
    //     { name: 'Ya Ertz Me? <NAME>', owner: '<NAME>', draftOrder: 1 },
    //     { name: 'Queens of the Forest', owner: '<NAME>', draftOrder: 2 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 3 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 4 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 5, isUser: true },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 6 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 7 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 8 }
    //   ]
    // },
    // team: {
    //   idealSize: [
    //     { positionKey: 'QB', count: 3 },
    //     { positionKey: 'RB', count: 5 },
    //     { positionKey: 'WR', count: 6 },
    //     { positionKey: 'TE', count: 2 },
    //     { positionKey: 'PK', count: 1 },
    //     { positionKey: 'Def', count: 1 }
    //   ],
    //   rankings: [],
    //   tags: [
    //     { name: 'avoid', players: ['2842', '6982', '7942', '9054', '9101', '9898', '10302', '10722', '11180', '11201', '11384', '11454', '11642', '11678', '11746', '12155', '13113', '13115', '13116', '13188'] },
    //     { name: 'handcuff', players: ['9087', '10300', '12626', '13138'] },
    //     { name: 'injuryprone', players: ['9054', '9693', '9823', '9902', '10695', '10722', '11248', '11670', '12151', '12186'] },
    //     { name: 'overpriced', players: ['8670', '9099', '9662', '9693', '9823', '11644'] },
    //     { name: 'target', players: ['0509', '0527', '7394', '7877', '8360', '8670', '8673', '9087', '9525', '9881', '9925', '10261', '10273', '10313', '10413', '10506', '10703', '10709', '11516', '11668', '11688', '11695', '12141', '12626', '13129'] }
    //   ],
    //   tiers: [
    //     { positionKey: 'QB', sizes: [3, 7, 3, 6, 6, 7] },
    //     { positionKey: 'RB', sizes: [] },
    //     { positionKey: 'WR', sizes: [] },
    //     { positionKey: 'TE', sizes: [1, 10] },
    //     { positionKey: 'PK', sizes: [] },
    //     { positionKey: 'Def', sizes: [4, 3] }
    //   ]
    // }
    /*
      CTS settings
    */
    league: {
      draftOrderType: 'ser',
      keepers: false,
      positions: [
        { key: 'QB', min: 1, max: 6 },
        { key: 'RB', min: 2, max: 6 },
        { key: 'WR', min: 2, max: 6 },
        { key: 'TE', min: 1, max: 6 },
        { key: 'PK', min: 1, max: 5 },
        { key: 'Def', min: 1, max: 5 }
      ],
      rosterSize: 14,
      secondsPerPick: 60,
      teams: [
        { name: 'Travis\'s Team', owner: '<NAME>', draftOrder: 1 },
        { name: 'Pun Goes Here', owner: '<NAME>', draftOrder: 2, isUser: true },
        { name: '<NAME>', owner: '<NAME>', draftOrder: 3 },
        { name: 'tim\'s unmatched team', owner: '<NAME>', draftOrder: 4 },
        { name: 'Scott', owner: '<NAME>', draftOrder: 5 },
        { name: 'Kristy', owner: '<NAME>', draftOrder: 6 },
        { name: 'Team 7', owner: '?', draftOrder: 7 },
        { name: 'Chase', owner: '<NAME>', draftOrder: 8 }
      ]
    },
    team: {
      idealSize: [
        { positionKey: 'QB', count: 3 },
        { positionKey: 'RB', count: 4 },
        { positionKey: 'WR', count: 4 },
        { positionKey: 'TE', count: 1 },
        { positionKey: 'PK', count: 1 },
        { positionKey: 'Def', count: 1 }
      ],
      rankings: [],
      tags: [
        { name: 'avoid', players: ['2842', '6982', '7942', '9054', '9101', '9898', '10302', '10722', '11180', '11201', '11384', '11454', '11642', '11678', '11746', '12155', '13113', '13115', '13116', '13188'] },
        { name: 'handcuff', players: ['9087', '10300', '12626', '13138'] },
        { name: 'injuryprone', players: ['9054', '9693', '9823', '9902', '10695', '10722', '11248', '11670', '12151', '12186'] },
        { name: 'overpriced', players: ['8670', '9099', '9662', '9693', '9823', '11644'] },
        { name: 'target', players: ['0509', '0527', '7394', '7877', '8360', '8670', '8673', '9087', '9525', '9881', '9925', '10261', '10273', '10313', '10413', '10506', '10703', '10709', '11516', '11668', '11688', '11695', '12141', '12626', '13129'] }
      ],
      tiers: [
        { positionKey: 'QB', sizes: [3, 7, 3, 6, 6, 7] },
        { positionKey: 'RB', sizes: [] },
        { positionKey: 'WR', sizes: [] },
        { positionKey: 'TE', sizes: [1, 10] },
        { positionKey: 'PK', sizes: [] },
        { positionKey: 'Def', sizes: [4, 3] }
      ]
    }

    /*
      Crossroads settings
    */
    // league: {
    //   draftOrderType: 'ser',
    //   positions: [
    //     { key: 'QB', min: 1, max: 4 },
    //     { key: 'RB', min: 1, max: 8 },
    //     { key: 'WR', min: 2, max: 8 },
    //     { key: 'TE', min: 1, max: 3 },
    //     { key: 'PK', min: 1, max: 3 },
    //     { key: 'Def', min: 1, max: 3 },
    //     { key: 'Coach', min: 1, max: 10 }
    //   ],
    //   rosterSize: 17,
    //   secondsPerPick: 60,
    //   teams: [
    //     { name: 'The Commish', owner: '<NAME>', draftOrder: 12, keeper: '7836' },
    //     { name: '’Aints -', owner: '<NAME>' draftOrder: 11 },
    //     { name: 'Play It Again Sam', owner: '<NAME>', draftOrder: 10, isUser: true },
    //     { name: '<NAME>.', owner: 'Tuck Chastain', draftOrder: 9 },
    //     { name: 'Bu<NAME> here', owner: '<NAME>', draftOrder: 8 },
    //     { name: 'Small Arms Dealer', owner: '<NAME>', draftOrder: 7 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 6 },
    //     { name: '<NAME>', owner: '<NAME>',  draftOrder: 5 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 4 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 3 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 2 },
    //     { name: '<NAME>', owner: '<NAME>', draftOrder: 1 }
    //   ]
    // },
    // team: {
    //   idealSize: [
    //     { positionKey: 'QB', count: 2 },
    //     { positionKey: 'RB', count: 4 },
    //     { positionKey: 'WR', count: 5 },
    //     { positionKey: 'TE', count: 2 },
    //     { positionKey: 'PK', count: 1 },
    //     { positionKey: 'Def', count: 2 },
    //     { positionKey: 'Coach', count: 1 }
    //   ]
    // }
  }
}

const mutations = {
  ADDPICK (state, pick) {
    state.picks.push(pick)
  },
  ADDSTATEENTRY (state, entry) {
    state.history.push(entry)
  },
  SETPLAYERS (state, players) {
    state.players = players
  },
  SETTEAMRANKINGS (state, rankings) {
    state.settings.team.rankings = rankings
  },
  UNDOLASTPICK (state) {
    state.picks.pop()
  },
  UNDOSTATEENTRY (state) {
    state.history.pop()
  },
  UPDATEKEEPERS (state, keeperPicks) {
    state.picks = keeperPicks
  }
}

export default new Vuex.Store({
  state,
  mutations
})

{'fraction_non_alphanumeric': 0.23508107204546722, 'fraction_numerical': 0.07037387864267008, 'mean_word_length': 2.1721456344998233, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 90, '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': '304116', 'n_tokens_mistral': 7398, 'n_tokens_neox': 6567, 'n_words': 1796}