<commit_before>/**
 * Class responsible for keeping track of cancers and their properties.
 * This information is graphically displayed in a 'Legend' box.
 *
 * @class CancerLegend
 * @constructor
 */
define([
        "pedigree/model/helpers",
        "pedigree/view/legend"
    ], function(
        Helpers,
        Legend
    ){
    var CancerLegend = Class.create( Legend, {

        initialize: function($super) {
            this._cancerColors = { "Breast": "#e267a3",    // pink e762a4
                                   "Ovarian": "#9370DB",   // purple
                                   "Colon": "#945d34",     // brown
                                   "Uterus": "#c93320",    // red
                                   "Prostate": "#ecb739",  // yellow
                                   "Pancreatic": "#4657dc",  // blue
                                   "Melanoma": "#444444",  // black (#333333 and darker do not work with raphael gradients)
                                   "Kidney": "#197419",    // green
                                   "Gastric": "#9aac8c",   // (?) greenish
                                   "Lung": "#008080",      // teal
                                   "Brain": "#F5DEB3",     // (?) wheat
                                   "Oesophagus": "#BC8F8F" // (?) rosybrown
                                 };
            this._cancerLabels = { "Breast": "Breast cancer",
                                   "Ovarian": "Ovarian cancer",
                                   "Colon": "Colon cancer",
                                   "Uterus": "Uterus cancer",
                                   "Prostate": "Prostate cancer",
                                   "Pancreatic": "Pancreatic cancer",
                                   "Melanoma": "Melanoma",
                                   "Kidney": "Kidney cancer",
                                   "Gastric": "Gastric cancer",
                                   "Lung": "Lung cancer",
                                   "Brain": "Brain cancer",
                                   "Oesophagus": "Oesophagus cancer",<commit_msg>PT-2227: Add "thyroid cancer" to the list of cancers in the pedigree node menu<commit_after>/**
 * Class responsible for keeping track of cancers and their properties.
 * This information is graphically displayed in a 'Legend' box.
 *
 * @class CancerLegend
 * @constructor
 */
define([
        "pedigree/model/helpers",
        "pedigree/view/legend"
    ], function(
        Helpers,
        Legend
    ){
    var CancerLegend = Class.create( Legend, {

        initialize: function($super) {
            this._cancerColors = { "Breast": "#e267a3",    // pink e762a4
                                   "Ovarian": "#9370DB",   // purple
                                   "Colon": "#945d34",     // brown
                                   "Uterus": "#c93320",    // red
                                   "Prostate": "#ecb739",  // yellow
                                   "Pancreatic": "#4657dc",  // blue
                                   "Melanoma": "#444444",  // black (#333333 and darker do not work with raphael gradients)
                                   "Kidney": "#197419",    // green
                                   "Gastric": "#9aac8c",   // (?) greenish
                                   "Lung": "#008080",      // teal
                                   "Brain": "#F5DEB3",     // (?) wheat
                                   "Oesophagus": "#BC8F8F", // (?) rosybrown
                                   "Thyroid": "#FFFF00"     // yellow
                                 };
            this._cancerLabels = { "Breast": "Breast cancer",
                                   "Ovarian": "Ovarian cancer",
                                   "Colon": "Colon cancer",
                                   "Uterus": "Uterus cancer",
                                   "Prostate": "Prostate cancer",
                                   "Pancreatic": "Pancreatic cancer",
                                   "Melanoma": "Melanoma",
                                   "Kidney": "Kidney cancer",
                                   "Gastric": "Gastric cancer",
                                   "Lung": "Lung cancer",
                                   "Brain": "Brain cancer",
                                   "Oesophagus": "Oesophagus cancer",
                                   "Thyroid": "Thyroid cancer"
{'fraction_non_alphanumeric': 0.11449177372098264, 'fraction_numerical': 0.027946810908271353, 'mean_word_length': 0.934612031386225, 'pattern_counts': {'":': 50, '<': 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': 46, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4630274', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1076, 'n_words': 254}