sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
f7348a2d3ac2a0cb80bfd5f3852256ee28d07fe698ac660e577001907c2ef234
C
40,989
1,426
/* $Id: tif_pixarlog.c,v 1.38 2012-06-21 01:01:53 fwarmerdam Exp $ */ /* * Copyright (c) 1996-1997 Sam Leffler * Copyright (c) 1996 Pixar * * 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 c...
e2bf5e525fa10eb2b073209bda33b11820140a9433da607832783fb49ae4ac85
C
41,024
1,119
/* * jmemmgr.c * * Copyright (C) 1991-1997, Thomas G. Lane. * Modified 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 the JPEG system-independent memory management * routi...
b6bc8bb2ff352003d30ea97dfd4bde1f0a58742e180a524f8d93128f402003e0
C
41,933
1,290
/* * $Id: xtiff.c,v 1.3 2010-06-08 18:55:15 bfriesen Exp $ * * xtiff - view a TIFF file in an X window * * Dan Sears * Chris Sears * * Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts. * * All Rights Reserved * * Permission to use, copy, modify, and distribute thi...
86f14a154112e8877833c6ff6f94a40dbc74cdf9afcf86919e43ce9d6c658817
C
42,235
1,052
/** ****************************************************************************** * @file stm32wbxx_hal_flash_ex.c * @author MCD Application Team * @brief Extended FLASH HAL module driver. * This file provides firmware functions to manage the following * functionalities of the FLASH...
fa0198ceb960de463f82d601859fd8db43b57623a7bace73f8888b4473339ea2
C
42,592
1,406
/* * jdmarker.c * * Copyright (C) 1991-1998, Thomas G. Lane. * Modified 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 contains routines to decode JPEG datastream markers. * Most o...
56b826d6d38db87a19a3ac902ba3d25f6c37de7c05aa19b67e0a6c9869d96cac
C
42,871
1,683
/* $Id: tif_luv.c,v 1.35 2011-04-02 20:54:09 bfriesen Exp $ */ /* * Copyright (c) 1997 Greg Ward Larson * Copyright (c) 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) t...
2a0fb9838e7923a6f54655900952f523395ece866c9436e18e38a9f68c1d49de
C
44,789
1,595
/* $Id: tif_fax3.c,v 1.74 2012-06-21 02:01:31 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 * th...
d5870c12cc67664758a4ea5713e2164240c2f6d4ec57bc9199b1cfa63e59c147
C
46,402
1,367
/** ****************************************************************************** * @file stm32wbxx_hal_pwr_ex.c * @author MCD Application Team * @brief Extended PWR HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Power Con...
cca07840284d6f37687db67f7a4b31502d0fb318aae7658cd757b166424a5b95
C
46,418
1,659
/* $Id: tif_dir.c,v 1.113 2012-06-14 20:32:53 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 * th...
bfa0cac2199732392e9103cdebfb5ef7bdf0ca95e2bad64ddd1e3a4b32634dba
C
47,997
957
/* $Id: tif_dirinfo.c,v 1.117 2012-08-19 16:56:34 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 * t...
42f3c1496beed2d6c38b43b1357a247cdc4e0d3b7904b1c8ef6503e08cabcbee
C
48,201
1,576
/* * jchuff.c * * Copyright (C) 1991-1997, Thomas G. Lane. * Modified 2006-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 contains Huffman entropy encoding routines. * Both sequent...
13aec3dd88aaf45f8d544d46bdbff8cfcfa61c46b618769bb149c773f4fbb3eb
C
48,374
1,541
/* * jdhuff.c * * Copyright (C) 1991-1997, Thomas G. Lane. * Modified 2006-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 contains Huffman entropy decoding routines. * Both sequent...
32d388432271b33c07e8b90f75f79618a503faff142b07ab423cd7e8d4d1ee56
C
48,471
1,311
/* * jquant2.c * * Copyright (C) 1991-1996, Thomas G. Lane. * Modified 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 2-pass color quantization (color mapping) routines. *...
5483992d2fd02db971ca1680a29117330adcb3f3e9527f46ef35979c9532419f
C
49,122
829
/* $Id: test_arrays.c,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...
02f394532a82effeb7afe6fc1d06d8fca23363551453415c009e484a92c2a73d
C
50,868
1,860
/* $Id: tiffcp.c,v 1.49 2010-12-23 13:38:47 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Revised: 2/18/01 BAR -- added syntax for extracting single images from * multi-image TIFF files. * * New syntax is: sourceFileNam...
3fca6c6d3535e28c23fa115c103a693069259197862a6b2995417bf7f9e54c68
C
53,446
1,163
/* The MIT License Copyright (C) 2017-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,...
7a5efa8e46e398c7fb53e71bfcb48e86f704afba4e7aff722819064dc00b0d61
C
57,166
2,234
/** ****************************************************************************** * @file stm32wbxx_hal_pcd.c * @author MCD Application Team * @brief PCD HAL module driver. * This file provides firmware functions to manage the following * functionalities of the USB Peripheral Contro...
36f8d1aae55dfdcdce4fec582825b75004c5dcba7736a52f80084d15ef1238e3
C
57,263
1,597
/* * transupp.c * * 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 image transformation routines and other utility code * used by the jpegt...
a84031d563d40f5c292191324586c14a5c4815d52d3453bff76a3dc574bd80c3
C
64,669
1,824
/** ****************************************************************************** * @file stm32wbxx_hal_rcc.c * @author MCD Application Team * @brief RCC HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Reset and Clock Contr...
258415614955264f8f2d1754f51cb2eb0070dcd3fe140d317d4683a167aa5869
C
67,672
2,304
/* $Id: tif_jpeg.c,v 1.111 2012-07-06 18:48:04 bfriesen Exp $ */ /* * Copyright (c) 1994-1997 Sam Leffler * Copyright (c) 1994-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...
be3953cab81cdd388c86130a150532a1ae5eac330633c7df9b53db19a5d97054
C
73,790
2,867
/* $Id: tif_getimage.c,v 1.82 2012-06-06 00:17:49 fwarmerdam Exp $ */ /* * Copyright (c) 1991-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 ...
d5db4ec31c56ad6f7421e1bfc5721d2684ca9a385ba58974fbd96339b61bc068
C
74,756
2,328
/** ****************************************************************************** * @file stm32wbxx_hal_rcc_ex.c * @author MCD Application Team * @brief Extended RCC HAL module driver. * This file provides firmware functions to manage the following * functionalities RCC extended per...
bdec38a920eec6eb052b796642a95e9437026f9ccdfd20b559313e33fbedd1de
C
76,932
2,496
/* $Id: tif_ojpeg.c,v 1.56 2012-05-24 03:15:18 fwarmerdam Exp $ */ /* WARNING: The type of JPEG encapsulation defined by the TIFF Version 6.0 specification is now totally obsolete and deprecated for new applications and images. This file was was created solely in order to read unconverted images still present...
728b6609125ca865b183617f1793f0f8788eda9ba46d4f6ac973e6678bb2870a
C
87,922
2,910
/* $Id: tif_dirwrite.c,v 1.77 2012-07-06 19:18:31 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 * t...
a0486886b7878545caf56eb895bd61ecd9793299103ca98b16c1641ce39cc040
C
96,562
2,842
/** ****************************************************************************** * @file stm32wbxx_hal_tim_ex.c * @author MCD Application Team * @brief TIM HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Timer Extended per...
acf80d839803085e0a699e5e8478180d4811d68779aa14ada8e06461636ab52a
C
99,059
3,073
/* $Id: tiff2ps.c,v 1.49 2011-05-31 17:10:18 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 ...
827ce55eebc2006d3305b5a19891dc44f89c33c5233e837ebf766c0675b6dab1
C
104,740
1,260
/* WARNING, this file was automatically generated by the mkg3states program */ #include "tiff.h" #include "tif_fax3.h" const TIFFFaxTabEnt TIFFFaxMainTable[128] = { {12,7,0},{3,1,0},{5,3,1},{3,1,0},{2,3,0},{3,1,0},{4,3,1},{3,1,0},{1,4,0},{3,1,0}, {5,3,1},{3,1,0},{2,3,0},{3,1,0},{4,3,1},{3,1,0},{5,6,2},{3,1,0},{5,3...
e7881f9866980d4e23a69afeccfc49316f130d542327c44202ec2a4c200c47cd
C
140,223
5,613
/* $Id: tif_dirread.c,v 1.178 2012-08-19 16:56:34 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 * t...
acf3a987fa0ba3aae4b2511b56a0c570f9b97cbd9feadf9255b612296e9b30fd
C
158,678
4,348
/* * jfdctint.c * * Copyright (C) 1991-1996, Thomas G. Lane. * Modification developed 2003-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 contains a slow-but-accurate integer implem...
dfb83cebaa7a5c49951bcdd28514c1a026b8da440e2b9542c8badaa8ddd2677a
C
160,144
5,388
/* $Id: tiff2pdf.c,v 1.69 2012-07-19 15:43:41 tgl Exp $ * * tiff2pdf - converts a TIFF image to a PDF document * * Copyright (c) 2003 Ross Finlayson * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided * that (i)...
c79ed02d6dc95748124bde545f9a81c09d0eb640c415f60cc22b192eacf396f9
C
170,289
3,820
/* The MIT License Copyright (C) 2015-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,...
dca36746588189d1a605601914032725a3c76348e1a8bc670546d9b5264b58f5
C
181,900
5,137
/* * jidctint.c * * Copyright (C) 1991-1998, Thomas G. Lane. * Modification developed 2002-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 contains a slow-but-accurate integer implem...
472a9e0fa9abfe84f65313cbd30dfb043d653d9ed68603bc7e91a26a984b3f97
C
200,000
5,991
/* $Id: tiffcrop.c,v 1.20 2010-12-14 02:03:24 faxguy Exp $ */ /* tiffcrop.c -- a port of tiffcp.c extended to include manipulations of * the image data through additional options listed below * * Original code: * Copyright (c) 1988-1997 Sam Leffler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * Additions (c)...
af3bc1defc457e9600d72ced74cd42758212a1f4735efa861d798fd031c6dd40
C
200,000
6,212
/** ****************************************************************************** * @file stm32wbxx_hal_tim.c * @author MCD Application Team * @brief TIM HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Timer (TIM) periphera...
8b34c08109c2c4258e9cf03cd10192e372cec68077373ab20581a172b5ab6c15
C++
144
8
#include <thread> #include <Rcpp.h> // [[Rcpp::export]] unsigned int hardware_concurrency() { return std::thread::hardware_concurrency(); }
0fd5fcc27ef747590b3b22c2405aff504c3e67e322a69ba6a36ff442681069a8
C++
173
9
#include <nix/Version.hpp> namespace nix { std::vector<int> apiVersion() { return std::vector<int> {VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH}; } }
bf8023c744f7e510ecb239f646dbbd34932dad74016009bdc890c6a7f5765669
C++
295
16
#include <nix/Identity.hpp> #include <nix/util/util.hpp> namespace nix { Identity::Identity(const std::string &name_or_id, ObjectType type) : myType(type) { if (util::looksLikeUUID(name_or_id)) { myId = name_or_id; } else { myName = name_or_id; } } } //nix::
900f1d79afe1d558925ce2b7f8980a5da3e8da3b54a596c4d464ca7d0cb457a2
C++
307
8
// stdafx.cpp : file di origine che include solo le inclusioni standard // LabTIFF.pch sarà l'intestazione precompilata // stdafx.obj conterrà le informazioni sui tipi precompilati #include "stdafx.h" // TODO: fare riferimento alle intestazioni aggiuntive necessarie in STDAFX.H // e non in questo file
7a188a57462cbf0cb7c338390c60aaa1813b86bb9009593b7dd76ba6e6e1b172
C++
313
8
// stdafx.cpp : file di origine che include solo le inclusioni standard // DCIMG_LabVIEW.pch sarà l'intestazione precompilata // stdafx.obj conterrà le informazioni sui tipi precompilati #include "stdafx.h" // TODO: fare riferimento alle intestazioni aggiuntive necessarie in STDAFX.H // e non in questo file
9645837348773d560c0c47fa66d3546edf6b736351ef95159c5f1d97d670a30a
C++
328
11
// 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. #include <nix/DataFrame.hpp> using namespa...
be78cb9526391d1fefe5123ffdc8b2de7b1e716a4fd8ee455d15b5b8e7aeb941
C++
396
19
// dllmain.cpp: definisce il punto di ingresso per l'applicazione DLL. #include "stdafx.h" BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: cas...
0cf851b15ed836a23169ce0277c2403c205da0cba0f712a81286977e12afe14d
C++
563
26
// Copyright (c) 2014, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <nix/valid/validator.hpp> #include...
892d4d682b8b9c7475319cbafb3e01b17b9345ecf026717b32a9c964f765ddf6
C++
596
26
// [[Rcpp::depends(RcppEigen)]] #include <RcppEigen.h> // [[Rcpp::export]] SEXP eigenMapMatMult(const Eigen::Map<Eigen::MatrixXd> A, Eigen::Map<Eigen::MatrixXd> B){ Eigen::MatrixXd C = A * B; return Rcpp::wrap(C); } // [[Rcpp::export]] SEXP eigenMapMatcrossprod(const Eigen::Map<Eigen::MatrixXd> A, Eigen::Map<...
1578fa3be27a18bcbc6e179844068dfc7cb3d885fcc46f439f7d3937bb903f36
C++
658
23
/** * Copyright 2022-2026, XGBoost Contributors */ #include "numeric.h" #include <cstddef> // for size_t #include "xgboost/context.h" // Context #include "xgboost/host_device_vector.h" // HostDeviceVector namespace xgboost { namespace common { double Reduce(Context const* ctx, HostDeviceVector<float>...
ab95b52222943077379c3fdf335c21a0e101f008f2ca741e7498c3ecfae417ac
C++
672
29
// Copyright (c) 2014, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <nix/valid/helper.hpp> #include <...
93b48428a1937668e059a31736b43723c45f33abd801879574a74ebd8a3b6aa8
C++
709
32
// Copyright (c) 2014, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #ifndef NIX_I_DIMENSIONS_CPP #define NIX_I_...
e91c991d437542b1d6b6a5db3ad6cf87c69179338e25cb70e900bce24af3dbf8
C++
783
23
/** * Copyright 2026, XGBoost Contributors * \file hinge.cc * \brief SYCL implementation of the hinge loss objective kernels. */ #include "../../../src/objective/hinge.h" // for HingeLoss, HingeLabelCheck #include <dmlc/registry.h> #include "elementwise_objective.h" namespace xgboost::sycl::obj { DMLC_REGISTRY_...
3a13f62cdbc2ffe242caa6d55d8f3237a5b7509df132c8202a39dae3c758fdaa
C++
803
31
// Copyright (C) 2021-2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" TEST_SUITE("Polygon") { using namespace overlap::detail; TEST_CASE(...
2cf0f16e0bb0b799a5b8c5be8576ac919e45e2cb79159467a36a15e6f03aae60
C++
848
26
/*! * Copyright by Contributors 2017-2026 */ #include "../../../src/common/stats.h" #include <sycl/sycl.hpp> #include "../device_manager.h" namespace xgboost::common::sycl_impl { void Mean(Context const* ctx, linalg::VectorView<float const> v, linalg::VectorView<float> out) { sycl::DeviceManager device_manager;...
2d844deb55d07e7bf5bd52c2798900ba48fecab44ea4c065c881cfaa4ac8b0e0
C++
920
34
/** * Copyright 2026, XGBoost Contributors */ #include <gtest/gtest.h> #include "../../../src/tree/driver.h" #include "../../../src/tree/hist/expand_entry.h" #include "../../../src/tree/param.h" #include "test_child_hessian.h" #include "test_empty_pop.h" namespace xgboost::tree { namespace { CPUExpandEntry MakeCPUE...
18809215b4964c0ec55d868005787605a519adaf4119aa22d705344bc6b268ab
C++
942
33
// Copyright (C) 2025 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" #include "overlap/overlap.hpp" TEST_SUITE("detect_non_planar_faces") { usi...
9ce8c95f320aa7f6bc06bba2e0aa2f52891408f6444f5e95f7b2091667520640
C++
964
49
#include <time.h> #include <stdlib.h> #include <stdio.h> #include <complex.h> #include <fftw3.h> #define n 4096 #define n_inv ((n/2)+1) int main() { double *in; fftw_complex *out; fftw_plan p, p_inv; int i; in = (double*)fftw_malloc(n*sizeof(double)); out = (fftw_complex*)fftw_malloc(n_inv*sizeof(f...
76d5520066be8a3deeac68939efcfbd421c31832085fe57d425c555e3fbeb9f0
C++
988
38
// 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...
cb61b8d60571594af1d221593ba18c5ee76e126d77f66ef487b9aacceabe84da
C++
1,099
52
// 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...
3665dfdd048889080196d096d610bdef179d97332e4ece70e2290961a54e6751
C++
1,102
47
// 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/Feature.hpp> #include <nix/ut...
26585decf082aba63f8e12f575ac871640b8cf82767a81fe5f779ea43b47ab6b
C++
1,141
34
/** * Copyright 2024-2026 by XGBoost contributors */ #include <gtest/gtest.h> #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wtautological-constant-compare" #pragma GCC diagnostic ignored "-W#pragma-messages" #include <xgboost/objective.h> #pragma GCC diagnostic pop #include <xgboost/context.h> #includ...
465fa24e17e8ed99a39249b5b063b8a4b669c32f91840b167fa1e388ccb1c41d
C++
1,148
45
// 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/Property.hpp> #include <nix/...
12387bae02fbd6c06e7416fc00714d1d0ae069044d6414df397c3e757d046ff0
C++
1,205
48
// Copyright © 2020 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 <christian@kell...
d6f736f0879be2fe537f312656469a9c75655c2e1e3edbbdaddf56ef5f9c3160
C++
1,239
49
// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <ctime> #include <iostream> #inclu...
9d731ed97269e9ee3d81da1dd93103f51e529366f76ef26da602f62f1383c8a9
C++
1,279
41
// Copyright (C) 2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include <doctest/doctest.h> #include "overlap/overlap.hpp" #include "common.hpp" TEST_CASE("Norm...
cb41fac0268844f5d518bdb507af6f4fdbdb842c09239ab0eb44a1712cee98e3
C++
1,321
40
/** * Copyright 2026, XGBoost Contributors */ #include "threadpool.h" #include <algorithm> // for max, min #include <cstdint> // for int32_t #include <mutex> // for unique_lock #include <string> // for string, to_string #include <thread> // for thread #include "threading_utils.h" // for Name...
f9f5206744a8ec4e22f28ec86b17e9d1506acf2adecb5bd0a2f4f35ac8704288
C++
1,336
55
// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // Copyright (c) 2013, Christian Kellner <kellner@bio.lmu.de> // // 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 roo...
728c81e01c4da113f2e193e22f189ef1de86dc391af03225204d17597d565d7f
C++
1,341
43
// 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 <iostream> #include <nix/util/uti...
6907f3f033699f25a7ed436bdd94036e2cd80a40d41ed9767a20cdcdcf05cfad
C++
1,343
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...
1b047543d50113cc8dfa2e8ec3f2b165c1cbab7acd83565d7ce1ce2539a6fd38
C++
1,396
49
// Copyright (C) 2015-2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" TEST_SUITE("DecomposeElements") { TEST_CASE("Hexahedron") { using ...
03727f3085ef92a82cca8c58cdb2b73899647dbce3f3122d8281c6f8308f6a5e
C++
1,400
42
// Copyright (C) 2021-2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" TEST_SUITE("contains") { using namespace overlap; TEST_CASE("Sphere...
f4ac74875eda88742e293d258c3cbbe97055c9e2b77a29a11438333ac5de4a03
C++
1,438
48
#include <RcppArmadillo.h> // [[Rcpp::depends(RcppArmadillo)]] using namespace Rcpp; /* * Compute WLS estimates of mean or variance for all p genes * * D: Design matrix for WLS (size n x k), where the first column represents baseline mean/var, and others represents covariates * X: Response matrix for WLS (size n...
7d60430e8d1823bdeabd62da99ed9831c7b0f81c3c982b4086a4c1d46efd841d
C++
1,441
46
// Copyright (C) 2015-2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" TEST_SUITE("SphereElementOverlap") { using namespace overlap; TEST_...
becf67b04efd87db00e3a4a98e8202de27b8990ecd17a553dde90c51e6a82520
C++
1,459
52
// Copyright (C) 2023 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include <doctest/doctest.h> #include "overlap/overlap.hpp" #include "common.hpp" TEST_SUITE("Tet...
db114b00fc5555f00c9297c1aca684178a8fbfe0853c9021c94a645c558625b9
C++
1,508
39
// 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...
60b60e01e53a7d1b4ed20d9cadb916cc9efa4f1f6d9c5d1c93ac99cd738c84d1
C++
1,522
49
// 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...
fcec5fb70bfa84cba998b864c8696066c365e7b50640d2446a3724493ed021ad
C++
1,584
42
// C wrapper implementations for content-streamer C API // -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- #include "content-streamer.h" #include "content-streamer-c.h" #include <fcntl.h> #include <unistd.h> extern "C" { StreamIO* file_stream_io_create(const char* filename) { return reinterpret_cast<S...
b6d52fec0859548950f004a506a509afca6800ab9540fd3620e121bdfe57f9d4
C++
1,649
53
// Copyright (C) 2015-2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" #ifdef OVERLAP_HAVE_FEENABLEEXCEPT #include <cfenv> #endif TEST_SUITE("...
73fb68d3d07dea1a28d29a8dbd6665dce100957c9168fc3d8ab9779c8fc8bbdb
C++
1,657
63
// Copyright (c) 2014, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. // // Author: Christian Kellner <kellner@bio...
91ef2bbf4ced965e97679f9493ae602b4d5b8a1aef47c3ab880e31d1f0b04edd
C++
1,676
49
// 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 "TestNDArray.hpp" #include <nix/N...
125168ed752416c06b22cf8c9a62c561af8c6c79d5e8d9653387509c1463fc0c
C++
1,700
50
/*! * Copyright 2018-2026 XGBoost contributors */ #include <gtest/gtest.h> #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wtautological-constant-compare" #pragma GCC diagnostic ignored "-W#pragma-messages" #include <xgboost/context.h> #pragma GCC diagnostic pop #include "../../../src/common/kernel.h" ...
6e786af793b2e50aa1f067a100033612056e4d8cf8b4fcfde733d648226bb5f3
C++
1,764
52
// Copyright (C) 2021-2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" TEST_SUITE("clamp") { // Test clamping of numbers without tolerance. ...
ecc710d212a08d2d155119b8bc09116e5716feecd1047fa4a2dd4d3746be26d8
C++
1,865
67
// Copyright (C) 2026 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include <array> #include <cmath> #include <nanobench.h> #include <doctest/doctest.h> #include "o...
f6a1b1b49dcf7534521545efbf2c47eb4146a5b48bda837ba07286c9b4f1d51d
C++
1,866
65
// Copyright (C) 2025 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" #include "overlap/overlap.hpp" TEST_SUITE("line_sphere_intersection") { us...
e03ad4dc3b8c4b888785aa4ecae4334cfbf75d875989f18aada7ab3c9e95adf4
C++
1,892
64
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- // Small example how to use the input bits // // This code is public domain // (but note, that the led-matrix library this depends on is GPL v2) #include "led-matrix.h" #include <unistd.h> #include <math.h> #include <stdio.h> #include <signal.h> using r...
e1a53bdb661d962ab074276b0c7721f1855350e92e0c0f1e5fe4368b1f9cac35
C++
1,928
76
// 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.l...
cfe7c50ec388ada1914b567bee55d86d8c0f60e6591ddbe79f997b6ee76c95af
C++
1,946
53
/** * Copyright 2022-2023 by XGBoost contributors */ #include "init_estimation.h" #include <memory> // unique_ptr #include "../common/stats.h" // Mean #include "../tree/fit_stump.h" // FitStump #include "xgboost/base.h" // GradientPair #include "xgboost/data.h" /...
ff984b2eeab61c3dbd1a79305d5459ed653a3a79f9dea57fa598e807cff7d2f0
C++
1,972
66
// Copyright (C) 2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include <doctest/doctest.h> #include "overlap/overlap.hpp" #include "common.hpp" TEST_SUITE("Hex...
359bdc9a9acccf1a100a16262a97151058069edf484ac93c9847949c3eebbea1
C++
1,973
68
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- // Small example how to use the library. // For more examples, look at demo-main.cc // // This code is public domain // (but note, that the led-matrix library this depends on is GPL v2) #include "led-matrix.h" #include <unistd.h> #include <math.h> #inclu...
f73568c69cd73b9f126adccfab80a0dacbbe382bbcf2751ee8ddfae2fa7834b2
C++
1,978
76
// Copyright (c) 2014, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <nix/valid/result.hpp> #include <...
e2bd787ff439a9080ce1fbc256b3e53e5772f1d95404cf501be57c87e1cfb94d
C++
2,039
63
// Copyright (C) 2021-2022 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" TEST_SUITE("Sphere") { using namespace overlap; constexpr auto epsi...
17ac0a817c0d10c82282100c06f967e33dced3d76d5ee4792f5a2ecf272de683
C++
2,047
51
#include <vector> #include <Rcpp.h> #include "pforr.h" #include "nn_parallel.h" using namespace Rcpp; template <typename UwotAnnoyDistance> auto annoy_nns_impl(const std::string &index_name, NumericMatrix mat, std::size_t n_neighbors, std::size_t search_k, std::size_t n_threa...
a3d79042bda03330e5859a0357275948a9d6a036ffd4907ddbfa358c133df541
C++
2,067
104
// 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.l...
8ac2e1ebc49c6ac94b7285c012db43a9fad84fd24048bf5205c794af1731144f
C++
2,088
61
// clang++ -std=c++11 -O2 spike_times.cpp -o spike_times #include <nix.hpp> #include <chrono> #include <iostream> #include <random> double store_spike_times(nix::DataArray &array, double dt, double spike_prob, size_t chunksize=1000) { auto start = std::chrono::high_resolution_clock::now(); auto end = std::c...
6c2082b3d6327cce17f371627dfba2525bf8505ed9fe6da9d145b96e0df67c93
C++
2,095
60
// Copyright (C) 2025 Severin Strobl <git@severin-strobl.de> // // SPDX-License-Identifier: MIT // // Exact calculation of the overlap volume of spheres and mesh elements. // http://dx.doi.org/10.1016/j.jcp.2016.02.003 #include "common.hpp" #include "overlap/overlap.hpp" TEST_SUITE("normalize_element") { using nam...
f252196e5835ddb290cdf758d198f733a880c4c5a39679136263339f3b39de08
C++
2,152
78
// 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...
0ad9ffdc220bf68bb56030e3921ebb1a4d31b014ae30aa1169e5cf8a1fc27661
C++
2,190
59
// 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...
314c58dcd6b29fa14a6315c663667aec65821fdcc38183952201652e3f2884eb
C++
2,210
90
// Copyright (c) 2013-2015, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include "AttributesFS.hpp" namespace...
bf822374b95aca3124b7a334a79326f67652a1f6f033aad873e80d14dec6b786
C++
2,213
70
/** * Copyright 2017-2024, XGBoost contributors */ #include <algorithm> #include "../../../src/common/compressed_iterator.h" #include "gtest/gtest.h" namespace xgboost::common { TEST(CompressedIterator, Size) { bst_idx_t n = 2048; { bst_idx_t n_symbols = 256; auto n_bytes = CompressedBufferWriter::Calcu...
a0e64d8b3891adcc59977e8fdb3af71b3cfd1c37f4d95001d241e9070dcd4ed8
C++
2,242
56
// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #include <RcppEigen.h> #include <Rcpp.h> using namespace Rcpp; // eigenMapMatMult SEXP eigenMapMatMult(const Eigen::Map<Eigen::MatrixXd> A, Eigen::Map<Eigen::MatrixXd> B); RcppExport SEXP _...
04473bd2cfd0fb971afc35a346df80813532ab69249422acb3626c4757dfe22d
C++
2,243
80
// 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...
89a36e88507bbe0e279bfc95ab1da2d3ad01ed1bf44624feaa6fe26819592c26
C++
2,290
82
// 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/Group.hpp> #include <nix/util...
948bc42191fead04716aa51b43cae55346e3a5a29b707a7b44cb7aa84e807e81
C++
2,292
101
// 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 "TagFS.hpp" namespace nix { names...
3b31b4a61e84e975c4b66f4f8850aa907b246258ac6b0c995c67a2a42f33d29c
C++
2,298
84
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*- // A program that reads frames form STDIN as RGB24, much like // https://github.com/polyfloyd/ledcat does. // // This code is public domain // (but note, that the led-matrix library this depends on is GPL v2) #include "led-matrix.h" #include <math.h> #in...
90c69ae123f5af89c8f80c9708628e153210f6f7755d4626e5e7f255faf66c6a
C++
2,305
116
// Copyright (c) 2013 - 2015, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include "EntityFS.hpp" namespace b...