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/donishadsmith/neurocaps",4 "url": "https://github.com/donishadsmith/neurocaps",5 "host": "github.com",6 "commit": "6b4849121c8b78ffeba0c2097f77b6d20a4ae923",7 "license": "MIT",8 "license_confirmed_by": "license file LICENSE.md",9 "redistribution": "yes",10 "files": [11 {12 "path": "LICENSE.md",13 "sha256": "0549c67e667ce35402377e703a3d3fa1a1b0eeb09a49b0be7cc75c88c3bd136b",14 "language": "License",15 "lines": 9,16 "truncated": false,17 "block": 19,18 "row": 425119 },20 {21 "path": "README.md",22 "sha256": "dd02d0738be1b2a6f3c1a3fe4af1890fbe2f878bf74222315165859c15d2604c",23 "language": "Text",24 "lines": 259,25 "truncated": false,26 "block": 19,27 "row": 1619028 },29 {30 "path": "benchmarks/CAP.py",31 "sha256": "4561675643ecb632206b1aeb2ec26499f6c93ef1c9c7964da70637a9199e10a4",32 "language": "Python",33 "lines": 31,34 "truncated": false,35 "block": 19,36 "row": 916537 },38 {39 "path": "benchmarks/TimeseriesExtractor.py",40 "sha256": "6e5879b95bcf28cd509eab98b326ec5f2290c450bd1abafba215f0933ce5278f",41 "language": "Python",42 "lines": 55,43 "truncated": false,44 "block": 19,45 "row": 983646 },47 {48 "path": "demos/openneuro_demo.ipynb",49 "sha256": "d35ffebb922e54c972300539297f6742850d2fee30bf52968f6236a73b7caef0",50 "language": "Jupyter",51 "lines": 746,52 "truncated": false,53 "block": 19,54 "row": 411555 },56 {57 "path": "demos/simulated_demo.ipynb",58 "sha256": "3cf8b28cdf8886c17009ff417c2eb44bf8d5b44c0148f412aaf56296ab0167b6",59 "language": "Jupyter",60 "lines": 902,61 "truncated": false,62 "block": 19,63 "row": 413664 },65 {66 "path": "docker/scripts/entrypoint.sh",67 "sha256": "24435e5ccb45a869f38d0353e92a8a3d21b79ec7f2cd4a1dc44d660cfe4f14e5",68 "language": "Shell",69 "lines": 9,70 "truncated": false,71 "block": 19,72 "row": 1529473 },74 {75 "path": "docs/conf.py",76 "sha256": "518d69ac7ad71d4c3ed14e82b4a799d60b1b3248f0b2812a700ae56eb20d49af",77 "language": "Python",78 "lines": 141,79 "truncated": false,80 "block": 19,81 "row": 1144682 },83 {84 "path": "docs/sphinxext/github_link.py",85 "sha256": "f929d1ed5604a58990aecc309781e22482bd8929dda9a6c0d77de645f175e708",86 "language": "Python",87 "lines": 89,88 "truncated": false,89 "block": 19,90 "row": 1024291 },92 {93 "path": "docs/tutorials/tutorial-1.ipynb",94 "sha256": "7cb6207b0238e727ee096f57ba094318c4cab7a9ad0d55e610b214bc3153ca2e",95 "language": "Jupyter",96 "lines": 114,97 "truncated": false,98 "block": 19,99 "row": 3857100 },101 {102 "path": "docs/tutorials/tutorial-2.ipynb",103 "sha256": "6507fed2cce8aeeb1347f17a096b8e53d1da3abe3155cb990206605307394e70",104 "language": "Jupyter",105 "lines": 258,106 "truncated": false,107 "block": 19,108 "row": 3958109 },110 {111 "path": "docs/tutorials/tutorial-3.ipynb",112 "sha256": "6059d61cf3af81d8352a310e728726dcf03cdcbedd19a71abc5b4c3ad0ed3920",113 "language": "Jupyter",114 "lines": 107,115 "truncated": false,116 "block": 19,117 "row": 3888118 },119 {120 "path": "docs/tutorials/tutorial-4.ipynb",121 "sha256": "8ccdb5cf9551f34fb0802bed2edb4943fb65e80a2b82ee3a06e8f2c4943ce7bf",122 "language": "Jupyter",123 "lines": 41,124 "truncated": false,125 "block": 19,126 "row": 3801127 },128 {129 "path": "docs/tutorials/tutorial-5.ipynb",130 "sha256": "6143f21250b5b80ca16d7f7a7d0baa04b38165c580c502401ec419d8e73650ca",131 "language": "Jupyter",132 "lines": 33,133 "truncated": false,134 "block": 19,135 "row": 3789136 },137 {138 "path": "docs/tutorials/tutorial-6.ipynb",139 "sha256": "fb5f8a2177a78268d799814edac6dc58cc3d3a12ec6c64ca93551a2992e86cc0",140 "language": "Jupyter",141 "lines": 58,142 "truncated": false,143 "block": 19,144 "row": 3802145 },146 {147 "path": "docs/tutorials/tutorial-7.ipynb",148 "sha256": "523b51770cd5e7a2b612cbcf95e674391e4dff16faaa3689e452dcabe9815201",149 "language": "Jupyter",150 "lines": 267,151 "truncated": false,152 "block": 19,153 "row": 3997154 },155 {156 "path": "docs/tutorials/tutorial-8.ipynb",157 "sha256": "089ad795e8692f1bce2c70861ddbc3af8009cbdee368f7b6d14d11a63eee759d",158 "language": "Jupyter",159 "lines": 247,160 "truncated": false,161 "block": 19,162 "row": 3963163 },164 {165 "path": "hooks/grep.py",166 "sha256": "eaa03f8242d9c6917c18f31d4536ac1a2131a9dbe5835a4d51687b49fc84a3e4",167 "language": "Python",168 "lines": 41,169 "truncated": false,170 "block": 19,171 "row": 9475172 },173 {174 "path": "neurocaps/__init__.py",175 "sha256": "7234976741199de81e8bc13f46885c0d8d4ef5326f26dec215cc9e4576c573af",176 "language": "Python",177 "lines": 25,178 "truncated": false,179 "block": 19,180 "row": 9225181 },182 {183 "path": "neurocaps/analysis/__init__.py",184 "sha256": "dfbaf101ded172a70368c113c1d3c06e29578f2319a103719c6b215ce4ef450b",185 "language": "Python",186 "lines": 10,187 "truncated": false,188 "block": 19,189 "row": 8859190 },191 {192 "path": "neurocaps/analysis/_internals/serialize.py",193 "sha256": "29e56a4311fbd8c7624865330cf7cc75d5933766992e33106a632892d9b7f9f2",194 "language": "Python",195 "lines": 78,196 "truncated": false,197 "block": 19,198 "row": 10108199 },200 {201 "path": "neurocaps/analysis/cap/_internals/cluster.py",202 "sha256": "ab27e29626f2f9ebca9b44edf651bd818c271d00d31ba13ecb1d5d78116bc861",203 "language": "Python",204 "lines": 408,205 "truncated": false,206 "block": 19,207 "row": 13799208 },209 {210 "path": "neurocaps/analysis/cap/_internals/correlation.py",211 "sha256": "715f3c0574002b79581e18dbfab2c532c7fbaf58a483827c3ac002b1a7900a2d",212 "language": "Python",213 "lines": 24,214 "truncated": false,215 "block": 19,216 "row": 9290217 },218 {219 "path": "neurocaps/analysis/cap/_internals/getter.py",220 "sha256": "9e85b7c7118802620f5fbb9e1bf996496c3af82f1dcf88ed30e551f8e72fee56",221 "language": "Python",222 "lines": 321,223 "truncated": false,224 "block": 19,225 "row": 13478226 },227 {228 "path": "neurocaps/analysis/cap/_internals/matrix.py",229 "sha256": "ffcf7894fb119d525ba05423cd8fab0fb8df8e2c5f5b4e20724a866b69e36a76",230 "language": "Python",231 "lines": 476,232 "truncated": false,233 "block": 19,234 "row": 14061235 },236 {237 "path": "neurocaps/analysis/cap/_internals/metrics.py",238 "sha256": "0a3e59bcb1c438979b10a573c2fbedd3cd2d6160b90f666bd7aa7a90b7a2a290",239 "language": "Python",240 "lines": 329,241 "truncated": false,242 "block": 19,243 "row": 13462244 },245 {246 "path": "neurocaps/analysis/cap/_internals/radar.py",247 "sha256": "b7cfcd1f9f5bae5e90f9b7b9967b181b32dfe3c6bc6098ecb7ab889e6e241d25",248 "language": "Python",249 "lines": 228,250 "truncated": false,251 "block": 19,252 "row": 12884253 },254 {255 "path": "neurocaps/analysis/cap/_internals/spatial.py",256 "sha256": "10ff57195608ac1d12aa91fed696966930b2390f7ceb5e27fce3a736292ea9f7",257 "language": "Python",258 "lines": 180,259 "truncated": false,260 "block": 19,261 "row": 12378262 },263 {264 "path": "neurocaps/analysis/cap/_internals/surface.py",265 "sha256": "f9e57c460b6656965d4edce53b15545bb19a95242070a733ebf6d8df5cda0718",266 "language": "Python",267 "lines": 182,268 "truncated": false,269 "block": 19,270 "row": 12300271 },272 {273 "path": "neurocaps/analysis/cap/cap.py",274 "sha256": "9a927464820d68592c6f462f2b6a9f0b5dc8e2691a9d24cb432d022465bce235",275 "language": "Python",276 "lines": 1873,277 "truncated": false,278 "block": 19,279 "row": 14623280 },281 {282 "path": "neurocaps/analysis/change_dtype.py",283 "sha256": "5830d7a6747150d893764ee591a1320f4ee5700dda336b56427a21a3c04d643c",284 "language": "Python",285 "lines": 88,286 "truncated": false,287 "block": 19,288 "row": 10784289 },290 {291 "path": "neurocaps/analysis/merge.py",292 "sha256": "016f11672c9429dc1b214baba170c82b32b5c28f788a2b810ffe29dfaa0a45eb",293 "language": "Python",294 "lines": 200,295 "truncated": false,296 "block": 19,297 "row": 12997298 },299 {300 "path": "neurocaps/analysis/standardize.py",301 "sha256": "bfc70d6ec53dbb128cffa9a61e5b908a829c6ee338591efb7a7a7f92d74e056c",302 "language": "Python",303 "lines": 86,304 "truncated": false,305 "block": 19,306 "row": 10893307 },308 {309 "path": "neurocaps/analysis/transition_matrix.py",310 "sha256": "74854d8ebcfdadacb33f79c4a3641c95e589c4b1f431fb6f7dee6e642948dbc6",311 "language": "Python",312 "lines": 146,313 "truncated": false,314 "block": 19,315 "row": 12170316 },317 {318 "path": "neurocaps/exceptions.py",319 "sha256": "1af3c9b2a701cc4fefdbcd526f1bb2c16404f948547854d3aaed5a0b1bdc0313",320 "language": "Python",321 "lines": 50,322 "truncated": false,323 "block": 19,324 "row": 9877325 },326 {327 "path": "neurocaps/extraction/__init__.py",328 "sha256": "854c92670f3d7aeee0e19ed443112f8911b128be148f1010999cc0839f43228c",329 "language": "Python",330 "lines": 3,331 "truncated": false,332 "block": 19,333 "row": 8576334 },335 {336 "path": "neurocaps/extraction/_internals/__init__.py",337 "sha256": "ea4d9aa0055c654bacef1ab23a9bf6cc498e8d1f9df743a00c54f054c02ac479",338 "language": "Python",339 "lines": 3,340 "truncated": false,341 "block": 19,342 "row": 8618343 },344 {345 "path": "neurocaps/extraction/_internals/bids_query.py",346 "sha256": "096edf32902a97842e74204ec3684554900eb055ed06c4ee0e1c78b76cef4475",347 "language": "Python",348 "lines": 377,349 "truncated": false,350 "block": 19,351 "row": 13595352 },353 {354 "path": "neurocaps/extraction/_internals/confounds.py",355 "sha256": "e753417c459836eafc0001d577fa82d213050f3edafccccb08bf2e77b6ed63d0",356 "language": "Python",357 "lines": 156,358 "truncated": false,359 "block": 19,360 "row": 12326361 },362 {363 "path": "neurocaps/extraction/_internals/getter.py",364 "sha256": "2c94391b111fc23d0082920e9f9cec288f9ae703be90ffedb80e3f1debe95192",365 "language": "Python",366 "lines": 213,367 "truncated": false,368 "block": 19,369 "row": 12932370 },371 {372 "path": "neurocaps/extraction/_internals/postprocess.py",373 "sha256": "ee88e9b19a578d7da1c78acc599db2a6071bffcd68a247434c7d9d9de958c435",374 "language": "Python",375 "lines": 982,376 "truncated": false,377 "block": 19,378 "row": 14483379 },380 {381 "path": "neurocaps/extraction/_internals/vizualization.py",382 "sha256": "9374f16a3beb64b479da5151aa16b02bf61c3b6ad3b2f5520337a0a168926003",383 "language": "Python",384 "lines": 137,385 "truncated": false,386 "block": 19,387 "row": 11640388 },389 {390 "path": "neurocaps/extraction/timeseries_extractor.py",391 "sha256": "5af9149912323f125f84ee9662b76523f755b5646a16f56335d3a3e07ca66809",392 "language": "Python",393 "lines": 1097,394 "truncated": false,395 "block": 19,396 "row": 14578397 },398 {399 "path": "neurocaps/typing.py",400 "sha256": "1c10a2c6da0c398fbbd7e3e2f3641ec5f6507ec2f07fabd5f38dbb40285adb04",401 "language": "Python",402 "lines": 423,403 "truncated": false,404 "block": 19,405 "row": 13862406 },407 {408 "path": "neurocaps/utils/__init__.py",409 "sha256": "e70b83735f20f4714ebe4bd16d16385316aaf723ad2493561defbae131b39e07",410 "language": "Python",411 "lines": 18,412 "truncated": false,413 "block": 19,414 "row": 8969415 },416 {417 "path": "neurocaps/utils/_decorators.py",418 "sha256": "8d406e3bb096a7e919a92eed365500a15bdd20582a0722e66a406465feb8c655",419 "language": "Python",420 "lines": 62,421 "truncated": false,422 "block": 19,423 "row": 9940424 },425 {426 "path": "neurocaps/utils/_helpers.py",427 "sha256": "24727f3cd8dfff4d0d33b38de6fa7e939444be46c3aa4a00911d6ee1512dc3ba",428 "language": "Python",429 "lines": 27,430 "truncated": false,431 "block": 19,432 "row": 9105433 },434 {435 "path": "neurocaps/utils/_io.py",436 "sha256": "6471eea6f8d9f5189b2a81b1f152223571937cc6b89d7ec5ddb1f63160729e9f",437 "language": "Python",438 "lines": 159,439 "truncated": false,440 "block": 19,441 "row": 11885442 },443 {444 "path": "neurocaps/utils/_logging.py",445 "sha256": "8a2abf3ecb26337d463f9a01169ccfaeb590737368959484ab1f5a07e252b898",446 "language": "Python",447 "lines": 113,448 "truncated": false,449 "block": 19,450 "row": 11445451 },452 {453 "path": "neurocaps/utils/_parcellation_validation.py",454 "sha256": "67b3af0d9c343835b066cd0910137dc53c4363f275e479a4455479df47e6a299",455 "language": "Python",456 "lines": 400,457 "truncated": false,458 "block": 19,459 "row": 13816460 },461 {462 "path": "neurocaps/utils/_plot_utils.py",463 "sha256": "077ad0cb59469c5db9b62b0661e926aa7e8f497492b263e8eb624d38c01f4302",464 "language": "Python",465 "lines": 213,466 "truncated": false,467 "block": 19,468 "row": 12570469 },470 {471 "path": "neurocaps/utils/datasets/_fetch.py",472 "sha256": "ee423c263741ca448133db5dc9b31fd64ba7860bf6f891f06df3d2b91f5923f6",473 "language": "Python",474 "lines": 164,475 "truncated": false,476 "block": 19,477 "row": 12239478 },479 {480 "path": "neurocaps/utils/datasets/_presets.py",481 "sha256": "ed0ef174680370daaf5f22322f306a356bda0042451885a4da22e67d9f4838b8",482 "language": "Python",483 "lines": 72,484 "truncated": false,485 "block": 19,486 "row": 10428487 },488 {489 "path": "neurocaps/utils/parcellations.py",490 "sha256": "c3f15e242474422dcc12ec7ceb25893f63878df31d3781b32e59d88f900b6ba9",491 "language": "Python",492 "lines": 379,493 "truncated": false,494 "block": 19,495 "row": 13861496 },497 {498 "path": "neurocaps/utils/plot_defaults.py",499 "sha256": "749ba9e4ce7201f017fbd7234f4ce99265ff7f69276999acbbfa028ec2870065",500 "language": "Python",501 "lines": 623,502 "truncated": false,503 "block": 19,504 "row": 14339505 },506 {507 "path": "neurocaps/utils/samples_generators.py",508 "sha256": "d9efa572fe564c09e9ccce4cc827ce9beadec88ea627babe58621e006b9e7657",509 "language": "Python",510 "lines": 290,511 "truncated": false,512 "block": 19,513 "row": 13043514 },515 {516 "path": "tests/conftest.py",517 "sha256": "dfd8ec1cc8e1f04dd05a9535ca09a03dd44d46d2e40802052f67cbf056ee8d7a",518 "language": "Python",519 "lines": 99,520 "truncated": false,521 "block": 19,522 "row": 10340523 },524 {525 "path": "tests/test_CAP.py",526 "sha256": "4b63246f2c46e4d3710f46dd4602e3f5f4bef202192d66a8e360101a0d2cabf6",527 "language": "Python",528 "lines": 1314,529 "truncated": false,530 "block": 19,531 "row": 14564532 },533 {534 "path": "tests/test_TimeseriesExtractor.py",535 "sha256": "1e697377b18cb72db512f072705bb3431b8e6f31bcd31fab05dd9456ec482e81",536 "language": "Python",537 "lines": 2868,538 "truncated": false,539 "block": 19,540 "row": 14634541 },542 {543 "path": "tests/test_change_dtype.py",544 "sha256": "72566db0170eb461dba0893a5442567add2df5a3031e6b09c29356c44e2d3304",545 "language": "Python",546 "lines": 59,547 "truncated": false,548 "block": 19,549 "row": 9773550 },551 {552 "path": "tests/test_custom_structure.py",553 "sha256": "76205c8e8410b6d683f3be2f90468c5ff8cd4f3152ca6138ab633f7c99a9960e",554 "language": "Python",555 "lines": 159,556 "truncated": false,557 "block": 19,558 "row": 11829559 },560 {561 "path": "tests/test_decorators.py",562 "sha256": "df977ba2605a1a6ba9058f071f9a3dd300cb44b4f32d20bb58cc7bd39df30ad3",563 "language": "Python",564 "lines": 64,565 "truncated": false,566 "block": 19,567 "row": 9928568 },569 {570 "path": "tests/test_exceptions.py",571 "sha256": "63518c831d1655d37955115309edbc25d5dbac9e1ad46c1f140b762ec0554fd3",572 "language": "Python",573 "lines": 92,574 "truncated": false,575 "block": 19,576 "row": 10640577 },578 {579 "path": "tests/test_merge_dicts.py",580 "sha256": "ade23e2f3a2e737c0e2b249e41b917686007eb6d27b1e62bc51fb4e2a5a76c30",581 "language": "Python",582 "lines": 206,583 "truncated": false,584 "block": 19,585 "row": 12937586 },587 {588 "path": "tests/test_parcel_approach.py",589 "sha256": "45aada13abbbd4e350a719ed89dcebdb9dce032a44f73849ffdf17a34f98b3f4",590 "language": "Python",591 "lines": 151,592 "truncated": false,593 "block": 19,594 "row": 11980595 },596 {597 "path": "tests/test_standardize.py",598 "sha256": "6c822a1478298b49e5e4d33f5d04a4163445028ce78a4dc07f1636a49e413f41",599 "language": "Python",600 "lines": 74,601 "truncated": false,602 "block": 19,603 "row": 10427604 },605 {606 "path": "tests/test_transition_matrix.py",607 "sha256": "5a8f36f3f526d61e8550fd201f464e117f41a6f27330287a756f4c36841b9ac3",608 "language": "Python",609 "lines": 65,610 "truncated": false,611 "block": 19,612 "row": 9962613 },614 {615 "path": "tests/test_utils.py",616 "sha256": "8ed79c375f25fccc7a532e0550ab48582a30b6a0de2159ae7f360633a921dd37",617 "language": "Python",618 "lines": 212,619 "truncated": false,620 "block": 19,621 "row": 12759622 },623 {624 "path": "tests/utils.py",625 "sha256": "8cf4257bb46f4fcd83b7cdde424baa0a49b8e2704fd919aca3c2e1f0ee6e339d",626 "language": "Python",627 "lines": 539,628 "truncated": false,629 "block": 19,630 "row": 14122631 }632 ]633}