sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
f25edba031f33e7d0be0e23b6a6be48bfaf030f0e803754ba415f6fed12fb213 | C/C++ | 1,476 | 51 | /*
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... |
1cf2647204f3630353193ec0c5fb835cfaf828a890ffd164145e29ef15124fcd | C/C++ | 1,479 | 62 | /* 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... |
7ef0568db1cbb2dd699c043279c216cf2c4bc85a70f15219e0ecf3c62dd7e789 | C/C++ | 1,486 | 58 | #pragma once
#include <string>
#include <vector>
#include "Core.h"
namespace rayx {
struct RAYX_API DeviceConfig {
enum RAYX_API DeviceType {
None = 0,
CpuSerial = 1 << 0,
CpuParallel = 1 << 1,
Cpu = CpuSerial | CpuParallel,
GpuCuda = 1 << 2,
... |
11aee55b77b6cac31371d492bef6dc76a63b4407646d1ca9945792c16d52cee4 | C/C++ | 1,487 | 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... |
39537228e4cae0d4f90c67fe3e17cf234199a73edb10f9be85a0cb35e3bf6eb7 | C/C++ | 1,488 | 46 | /*
* 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... |
e6571fbc6b703fafd537cefed794e538a42ba245cabdd34fd791a6e214d264f6 | C/C++ | 1,492 | 54 | /* 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... |
2978077fd34f6e194194d23df22746dfe77d644d7964e136ea8118dd370a98d3 | C/C++ | 1,493 | 60 | #ifndef __HW_CONFIG_SYNAPSES_H__
#define __HW_CONFIG_SYNAPSES_H__
#define TYPE_WEIGHT_SIZE 16
#define DSP_LATENCY 4
#define WEIGHT_SIZE 14
#define INT_W 2
#define DEC_W 12
#define SHIFT_DIV_FP_ISYN 4
// Synapse parameters
#define NB_PSYN 18
#define PSYN_WIDTH 32
#define PSYN_BIT_WEN 31
#define PSYN_WIDT... |
0c1e3ab2e9b7c404a0d66759b50949dbfcead9609bc05168ddb1ce32ed3f70be | C/C++ | 1,506 | 63 | /* 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... |
57e8403bc5a7571b71455e16855081945f65b801ed22a3811367deb0a727f538 | C/C++ | 1,508 | 62 | /* 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... |
97e55907e5262e6137bfd366b08e070d56f05c42da3054bac1e7d6cf0f17e3eb | C/C++ | 1,519 | 28 | /*
* Copyright <2012> <Vincent Le Guilloux,Peter Schmidtke, Pierre Tuffery>
* Copyright <2013-2018> <Peter Schmidtke, Vincent Le Guilloux>
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... |
8b781532c320571083dfe6fa05b055d1cda9b169eb50e20634e9d969196a1157 | C/C++ | 1,520 | 33 | #pragma once
#include <optional>
#include <string>
#include <vector>
struct CliArgs {
bool csv = false; // -c --csv
bool cpu = false; // -x --cpu
bool gpu = false; // -X --gpu
bool listDevices = false; // -l --list-devices
bool benchmark = false; // -B --benchmark
... |
3285bcf99c05e39324e1b93a340da9e2708de95b37685f690bf7a105c44bd1dc | C/C++ | 1,526 | 77 | /**
* 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.
*/
#pragma once
#include <iostream>
#include <string>
namespace starspace {
class Args {
public:
Args();
std::string tra... |
a5fb3ab32c86745ff890f8ff8090aef6d9568e65049d3065257c6371d40994ae | C/C++ | 1,534 | 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... |
0fc54805b8c4e19d308e9ab1b807e6ea43a11260e4634475add878b407920e93 | C/C++ | 1,535 | 57 | /*
*! @title Axi lite object
*! @file AxiLite.h
*! @author Romain Beaubois
*! @date 15 Sep 2021
*! @copyright
*! SPDX-FileCopyrightText: © 2021 Romain Beaubois <refbeaubois@yahoo.com>
*! SPDX-License-Identifier: GPL-3.0-or-later
*!
*! @brief
*! Axi lite object
*! * Store pointer to base ... |
50af777094cbd1ac340ca30e8984cbb450cc4ef82082d7cd670d175d4fba4c97 | C/C++ | 1,537 | 66 | /* 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... |
7dfa885a99ab5db442c9cbeb0c7d5b45d49b63ce196b9b5bccdcd620ef5e28ce | C/C++ | 1,539 | 67 | /****************************************************************************
**
** Copyright (c) 2008-2015 C.B. Barber. All rights reserved.
** $Id: //main/2015/qhull/src/libqhullcpp/functionObjects.h#1 $$Change: 1981 $
** $DateTime: 2015/09/28 20:26:32 $$Author: bbarber $
**
******************************************... |
90c2c97a1cdb34cc6a8f2daac0314392069cf2c80633a2814ac31469b4c7eb58 | C/C++ | 1,543 | 29 | /*
* Copyright <2012> <Vincent Le Guilloux,Peter Schmidtke, Pierre Tuffery>
* Copyright <2013-2018> <Peter Schmidtke, Vincent Le Guilloux>
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... |
af279c3cf1566a47cd1be7b6889a010fa2efd362a17dc4c5ce7f587d2380ca9b | C/C++ | 1,545 | 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... |
048d32ff439ec34d39d64b260b2ff71fc8e267672cd5911f6645d8cae43367b4 | C/C++ | 1,549 | 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... |
0c51ab9d79cc4c41da158b6cd6128f7a06c513b5467020b28387fe4304a49fd3 | C/C++ | 1,566 | 30 | /*
* Copyright <2012> <Vincent Le Guilloux,Peter Schmidtke, Pierre Tuffery>
* Copyright <2013-2018> <Peter Schmidtke, Vincent Le Guilloux>
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... |
4ff1c880818dbf5a7c1084c7212a3000b2019d70460e6408f02cf369ae3f4d8c | C/C++ | 1,577 | 71 | /* 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... |
876e85bc3192366c12c603cbe1543204d09537c3c8bd6d4e5aae00a143665a4d | C/C++ | 1,578 | 25 | /*
* Copyright <2012> <Vincent Le Guilloux,Peter Schmidtke, Pierre Tuffery>
* Copyright <2013-2018> <Peter Schmidtke, Vincent Le Guilloux>
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... |
82da174674f956c41da73495246e04a18606b2c53763bbcc2427112ed38d63ab | C/C++ | 1,579 | 62 | /* 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... |
11249eed31f6adfec676f8a411fba9c631949926ddcf4ac2fb2cf1e09c4294d1 | C/C++ | 1,581 | 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... |
703212015ba8c648d0aab9f1bd420c3891563a921f374f82af8f53d788af4947 | C/C++ | 1,586 | 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... |
90cf21e012abcda93c20471db5b587a6d09ad131434782fc3b8c6744432165a1 | C/C++ | 1,592 | 41 | /* 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... |
c6fdab8105c1aaa7123556ef8bb0b766549e894e5c7bcd41d32414418c841e8e | C/C++ | 1,596 | 62 | /* 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... |
3a4d4e9a12633701ec8c59f66cb0e132da4572fea424bb85c6f96a31f3a1316b | C/C++ | 1,599 | 64 | // ***************************************************************************
// NetWin_p.h (c) 2011 Derek Barnett
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 8 December 2011 (DB)
// -------------------------------... |
d254cd0528f73145fed2ade0f64f159183170cd380e8c71531874b24cf670084 | C/C++ | 1,600 | 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... |
e2030464990452408227e401eebdbc57b52080dc3845ae2822e3d412274de160 | C/C++ | 1,604 | 66 | /* 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... |
a87feb83ca6a77623534934506784a6afdc74a701360d2f31396fa06d022c902 | C/C++ | 1,619 | 39 | /* bam.h -- miscellaneous BAM functions.
Copyright (C) 2008-2014, 2019 Genome Research Ltd.
Author: Heng Li <lh3@sanger.ac.uk>
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 re... |
3820208dd113b7685899c09ed31a6dc63f4b8927b699a2e5145c20ff0759eb18 | C/C++ | 1,624 | 29 | /*
* Copyright <2012> <Vincent Le Guilloux,Peter Schmidtke, Pierre Tuffery>
* Copyright <2013-2018> <Peter Schmidtke, Vincent Le Guilloux>
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... |
b191fcbf2a487b77f1582aa0b6802c59b24c9da8a1e94b2d5a965c0e6c5aed71 | C/C++ | 1,624 | 61 | // ***************************************************************************
// SamFormatPrinter.h (c) 2010 Derek Barnett
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 6 October 2011 (DB)
// ------------------------... |
18ac9652b8ff81948aae35dd97ca624c0b8f0d781611c04f2617ac9753df4dd5 | C/C++ | 1,631 | 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... |
91f1c396bc96ebc309229f0d602fa7c9bac990d10acfead223e9a9d19ab3c311 | C/C++ | 1,632 | 39 | //
// tltree.h
// treelib
//
// Created by mbrazeau on 17/04/2017.
// Copyright © 2017 brazeaulab. All rights reserved.
//
#ifndef tltree_h
#define tltree_h
TLtree* tl_new_TLtree(int ntaxa);
void tl_destroy_TLtree(TLtree* tree);
TLtopol* tl_create_topology_rec(int numtaxa);
int tl_destroy_to... |
5532d4c4552f9b58214705972b7b21077bfad4a9b21fe1a24fe246afacaf6add | C/C++ | 1,634 | 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... |
40f4a3a7b680423ea3e8606189279573323c1c85adfd9a29baa5953948d2c636 | C/C++ | 1,651 | 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... |
0261891e19d24c7eed281627671dfbec9e1e886ec30b138e36f3877e3c27b433 | C/C++ | 1,657 | 58 | /*
* Copyright (C) 2011 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... |
b1610d8a29243e9b7272571f653279531e4f64bd0941591d00b69a0d7d4a2da9 | C/C++ | 1,657 | 66 | /*
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... |
d9dd88a09ea1eaf9655985f40ea29541830c3dd2ea69bf467f0dc89b9df23931 | C/C++ | 1,661 | 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... |
7a1d773f57883498a3016dbb30ca6c3902ec73f392ad826a6fd766076a5618da | C/C++ | 1,662 | 60 | #pragma once
#include <imgui.h>
#include <string>
#include "BeamlineDesignHandler.h"
#include "BeamlineOutliner.h"
#include "FrameInfo.h"
#include "GraphicsCore/Device.h"
#include "GraphicsCore/Swapchain.h"
#include "Settings.h"
class UIHandler {
public:
UIHandler(const Window& window, const Device& device, V... |
fbd27bc101bf1be3b34e4e01f1a7d576cea7e9fe27bc38a8ba81943976e3b0f8 | C/C++ | 1,672 | 85 | //------------------------------------------------------------------------------------------------------
// ProfTimer class
//
// Performs high resolution timing on Windows and Linux platforms
//
// Windows code source: http://blog.kowalczyk.info/article/High-resolution-timer-for-timing-code-fragments.html
//
// Window... |
f2a21fc0d125884b057c136c62f0f8b66c0ba53c114fc8da78553016098c5bdd | C/C++ | 1,676 | 43 | #pragma once
#include <stdint.h>
#include "Core.h"
// All C++ randomness should be using this module.
// Otherwise set-seeding tests will not work.
// The seed for the shader should also be generated from this module.
// It is crucial that all of our random implementations yield the same values (with a fixed seed) ... |
ad3aba0acb82dad57fc34356f71c92b7507c2c8379a09f189b637d211ee13dd0 | C/C++ | 1,679 | 52 | #pragma once
#include <vulkan/vulkan.h>
#include "FrameInfo.h"
#include "GraphicsCore/Device.h"
#include "GraphicsCore/GraphicsPipeline.h"
#include "RenderObject.h"
class RenderSystem {
public:
struct PushConstantData {
glm::mat4 modelMatrix{1.0f};
};
struct Input { // Passed to createPipeline... |
8e0eb61acb382f3550fbc6d481a4eaf70f06ed9a09c17d519a5f6ccc67bf4253 | C/C++ | 1,688 | 56 | /* 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... |
e90c89375be311ea2315a78a5b06d468afc3a2359ef36bd05020f39bdaf5122b | C/C++ | 1,689 | 60 | /*
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... |
b7e8c098bc085ad2396a617dd6d48d1540b96790efe52b03f5d540735f6dae1b | C/C++ | 1,691 | 56 | /* 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... |
6f6ce997fdafcdacd9e4bdaa85bb9740ff77a27dbd83057fbfe7915020723d4e | C/C++ | 1,700 | 53 | /*
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... |
4132d8e0a5d19c2791c37ba66c4468dc48548fd8d6519d6c176f0c3645a9dbcb | C/C++ | 1,703 | 67 | /* 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... |
7c02e9f8089b4bbc792afce75df42d61ff4ea6c841b1fa6205d5fa5154664112 | C/C++ | 1,703 | 62 | /* 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... |
0a042e82db5c751d769b8c837f6531938f126b474147999ad6e32599489a3ed9 | C/C++ | 1,706 | 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... |
e6a4129d2f84747de51cff5266f6863bfe9f39066c6384f3b5fe7dc0609f3c0a | C/C++ | 1,717 | 69 | /*
*! @title Software configuration
*! @file SwConfig.h
*! @author Romain Beaubois
*! @date 27 Apr 2023
*! @copyright
*! SPDX-FileCopyrightText: © 2023 Romain Beaubois <refbeaubois@yahoo.com>
*! SPDX-License-Identifier: GPL-3.0-or-later
*!
*! @brief
*!
*! @details
*! > **27 Apr 2023** : file creat... |
209f420f362b7862191b832a5520dcf60b7b245711a1109165710192e5da15ce | C/C++ | 1,730 | 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... |
0ce8895d5a22721b455cf4bb81d1c92744e7eb3f8ec2793fb74c5fae2711546a | C/C++ | 1,733 | 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... |
3900b6063dd25d218488cab769268caaca3789feda3fb056823447802d5ec7f4 | C/C++ | 1,734 | 63 | // ***************************************************************************
// SamFormatParser.h (c) 2010 Derek Barnett
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 23 December 2010 (DB)
// -----------------------... |
42cbcd233c9e8515d31cad85a96db7b1286ccfba618045c0f33f70a85ba8e073 | C/C++ | 1,744 | 46 | #pragma once
#include <filesystem>
#include <optional>
#include <vector>
#include "Beamline/Beamline.h"
#include "BundleHistory.h"
#include "RenderObject.h"
#include "Tracer/DeviceTracer.h"
#include "UserInterface/Settings.h"
class Scene {
public:
Scene(Device& device);
enum class State { Empty, BuiltRayRO... |
ac78a19eeda4f36fe41df0018f3f59142bb19681d537dc366f7c2f54bd675eb0 | C/C++ | 1,744 | 66 | /* 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... |
0beaf80f55196046125f1c9817064f31860f06b30647cc891d01657bda287645 | C/C++ | 1,750 | 77 | #ifndef IO_H
#define IO_H
#include "std.h"
#include "printable.h"
class io {
public:
static int debug ;
static void print (const string& s, int level, string file) ;
static void println (const string& s, int level) ;
static void print (const string& s, int level ) ;
static void print (printable &p, int ... |
efacfa401cb9fd8239c3f12e0fb3c4443099be9a220537857776d75f2c0dd8b8 | C/C++ | 1,750 | 71 | /* 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... |
dc0aa9381f95d3a19a5ff72409af4a42940a58619a4486cd2a752348997c7ab0 | C/C++ | 1,753 | 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... |
ac9146242c3e3e5fe51ba449a32a6613ffdc2a79f5d0b25f68743d7e9734b710 | C/C++ | 1,754 | 64 | /*
*! @title Class to handle hardware monitoring
*! @file HwMonitoring.h
*! @author Romain Beaubois
*! @date 02 Nov 2022
*! @copyright
*! SPDX-FileCopyrightText: © 2022 Romain Beaubois <refbeaubois@yahoo.com>
*! SPDX-License-Identifier: GPL-3.0-or-later
*!
*! @brief
*!
*! @details
*! >... |
dba10384cf0f838ae762ff3cc3b2963a7b952cb9851c575726e17565159804a0 | C/C++ | 1,772 | 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... |
b502a5735f4abfc2603a215b99a5aefe9019c45ac336b5bb65efb96953633196 | C/C++ | 1,774 | 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... |
05dbc6bf02912866b7482634c0fa008da041f7288c6bd111d887d14e60556e06 | C/C++ | 1,777 | 79 | #ifndef KNETFILE_H
#define KNETFILE_H
#include <stdint.h>
#include <fcntl.h>
#ifndef _WIN32
#define netread(fd, ptr, len) read(fd, ptr, len)
#define netwrite(fd, ptr, len) write(fd, ptr, len)
#define netclose(fd) close(fd)
#else
#include <winsock2.h>
#define netread(fd, ptr, len) recv(fd, ptr, len, 0)
#define netwrit... |
06e233bcd73283ea48ebd759a896e8f45772ea215bd28bc80e58477ec6385f90 | C/C++ | 1,778 | 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... |
a63c1a86d42b60c380d5aafa7906423ee0f602dc81f96576e8a7aacc4fd67c6d | C/C++ | 1,778 | 67 | /* 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... |
98b644810c6bc4d60f7995b70f82af1269868c2a549c209893a9eaa79ef47c4a | C/C++ | 1,779 | 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... |
0cdfd024ef6776ccb0eff7107901180cc03f46bcc27b18f39503e805129edbab | C/C++ | 1,781 | 60 | /*
* 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... |
a41fdeec26e613abce9f86a507954b37f39ebafbad2f458b11bed69ed6c5d094 | C/C++ | 1,784 | 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... |
24e65c3eccb258bb7496ec424282212a8f5f690c9bf29f1ceea6bb3ac3b508ca | C/C++ | 1,787 | 78 | /* 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... |
2e424036618c860e77dd2b02be8f23a53e053be00b3a10ed31f175329e713fac | C/C++ | 1,787 | 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... |
d94333a09ceea3579397b120895992641e02ecbd7636ad386f4fc2ccd00974b9 | C/C++ | 1,791 | 75 | /**
* 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.
*/
#pragma once
#include "dict.h"
#include "parser.h"
#include "utils/utils.h"
#include <string>
#include <vector>
#include <fstream... |
f3105d5b7a9003e73518d3528c11d77df3098091196cc76195f418c67a902c43 | C/C++ | 1,792 | 66 | /* 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... |
ac84fec79f92b66f2ba04ba14b1830f0177666462d2c630fda36618d2e1799b4 | C/C++ | 1,795 | 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... |
e6ab1abd9df9710ac6acbba6eda3d72f19fbb2385abaf993455438d4b8253623 | C/C++ | 1,797 | 64 | /* 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... |
4b611d792fc744945de856518ae24b663ca2c7b2278ff45a4b4d5c388b50e478 | C/C++ | 1,805 | 72 | /* 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... |
73abd085d665b7a9a626212f5bd7ba4115f416b11b997a72b0d9f3aa1c14c20c | C/C++ | 1,809 | 74 | /*
*! @title Class to handle hardware configuration
*! @file HwCfg.h
*! @author Romain Beaubois
*! @date 09 Aug 2022
*! @copyright
*! SPDX-FileCopyrightText: © 2022 Romain Beaubois <refbeaubois@yahoo.com>
*! SPDX-License-Identifier: GPL-3.0-or-later
*!
*! @brief
*!
*! @details
*! > **0... |
b4d2a1ea22fb4e610142c981707eba14db5d0cf2fc072ef8fa3b914f532091f9 | C/C++ | 1,812 | 41 | // Copyright 2024 DeepMind Technologies Limited
//
// AlphaFold 3 source code is licensed under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compliance with the
// License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... |
9e010446d68eee1b1bed7507d7f3ac3e3ee24306e061c46b47c6d90f3bc6734a | C/C++ | 1,815 | 67 | // ***************************************************************************
// ByteArray_p.h (c) 2011 Derek Barnett
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 10 November 2011 (DB)
// ---------------------------... |
53c2ffc353a035eb7bedeec1c81e9d0eb94c7b4d5b6623707d28c2d3ad87cd34 | C/C++ | 1,817 | 67 | /* 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... |
9766df3127b5a45f5523831b411ce406f6a46ee8c8d73efe78e1142c8836d5ff | C/C++ | 1,824 | 56 | /*
* 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... |
cb3741c3f5029345673aae79b81b30ec4e4cbd0ea12d2bd11c39178178d5280f | C/C++ | 1,825 | 69 | /* 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... |
2e8b648fd1593aa01dec3a720003151540e3809a21f697ffb48bd4695a0e0087 | C/C++ | 1,832 | 93 | /************************************************************************/
/* Public implementation follows */
/************************************************************************/
/*--- Defines ----------------------------------------------------------*/
#undef ONlevel
#define ONlevel ((int)127... |
3ec2fb4f817c243c13c9987e771ec6dc47c8f0785b2dfd6e718e706b05353330 | C/C++ | 1,832 | 74 | /* 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... |
7866c395fd689759f3fd6e1792f775478b418758d0ada0a69a9b38a72579a31a | C/C++ | 1,839 | 66 | /*
* Copyright (c) 2009 Regents of the University of Michigan
*
* 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,
*... |
6f47aba8836c2fa92b17658df15d6dfb91e292da3161bcf5dbd128cbf617fa0c | C/C++ | 1,843 | 36 |
#ifndef M_CHECK_H
#define M_CHECK_H
/*
* Copyright <2012> <Vincent Le Guilloux,Peter Schmidtke, Pierre Tuffery>
* Copyright <2013-2018> <Peter Schmidtke, Vincent Le Guilloux>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwa... |
fe94e76aaf00984afa712b97eaf426cd5617f7828db9004ea863f0fd3532f934 | C/C++ | 1,844 | 70 | /* 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... |
83fb9c841d001b73f78264205c225a08d2b08a22e1d06e54e857f192c97b424d | C/C++ | 1,847 | 67 | /* 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... |
f8dd96a60d214743299293a9320d45ef9aab148077d05f645f9e6d6d06a0cdd7 | C/C++ | 1,851 | 79 | /* 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... |
96aa662d043181536271f22a6e5c969db01271b67d38be94df79277b53c1a814 | C/C++ | 1,852 | 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... |
58da93d54988746b4a1b4dcdc804ee1f1564c2c3bc8fb2a8a779924a209bb3e6 | C/C++ | 1,853 | 75 | /*
* def,table1.h
* declarations
*/
#include <string.h> /* for memset */
#define mymod(k,K) ((k) - (K) * floor((k) / (double) (K)))
#define iround(x) floor(x + 0.5)
/* interp1_table1_for.c */
extern void interp1_table0_complex_per(
const double *r_ck, /* [K1,1] in */
const double *i_ck,
const int K1,
const double *r... |
991748689b6303726afb6f0c318c0100be2b8489d40c653aadc88094eb715403 | C/C++ | 1,859 | 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... |
f2ccce56c0e82c9fd30ca61de96925ae38fe11036540b228130dffbd5d432ce7 | C/C++ | 1,860 | 55 | /*
* Copyright (C) 2010-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 la... |
8e9d55532ad091c722b27cebea738ff6b0fffeb403a1e0fc04b43a0ff1141ee8 | C/C++ | 1,861 | 60 | /************************************************************************/
/* Public implementation follows */
/************************************************************************/
/*--- Defines ----------------------------------------------------------*/
/* None */
/*--- Types -------------------------... |
5bf421731eb69be5acc00c1cb9963320ff1169d84a21891c3978ed9c91145bef | C/C++ | 1,862 | 55 | /*
* 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 License... |
c3ca74d698cce622c8fd8cb72527a14b62a7bb837a8a8a8d04b092429f116683 | C/C++ | 1,862 | 64 | /*
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... |
2a6e06a40582468aad5017116f6cd42502709715f116dc41486143b2de4caac6 | C/C++ | 1,863 | 39 | #pragma once
#include <functional>
#include <vector>
#include "Beamline/Beamline.h"
#include "BundleHistory.h"
#include "RenderObject.h"
#define MAX_RAYS 1000
// Definition of the RayFilterFunction type
using RayFilterFunction = std::function<std::vector<size_t>(const BundleHistory&, size_t)>;
/**
* @brief Generate... |
d93e75cac8a72268735e1f70d3b86302d4920f1a659e6119f77f2fc7a38aefc7 | C/C++ | 1,866 | 57 | /* bam_plbuf.h -- plbuf routines (declarations copied from bam.h).
Copyright (C) 2008, 2013, 2021 Genome Research Ltd.
Author: Heng Li <lh3@sanger.ac.uk>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal... |
e650e0c151e5d881dc65054fa1414c493ca1e679548e1b7063f68a197c6a9dc8 | C/C++ | 1,873 | 73 | /* 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... |
2e5cd2608a97ec0cb64dfdc152d3cb12ff5b4e82678a075f48722e0fede059c4 | C/C++ | 1,875 | 67 | /* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.