sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
d63d816ba725d8d5fe17d8463e39062447dd01462f8772afaacce543d1ea2436
C++
953
29
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
0a95d01fddf688efc2e3aef532cebf47c649346b2f077b9766b1d21dd480c707
C++
954
34
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_iserializer.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...
30db6a7f9602c6e57fb406049801cf7c07dd4ee5d43f3558130daec72f399e3c
C++
954
32
/*<- Copyright (c) 2016 Barrett Adair 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/apply_member_pointer.hpp> #include "test.hpp" struct foo; template<typename T, typename U> struct is_su...
6a324276f57440dd95cc61278b001abb4bb27b33ada8853f8058767d0e04cc78
C++
956
31
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_pointer_oserializer.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 a...
73598f3b775401f29712b08ffa34cd066a8560fb614e6348c2489ebd6b1fbbd0
C++
956
31
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_pointer_iserializer.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 a...
5c685258dc5d7c2beee1eb9561566246d46927579e108323d4d2c79903f4d8eb
C++
958
34
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_oserializer.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...
c632ea4223e4e06e5237037afc6e7949499ed4cc8ab9d123353a050086a436d3
C++
959
43
// // cpp11/can_require_concept_not_applicable_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://...
0663d658c0b0086df6d2e66760c346cbb82c55b41fc64c028d6a635840c8a4d1
C++
960
32
// // cpp03/can_require_not_applicable_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.bo...
166271a5f6590424a8acb852595e4603ca0fb2af35dae9b9caf2e777756476fc
C++
960
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_oarchive.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 // ...
61950305bf5a70f4283fed3c082fbf3f9bbeba77ba26e07ac176b9a8c52ac2c2
C++
960
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_iarchive.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 // ...
258e2153fe1fbbaef0c0f765d7c873266b4eec62a6f831a54d51d27e92181f0e
C++
963
29
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_text_oprimitive.cpp: // (C) Copyright 2004 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 //...
5a55ced60377e4ba41dfd39b14f2d93d1df47204feb921dca18c5c6d54b8ec18
C++
963
29
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_text_iprimitive.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 //...
f804b78dcffa9b8a7b01bfb8798d5b77743a9e127ff743487c73efb43d089b3a
C++
964
33
/* * 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) * * Copyright (c) 2020 Andrey Semashev */ #define BOOST_USE_WINAPI_VERSION 0x0602 // Include Boost.Predef first so that windows.h is guaranteed to be not in...
020c5692131091a70a2ef464bcfc972f1cabec15cbd53306951536e173b51ec9
C++
966
39
#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...
33e9fbc5fea90a0ea60adcd04c35acdb4d45ef9f54f255e111ff012fdfb127f1
C++
967
24
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
aae8c398bec2bcc1a08db7db17fce1214d75b42c55c9fb2f419cfa9a7e501bd0
C++
967
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_xml_iarchive.cpp: // (C) Copyright 2018 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 ...
fed99ec1805e729a8cc6640882e6c5548e6ba51d9cd84b925c5b95d98a380279
C++
967
50
#include "tag.h" #include "token.h" #include "parserstate.h" #include <cassert> namespace YAML { Tag::Tag(const Token& token): type(static_cast<TYPE>(token.data)) { switch(type) { case VERBATIM: value = token.value; break; case PRIMARY_HANDLE: value = token.value; break; case SECONDARY_HAN...
69b2da542a3cc612c4399ea3debfb09a8877c39346d4b57c7b15b233d4aea5e1
C++
969
32
// // cpp14/can_prefer_not_applicable_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.boos...
69b2e1d45791e5456c4317d4e45d8402bce42c06a3b08ba265f89c6a474e75df
C++
970
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_xml_wiarchive.cpp: // (C) Copyright 2018 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...
7abc033080830487e7cb2c07977cf5d93088a5e8b3b88236e7f797dbc82f5787
C++
970
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_text_iarchive.cpp: // (C) Copyright 2018 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...
b280e2e514c5300be73e70112a3d0f14b9a716aeafe3f2c3df623e976df7270a
C++
970
29
#include <catch2/catch.hpp> #include <lsl_cpp.h> #include <thread> // clazy:excludeall=non-pod-global-static namespace { TEST_CASE("streaminfo", "[streaminfo][basic]") { CHECK_THROWS(lsl::stream_info("", "emptyname")); REQUIRE(std::string("The name of a stream must be non-empty.") == lsl_last_error()); } TEST_CAS...
c91255f446b040052008996ba55e8507baa3dd43535b575071634b7d337ef0e3
C++
970
31
#include <thread> // std::this_thread::sleep_for #include <chrono> // std::chrono::seconds #include <lsl_cpp.h> /** * This is an example of how a simple data stream can be offered on the network. * Here, the stream is named SimpleStream, has content-type EEG, and 8 channels. * The transmitted sample...
4ebbe78237c832bc0af73d29adc58518528da388e9d25d6b2077ed6bb022e087
C++
973
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_text_wiarchive.cpp: // (C) Copyright 2018 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 a...
f64574dbd66c955ed3803f3fc234e32dd64f09a1499aecc5fb0760cbf319691f
C++
975
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_xml_oarchive.cpp: // (C) Copyright 2018 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 ...
d79b36d6fe5be66c5db9afdf44f6e2f1112659eb15cc398a6b37f559f0ffab33
C++
976
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_binary_iarchive.cpp: // (C) Copyright 2018 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 ...
e6438ca5202d99df2523fe070716d117b94570137c445237d4f907e745fc59c0
C++
977
50
// // cpp11/can_query_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...
1c3b394be71c1a3c02e67d1789a9c850f0321bb1ab3adab8232eb58ac5138a39
C++
978
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_xml_woarchive.cpp: // (C) Copyright 2018 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...
f22ed2f6356258c26b898f38177a29443bdcd25b37e19bbc0cd47dba5b42c324
C++
978
32
// // cpp14/can_require_not_applicable_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.bo...
fee713b66cca5f3feef1a9cdc9142e885d35d14c4b8c2da2cc9eb9eb9622d5f7
C++
978
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_text_oarchive.cpp: // (C) Copyright 2018 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...
a2c9914a2d8364a7c60e739dc75bf158749c0fd0a267fd47660b9c5fa478e584
C++
979
43
// // 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 <string> #include <boo...
2ce488b225cf3324a382370f0e5ba067af2c01a1a869372926f8196211f441b1
C++
980
32
#include <chrono> // std::chrono::seconds #include <lsl_cpp.h> #include <thread> // std::this_thread::sleep_for /** * This is an example of how a simple data stream can be offered on the network. * Here, the stream is named SimpleStream, has content-type EEG, and 8 channels. * The transmitted samples contain random...
afd8bd2f43c7f0b432b668e5c762b00a3dfc63d613547674a9abd537786a53ba
C++
981
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_text_woarchive.cpp: // (C) Copyright 2018 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 a...
538d835844f80f0b4a417dcaab373fb08012a1e24123084ee1772483d73a28b8
C++
984
37
// // 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 ...
89bf6b18fcae6dea1a65608dcbb5b3b3fcf037d42c7cdd544b65a4894258698f
C++
984
51
// // cpp11/query_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/asio/qu...
c6856dac3e2e4f9a3ced43c76cbd4e4576a00e158db0260e5f0019dc5bf7a192
C++
984
30
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // polymorphic_binary_oarchive.cpp: // (C) Copyright 2018 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 ...
6c28175c49dc5acc76f11b43bbca68cf2833fed26630cf9ddec9ab1837df7e81
C++
988
43
// // cpp14/require_concept_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) // #in...
8c95aceb62a6f1a78b1d659dedaf2e04ade6b8094b3912d143914529554a22a5
C++
992
35
//---------------------------------------------------------------------------// // 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...
41758de7c3a1af979b0a7a9464fa9f33ba2fcdccbada2f8103fee57fee436436
C++
993
33
// // cpp03/can_prefer_not_applicable_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.boos...
0f3509328e4462904275ed636fb59d52b7342f24f463b3dfa0db592023fdc089
C++
994
46
// // cpp11/can_require_concept_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)...
fb223f6f7e57d8b76f3b09ea839c963a24c2654c4e74c955382ea9b7d73ddcdd
C++
995
43
// // timer.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> #in...
8b1c1c7ab84578de28d29c30c9160edbd0df1e576822f74d3da867a97951bce6
C++
996
51
// // cpp11/query_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/query....
58992019cac48fd19553617f8559c930cc5138c241be33f12529caadd4fc5d04
C++
997
51
// // daytime_server.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 <ctime> #include <iost...
9d576ca1e979100afaa3ba74011726a0ff1ff54e943f4e9df3f34b9cab4302b9
C++
997
39
// Unit test for boost::basic_any<>. // // See http://www.boost.org for most recent version, including documentation. // // Copyright Antony Polukhin, 2013-2022. // Copyright Ruslan Arutyunyan, 2019-2021. // // Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.tx...
9b60f681a4e70403fe63e183f561912d01f26f7027f0ac79115a45fc33eb92bc
C++
998
44
// // deferred_2.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.hpp> #include <ios...
04cc9b89b9397e7f84e37907d7a22bf1fde4fae56b9e1b8a50ef02a0af8843be
C++
1,000
43
// // cpp14/require_concept_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) // #includ...
222e151ed7acd18700fab516a1c5b3f89b19d57002645e98dcd1dc0f075c663d
C++
1,006
46
// // cpp11/can_require_concept_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) // ...
83170b3b47818cee2d6c53ce4cd2c2452d0cd4058114736345bf45b1be70b3d0
C++
1,008
28
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
d37938e98f56034c6d17275b8cf6b385043a6903e98ef2de890159f2d74e2ddc
C++
1,008
32
// // cpp11/can_require_not_applicable_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.bo...
3ac732e79de9e18b93dc233872dc546a2830e149782b56a529e4d6bb39b59827
C++
1,010
44
// // 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 <string> #include <boo...
67daff17deeb727f1c71602d5276ef3ffe169a524703fcfbc0198e1cf799f507
C++
1,011
17
#include <include/matlab_bgl.h> #include <algorithm> #include <iostream> int main(int argc, char **argv) { mbglIndex rp[] = {0, 3, 7, 11, 15, 19, 22, 26, 31, 36, 41, 46, 50, 54, 59, 64, 69, 74, 78, 82, 87, 92, 97, 102, 106, 109, 113, 117, 121, 125, 128}; mbglIndex ci[] = {0, 1, 6, 0, 1, 2, 7, 1, 2, 3, 8, 2, 3,...
da5b078486914cfe084b0ef138d16b7cf74db8f6300dc8e42a42a117b05ea2f4
C++
1,013
31
#include <RcppEigen.h> #include <Rcpp.h> using namespace Rcpp; typedef Eigen::Triplet<double> T; // Adapted from swne (https://github.com/yanwu2014/swne) //[[Rcpp::export]] Eigen::SparseMatrix<double> ComputeSNN(Eigen::MatrixXd nn_ranked, double prune) { std::vector<T> tripletList; int k = nn_ranked.cols(); tri...
14d75d256e0ce9e350bdeff6d9d7162cd44626f7e3cbd116a060c270a149b453
C++
1,015
44
#include "InOutStreams.h" #include "GlobalVariables.h" InOutStreams::InOutStreams() { logStdOut=NULL; outSAM=NULL; outBAMfileUnsorted=NULL; outQuantBAMfile=NULL; }; InOutStreams::~InOutStreams() { if (logStdOut!=NULL) logStdOut->flush(); if (outSAM!=NULL) outSAM->flush(); logStdOutFile.f...
e8e622066fc9e48cf5c6367e02b6ac2530dffd9b4afbd20a0585dc1497653e40
C++
1,015
32
#include "stream_info_impl.h" #include "udp_server.h" #include <catch2/catch.hpp> #include <sstream> #include <thread> // clazy:excludeall=non-pod-global-static using namespace asio::ip; TEST_CASE("timesync", "[basic][latency]") { auto info = std::make_shared<lsl::stream_info_impl>("Dummy", "dummy", 1, 1., cft_in...
2bcc4f8d7225ef4874d05a2a4234d91190ba3a04fc09fc390d0edd0e3686e97a
C++
1,018
50
// // cpp03/can_require_concept_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)...
598b1d1cf81639bbf50cb2c08711b0674a02f982bd00fdf49811712a4ed1aeab
C++
1,026
25
//---------------------------------------------------------------------------// // Copyright (c) 2014 Fabian Köhler <fabian2804@googlemail.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://boo...
7bd1ae73ce8d5a4d401dc41f853f7369b67aff7231950450d594cfeef81b9f3a
C++
1,026
50
// // server.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 <ctime> #include <iostream> #include <...
704a4be7fba90983e91b6b8a0bcfb4b320e0c5fea6995eff32516ed39520f1f4
C++
1,028
54
// // timer.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> #in...
40723de24c2482927f490bf0578d56ee0d850bb6203cdfe062ba8068d205003d
C++
1,034
57
// // cpp03/query_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/qu...
0950933060bf57fb76cfaaf80c56041a0888b22a4c5c12d597e912e8d13cd5b1
C++
1,037
57
// // cpp03/query_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/asio/qu...
88f08248cc876243041bed1c8bd13e56d0c5de26947770bfba2e6b83ea8eabda
C++
1,040
60
#include <boost/asio/execution.hpp> #include <boost/asio/static_thread_pool.hpp> #include <iostream> using boost::asio::static_thread_pool; namespace execution = boost::asio::execution; // Traditional active object pattern. // Member functions do not block. class bank_account { int balance_ = 0; mutable static_t...
3a4755db416f552898adc18ec55884ff638d31ac57fdf8c2da9ad69b87d9eeb3
C++
1,041
33
/*<- Copyright (c) 2016 Barrett Adair 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> #ifndef BOOST_CLBL_TRTS_ENABLE_TRANSACTION_SAFE int main(){} #else //[ is_transactio...
6e4f853237c6d2ae98d21be6a7bf8da769be833750ee2cf8f1f551667cc2d0f3
C++
1,041
40
// // bind_lookup_problem_test.cpp // // Copyright (C) Markus Schoepflin 2005. // // Use, modification, and distribution are 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) // #include <boost/bind/bind.hpp> template<clas...
f653d0658fa1cd090629389b57cc9c78107a73b298d4cc6fd713a9d6605290c9
C++
1,043
45
// // experimental/coro/partial.cpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2021-2022 Klemens D. Morgenstern // (klemens dot morgenstern at gmx dot net) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.b...
003dcb99c1839dd7f7c466242140df885fd009bae71ac87fdf4fbb35ca6a51cc
C++
1,045
46
// protect_test2.cpp // // Copyright 2020 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include <boost/bind/protect.hpp> #include <boost/core/lightweight_test_trait.hpp> #include <boost/core/is_same.hpp> template<class T, class F> void test( F ) { ...
1a9d69dc2519e7d87c8ea1c667274bbb60598cda0025b6e9f475f65c9f551b85
C++
1,045
33
// // cpp11/can_prefer_not_applicable_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.boos...
b2687b9401776f3e083d3887dfce2e08422ece789d2bcd31fe4d9da00cacda83
C++
1,046
50
// // cpp11/can_require_concept_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)...
5fe1113679da0ba7759b713194013bbc3a7587b8d5589c663fcbe8e07258432f
C++
1,047
57
// // cpp03/query_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/query....
861a9d660d95cdfd8c5be321a530427f63c8d9e36479f53283216f88daae4867
C++
1,047
35
#include "../src/inireader.h" #include <catch2/catch.hpp> #include <sstream> void try_load(INI &pt, const char *contents) { std::istringstream stream{std::string(contents)}; pt.load(stream); } TEST_CASE("ini files are parsed correctly", "[ini][basic]") { INI pt; try_load(pt, "x=5\n" "y=2\n" "[foo]\n" ...
4b3ad2d8894aed8521bf94d8ff742201d84751c96e235f71d980c39647bf0a6e
C++
1,054
60
#include "regex.h" namespace YAML { // constructors RegEx::RegEx(): m_op(REGEX_EMPTY) { } RegEx::RegEx(REGEX_OP op): m_op(op) { } RegEx::RegEx(char ch): m_op(REGEX_MATCH), m_a(ch) { } RegEx::RegEx(char a, char z): m_op(REGEX_RANGE), m_a(a), m_z(z) { } RegEx::RegEx(const std::string& str, REGEX_OP...
ecfef694cc90ac9661f9e6a5a53cf66e321d4b9daccdbe8095f64b827222dcc2
C++
1,058
42
// // cpp14/require_concept_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) // #in...
803df404131a1e35d4d2380ff0a37a11aca4157d6393e8c9c894176bbd4b0fdc
C++
1,067
32
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
aa97124cf38023db4af241ff2826407ef0a8d845e8f2630db74818ff4414c3c2
C++
1,068
36
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_text_woprimitive.cpp: // (C) Copyright 2004 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 /...
cc1e98f6675504c1d89df9dc177bef85424cf484cf09aee61ad22363b18f6335
C++
1,068
36
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_text_wiprimitive.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 /...
f9225e4881175616baacc8c7a9cd29f1823ef59d659e363dfea478b8c4bb9964
C++
1,068
32
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
5f758e3e5e6d5bbb954e5215be614e339b73ca83c9494006f3e325fc95e49666
C++
1,073
39
/*<- Copyright (c) 2016 Barrett Adair 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 "test.hpp" #include <boost/callable_traits/remove_transaction_safe.hpp> template<typename Safe, typename NotSafe> void test() {...
b8f4d61cabc4aa093a5c6a6a451cc13c13115b36531ff3b5fdb5740b27b3370a
C++
1,075
44
/* example for using class array<> * (C) Copyright Nicolai M. Josuttis 2001. * 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) */ #ifndef _SCL_SECURE_NO_WARNINGS // Suppress warnings from the std lib: # define ...
50620b9b4d6c4710c71f05ba4cc7a66915d35feae4012bfdf9ffd6051fac0e3f
C++
1,077
55
#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...
6640622d7019eaf931790197123acaa1145492264ebf6ed5d38d0c73df1db5c8
C++
1,081
37
//---------------------------------------------------------------------------// // 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...
8881c2cec2626290704167efd97d524d6f9080b28752462591aa9cac073673f8
C++
1,083
34
// // cpp14/can_prefer_not_preferable_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/LICE...
edb0549cffa248837a61fc68611b6a2755b6edd60c4edad9e1276ebbc1e89af2
C++
1,084
39
#include "ReadAlign.h" #include "BAMfunctions.h" void ReadAlign::chimericDetectionPEmerged(ReadAlign &seRA) { chimRecord=false; if (P.pCh.segmentMin==0) {//no chimeric detection requested return; }; if (P.pCh.multimapNmax==0) { // runs old chimeric detection routines. seRA....
65a563fcb08ebfdfd948de7a840ae66cc7a9ebefbcc634446990f96e0d8d5839
C++
1,085
45
/*<- Copyright (c) 2016 Barrett Adair 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> #ifndef BOOST_CLBL_TRTS_ENABLE_NOEXCEPT_TYPES int main(){} #else #include <boost/ca...
2f78d3aa315ebf258318c1d3e100da5ced9437e941da888a7aa2943ef29722c2
C++
1,087
51
/* Copyright 2014 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_alloc.hpp> #include <boost/align/aligned_delete.hpp> #include <boost/align/alignment_of.hpp> #include <boost/core/lightweight_t...
4f7a92a7771a19a37f4c67a27f760a4abf756e1db0c28fcd76d13a53a4651a65
C++
1,087
34
#include "BenchUtil.h" #include "basicbenchmark.h" int main(int argc, char *argv[]) { DISABLE_SSE_EXCEPTIONS(); // this is the list of matrix type and size we want to bench: // ((suffix) (matrix size) (number of iterations)) #define MODES ((3d)(3)(4000000)) ((4d)(4)(1000000)) ((Xd)(4)(1000000)) ((Xd)(20)(100...
c96dac9d20cd090e66e8ea9c8c13989e6ce629eaf827c00194f81181ae3420b7
C++
1,087
33
/* * Created by Fahimeh Mirhaj on 6/10/19. */ using namespace std; #include "SpliceGraph.h" #include "GTF.h" SpliceGraph::SpliceGraph (SuperTranscriptome &superTrome, Parameters &P, ReadAlign *RA) : superTrome(superTrome), P(P), RA(RA) { //find candidate superTr superTrSeedCount = new typeSuperTrSeedCount[2*s...
456e5ab9c45c3d94c862a0448cf5667757b0cf7059cf58e630e5af0c691b1303
C++
1,090
37
#include "util/inireader.hpp" #include <catch2/catch.hpp> #include <sstream> // clazy:excludeall=non-pod-global-static void try_load(INI &pt, const char *contents) { std::istringstream stream{std::string(contents)}; pt.load(stream); } TEST_CASE("ini files are parsed correctly", "[ini][basic]") { INI pt; try_load...
2297637cdece17d8a1f959892205aa7b4fb9bd50fe0a8f607fe3c7eecba6d39b
C++
1,091
41
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
8a2e7f170be4ad27f5c35b322f5e4a588bef633d6ee57c21f6fc1cab65bff43e
C++
1,093
39
#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...
ea59b6aa5379fe1741bdbbee97fbdad8b32bfea1b6599df1fcb8e8f7f1bb2cee
C++
1,093
34
// // cpp14/can_prefer_not_preferable_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.boos...
dc866f68447e57f0035347b35a11662e72fbc64de552fe5d5c09871ab22646d3
C++
1,094
63
#include "ostream.h" #include <cstring> namespace YAML { ostream::ostream(): m_buffer(0), m_pos(0), m_size(0), m_row(0), m_col(0) { reserve(1024); } ostream::~ostream() { delete [] m_buffer; } void ostream::reserve(unsigned size) { if(size <= m_size) return; char *newBuffer = new char[size]; ...
59bd8fbb785851a6f319c16a02587fa340f07b5b888dc6b30c026901ecdd5daf
C++
1,097
47
#include <iostream> #include <Eigen/Core> #include <Eigen/Geometry> #include <bench/BenchTimer.h> using namespace Eigen; template<typename Quat> EIGEN_DONT_INLINE void quatmul_default(const Quat& a, const Quat& b, Quat& c) { c = a * b; } template<typename Quat> EIGEN_DONT_INLINE void quatmul_novec(const Quat& a, ...
271d4b9ccede95336e45f09d4050ff9f4da889ab3e8d82440026c276cb33567b
C++
1,098
45
/*<- Copyright (c) 2016 Barrett Adair 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> #ifndef BOOST_CLBL_TRTS_ENABLE_TRANSACTION_SAFE int main(){} #else #include <boost/...
51226356f3c81c081186d509623f8cb60704d979e65497b6d431e92f0563f921
C++
1,101
40
#include "cast.h" #include <iomanip> #include <locale> #include <sstream> namespace lsl { template <> std::string to_string(double str) { std::ostringstream os; os.imbue(std::locale::classic()); os << std::setprecision(16) << std::showpoint << str; return os.str(); } template <> std::string to_string(float str) ...
31ba40849ffcb763a430765d54bb1407e60a4672c1c6cd68a8ac11c7065785f6
C++
1,107
54
// // cpp11/require_concept_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) // #in...
6ddd830a1fcea1d31c55528e9fb2ef7b0f4f7569ed35afe11ab3f19a9b796a07
C++
1,107
35
#include <iostream> #include "BenchUtil.h" #include "basicbenchmark.h" int main(int argc, char *argv[]) { DISABLE_SSE_EXCEPTIONS(); // this is the list of matrix type and size we want to bench: // ((suffix) (matrix size) (number of iterations)) #define MODES ((3d)(3)(4000000)) ((4d)(4)(1000000)) ((Xd)(4)(100...
44dce81f3b9fe425f07b9bf91cf81df76b4917fee9a16c48f54208d541a0421e
C++
1,109
50
// // cpp03/can_require_concept_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://...
c2d91f6ff2d631f4e853498fc836d83d3adc8ac27adcb5a85f41a96c89c384ce
C++
1,110
41
/*<- Copyright (c) 2016 Barrett Adair 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/is_transaction_safe.hpp> #include "test.hpp" template<typename Safe, typename NotSafe> void test() { ...
cf46d5c3a848ec771820b1db5ec3f3f528b8465e5b91c3af7e609da25bce6234
C++
1,110
38
// // cpp14/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...
10334debe04fd030acb560410a1b88ba61d5d0a4f113e32a0172e919b7849b6a
C++
1,111
57
// // cpp03/require_concept_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) // #in...
391c0199319fa969ad1d9d5d6901814bb60102efe95c7f6d74ff2cacb8ab100c
C++
1,114
37
// 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...
d527ec597a4fe244724ace2b27999fc5201e2dc2c8d6295933f92b2e950c4411
C++
1,114
44
// Copyright 2022 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // http://www.boost.org/LICENSE_1_0.txt #include <boost/assert/source_location.hpp> #include <boost/core/lightweight_test.hpp> #include <boost/config.hpp> boost::source_location s_loc = BOOST_CURRENT_LOCATION; BOOST_STATIC_CO...