sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
51cf10d0f469ae0f80cf6fa78f57283c30c28426501746a2ccc2f65a81bc7211
C++
1,123
34
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
4eb884ec93a54d38697d163346e337587a480c963d44c0ebd00f8243d9cc2b45
C++
1,132
38
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
ab8721ccedc7ef53998bb575c86fb615156aff3edb16dbfd9a051dd47245500a
C++
1,132
43
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
54095d4b83cabd579a12e864265b6ffcfb8686ebb06a3548df7ac6b5e5afe586
C++
1,164
63
// [[Rcpp::depends(RcppArmadillo)]] #include <RcppArmadillo.h> #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] List Indiv_Score_Test(arma::sp_mat G, arma::mat X, arma::vec working, double sigma, int fam, arma::vec residuals) { int i; // number of markers int p = G.n_cols; int c = X.n_cols; // Uscor...
30f2b7a8cbdf5329fae1cede0d77685f4c2686456f37327faa8517fe70fb0caa
C++
1,171
64
// [[Rcpp::depends(RcppArmadillo)]] // [[Rcpp::interfaces(r, cpp)]] #include <RcppArmadillo.h> #include <Rcpp.h> using namespace Rcpp; // declare K double K(double x, arma::vec egvalues); // declare K2 (second derivative) double K2(double x, arma::vec egvalues); // declare bisection double Bisection(arma::vec egvalue...
1e16864aeda67e4cb8b5001fbe55c52a44d37b9f41d943a668dd6b7517e370ce
C++
1,173
48
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
3c2eddae83040cc567a8289c440e985521b7e7eb12b32b75925bca21878c137e
C++
1,173
48
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
f0ecd982c2869a8906ab897cb91b38477302f89ddcf7b9ef7245cbfeffa4240c
C++
1,173
35
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2026 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for deta...
2e1dede27eb1e142cbc2b64bf7602dabf95a958f5946b02536fe6a2a59f6a771
C++
1,184
49
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
8c5511b5a2124308d7fa01830a02f354ed8072783cf573003cbe32400b8f176b
C++
1,184
49
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
86f669be1ccca4ef34c4a822c281d1ee7859f8ef2e3c54628af13d6fcba022a5
C++
1,189
35
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2023 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for ...
cd966e1689cf2f51100ecb4dbca37522e6d4b43cd39fe591f48eaafb6841b94e
C++
1,197
48
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "starspace.h" #include <iostream> #include <boost/algorithm/string/predicate.hpp> using namespace std; using namespace s...
ff7310c3026b8cee8dc78f5569d30837edc28f7a946fc796f4abb7659c24df6a
C++
1,209
41
/* Copyright (C) 2014 Sergey Demyanov. contact: sergey@demyanov.net http://www.demyanov.net This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any l...
e28773100c288558b5e02c5bab9171395a54cefc53a43dc138c9bbfac0cce769
C++
1,212
37
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2026 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for deta...
0ff9b33ed0b5ac3beaa9e629d0af336c41301b3dd8f3e5a64f358ecf27374868
C++
1,222
40
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
2fddb7183584a12d19cda4da0761ed30ed9a82ad8911cc35eeaf853d1757c072
C++
1,222
47
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
3f8d45373fd67b5ecea886cecfbf0a00d8d070c55ceb3719556dbbc066f7aaa4
C++
1,226
44
#include <clocale> #include <cstdio> #define SDL_MAIN_USE_CALLBACKS #include <SDL3/SDL.h> #include <SDL3/SDL_main.h> #include <imgui.h> #include <imgui_impl_sdl3.h> #include <imgui_impl_vulkan.h> #include "Application.h" #include "Debug/Debug.h" extern "C" { SDL_AppResult SDL_AppInit(void** appstate, int argc, char*...
346b87fc6c0e3507cc379c4f439a423dda8491b9a8b774fb9b24c94c0c729a26
C++
1,228
37
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2023 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for ...
56168131fc0b4ff878711feff55a1ca16f69a47d7930cff5c79725816c5ba25c
C++
1,231
45
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
c029d39f3c85c29a28faabddc33ba36664545953cab53d44434663235979ebc8
C++
1,233
49
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "../proj.h" #include <gtest/gtest.h> using namespace std; using namespace starspace; TEST(Proj, forward) { SparseLine...
3bc1e0a04bef66b3b1f50c2eab781aaaaf1b54affc7b9224e79c08a87afe3d3c
C++
1,236
38
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
b4c307d940735a95ea71edb93d62f57d6009845918583adf5de814d03aaa6e85
C++
1,237
42
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
f0a2c3d7d7f6165e28c27f13005d5dbf49d79300d79a340113c345f9d9973f6c
C++
1,237
42
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
6d6fad6be3431ed4e31ec2232d09cd893059df86dad236d18c306bf40c38a0e0
C++
1,242
38
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
376855dac18f6efd673c653738338e23d8c85e3872912834a1b307116162448c
C++
1,244
56
#include "Rand.h" #include <glm.hpp> #include "Constants.h" namespace rayx { constexpr RandCounter RNG_KEY = (RandCounter(0xc8e4fd15) << 32) | RandCounter(0x4ce32f6d); RAYX_FN_ACC RandCounter RAYX_API squares64(RandCounter& ctr) { RandCounter x, y, z, t; y = x = ctr * RNG_KEY; z = y + RNG_KEY; ...
b334cb3c4457d8d1f0a8e824b3c5b370fcd3c2843f6b2deb31efa549140dcb84
C++
1,255
43
/* Copyright (C) 2014 Sergey Demyanov. contact: sergey@demyanov.net http://www.demyanov.net This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any l...
974439b6e29e946f3d411c2501a07b82dbe69b853bf545dbb549f312c352145d
C++
1,267
37
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
8f375dad8f9a9959cfe9dd81e610e347e6f5beb1158643bbed5b1c5dc11b5706
C++
1,282
45
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
c401c2266f92f9955592806925437cbab47b859e5f5ec62bcd773da889102aad
C++
1,286
48
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
9d28ff1c28d42e75c31147f49ea99d1b750bdbf76198cd0492d15cc7f89551fb
C++
1,288
40
#include "diffdef.hpp" #include "compdef.hpp" #include "model/diff.hpp" #include "model/spec.hpp" #include "statedef.hpp" namespace steps::dist { Diffdef::Diffdef(const Compdef& compdef, container::kproc_id kproc, container::diffusion_id t_diffusion, const steps::m...
c16c306406b38a1edd76a5198ba99a1ebec4e20d3915599dca213cae8e93ff71
C++
1,292
48
#include "NffTable.h" #include <algorithm> #include <fstream> #include "Debug/Debug.h" #include "Rml/Locate.h" namespace rayx { bool NffTable::load(const char* element, NffTable* out) { std::string elementString = element; std::transform(elementString.begin(), elementString.end(), elementString.begin(), [...
d59fc0bc026d14213e67e341a519b8ac85d266bbb2dc5844cc3173fbd099d13b
C++
1,304
45
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
79a10ffeaaa93a3542b1976976f443ef6c81d7d788422ff131635158c49bc8ee
C++
1,306
33
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2026 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for deta...
d53e283409156467ec4219e1b46c466a7bd7c4ea73b07b5a48649d33ad7d1734
C++
1,307
38
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
9ffac05a67d06263d7b3310a820e0233b9de313881b338f8655f5797f39f7022
C++
1,310
37
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
ecf0e7ba1045b161790d4f0e084c0eff58f62436bbde120b521a8818b64280b0
C++
1,310
43
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
2a00c8fcaadea8771eb64a2786ce0b6d17aa310cc335ba08779468ea19584d67
C++
1,311
40
// *************************************************************************** // BamDeviceFactory_p.cpp (c) 2011 Derek Barnett // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 25 September 2011 (DB) // -----------------...
20f4ee70ce1e682b119e3950026b9a99b4da723343c6c9abe86251e47d6bd20f
C++
1,312
49
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
9693aed3018f31d20d87bfb2401f0ce644c95ac0864794cb2d5f1380b8ecc5e8
C++
1,312
49
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
87cb9a7f3f8c47de5ee6e923935e444aa23fd62664eadb60f08c1c28858da56b
C++
1,313
55
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
e1e6eae42bf9a497985d6bd5b64e7871614fdd621dda56e68eb7783fc9e7bcba
C++
1,332
44
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
43498883e55f9fd8f2590ab54ad4e188bdb3455f81b93e1061aa0fae3600d7b3
C++
1,334
41
/* * Copyright (C) 2012 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
ba3558e83a21176bbdcd0d58e6318c561b1a368bdfa295758f4d1c56dda1a441
C++
1,348
45
#include "RayAttrMask.h" #include <bitset> namespace rayx { int countSetBits(const RayAttrMask mask) { return std::bitset<static_cast<std::underlying_type_t<RayAttrMask>>(RayAttrMask::RayAttrMaskCount)>( static_cast<std::underlying_type_t<RayAttrMask>>(mask)) .count(); } bool isFlag(const...
73b9e885400d885c2ab002476ea71518214768fb6234b4d4ac639858b5ede1cf
C++
1,363
51
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
3f36a67002494e7dc9489b6f9b580e1dfc8ffe8d159ee1b126a1a2ad85736d18
C++
1,365
42
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2026 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for deta...
a53d1d1324231b30e6110a94300cf590e3febdba5ba4c2372119373a05d11c6a
C++
1,365
54
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
824a0d081e3ac9fd3f2325aa623ab18ab5a04b925e497181c656a83fb753a15b
C++
1,366
58
#include <cstdio> #include <vector> #include <algorithm> #include <math.h> using namespace std; struct PointInfo{ int x,y,z; float r,g,b; }; extern "C"{ void render_ball(int h,int w,unsigned char * show,int n,int * xyzs,float * c0,float * c1,float * c2,int r){ r=max(r,1); vector<int> depth(h*w,-2100000000); vec...
b4c4912fbea97ed4492294b21698e341a10baf4a05398efacd7b8b70d7e7e36d
C++
1,370
44
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
f211e123f004b7cb5a6726b26bb5cc05c24cf89c52a80c7e9342b0ab0b38f712
C++
1,377
48
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
5304df5b02c52ad0987ae44bee2848844af12587c8bc3f0d6c8d079d1d526e32
C++
1,378
35
#include "setupTests.h" // Prepare test data std::vector<uint8_t> testData = {'1', '2', '3', '4', '5'}; // ASCII values std::string readFilename = canonicalizeRepositoryPath("Intern/rayx-core/tests/input/read_test.txt").string(); std::string writeFilename = canonicalizeRepositoryPath("Intern/rayx-core/tests/...
159f18a93695387280a7b2d246aac2509710b46bb86538ee1d6c7df23b24cc6e
C++
1,381
42
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2023 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for ...
622bcd483c18a82e96a3e77a259acd754679e9f37a40987ea8790656437902ff
C++
1,383
62
/* * Minimal utility to get process memory usage. * */ #include "peak_rss.hpp" #include <stdexcept> #include <string> #if defined(__linux__) // Linux #include <sys/resource.h> #include <sys/time.h> #elif defined(__APPLE__) // OSX #include <mach/mach.h> #include <sys/resource.h> #include <unistd.h> #endif n...
a9f49f973eea1aff957cc229e943a87f0ca3461f50216d95a680873009f026b4
C++
1,393
54
#include "MolecTable.h" #include <algorithm> #include <fstream> #include "Debug/Debug.h" #include "Rml/Locate.h" namespace rayx { bool MolecTable::load(const char* element, MolecTable* out) { std::string elementString = element; std::transform(elementString.begin(), elementString.end(), elementString.begi...
fa7797eab8828559a1f6fd0f495d171b9bccf232c84fc39cb1d37e43b4039a8e
C++
1,394
47
/* Copyright (C) 2014 Sergey Demyanov. contact: sergey@demyanov.net http://www.demyanov.net This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any l...
160ad4740b964b454875130d67c1d12777c1e9c5397f2d97a0eae22813f294dc
C++
1,395
59
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
d64d7d9aab2f267c4f94254d7d71c4918e74237bb0d60089e5a2c2cda36c1a34
C++
1,397
49
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
5046d3b1364831593e62a06d5d495434196f89098b9900082a59ab9290384cbf
C++
1,400
47
#include "PalikTable.h" #include <algorithm> #include <fstream> #include "Debug/Debug.h" #include "Rml/Locate.h" namespace rayx { bool PalikTable::load(const char* element, PalikTable* out) { std::string elementString = element; std::transform(elementString.begin(), elementString.end(), elementString.begin(...
210bd75248cde8f93d228d763d86f767790bcb4e23050e0177a31312d246357a
C++
1,411
53
#include <algorithm> #include <list> #include <vector> #include "util/collections.hpp" #include <catch2/catch_test_macros.hpp> using namespace steps::util; // NOLINT // global arrays for test data float X[] = {5, 3, 1, 2, 4, 6, 5, 7, 2, 3}; float E[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0}; #define ARRSZ(a) (sizeof...
281615d8a0057a327b400313dd545b9df16e8272147ccd0de01624259ab33d92
C++
1,412
45
#ifdef __wasi__ #include <stdlib.h> #include <string.h> #include <wasi/api.h> extern "C" void __cxa_throw(void* ptr, void* type, void* destructor) { abort(); } extern "C" void* __cxa_allocate_exception(size_t thrown_size) { abort(); } extern "C" int32_t __wasi_path_open32(int32_t arg0, int32_t arg1, int32_t arg2,...
d6043add2d53bc27f7bf6e46a2f92ede51f90c1a90f1afa9ed10b7626b1d04df
C++
1,413
61
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
134eec0e2057435e14a61c98eb8226402f87430b65ebcab5d4e3da403751ad00
C++
1,429
50
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
89b55c6013c83c5af610267e4b6bfed269b6db507b48230b0b177a7526e8977b
C++
1,430
53
#include "CromerTable.h" #include <algorithm> #include <fstream> #include "Debug/Debug.h" #include "Rml/Locate.h" namespace rayx { bool CromerTable::load(const char* element, CromerTable* out) { std::string elementString = element; std::transform(elementString.begin(), elementString.end(), elementString.beg...
0922001175cb8ac37d4bff74a5d00746657161f3a0d1c0b4ad69482b6b8e0395
C++
1,436
49
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
d79dfeabc0204f19f8dff49f604da9df4a9cdfeaf4c178741027ca18e80b52ed
C++
1,437
58
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "normalize.h" #include <algorithm> #include <ctype.h> #include <assert.h> #include <string> namespace starspace { void...
0c03de9b91f829b120e45d50dcf13fab9b8e50fad56617057bf359701f62c8b7
C++
1,447
53
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
72ac9bfac660b695db8ffdc32456d6d4f078e9bd8c5f48ef4bc4f2b6a0950ec2
C++
1,451
57
#include "storage.h" #include <vector> void add_to_arr(int x, int j, int beta,std::vector<unsigned> &arr){ unsigned temp = j*beta; unsigned idx = (temp) >> 5; unsigned rem=temp&(0x0000001F); unsigned add = rem+beta; if(add > 32){ arr[idx] = arr[idx] & ( ((1 << rem) - 1) << (32-rem) ); ...
046cf17752ce8d7d4bd6d640a2772fb0a54409fd76169c8d15709fc899526f66
C++
1,454
52
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
127884704be58549588a0039411f570f6542f60a2f167395e31ce91704c52127
C++
1,456
53
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
9493c350910d3d8b93694795e4b40f49b990bdd2983bc6c2461524d15cf73b5e
C++
1,472
53
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
9dccf1009a66ce63aa44fd2fcbba7a00448f92ec09ddf35129e6842d611513ab
C++
1,475
53
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
509746a4b9ae8eaab7879589365fac6ac4f4456142417f4bab9caa795b111b84
C++
1,477
59
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
0f0c3babbc4cbd4e2a58bfbfa5e011a398a1ba4b44eacf44cd3404cd4d0ab69a
C++
1,481
62
// [[Rcpp::depends(RcppArmadillo)]] #define ARMA_64BIT_WORD 1 #include <RcppArmadillo.h> #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] List Indiv_Score_Test_SMMAT_sparse_cond(arma::sp_mat G, arma::sp_mat Sigma_i, arma::mat Sigma_iX, arma::mat cov, arma::mat X_adj, arma::vec residuals) { int i; // nu...
9bb0b0a5adba5c6246796edc873f2fa3dd8bea70f9ccf92adf94c17423695bc9
C++
1,481
66
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
f5b114a676591cb5c410d39d17a89758811fc34370899a633cb31304ea0a4708
C++
1,485
62
/**************************************************************************** ** ** Copyright (c) 2009-2015 C.B. Barber. All rights reserved. ** $Id: //main/2015/qhull/src/libqhullcpp/QhullPointSet.cpp#2 $$Change: 2066 $ ** $DateTime: 2016/01/18 19:29:17 $$Author: bbarber $ ** ******************************************...
6c939cdbafe0cc5b633271833188401d2813b74af51713b00255a258bf01fca3
C++
1,497
47
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2026 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for deta...
2628a4c2f63c04af282b2f6b68b566121045a377f1af920bfae94cce18f20891
C++
1,502
53
#include <string> #include "util/checkid.hpp" #include "util/error.hpp" #include <catch2/catch_test_macros.hpp> using steps::util::checkID; using steps::util::isValidID; std::string valid_ids[] = {"A", "z", "M", "m", "_", "a012", "B_7890", "___a", "____B", "_0Z"}; // TODO revert this temporary change for split mes...
2617ef23b676a97b0311b699828c5dde65d3aea30b7470ea478a14dcdcd349dc
C++
1,506
62
/**************************************************************************** ** ** Copyright (c) 2008-2015 C.B. Barber. All rights reserved. ** $Id: //main/2015/qhull/src/libqhullcpp/QhullSet.cpp#3 $$Change: 2066 $ ** $DateTime: 2016/01/18 19:29:17 $$Author: bbarber $ ** ***********************************************...
d14b0e2b8816173346848deb0f392223643301eaf2c58f2a207235f3941ff016
C++
1,507
47
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
45d90741cfef3bef1c8aa8dbd76e687b6fa7698a777bfe52541d9c55824a1815
C++
1,513
51
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
80a3dd5f6d97522e832b988b3c4c450ad6a6a97f9cde1c6fe87c0af779373182
C++
1,513
47
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2023 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for ...
f8bce90150605c333ee0633a1a9121e7895be0d97356b4a7ffebe499ac9c1ebb
C++
1,517
58
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
213db85edb6f7be3ed45bd3d68d84a954b80ecf482b644035fd64142e795b752
C++
1,525
53
#include "Random.h" #include <algorithm> #include <random> #include "Shader/Constants.h" static std::mt19937 RNG; namespace rayx { void fixSeed(uint32_t seed) { RNG.seed(seed); } void randomSeed() { fixSeed((uint32_t)time(nullptr)); } uint32_t randomUint() { return RNG(); } double randomDouble() { return ((doub...
372aab38e9d53342a63151630595ef8f63b05f97359d34484c9749f0fc6aee20
C++
1,548
58
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2023 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for ...
864874e5c5c8035b9ea10ab411d8243246eec7c3ce8eb2d710c503adc2f45a22
C++
1,548
58
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
3bda3a609315916682445594c86a75f43cbea0c32460fccede2fc0d7c2742219
C++
1,550
46
#include "../src/meshoptimizer.h" #include <float.h> #include <stdint.h> #include <stdlib.h> extern "C" int LLVMFuzzerTestOneInput(const uint8_t* buffer, size_t size) { if (size == 0) return 0; srand(buffer[0]); float vb[100][4]; for (int i = 0; i < 100; ++i) { vb[i][0] = rand() % 10; vb[i][1] = rand() ...
a094331af4d79d5fe0d58a55b2e33b1813eb9825d36abe156eb0457c8ba57623
C++
1,558
57
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
af0351dd80d7967845a71f71d6455a47e0366ac6a378e0dc558a5e51f5125bd5
C++
1,573
62
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "../starspace.h" #include <iostream> #include <boost/algorithm/string/predicate.hpp> using namespace std; using namespac...
3d01468cf1c48160f2ab8b383a64c9725a0230f04f9adb8916d21dd225347a7b
C++
1,584
70
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
2f6d9f9ab8886915bd84dcc63739e837952651dd85b6e1c98fb4604ea57048ba
C++
1,591
62
/* * Copyright (C) 2010 Regents of the University of Michigan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later v...
79508ec847712fe184b558dc6cf13331812585ab00b6dba168ce08fea5cd1e46
C++
1,592
42
#include "util_cuda.h" // Check if CUDA requirements are met bool initCuda(){ int device_count = 0; // Check if CUDA runtime calls work at all cudaError t = cudaGetDeviceCount(&device_count); if (t != cudaSuccess) { fprintf(stderr, "[CUDA] First call to CUDA Runtime API failed. Are the drivers installe...
d747fdd9ef223fcf3105855ea703671a857adba3c6a09fea04b7d035bac8e5ce
C++
1,593
61
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2026 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for deta...
f0ccc93e92773fd4d4014ef8f748b660b5443ca04680f7a2518034c06e8eb36e
C++
1,614
60
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "../starspace.h" #include <iostream> #include <boost/algorithm/string/predicate.hpp> using namespace std; using namespac...
07ada3566234dc660536b59a345be63b1b8e54ed43a7562d55a3a65b121728cf
C++
1,622
60
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
5b873239ad9c66195e955c81e1465ba58b256b4c82d65cc5b61bad0e9270a605
C++
1,623
49
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2026 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for deta...
c366fe15f098d1f959b740c7a8e75e4b6a570b3bb38720a9da20be2ac63c9195
C++
1,634
65
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
1d457fa062855a015926d8d272678b8bf1484287cc3deddcabf206b945e0fa13
C++
1,635
58
#include "ring_buffer.h" #include <iostream> RingBuffer::RingBuffer(size_t capacity, size_t inRate, size_t outRate, size_t inBlockSize, size_t outBlockSize, size_t outputOverlap) : capacity(capacity), inRate(inRate), outRate(outRate), inBlockSize(inBlockSize), outBlockSize(outBlockSize), outputOverlap(out...
bd09459a1a6381cde524fae9654ebcb706bfb982035b910de5abcc8fa627bb6e
C++
1,639
49
/* ################################################################################# # # STEPS - STochastic Engine for Pathway Simulation # Copyright (C) 2007-2023 Okinawa Institute of Science and Technology, Japan. # Copyright (C) 2003-2006 University of Antwerp, Belgium. # # See the file AUTHORS for ...
9d40f76abbf9c5758fddf7d9a946e6040ef9aa98f00def7a4ea14ea124f22f3a
C++
1,640
48
/* * Copyright (C) 2011 Regents of the University of Michigan, * Hyun Min Kang, Matthew Flickenger, Matthew Snyder, * and Goncalo Abecasis * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Licens...
8df952ce424ef6acdd4093ab14f924ec778d71de1be68234b7949055b4b17fc7
C++
1,641
47
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...
6cd4ff656d18d5742106bd81b4d578e1c001ea7e0d6f0719fe6600a25d6e5c30
C++
1,650
48
/* Copyright (c) 2008-2026 the MRtrix3 contributors. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this License on an "a...