<commit_before>// Breast Cancer Staging lookups

// 5th Edition, p.174:
// https://cancerstaging.org/references-tools/deskreferences/Documents/AJCC5thEdCancerStagingManual.pdf
// const ts5thEdition = ['T0', 'T1', 'T2', 'T3', 'T4'];
const ts5thEdition = [
    {name: 'T0', description: "No evidence of primary tumor"},
    {name: 'T1', description: "Tumor ≤ 20 mm in greatest dimension"},
    {name: 'T2', description: "20 mm < Tumor ≤ 50 mm in greatest dimension"},
    {name: 'T3', description: "Tumor > 50 mm in greatest dimension"},
    {name: 'T4', description: "Tumor of any size with direct extension to the chest wall and/or to the skin (ulceration or skin nodules)"}
];
// const ns5thEdition = ['N0', 'N1', 'N2', 'N3'];
const ns5thEdition = [
    {name: 'N0', description: "No regional lymph node metastasis"},
    {name: 'N1', description: "Metastasis to movable ipsilateral axillary lypmh node(s)"},
    {name: 'N2', description: "Metastasis to ipsilateral axillary lymph node(s) fixed to one another or to other structures"},
    {name: 'N3', description: "Metastasis to ipsilateral internal mammary lymph node(s)"}
];

const ms = [
    {name: 'M0', description: 'No clinical or radiographic evidence of distant metastases'},
    {name: 'M1', description: 'Distant detectable metastases as determined by classic clinical and radiographic means and/or histologically proven larger than 0.2 mm'}
];

const table5thEdition = [
  // N0 , N1 ,  N2  , N3
    [null, 'IIA', 'IIIA', 'IIIB'], // T0
    [null, 'IIA', 'IIIA', 'IIIB'], // T1
    ['IIA', 'IIB', 'IIIA', 'IIIB'], // T2
    ['IIB', 'IIIA', 'IIIA', 'IIIB'], // T3
    ['IIIB', 'IIIB', 'IIIB', 'IIIB'] // T4
];

// 6th Edition, p.228:
// https://cancerstaging.org/references-tools/deskreferences/Documents/AJCC6thEdCancerStagingManualPart2.pdf

// const ts6thEdition = ['TIS', 'T0', 'T1', 'T2', 'T3', 'T4']; //original array
const ts6thEdition = [
    {name: 'Tis', description: "Carcinoma in situ"},
    {name: 'T0', description: "No evidence of primary tumor"},
    {name: 'T1', description: "Tumor ≤ 20 mm in greatest dimension"},
    {name: 'T2', description: "20 mm < Tumor ≤ 50 mm in greatest dimension"},
    {name: 'T3', description: "Tumor > 50 mm in greatest dimension"},
    {name: 'T4', description: "Tumor of any size with direct extension to the chest wall and/or to the skin (ulceration or skin nodules)"}
];
// const ns6thEdition = ['N0', 'N1', 'N2', 'N3'];
const ns6thEdition = [
    {name: 'N0', description: "No regional lymph node metastasis"},
    {name: 'N1', description: "Metastasis to movable ipsilateral axillary lymph node(s)"},
    {name: 'N2', description: "Metastases in ipsilateral axillary lymph nodes fixed or matted, or in clinically apparent ipsilaterial internal mammary nodes in the absence of clinically evident axillary lymph node metastasis"},
    {name: 'N3', description: "Metastasis in ipsilateral infraclavicular lymph node(s) with or without axillary lymph node involvement, or in clinically apparent ipsilateral internal mammary lymph node(s) and in the presence of clinically evident axiillary lymph node metastasis; or metastasis in ipsilateral supraclavicular lymph node(s) with or without axillary or internal mammary node involvement"}
];
const table6thEdition = [<commit_msg>Fixed Tis and N1mi references even in commented out code<commit_after>// Breast Cancer Staging lookups

// 5th Edition, p.174:
// https://cancerstaging.org/references-tools/deskreferences/Documents/AJCC5thEdCancerStagingManual.pdf
// const ts5thEdition = ['T0', 'T1', 'T2', 'T3', 'T4'];
const ts5thEdition = [
    {name: 'T0', description: "No evidence of primary tumor"},
    {name: 'T1', description: "Tumor ≤ 20 mm in greatest dimension"},
    {name: 'T2', description: "20 mm < Tumor ≤ 50 mm in greatest dimension"},
    {name: 'T3', description: "Tumor > 50 mm in greatest dimension"},
    {name: 'T4', description: "Tumor of any size with direct extension to the chest wall and/or to the skin (ulceration or skin nodules)"}
];
// const ns5thEdition = ['N0', 'N1', 'N2', 'N3'];
const ns5thEdition = [
    {name: 'N0', description: "No regional lymph node metastasis"},
    {name: 'N1', description: "Metastasis to movable ipsilateral axillary lypmh node(s)"},
    {name: 'N2', description: "Metastasis to ipsilateral axillary lymph node(s) fixed to one another or to other structures"},
    {name: 'N3', description: "Metastasis to ipsilateral internal mammary lymph node(s)"}
];

const ms = [
    {name: 'M0', description: 'No clinical or radiographic evidence of distant metastases'},
    {name: 'M1', description: 'Distant detectable metastases as determined by classic clinical and radiographic means and/or histologically proven larger than 0.2 mm'}
];

const table5thEdition = [
  // N0 , N1 ,  N2  , N3
    [null, 'IIA', 'IIIA', 'IIIB'], // T0
    [null, 'IIA', 'IIIA', 'IIIB'], // T1
    ['IIA', 'IIB', 'IIIA', 'IIIB'], // T2
    ['IIB', 'IIIA', 'IIIA', 'IIIB'], // T3
    ['IIIB', 'IIIB', 'IIIB', 'IIIB'] // T4
];

// 6th Edition, p.228:
// https://cancerstaging.org/references-tools/deskreferences/Documents/AJCC6thEdCancerStagingManualPart2.pdf

// const ts6thEdition = ['Tis', 'T0', 'T1', 'T2', 'T3', 'T4']; //original array
const ts6thEdition = [
    {name: 'Tis', description: "Carcinoma in situ"},
    {name: 'T0', description: "No evidence of primary tumor"},
    {name: 'T1', description: "Tumor ≤ 20 mm in greatest dimension"},
    {name: 'T2', description: "20 mm < Tumor ≤ 50 mm in greatest dimension"},
    {name: 'T3', description: "Tumor > 50 mm in greatest dimension"},
    {name: 'T4', description: "Tumor of any size with direct extension to the chest wall and/or to the skin (ulceration or skin nodules)"}
];
// const ns6thEdition = ['N0', 'N1', 'N2', 'N3'];
const ns6thEdition = [
    {name: 'N0', description: "No regional lymph node metastasis"},
    {name: 'N1', description: "Metastasis to movable ipsilateral axillary lymph node(s)"},
    {name: 'N2', description: "Metastases in ipsilateral axillary lymph nodes fixed or matted, or in clinically apparent ipsilaterial internal mammary nodes in the absence of clinically evident axillary lymph node metastasis"},
    {name: 'N3', description: "Metastasis in ipsilateral infraclavicular lymph node(s) with or without axillary lymph node involvement, or in clinically apparent ipsilateral internal mammary lymph node(s) and in the presence of clinically evident axiillary lymph node metastasis; or metastasis in ipsilateral supraclavicular lymph node(s) with or without axillary or internal mammary node involvement"}
];
const table6thEdition = [
{'fraction_non_alphanumeric': 0.139555958314454, 'fraction_numerical': 0.026128983537230026, 'mean_word_length': 4.4457236842105265, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '6929606', 'n_tokens_mistral': 2319, 'n_tokens_neox': 2061, 'n_words': 789}