<commit_before>LesionLocations = new Meteor.Collection(null);

LesionLocations.insert({
    id: 'liverLeft',
    group: 'liver',
    location: 'Liver Left',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'liverRight',
    group: 'liver',
    location: 'Liver Right',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'liverCaudate',
    group: 'liver',
    location: 'Liver Caudate',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'lungLLL',
    group: 'lung',
    location: 'Lung LLL',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'lungLUL',
    group: 'lung',
    location: 'Lung LUL',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'lungRLL',
    group: 'lung',
    location: 'Lung RLL',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'lungRML',
    group: 'lung',
    location: 'Lung RML',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'lungRUL',
    group: 'lung',
    location: 'Lung RUL',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'pleuraLeft',
    group: 'pleura',
    location: 'Pleura Left',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'pleuraRight',
    group: 'pleura',
    location: 'Pleura Right',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'kidneyLeft',
    group: 'kidney',
    location: 'Kidney Left',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});

LesionLocations.insert({
    id: 'kidneyRight',
    group: 'kidney',
    location: 'Kidney Right',
    hasDescription: false,
    description: '',
    selected: false,
    isNodal: false
});<commit_msg>Updated Lesion Location list (LT-166)<commit_after>LesionLocations = new Meteor.Collection(null);

var organGroups = [
    'Abdominal/Chest Wall',
    'Adrenal',
    'Bladder',
    'Bone',
    'Brain',
    'Breast',
    'Colon',
    'Esophagus',
    'Extremities',
    'Gallbladder',
    'Kidney',
    'Liver',
    'Lung',
    'Lymph Node',
    'Muscle',
    'Neck',
    'Other: Soft Tissue',
    'Ovary',
    'Pancreas',
    'Pelvis',
    'Peritoneum/Omentum',
    'Prostate',
    'Retroperitoneum',
    'Small Bowel',
    'Spleen',
    'Stomach',
    'Subcutaneous'];

function nameToID(name) {
    // http://stackoverflow.com/questions/29258016/remove-special-symbols-and-extra-spaces-and-make-it-camel-case-javascript
    return name
        .trim() //might need polyfill if you need to support older browsers
        .toLowerCase() //lower case everything
        .replace(/([^A-Z0-9]+)(.)/ig, //match multiple non-letter/numbers followed by any character
            function(match) {
                return arguments[2].toUpperCase(); //3rd index is the character we need to transform uppercase
            }
        );
}

organGroups.forEach(function(organGroup) {
    var id = nameToID(organGroup);

    // Check if the name has 'node' in it, if so, it is nodal
    var isNodal = false;
    if (id.toLowerCase().indexOf('node') > -1) {
        isNodal = true;
    }

    LesionLocations.insert({
        id: id,
        group: id, // Not really used for now
        location: organGroup,
        hasDescription: false,
        description: '',
        selected: false,
        isNodal: isNodal
    });
});
{'fraction_non_alphanumeric': 0.14173027989821882, 'fraction_numerical': 0.004071246819338422, 'mean_word_length': 2.7402473834443386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6270166', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1291, 'n_words': 309}