<commit_before>'use strict';

var stringToNum = require( './handle-string-input.js' );

/**
 * Handles URL questy string to turn key-value pairs into an object.
 * @param  {string} queryString - The query string of a url (location.search)
 * @returns {object} - An object containing key-value pairs from the query
 */
function queryHandler( queryString ) {
  var valuePairs = {};
  var parameters = {};
  var numericKeys = [
    'iped', 'pid', 'oid', 'tuit', 'hous', 'book', 'tran', 'othr',
    'pelg', 'schg', 'stag',  'othg', 'ta', 'mta', 'gib', 'fam',
    'wkst', 'parl', 'perl', 'subl', 'unsl', 'ppl', 'gpl', 'prvl',
    'prvi', 'insl', 'insi', 'sav'
  ];
  var keyMaps = {
    iped: 'collegeID',
    pid:  'programID',
    oid:  'offerID',
    tuit: 'tuitionFees',
    hous: 'roomBoard',
    book: 'books',
    tran: 'transportation',
    othr: 'otherExpenses',
    pelg: 'pell',
    schg: 'scholarships',
    stag: 'state529plan',
    othg: '',
    ta:   '',
    mta:  '',
    gib:  '',
    fam:  'family',
    wkst: 'workstudy'
    parl: '',
    perl: 'perkins',
    subl: 'staffSubsidized',
    unsl: 'staffUnsubsidized',<commit_msg>add missing comma<commit_after>'use strict';

var stringToNum = require( './handle-string-input.js' );

/**
 * Handles URL questy string to turn key-value pairs into an object.
 * @param  {string} queryString - The query string of a url (location.search)
 * @returns {object} - An object containing key-value pairs from the query
 */
function queryHandler( queryString ) {
  var valuePairs = {};
  var parameters = {};
  var numericKeys = [
    'iped', 'pid', 'oid', 'tuit', 'hous', 'book', 'tran', 'othr',
    'pelg', 'schg', 'stag',  'othg', 'ta', 'mta', 'gib', 'fam',
    'wkst', 'parl', 'perl', 'subl', 'unsl', 'ppl', 'gpl', 'prvl',
    'prvi', 'insl', 'insi', 'sav'
  ];
  var keyMaps = {
    iped: 'collegeID',
    pid:  'programID',
    oid:  'offerID',
    tuit: 'tuitionFees',
    hous: 'roomBoard',
    book: 'books',
    tran: 'transportation',
    othr: 'otherExpenses',
    pelg: 'pell',
    schg: 'scholarships',
    stag: 'state529plan',
    othg: '',
    ta:   '',
    mta:  '',
    gib:  '',
    fam:  'family',
    wkst: 'workstudy',
    parl: '',
    perl: 'perkins',
    subl: 'staffSubsidized',
    unsl: 'staffUnsubsidized',
{'fraction_non_alphanumeric': 0.1945780498469611, 'fraction_numerical': 0.0026235242675994755, 'mean_word_length': 3.1374321880650995, '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': '5888402', 'n_tokens_mistral': 886, 'n_tokens_neox': 872, 'n_words': 227}