sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
7ee1093526b21ce94c6c2fabd83da1453e79971002ff550a397ce90ecd26aa7a | C++ | 12,529 | 382 | // 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.lm... |
d2fcfdf46f7a3dece0fb64c70d36b10401a87c86884be2a36d443795ac914f1f | C++ | 12,554 | 366 | // 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.
#include <iostream>
#include <sstream>
#includ... |
6eace8f4ca91a38c765bc8d7c6c6506a558932479a6965075f93f71e2f8f39b1 | C++ | 12,693 | 403 | // 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 "H5DataType.hpp"
#include <memor... |
705ae869559471325697ed9ab83ef77fb70847ee66c3cacb89e272ce7d5f8436 | C++ | 12,914 | 313 | /**
* Copyright 2021-2026, XGBoost contributors
*
* \brief Implementation for the approx tree method.
*/
#include <algorithm> // for max, transform, fill_n
#include <cstddef> // for size_t
#include <map> // for map
#include <memory> // for allocator, unique_ptr, make_shared, make_unique
#include <uti... |
01d4d14e9dba88fa7a08c6317f766960599b6e8e107d39e9665b0e375927bdbc | C++ | 13,030 | 275 | /**
* (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... |
9b2b147de6a31e110a557e66553fa6e95fbbb11d3fb10d77f8b74726982b309d | C++ | 13,064 | 449 | #include "StdAfx.h"
//#define STRICT
#include <windows.h>
#include <windowsx.h>
#include <commdlg.h>
#include <stdlib.h> // MAX_ constants
#include "diblib.h"
/*--------------------------------------------------------------------
READ TIFF
Load the TIFF data from the file into memo... |
0f33cca51bdf6d7db98d1782a88a39a1a3bfed5933cea2706bc3dfe5097b0c89 | C++ | 13,228 | 274 | // pybind11 bindings for the Morlet wavelet C++ kernel.
//
// Replaces the old SWIG interface (morlet.i + vendored numpy.i). The Python
// surface intentionally matches what SWIG produced so that callers like
// ``ptsa.data.filters.morlet.MorletWaveletFilter`` continue to work without
// modification. In particular, SW... |
7dda93864b1c02bbc2ee633843038d2ce9853a471b6b161b15085d4b915ed2cd | C++ | 13,273 | 281 | /**
* (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... |
04f1dfa281ea8727dd5846d194d9d5a333b4444fddf3d9fc9718bcee69132354 | C++ | 13,299 | 329 | /**
* Copyright 2014-2026, XGBoost Contributors
* \file gblinear.cc
* \brief Implementation of Linear booster, with L1/L2 regularization: Elastic Net
* the update rule is parallel coordinate descent (shotgun)
* \author Tianqi Chen
*/
#include <dmlc/omp.h>
#include <dmlc/parameter.h>
#include <algorithm>
#... |
ce80f2de2ca73bf4d5a8d8fce0f344c763a40aa9f1a065f9da591e89cc237e2d | C++ | 13,439 | 289 | /**
* (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... |
f0fa309fffe8af88fef4c1cb11b19f79c96ba17d319ef13903c3f4bdf91f21a8 | C++ | 13,563 | 425 | /**
* (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... |
91dec0a33a9415b8caef3a59bdba2d92ae2184e64260bf558bf50b05b8b98543 | C++ | 13,660 | 476 | // Copyright (c) 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@re... |
22ef9fd8e5defe6e72b40baf48689acc7521f70521607a2b490819229f924725 | C++ | 13,721 | 330 | #include <cmath>
#include <cstring>
#include <thread>
#include "circular_stat.h"
void circ_diff(std::complex<double>* c1, size_t n1, std::complex<double>* c2, size_t n2, std::complex<double>* cdiff, size_t n3) {
for (size_t i=0; i<n1; ++i) {
std::complex<double> d{c1[i].real()*c2[i].real()+c1[i].imag()*c2... |
f16be6e39872680b1d0df5eb837787f94336ddc4ac63ebe33094614f70d59463 | C++ | 14,049 | 427 | /**
* (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... |
06ddc78e7f31cf4ecf35bf8ae1e1e2aca4c2aa7c1774e8b494939a288f49115e | C++ | 14,282 | 512 | // 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 "PropertyHDF5.hpp"
#include <nix/... |
73e426545e1767d50802b8d789468e10a6270491e19a9ff1365b0450d18f53a7 | C++ | 14,344 | 473 | /**
* (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... |
60c4f59fb293f43bedc3eaf0fb15a051630f3da0e3b505790d88689aa1a5b322 | C++ | 14,390 | 441 | /**
* Copyright 2018-2026, XGBoost Contributors
*/
#include <gtest/gtest.h>
#include <cmath> // for nextafter
#include <limits> // for numeric_limits
#include <stack> // for stack
#include <string> // for string
#include "../../../src/common/bitfield.h"
#include "../../../src/common/categorical.h"
#include ".... |
8040db75e0ebc4908b34982f9844169b94eff6258e1a3da1ae8266d31464991e | C++ | 14,477 | 608 | // 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... |
283d8204d56e7b6f480858c726ddce9d0015dabbc4a09f2d5f9a5ab0ea67f633 | C++ | 14,530 | 374 | // UWOT -- An R package for dimensionality reduction using UMAP
//
// Copyright (C) 2018 James Melville
//
// This file is part of UWOT
//
// UWOT 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... |
07fa7dc93924b90e7673dc1ccb702d00e508a0760fd888a2412a30c6caa55700 | C++ | 14,866 | 400 | // 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... |
8ad63bba9a3de4805755da1d6f956bcd5067394618ee9db9cfeecb3136ede5d5 | C++ | 14,893 | 418 | // 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 "BaseTestBlock.hpp"
#include <ite... |
09db200d1acb9540f354be565df88a032b629d031037ff38da2e506e804f3106 | C++ | 15,077 | 393 | /**
* Copyright 2016-2025, XGBoost contributors
*/
#include "test_metainfo.h"
#include <dmlc/io.h>
#include <gmock/gmock.h>
#include <xgboost/data.h>
#include <memory>
#include <string>
#include "../collective/test_worker.h" // for TestDistributedGlobal
#include "../filesystem.h" // TemporaryDirector... |
3177e55d21096a5863fe2af6e3810b626996cb2c215b8b2ad71afc365791f498 | C++ | 15,364 | 499 | /**
* (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... |
9965f8b6ef3aa47bd53c47659969823c4a09786cbf40304c4fe6cf0e46a43b49 | C++ | 15,489 | 229 | /* ////////////////////////////////////////////////////////////////////
//
// CvMat helper tables
//
// */
#include "_cv.h"
const char icvDepthToType[] =
{
-1, -1, CV_8U, CV_8S, -1, CV_16S, -1, -1,
CV_32F, CV_32S, -1, -1, -1, -1, -1, -1, CV_64F, -1
};
const int icvTypeToDepth[] =
{
IPL_D... |
742210ed3a6dfee9384a629ea72b67732e017b64abf3923ff921f514b430df88 | C++ | 15,870 | 500 | /**
* (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... |
69d3df9e52766be551aa7a2bf309d3de185e826c4480d4e85ee2c4a31be80758 | C++ | 16,316 | 506 | /**
* (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... |
9a71bd22708104e83599a0fccb0e5ea88a470cded8eb304f324f9cc235fd2b6e | C++ | 16,347 | 600 | // 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 "DimensionHDF5.hpp"
#include <nix/... |
afe3cf9c6b70c22d87c75a92c3be0ad1d424dbdf25cb1d6f0c44456d3b7d042d | C++ | 16,639 | 443 | //
// Created by busygin on 1/11/16.
//
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstring>
#include "morlet.h"
#include "log_space.h"
#include <iostream>
#include <functional>
using namespace std;
size_t nextpow2(size_t v) {
--v;
v |= v >> 1;
v |= v >> 2;
v |= v >> 4;
v |= v >> 8;
... |
3d318013a62d6e3078a2d4d5888736523ff5a85a29c3bbf29e2f90ad8b362764 | C++ | 16,791 | 534 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
9cc10e73ee54d713ffbf577d76c4c13a9ceb985b37c8063c00d85c65bb55e70a | C++ | 16,970 | 465 | /**
* Copyright 2020-2026, XGBoost contributors
*/
#include "rank_metric.h"
#include <dmlc/registry.h>
#include <algorithm> // for fill_n, min, max
#include <array> // for array
#include <cmath> // for log, sqrt
#include <cstddef> // for size_t
#include <functional> // for less, greater
#include ... |
c1ee04eb97e726f3bb9b15aa9fe7a33a896a8cf5b0aa8393610c8c3bfb55cca9 | C++ | 16,995 | 487 | // Copyright © 2014 - 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: Jan Grewe <jan.grewe@g-nod... |
7ac9c26b26f3eba4503f81fb5162952ae6c4cb37c93cdf6651849db1d65a6d1a | C++ | 17,165 | 231 | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(... |
d085224471c6769de0a20b3d74bfd08b9bde04e8621d67fd123e9db627a629c0 | C++ | 17,245 | 416 | // 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 "TestValidate.hpp"
#include <nix/... |
6a29294ea385613612f40a2e0bbd5c78b7ccc5728ccf2abab06600ef9328ad05 | C++ | 17,334 | 468 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
//
// Quick hack based on ffmpeg
// tutorial http://dranger.com/ffmpeg/tutorial01.html
// in turn based on a tutorial by
// Martin Bohme (boehme@inb.uni-luebeckREMOVETHIS.de)
//
// HELP NEEDED
// Note, this is known to not be optimal, causing flicker etc. ... |
17536d983efa9c7735e80f1d6779ff3d62e04d2a88f79cdf1c14d45dc31e4419 | C++ | 17,444 | 622 | /**
* (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... |
b13bdb8d76757fc8e5b7399c967ac8840406b8678ffca53bd3f47fc99c60d3c2 | C++ | 17,474 | 517 | /**
* (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... |
c42ba1c73e6b0921a0a1529bd5cc275d7ad60338f3ce6b911074a6356f565c02 | C++ | 17,739 | 685 |
#include "mex.h" //--This one is required
#include "math.h"
#include "Include\EthernetStandAlone.h"
#include "windows.h"
#include "Include\streamformat.h"
//#define ASSERT(x)
#define NEW_MATLAB //this define is needed for new matlab versions
#ifdef NEW_MATLAB
//this function changed in upper version of matal... |
5ee3bbe6245429b438f299185fede16069ea0c1baac01516b6fa3a8de6971e14 | C++ | 17,819 | 567 | /**
* (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... |
0f42abf82f32bac6e80dae05ea65d099c2caa8d540aaa2b25ec21dee510bbfc3 | C++ | 17,896 | 687 |
#include "mex.h" //--This one is required
#include "math.h"
#include "Include\EthernetStandAlone.h"
#include "windows.h"
#include "Include\streamformat.h"
//#define ASSERT(x)
#define NEW_MATLAB //this define is needed for new matlab versions
#ifdef NEW_MATLAB
//this function changed in upper version of matal... |
e277b0ecd1b924bd3db3e24b05c8c5387e1122febccf029a2566b4509486cbd1 | C++ | 18,461 | 490 | /**
* Copyright 2021-2026, XGBoost Contributors
*/
#include "../test_evaluate_splits.h"
#include <gtest/gtest.h>
#include <xgboost/base.h> // for GradientPairPrecise, Args, Gradie...
#include <xgboost/context.h> // for Context
#include <xgboost/data.h> // for FeatureType, DMatrix, MetaInfo
#include... |
1e20e49fc872c41b639cc7fd4965908ef547214e4a55d223e28e8afd6e279b3a | C++ | 18,757 | 652 | #include "reconstruct_particle.h"
#include <src/jaz/tomography/projection/projection.h>
#include <src/jaz/tomography/projection/Fourier_backprojection.h>
#include <src/jaz/tomography/reconstruction.h>
#include <src/jaz/image/centering.h>
#include <src/jaz/image/padding.h>
#include <src/jaz/image/power_spectrum.h>
#incl... |
552859b4af583a3c77559850e7c775065d2a40fe0353a0393928cbbdf823edfe | C++ | 18,770 | 472 | /**
* Copyright 2021-2026, XGBoost Contributors
*/
#include "auc.h"
#include <algorithm>
#include <array>
#include <atomic> // for atomic
#include <functional>
#include <limits>
#include <memory>
#include <numeric> // for accumulate
#include <tuple>
#include <utility>
#include <vector>
#include "../collective/agg... |
0b5be82062798318e16417ed677278e7be0b17e9c8970b4d6be0f381eced95ea | C++ | 18,935 | 526 | // -*- 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 ... |
cb35ae8a2e5be1823a561624d3c100a22033a600dc415797575ed0eec83035ce | C++ | 18,963 | 619 | /**
* (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... |
057bc100ecd9fab353de3ef0e9fd4ab2098adaf904dbb1460ca33a2eb7c42c4b | C++ | 19,131 | 507 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright (C) 2013, 2016 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.
//
//... |
18f76cfcb2c1cb7b55c94eab2f34e4f99b08cf713b64ef46328e467e10f3957f | C++ | 19,140 | 583 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright (C) 2018 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 ... |
644ca54381b489381a487ccea47e73739a11619d85fb2705315f47e364f8f972 | C++ | 19,835 | 654 | /**
* (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... |
855b006077000778d4234af07db368153601e108148b609bf271f9e3b8548d01 | C++ | 20,795 | 519 | /**
* Copyright 2017-2026, XGBoost Contributors
* \file hist_util.cc
*/
#include "hist_util.h"
#include <dmlc/timer.h>
#include <cstdint> // for int32_t
#include <vector>
#include "../data/adapter.h" // for SparsePageAdapterBatch
#include "../data/gradient_index.h" // for GHistIndexMatrix
#include "cach... |
a8036e0f48dc3bfdba3a0c2eb1c5f4819a0ddb6d0023812cf96e646734477e47 | C++ | 20,847 | 670 | /*
* 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... |
92af77eff9a321bb2bcd5f5b1629e4fc5d510a7f5d419ff5423b456e9dfe0346 | C++ | 20,872 | 719 | /**
* (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... |
bf7a8e82186f1b363b5736afa9ed505727268fffa4c1410fcbdd2376f14243ee | C++ | 21,083 | 705 | /**
* (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... |
13eca2ba92d7cd09dd436c4b2b5c7268cb0b4c10fa078d129999bbdbef69eb27 | C++ | 22,125 | 807 | /**
* Copyright 2019-2026, XGBoost Contributors
*/
#include <gtest/gtest.h>
#include <cstdlib> // for strtof
#include <fstream>
#include <limits> // for numeric_limits
#include <map>
#include <numeric> // for iota
#include "../../../src/common/io.h"
#include "../../../src/common/json_utils.h"
#include "../../../... |
700d44e4f4f28ede3b054cbbf91b3a6b3a4c08bb4d635ebc771ed107d384544e | C++ | 22,129 | 535 | /**
* (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... |
e5552188becbfbb9a6bd2b5ae704f1cb20b5940af0bae54d3f3cb043a1800c09 | C++ | 22,323 | 625 | // 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... |
1609fa32ff03dfa5131f0d45492b9c80cd403968bd764bfe13440d8911b6bc1d | C++ | 22,377 | 603 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright (C) 2017 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 ... |
d94d4ddf730182673083c556ce843ec2096419dd66b3011517514c9b9e32b23a | C++ | 22,825 | 710 | /**
* (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... |
f48a7607a00cb7c5d809344fccfa1fdf63761f5b2af8f4fa01e4b30d50deb7d3 | C++ | 23,730 | 638 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
495a96e20e8b840fb62c991a07e96962c6e6ff305a61a828751b5d0120c117d3 | C++ | 24,304 | 667 | // Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in Section 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... |
cd36fd5ea4a381e4c4c29f63a76c1056e8beb319374254d20f1c61a85ac7db28 | C++ | 24,323 | 755 | /**
* Copyright 2020-2026, XGBoost Contributors
*/
#include <gtest/gtest.h>
#include <xgboost/context.h> // for Context
#include <xgboost/gradient.h> // for GradientContainer
#include <xgboost/task.h> // for ObjInfo
#include <xgboost/tree_model.h> // for RegTree
#include <xgboost/tree_updater.h... |
9b61f92c69d3f9e0dd6dc1b569ba5d01613ef6339069b642ab9c40bcba8b3618 | C++ | 24,375 | 766 | /**
* (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... |
0ed9b90f853eafc188653b5b5020fb411313639ce6c5e78c0c21228a9bcd60b0 | C++ | 24,975 | 963 | /*
* 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... |
b5a8e9a7a37912a7ab77272905c5d803c0f8a74803095ccafa222a091274df54 | C++ | 26,042 | 770 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
#include "rp1_pio_backend.h"
#include <algorithm>
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string>
#include... |
03b75ad1850907d8b22a656ae1fb8c8aabe04366fd7f9757a7f5c66f1a69500f | C++ | 26,159 | 740 | /**
* Copyright 2019-2026, XGBoost contributors
*/
#include <gtest/gtest.h>
#include <xgboost/c_api.h>
#include <xgboost/data.h>
#include <xgboost/json.h> // Json
#include <xgboost/learner.h>
#include <xgboost/version_config.h>
#include <algorithm> // for copy_n
#include <array> // for array
#include <cstdd... |
cc5d34b280084a9c03763c5caeb616c1165bfa01aaff9f29e2820175ad63cb02 | C++ | 26,226 | 595 | /**
* Copyright 2017-2026, XGBoost Contributors
*/
#include <algorithm> // for max, fill, min
#include <cassert> // for assert
#include <cstddef> // for size_t
#include <cstdint> // for uint32_t, int32_t, uint64_t
#include <memory> // for unique_ptr, shared_ptr
#include <vector> // for vector
#incl... |
776dbca96fd63a537b4d13b1f2f8d0ce5c1fde2068532759ce21cd96d531519b | C++ | 26,525 | 634 | /**
* Copyright 2014-2026, XGBoost Contributors
* \file updater_colmaker.cc
* \brief use columnwise update to construct a tree
* \author Tianqi Chen
*/
#include <algorithm>
#include <cmath>
#include <vector>
#include "../collective/communicator-inl.h" // for IsDistributed
#include "../common/error_msg.h" ... |
224bb225351d74d1a6232854707dfb5713a39383a548a4fb383ade5738aa9f0f | C++ | 28,883 | 714 | /**
* Copyright 2018-2026 by Contributors
*/
#include <gtest/gtest.h>
#include <xgboost/base.h> // for bst_node_t, bst_bin_t, Gradient...
#include <xgboost/context.h> // for Context
#include <xgboost/data.h> // for BatchIterator, BatchSet, DMatrix
#include <xgboost/host_devic... |
a373d9d03e6cc10fafe42c344e6d0c999f9811b6c20cfaf6620a45aa28c5f17f | C++ | 28,929 | 694 | /**
* Copyright 2017-2026, XGBoost Contributors
* \file updater_quantile_hist.cc
* \brief use quantized feature values to construct a tree
* \author Philip Cho, Tianqi Checn, Egor Smirnov
*/
#include <algorithm> // for max, copy, transform
#include <cstddef> // for size_t
#include <cstdint> // for uint32_t,... |
6ca483cff64c16c26999d727e236b6f5c8328383e080fb962272027fa36260af | C++ | 29,002 | 683 | /**
* Copyright 2017-2026, XGBoost contributors
*/
#include "test_regression_obj.h"
#include <gtest/gtest.h>
#include <xgboost/context.h>
#include <xgboost/json.h>
#include <xgboost/objective.h>
#include <xgboost/tree_model.h> // for RegTree
#include <cmath> // for hypot, sqrt
#include <limits> // for numeric... |
2aa3545a07d8094f0266719d946d86cf02b7e08ab71ddedaae00ad4fd4e8e74c | C++ | 29,305 | 763 | /**
* Copyright 2014-2026, XGBoost Contributors
*
* \file gbtree.cc
* \brief gradient boosted tree implementation.
* \author Tianqi Chen
*/
#include "gbtree.h"
#include <dmlc/omp.h>
#include <dmlc/parameter.h>
#include <algorithm> // for equal, any_of
#include <cstddef> // for size_t
#include <cstdint> /... |
9a9a8ef92ee3f1fbedf3fcf30a5221da1599966c9b7bb0d4da3439c6161072a3 | C++ | 29,711 | 1,091 | /**
* Copyright 2019-2026, XGBoost Contributors
*/
#include "xgboost/json.h"
#include <array> // for array
#include <cctype> // for isdigit
#include <cmath> // for isinf, isnan
#include <cstdint> // for uint8_t, int16_t, int32_t, int64_t
#include <cstdio> // fo... |
d59e81431a2aa58154925f28d1fb6ab339dc180e66dbd83f20b400b10b0ebe34 | C++ | 29,776 | 901 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// RP1 physical addresses exceed 32 bits, including on 32-bit userspace.
#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE
#endif
#include "rp1_rio_backend.h"
#include <algorithm>
#include <errno.h>
#include <fcntl.h>
#include <math.h>
#include <st... |
914a38b005309288903e8690bf582c3ad30d15bbc4fcb3d0f48371be3aec10ef | C++ | 30,035 | 539 | // 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 "TestOptionalObligatory.hpp"
#inc... |
83b2daed5079072cf6d47df37a770c3306a9dede5e92156da9d566ba7ef03892 | C++ | 30,369 | 849 | /**
* Copyright 2019-2026, XGBoost contributors
*/
#include <gtest/gtest.h>
#include <xgboost/context.h>
#include <xgboost/host_device_vector.h> // for HostDeviceVector
#include <xgboost/json.h> // for Json, Object
#include <xgboost/learner.h> // for Learner
#include <algorithm> // for f... |
4a4814578006f328d919a190a2726bbd5868e5be26d7e312dd63064fb8310875 | C++ | 30,407 | 889 | // -*- 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 ... |
8e2d743584791e892bb4b5c7bc3ca7b7f26a75bd70b79a2f7779da291e7f32a4 | C++ | 30,803 | 960 | /*
* 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... |
812a5202bf130c211cce4767ea63955a40bb64322d03478a13f1a36e168cb2b2 | C++ | 30,949 | 904 | // 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/Dimensions.hpp>
#include <cm... |
22d2d69b4ba6495e418785b82fa71d88ce1d6fdd819b75696e92f1142580392b | C++ | 31,143 | 911 | // -*- 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 ... |
247404380f876b3b980c883e106a515042eaa57cf5fbe765293ca738ba2c5d92 | C++ | 32,272 | 870 | /**
* Copyright 2017-2026, XGBoost contributors
*/
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <xgboost/learner.h> // for Learner
#include <xgboost/logging.h> // for LogCheck_NE, CHECK_NE, LogCheck_EQ
#include <xgboost/objective.h> // for ObjFunction
#include <xgboost/version_conf... |
738137af4ea90c9085f2578e5b9e9f318ae6ce62a1040b9c8b8e13329c768698 | C++ | 33,041 | 1,058 | /**
* (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... |
1a5595768599806e1bcf32345aa44924e9fd900e9963588f1da812d43af1efa1 | C++ | 35,171 | 1,317 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
//
// This code is public domain
// (but note, once linked against the led-matrix library, this is
// covered by the GPL v2)
//
// This is a grab-bag of various demos and not very readable.
#include "led-matrix.h"
#include "pixel-mapper.h"
#include "graph... |
aa78d693f707290d3d6c020a8d40494622a503f84ce833b5f2e44bc4b29ece37 | C++ | 35,488 | 815 | /**
* Copyright 2017-2026, XGBoost Contributors
*/
#include "shap.h"
#include <algorithm> // for copy, fill
#include <array> // for array
#include <atomic> // for atomic
#include <cmath> // for abs
#include <type_traits> // for remove_const_t
#include <variant> // for variant
#include <v... |
ed6c74dd323a22d28cd470c5107eb3aeed8b5411b9850370a5599cbddf23cc5e | C++ | 35,740 | 902 | /**
* (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... |
307ba117cd805d88c4ed1a5c6334288ac522aefcb9310d23604245f9b135eb42 | C++ | 36,268 | 1,034 | // -*- 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 ... |
9744c7d8733250ded9dc8caaf8625cdcca1ecb01bc928268349178e2fe2d7a26 | C++ | 36,348 | 875 | // 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/dataAccess.hpp>
#includ... |
72bc996f8bf963738cef61b5d6ca28a2c0f313d287f3d5269dbf20e3c7159223 | C++ | 39,192 | 811 | // Author: "Keitaro Yamashita, Garib N. Murshudov"
// MRC Laboratory of Molecular Biology
#include <nanobind/ndarray.h>
#include <nanobind/stl/vector.h>
#include <nanobind/stl/complex.h>
#include <gemmi/bessel.hpp>
#include <gemmi/math.hpp>
#include "math.hpp"
#include "array.h"
namespace nb = nanobind;
using namespac... |
8bcc86d8da44e3166609a67abf51d6f2a784baa767c38c1f750c1e43886fc736 | C++ | 41,402 | 973 | // 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.
#ifdef _MSC_VER
#pragma warning(push)
#pragm... |
3bf149f131a1ad7235482630268be19bf7fced5dbd8750e3d3f4d831ed5beecd | C++ | 43,144 | 974 | /**
* (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... |
da8e246db444ff65f82bfb079b5f0a1740776405956a05c92d4812c8eb095dc4 | C++ | 43,706 | 1,091 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
c16c513e144c8dd4c48a6ae8108a101f017c02bcf27d411d3d4b9967c1713b7d | C++ | 45,601 | 1,071 | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in Section 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 <limits>
#include <sstream>
#incl... |
4659f84402e133abf25880c0affd4b3126d3ec2282e997d75557f5abe0b758c2 | C++ | 50,178 | 1,448 | /**
* (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... |
c28123811a348791e6a174eb22b70243f68197c8d46a0020536b1b24db9fa778 | C++ | 50,517 | 1,305 | /**
* Copyright 2014-2026, XGBoost Contributors
* \file learner.cc
* \brief Implementation of learning algorithm.
* \author Tianqi Chen
*/
#include "xgboost/learner.h"
#include <dmlc/io.h> // for Stream
#include <dmlc/parameter.h> // for FieldEntry, DMLC_DECLARE_FIELD, Parameter, DMLC...
#include <... |
840a8dc106de6039589148d54fb70a32b2923a1abdc0e1f40130a488dbe5e780 | C++ | 50,637 | 1,612 | /**
* (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... |
80773efe47b7ff5d2adf6cef3695d97fbdcc3a301893b0f31f6046ff40049854 | C++ | 50,704 | 1,306 | /**
* Copyright 2015-2026, XGBoost Contributors
* \file tree_model.cc
* \brief model structure for tree
*/
#include "xgboost/tree_model.h"
#include <dmlc/json.h>
#include <dmlc/registry.h>
#include <cmath>
#include <iomanip>
#include <limits> // for numeric_limits
#include <optional> // for optional
#include ... |
d177971df1384911ebb636d459e9ffa3dd9e49d1f27996e87a539890705fe21c | C++ | 51,447 | 1,273 | /**
* Copyright 2015-2026, XGBoost Contributors
* \file data.cc
*/
#include "xgboost/data.h"
#include <dmlc/registry.h> // for DMLC_REGISTRY_ENABLE, DMLC_REGISTRY_LINK_TAG
#include <algorithm> // for copy, max, none_of, min
#include <atomic> // for atomic
#include <cmath> // for abs
#include <cstd... |
ebf0a7e8216f598c0b057e034699626bd4de8123eab0a237711cf2772ab26baa | C++ | 53,163 | 2,038 | /*
* 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... |
b4452a8308afcce0ee32a3c8917a71daf280affb4959a5b1aa6d3a611d9435d7 | C++ | 61,756 | 1,388 | // Author: "Keitaro Yamashita, Garib N. Murshudov"
// MRC Laboratory of Molecular Biology
#include "refine/params.hpp" // for RefineParams
#include "refine/geom.hpp" // for Geometry
#include "refine/ll.hpp" // for LL
#include "refine/cgsolve.hpp" // for CgSolve
#include "refine/ncsr.hpp" // for
#include "a... |
49d6eb4bf95a727427c80a509abaea9292704d17d58a5ecf3fe72adcd4a45ae3 | C++ | 62,451 | 1,793 | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
57793f248d6126fa4fdbd177f6426bfc9b1aba6391dd2dafbb61c327fbd65ef1 | C++ | 64,309 | 1,908 | /*
* 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... |
7d8d917012201968590a6e8048690d3f297e24968c73c0caad4fc0262f4e9370 | C++ | 64,975 | 1,422 | // Author: "Keitaro Yamashita, Garib N. Murshudov"
// MRC Laboratory of Molecular Biology
#include <nanobind/ndarray.h>
#include <nanobind/stl/array.h>
#include <nanobind/stl/vector.h>
#include <nanobind/stl/complex.h>
#include <nanobind/eigen/dense.h>
#include <nanobind/stl/string.h>
#include <cmath> // for NAN
#incl... |
105a2f8e80e9dedce8a9eddf08b041b573737428aecbf9ed1c6033514db7f953 | C++ | 68,448 | 2,250 | /*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.