OpenScientificCodeRegistry/Database
Open Scientific Code Registry (OSCR): the authors' scripts The code published by the authors of open-access neuroscience papers, as found and verified by Open Scientific Code Registry (OSCR). Each file is here exactly as it is at the source, at the verified commit, under the license of its repository. 421,275 unique files (3,782 MB of text) from 8,849 repositories, in 24 Parquet block(s). Only files whose repository's license allows redistribution, confirmed by the repository's… See the full description on the dataset page: https://huggingface.co/datasets/OpenScientificCodeRegistry/Database.
05.6k
1{2 "format": "oscr-script-manifest/1",3 "repository": "github.com/kabirdabholkar/nlb_tools_fewshot",4 "url": "https://github.com/KabirDabholkar/nlb_tools_fewshot",5 "host": "github.com",6 "commit": "dd0141edff0d8b3963430836e042b74041f71f8f",7 "license": "MIT",8 "license_confirmed_by": "license file LICENSE",9 "redistribution": "yes",10 "files": [11 {12 "path": "LICENSE",13 "sha256": "6b79a9e581f330f2ec31a227b162f5b7950021fd9152203729ec7ad5bc2d9f7f",14 "language": "License",15 "lines": 21,16 "truncated": false,17 "block": 14,18 "row": 1696519 },20 {21 "path": "README.md",22 "sha256": "6a691382cca112a8ece1b757e9eccb9d9e0f1fa205b1d3cfe61999bac5950a3c",23 "language": "Text",24 "lines": 38,25 "truncated": false,26 "block": 16,27 "row": 722628 },29 {30 "path": "analysis/combine_csvs.py",31 "sha256": "f90cb0624746a105a5f625574864623432c73f96b3215ff23931d2508020192a",32 "language": "Python",33 "lines": 25,34 "truncated": false,35 "block": 15,36 "row": 822937 },38 {39 "path": "analysis/load_predictions_and_evaluate.py",40 "sha256": "d15f2f469272bcc4b33dd4993bc78ba6c1776a27a4c818fee8d7a0e1683450ae",41 "language": "Python",42 "lines": 113,43 "truncated": false,44 "block": 15,45 "row": 1637246 },47 {48 "path": "analysis/multi_plot.py",49 "sha256": "88e4d6cdb9e20b426d320481c40ca774c8a84f58387665538ba5c15f1fb4279a",50 "language": "Python",51 "lines": 477,52 "truncated": false,53 "block": 15,54 "row": 2497955 },56 {57 "path": "analysis/multi_plot2.py",58 "sha256": "34f407f7b5516bdd65678f1160fb0e81896048c80fc523b77283a9e895b2ec18",59 "language": "Python",60 "lines": 490,61 "truncated": false,62 "block": 15,63 "row": 2505064 },65 {66 "path": "analysis/multi_plot3.py",67 "sha256": "043f5d5ff4a1636d6f371b09af941f01965049e72872082c2d15953562b52267",68 "language": "Python",69 "lines": 197,70 "truncated": false,71 "block": 15,72 "row": 2045873 },74 {75 "path": "analysis/plot.py",76 "sha256": "05645ad4a9d85ac7e7d4d320b8d2c9bb1fdadb0d33d88c7da1865916bba5f085",77 "language": "Python",78 "lines": 201,79 "truncated": false,80 "block": 15,81 "row": 1820082 },83 {84 "path": "analysis/plot_cross_decoding.py",85 "sha256": "0a09280098ffa5403f89eda0d961e30f904ec12e211f39cfb4419bea5d5d43ae",86 "language": "Python",87 "lines": 361,88 "truncated": false,89 "block": 15,90 "row": 2390491 },92 {93 "path": "examples/baselines/autolfads/lfads_data_prep.py",94 "sha256": "8931f11127b8d93a765afca90795d56b99671cbaeb3f92d5cfbbcf73b036d10d",95 "language": "Python",96 "lines": 81,97 "truncated": false,98 "block": 15,99 "row": 13524100 },101 {102 "path": "examples/baselines/autolfads/post_lfads_prep.py",103 "sha256": "9a5f4c22a1b411c8a6b6f17fcf85b11e806d865b521dfb282e63dd79237f157e",104 "language": "Python",105 "lines": 73,106 "truncated": false,107 "block": 15,108 "row": 12635109 },110 {111 "path": "examples/baselines/autolfads/run_lfads.py",112 "sha256": "4f0895e54b12cf695972e922425b7d7f0eb04dbcc3bf587e51e6b08fe3298665",113 "language": "Python",114 "lines": 140,115 "truncated": false,116 "block": 15,117 "row": 17632118 },119 {120 "path": "examples/baselines/gpfa/gpfa_cv_sweep.py",121 "sha256": "67451892bc3cbb2e9292797b197fefe8adfad6e8efc87fff8c60b2ab59af0267",122 "language": "Python",123 "lines": 211,124 "truncated": false,125 "block": 15,126 "row": 21569127 },128 {129 "path": "examples/baselines/gpfa/run_gpfa.py",130 "sha256": "24d47c33de4ab68d717e73ad400388e4ceec669ab2bbe841f7f3919f8540ee24",131 "language": "Python",132 "lines": 229,133 "truncated": false,134 "block": 15,135 "row": 22319136 },137 {138 "path": "examples/baselines/slds/run_slds.py",139 "sha256": "4fdfd39f567ae679af2ca23bd82875a66b46885674c6fcaf9718ec3783f434c6",140 "language": "Python",141 "lines": 175,142 "truncated": false,143 "block": 15,144 "row": 19651145 },146 {147 "path": "examples/baselines/slds/run_slds_randsearch.py",148 "sha256": "5c4ebd00a934a9b0737c2c7bbcd779a721e2909993a55940e35dfad7c8cc98d1",149 "language": "Python",150 "lines": 335,151 "truncated": false,152 "block": 15,153 "row": 22604154 },155 {156 "path": "examples/baselines/smoothing/run_smoothing.py",157 "sha256": "a788897a11ce7fcb615a222a7ab629632cec335df2fc11b81cb344a46e373a8a",158 "language": "Python",159 "lines": 225,160 "truncated": false,161 "block": 15,162 "row": 21872163 },164 {165 "path": "examples/baselines/smoothing/smoothing_cv_sweep.py",166 "sha256": "cbbb9a7796e252a379c350848744caaaca71f92d28a89324b6bded8873f2554a",167 "language": "Python",168 "lines": 183,169 "truncated": false,170 "block": 15,171 "row": 20347172 },173 {174 "path": "examples/tutorials/basic_example.ipynb",175 "sha256": "af9f0438e98cdabee4f8df1770ebdb4c3ae0c27f675fcade16ffe930ae75c621",176 "language": "Jupyter",177 "lines": 365,178 "truncated": false,179 "block": 14,180 "row": 16451181 },182 {183 "path": "examples/tutorials/gpfa_example.ipynb",184 "sha256": "2ef6071833f21ab237cd6678b9f0943ab69b45096fcfe8d94c80d1fee61cb8ae",185 "language": "Jupyter",186 "lines": 249,187 "truncated": false,188 "block": 14,189 "row": 15846190 },191 {192 "path": "examples/tutorials/slds_example.ipynb",193 "sha256": "11e1342beb246bfe544d16f20a721e801010e6b2d4c8671e5fa1e801c68c53cf",194 "language": "Jupyter",195 "lines": 228,196 "truncated": false,197 "block": 14,198 "row": 15778199 },200 {201 "path": "nlb_tools/chop.py",202 "sha256": "94ef5b1f413246548d8246156db95dd3577a28ee5e16d52a5e106c0729fec18e",203 "language": "Python",204 "lines": 388,205 "truncated": false,206 "block": 15,207 "row": 24070208 },209 {210 "path": "nlb_tools/collate_results.py",211 "sha256": "8a91880096b71958d211f2ae2819c9db54d7834564687a3a64486401b64f46e7",212 "language": "Python",213 "lines": 104,214 "truncated": false,215 "block": 15,216 "row": 15437217 },218 {219 "path": "nlb_tools/cross_decoding.py",220 "sha256": "a721765c1a37130352e9d480633da09ec1e319d2413aaad18ac52d863a79af89",221 "language": "Python",222 "lines": 394,223 "truncated": false,224 "block": 15,225 "row": 23772226 },227 {228 "path": "nlb_tools/evaluation.py",229 "sha256": "055f73b9a9163113b63ba5360c6d9d3c73e4f43e2dff7ce45aa2b1b9ed52e2dd",230 "language": "Python",231 "lines": 500,232 "truncated": false,233 "block": 15,234 "row": 24850235 },236 {237 "path": "nlb_tools/fewshot_utils.py",238 "sha256": "ac0ee803703765af94c2cf4a8dc09b24aa3a2512e8ebba875afb4573bc2397f7",239 "language": "Python",240 "lines": 26,241 "truncated": false,242 "block": 15,243 "row": 8128244 },245 {246 "path": "nlb_tools/load_and_save_latents.py",247 "sha256": "3de00edcc6cc50b557cd770cc993e922e333705f2599bbc5732a26f5e1db3c40",248 "language": "Python",249 "lines": 309,250 "truncated": false,251 "block": 15,252 "row": 22861253 },254 {255 "path": "nlb_tools/make_fewshot.py",256 "sha256": "9550ed7353368121ed96eb5c5c61434be92275c2709c1a62ab8f663a4560c7ee",257 "language": "Python",258 "lines": 169,259 "truncated": false,260 "block": 15,261 "row": 19002262 },263 {264 "path": "nlb_tools/make_tensors.py",265 "sha256": "6acdb803eaa0f819e626d323e05811ae505656e5c599269861eddd2d733b5fa2",266 "language": "Python",267 "lines": 1536,268 "truncated": false,269 "block": 16,270 "row": 1414271 },272 {273 "path": "nlb_tools/metrics.py",274 "sha256": "583431298aee78670cd15efb5f1b7c5d08ea25984c9ae91dc15c4669ff068041",275 "language": "Python",276 "lines": 69,277 "truncated": false,278 "block": 15,279 "row": 11666280 },281 {282 "path": "nlb_tools/nlb_data_setup.py",283 "sha256": "d432a0d746aa5b31d6efc6776c063a0149a7b4f6aa7ce2f3a25569ce6665529d",284 "language": "Python",285 "lines": 120,286 "truncated": false,287 "block": 15,288 "row": 17800289 },290 {291 "path": "nlb_tools/nwb_interface.py",292 "sha256": "3ff3ffa7fb5a4b96f60a84693b13f8f05519a35b8a36114fb763a636a24492e9",293 "language": "Python",294 "lines": 965,295 "truncated": false,296 "block": 16,297 "row": 875298 },299 {300 "path": "nlb_tools/sklearn_glm.py",301 "sha256": "82f509dec75bf39baff9ef19459383106c29ba7197fcc8ab7a67dc6a3141a652",302 "language": "Python",303 "lines": 121,304 "truncated": false,305 "block": 15,306 "row": 17223307 },308 {309 "path": "nlb_tools/torch_glm.py",310 "sha256": "1f83cf97e979a0934c062ec34a81bfaf09cf5761afb68cbc203e8e1f6b234d9b",311 "language": "Python",312 "lines": 282,313 "truncated": false,314 "block": 15,315 "row": 22602316 },317 {318 "path": "setup.py",319 "sha256": "1c1a5a20b07c7c4e153f3f526d63f49545329254fef9c1146ef90cdec3151eca",320 "language": "Python",321 "lines": 35,322 "truncated": false,323 "block": 15,324 "row": 8509325 },326 {327 "path": "tests/conftest.py",328 "sha256": "20bb0dcdf73eb95459a9419b2a1d7c67355799ee789e12d3aea5cfd98b0f535c",329 "language": "Python",330 "lines": 106,331 "truncated": false,332 "block": 15,333 "row": 14589334 },335 {336 "path": "tests/test_evaluate.py",337 "sha256": "cfa65bcfac4ab25ad09f05ea81519500ffeabdfa4366a260aeb9c6cb32bddc46",338 "language": "Python",339 "lines": 179,340 "truncated": false,341 "block": 15,342 "row": 18135343 },344 {345 "path": "tests/test_make_tensors.py",346 "sha256": "01e8f9b24c5cdfbe60f6f371e6c0a95789a5491879d9f3127d5df0223b652c72",347 "language": "Python",348 "lines": 1,349 "truncated": false,350 "block": 15,351 "row": 5597352 },353 {354 "path": "tests/test_nlb.py",355 "sha256": "c631eb37c04f8b0391e5785f5366a2ba4a41351cedb4325762d8db6ed2e95f52",356 "language": "Python",357 "lines": 93,358 "truncated": false,359 "block": 15,360 "row": 16140361 },362 {363 "path": "tests/test_nwb_interface.py",364 "sha256": "cac976dd908799b84895b293ab0842431490528c8bf3c34eb83c15514a54bc88",365 "language": "Python",366 "lines": 1,367 "truncated": false,368 "block": 15,369 "row": 5605370 }371 ]372}