sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
9200c77090d0e0c81497b514a4bdc2f5e5f9fb4e696e00a98e41d799da3920dc
C++
69,722
1,901
/** * Copyright 2014-2026, XGBoost Contributors */ #include "xgboost/c_api.h" #include <algorithm> // for copy, transform #include <cinttypes> // for strtoimax #include <cmath> // for nan #include <cstring> // for strcmp #include <limits> // for numeric_limits #include <map> //...
69a53b506798c8fac2a0b238b104953c3242451efcf6eadb7c04e7d8602f2084
C++
72,022
2,094
/*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...
05da1bb3cb3a765f935c77fa4c33ad6947a39b59ab0031745c04982ad56731a8
C++
72,321
1,607
/*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...
fd578e280068461dcd0cc36a562a4681b48a3053dee2fe7aa9ef81767976fecd
C++
90,955
2,585
/* * 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...
7bd0154f64ba985cfa24ba2f70826b731add541daf697d9e12a082bfbc928843
C++
94,144
3,689
/*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...
4f9cda5c6d06a063f772df8fb194ef88e444f5244e4370e9394bb0424e1ca663
C++
97,021
3,657
/*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...
465e17e968d2ad7fe2ae5c417ed9177eb40a3c2f2084e86dfaf0e463bda4619f
C++
100,266
2,225
/*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...
bdc28240cbf6d260599860c24c33858116d31d22fba21f7d0c5e7da8adb457fa
C++
104,462
2,249
/*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...
452fa82c32d9eb803d7e91d9d590bf5143e9331cc2d744b6fc1ff976a0afa1b3
C++
105,178
3,254
/* * 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...
b66f52272b01b426a9525303e930d20959b74d808c6681cac6fd289f37e9d4b2
C++
128,066
6,783
/* ***************************************************************************** * * Copyright (c) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Teunis van Beelen * All rights reserved. * * email: teuniz@gmail.com * * Redistribution and use in source and binary forms, with or without * modification, are permitte...
f4e84a649a7e23fe953f973a3867c35bb8132386943b4000afd12325bee41440
C/C++
71
4
#pragma once template<class T> inline void UnusedParam(const T&) { }
ec432e9c87e193d478c1858e1fb677d7403fd6ec03ba076bf5455939e3f6686b
C/C++
92
7
// // Created by m on 6/15/16. // #pragma once enum OutputType {POWER,PHASE,BOTH,COMPLEX};
60aeb31cd3e811cdcf8b79030d04d486d4cbafc1b3641a425ec9853b06ba6f18
C/C++
107
8
#define PATCHLEVEL 0 /* * Local Variables: * mode: c * c-basic-offset: 8 * fill-column: 78 * End: */
6c3daa1efc7fd0638f46df0afde99a3156a2613e7921bfa5ffdb93229a9954ad
C/C++
163
9
#ifndef WLS_COV_H #define WLS_COV_H #include <RcppArmadillo.h> // Declaration of the function Rcpp::List WLS_cov(arma::mat D, arma::mat X, arma::mat W); #endif
ab999f535d6187cf98e2fe6259d36c582e5da3f94beb956d6956df6cadacc25f
C/C++
165
9
#ifndef WLS_MEAN_H #define WLS_MEAN_H #include <RcppArmadillo.h> // Declaration of the function arma::mat WLS_mean(arma::mat D, arma::mat X, arma::mat W); #endif
b46098628b6c4e61582b98bf58a4819e16a784330b02fe814645d35adfefb294
C/C++
171
10
#ifndef _SVM_rbf #define _SVM_rbf #include <stdio.h> #include "arm_math.h" void initARMSVMrbfClasificator (); uint32_t predictSVMrbf (float32_t innputVector[]); #endif
d8e9ae438b648676ba74167c3964b0113ea2ba532b10c96e5563bf0b59c11a75
C/C++
183
10
#ifndef _SVM_linear #define _SVM_linear #include <stdio.h> #include "arm_math.h" void initARMSVMLinearClasificator (); uint32_t predictSVMLinear (float32_t innputVector[]); #endif
1072450bcdb96ca1adf767aa1b480d68b48421f3274462eb688416906f5c2cd3
C/C++
187
10
#ifndef _SVM_sigmoid #define _SVM_sigmoid #include <stdio.h> #include "arm_math.h" void initARMSVMSigmoidClasificator (); uint32_t predictSVMSigmoid (float32_t innputVector[]); #endif
754c89a6ae7371946550f3f0d4165d722c7125aa25b2c72cbf60a348bcd8e6c0
C/C++
187
10
#ifndef _SVM_poly #define _SVM_poly #include <stdio.h> #include "arm_math.h" void initARMSVMPolynomialClasificator (); uint32_t predictSVMPolynomial (float32_t innputVector[]); #endif
c6d61a00cd9bf08ab04294b543eaf6fbc1a835f2313346f15ac5c0754c9d3965
C/C++
195
11
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2024 Raspberry Pi Ltd. * All rights reserved. */ #ifndef _HARDWARE_PIO_H #define _HARDWARE_PIO_H #include "piolib.h" #endif
46b19ec4c44c6c459c671fee15063ba9249afbeb90d9906c4d5141635b2db581
C/C++
208
16
#ifndef SHIMS_PIL_H #define SHIMS_PIL_H #ifdef __cplusplus extern "C" { #endif typedef struct ImagingMemoryInstance ImagingMemoryInstance; int** get_image32(void* im); #ifdef __cplusplus } #endif #endif
4188e51964495563a01cd8625c2d4f890d4b22a011bb2c08cd06beaa4932f4a4
C/C++
218
10
#ifndef _gaussian_naive_bayes #define _gaussian_naive_bayes #include <stdio.h> #include "arm_math.h" void initARMGaussianNaiveBayesClasificator (); uint32_t predictClassNaiveBayes (float32_t innputVector[]); #endif
0b59525abb361e4afb5fdcc1be3464295104024c15a228481d962eedee6e90b1
C/C++
308
14
// // VideoCapture-Bridging-Header.h // VideoCapture // // Created by Nathan Perkins on 8/3/15. // Copyright © 2015 GardnerLab. All rights reserved. // #ifndef VideoCapture_Bridging_Header_h #define VideoCapture_Bridging_Header_h #import "CrashReporter.h" #endif /* VideoCapture_Bridging_Header_h */
33c15c4fa30ac7f13e8174d8accf6c3af21250f6b573a647fff81422da5011b0
C/C++
332
8
#pragma once // Includere SDKDDKVer.h per definire la piattaforma Windows maggiormente disponibile. // Se si desidera compilare l'applicazione per una piattaforma Windows precedente, includere WinSDKVer.h e // impostare la macro _WIN32_WINNT sulla piattaforma da supportare prima di includere SDKDDKVer.h. #include <S...
cd86e0b847e93c4d7391a4143324497f078c87946e227ce57f25bf8f7501b4eb
C/C++
355
16
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2023-24 Raspberry Pi Ltd. * All rights reserved. */ #ifndef _PIOLIB_PRIV_H #define _PIOLIB_PRIV_H #include "pio_platform.h" #define DECLARE_PIO_CHIP(chip) \ const PIO_CHIP_T *__ptr_ ## chip __attribute__ ((section ("piochips"))) __attribute__ ...
c447c87dc66667648ce15548d088a01d59596d90a754a7accebf243ae30fe9b7
C/C++
396
14
/* * jversion.h * * Copyright (C) 1991-2012, Thomas G. Lane, Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains software version identification. */ #define JVERSION "8d 15-Jan-2012"...
456f2bd685dddb4db0bc1ddf02b3683fb396ea535ee27d16a0d6853314039921
C/C++
410
9
#define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.0.1\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc." /* * This define can be used in code that requires * compilation-related definitions specific to a * version or versions of the library. Runtime * version checking should be don...
d8d89cb66fda71af40d9c55eda3f46f70fc56f6fd538cdbab7ea332c28e06bcf
C/C++
410
9
#define TIFFLIB_VERSION_STR "LIBTIFF, Version 4.0.3\nCopyright (c) 1988-1996 Sam Leffler\nCopyright (c) 1991-1996 Silicon Graphics, Inc." /* * This define can be used in code that requires * compilation-related definitions specific to a * version or versions of the library. Runtime * version checking should be don...
9be0445dac58e2211998726a8c9a8c8f6a59330ff669c21bff301dca1b251c95
C/C++
548
22
// stdafx.h : file di inclusione per file di inclusione di sistema standard // o file di inclusione specifici del progetto utilizzati di frequente, ma // modificati raramente // #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN // Escludere gli elementi utilizzati di rado dalle intestazioni...
4bb8273d693ca0e0b1400c679cd46d8058d716d7f120c8746e60fdaee2b6a3c4
C/C++
592
18
#pragma once #include <nanobind/ndarray.h> namespace nb = nanobind; template<class T, size_t N=1> using np_array = nb::ndarray<T, nb::ndim<N>, nb::device::cpu>; // gemmi python/array.h template<typename T> auto make_numpy_array(std::initializer_list<size_t> size, std::initializer_list<int64_t> s...
e1012c1fb374eb4bc30f4fdf1e3db836e86506160dee483bb784ee068e6c0589
C/C++
662
31
// stdafx.h : file di inclusione per file di inclusione di sistema standard // o file di inclusione specifici del progetto utilizzati di frequente, ma // modificati raramente // #define _CRT_SECURE_NO_WARNINGS #pragma once #include "targetver.h" #define WIN32_LEAN_AND_MEAN // Escludere gli elementi util...
6f9ec332430ba0c67d89c649aa58538dfb848a5734e18a468698dd6110f65c74
C/C++
739
24
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2024 Raspberry Pi Ltd. * All rights reserved. */ #ifndef _HARDWARE_CLOCKS_H #define _HARDWARE_CLOCKS_H enum clock_index { clk_gpout0 = 0, ///< GPIO Muxing 0 clk_gpout1, ///< GPIO Muxing 1 clk_gpout2, ///< GPIO Muxing...
862e9d97a1cc9326e14984666399e95da713da20558e0731c328a63e6bc4adff
C/C++
789
26
/** * (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...
f99ef9064c62cbc48a5a9771e8ac66d5cf3a955dd675da715c6f971427dce9b0
C/C++
820
40
// // Created by Stas Busygin on 1/12/16. // #ifndef MORLET_LOG_SPACE_H #define MORLET_LOG_SPACE_H #include <cstring> #include <cmath> #include <vector> #include <algorithm> #include <iterator> template<typename T> class Logspace { private: T curValue, base; public: Logspace(T first, T base) : curValue(first...
1f6c133e8ba4a9f7807b8254b34428f89debb7c18f13a46f8eab48b9c1d56ba2
C/C++
969
34
/* C API for content-streamer (C wrapper for content-streamer.h) */ #ifndef CONTENT_STREAMER_C_H #define CONTENT_STREAMER_C_H #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /* Opaque type for StreamReader */ typedef void* ContentStreamReaderHandle; /* Forward declarations */ struct FrameCanvas; struct S...
9c3ba8ebeb240872b340047f6db4d147e7849f923876edb9606829e9c104241b
C/C++
976
21
#define xtifficon_width 32 #define xtifficon_height 32 static char xtifficon_bits[] = { 0xff, 0x00, 0x00, 0xc0, 0xfe, 0x01, 0x7e, 0xc0, 0xfc, 0x03, 0x7e, 0x60, 0xf8, 0x07, 0x06, 0x30, 0xf8, 0x07, 0x1e, 0x18, 0xf0, 0x0f, 0x1e, 0x0c, 0xe0, 0x1f, 0x06, 0x06, 0xc0, 0x3f, 0x06, 0x06, 0xc0, 0x3f, 0x06, 0x03, 0x80...
394ccbfc1f09da26388b99432a8bc05dc43453cfbcbb9c8ffaf73abc08ef3ed7
C/C++
977
27
// 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...
bab8689429759eaae26045b8dc51a5cccbea7298286918fc6916a31c2f722a84
C/C++
978
28
// -*- 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 ...
3c4ed19851c728b0e63545c5c603df315cf17838e0fc5634bd0cfa7ce5730265
C/C++
1,020
28
/** * Copyright 2025-2026, XGBoost Contributors */ #pragma once #include <xgboost/base.h> // for GradientPair #include <xgboost/linalg.h> // for Matrix namespace xgboost { /** * @brief Container for gradient produced by objective. */ struct GradientContainer { /** @brief Gradient used for multi-target tree ...
225572f761b23482591106dfaee15ff7b1acf47ccac00a575b15d66a8ef6ef9f
C/C++
1,064
43
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2024 Raspberry Pi Ltd. * All rights reserved. */ #ifndef _PIO_PLATFORM_H #define _PIO_PLATFORM_H #include <assert.h> #include <inttypes.h> #include <stdbool.h> #ifndef __unused #define __unused __attribute__((unused)) #endif #define PICO_DEF...
0d9c712dc180a551d6f968fef576b5b8d2653d008b737a010a450a1db8c5578c
C/C++
1,107
27
#ifndef _gaussian_naive_bayes_parameters #define _gaussian_naive_bayes_parameters #include "arm_math.h" //Classes: ['AF' 'Normal' ] #define bayesNB_OF_CLASSES 2 #define bayesVECTOR_DIMENSION 7 /* Those parameters was generated with the scikit-learn and Marek's script. */ const float32_t bayesTheta[bayesNB_OF_CLASSES...
0c548b8c027dc71d25aa266c31143b6c55501ba88cd1817ba279aec570e1ca06
C/C++
1,252
34
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- #ifndef RPI_RP1_RIO_BACKEND_H #define RPI_RP1_RIO_BACKEND_H struct HardwareMapping; namespace rgb_matrix { namespace internal { class Framebuffer; // Internal Pi 5-family RP1 RIO renderer. // // This backend drives the RP1 GPIO fabric directly through M...
55f92e79bb2fd108ba4c7ebe7e1799a43bb6656be88d846305b418855110de93
C/C++
1,288
39
/** * Copyright 2026, XGBoost Contributors */ #pragma once #include <gtest/gtest.h> #include <cmath> #include "../../../src/tree/driver.h" #include "../../../src/tree/param.h" namespace xgboost::tree { template <typename ExpandEntryT, typename MakeEntry> void TestDriverChildHessian(MakeEntry make_entry) { Train...
15283a833e888818f1d4b37bf61b951b89d8115f8ba7796294de9eb36a5efa98
C/C++
1,302
49
// UWOT -- An R package for dimensionality reduction using UMAP // // Copyright (C) 2021 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...
672998c69c1f452a12a8113731d0cbaf256b51964acb43e6ec7d12cee2b1926c
C/C++
1,333
45
/* jconfig.vc --- jconfig.h for Microsoft Visual C++ on Windows 95 or NT. */ /* see jconfig.txt for explanations */ #define HAVE_PROTOTYPES #define HAVE_UNSIGNED_CHAR #define HAVE_UNSIGNED_SHORT /* #define void char */ /* #define const */ #undef CHAR_IS_UNSIGNED #define HAVE_STDDEF_H #define HAVE_STDLIB_H #undef NEED_...
f7e82884cb08c61fe2377b4771aadf7ea8cd7d9772a08b364b0f8a5c4fbc1340
C/C++
1,392
42
// UWOT -- An R package for dimensionality reduction using UMAP // // Copyright (C) 2021 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...
c0dce568fc74711f80224d29373c83d5a1351c61fa081da901332878408e6dae
C/C++
1,394
45
#ifndef __AO_MULTIPLATFORMDEFINES_______________H___ #define __AO_MULTIPLATFORMDEFINES_______________H___ #ifdef _WIN32 #include <afxmt.h> #define AOSLEEP_MSEC(mSec) {Sleep(mSec);} #define AOGETTIME_MSEC(mSec) mSec=GetTickCount(); #define INIT_MUTEX(mutex) #define LOCK_MUTEX(mutex) m_cs.Lock(); #defin...
1931193b4dfa5f35e39e654a1ebe28b7de0b63ad31c399b186cc5a8a29793ce0
C/C++
1,399
65
/** * (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...
e9c0278f6b22f2aab0ae2c00275bc79db6cf8c13737d42bc9e70fdc4a790a890
C/C++
1,403
46
/** * (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...
eb5d6a2fb9dec4faf8775f871d81b984e5c65db62bcbc34297ec5966b8feb8ed
C/C++
1,438
38
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- #ifndef RP1_PIO_BACKEND_H #define RP1_PIO_BACKEND_H struct HardwareMapping; namespace rgb_matrix { namespace internal { class Framebuffer; // Internal Pi 5-family RP1 PIO renderer. // // Expected call flow: // - detect/select with PlatformDetected()/Con...
40189fa28db76a16ce53459d6f06c968189570c10e83607252bff5b5cd5fbefc
C/C++
1,448
70
// tiff stream interface class definition #ifndef _TIFF_STREAM_H_ #define _TIFF_STREAM_H_ #include <iostream.h> #include "tiffio.h" class TiffStream { public: // ctor/dtor TiffStream(); ~TiffStream(); public: enum SeekDir { beg, cur, end, }; public: // factory methods TIFF* make...
cb8f7d4b21d1c0053434ea8da80b034dfb320fa057ac5a99a7a7b338e99b5f70
C/C++
1,459
38
// -*- 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 ...
2af97aae61efc8a1f0656a0704e64cce3ec574b55ece9c85b4bc9ed92d4f2f66
C/C++
1,473
49
/** * (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...
95de2da0cc675181d56f2a09a8cd73d191cc9f6baa907c599e1ae300fce52181
C/C++
1,490
40
/** * Copyright 2020-2026, XGBoost contributors */ #pragma once #if defined(__CUDACC__) #include "../../src/data/ellpack_page.cuh" #endif #include <xgboost/data.h> // for SparsePage #include "./helpers.h" // for RandomDataGenerator namespace xgboost { #if defined(__CUDACC__) inline std::unique_ptr<EllpackPageIm...
e458f154f73a4c013fd69c5f9caf8835ad3a62c0a4572e655c8a4b757540284d
C/C++
1,493
53
#pragma once const int protomatter_wrap = 4; const int protomatter_wrap_target = 0; const int protomatter_sideset_pin_count = 1; const bool protomatter_sideset_enable = 1; const uint16_t protomatter[] = { // ; data format (out-shift-right): // ; MSB ... LSB // ; 0 ddd......ddd: 31-bit delay /...
205fc6e44960b9eb49b0b766a1c8cc56e7d1ec8c5190c6fbfa269ae748ef21e3
C/C++
1,508
59
/* * xtiffio.h -- Public interface to Extended TIFF tags * * This is a template for defining a client module * which supports tag extensions to the standard libtiff * set. Only portions of the code marked "XXX" need to * be changed to support your tag set. * * written by: Niles D. Ritter */ #i...
1ec2d1ec63ef7c226fe33d642dacd7cccb7f3a4b12cfe8ae1085e51156a50a2f
C/C++
1,540
43
/** * Copyright 2026, XGBoost Contributors */ #ifndef XGBOOST_PREDICTOR_PREDICTION_SHAPE_H_ #define XGBOOST_PREDICTOR_PREDICTION_SHAPE_H_ #include <vector> #include "xgboost/base.h" namespace xgboost::predictor { /** * @brief SHAP outputs include a bias column and retain the output-group axis. * @return `(rows, ...
7a1273189e740eac6c617f29e6890adff617032db6214fe30efc95920e242cf7
C/C++
1,553
60
/* -*- 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 pr...
df06d8a24f33eae3024960ca220271d41acae4ebc541dd0e835e6be82d35f5ca
C/C++
1,570
51
/** * Copyright 2021-2026, XGBoost Contributors */ #ifndef XGBOOST_COMMON_CACHE_MANAGER_H_ #define XGBOOST_COMMON_CACHE_MANAGER_H_ #include <array> #include <cstdint> // for int64_t namespace xgboost::common { /* Detect cache sizes at runtime, * or fall back to defaults if detection is not possible. */ class Ca...
ae9d0792decb90fb42af05d1e66053910e0a72db69e429f342ec06c5732557bf
C/C++
1,571
49
/** * (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...
cd1cef1638073749a4a535d946ee0242eaad631cc180970b32c059262a92cf1d
C/C++
1,582
42
/* $Id: tifftest.h,v 1.1 2008/04/15 14:18:36 dron Exp $ */ /* * Copyright (c) 2008, Andrey Kiselev <dron@ak4719.spb.edu> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices ...
1b2c47a90e9ae741c8fd4d0f323495327b25ff5d555a6c7afd6749a65ba1bb8e
C/C++
1,676
39
/**************************************************************************//** * @file cmsis_version.h * @brief CMSIS Core(M) Version definitions * @version V5.0.3 * @date 24. June 2019 ******************************************************************************/ /* * Copyright (c) 2009-2019 ARM Li...
65e95d91cacbc87b14668cba5265513c5747e4a3f97cd63f02589f9486e33136
C/C++
1,680
61
/** * (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...
20adc813ef11ac8c2184c6c5a5e389e3f8862c4f29ea97e54a3dcbb168f4252a
C/C++
1,692
58
// 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...
629f465f7f005f1ad068edc285e39d66996a58a9a3e95fce86c8587245e95c35
C/C++
1,707
52
/* * Author: Landon Fuller <landonf@plausible.coop> * * Copyright (c) 2008-2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Softwa...
903df827030a520d095504eaee1c5360c119559cf81c6653c7fb01790c2606aa
C/C++
1,744
61
/** * (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...
c0b52624ea552058b5b8a5d3315945a6f4efdccbd9bfd4ff5cf8756888522e08
C/C++
1,755
63
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2024 Raspberry Pi Ltd. * All rights reserved. */ #ifndef _HARDWARE_GPIO_H #define _HARDWARE_GPIO_H #include "pio_platform.h" #ifndef PARAM_ASSERTIONS_ENABLED_GPIO #define PARAM_ASSERTIONS_ENABLED_GPIO 0 #endif #define NUM_BANK0_GPIOS 32 enum ...
95f95c39430be86539e71e759777ab0d8b63997a15d359bb376125bfac6f5f8b
C/C++
1,764
51
/* $Id: libport.h,v 1.2 2009-11-02 14:44:13 bfriesen Exp $ */ /* * Copyright (c) 2009 Frank Warmerdam * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notices and this permission ...
a7b0b52df6bb29217da29f9dd50f25d922864cafff13df8565c02e08fd1f5804
C/C++
1,790
71
/* Define to 1 if you have the <assert.h> header file. */ #define HAVE_ASSERT_H 1 /* Define to 1 if you have the <fcntl.h> header file. */ #define HAVE_FCNTL_H 1 /* Define as 0 or 1 according to the floating point format suported by the machine */ #define HAVE_IEEEFP 1 /* Define to 1 if you have the `jbg_newlen' ...
cc5d0cf55a7cc288eafeef6c633562a6031614b84a4096c28410562e0ff5885a
C/C++
1,791
68
// 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...
cf61bff42da3671b21e7d139535f71aed53cdac435ea59f31e6314d72950bd20
C/C++
1,803
48
/* * Author: Landon Fuller <landonf@plausiblelabs.com> * * Copyright (c) 2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software...
c041107467d86e23b329efd98a924d834cf2643c7ada9bbdec16095decd55006
C/C++
1,816
51
/** * Copyright 2026, XGBoost Contributors */ #pragma once #include <cstddef> // for size_t #include "xgboost/base.h" // for GradientPair #include "xgboost/context.h" // for Context #include "xgboost/linalg.h" // for Matrix, MatrixView #include "xgboost/logging.h" // for CHECK_EQ namespace xgboost::gbm { ...
4def2ae43c1f9750f75be9a3ac41d6312fba1c1d0875806d785d0db8c65c3080
C/C++
1,824
42
/* $Header: /cvs/libtiff/tools/rasterfile.h,v 1.3 2003/11/12 19:14:33 dron Exp $ */ /* * Description of header for files containing raster images */ struct rasterfile { char ras_magic[4]; /* magic number */ long ras_width; /* width (pixels) of image */ long ras_height; /* height (pixels) of image */ long ras_...
d92da5d92c9f02fb203f6a5c31d2bf81ded76c023320cb53d527869c1380562f
C/C++
1,840
60
/* * Author: Landon Fuller <landonf@plausiblelabs.com> * * Copyright (c) 2008-2009 Plausible Labs Cooperative, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Sof...
76062a69a19f1de5203cca3bcbc162decf29dd7150f8fff59512b6bb783cdc25
C/C++
1,848
64
/** * (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...
0a2c2459de18bbc5bd6c36683bc55d614c8c20b4260b98f420bc74624bb12369
C/C++
1,852
71
/* $Id: tif_config.wince.h,v 1.3 2010-03-10 18:56:48 bfriesen Exp $ */ /* * TIFF library configuration header for Windows CE platform. */ #ifndef _WIN32_WCE # error This version of tif_config.h header is dedicated for Windows CE platform! #endif /* Define to 1 if you have the <assert.h> header file. */ #define HAVE...
b68bf0d97951da75503c9b2403c7249e393a45aadc458a0c412e1b4d59b90405
C/C++
1,891
57
// -*- 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 ...
0bfc3bae33694e10bc450b729a903bcad17c95e4ffc887638a2f6c906f077ec9
C/C++
1,893
62
/** * Copyright 2018-2026, XGBoost Contributors */ #ifndef XGBOOST_METRIC_METRIC_COMMON_H_ #define XGBOOST_METRIC_METRIC_COMMON_H_ #include <memory> // shared_ptr #include "xgboost/logging.h" #include "xgboost/metric.h" namespace xgboost { struct Context; // Metric that doesn't need to cache anything based on inp...
da93914fbd92e279e3a038d083ad09d1070fa1d9429ce4b66f9a6aa8f045121a
C/C++
1,913
59
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
f96191a401cf2f3b864cbce92a5ebc6751cf33a01e197eef6c9aa7632ee017e1
C/C++
1,927
68
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file stm32wbxx_it.h * @brief This file contains the headers of the interrupt handlers. ****************************************************************************** * @attention * * Cop...
ebe3d4a86518330692ef27af2ab1ab8daf3104d0afb50e3076561fb6c41a7b81
C/C++
1,942
52
/* * Author: Landon Fuller <landonf@plausible.coop> * * Copyright (c) 2008-2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Softwa...
02206141680dd38e124f037bbfdf00f892d1b7804d9b092958dec1ad79df2c2c
C/C++
1,950
66
/** * (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...
deee5be7550354e63a00948e5c418339a29e5895b92f0b14ebdd5c963d4a3068
C/C++
1,957
105
#ifndef randomnumber_H #define randomnumber_H // #include "Variables.h" #include <iostream> #include <cmath> using namespace std; const int numbermonitoringneurons=5; float ran(long *idum); /*random number*/ /*************************************************/ /*Return Gaussian distributed numbers*/ double gaussia...
c0bd87eb063766b2fd10413a0d4fa74150a682e9b3c7646eed93baef46ad4ffa
C/C++
1,978
69
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.h * @brief : Header for main.c file. * This file contains the common defines of the application. *************************************************...
f8897c9b47f97b6ca78c72b857d20fb2a2b0d85091a2362799165cdfa863e3cc
C/C++
2,005
101
/** ****************************************************************************** * @file usbd_req.h * @author MCD Application Team * @brief Header file for the usbd_req.c file ****************************************************************************** * @attention * * Copyright (c) 2015 STMic...
b66855ab0f3e0b1b9cd7ecf7f20c9f334b08dcf34323edd43f30801b40982bb0
C/C++
2,033
53
/** * Copyright 2026, XGBoost Contributors * \file alpha_metric.h * \brief Shared multi-alpha metric kernels and CPU implementations. */ #ifndef XGBOOST_METRIC_ALPHA_METRIC_H_ #define XGBOOST_METRIC_ALPHA_METRIC_H_ #include <cstddef> // for size_t #include "../common/kernel.h" #include "../common/numeric.h" // ...
3bd30bc76af52ef9554d2b453e3937f72ddb95716f0a8236963a06decb16820d
C/C++
2,045
63
/* $Id: test_arrays.h,v 1.3 2006/03/23 14:54:02 dron Exp $ */ /* * Copyright (c) 2004, Andrey Kiselev <dron@ak4719.spb.edu> * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i) the above copyright notic...
f197af0bb3896483468fe14fdcb79211fa09e237dd9ea5e2a33748f631420ed2
C/C++
2,055
72
/* * Private Extended TIFF library interface. * * uses private LIBTIFF interface. * * The portions of this module marked "XXX" should be * modified to support your tags instead. * * written by: Niles D. Ritter * */ #ifndef __xtiffiop_h #define __xtiffiop_h #include "tiffiop.h" #include "xtiffio.h" /***...
a6bf6bbf174bef8334a0890ee5359cb1f928ebd14f630ab6b57748e0bc3c85d4
C/C++
2,081
63
/** * (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...
91e2a4c99ba16059581f462cff4769fb11fefb2a87afe5d9751c5bb915917e63
C/C++
2,083
59
/* * 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...
184cf2c14a08aba044301522dee77e419fd227e30aa97b90711af8cf3e407d3a
C/C++
2,085
52
// -*- 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 ...
38d10c63fd5606a4c3dbc479bd1dd8053141cc406c056b637c7bca5f796bee02
C/C++
2,113
51
/* * Author: Landon Fuller <landonf@plausiblelabs.com> * * Copyright (c) 2008-2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Sof...
09bca60cda71cee7f097e6b9b5672b3bac466fea0f40ff64ee70ed35c98741c3
C/C++
2,118
98
// 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...
83d802cbf7ce0365ec43ad9ac79d06eb41bbaaacdcecbffa657a0285a00be26f
C/C++
2,156
70
/** * (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...
dc231da5df5fe5b161dc903664f721038efdb0f33abb990d662972ac63cbebb6
C/C++
2,170
64
typedef struct _TIFFImageIter TIFFImageIter; /* The callback function is called for each "block" of image pixel data after it has been read from the file and decoded. This image pixel data is in the buffer pp, and this data represents the image pixels from (x,y) to (x+w,y+h). It is stored in pixel format, so ...
4134e3cddb5c9053cb12e4070d489799e3d9115abdece6ae4956f34b1a1ef338
C/C++
2,179
62
/* * Authors: * Landon Fuller <landonf@plausiblelabs.com> * Damian Morris <damian@moso.com.au> * * Copyright (c) 2008-2013 Plausible Labs Cooperative, Inc. * Copyright (c) 2010 MOSO Corporation, Pty Ltd. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a cop...
702c1ca4444d4727d1c8da044d0a79ed3db949abc8d59a7a8383d34e4f9a3b7c
C/C++
2,188
68
/** * Copyright 2019-2024, XGBoost contributors */ #pragma once #include <cstddef> // for size_t #include <memory> // for shared_ptr #include <utility> // for move #include "../common/io.h" // for AlignedResourceReadStream #include "sparse_page_writer.h" // for SparsePageFormat #include "xgboost/data.h"...
11c2e3c040f1ec97a0c303be5486ebb956e0d0897100046e7b7ec8a958cc7f90
C/C++
2,190
61
/* * Author: Landon Fuller <landonf@plausible.coop> * * Copyright (c) 2012-2013 Plausible Labs Cooperative, Inc. * All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Softwa...
64e2d790b51851857e7cb8dafafbce5ef58bb2c9e3c08c274a534da3a4266a70
C/C++
2,235
103
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : usb_device.h * @version : v3.0_Cube * @brief : Header for usb_device.c file. ****************************************************************************** * @a...
129ff7c458c721e178bdd1489ca99d04f0e91c476f4fa6c4df4e2c68ddf545cc
C/C++
2,252
91
/** * (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...