Skip to content

Instantly share code, notes, and snippets.

@birkin
Last active March 20, 2023 13:01
Show Gist options
  • Select an option

  • Save birkin/81bd9086808c81eacc671df38d10c1dd to your computer and use it in GitHub Desktop.

Select an option

Save birkin/81bd9086808c81eacc671df38d10c1dd to your computer and use it in GitHub Desktop.
Provides unique values of parts of the course-code in the OIT export for Leganto.
- Data from parsing the course-codes of 14,607 entries in the 2023-March-17 course export.
- Example course-code: "brown.biol.0080.2023-spring.s01"
- From that course-code, below are the --> unique <-- "institutions", "departments", (not numbers), "years", "terms", and "sections".
- The section 'EMPTY' wasn't in the OIT data, I put it there to show that there were sections-not-listed, and I provided a count. (111)
[17/Mar/2023 13:45:42] DEBUG [prepare_oit_summer_2023_subset-<module>()::109] OIT course entries count, ``14607``
[17/Mar/2023 13:45:42] DEBUG [prepare_oit_summer_2023_subset-<module>()::115] course_code_institutions, ``['brown']``
[17/Mar/2023 13:45:42] DEBUG [prepare_oit_summer_2023_subset-<module>()::116] course_code_departments, ``['afri',
'amst',
'anth',
'apma',
'arab',
'arch',
'arts',
'asyr',
'beo',
'bhbr',
'biol',
'catl',
'chem',
'chin',
'clas',
'clps',
'colt',
'cost',
'csci',
'czch',
'data',
'east',
'econ',
'educ',
'eeps',
'egyt',
'eint',
'emba',
'emow',
'engl',
'engn',
'envs',
'erly',
'ethn',
'exch',
'fren',
'gisp',
'gnss',
'gphp',
'grek',
'grmn',
'hcl',
'hebr',
'hiaa',
'hisp',
'hist',
'hman',
'hndi',
'iapa',
'indp',
'intr',
'ital',
'japn',
'juds',
'krea',
'laca',
'lang',
'latn',
'litr',
'math',
'mcm',
'mdvl',
'med',
'mes',
'mgrk',
'mpa',
'musc',
'nahu',
'nais',
'neur',
'phil',
'php',
'phum',
'phys',
'plme',
'plsh',
'pobs',
'pols',
'prsn',
'rels',
'risd',
'russ',
'sans',
'sast',
'sign',
'slav',
'soc',
'sts',
'taps',
'tksh',
'univ',
'urbn',
'viet',
'visa',
'yoru']``
[17/Mar/2023 13:45:42] DEBUG [prepare_oit_summer_2023_subset-<module>()::118] course_code_years, ``['2023']``
[17/Mar/2023 13:45:42] DEBUG [prepare_oit_summer_2023_subset-<module>()::119] course_code_terms, ``['fall', 'spring', 'summer']``
[17/Mar/2023 13:45:42] DEBUG [prepare_oit_summer_2023_subset-<module>()::120] course_code_sections, ``['0',
'EMPTY',
'al',
'amy',
'avd',
'aya',
'bai',
'ber',
'bjm',
'bp',
'br',
'c01',
'c02',
'c03',
'c04',
'c05',
'c06',
'c07',
'c08',
'c09',
'c10',
'c11',
'c12',
'c13',
'c14',
'c15',
'c16',
'c17',
'c18',
'c19',
'c20',
'cb',
'cet',
'cig',
'cjk',
'cmb',
'cs',
'dat',
'dh',
'dls',
'dpw',
'dr',
'ec',
'eu',
'ez',
'f01',
'fai',
'fp',
'gdk',
'gt',
'hci',
'hug',
'jes',
'jht',
'jj',
'kad',
'kam',
'kb',
'kf',
'l01',
'l02',
'l03',
'l04',
'l05',
'l06',
'l07',
'l08',
'l09',
'l10',
'l11',
'l12',
'lai',
'lds',
'lit',
'mph',
'ms',
'nd',
'nlu',
'nv',
'pff',
'pm',
'pnk',
'pv',
'rf',
'rib',
'rsn',
'rt',
'ryl',
's',
's01',
's02',
's03',
's04',
's05',
's06',
's07',
's08',
's09',
's10',
's11',
's12',
's13',
's14',
's15',
's16',
's17',
's18',
's19',
's1a',
's1b',
's1c',
's1d',
's1e',
's1f',
's1g',
's1h',
's1i',
's1j',
's1k',
's1l',
's1m',
's1n',
's1o',
's1p',
's1q',
's1r',
's1s',
's1t',
's1u',
's1v',
's1w',
's1x',
's1y',
's1z',
's20',
's21',
's22',
's23',
's24',
's25',
's26',
's27',
's28',
's29',
's2a',
's2b',
's2c',
's2d',
's2e',
's2f',
's2g',
's2h',
's2i',
's2j',
's2k',
's2l',
's2m',
's2n',
's2o',
's2p',
's2q',
's2r',
's2s',
's2t',
's2u',
's2v',
's2w',
's2x',
's2y',
's2z',
's30',
's31',
's32',
's33',
's34',
's35',
's36',
's37',
's38',
's39',
's3a',
's3b',
's3c',
's3d',
's3e',
's3f',
's3g',
's3h',
's3i',
's3j',
's3k',
's3l',
's3m',
's3n',
's3o',
's3p',
's3q',
's3r',
's3s',
's3t',
's3u',
's3v',
's3w',
's3x',
's3y',
's3z',
's40',
's41',
's42',
's43',
's44',
's45',
's46',
's47',
's48',
's49',
's4a',
's4b',
's4c',
's4d',
's4e',
's4f',
's4g',
's4h',
's4i',
's4j',
's4k',
's4l',
's4m',
's4n',
's4o',
's4p',
's4q',
's4r',
's4s',
's4t',
's4u',
's4v',
's4w',
's4x',
's4y',
's4z',
's50',
's51',
's52',
's53',
's54',
's55',
's56',
's57',
's58',
's59',
's5a',
's5b',
's5c',
's5d',
's5e',
's5f',
's5g',
's5h',
's5i',
's5j',
's5k',
's5l',
's5m',
's5n',
's5o',
's5p',
's5q',
's5r',
's5s',
's5t',
's5u',
's5v',
's5w',
's5x',
's5y',
's5z',
's60',
's61',
's62',
's63',
's64',
's65',
's66',
's67',
's68',
's69',
's6a',
's6b',
's6c',
's6d',
's6e',
's6f',
's6g',
's6h',
's6i',
's6j',
's6k',
's6l',
's6m',
's6n',
's6o',
's6p',
's6q',
's6r',
's6s',
's6t',
's6u',
's6v',
's6w',
's6x',
's6y',
's6z',
's70',
's71',
's72',
's73',
's74',
's75',
's76',
's77',
's78',
's79',
's7a',
's7b',
's7c',
's7d',
's7e',
's7f',
's7g',
's7h',
's7i',
's7j',
's7k',
's7l',
's7m',
's7n',
's7o',
's7p',
's7q',
's7r',
's7s',
's7t',
's7u',
's7v',
's7w',
's7x',
's7y',
's7z',
's80',
's81',
's82',
's83',
's84',
's85',
's86',
's87',
's88',
's89',
's8a',
's8b',
's8c',
's8d',
's8e',
's8f',
's8g',
's8h',
's8i',
's8j',
's8k',
's8l',
's8m',
's8n',
's8o',
's8p',
's8q',
's8r',
's8s',
's8t',
's8u',
's8v',
's8w',
's8x',
's8y',
's8z',
's90',
's91',
's92',
's93',
's94',
's95',
's96',
's97',
's98',
's99',
's9a',
's9b',
's9c',
's9d',
's9e',
's9f',
's9g',
's9h',
's9i',
's9j',
's9k',
's9l',
's9m',
's9n',
's9o',
's9p',
's9q',
's9r',
's9s',
's9t',
's9u',
's9v',
's9w',
's9x',
's9y',
's9z',
'sa0',
'sa1',
'sa2',
'sa3',
'sa4',
'sa5',
'sa6',
'sa7',
'sa8',
'sa9',
'sb',
'sb0',
'sb1',
'sb2',
'sb3',
'sb4',
'sb5',
'sb6',
'sb7',
'sb8',
'sb9',
'sbz',
'sc1',
'sc2',
'sc3',
'sc4',
'sc5',
'sc6',
'sc7',
'sc8',
'sc9',
'sd0',
'sd2',
'sd3',
'sd4',
'sd5',
'sd6',
'sd7',
'sd8',
'sd9',
'se0',
'se1',
'se2',
'se3',
'se4',
'se5',
'se6',
'se7',
'se8',
'se9',
'sf1',
'sf2',
'sf3',
'sf4',
'sf5',
'sf6',
'sf7',
'sf8',
'sf9',
'sg1',
'sg2',
'sg3',
'sg4',
'si',
'sk',
'spr',
'sr',
'ss',
'ss2',
'ss3',
'ss4',
'ss5',
'ss6',
'ss8',
'sud',
'sw',
'tab',
'tbn',
'te',
'tk',
'tlx',
'ts',
'twd',
'vk',
'yc',
'ziz']``
[17/Mar/2023 13:45:42] DEBUG [prepare_oit_summer_2023_subset-<module>()::121] course_code_section_missing_count, ``111``
## produced from code-commit: <https://github.com/Brown-University-Library/leganto_reading_list_code/tree/15618b7736859d12b4dc8efb32e087d7de6cdecb> ##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment