sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
44f01d4c6f4c30a394e0d708a97ad7212ba78aed85f34cde66a3688501e8b558
C++
1,352
54
// // cpp11/can_require_static.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <b...
53aca4e9d47fdda236eb11b6cf8dc8224f41c44494f81c5497ec4fdef537e906
C++
1,353
50
// // cpp11/can_prefer_not_preferable_free_prefer.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boos...
f871b949a029420192df1cfe92748943c06b46eca13b6e9bbaedc8e780d0eb2a
C++
1,353
44
//---------------------------------------------------------------------------// // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg.gi...
0639397f292cd8e933b6f56eefbbb9dfb8cd3425f6702011cf4aa1884340700b
C++
1,354
44
#include "soloInputFeatureUMI.h" #include "SoloReadFeature.h" #include "binarySearch2.h" bool soloInputFeatureUMI(fstream *strIn, int32 featureType, bool readInfoYes, array<vector<uint64>,2> &sjAll, uint64 &iread, int32 &cbmatch, uint32 &feature, uint64 &umi, vector<uint32> &featVecU32, So...
a79d66d37aacf9c182b917a8e682a77ca5072aabcda502e7bcb27380519793a0
C++
1,355
55
// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // // Test that header ...
9d3ff11534981b740470ca8544712d4983613bb7e9aa2d53c564f8335449bac6
C++
1,356
50
// // cpp11/can_prefer_not_preferable_free_require.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.bo...
4e222d0556fa1a5c2a75d0169e33ff82ab8067ea48dd4b8b9611c2bf089c85f5
C++
1,357
40
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // xml_wiarchive.cpp: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://...
ffb47e3ae97c8aa8ed540cdda1cd971cb1a6d9488354ae6ef239ec4e0bb5ce9d
C++
1,357
55
// // blocking_tcp_echo_client.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <c...
1e9810cdfaeddb23c23b8b696245e5b4b98ca2e01611003d7049478531bb4afe
C++
1,358
60
#include <stdio.h> #include <stdlib.h> #include <mex.h> #include <math.h> #include <matrix.h> #include <string.h> // Vo = mexSumOverScales( v , lx , N ) // // name dim description // ------------------------------------------------------------------------- // v P x 1 values of vector lineari...
9a586d261f87be6578f722a6eb61957fd001088880635e53e3565c7dc501b4dc
C++
1,358
40
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // xml_woarchive.cpp: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://...
d2438edeb8e795044fb886583227034f7bf73bac64934c6744eb6b88cbe8fe32
C++
1,358
45
//---------------------------------------------------------------------------// // Copyright (c) 2014 Roshan <thisisroshansmail@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg...
dd50b32fcb4dcab5a07b363c0c61c633e60567318cbb48e81308812a84b76732
C++
1,363
50
// // cpp14/prefer_unsupported.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <b...
58167250504d4e45b9c28be2f4816ef955c3302b033b447f6a715c2a3e5358d2
C++
1,367
34
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Soft...
09082ef5712846d6d1b676c9d5e523d53a0a8c177955a614dbeecde0bfafc007
C++
1,368
58
#include <boost/config.hpp> #if defined(BOOST_MSVC) #pragma warning(disable: 4786) // identifier truncated in debug info #pragma warning(disable: 4710) // function not inlined #pragma warning(disable: 4711) // function selected for automatic inline expansion #pragma warning(disable: 4514) // unreferenced inline re...
1e8cdbdf3990b3cdd5608cd34793d3099c2f52c01b4503d8199278172309bf8d
C++
1,368
34
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Soft...
f2415c06d41bd8599b6867125cd5f7143223fc928446a875ba2026609526294b
C++
1,371
45
/*<- Copyright Barrett Adair 2016-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt) ->*/ #include <boost/callable_traits/detail/config.hpp> #ifdef BOOST_CLBL_TRTS_DISABLE_REFERENCE_QUALIFIERS int main(){ return 0; } #else //...
cec7beb3c61da5cb27ffdceb713c88e802fc0ed18b5207ca01015a1ef0bbf4f5
C++
1,374
47
//---------------------------------------------------------------------------// // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg.gi...
399acbdd9a6c128846fb4db8593e1e481f1fbefe773886ef3579d6128e0dafbc
C++
1,375
52
#include <tuple> #include <utility> #include <type_traits> #include <boost/callable_traits/qualified_class_of.hpp> #include "test.hpp" struct foo; int main() { { using f = void(foo::*)(); using test = TRAIT(qualified_class_of, f); using expect = foo &; CT_ASSERT(std::is_same<test...
b66022c89520728967e5b80af565bf43911581e312f50e2d83c208f918ab6f3f
C++
1,376
50
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boosto...
0b7f432f612acbafcbd19b2e4e15c90996b7324ad74bccd0e07b3da47f7ef623
C++
1,379
48
//---------------------------------------------------------------------------// // Copyright (c) 2014 Roshan <thisisroshansmail@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg...
280beba3613d97037ef52ec028e1a7838a1f7a12dd7e688c939954c23bb0bbdc
C++
1,379
54
// // cpp03/can_require_not_applicable_member.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LI...
ab4997dbbb26f50d782b2585e26f4bee4a8618f695787d42eb178543a872cf6c
C++
1,380
45
/*<- Copyright Barrett Adair 2016-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt) ->*/ #include <boost/callable_traits/detail/config.hpp> #ifdef BOOST_CLBL_TRTS_DISABLE_REFERENCE_QUALIFIERS int main(){ return 0; } #else //...
cbce32a0b74e5f17c65b4486e94c97c23339d9af40b3cdf8380982f980946618
C++
1,380
42
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boosto...
ed66e663cd2e7385e10a46a30abb125f9211cdc65a7f55da988d5dd029a112a5
C++
1,380
36
#include "socket_utils.h" #include "api_config.h" #include "common.h" template <typename Socket, typename Protocol> uint16_t bind_port_in_range_(Socket &sock, Protocol protocol) { const auto *cfg = lsl::api_config::get_instance(); asio::error_code ec; for (uint16_t port = cfg->base_port(), e = port + cfg->port_rang...
321404115b60d6fece922d692fcc9810de6a468d812baa46cd1e653cd9fa9e9b
C++
1,381
35
//===================================================== // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as publis...
9d36e34d48760f1d5cc79d57acda78e9e8236313d86bbd52adb0b3e243db8d5c
C++
1,382
54
// // cpp03/can_prefer_not_applicable_member_prefer.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www....
f29562e36b66757d7edf2ac41c76d43e881f32cb5410f618c9225d25c466cf43
C++
1,384
35
//===================================================== // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as publis...
63056263fc26d5dc6bd6c31b5fe3e3fafc427eb4e731aa3ab262b5cf08bc015c
C++
1,385
46
//---------------------------------------------------------------------------// // Copyright (c) 2013 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg.gi...
cb46bcf57013f5aa71ab1819b15edb32670d3b732ba5414545ed67e994a8548b
C++
1,386
54
// // cpp03/can_prefer_not_applicable_member_require.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://ww...
c49f1b82968547431990754b011e43fe8c1224a089bc227f8f31cfbe0410ab1b
C++
1,387
63
#include <boost/config.hpp> #if defined(BOOST_MSVC) #pragma warning(disable: 4786) // identifier truncated in debug info #pragma warning(disable: 4710) // function not inlined #pragma warning(disable: 4711) // function selected for automatic inline expansion #pragma warning(disable: 4514) // unreferenced inline re...
1142b8efb20a8a78df052274e9725b17bafdc60bfc5a39a863f9b77b54bfa833
C++
1,389
54
// // cpp03/can_require_not_applicable_free.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENS...
41ee2380b28f9e50712d7a1a83ffeefbd5a7762ea344e13b0b9d13ef541a1da9
C++
1,389
52
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boosto...
36deadb70e604eb23aa88d8c023d573eda233b95b24e56d1c5c4c5c89d7616d9
C++
1,392
54
// // cpp03/can_prefer_not_applicable_free_prefer.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boos...
4146e72d4c4fd6a2455c1e89cc959a208b31cccc895baa07ba49568c4c270e72
C++
1,393
38
//===================================================== // File : main.cpp // Author : L. Plagne <laurent.plagne@edf.fr)> // Copyright (C) EDF R&D, lun sep 30 14:23:30 CEST 2002 //===================================================== // // This program is free software; you can redistribute it and/or // modify it ...
5968571fdf2aae020bd18397c4900f6ee3a801992c469c39322df345ae69271f
C++
1,395
44
#include <cmath> #include <iostream> #include <lsl_cpp.h> #include <thread> // define a packed sample struct (here: a 16 bit stereo sample). #pragma pack(1) struct stereo_sample { int16_t l, r; }; int main(int argc, char **argv) { std::string name{argc > 1 ? argv[1] : "MyAudioStream"}, type{argc > 2 ? argv[2] : "A...
99e29bd57fda03155bf952432643cc861573448363e7f13a08e19e3e361e1c34
C++
1,396
54
// // cpp03/can_prefer_not_applicable_free_require.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.bo...
d4c5f0416430721bdc24649922eb15fc8b8bf9a0c6987d83542b21e97decb5af
C++
1,400
61
// // stream_client.cpp // ~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <cstring> #include <iost...
4e9057c774d52bd260a1b7002b9e2f857e8b266af1e2d22bd10864e75c923653
C++
1,404
46
//---------------------------------------------------------------------------// // Copyright (c) 2014 Roshan <thisisroshansmail@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg...
f9899fcb8c744b8c3d98cf5ac959ea770d0416d9a4702b99af47332bf334a70c
C++
1,404
45
/*<- Copyright Barrett Adair 2016-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt) ->*/ #include <boost/callable_traits/detail/config.hpp> #ifdef BOOST_CLBL_TRTS_DISABLE_REFERENCE_QUALIFIERS int main(){ return 0; } #else //...
8b6b2dd93bef8b228732bc5dc3b702818b976e302e05a4be6b24510c9ba62b9e
C++
1,406
52
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_xml_archive.cpp: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // htt...
52f6422e3893f303604f148da592485b0d6afa0cd5831121945bb29048696e29
C++
1,407
33
#include "StdAfx.h" using namespace System; namespace Thermo { namespace Prometheus { // This class implements the link to the API's caller validation. Namespace, class name, property name and signature is fixed, don't change. // Single allowed difference: Return type can either be a plain string or an array of...
cd270002f550f291a72dd5df03b71bae75a43f574cd157c7d765da079be4ceee
C++
1,407
51
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <torch/extension.h> #include <vector> std::vector<at::Tensor> lightconv_cuda_forward(at::Tensor input, at::Tensor filter...
0c73e973816e93c85a1e62fc8ee40fa1d209a33886941931555330b40e532a06
C++
1,408
45
/* Copyright Barrett Adair 2016-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt) */ #include <boost/callable_traits/class_of.hpp> #include "test.hpp" struct foo; template<typename T> struct is_substitution_failure_class...
36da6aa5e23886aa4f7d9fbd778c3428ca49b7a4f48084d0aa3c79c2bba85b91
C++
1,410
35
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Soft...
9fd9bf22197605025c8f950202fb390f7e57e5042186d5f19f2531c765fb828c
C++
1,411
47
// Boost string_algo library example file ---------------------------------// // Copyright Pavol Droba 2002-2003. Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See htt...
c313cd27370b113288405b108f89bf1762691a4c3f86d4c61634b75b6910c852
C++
1,411
35
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Soft...
2283b754fe97488835716c80a8c8a99f781f2aef4615ebf4a9eb4e1daceee055
C++
1,413
46
// Boost.Bimap // // Copyright (c) 2006-2007 Matias Capeletto // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // VC++ 8.0 warns on usage of certain Standard Library and API functions that // can be cause bu...
512857fae8532e7209ccace0b1f80e785e7337e2b9ecbb01386b7d801eebe5b9
C++
1,415
47
const int Pin_inline_current_Phase1=0; const int Pin_inline_current_Phase2=1; const int Pin_DC_Bus_Voltage=2; const int Pin_DC_Bus_Current=3; const int Pin_Temperature_HBridge1=4; const int Pin_Temperature_HBridge2=5; const int Pin_Temperature_HBridge3=6; const int Pin_Driver_voltage=7; void setup() { ...
17c6d06872da3d26ad43bad63411c210b5a52254c744520f00b683107f50ca1c
C++
1,416
45
/*<- Copyright Barrett Adair 2016-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt) ->*/ #include <boost/callable_traits/detail/config.hpp> #ifdef BOOST_CLBL_TRTS_DISABLE_REFERENCE_QUALIFIERS int main(){ return 0; } #else //...
bbbedad1a142a143c6dd334e74849ccb47843a43abe6bb2ee1cd7eaf22331921
C++
1,416
81
#include <boost/config.hpp> #if defined(BOOST_MSVC) #pragma warning(disable: 4786) // identifier truncated in debug info #pragma warning(disable: 4710) // function not inlined #pragma warning(disable: 4711) // function selected for automatic inline expansion #pragma warning(disable: 4514) // unreferenced inline re...
cc221d346f8ac0ce688c8d01116a66a39787c80444c1316e4f2f7ba37a935615
C++
1,417
51
//---------------------------------------------------------------------------// // Copyright (c) 2013-2015 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boosto...
75581fc0b6c665179e1df5cce82880a158d513f4f0ef9a74f1ca369b603ff080
C++
1,419
54
// Boost.Assign library // // Copyright Thorsten Ottosen 2003-2004. Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // For more information, see http://www.boost.org/libs/ass...
77ca81ca5a2810b14e0fb09cff52f93f329d9de78d9b5d50ed19fac2ee2d4f48
C++
1,419
74
/* Copyright 2018 Glen Joseph Fernandes (glenjofe@gmail.com) Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) */ #include <boost/align/aligned_allocator_adaptor.hpp> template<class T> class A { public: typedef T value_type; typedef T* pointer; typedef std::...
6110882dd04998eb884ec75d37e912f0feef26e99f63fcb18bdbb1fcb7042975
C++
1,421
84
#include "scanner.h" #include "regex.h" #include "exp.h" #include "exceptions.h" namespace YAML { const std::string ScanVerbatimTag(Stream& INPUT) { std::string tag; // eat the start character INPUT.get(); while(INPUT) { if(INPUT.peek() == Keys::VerbatimTagEnd) { // eat the end character INP...
4768a40b4fe66ea1f1de03127ec8996c6d02583a05aa8377a17e75fed00a871d
C++
1,422
62
// // stream_client.cpp // ~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <cstring> #include <iost...
49a2bbe6cc49e6935c6946fb76d7873caf0a932751ca388ff236633c227bb323
C++
1,425
63
#include <boost/config.hpp> #if defined(BOOST_MSVC) #pragma warning(disable: 4786) // identifier truncated in debug info #pragma warning(disable: 4710) // function not inlined #pragma warning(disable: 4711) // function selected for automatic inline expansion #pragma warning(disable: 4514) // unreferenced inline re...
349be7139d8518b3864a6680e9d01662283dcc6b4d296903c49eb5d504c7650e
C++
1,427
32
#include "ChimericAlign.h" ChimericAlign::ChimericAlign(ChimericSegment &seg1in, ChimericSegment &seg2in, int chimScoreIn, Genome &genomeIn, ReadAlign *RAin) : seg1(seg1in), seg2(seg2in),chimScore(chimScoreIn), RA(RAin), P(seg1in.P), pCh(P.pCh), mapGen(genomeIn) { stitchingDone=false;...
65a79c1af8d567c29baa84a7d8b68e43406321144d2ea337a4e67d9cd49465d5
C++
1,428
46
//---------------------------------------------------------------------------// // Copyright (c) 2014 Roshan <thisisroshansmail@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg...
78d9e2edc75696622a1d3680b1745284e087f5cf3ad047050d87cfd9dcedc7f1
C++
1,428
49
// Boost.Bimap // // Copyright (c) 2006-2007 Matias Capeletto // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // VC++ 8.0 warns on usage of certain Standard Library and API functions that // can be cause bu...
ba75c2d375787fc6f6a7e3d9d445d785243774c8477ba60680e4231ccb29a0b1
C++
1,429
51
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <torch/extension.h> #include <vector> std::vector<at::Tensor> dynamicconv_cuda_forward(at::Tensor input, at::Tensor filt...
cb10da3950b31f1be215bb350aaab10041075aabc3f7b2327aaaa82ad8c40dda
C++
1,429
43
#include <thread> #include <iostream> #include <lsl_cpp.h> #include <random> /** * This example program offers a 1-channel stream which contains strings. * The stream has the "Marker" content type and irregular rate. * The name of the stream can be chosen as a startup parameter. */ int main(int argc, char* argv[...
913893c975ae280d9d9a9928ec0fca36f74c1876fd370eb19879fe6e5c4d0174
C++
1,434
44
#include <iostream> #include <lsl_cpp.h> #include <random> #include <thread> /** * This example program offers a 1-channel stream which contains strings. * The stream has the "Marker" content type and irregular rate. * The name of the stream can be chosen as a startup parameter. */ int main(int argc, char *argv[...
0c7a3da4cc4449661429fae69bb800f0f9ffd46b4067eb9bacc2decb58ee12aa
C++
1,438
45
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boosto...
37e0fffeaed293c651df77b268ffb690bc4d65808f2abc988dc90e21aacfce97
C++
1,441
47
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // binary_wiarchive.cpp: // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com . // Use, modification and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http...
c5eb1923f6d9d6a88b6e80f8d54ef9f6aea099b73c9c85030556dccfd8004b7a
C++
1,442
43
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boosto...
c684325c8f8bc75e347d064fcd89a6a2cf17ad7429f3e9f99e76aabae0ded5e0
C++
1,442
58
/* Copyright Barrett Adair 2016-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt) */ #include <type_traits> #include <functional> #include <utility> #include <boost/callable_traits/has_member_qualifiers.hpp> #include "test.hp...
829a266a35e9753f2bf10fb1fe4f8288fcf5abd59fd65621fbf56677dbc4d1ad
C++
1,445
61
#include <boost/config.hpp> #if defined(BOOST_MSVC) # pragma warning(disable: 4786) // identifier truncated in debug info # pragma warning(disable: 4710) // function not inlined # pragma warning(disable: 4711) // function selected for automatic inline expansion # pragma warning(disable: 4514) // unreferenced inlin...
916d6d83e2a10c115903a5022117ab3036da2dbf9ae4344f852d6ab37efc0fd1
C++
1,447
36
//===================================================== // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as publis...
7b17a54999f3c3235c83a089fe7abce744bc5a860f75b5b55d5d95cc9e35e192
C++
1,448
53
#include "../src/consumer_queue.h" #include "../src/sample.h" #include <atomic> #include <catch2/catch.hpp> #include <thread> TEST_CASE("consumer_queue", "[queue][basic]") { const int size = 10; lsl::factory fac(lsl_channel_format_t::cft_int8, 4, size / 2); lsl::consumer_queue queue(size); for (int i = 0; i <= siz...
3f9276d1ebaeb13831d357722d94a845a1981db173a7cbec13331f7fc28cecd3
C++
1,450
47
#include "main.h" #include <Eigen/MPRealSupport> #include <Eigen/LU> #include <Eigen/Eigenvalues> using namespace mpfr; using namespace std; using namespace Eigen; void test_mpreal_support() { // set precision to 256 bits (double has only 53 bits) mpreal::set_default_prec(256); typedef Matrix<mpreal,Eigen::Dyna...
bf73b21517edcc0af31a011eda365d2b02f05d2cd5cb46c6e009c7e32284d51c
C++
1,452
42
#include <chrono> // std::chrono::seconds #include <iostream> #include <lsl_cpp.h> #include <thread> // std::this_thread::sleep_for int main(int argc, char *argv[]) { try { lsl::stream_info info("SyncTest", "Test", 1, lsl::IRREGULAR_RATE, lsl::cf_int16, "id23443"); // make a new outlet lsl::stream_outlet outle...
a80cc1396553aa27f30cb94455aa31fe5ad943ac94672ecf7c51f8a988a2e68f
C++
1,453
67
#include "LinkedBlockList.h" #include <stdio.h> #include <stdlib.h> /*********************************************************************/ void LinkedBlockList::addFront(ListType item) { if ( m_head_block_size == GCLL_BLOCK_SIZE ) { LLBlock *tmp = (LLBlock *) new LLBlock; if ( !tmp ) {printf("...
87d40953590ca3528ec15385b2e4a97e66d15190308ce27c99f59fb8f0263035
C++
1,454
73
/* Copyright 2014-2015 Glen Joseph Fernandes (glenjofe@gmail.com) Distributed under the Boost Software License, Version 1.0. (http://www.boost.org/LICENSE_1_0.txt) */ #include <boost/align/alignment_of.hpp> #include <boost/align/is_aligned.hpp> #include <boost/core/lightweight_test.hpp> #include <boost/config.hpp> te...
adeae2f5296486a61717cb48f88b98d756a8555d9a7780955b09eeae5e8b2a45
C++
1,455
80
// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // #include <boost/conf...
48505b0d2462cfb10c3883c3ffdb65f242ab1009304f05ad5ef770e7ff2bfa85
C++
1,456
36
//===================================================== // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as publis...
1383a45f9cbe4cbf3a86fc3c77aaf7d64591525bd14fca36009c9763159560dd
C++
1,457
48
#include <boost/callable_traits.hpp> #include "test.hpp" struct foo; #define CALLABLE_TRAIT_UNDER_TEST add_member_const #include "qualifier_metafunction_constraints.hpp" #undef CALLABLE_TRAIT_UNDER_TEST #define CALLABLE_TRAIT_UNDER_TEST remove_member_const #include "qualifier_metafunction_constraints.hpp" #undef CA...
72c8a71dd4f88bdae4a7f0ba270b8e1e8a916822da79cbd8029dee99077305d3
C++
1,458
61
// // cpp03/can_require_member.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <b...
bb8e85a10ed7d398aa74383443c757939e330efde05789e5e5ce895bf80c86b3
C++
1,460
40
//===================================================== // File : main.cpp // Author : L. Plagne <laurent.plagne@edf.fr)> // Copyright (C) EDF R&D, lun sep 30 14:23:30 CEST 2002 //===================================================== // // This program is free software; you can redistribute it and/or // modify it ...
2ef15134bba9b67c366f0303f5b1fc5f04c8999152323fcbf9c9d659469a5b2e
C++
1,461
55
// // cpp14/require_member.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <boost/asi...
eba46c3f20a6995e70fecbb9650d3370457a8d884e0a3916d3a93c8c10743140
C++
1,461
61
// // cpp03/can_prefer_member_prefer.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // ...
aed0f48c7ed2675366605d21e77512f6cce570dd3b8fd1d5c55e14131738d05b
C++
1,462
55
// // cpp14/prefer_member_prefer.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #includ...
e3a0e16d40f73045bf1123f6987e881984697c57f8cd74aaa0bb18be8a21d848
C++
1,462
58
// // main.cpp // ~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <iostream> #include <boost/asio.hpp> #incl...
aa56c5a7c05f30fdffbf5b1ceeeea016949ea722143f22bee232dbc708d52ccb
C++
1,463
50
// Copyright 2021 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include <boost/bind/bind.hpp> #include <boost/core/lightweight_test.hpp> #include <functional> #include <boost/config.hpp> #include <boost/config/pragma_message.hpp> #if defined(BOOST_...
6298a006cb959785026941d2d7ddfe2374ee178859e54305d2e7b303ca00f407
C++
1,464
42
#include <lsl_cpp.h> #include <iostream> #include <chrono> // std::chrono::seconds #include <thread> // std::this_thread::sleep_for int main(int argc, char* argv[]) { try { lsl::stream_info info("SyncTest", "Test", 1, lsl::IRREGULAR_RATE, lsl::cf_int16, "id23443"); // make a new outlet lsl::str...
2ec56c5c5f31452dcc2aa6c23c4f76af32db20ff0474343140917429023c6bb5
C++
1,465
59
// // blocking_tcp_echo_client.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <c...
5273c0d857c71bf6b15f8ba8c4fdc5947d0da4dc6128d904a36c69e2ddc94b0e
C++
1,465
55
// // cpp14/prefer_member_require.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #incl...
55a853c1b301393ada3d2d747f2e75bd22314d2f83ae2987cdc9228406652a09
C++
1,465
61
// // cpp03/can_prefer_member_require.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) /...
8b3a6280586054d0f07d1ec8bcbb25924a8635e9faa7875e3198246aefed07f6
C++
1,465
48
//---------------------------------------------------------------------------// // Copyright (c) 2014 Roshan <thisisroshansmail@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boostorg...
485b8f0ad0ca3d51ee72841a01b526f3180a6bbed3ff52a7487540003dc90887
C++
1,467
45
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com> // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // // See http://boosto...
0ba96b94dcd2a29f611cd861eb37429e7e5286d2f6f3b19e802e79e1f038f402
C++
1,468
61
// // cpp03/can_require_free.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <boost...
a784eb41b7d6c1559e8422206a98c1360543aca8c6f3ba7a26ced45a850f0632
C++
1,469
52
// // cpp14/prefer_static.cpp // ~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <boost/asio/...
495ab9a68ecce2c2ec7cb9c1de503f81ea544ba993983072a3549b666a365b3f
C++
1,470
58
// // blocking_udp_echo_client.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <c...
2d320c769e62abc441e15e685f6bf5c34fefe7675cbe42c830d1540b449741af
C++
1,471
61
// // cpp03/can_prefer_free_prefer.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #in...
acf8f9f9613db19bdf3615c4dbf6a0b78adf291b9d04c369068160b05251b06c
C++
1,472
62
// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Official repository: https://github.com/boostorg/beast // // Test that header ...
615c5127f50ddfe9ac6eed2e37ff83e0fc50c3b8750a16642461b5760508412a
C++
1,473
55
// // cpp14/require_free.cpp // ~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <boost/asio/re...
6759fc5348d401e3f5c5dab3ad906f49d83cc24319e71c0cccb07e7e7cb3dcfb
C++
1,474
55
// // cpp14/prefer_free_prefer.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <b...
5c8e1db07700dacb81f2040e6e2fe51c2785ac7b598b4677accf5f6baa10fa9e
C++
1,475
56
#include "strfuns.hpp" std::vector<std::string> lsl::splitandtrim( const std::string &input, char separator, bool keepempty) { std::vector<std::string> parts; auto it = input.cbegin(); while (true) { // Skip whitespace in the beginning it = lsl::trim_begin(it, input.cend()); // find the next separator or en...
957516df5bc3755dbec91addd7060fd191cba0b3a569d05b42a03e42ef740e87
C++
1,475
61
// // cpp03/can_prefer_free_require.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #...
90ac50ab52e3a46d26038ec984252ff269f0992718f1115724c4c702ccfa59ad
C++
1,476
60
// // as_tuple.cpp // ~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // Disable autolinking for unit tests. #if ...
aa97f6c018c6c3edfee92300c17248f09b13a8ff5c34c74162ae4cdba5a2e33b
C++
1,477
55
// // cpp14/prefer_free_require.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include ...