sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
a3f43992ddb9ad547eff2a542ef8c2021225f17040300338c2b2cc2310ee5e70 | C/C++ | 5,639 | 162 | /**
* (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... |
8058d92bc56eb9769a922c423bf758cbe1aa604a44abc58c47d6b23e05a4f55c | C/C++ | 5,643 | 160 | /**
* (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... |
092a604fa7d5b175abba52898c8214d1c101777fc39fa9d0324d3eaa2bd145ff | C/C++ | 5,672 | 154 | /* The MIT License
Copyright (C) 2018-2025 Giulio Genovese
Author: Giulio Genovese <giulio.genovese@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction,... |
ba87b4afac68639b4419993b24a5e3c9dae13dd460efb86cf57514094f7215c0 | C/C++ | 5,756 | 153 | /**
* Copyright 2022-2026, XGBoost contributors.
*/
#ifndef XGBOOST_COMMON_NUMERIC_H_
#define XGBOOST_COMMON_NUMERIC_H_
#include <algorithm> // for min, max
#include <cstddef> // for size_t
#include <cstdint> // for int32_t
#include <functional> // for plus
#include <iterator> // for iterator_trai... |
e15b02b7c4fd868c20e968008fcc1cc0e4d3f6ef7bd3a360470fc222dba0ed6b | C/C++ | 5,761 | 157 | /*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... |
687d81883e4e8ef1d8080e9c54e3749b58d241416bb0d748b538a1b0861beb9e | C/C++ | 5,824 | 207 | /**
* (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... |
a8c3a770160bc87aa3c978ecace9af4ef229e8003758e37f0acb875f045b5c82 | C/C++ | 5,849 | 197 | /**
* Copyright 2024-2026, XGBoost Contributors
*/
#pragma once
#include <algorithm> // for max, min
#include <condition_variable> // for condition_variable
#include <cstddef> // for size_t
#include <cstdint> // for int32_t
#include <exception> // for current_exception
#in... |
fecfbc3e8b73c383b76403563fbba9f76cf74edc802ee14b736a8cc2c08671bc | C/C++ | 5,876 | 171 | /**
* (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... |
e58844e11e43e614a77d3378ccd4e6b804ee80940fca544a9d1f838b5385f925 | C/C++ | 5,972 | 190 | /*
* 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... |
e2299a225ff69625e2e31049771f606012f300fa9a925dbdef5996039a707ec6 | C/C++ | 6,042 | 158 | // BSD 2-Clause License
//
// Copyright 2020 James Melville
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of condition... |
3d01162699eb15b611fddd45a0e1267ece150e2dbdb8d27425fcd3893e898544 | C/C++ | 6,079 | 163 | /*
* 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... |
04fde1f8fc36927700310af70c808d16648f65a8909a0bf8e52cbb8194471544 | C/C++ | 6,166 | 155 | /**
* (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... |
3322d1d7d23ba083c28841ac18b861a9bacd08eb6ec3febefed602a5920c907a | C/C++ | 6,173 | 164 | /**
* Copyright 2014-2026, XGBoost Contributors
*
* @brief interface of objective function used by xgboost.
* @author Tianqi Chen, Kailong Chen
*/
#ifndef XGBOOST_OBJECTIVE_H_
#define XGBOOST_OBJECTIVE_H_
#include <dmlc/registry.h>
#include <xgboost/base.h>
#include <xgboost/data.h>
#include <xgboost/host_device_... |
c2eda2c85b7c2dce7395c295d565f1c10562a2f6ae30caec398558c6eb44bb9e | C/C++ | 6,216 | 158 | // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Very simple graphics library to do simple things.
//
// Might be useful to consider using Cairo instead and just have an interface
// between that and the Canvas. Well, this is a quick set of things to get
// started (and nicely self-contained).
#ifndef... |
97f0c3aa2fefea8b4962d072fbb5b0742eb90cf98ea46fc8f7622df04c240bbb | C/C++ | 6,256 | 187 | /*
* cdjpeg.h
*
* Copyright (C) 1994-1997, Thomas G. Lane.
* 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 common declarations for the sample applications
* cjpeg and djpeg. It is NOT used by the co... |
260f3d573a2b87b4e63fc969c1628c49512f6e3961508482a2eaef1a54d37319 | C/C++ | 6,592 | 200 | /*
* 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... |
e86b3753ddc345f0122d3fcb1ee0884f31bafa93e1be9140460ff47f2f704acb | C/C++ | 6,631 | 181 | /**
* (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... |
95213bddf34b422bf524551a6280af0ccb281104f50eee788b899aafab925b83 | C/C++ | 6,642 | 187 | /**
* (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... |
9c602abaa4e08d9e2abb8afaf5f1de58c0e5aa0dc9383a893612eb847b2b94b3 | C/C++ | 6,689 | 236 | // SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2023-24 Raspberry Pi Ltd.
* All rights reserved.
*/
#ifndef _RP1_PIO_IF_H
#define _RP1_PIO_IF_H
#include <sys/ioctl.h>
#define RP1_PIO_INSTRUCTION_COUNT 32
#define RP1_PIO_SM_COUNT 4
#define RP1_PIO_GPIO_COUNT 28
#define RP1_... |
ceadea922012964900cfcc8f79d4d381cee7c307a25a1c4daa3800231c483bc9 | C/C++ | 6,712 | 207 | /**
******************************************************************************
* @file stm32wbxx_hal_hsem.h
* @author MCD Application Team
* @brief Header file of HSEM HAL module.
******************************************************************************
* @attention
*
* Copyright (c) 2019... |
f93633146f6ff92af91f89471e0e83d8859c27fb2d35b93318c923be99dce72f | C/C++ | 6,984 | 210 | /**
******************************************************************************
* @file stm32wbxx_hal_def.h
* @author MCD Application Team
* @brief This file contains HAL common defines, enumeration, macros and
* structures definitions.
*****************************************************... |
a89888a6167b3c0a97adceb13c252438ad16c762f594f04d34faad046f40b827 | C/C++ | 7,044 | 209 | /**
* (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... |
e5ab70d96a5015655ffbfb7a6c621ebcefee4efb31e1be161771282771cb567d | C/C++ | 7,127 | 185 | /**
* Copyright 2017-2026, XGBoost Contributors
*/
#ifndef XGBOOST_PREDICTOR_INTERPRETABILITY_QUADRATURE_H_
#define XGBOOST_PREDICTOR_INTERPRETABILITY_QUADRATURE_H_
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <vector>
#include "xgboost/base.h"
#include "xgboost/logging.h"
#include "xgboost/tre... |
2e4be919b9fdf3f40de6c1e378653bac27fc3e6281d613ca75e5b0efe3218e7b | C/C++ | 7,183 | 254 | /**
* (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... |
1c554b792b0fb4759f9271a43c2907cefbb19b6ac3533e2b9dc0d7c060b56105 | C/C++ | 7,267 | 240 | // Taken from RcppParallel.h and then modified slightly to rename header guards
// and namespaces to avoid any potential clashes. RcppParallel is licensed under
// GPLv2 or later:
// pfor.h a version of parallel for based on RcppParallel
// Copyright (C) 2020 James Melville
//
// This program is free software; you can... |
b1b990f5c8795e01bdb842199495d04bb5df55b68156c793e62293dfc7cb2196 | C/C++ | 7,344 | 272 |
#ifndef __ETHERNET_STAND_ALONE___
#define __ETHERNET_STAND_ALONE___
#define MAX_SMPLES_UD_CHANNEL 3200
#ifdef _WIN32
#ifdef EXPORTING_DLL___
#define DECLDIR __declspec(dllexport)
#else
#define DECLDIR __declspec(dllimport)
#endif//
#else
#define DECLDIR
#endif
#ifdef __cplusplus
extern "C"
{
#endif... |
a6840a17d2bc50e8ff86fe9fd5821a1f452b126ad7bb7db47ae5766358805d41 | C/C++ | 7,497 | 230 | /**
******************************************************************************
* @file stm32wbxx.h
* @author MCD Application Team
* @brief CMSIS STM32WBxx Device Peripheral Access Layer Header File.
*
* The file is the unique include file that the application programmer
* is us... |
cdbbdfdee26e6434fecb51ca1f4edcace47eb276f7df0b05b873568bba86e696 | C/C++ | 7,604 | 192 | // -*- 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 ... |
984ed1a4c097e5e8d42c89fbf3ca3f7d3e60c24d547e9ca41d65b6d9abc19032 | C/C++ | 7,798 | 192 | /**
* (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... |
69a53d2b8416d9c2fc4e1aba8fc2f899f275fec35fcb1794359d3d27846d5823 | C/C++ | 7,902 | 237 | /**
* (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... |
9121b53df4fe8544d4b80ebe981217d14f1ba9606fbc0642e66f30df85b0d561 | C/C++ | 7,951 | 226 | /**
* Copyright 2021-2024, XGBoost Contributors
*/
#ifndef XGBOOST_C_API_C_API_UTILS_H_
#define XGBOOST_C_API_C_API_UTILS_H_
#include <algorithm> // for min
#include <cstddef> // for size_t
#include <memory> // for shared_ptr
#include <string> // for string
#include <tuple> // for make_tuple
#includ... |
3f2c8dc308897bfdf9850c8b92cc635cc5d91e1f4580b58a6f588e6bb76d3d31 | C/C++ | 7,976 | 292 | /**
* (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... |
1ae3d4a458902228515ac0d58ed0d9623fba8b6cc425e6e62f0a48a8a0d22ccf | C/C++ | 8,037 | 165 | /*
* Author: Landon Fuller <landonf@plausible.coop>
*
* 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 wi... |
81481ae7bfcbc817a07951173ad4eadb28aa7c5dd9d9945825f01c16043ee008 | C/C++ | 8,168 | 274 | #ifndef __AO_TYPES__
#define __AO_TYPES__
//#include "LoggingLibrary.h"
//#pragma pack(push)
//#pragma pack(2)
#define INVALID_HANDLE 0xffffffff
#define null NULL
#ifdef __linux__
typedef unsigned long int HANDLE ;
typedef char TCHAR;
typedef short WORD;
typedef char ... |
dbe87b534bc93f9ea54492589e69307b492aff8a377fa3c9c8b54a54de488397 | C/C++ | 8,230 | 198 | /*
* jmemsys.h
*
* Copyright (C) 1992-1997, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This include file defines the interface between the system-independent
* and system-dependent portions of the ... |
e57c612973ae2ac14c246efdbe73167648d03be50ee59b94cd58644f8df48a43 | C/C++ | 8,321 | 240 | /**
******************************************************************************
* @file stm32wbxx_ll_usb.h
* @author MCD Application Team
* @brief Header file of USB Low Layer HAL module.
******************************************************************************
* @attention
*
* Copyright (... |
f9d3e0f28c043d0aca14d92fdbdcf18850cec8f66149986eb0a80beffb6454eb | C/C++ | 8,362 | 254 | /**
* (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... |
27c24654e60c99d426c87fc613d49eeb655ef3398fbf8d5278545335f0c778f7 | C/C++ | 8,781 | 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... |
b5c52965fee1188fc231602743ff60743beeba7ba29373fdc56d6d9a4abd5843 | C/C++ | 8,794 | 239 | /**
* (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... |
02706bf1fd0e64c92cf45bb1e13a49790b869c1ffa757a155488ebf95073dda2 | C/C++ | 8,913 | 237 | /**
* (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... |
631e56111128384f8852fc7e9c3454880df8da5ac7e61f3c1371b96aaf79587a | C/C++ | 8,968 | 254 | // BSD 2-Clause License
//
// Copyright 2020 James Melville
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of condition... |
0620c6a40e27708c736a08300794648db82862c4ce9eff3b67d28234316ee5de | C/C++ | 9,170 | 280 | #ifndef Channels_ECells_H
#define Channels_ECells_H
#include<cmath>
#include "Variables.h"
/***********************************************************/
/* FAST SODIUM CHANNEL FOR E-CELLS */
/***********************************************************/
double Na_steadystate_m_E(double memV){
... |
454bd931fb213d7c93added60f539bef134bbb7488981abf27988d178f5c8c3f | C/C++ | 9,213 | 222 | // BSD 2-Clause License
//
// Copyright 2021 James Melville
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of condition... |
656c131b68c7ae9ff3b3da98948b718c5697f4a5f6be26753714c35b9812d76a | C/C++ | 9,221 | 284 | /**
* Copyright 2025, XGBoost Contributors
*/
#pragma once
#include <cstdint> // for int32_t, int8_t
#include <memory> // for unique_ptr
#include <mutex> // for mutex
#include <string> // for string
#include <tuple> // for tuple
#include <utility> // for move
#include <vector> // for vector
#include "... |
573e904a4e1b0c5d86539102bda5e25ab09c3d72564c231d716204e405706238 | C/C++ | 9,269 | 213 | /*
* transupp.h
*
* Copyright (C) 1997-2011, 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 declarations for image transformation routines and
* other utility code ... |
85f656b923bd3610fc29532e2c5dae27b1fffd89e5a4977e499e2b0a66146ea7 | C/C++ | 9,386 | 267 | /**
* Copyright 2019-2026, XGBoost Contributors
*/
#ifndef XGBOOST_COMMON_THREADING_UTILS_H_
#define XGBOOST_COMMON_THREADING_UTILS_H_
#include <algorithm> // for fill_n, min
#include <cstddef> // for size_t
#include <cstdint> // for int32_t
#include <thread> // for thread
#include <type_traits> ... |
b51963d271c1571ca3463654c76aa7ea50c4eac5d0a2710df10414ac64d9e0f8 | C/C++ | 9,481 | 283 | /**************************************************************************//**
* @file cmsis_compiler.h
* @brief CMSIS compiler generic header file
* @version V5.1.0
* @date 09. October 2018
******************************************************************************/
/*
* Copyright (c) 2009-2018 A... |
c339c981917eedc01a8e7147b43453b371d5d036d67c676f2717cf7ffa2fc37c | C/C++ | 9,815 | 390 | #ifndef Variables_H
#define Variables_H
// long seed=124579; /*For Randomnumber.h*/
const int NumOfCells=1280; /*For Network.h*/
const int numcells=1280;
const int numIcells=256;
const int numEcells=1024;
#define vth -20
long seed;
#define dt 0.06
#define timesimulation 200000
//
#include "Randomnumber.h"
// #d... |
35ce8acb065ef29c21bf30fb5de1113f6fba99db47caf82a9209d8ee6e57b1d1 | C/C++ | 9,820 | 223 | /**
* Copyright 2014-2026, XGBoost Contributors
* \file gbm.h
* \brief Interface of gradient booster,
* that learns through gradient statistics.
* \author Tianqi Chen
*/
#ifndef XGBOOST_GBM_H_
#define XGBOOST_GBM_H_
#include <dmlc/registry.h>
#include <xgboost/base.h>
#include <xgboost/data.h>
#include <xgboost... |
cee55252f43440366666320a04fb63ed6c89e8f22b9166209f1d3ef38d9c1431 | C/C++ | 9,975 | 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... |
e1725cb7239e9dd858654dce907e38883121e7d914e6cd619d20331800394178 | C/C++ | 10,121 | 227 | /*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... |
cecf968f7909b2e27a7017df17eaf8c27c0e3e194b259eb69f868290e63f85e0 | C/C++ | 10,321 | 307 | // BSD 2-Clause License
//
// Copyright 2020 James Melville
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of condition... |
2a4d15077ba1c2edb56f954d4aa7784b13a6e3c2c14be3be1f7cea818501af94 | C/C++ | 10,350 | 112 | #ifndef _SVM_rbf_Parameters
#define _SVM_rbf_Parameters
#include "arm_math.h"
#define rbf_NB_SUPPORT_VECTORS 80
#define rbf_VECTOR_DIMENSION 7
/*
Those parameters was generated with the scikit-learn and Marek's script.
*/
//Classes: ['AF' 'Normal' ]
const int32_t rbfClasses[2]={ 0, 1};
const float32_t rbfIntercept... |
737e2ef4a3e43baf3246ad92a45ed8ff8101ceb864305663ccd23811597d038a | C/C++ | 10,597 | 312 | /**
******************************************************************************
* @file stm32wbxx_ll_utils.h
* @author MCD Application Team
* @brief Header file of UTILS LL module.
******************************************************************************
* @attention
*
* Copyright (c) 2019... |
9911ca13c845f2d8db2c682538f9ac5bb07ce806f7e33ed5e2c40bbd1a0c873d | C/C++ | 10,770 | 354 | /**
* (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... |
715e7c03f4eb9f776143986e438fa92b78d68ce167db62d1a3c5b203047644a5 | C/C++ | 10,918 | 308 | /* $Id: tif_dir.h,v 1.54 2011-02-18 20:53:05 fwarmerdam Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* tha... |
cbcc807831cd4d74f491dd867586bbdf72602255770282980c6ee782bf1191ac | C/C++ | 11,047 | 369 | /*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... |
53f9e848af62ea8704f463992e4d65c7c79fc72cfd8fab6fa14adc73478b0afd | C/C++ | 11,255 | 346 | /******************************************************************************
* @file mpu_armv8.h
* @brief CMSIS MPU API for Armv8-M and Armv8.1-M MPU
* @version V5.1.0
* @date 08. March 2019
******************************************************************************/
/*
* Copyright (c) 2017-2019... |
d368071a6076cdc7ab1546dbe15c937f36c6367f75e6cfebe3064d1055a4611d | C/C++ | 11,379 | 292 | /* $Id: t4.h,v 1.3 2010-03-10 18:56:48 bfriesen Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* 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... |
fe1bf33b4403fd09a67aeb07f4d0771fb17e3788a8767a9bd2d838e4f1995f3d | C/C++ | 11,492 | 456 | /***************************************************************************
*
* Author: "Sjors H.W. Scheres"
* MRC Laboratory of Molecular Biology
*
* 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 F... |
746e53fc5b9e63d4182d4c6f684fa54e024b610bc3272ea6a055e87b6edcc74a | C/C++ | 11,594 | 398 | /*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... |
c9ad7cc99ba0481365550ae997c63cde9732d067d9ec0de28b0d6ac39280656d | C/C++ | 11,690 | 272 | /******************************************************************************
* @file mpu_armv7.h
* @brief CMSIS MPU API for Armv7-M MPU
* @version V5.1.0
* @date 08. March 2019
******************************************************************************/
/*
* Copyright (c) 2017-2019 Arm Limited. ... |
94d2c2a1d2758eec094b98ed3fd1de8cc89b26a41e2296323a0eb023bcc3a393 | C/C++ | 12,031 | 352 | /* USER CODE BEGIN Header */
/**
******************************************************************************
* @file stm32wbxx_hal_conf.h
* @author MCD Application Team
* @brief HAL configuration file.
******************************************************************************
* @attention
*
... |
c4c72249af194105f67090a5fc8c7787a2c03a785a62ac48d39ea915e90299e3 | C/C++ | 12,124 | 328 | /**
* (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... |
389390f80459ee6aec30d6ef0add25897f8e1c44cfc6664441f9e5dbc27de734 | C/C++ | 12,558 | 369 | /*
* jmorecfg.h
*
* Copyright (C) 1991-1997, Thomas G. Lane.
* Modified 1997-2011 by 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 additional configuration options that customize ... |
6c1426ac68988e25cd9a33c4109efe4b54e356566bb93b820939f28ef1b93d20 | C/C++ | 12,855 | 431 | /* **************************************************************** *
dcimgapi.h: July 18, 2013
* **************************************************************** */
#ifndef _INCLUDE_DCIMGAPI_H_
// ****************************************************************
// common declaration with dcamapi.h
/* *********... |
05f84f1a51c1693b4c57a0500717a2d1669c2906aa1682e2d31bf4f8f26664e7 | C/C++ | 13,319 | 671 | /* Portions of this code are under:
Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
*/
#ifndef HIP_CUSTOM_ALLOCATOR_H_
#define HIP_CUSTOM_ALLOCATOR_H_
// This is where custom allocator should be. Commented out for now, to avoid double declaration.
#ifdef _HIP_ENABLED
#include "src/acc/hip/hip_s... |
960e4e9ebd0e7f242207599e6db241e0efb79183ee0dc60965764e13d4f6791f | C/C++ | 13,340 | 344 | /**
* Copyright 2017-2026, XGBoost Contributors
* \brief Data type for fast histogram aggregation.
*/
#ifndef XGBOOST_DATA_GRADIENT_INDEX_H_
#define XGBOOST_DATA_GRADIENT_INDEX_H_
#include <algorithm> // for min
#include <atomic> // for atomic
#include <cstddef> // for size_t
#include <cstdint> // for ui... |
821d65a788e483daef39a17daf879dd7dfb2768560dc9f82a526cb3c2a9dc551 | C/C++ | 13,480 | 354 | /**
* Copyright 2017-2025, XGBoost Contributors
* \file compressed_iterator.h
*/
#pragma once
#include <algorithm> // for max
#include <cmath> // for ceil, log2
#include <cstddef> // for size_t
#include <cstdint> // for uint32_t
#include "common.h"
#include "xgboost/base.h" // for XGBOOST_RESTRICT
... |
3e1f54afadb1f9eda332f5ab7e4fdb1627894e5cd5c3ef234323440f4c144886 | C/C++ | 13,538 | 262 | /**
******************************************************************************
* @file stm32wbxx_hal_dma_ex.h
* @author MCD Application Team
* @brief Header file of DMA HAL extension module.
******************************************************************************
* @attention
*
* Copyrig... |
99dbac73b23872d8bf4b537bc47b48d42ccb277daee258a5d03490e11b3d034b | C/C++ | 13,872 | 347 | /**
* Copyright 2015-2026, XGBoost Contributors
*
* \brief Learner interface that integrates objective, gbm and evaluation together.
* This is the user facing XGBoost training module.
* \author Tianqi Chen
*/
#ifndef XGBOOST_LEARNER_H_
#define XGBOOST_LEARNER_H_
#include <dmlc/io.h> // for Serializabl... |
5b5ed0a1a72b7e319ae1fd43c80425221db62cd74d6ff6755ae99d69482ee06e | C/C++ | 14,118 | 329 | /**
******************************************************************************
* @file stm32wbxx_hal_gpio.h
* @author MCD Application Team
* @brief Header file of GPIO HAL module.
******************************************************************************
* @attention
*
* Copyright (c) 2019... |
22d5762bd7b78f5b0dfa9654c89d222220da2b3a9c0d06a661a7898d4d72ba4d | C/C++ | 14,581 | 304 | /*
* jerror.h
*
* Copyright (C) 1994-1997, Thomas G. Lane.
* Modified 1997-2009 by 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 defines the error and message codes for the JPEG library.
... |
b07b11777f6d5ce9459052fb92933760a578c47765297735066de3f912d4ade2 | C/C++ | 14,941 | 280 | /* ////////////////////////////////////////////////////////////////////
//
// CvMat internal header for 0-ary (1 array), unary (2 arrays),
// binary (3 arrays) and ternary (4 arrays) operations
//
// */
#ifndef __CVFUNCN_H__
#define __CVFUNCN_H__
typedef struct CvFuncTable
{
void* fn_2d[CV_DEPTH_M... |
b0f3ae26fe644c6504a710b87aee12c726cc0faca8b1245f033fe00c72c182ce | C/C++ | 15,193 | 353 | /*!
* Copyright (c) 2023 by XGBoost Contributors
*/
#pragma once
#include <xgboost/metric.h>
#include "../helpers.h"
namespace xgboost::metric {
inline void VerifyBinaryAUC(DeviceOrd device) {
auto ctx = MakeCUDACtx(device.ordinal);
std::unique_ptr<Metric> uni_ptr{Metric::Create("auc", &ctx)};
Metric* metric... |
715657031fb3c7966d02a3def8e007a5c1bb2c99b63074c6cc16fe1b0b45528e | C/C++ | 15,596 | 409 | /**
* Copyright 2019-2026, XGBoost Contributors
*/
#ifndef XGBOOST_DATA_ELLPACK_PAGE_SOURCE_H_
#define XGBOOST_DATA_ELLPACK_PAGE_SOURCE_H_
#include <algorithm> // for max_element
#include <array> // for array
#include <cstddef> // for size_t
#include <cstdint> // for int32_t
#include <limits> // for... |
6f4428187f67f3a0a4b7b79c3959b4754fd8a74f442e9aab84c60d3ab0875016 | C/C++ | 15,650 | 334 | /* The MIT License
Copyright (C) 2018-2025 Giulio Genovese
Author: Giulio Genovese <giulio.genovese@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction,... |
780b8ef05ff28432c84fc25216a12b57c57eabbbb272338fea985710069bddc8 | C/C++ | 15,758 | 367 | /* $Id: tiffiop.h,v 1.84 2012-05-30 01:50:17 fwarmerdam Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* tha... |
b8d2e13f412e5c3214d39c622aba33e9cc80385baba8c0c06260157f579eb973 | C/C++ | 15,801 | 363 | /**
******************************************************************************
* @file stm32wbxx_hal_exti.h
* @author MCD Application Team
* @brief Header file of EXTI HAL module.
******************************************************************************
* @attention
*
* Copyright (c) 2019... |
8d792cc5210d2c7ad36adb18ab647e2f88e85e08f97bee5c5c6df86692dce7c8 | C/C++ | 15,889 | 545 | /***************************************************************************
*
* Author: "Sjors H.W. Scheres", "Takanori Nakane"
* MRC Laboratory of Molecular Biology
*
* 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
* ... |
8406db938d763cb482553ecbe536b2a0a3ce694107a9217787cc3b7bb6371a8b | C/C++ | 15,897 | 516 | /**
******************************************************************************
* @file usbd_def.h
* @author MCD Application Team
* @brief General defines for the usb device library
******************************************************************************
* @attention
*
* Copyright (c) 201... |
7114784c3e6e771ecddd7dc18340abb79888f820cc488008b082ba896f7b0417 | C/C++ | 16,063 | 427 | /* -*- 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... |
d0b96636da6a007bc3944c46560a0eb5b3995a6ce5946b6e738cea14fa0de33d | C/C++ | 16,183 | 538 | /* $Id: tif_fax3.h,v 1.9 2011-03-10 20:23:07 fwarmerdam Exp $ */
/*
* Copyright (c) 1990-1997 Sam Leffler
* Copyright (c) 1991-1997 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provided
* tha... |
73bdd21674cb57862ead7dedbd6304ec82dab6545b879237fbc1a3efa05fe863 | C/C++ | 16,498 | 418 | /**
* Copyright 2014-2026, XGBoost Contributors
* \file gbtree.cc
* \brief gradient boosted tree implementation.
* \author Tianqi Chen
*/
#ifndef XGBOOST_GBM_GBTREE_H_
#define XGBOOST_GBM_GBTREE_H_
#include <dmlc/omp.h>
#include <algorithm>
#include <cstdint> // std::int32_t
#include <memory>
#include <numeric>... |
7e6396a224a068960dd92ce65d355bb735dd6337ee053277357ec2817e871fc3 | C/C++ | 16,502 | 327 | /*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... |
ecc9f9a867b20ae715dc8bd9049d841866531b46c3c97f41ac55741f4b75ba5c | C/C++ | 16,755 | 290 | /*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... |
89b4fd54625082732d52f5311b554e2748bd72eeacc08c00f5f0a27b3605be8d | C/C++ | 17,145 | 393 | /*
* jdct.h
*
* Copyright (C) 1994-1996, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This include file contains common declarations for the forward and
* inverse DCT modules. These declarations are... |
a02a726121be8624ca9c54b6b15bdc39016a4453f65933fc08a92cd6d99949dc | C/C++ | 17,226 | 369 | /*
* 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... |
0f24a663320f152501a20509b1349e2b0115fe2a88799d288414304fb5b8a940 | C/C++ | 17,232 | 426 | /*
* jpegint.h
*
* Copyright (C) 1991-1997, Thomas G. Lane.
* Modified 1997-2011 by 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 provides common declarations for the various JPEG modules.... |
ea44bcd647e498a21f8335f689ba23da6e6815808ba895be6d5bcfdf8accc90d | C/C++ | 17,380 | 449 | /**
* Copyright 2018-2026, XGBoost Contributors
* \author Rory Mitchell
*/
#pragma once
#include <algorithm>
#include <cmath> // for fpclassify
#include <limits>
#include <numeric> // for iota
#include <string>
#include <utility>
#include <vector>
#include "../common/numeric.h" // for TransformReduce
#include ".... |
e23411f63cf4bb5165dc48538f89ae673b2e828a901b964b503c5a320a527838 | C/C++ | 17,545 | 414 | /**
******************************************************************************
* @file stm32wbxx_hal_cortex.h
* @author MCD Application Team
* @brief Header file of CORTEX HAL module.
******************************************************************************
* @attention
*
* Copyright (c) ... |
48843336829105e42c091afb148f2e9515fad3895fbc3c9b2644651888d51e6e | C/C++ | 17,726 | 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... |
3c585f89fe98e4dc88573d807083b2d6a00b724c68a1e4052f6ef872c06acda6 | C/C++ | 18,832 | 524 | /**
* Copyright 2014-2026, XGBoost Contributors
* \file param.h
* \brief training parameters, statistics used to support tree construction.
* \author Tianqi Chen
*/
#ifndef XGBOOST_TREE_PARAM_H_
#define XGBOOST_TREE_PARAM_H_
#include <algorithm> // for copy, any_of
#include <cmath>
#include <cstring>
#include <l... |
fc222d74da8088e6d566945330707da864c366659433b508ca6e76cfe12c8ed1 | C/C++ | 18,969 | 425 | /**
******************************************************************************
* @file stm32wbxx_hal_tim_ex.h
* @author MCD Application Team
* @brief Header file of TIM HAL Extended module.
******************************************************************************
* @attention
*
* Copyrigh... |
13b4f9e93ac4600b0732a0580cc7f1848daab302fa69d728a98d4551451267a3 | C/C++ | 19,072 | 195 | #ifndef _SVM_poly_Parameters
#define _SVM_poly_Parameters
#include "arm_math.h"
#define poly_NB_SUPPORT_VECTORS 151
#define poly_VECTOR_DIMENSION 7
/*
Those parameters was generated with the scikit-learn and Marek's script.
*/
//Classes: ['AF' 'Normal' ]
const int32_t polyClasses[2]={ 0, 1};
const float32_t polyIn... |
b10b80ecc7990a107bc705db638bdbd2d914c2bc502eaf3ac959c6b8ec33d504 | C/C++ | 19,351 | 695 | /**
* (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... |
94f97066f2bf68cf934e9cae15dff980f2b653f2f5591a75c816753c51693012 | C/C++ | 20,105 | 484 | /*
* Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _HARDWARE_PIO_INSTRUCTIONS_H
#define _HARDWARE_PIO_INSTRUCTIONS_H
//#include "pico.h"
/** \brief PIO instruction encoding
* \defgroup pio_instructions pio_instructions
* \ingroup hardware_pi... |
9eb734f55ff7e446ada166d027b5b20780074b0b9dd090cb3e8184a7e02e06bd | C/C++ | 20,315 | 440 | /* The MIT License
Copyright (C) 2018-2025 Giulio Genovese
Author: Giulio Genovese <giulio.genovese@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction,... |
0fd89d8f5226b74d6b65e8f4b7f9c38ef8a9653bff2e19b86cb41f1d2a6332d4 | C/C++ | 20,491 | 450 | /**
* Copyright 2021-2026, XGBoost Contributors
*/
#ifndef XGBOOST_TREE_HIST_HISTOGRAM_H_
#define XGBOOST_TREE_HIST_HISTOGRAM_H_
#include <algorithm> // for max
#include <cstddef> // for size_t
#include <cstdint> // for int32_t
#include <utility> // for move
#include <vector> // for vector
#include ".... |
5fe480a5130eb916375da187ee1eed5b0cdd723ccb2f81112e9cde31b17949bf | C/C++ | 21,424 | 657 | /**
* Copyright 2017-2026, XGBoost Contributors
* \file hist_util.h
* \brief Utility for fast histogram aggregation
* \author Philip Cho, Tianqi Chen
*/
#ifndef XGBOOST_COMMON_HIST_UTIL_H_
#define XGBOOST_COMMON_HIST_UTIL_H_
#include <algorithm>
#include <cmath> // for nextafter
#include <cstdint> // for uint... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.