sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
e1682128bdc1d87bcbbec96ec726f04a5d9f3f0dcea26ad5adb0735859c0f2c0 | C++ | 5,679 | 172 | // Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "BaseTagFS.hpp"
#include <... |
d37af85ee6dc18cb249a657b02964b02ff2269cb95733934d2304663a065e6bf | C++ | 5,682 | 194 | // Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "GroupFS.hpp"
#include "Da... |
ee58131e72ceab0e93925571949c61149d719045d22b3c806708e0d628270203 | C++ | 5,682 | 131 | /**
* Copyright 2026, XGBoost Contributors
* \file normal_obj.cc
* \brief CPU implementation and registration of normal distribution regression.
*/
#include "normal_obj.h"
#include <dmlc/registry.h>
#include <array> // for array
#include <cmath> // for log
#include <cstddef> // for size_t
#include <cstdint... |
69b71c66d35a40508a7bf82daa3b654536398915ac85302d4e854704277b8e5b | C++ | 5,690 | 150 | /**
* Copyright 2019-2026, Contributors
* \file survival_metric.cc
* \brief Metrics for survival analysis
* \author Avinash Barnwal, Hyunsu Cho and Toby Hocking
*/
#include "survival_metric.h"
#include <dmlc/registry.h>
#include <array>
#include <cstddef> // for size_t
#include <memory>
#include "../collectiv... |
25bf6ba6319b58933c238e8a1d12fda500ac147df9aee168c68a753aff200b79 | C++ | 5,805 | 140 | /**
* Copyright 2019-2026, XGBoost Contributors
* \file aft_obj.cc
* \brief CPU implementation and registration of the AFT objective.
*/
#include "aft_obj.h"
#include <dmlc/registry.h>
#include <cmath> // for exp, log
#include <cstddef> // for size_t
#include "../common/kernel.h" // for DispatchKer... |
ce701f114b33b059653c32bf9569330209fd1598e509d4b360d39ab06a75375d | C++ | 5,816 | 203 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "GroupHDF5.hpp"
#include <nix/Bloc... |
cfd53dc76e0eb51296aaf5d8ff2f200609ae7bb14ca87d88ab0fbdf1d63e3fec | C++ | 5,878 | 191 | /**
* Copyright 2018-2026, XGBoost Contributors
*/
#include <string>
#include <vector>
#include "../../../src/common/random.h"
#include "../../../src/common/threading_utils.h"
#include "../helpers.h"
#include "gtest/gtest.h"
#include "xgboost/context.h" // for Context
namespace xgboost::common {
namespace {
void T... |
8da806dd0520f14e377d2c3d7dfe2dc1f421796275d4f9e9abe05d67c1329e67 | C++ | 5,883 | 199 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
fcba9150023792dd2709ec1b9bca27604ad9797b8f04ab208d69d68071efafb8 | C++ | 5,883 | 210 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Small example how to use the input bits
//
// This code is public domain
// (but note, that the led-matrix library this depends on is GPL v2)
#include "led-matrix.h"
#include "graphics.h"
#include <ctype.h>
#include <getopt.h>
#include <math.h>
#inclu... |
cae6d1d8444d02c5aebc38d3c7e44a7d48fd0f72cf679846a3fba9a500d8e1ec | C++ | 5,955 | 198 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Example of a clock. This is very similar to the text-example,
// except that it shows the time :)
//
// This code is public domain
// (but note, that the led-matrix library this depends on is GPL v2)
#include "led-matrix.h"
#include "graphics.h"
#incl... |
744c2aa4b7f80fe99610fde52d5b47f83e1195d66a1fc1ddf8c16e76a303ae45 | C++ | 6,087 | 155 | /**
* Copyright 2017-2026, XGBoost contributors
*/
#include "test_quantile_obj.h"
#include <xgboost/base.h> // for Args
#include <xgboost/context.h> // for Context
#include <xgboost/data.h> // for MetaInfo
#include <xgboost/objective.h> // for ObjFunction
#include <xgboost/span.h> // for Span
... |
76a8fb8e0e1e82c018c9ded5d488d3432c2a19df00de93228467a99be003c3d0 | C++ | 6,177 | 201 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
100edf2ebe3dc8bb39ecf024ee888b40353ac586531424d806dfa1cbf8d3abbc | C++ | 6,221 | 185 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright (C) 2014 Henner Zeller <h.zeller@acm.org>
//
// 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 version 2.
//
// This ... |
2c542a0a3b810614af49910a43c5060fa2f86e4b09daaa06dcffc093b5ff9f7e | C++ | 6,286 | 157 | /**
* Copyright 2014-2026, XGBoost Contributors
* \file updater_refresh.cc
* \brief refresh the statistics and leaf value on the tree on the dataset
* \author Tianqi Chen
*/
#include <limits>
#include <vector>
#include "../collective/allreduce.h"
#include "../common/threading_utils.h"
#include "../predictor/predi... |
a8505feaa4d50d4b455e2ec9727822e8f506b34ee181c52adb0b1e4beeeb368b | C++ | 6,290 | 214 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/File.hpp>
#include <nix/util/... |
f4733dcff789d08619c0456eb49be48cee4c02f8285d471a8184a24988caaec5 | C++ | 6,312 | 236 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
01c3cda56865e36691bcfb5038af2a608769baa0e4ede72916545e933924f2fc | C++ | 6,326 | 218 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "H5DataSet.hpp"
#include "H5Except... |
209e5949c00a5b4036e0058a1df535d10434bf81153942a692aece54c4ff5729 | C++ | 6,333 | 194 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "BaseTagHDF5.hpp"
#include <nix/ND... |
71d124e8e51021bec2289b9c96de9dfbfa8b5c6de8bda845c4bb07c84ec422bb | C++ | 6,375 | 233 | // Copyright © 2013,2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner <kellner@b... |
4906f08d98ac19fba3bdd179eb9524f238237b53511b47c41f30a335a9cf9a2c | C++ | 6,422 | 269 | // Copyright © 2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner <kellner@bio.l... |
b47f82b687b5e7a28006d7a9e5d64757f224ead604fce9112651280831c3d03b | C++ | 6,451 | 244 |
/**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modification... |
101c582b39d4e9b2d3d2f2d396689883257f9bdda69492ff557f1baa560f2320 | C++ | 6,452 | 141 | /**
* Copyright 2026, XGBoost Contributors
* \file multiclass_obj.cc
* \brief SYCL implementation of the multiclass objective kernels.
*/
#include "../../../src/objective/multiclass_obj.h"
#include <dmlc/registry.h>
#include <cmath> // for expf, fmaxf, fabsf
#include <cstddef> // for size_t
#include <cstdint>... |
2ca78c12b7be0d151a48b75d91266041b4d997a3ebd9c6a980da05b40c5c6d8d | C++ | 6,467 | 164 | // pybind11 bindings for the circular-statistics C++ kernels.
//
// Replaces circular_stat.i + vendored numpy.i. The Python surface matches
// what SWIG produced -- every ``(ptr, size)`` pair on the C++ side becomes a
// single numpy array on the Python side, and ``cdiff`` / ``cdiff_means`` /
// ``ppcs`` etc. are still... |
ed3fa6db34963c05d29db61d5beeded0fe74f1d9ea1a246336649ec2442cc634 | C++ | 6,476 | 220 | // Copyright © 2013,2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner <kellner@b... |
c71776e8db8220a8c8da38795edca0072afe46b58b92275800866ec7a7a10546 | C++ | 6,605 | 203 | /*
* Copyright 2011, Ben Langmead <langmea@cs.jhu.edu>
*
* This file is part of Bowtie 2.
*
* Bowtie 2 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 opt... |
daf96682a7df49ae61bd238c5e693841b9e485e904e3868a35be2b9644f747c9 | C++ | 6,689 | 203 | // Copyright (C) 2025 Severin Strobl <git@severin-strobl.de>
//
// SPDX-License-Identifier: MIT
//
// Exact calculation of the overlap volume of spheres and mesh elements.
// http://dx.doi.org/10.1016/j.jcp.2016.02.003
#include "common.hpp"
TEST_SUITE("DoublePrecision") {
using namespace overlap;
TEST_CASE("Cons... |
825d8cb1131912285187a03d6b332ba6f88ac3bc54cf03f28593ca570f34437c | C++ | 6,753 | 261 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
829e37573356584752fa8bd04bcc40f97ed758e69c0ba6ee1bf14529b359347c | C++ | 6,834 | 207 | // Copyright (C) 2025 Severin Strobl <git@severin-strobl.de>
//
// SPDX-License-Identifier: MIT
//
// Exact calculation of the overlap volume of spheres and mesh elements.
// http://dx.doi.org/10.1016/j.jcp.2016.02.003
#include "common.hpp"
#include "overlap/overlap.hpp"
#include <utility>
#include <vector>
TEST_SU... |
f7f7a8d1f3edff34381b7ccc950e265f7b8c39fe1613147fa9743c4cd39f4d72 | C++ | 6,955 | 239 | // Copyright © 2013,2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner <kellner@b... |
8285f1b71a2421a6be49fbb4df6651b234dea131a6f9ce483783a1c7f0e9330c | C++ | 7,077 | 265 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
ca608260bd177ba5420f2f76497ad5270f119ae69cc1863df9fa570f8093d0ca | C++ | 7,090 | 180 | /**
* Copyright 2026, XGBoost Contributors
* \file logistic_obj.cc
* \brief CPU implementations and registration of logistic objectives.
*/
#include "logistic_obj.h"
#include <dmlc/registry.h>
#include <algorithm> // for all_of, max
#include <cmath> // for abs
#include <cstddef> // for size_t
#include <c... |
19c208e6130f7e9d05b1a6c5653324f4fd2e69086d8049c9ca012ea9927f3577 | C++ | 7,106 | 191 | /**
* Copyright 2024-2026, XGBoost Contributors
*/
#include "quantile_dmatrix.h"
#include <numeric> // for accumulate
#include "../collective/allreduce.h" // for Allreduce
#include "../collective/communicator-inl.h" // for IsDistributed
#include "../common/error_msg.h" // for InconsistentCateg... |
93bdadb079acf8a31b605263eead76613975c7a26b3a39fe75d1d4d8dce149d1 | C++ | 7,168 | 239 | // Copyright 2017 Ryan Wick
// This file is part of Filtlong
// Filtlong 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
// version.
// Filtlong... |
83cb2a147cabfda25c0ccb5c7a8d9ec4b8181c60ed0043342f88bf7eede32064 | C++ | 7,170 | 282 | /*
* Copyright 2011, Ben Langmead <langmea@cs.jhu.edu>
*
* This file is part of Bowtie 2.
*
* Bowtie 2 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 opt... |
89685845ea5f1ee0abffc98735b808ac65bf5bd120118b7b7d1acbd94ab00308 | C++ | 7,211 | 222 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "BaseTestFile.hpp"
#include <nix/... |
c42a0cf7f705ce5043d04950444ac632e5c9e2aa5c5348139936c071924bd544 | C++ | 7,296 | 209 | #include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
#include "WLS_mean.h"
#include "WLS_cov.h"
#include <chrono>
#include <ctime>
#include <iomanip>
#include <string>
using namespace Rcpp;
arma::mat post_process_est(arma::mat est) {
int p = est.n_rows;
// Identify diagonal elements that are NA or Inf
... |
8b1bbeebfb6c374e61295b74ed02929c2e007854b7a16e71d97e34970b09e0b4 | C++ | 7,320 | 291 | // Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "FileFS.hpp"
#include "Bloc... |
3196fd40e2b97db81b72fc5631b7c844a5377726aa23a0e3ae8e5780294e31d2 | C++ | 7,495 | 251 | // Copyright © 2017 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner <ckellner@redha... |
236af41e8a95f6e4d5f2f8acd5fddd21c0c99b99b781021a4be9ac6b218e3e82 | C++ | 7,509 | 255 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
b593212154cefcb1f4e9124863666a89fcaf56941bfbd13c89ba5f2486488aac | C++ | 7,524 | 268 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
a500ab7a255a033cab64b24094bab995d0bb3208b7e2e4acea145025caedd510 | C++ | 7,649 | 240 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
c0bc0a9b91f0e5f0bf0a11457b10a57c0b1504276fb838301f92be12ac2975f4 | C++ | 7,846 | 309 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
#include "frame-sequence.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <algorithm>
#include <chrono>
#include "led-matrix.h"
namespace rgb_matrix {
namespace {
static const uint32_t kFseqMagic = 0x51455346; // "FSEQ"
static ... |
36e00b4b9b8daa0df53e675023bad5db29db573d5c37353b5eff530c65d18d34 | C++ | 7,927 | 281 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
//
// Utility showing how to decode an image/animation and play it from an
// in-memory frame sequence.
#include "frame-sequence.h"
#include "led-matrix.h"
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <termios.h>... |
c416e253bb70296cfb888b1bcfab61a816c74c00d88e859a9d3b7bf2d38a45ed | C++ | 7,968 | 196 | /**
* Copyright 2026, XGBoost Contributors
* \file expectile_obj.cc
* \brief CPU implementation and registration of the expectile objective.
*/
#include "expectile_obj.h"
#include <dmlc/registry.h>
#include <algorithm>
#include <cstddef>
#include "../common/expectile_loss_utils.h"
#include "../common/kernel.h"
#... |
c7c3376e9c7a4cedee1e283b33c2a4ff4b82e326e3aebe5bbd25df1ff36accc1 | C++ | 7,982 | 235 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
f309645093423afdaf4c03edc9a5be176ff2e358ec5c08c39ee26e9baf85cefe | C++ | 7,999 | 186 | /**
* Copyright 2026, XGBoost Contributors
* \file radix_select.cc
* \brief CPU implementation of float32 radix selection.
*/
#include "radix_select.h"
#include <algorithm> // std::clamp, std::fill, std::max
#include <cstddef> // std::size_t
#include <cstdint> // std::uint32_t
#include <cstring> // std::... |
6fed065dc06dba5159a8aff0ccfa4946c61cd90b4dfaeddb5f9978dcadc86a2b | C++ | 8,062 | 233 | // Copyright © 2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Christian Kellner <kellner@bio.lm... |
b6603b50b3657976241987b9bdfe695aff58d18729892f294811a652c70abf0e | C++ | 8,088 | 247 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright (C) 2014 Henner Zeller <h.zeller@acm.org>
// Modified 2024 by WMcD (adding ReadFont/parseLine)
//
// 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
/... |
c910b174caff210f780288d56375297cafffb0a7461f85e0fdb15e015b870868 | C++ | 8,096 | 288 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
41b3bab4836c88ed5d2f3b627aacc3dead2262c535b3547d1280416f4c60ee11 | C++ | 8,169 | 256 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
#include "content-streamer.h"
#include "led-matrix.h"
#include <cstddef>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/mman.h>
#include <algorithm>
#include "gpi... |
dfc56e18f5ab1dd2304366ed82db3a8cacb6ab47da6a0b98f5b7cf4f1ce616bd | C++ | 8,262 | 201 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "TestUtil.hpp"
#include <ctime>
#... |
e9efc64956738fa3d03ab589ab322e8d944cbc577eecb95f782fbd2fde321846 | C++ | 8,466 | 282 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
bfb71ace72f1f75a19aa2c7f14402e130656847bbcf981e2d8055bc00eed834e | C++ | 8,741 | 294 | // Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/util.hpp>
#includ... |
263303b8ae04a7048d2878ff79a9eaae6b422834758b3deb819f1aea63c8fd01 | C++ | 8,875 | 284 | #include<iostream>
#include "Randomnumber.h"
#include "Channels_ECells.h"
#include "Channels_ICells.h"
#include "Variables.h"
#include "Network.h"
#include "NeuronsStructure.h"
using namespace std;
int main (int argc, char *argv[]){
double transient_samples=10000.0;
double factorM=0.;
/*&&&&&&&&&&&&&&&&... |
362c23f2473f099adfb044fcaa31394639bb30b4b80ddea3be1611bce22caba5 | C++ | 8,885 | 304 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "SectionHDF5.hpp"
#include <nix/u... |
59278c59d2fc6d9bbd64ad7afe96d825f9383922cb35bb6fcbf612ae8c6e6e02 | C++ | 9,037 | 319 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
63cfd03a037248438a891c8040968da0d44571fedd602691f32630f8ee249d8f | C++ | 9,045 | 305 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
9d9a4ed5f43b8f7a8c890c39c6c6dfc948e895dcb2cb46a858639fb647916af3 | C++ | 9,092 | 358 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
235c28fa430a5763ab7a5f49dfc27decb5abe54bd81a922297909437d203a07f | C++ | 9,136 | 235 | // DCIMG_LabVIEW.cpp: definisce le funzioni esportate per l'applicazione DLL.
//
#include "stdafx.h"
void pause(int dur)
{
Sleep(dur * 1000);
}
void writeTiffTags(libtiff::TIFF* output, libtiff::uint32 XSIZE, libtiff::uint32 YSIZE, libtiff::uint16 bpp, libtiff::uint16 spp, int page, int lb)
{
TIFFSetField(output,... |
32f35cf5c341aba53a03f5d753192a54ad3a2d1aee465e9f8212f14c887e022a | C++ | 9,170 | 319 | // LabTIFF.cpp: library for basic multi-page TIFF I/O, suitable for embedding in LabVIEW.
//
#include "stdafx.h"
__declspec(dllexport) int OpenTIFFFile(char* path, char* OpeningPurpose, int*& FileRef)
{
TIFF *tif = TIFFOpen(path, OpeningPurpose);
if (tif!=0)
{
FileRef = (int*)tif;
return 0;
}
else
return 9... |
b6186fd8e4f4e70825283c1ed7fc26369a4e0585807950e0fb17fb5eefe17c04 | C++ | 9,227 | 230 | /**************************************************************************
* Microsoft COCO Toolbox. version 2.0
* Data, paper, and tutorials available at: http://mscoco.org/
* Code written by Piotr Dollar and Tsung-Yi Lin, 2015.
* Licensed under the Simplified BSD License [see coco/license.txt]
****************... |
eb2e32ea7ff879237e754da367614909f9160d9c88a25563f75af618662f38bb | C++ | 9,475 | 297 | /**
* Copyright 2021-2026, XGBoost Contributors
*/
#include "cache_manager.h"
#include <algorithm> // for min
#include <cstdint> // for uint64_t
#include <optional> // for optional
#if !defined(__x86_64__) && defined(__linux__)
#include <fstream> // for ifstream
#include <string> // for string, getline, st... |
d5886ad0b80a893f03e875247045520ae7b5e290ce656cd69caf86195b745391 | C++ | 9,537 | 306 | /**
* Copyright 2014-2026, XGBoost Contributors
*
* \brief Context object used for controlling runtime parameters.
*/
#include "xgboost/context.h"
#include <algorithm> // for find_if
#include <charconv> // for from_chars
#include <iterator> // for distance
#include <optional> // for optional
#include <regex... |
e500112cad0512145891f160cf5521f222ec3b133833b247b09172c36f031d94 | C++ | 9,581 | 207 | /**
* Copyright 2026, XGBoost Contributors
* \file multiclass_obj.cc
* \brief CPU implementations and registration of multiclass objectives.
*/
#include "multiclass_obj.h"
#include <dmlc/registry.h>
#include <algorithm> // for max
#include <cassert> // for assert
#include <cmath> // for expf, fmaxf
#incl... |
bbb847604d4c221591012190c848d73316d1b7904814bb03d82ff9becfa10eaa | C++ | 9,710 | 340 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/util.hpp>
#include "Dat... |
7f13ab5a43ae72fd005efa2f9cc863e066551834a365974b544f6d33842c76ae | C++ | 9,803 | 244 | /**
* Copyright 2018-2026, XGBoost Contributors
*/
#include <gtest/gtest.h>
#include <xgboost/gradient.h> // for GradientContainer
#include <xgboost/host_device_vector.h>
#include <xgboost/json.h> // for Json, Object
#include <xgboost/linalg.h>
#include <xgboost/tree_updater.h>
#include <cmath>
#include <cstddef> ... |
edd389f81a0bfb22d1b0f81c8a045f035c34cafa2a525ac3fe04d3c81eb19f3f | C++ | 9,868 | 357 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
83597ba83ff139337a9bf1538d95f220da9e19d388ba075ce450ff03d817339e | C++ | 9,885 | 346 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/util.hpp>
#include "Dat... |
005c460ef79d20da9e74a3e29af3c77100c60dadf500f5bac20030f6ca5fc555 | C++ | 10,109 | 274 | /**
* Copyright 2019-2026, XGBoost Contributors
*/
#include "test_hist_util.h"
#include <gtest/gtest.h>
#include <xgboost/data.h> // for ExtMemConfig
#include <xgboost/host_device_vector.h> // for HostDeviceVector
#include <memory> // for shared_ptr
#include <string>
#include <vector>
#include "..... |
bcda51d2b77bd6b8788bb716100aea53ab42888ceaf333c7db45eaee09353bbd | C++ | 10,160 | 225 | // Copyright (c) 2014, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/valid/validator.hpp>
#include... |
d55abbf9d347025ca7e515824ae2daaa979d062c740789b1876a944257a9f0f4 | C++ | 10,173 | 273 | // Copyright 2017 Ryan Wick
// This file is part of Filtlong
// Filtlong 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
// version.
// Filtlong... |
bba4338a169f2cdc7fd3bdb4fdea91880f875f0a24186f57a27c4f4dfc4f4708 | C++ | 10,179 | 414 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
86048ce5539e953a0d32c7005bc53771a5cd2004cacc6b262f4119819bf62cf7 | C++ | 10,225 | 248 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
2a2672a658a32ae4d53ebf7753d586825037f85d842af76c051b777afcbb6263 | C++ | 10,257 | 380 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
309d69c517b972aee16b04020068f17524204c67c302aca2ad8c961c83089a92 | C++ | 10,563 | 324 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright (C) 2015 Henner Zeller <h.zeller@acm.org>
//
// 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 version 2.
//
// This ... |
040ec36a8433277c8e9cea361e58f6764f0536681195ab84368f99c60d4af406 | C++ | 10,591 | 238 | /**
* Copyright 2023-2026, XGBoost contributors
* \file quantile_obj.cc
* \brief CPU implementations and registration of the quantile objective.
*/
#include "quantile_obj.h"
#include <dmlc/registry.h>
#include <algorithm> // for sort
#include <cmath> // for fabsf, fmaxf, sqrtf, tanhf
#include <cstddef> /... |
8f9997c1a50e694168bf7664d324a7821df66ff20a65940e5b9da8afe59d241e | C++ | 10,608 | 382 | /*
* Copyright 2011, Ben Langmead <langmea@cs.jhu.edu>
*
* This file is part of Bowtie 2.
*
* Bowtie 2 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 opt... |
f55d48d5da47eb5a8c6d0ca087dba4537c06b724d792fbc24357fb4fd852e631 | C++ | 10,690 | 336 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
7af52aebc7f7d921ecaf0f0f3d36e71fb10e35662b2bce88b78fd56da23cab5c | C++ | 10,842 | 330 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <ctime>
#include <iostream>
#inclu... |
1ce7e0f4d44c0b978861308bb07558fca3267e1c48d8a698379b40bc6a738666 | C++ | 10,858 | 344 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
7bbf85c34268402104b1b8c7857120a334edd7b02b3ea3fd10170a587a725a7a | C++ | 10,994 | 338 | // Copyright (c) 2013-2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "BlockFS.hpp"
#include "Multi... |
96cc301974d68b41557951f34f77ca7aa06d7ff616ea09b0a4c3563290b00181 | C++ | 11,109 | 445 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "FileHDF5.hpp"
#include <nix/util... |
dca6415fe971fb898689543188af4cb17ed54031b1c16720a4b9faccbd3c8980 | C++ | 11,135 | 370 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "H5Group.hpp"
#include <nix/util/u... |
8f424d76e5af878c3bf96c6dac1af5535c467ac033ff8e29f513726f022cda68 | C++ | 11,214 | 373 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/util/util.hpp>
#include <nix... |
4bb091c9ec4df1632f73e58c08129200d10b9bab2c473c1efb2969bc730b8ca3 | C++ | 11,372 | 334 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "TestDataSet.hpp"
#include "hdf5/... |
d88c88947b982df1019566fda8289be65965471e778ad6f36288cb63b2e8d27d | C++ | 11,427 | 385 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
0f45a3c87c6e0edd16cda19cc7c81ba9f188c52790a47e2054847c66a4859caf | C++ | 11,463 | 404 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include <nix/Section.hpp>
#include <list>... |
6a7ab19ef8e4370f03c9687d25f8d65a4a4e74d1812b8c7bceb5c46fed6da294 | C++ | 11,557 | 377 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "BlockHDF5.hpp"
#include <nix/uti... |
1e9c9d8c09ee79a45e59a3c45e0737ea3bc24a21f08af778886b25f474527307 | C++ | 11,927 | 437 | /**
* Copyright 2017-2024 by XGBoost contributors
*/
#ifdef XGBOOST_USE_SYCL
// implementation of HostDeviceVector with sycl support
#include <dmlc/registry.h> // for DMLC_REGISTRY_LINK_TAG
#include <memory>
#include <utility>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-W#pragma-messages"
#pragm... |
172c30d9428fa08a22cb3734b831ed1746a0c956e6ff8400e33f39e46ad09a18 | C++ | 11,938 | 348 | /**
* Copyright 2016-2025, XGBoost Contributors
*/
#include <gtest/gtest.h>
#include <xgboost/data.h>
#include <xgboost/host_device_vector.h> // for HostDeviceVector
#include <filesystem> // for path
#include <future> // for future, async
#include <thread> // for sleep_for
#include "../../../src/common/... |
6c8a13eec1cb6efed47d8b195823ba87f8a479bc3546deef822a52ce1ee0bac4 | C++ | 11,951 | 472 | // Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#include "DimensionFS.hpp"
using na... |
dc0b11a7f3a98cffa0cc4fec2979e9fcc7f55344f8230ea63102e3aa59d9707e | C++ | 11,978 | 321 | // Copyright 2017 Ryan Wick
// This file is part of Filtlong
// Filtlong 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
// version.
// Filtlong... |
0e0bab85caf6cabf003e06aba64528bdded723625f8f4da51e1221053dc258e0 | C++ | 11,993 | 437 | /**
* Copyright 2021-2026, XGBoost Contributors
*/
#include "test_linalg.h" // for TestLinalgDispatch
#include <gtest/gtest.h>
#include <xgboost/context.h>
#include <xgboost/host_device_vector.h> // for HostDeviceVector
#include <xgboost/linalg.h>
#include <cstddef> // size_t
#include <numeric> // iota
#include... |
f398df21d4073f560224e693d872abfc518c262ad16833476d81c52c8556e7dc | C++ | 12,015 | 399 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
b72dc6577b9d94631333732672c02221ef12142037e01fc5a952fd3afe84798a | C++ | 12,055 | 404 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
26a7ba5f06e5ed435067faf8c05714276f35bf9690e462a5d4f0ed3050d3c427 | C++ | 12,071 | 472 | #include "tomogram.h"
#include "projection_IO.h"
#include "tomo_ctf_helper.h"
#include <src/jaz/optics/damage.h>
#include <src/jaz/image/power_spectrum.h>
#include <src/jaz/tomography/particle_set.h>
using namespace gravis;
Tomogram::Tomogram()
{
}
void Tomogram::setProjectionMatrix(int f, RFLOAT xtilt, RFLOAT yt... |
2a89f4c532c0eb0f70946087b57f828bfd10357d141bd7e842854cdad5b668f7 | C++ | 12,089 | 392 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
84018248b6412b249bc155c828f4cf9a2642ae7c19b62d4c182f5648fa366c57 | C++ | 12,229 | 389 | // Copyright © 2014 German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
//
// Author: Jan Grewe <jan.grewe@g-node.org>
... |
a9a4c3d5dc80355d55f59a24a19ef0e8487d85d64353b6e213dda06ffcda0a1e | C++ | 12,337 | 327 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright (C) 2013 Henner Zeller <h.zeller@acm.org>
//
// 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 version 2.
//
// This ... |
6b418e99bc5c756cd7b41236e0630dcc2c791b7a69d335d4aaa3578361b3ff17 | C++ | 12,486 | 442 | /**
* (C) Copyright 2020, 2021, 2022, 2023 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.