sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
17k
content
stringlengths
1
200k
5c5512590206fe695a4a92b0cf62ed99646beffbf4ad8afbc271911950aa90a3
License
1,545
29
BSD 3-Clause License Copyright (c) 2019, Developmental Cognition and Neuroimaging Labs All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright n...
7c3c3fde4b691ca2ab80c2baffbe30986a5dac355415b6776e67f0f7cd4b960c
License
1,549
28
MIT License Copyright (c) 2024 The Chemprop Development Team (Regina Barzilay, Jackson Burns, Yunsie Chung, Anna Doner, Xiaorui Dong, David Graff, William Green, Kevin Greenman, Yanfei Guan, Esther Heid, Lior Hirschfeld, Tommi Jaakkola, Wengong Jin, Olivier Lafontant-Joseph, Shih-Cheng Li, Mengjie Liu, Joel Manu, ...
4ebb0391c5cbb0d9111b127884ab79998bec5b4d7fab1c3b405eacd1eaf2f550
License
1,652
32
The Clear BSD License Copyright (c) 2023, SurgeCare All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: * Redistributions of source code must retain the...
1fadfadaaddace9b5a9f0b6a47d2b1b89419d851e6beb075d5c25bef18441137
License
1,675
27
Copyright (c) 2018, <COPYRIGHT HOLDER> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
3d1334f2a1e64fbce81aec964732cea9a30eb15d90a594f08f43732b4b743589
License
1,771
40
MIT License Copyright (c) 2025 Francisco Joaquín Tassara Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
e3d38faeb84202999e91c22c05ff96b5e652fec979177b880b3955aabad1a617
License
1,771
40
MIT License Copyright (c) 2024 Francisco Joaquín Tassara Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, ...
2f4aa907148f4246d6b5ee192eca7d271bcf89adc5c2ba5c50442f5f3c09bb42
License
1,803
60
Spl-IsoQuant: A universal toolkit for upstream processing of long RNA reads Copyright (c) 2022-2026 University of Helsinki Copyright (c) 2020-2022 Saint Petersburg State University Spl-IsoQuant is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, Version 2, dat...
92af97f87b1ae6ad452106c63bbbf9c58b23269bf43ac88080afdae61827acdb
License
2,503
15
Copyright (c) 2026 10x Genomics Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, and/or merge copies of the Software, in both source code and object code format, solely for your internal use, subject...
6766e225922f4d2e5701da945642378ccec559588109de2fdf0ffc1374bb4dda
License
5,173
105
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Pream...
46633d9b124044cc1ff3d3891e45d3d866b9c6d29896d62d81072b6c5868816b
License
6,894
39
Creative Commons CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF ...
a2010f343487d3f7618affe54f789f5487602331c0a8d03f49e9a7c547cf0499
License
7,048
121
Creative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WAR...
da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768
License
7,651
165
GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU L...
ceb78ee847e76f67a6a521a5732dc3373aed07eee003d738a572dc96705f08ff
License
10,256
202
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the c...
2e1faa05bb91574fa388220185f57b3607701714053971f704a3b32bceb9851b
License
10,480
194
Apache License ============== _Version 2.0, January 2004_ _&lt;<http://www.apache.org/licenses/>&gt;_ ### Terms and Conditions for use, reproduction, and distribution #### 1. Definitions “License” shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this ...
cef816e6cbf30a3d0001cfe9d644c029cd74bee13861a603e696eb41aeecbffe
License
10,762
190
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
61c34b8f846d64c277eb49eff07914fb949577fcd0881cfc0e07fbd97bbe1f67
License
10,861
205
Copyright 2026 Forbes Avila (Center for Alternatives to Animal Testing, Korea Institute of Toxicology / Human and Environmental Toxicology, University of Science and Technology, Republic of Korea) Jin Kim (Department of Physiology, College of Medicine, Soonchunhyang University / Institute for Molecu...
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4
License
11,357
201
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30
License
11,358
202
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
c5d48417923d9f658c6d5f225917ab482818140978d4a181b7f8a3321bb25646
License
11,387
181
License Section of Biomedical Image Analysis Department of Radiology University of Pennsylvania 3700 Hamilton Walk, Floor 7 Philadelphia, PA 19104 Web: http://www.med.upenn.edu/sbia/software.html Email: software at cbica.upenn.edu SBIA Contribution and Software License Agreement ("Agreement") =======...
ff93b6fdf1d59f7c48ca7f44f2d0db47bb7743a1c6fa0f4c5f4d7809f78ce70e
License
11,428
201
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, ...
62f171d4d8b6726df61f18a6bbc0a70f79c4bc2134d837d35c81fc6289a2d84d
License
17,941
336
GNU General Public License ========================== _Version 2, June 1991_ _Copyright © 1989, 1991 Free Software Foundation, Inc.,_ _51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA_ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ...
8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643
License
18,092
339
GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is no...
c54c2574b0a5ec39af6da4535f3968f8c5761d90ef5e4d57ae4292bd18bd4841
License
18,654
397
Attribution 4.0 International ======================================================================= Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other rela...
9e5f1b3c610b9c2da5c313bf81d577a7d1acec686bdb0384edefa6df0f90cd94
License
18,656
395
Attribution 4.0 International ======================================================================= Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relat...
9ba9550ad48438d0836ddab3da480b3b69ffa0aac7b7878b5a0039e7ab429411
License
18,657
396
Attribution 4.0 International ======================================================================= Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relat...
db2e35513dbadcdc67f5819a3bfee2777786538dd3531620cd5fbd4b6ed6e538
License
19,345
407
Attribution-NonCommercial 4.0 International ======================================================================= Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client ...
40afb0570049e143a1ca754d19172bfeecdfe256f0339a2862d902ef771d80e8
License
19,581
350
Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons ma...
58032a8173195237068ab02d429948bc3233d8e6858d1b9ddfdc47e3bbc3d847
License
20,844
437
Attribution-NonCommercial-ShareAlike 4.0 International ======================================================================= Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a law...
1349a4b6148492b44f629e64eed676612e234fe9a839e4f3b277c1482c8849f1
License
20,849
437
Attribution-NonCommercial-ShareAlike 4.0 International ======================================================================= Creative Commons Corporation ("Creative Commons") is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a law...
14792df6e97d717d4b2d3761665bd48dbbad57838350d77d6689711ba8da3d96
License
22,072
441
We provide our code and data under a CC BY-NC-SA 4.0 license, "As is" and without any guarantee to the scientific community for academic and research purposes, not commercial use. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/4.0/ ==========================================...
8486a10c4393cee1c25392769ddd3b2d6c242d6ec7928e1414efff7dfb2f07ef
License
34,523
661
GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ...
31b5cb25f71100bb2fd9e8a80aca741bdf88d038e35c2b267e3fb905459eac50
License
35,082
674
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Pream...
589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2
License
35,141
674
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamb...
d62f065830aa3739cc031156b9690805c7b2e811b4a178c8b4acd8725d561c94
License
35,142
675
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamb...
8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903
License
35,147
674
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamb...
3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986
License
35,149
674
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Pream...
e57f1c320b8cf8798a7d2ff83a6f9e06a33a03585f6e065fea97f1d86db84052
License
35,150
675
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Pream...
81cbae84a29ce7e770bf2bc7b178e50bda0ce8de6067aba661b0bc7b05b562f8
License
35,821
674
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ...
0c944e60f2140df3aaa1c17f7e4ed1e3699bcf647cf9e38623180ff5e86ac971
MATLAB
4
1
1 2
4e5bfd94a05464f46abcec07edd0717e8efd2181b7227dac087a2bb0e6d43053
MATLAB
4
1
2 4
f5156b6bae57626bc3998a8eb5352f1e5dddb756e6f30fb4c765fa07cd7d9811
MATLAB
10
1
Nan 100 .
75e50fa16d59c94d1d0719010cf98272ee2a8c1af3e2a910b785294db09cda90
MATLAB
15
1
1000 2000 3000
b5c869526a82e00af6a200026046110987c74ccb2f909724d3fe28cc97ae5218
MATLAB
30
2
function c=char(t) c=t.names;
b7cef5e215f70eb84efe463cb2086b4c6d23283e675bc4ee6c6da8383c628d1b
MATLAB
33
2
function X=double(t) X=t.matrix;
346568e40d481d7c297cea8b6b22d6bcec6df0fd582a8eff466099838bf8e239
MATLAB
43
2
function s=isempty(t) s=isempty(t.matrix);
1650f5e5d7d1dd779316bdb9beddf3e832ad761392713e8097022e521d82c1d8
MATLAB
46
2
function t=subsref(m.s) t=getfield(m,s.subs);
d8e8437465889f4263d09ff53f10b365acb137cfadd3ee64f9f2162352d41c7b
MATLAB
46
4
function Z = AS_PtoZ(p) Z = norminv(1-p); end
7ae8d12b692453c2d411749e5ea4326a281762d991f3d01ee12c2fcd5b90c8b8
MATLAB
57
3
classdef Test < handle %TEST Base class of tests end
9fd6e626f24d8009c89f32657cf2a1b51803cf725bd4c16cbef7ba97f8b5166a
MATLAB
57
4
function z = abs_ge(x, y) z = abs(x) >= abs(y); end
75bdd4338114381af047529d2a9e67e0fbdc03ec695b4b96d70c8cb8f2d6c811
MATLAB
62
5
classdef Direction enumeration X, Y, Z end end
1eaa289f069b6cf18cc440f8e707c459afa67a73970184eacaef0542aa012b4f
MATLAB
65
3
function [nm,nv]=char(m); nm=char(m.mean); nv=char(m.variance);
d75adc4a35b24fd120e407237616612d1c863c1bd5ea5ad0485d760bd7dadfd1
MATLAB
65
5
classdef FigSize enumeration SMALL, LARGE end end
2ac545959a32dd6156bb41cad9020acf77f91d4a70e376fb930adb0fb57157fd
MATLAB
67
3
function [x,v]=double(m); x=double(m.mean); v=double(m.variance);
fac7bab679c2b3a2266c75fd19e0215ab4803b3130220541bbc1061efa923664
MATLAB
68
5
classdef MeshType enumeration STD, INF, VINF end end
2eab3847dbb6a32f5646e34e31bbee30a148731668042f1fa888544887021ff7
MATLAB
72
5
classdef PlotValue enumeration PVALUE, STATISTIC end end
f204696240b7493d557f3f1d9b7d6ae6f7bc91896a69b0a06158004bf39c3f52
MATLAB
72
5
classdef FigMargins enumeration NONE, WHITESPACE end end
257ade8eb6876be9138ac6ef5b9e19cd7769190b06d217edbdc1710abe6a67d4
MATLAB
73
5
classdef MatrixType enumeration MATRIX, TRIMATRIX end end
0e2c0586603e56a703e673c225e578924183fc6e984e53a085e66240aeba831e
MATLAB
76
2
function s=isempty(model) s=isempty(model.mean) && isempty(model.variance);
28f00868cd515ea51dc5ee0d2b34e2b5b28ff935406000749b9eb25cd18bba96
MATLAB
79
7
mex abs.c mex max.c mex min.c mex minus.c mex plus.c mex rdivide.c mex times.c
73587bf7fb4587ef619cdf6f99ec09647401ca0d2a7d154330655c8a7c87d4d6
MATLAB
80
4
function [q, P] = kalman_predict(q, P, A, V_q ) q = A*q; P = A*P*A' + V_q; end
36397ecdf3f6b3ed7fd1ee9f87ca21d14da492c35d2ecf5e223a59b5e5ce5fa8
MATLAB
81
6
classdef PlotType enumeration FIGURE, CHORD, CHORD_EDGE end end
8d9778104408d6159cd25d910c0d39e4a6392ed86feba6ca46c2be7078405506
MATLAB
81
5
classdef CovariatesEnabled enumeration NONE, ONLY_FC, ALL end end
570259f18cd9b1ec615b1a1dfe01ce37804f6c0be1036f17d6c08ee1d2467c64
MATLAB
82
4
function BCCT_CON_SurfROI_GUI uiwait(msgbox('comming soon')); BCCT_SCN_GUI; end
402d440be10d4046118971e7bb68b35c6dbdae53b4b516cf0ed0a44f0d64a9dc
MATLAB
84
4
function BCCT_CaSCN_SurfROI_GUI uiwait(msgbox('comming soon')); BCCT_SCN_GUI; end
555ccf8860a777e08dcb4354bce395ffbdddec24228207787b1b1074947a189e
MATLAB
85
6
function s=mpower(m,p) if p>=2 s=mtimes(m,mpower(m,p-1)); else s=m; end
715f7f3e7c173b05121cf633b9f2f763a5a2fb5b70c96437bc649277d268cca4
MATLAB
86
4
function returned = permuteVector(vec) returned = vec(randperm(numel(vec))); end
9ac18207835a965684a77303adfe2c1a16842ab66de8813c1bf83f7fee3bafec
MATLAB
86
3
classdef TestResult < nla.DeepCopyable %TESTRESULT Base class of test results end
2150561817492f52532ab18e409d5ad38c34ffe2f8e7ca405a89991aec63e70c
MATLAB
87
5
function P=power_signal(x) % Computes power of signal L=length(x); P=(norm(x)^2)/L; end
d2eb5ea3740a70c04c8d8d51f70787beb2d3932d068b0852f574e73924003ec0
MATLAB
87
4
function BCCT_MOD_SurfROI_GUI uiwait(msgbox('comming soon')); BCCT_Modulate_GUI; end
b7414a449015a213a2fb79bfd58ec903d6447b3ec06fd9e504307a1aad7d985c
MATLAB
89
5
classdef ProbPlotMethod enumeration DEFAULT, LOG, NEGATIVE_LOG_10 end end
5121448334479df63d4d140c8b6e4b60d2584b3b2fbfccb1bd081a7c6ee9809e
MATLAB
91
5
classdef SigType enumeration INCREASING, DECREASING, ABS_INCREASING end end
613805af21c98b6d912823353770a1cff772b9c0df8fb8d093c90ebebbb3c469
MATLAB
92
5
function s=size(m,dim) s=[size(m.mean) size(m.variance)]; if nargin==2 s=s(dim); end
34b4b1c55974f6d828f1933e0cc3d787e91f84c88724fc2e0aa8049a37a70e17
MATLAB
97
6
function s=size(t,dim) if nargin==1 s=size(t.matrix); else s=size(t.matrix,dim); end
8ebd100cd6f56c5603ac1ebc9544c5c81db4adb785f20a31a8ea2e87d1087c48
MATLAB
98
7
function B = binarize(sFC,threshold) B = sFC; B(B>=threshold) = 1; B(B<threshold) = 0; end
dc3c1be662187ca4a7cd7d213da171cb9adbb186e713b8b72c75b18047c82ebd
MATLAB
101
5
classdef ViewPos enumeration LAT, MED, POST, DORSAL, LEFT, RIGHT, FRONT, BACK end end
97d98f567012b67fcd26dc9acbdfa5d61c0229b249db2e5d30fa69ae28ae3600
MATLAB
102
5
classdef BrainColorMode enumeration DEFAULT_NETS, COLOR_NETS, COLOR_ROIS, NONE end end
d30abc7a48de55c591cd0ea333192768d16e01d72f581252d824b9926dbbea62
MATLAB
102
3
function m=I %Identity matrix for the variance in a model formula, same as I=random(1). m=random(1);
feca0be8822f57d99f5638b9c8ad2106e3eca4fc6bf191285039c5867c45cf20
MATLAB
107
7
classdef DialogOption properties (Constant) YES = 'Yes' CANCEL = 'Cancel' end end
ebf01c01a3c89b6d6dbdb4862ca63003de9d84db432a5ecbadcbd540423c90ee
MATLAB
109
3
function repo_url = nst_get_repository_url() repo_url = 'https://neuroimage.usc.edu/resources/nst_data'; end
aaaa3555693df91578cc94b4f800d421c1e540428bf413a41796794e52d865d0
MATLAB
110
7
function I = mipp_signalEveningFilter(I) I = double(I); nrm = prctile(I(:), 99); I = sqrt(I/nrm) + I/nrm/2;
b7facefa1025e7ce39a2de3c0b1fd5870fe6ce1b7ee95439511944047ad17503
MATLAB
111
7
function par = mipp_parameterFilter(pin) par = pin; rmind = par == 0 | par<=-6 | par >= 6; par(rmind) = nan;
8d74c16c232c273803a84fed80461bcdcfbc7578332d9391912ecc4f99258abc
MATLAB
112
5
classdef Base methods (Abstract) permuted_input_struct = permute(obj, orig_input_struct) end end
5d5f42544008ec716c1c4a1537fad21c0bdf93e0801060c4b4cc6190fb02a524
MATLAB
116
4
function [eta] = compute_ai(h, noise_cov, data_cov) eta = (h' * inv(noise_cov)* h )/ (h' * inv(data_cov)* h ); end
ae455ad3570dd970e564c1e266fb663a2421a923229081d40097230a3fa6a366
MATLAB
116
8
function s=mpower(t,p) t=term(t,inputname(1)); if p>=2 s=mtimes(t,mpower(t,p-1)); else s=t; end
97575b724cf6c33e88443b38bc85f75327424acea2bd67d31984242ff58d00dd
MATLAB
117
5
classdef NetworkLevelMethod enumeration NO_PERMUTATIONS, FULL_CONNECTOME, WITHIN_NETWORK_PAIR end end
03aa85f5655176e7717f1dbf836f71a4624f0026fd87e302656ab16702cc5918
MATLAB
118
4
function returned = triNum(n) %TRINUM Calculate the nth triangular number returned = (n .* (n + 1)) ./ 2; end
527251e09203f4904025c2cf4719c34017b99d56065bac28221835dbfdf98961
MATLAB
119
5
classdef EdgeChordPlotMethod enumeration PROB, COEFF, COEFF_SPLIT, COEFF_BASE, COEFF_BASE_SPLIT end end
9f76007f3f43ff1bf17c37507560c1ed9977dd479fe17a1a1732922d5bbfbd9f
MATLAB
122
8
function [v] = squash(m) %UNTITLED Summary of this function goes here % Detailed explanation goes here v = m(:); end
b672a1dc8bcd8480a7fbbc4033d324d2dd39733a18fc117a3d16da53bd61b076
MATLAB
124
5
function xps = resQ_xps_example() % function xps = resQ_xps_example() data = load('resQ_xps_example.mat'); xps = data.xps;
db7a7bee33e0e50240898e954f1e1d177866c1debdfaf70ee3316804ea8a3784
MATLAB
126
6
function show_info(data) if isequal(data.info,'NaN') msgbox('there is no information') else msgbox(data.info) end
9dab4b9d005e3961efaab043ebd3206d5f56acfc5f4a2d814295dfd3500fa16d
MATLAB
127
5
function save_work(data_to_save) global data listbox listbox_value = listbox.Value; data(listbox_value) = data_to_save; end
965764aaf605169b4942fec4162c9a631045d88e3274b372c7e86701cfe7aa30
MATLAB
133
8
classdef DimensionType < double properties (Constant) NROIS = -1 NROIPAIRS = -2 NPERMS = -3 end end
c6c9caeeff98b975bf8e9c540993574102deb2439cd4894db252ac7b7e490caf
MATLAB
133
3
function local_nst_dir = nst_get_local_user_dir() local_nst_dir = fullfile(bst_get('BrainstormUserDir'), 'defaults', 'nirstorm'); end
85b2296d3d1133102261b58b1c0fab36fc62835fc6231ed98ed75c1fe009fba8
MATLAB
134
4
function returned = triNumInv(x) %TRINUM Find n corresponding to the given triangular number returned = floor(sqrt(x*2)); end
b4ecf17c60e6dde861eaf5b327aa4d11b20ea71ea37272ad193eff007ea13b9f
MATLAB
136
6
function opt = mipp_resQ_opt_nocov(opt) opt.resQ.lb([8 9]) = 0; opt.resQ.ub([8 9]) = 0; opt.resQ.lg([8 9]) = 0; opt.resQ.ug([8 9]) = 0;
90380f5afc53696be01d111ed21121c1003a3bdce95a00f41ae027d7bae2192e
MATLAB
143
6
function [f] = calc_obj(R, S_R, T) logdetR = 2*sum(log(diag(chol(R)))); %f = T*logdetR + trace(R*inv(S_R)); f = T*logdetR + trace(R\S_R); end
941b6de7a98bb4e1b4d550649b0aea55bfc93ef5eb018e230e3d109d16f1997c
MATLAB
146
4
function data_fn = utest_request_data(data_bfn_parts) local_fns = nst_request_files({['unittest' data_bfn_parts]}, 0); data_fn = local_fns{1}; end
77b3ff3ebb1acc8706091a113de0665bbab4488ecb04a64c28755998b0a730ad
MATLAB
148
6
function [q, P, Kf] = kalman_update(q, P, Y, tmp_, XI) Kf = P*tmp_'/(tmp_*P*tmp_'+ XI ); q = q + Kf*(Y-tmp_*q); P = P - Kf*tmp_*P; end
bdc5b50f11ea4cb664ae8ea950e6ff477f6d75b0d85d23aec71840e6d40245af
MATLAB
148
5
function c3 = mixColors(c1, c2, fac) %MIXCOLORS Mix two colors at the given factor (between 0 and 1) c3 = (c1 .* fac) + (c2 .* (1 - fac)); end
eabdd12abdb5838c70e2c0823460520a1482d1d78d82ef96770386043f39c651
MATLAB
149
6
function hash = hash(fpath) %HASHFILE Generate hash of file contents f_str = fileread(fpath); hash = mlreportgen.utils.hash(f_str); end