sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
222c146d47345de16926aa5354142a91d34250cb4d56c8f647706f19884202d1
License
1,130
7
Copyright © 2022 Institute of Science and Technology Austria (IST Austria). All Rights Reserved. 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 t...
f9e33abeadc315f039bbbc3a61a94a82ec54c3ce21153badc62d9b6c1e976543
License
1,150
21
MIT License Copyright (c) 2023 Diagnostic Image Analysis Group, Radboud University Medical Center, Nijmegen, the Netherlands 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, i...
8e97587d05103ecb364d0fc880001d8088029df9dbe4a45754538d5eeeba5e3c
License
1,151
21
MIT License Copyright (c) 2021, 2022, 2023 Maciej M Jankowski, Ana Polterovich, Alex Kazakov, Johannes Niediek, Israel Nelken 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, ...
c109cdf6f600c7ce2ba9e861fbb9e5ab1f3c9f98dd56553ba61fe41eef637dd7
License
1,174
22
RNAForecaster.jl is licensed under the MIT License: > Copyright (c) 2012: Simon Kornblith and other contributors. > > 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, inclu...
6b64f428c8f47aaabbd8ff605b63ee8cc397fe16ab386290801f1a414963811e
License
1,188
21
This project is licensed under the terms of the MIT license. Copyright (c) 2023 Jasmine Y. Chan, Dr. Murtadha Hssayeni, Dr. Teresa Wilcox, and Dr. Behnaz Ghoraani Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal ...
566358bf6963ab833dae1aa386cb8617abd9b54c2a7fb760844226239330c116
License
1,191
22
The PiecewiseDeterministicMarkovProcesses.jl package is licensed under the MIT "Expat" License: > Copyright (c) 2015: Simon Frost. > > 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 r...
3be1b50836843d97b65785782c3c85054b6e1abde03f1388ae25550759d79b94
License
1,234
23
All creative work (text, plots, images, etc.) are licensed under the Creative Commons CC-BY 4.0 license. All software is distributed under the standard MIT license as follows: Copyright (c) 2021 The authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
4b9c2b4d64cbad81d4cd43b6c75d5d0b626b044499e7f86513c21432cc04f8ed
License
1,302
24
BSD 2-Clause License Copyright (c) 2023, Gregory Handy 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 following ...
ad3b0c09e3845d7b44ce5625a02dbee77d99b4558d2996181691482303df717c
License
1,323
25
BSD 2-Clause License Copyright (c) 2023, Gregory Handy 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 conditio...
2fb8576db42ace4d829ca7bb6d23111169027fc26a97c76c9b093aa6ddf99e79
License
1,391
14
The data sources of ArtBench-10 is released under a Fair Use license, as requested by WikiArt, Ukiyo-e.org database and The Surrealism Website. For more information, see https://www.wikiart.org/en/terms-of-use, https://ukiyo-e.org/about and https://surrealism.website/ Other artifacts are released under a MIT license....
341fdd2638028cf9ff825aa347419d9a7a529d072da881a1c01fde7b7afc5938
License
1,444
12
The 2-Clause BSD License Note: This license has also been called the "Simplified BSD License" and the "FreeBSD License". See also the 3-clause BSD License. Copyright (c) 2018. Allen Institute. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follow...
76b8b1955509d61a2e0dfd4d87fa0c5892253a44edc271d1a674e151b68e6d2c
License
1,461
11
Copyright 2023 Shinya Tasaki 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 following disclaimer. 2. Redistribution...
6f2fcc8aed03a8afc3a3b9572e36e136ee043109902cc057a1a93643a248a55a
License
1,468
11
Copyright (c) 2020 The Broad Institute 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 following disclaimer. 2. Redi...
eb8d277879e66826ce7b03ef0ff843c4fe7868aa7d7ef8117b3155baa6e970bc
License
1,489
30
#BSD License Copyright (c) 2018, Aziz Khan 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 notice, this list of conditions and the fo...
88612f14174128cc388d8d6347801381244821191a32d97681be27f83805aa8b
License
1,500
28
BSD 3-Clause License Copyright (c) 2023, sepidehbabaei 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 following ...
0cf9995ff5977b1e153e12ed9e3edcfccb8296b62ef3b53d8645a4407b6a85aa
License
1,503
14
BSD-3-Clause License Copyright (c) 2016, Kundaje Lab 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 an...
686841a84bc8a2fd9ae35430223c027185740e3a9c91a265d2b5b9fe25195211
License
1,506
29
BSD 3-Clause License Copyright (c) 2025, JSIERO 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 ...
b247291edde79ed3845e644529a7e9403beee778a79bc81068079726cc2f4b99
License
1,517
29
BSD 3-Clause License Copyright (c) 2020, angelolab 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 a...
4ad9a2e0a57ddacc32f9d2f9c7bd0db37a93ae4bcbecef63838f93b93f6b3487
License
1,518
29
BSD 3-Clause License Copyright (c) 2019, PySteps developers 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 notice, this list of condi...
84b109c8fbe709a05f519ccf66c988aa4aff412ea34d56c853dd6b29cc2c8848
License
1,523
29
BSD 3-Clause License Copyright (c) 2019, Diego M Arribas 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 condit...
19d276f22ab3377c7a7c6252b8e8c5412e7505df6cc68ca7cd41227791f4a53b
License
1,526
29
BSD 3-Clause License Copyright (c) 2023, Biagio Mandracchia 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 con...
bd8ef15597b3b292f3bb0feed9701c1ace5bcebe07f28fb5047ec8d3d89471b1
License
1,533
26
Copyright (c) 2014, Piotr Dollar and Tsung-Yi Lin 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 an...
91a55271b8fea1ff0a09fbd357299cbce505f57c1af62cb56c2be5c0f95e0b88
License
1,559
14
Proteomics Toolset for Integrative Data Analysis (ProTIGY) Copyright © 2015, The Broad Institute, Inc. (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 t...
c6614e6ab2e37c5685e74241d412fcd193616ad573074c96604cd602df743892
License
1,577
28
AAV_capsid_receptor code is distributed under the following BSD 3-clause license: Copyright (c) 2022 The Broad Institute, Inc. 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 sour...
10dbbba4e4a9a4d2f0e17e88f0b2f953442b803c74f3afec6ae2f95707fa57a8
License
1,622
30
BSD 3-Clause Clear License Copyright (c) 2024, Patrick L. Purdon 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 o...
d28c8c473c386e2cae45d19cec1af874dac3f414cc42c8897df1827056fdd0ff
License
1,659
31
Copyright (C) 2008-2026, Jonathan F. Donges (Potsdam-Institute for Climate Impact Research), pyunicorn authors 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...
94232e9fbd80eb4f8aa6f83c0f644e6193c92e04f6fd93b5b3f583717e743ef8
License
1,707
31
Copyright (c) 2015 German Neuroinformatics Node (G-Node), Jan Grewe <jan.grewe@g-node.org>, Christian Kellner <kellner@bio.lmu.de>, Adrian Stoewer <adrian.stoewer@rz.ifi.lmu.de> . All rights reserved. Redistribution and use in source and binary forms, with ...
2385bc1dc5f1fd657b3e517544f073c031aa3545a9f227dd5cec5bbaf7d49d3a
License
1,940
8
Allen Institute Software License – This software license is the 2-clause BSD license plus clause a third clause that prohibits redistribution and use for commercial purposes without further permission. Copyright © 2019. Allen Institute. All rights reserved. Redistribution and use in source and binary forms, with o...
27d3c17e2f27a038722d6143cec9c94978f1024fbbc3f79a20f956dbd82d02f6
License
1,971
11
Copyright © 2019, California Institute of Technology ("Caltech"), based on research performed under NIH grants to Prof. Viviana Gradinaru at Caltech, glab.caltech.edu All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditio...
78d5327e4e8ca5b908749dc3530b92c647a9fba381b785c35f7a6a040540d9be
License
2,056
20
Educational Use License This software is provided solely for educational purposes. Any use of this software for commercial or non-educational purposes is prohibited. If you use this software in an academic setting, you must cite the following paper in any resulting publications or presentations: [Sanaullah, Koravun...
93ca876afc39f3a54179a88713e39135f3eb9065cd4fdc186b84b77b60b960d4
License
2,276
41
The BSD 3-Clause License Copyright © 2003 - 2026 Broad Institute, Inc. 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, ...
949fe460eee922a8662486f16c01fbbaa7fa86d028c061951a008c11de74871f
License
4,957
86
Copyright (c) 2023, Bendik Skarre Abrahamsen 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 notice, this list of conditions and the f...
71b111620fa32c17a80ccd6db2da759d31a591e497d8b5f382174f59d1b59d49
License
11,343
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, ...
612246abbdbfb39336ebe5452a4ecc631e1714bb5ae5ddfd68a3e32a499f09c5
License
11,348
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, ...
1da933f1bf5b62261bbdf863d8c9d4544c4f569251a8705d3214bd562bb910fd
License
11,349
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, ...
ee36af7d8330cef8d82d924ce490dd40f7bf0383493f7c1d7cb4c176c0937bc9
License
11,349
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, ...
7a484ef816880f732d4543cd3ae0842c2fa7258e30a8a0c94754bc334e4d6ceb
License
11,350
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, ...
1a564f01f03879c92877c2156b28415e4a82a444977fa71cf411a58bf2708a6b
License
11,357
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, ...
43754e95c5c578a764b06a2be85d8ac38cabb75ce0c7b66845438265a799e494
License
11,366
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, ...
534e41e070f6e763133ebc572abb8943532eee5d7992c6bf0fc8f6c9fc25338c
License
11,374
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, ...
8f70bd229708775a9abc5db29f056fc022fb6ebad5e2b57573745a2d759bfdd7
License
18,288
343
This license applies to the entire repo except for subfolders that have their own license file (e.g. /scripts/utilities). In such cases, the license file in the subfolder takes precedence. GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free S...
ccf0e8ce183761bf82700126cc45a4e907b2cede024e65e3fef5c2338b9b7063
License
18,625
173
## creative commons # Attribution-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 lawyer-client or other relationship. Creative Commons makes its lic...
05ab88f3f9da1d05f9c5bf0a7c45c49a9007f877dd9c237a5bf668276fe04c3b
License
18,651
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...
d9dcec660b8d64417bcf07878394621188a632d846ce1f68021a6489f2f2f32d
License
33,208
204
ChemPredPD - Classifiers developed that use quantitative single-cell fluorescence variables and images, to predict control and subtypes of Parkinson’s disease (PD). ©2022, The Francis Crick Institute All files in this distribution are part of ChemPredPD. ChemPredPD is available here: https://github.com/Min...
8cac98f4ff7064e16556d6e3550f65feef6c4ffb6fad28a05738589738338a2f
License
34,481
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. ...
4ea9d261ea98d5f560f5401e72a1fefa8bb1973a35bcd3eed60a733d271f61b8
License
34,881
595
GNU General Public License ========================== _Version 3, 29 June 2007_ _Copyright © 2007 Free Software Foundation, Inc. &lt;<http://fsf.org/>&gt;_ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ## Preamble The GNU General Public Lice...
107d7336195ad3bc3f71f581100bf599c6d37744edc471ceae081f1615c0c01f
License
35,064
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...
ac7e15eb25c390cdc0c4e7c68af94f0e2743a80257e7a1ae66b9239109e0e6f4
License
35,079
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...
7a22f6ca5e3d0258e86cae57edc76583fe0dd9802d34a75293f8488511850eed
License
35,089
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...
f432e825f62a77d048e724768c096a7a7889fb7be1f748e4923247cdd384a98e
License
35,188
678
--- template: overrides/main.html --- 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 allo...
e4adc9a0af95d4eed7cf1466ae01ae5d9a34367ef1c587a6962de0f143e4ad26
License
35,398
682
Copyright (c) 2023, Vikram Singh, Dr. Vikram Singh All rights reserved. pcrp is distributed under the terms of GNU LIBRARY GENERAL PUBLIC LICENSE version 3, provided below. ------------------------------------------------------------------------- GNU GENERAL PUBLIC LICENSE ...
f365052127b5d4dd839d820ff79ecbccab46cd6f872e96d14d4290d3565d8918
MATLAB
41
2
function deleteDaqSession(s) release(s);
db913ee6bed37bafa526482f86ee2e3ae745fa4fd5f7dfcc6bc2d72e1f3ac711
MATLAB
45
2
function CloseAllWav PsychPortAudio('Close');
aabe71627e582df8aebfa2e511075b52febff85eafd4db9823b5d139bbf4eeb7
MATLAB
48
3
function b=max2(a) b=max(max(max(a))); end
7913ff3813cdbee30caa28127b3d1a9ef1f03b124c0aed776fb2bec223d6a730
MATLAB
55
3
function z = r2z(r) z = 0.5 * (log(1+r) - log(1-r));
d63411adfaf988b1538ed19fa2c9be53664172243b0170862273c18adff40f7a
MATLAB
56
5
function y = logM(x,M) y = round(log2(x)/log2(M)); end
a5cee56832f283074abad0d9550a28125c4baa816b5268be078b55716489dfd4
MATLAB
62
2
function PlayWav(pahandle) PsychPortAudio('Start', pahandle);
d024ca1db9799f966dadafc90180741ac46b16bfcdbe63a4727d3da45a211d6b
MATLAB
62
3
function y = nanzscore(x) y =(x - nanmean(x))./nanstd(x);
553cf383cc83341b1523c6433b92dc7489622b62272a74efbca83f8c80db30a9
MATLAB
64
2
function DeleteWav(pahandle) PsychPortAudio('Close', pahandle);
cbd44b3b647655791c7c52985b2c701e3a313e4a05e0d7883b41153f1ab42172
MATLAB
66
2
function out=open_file(out,file_name) out.fid=fopen(out.file,'a');
7973b282a148ba8acea08d0f61c23bdadec72bc58f61594649c6635b581ff7c8
MATLAB
70
5
classdef DB_container < handle properties data end end
75ecdc68062ec48792193bb1dac05908f77f22ee48a1a1f7222dddb204038ee6
MATLAB
72
3
function [u] = triuToVec(m) u = m(logical(triu(ones(size(m)),1))); end
6a82979ab63711c94116976840edf0616fbc8665f22f93dea1fa7ba72cad01d1
MATLAB
79
4
function res = rectify(vect) % Halfwave rectification res = max(vect,0).^2; end
64b8c4d3883fc58d35773d5c6368296a02278c3cfb66d0251dc3850aa9301c28
MATLAB
85
3
function output_dir = read_output_dir() output_dir = "../Simulated_Data"; end
c1271805adece610b0b4073f12e7db357486fca99b3ace3a0a02eb7db88274ea
MATLAB
88
6
% Add MIRO folder to the search path cd . oldpath = path; path(genpath('.'),oldpath);
4d70ef7f8ac77ab77f893a5a53c8980fceeefbb90ea9582916f527b6c7293f04
MATLAB
91
4
function [ishidden] = isHiddenName(filename) ishidden = strcmp(filename(1), '.'); end
ca229e16c99b7c7685bc142b8e099db829a1c7bdd5b2a8e1931c58a833ade670
MATLAB
93
5
function out=close_file(out,file_name) if ~(out.fid==-1) fclose(out.fid); end out.fid=-1;
cd4be4dc4f3b91b27e90d1aeb7619c9dd89bdc7c8053fb8de56c47a7d2d72108
MATLAB
95
4
dfc_645=load("normalize_dfc_2500_subject_1_time_1.txt"); imagesc(dfc_645); colorbar; axis off;
50f6a31ebe29af301fc0a2a986fbf93a1812f8e733d434ca992039b6ffc57242
MATLAB
96
5
function H = H_dis(p) %% compute entropy in discretized data p(p==0) = 1; H = - sum(p.*log(p));
c5f25488c91fc50a405807d5cb01911f30414c78261e9fe95ee3d3f18a41b14a
MATLAB
96
5
function status=CheckWav(pahandle) si=PsychPortAudio('GetStatus',pahandle); status=si.Active;
a81ff6dc347d6264e7311d30aa240ff77c55e33c4fd8dc26690b7bfa0f065d0c
MATLAB
97
2
[~, neworder] = sort(lower(fieldnames(rez.ops))); newstructure = orderfields(rez.ops, neworder);
a46532e53c3637b98204efb0c1d686aff6b1aadfc2f5a647dd524934c8a03aa8
MATLAB
103
4
function generatePanels_Fig01(Fig01) plotsingleEvents_Fig01(Fig01) plotScatterPlots_Fig01(Fig01) end
2325fa5ad00001ef410eda5c8b654dcf4eed3b8a7d5464df8c2f318f1ea21797
MATLAB
104
4
function val=get_samp_rate(rx8) actx_cntrl=get(rx8,'Controler'); val=invoke(actx_cntrl,'GetSFreq');
b4192c3feff2c316f54269c8cd2a09e0d3852a8740a0be151e63b1c9327440a4
MATLAB
104
5
function display(obj) disp(sprintf('%s object', class(obj))) disp(struct(obj)) t=struct(obj); whos('t')
8acd2042e71da8cc19ce37db66396199d9abc74d8fa868ae52ce2dfd3da8f1c9
MATLAB
107
7
function sendtrigger64(trg,port,ioObj) io32(ioObj,port,trg); WaitSecs(0.003); io32(ioObj,port,0);
1c13117c8c4c752083ce53865d8e95ac642133b4857deb33212b584ac3b9b45e
MATLAB
111
7
function f = MIRO_tophat(f,smp,alpha) sz = round(alpha*8*smp); se = strel('disk',sz); f = imtophat(f,se); end
788fb5c75837a2fca59943b665665dbc5d1aec5897d3ce222baf91c277a89434
MATLAB
112
6
function gui_warning(message) disp(['[' 8 message ']' 8]); warndlg(message, 'Achtung!'); beep; end
8dd6b277da028a9cada96d0332f886284ad08b6450406bb10ca8352d87474079
MATLAB
112
4
function val=get_tag_size(rx8,tag) actx_cntrl=get(rx8,'Controler'); val=invoke(actx_cntrl,'GetTagSize',tag);
21d1699bc44ac628071455a5d32038a14d6681c61709d806de130c24dcc1f5de
MATLAB
119
3
sequences = importdata('example_data/random_sequences.xlsx'); hammDist(sequences, 'example_data/clustering.csv', 3);
d029b2a87ddfde8cd17e08958849068550b7015bb14f18f2beac5663d945d8b3
MATLAB
120
4
function val=get_tag_val(rx8,tag_name) actx_cntrl=get(rx8,'Controler'); val=invoke(actx_cntrl,'GetTagVal',tag_name);
b6c8c0d6510c562b5e4cd3614998a25e4c1641abe0e0b3552e22c0fe15729246
MATLAB
122
4
function [array3] = insert(array1,index1,index2,array2) array3 = [array1(1:index1), array2, array1(index2:end)]; end
74fd4205f06c1b271ca9ce3e667f68a50864608869bb1400b1deecd7639d3cfa
MATLAB
129
7
function out = nothing( varargin ) % NOTHING does nothing and outputs an empty array. % Author: Lasse Osterhagen out = []; end
df7509d42da282b2e8781b0b982116767ebaea278e7f5e6780c8350f46614a56
MATLAB
133
4
function normedData = normalize(data) normedData = reshape(data,[],1); normedData = (normedData - mean(normedData))/std(normedData);
3b0f4667f1111beec30691e81915e033600995882f3c57c6e47112fd23c48054
MATLAB
135
5
function write_trial_data_result(out,file_name) data=out.trial_data; num_data=out.trial_data_npts; save(file_name,'data','num_data');
6628c05339861bd8f3b58fbe08e93d40abcdeb93df495bf356ceb88600ec6187
MATLAB
138
5
RSDME.calcRSembed RSDME.languageDominance RSDME.fMRIembedding RSDME.segmentSNR('envCorrDBTorth_gamma','RS','OptionSet','earlySVD');
d2bfd389888346b36aab2e8405468ea8cfbd62c704ab069ff12c5aa363c20205
MATLAB
139
7
Ak_NAG=Ak'; %4 for 2 peaks; 6 for 1 peak [Xc,Z]=airPLS(Ak_NAG,10e8,5,0.2,0.5,20); Ak_denoise=Xc'; figure plot(Ak_denoise) legend('1')
bb14513b506f2e63a97f900ccc79ced1eb8a4fa29e02a6801434dc4f864606bd
MATLAB
141
6
function sd = compute_sd_from_t(mean_value, t, n) %t = mean / (SD / sqrt(n)) %thus, SD = mean * sqrt(n) / t sd = mean_value * sqrt(n) / t;
7dfe8d3b4ffe18d36aa8b884252209c77117895d8033f7066b8c9a43035ff628
MATLAB
143
5
function atten=get_atten_display(pa5) actx_cntrl=get(pa5,'Controler'); dev_num=get(pa5,'Device_num'); atten=invoke(actx_cntrl,'GetAtten');
7d9df3331868ea93c5d3dde5e8ba9858c391f99fa7616bae4a11b9064e0a80db
MATLAB
148
4
function treat_error(msg) % TREAT_ERROR invokes a MATLAB error. % TREAT_ERROR(msg) invokes an MATLAB error with msg as an error message error(msg);
987c1e438a462f8505e46d7ea64d81f51334354e63b5f1f1030d6360295ea55d
MATLAB
148
9
function generatePanels_Fig04(Fig04) %% Fig 4 Panel B plotsingleEvent_Fig04(Fig04) %% Fig 4 Panel C-E plotPopulationData_Fig04(Fig04) end
2b855a90de1be6e3ded8da85266f1e2d9366e9c8ad66cfa82382dab718dc296b
MATLAB
150
4
function f=treat_error(msg) % TREAT_ERROR invokes a MATLAB error. % TREAT_ERROR(msg) invokes an MATLAB error with msg as an error message error(msg);
9af7b1955170f01534dae7fd8b91ec66673443874201e73abdcc4b56baa3a282
MATLAB
150
5
function B = SE(A) % A: input matrix (repetition x j) % B: a vector containing the SE of each column of A B = nanstd(A,[],1) ./ sqrt(sum(~isnan(A)));
afca24bc0d99ffe077c481f4c02390f442a995827b43e301fd5e232771386cf3
MATLAB
152
7
function v = ToVector(im) sz = size(im); if size(im,3)==3 v = reshape(im, [prod(sz(1:2)) 3]); else v = reshape(im, [prod(sz(1:2)) 1]); end
1a8c2bbb79e3726de49364e19eb4aae55df0e190dc788c22ffe805c35c6650f6
MATLAB
159
12
function ROI=fb_remove_roi(ROI,DEL_ROIS) % % % % % % pull in data, if cell, then map to multiple ROIs ROI.coordinates(DEL_ROIS)=[]; ROI.stats(DEL_ROIS)=[];
54730acd1675b7cd98b43060105b5f8a1e2f39217cbc90c3b8577cf465bc76a1
MATLAB
159
5
function voltage = nernst(concentration_in, concentration_out, valence, data) voltage = (data.RTONF./valence).*log(concentration_out./concentration_in); end
3c0517a51332efba4351b4b73682f0cb66748bc413224fa86a237226308211ce
MATLAB
160
7
function phi = phi_dis(type_of_phi, Z, probs) N_st = probs.number_of_states; q_probs = est_q(Z,N_st,probs); phi = phi_dis_pq(type_of_phi, probs, q_probs); end
68c64dc693658c2b0cf7ff2e7923e55fd0f869d7fc03651ab4ba999bdc7a66ea
MATLAB
169
8
function outval = round2Milli(inval) % Round a double value < 1 beginning at the 4th figure % Author: Lasse Osterhagen outval = (round(inval*1000))*.001; end
1e7079fd79872d91915a6d17b6f6d4d16b7fbc20e540dc163bcf938ff0c7513e
MATLAB
174
3
t = 0:0.1:15; %hrf = (2.2*t).^5.*exp(-2.2*t)/gamma(6) - (3*t).^15.*exp(-3*t)/6/gamma(16); hrf = 0.5*[(2.2*t).^5.*exp(-2.2*t)/gamma(6) - (3*t).^15.*exp(-3*t)/6/gamma(16)];
a0cb63c23ef6e9b61a7c1ec8fa67ab4f501cbd0b4131d0dbe4938919d5256c86
MATLAB
175
8
Res=1; %arraydata=zeros(1,5000); realDataSizeWords=zeros(1,1); [res,arraydata,realDataSizeWords]=AO_GetNextBlock(50000); %AO_GetNextBlock(5000,arraydata,realDataSizeWords)
3dde02c63c59e202f8c77055958294aa794c85b648c965e8674de22131c42612
MATLAB
182
8
function both=check_both_ears_silence(line) rear=get(line,'Right_ear'); lear=get(line,'Left_ear'); if (strcmp(rear,'SILENCE') && strcmp(lear,'SILENCE')) both=1; else both=0; end