sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
77b8e0283fc8e0f3b999807c8c268fb76eddf964f0845393fdef865c807b943a
C++
1,205
45
// // cpp11/can_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) // #in...
e7c57afc1e969d8cee5609de1b50c3de418fb8f4cc12e28ff2f02fc82e6593c8
C++
1,205
50
// // 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 ...
802afca81e1b5144a0400ae9024467aaa6e853f926d81108ae471585f25b5e4a
C++
1,207
39
// // cpp14/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...
8a46ce1cf1a06119d7baf211a7ff8d594260992329a98c57939a5afa448c6e72
C++
1,207
29
// Copyright (c) 2020 Andrey Semashev // // 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/atomic/ipc_atomic.hpp> #include <boost/atomic/ipc_atomic_flag.hpp> #include <boost/atomic/capabilities....
b7803061742a765843a0b5263f3b0b0cf66640ae95ea1b7ad8f5280f533ed11c
C++
1,207
33
//===================================================== // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the...
878180d45dd3d75cf274d258599bc3f97f6bdfb85758b25bff49846d449a4512
C++
1,208
51
// // 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 ...
eed53bb6d4d83bac1f52aea129c860db65b7f399efb9751f03b80f9d042ba392
C++
1,208
53
// // blocking_udp_echo_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 <c...
0915f9ade46ef311d47c041702fb00c8c34dbf2a25395bd0ac188b501fb4f428
C++
1,209
41
//---------------------------------------------------------------------------// // 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...
0b1e2b64e41f0b1fb1d40f9c72a9860a3d8bf66806dc6280ac8193d15abd5865
C++
1,210
45
// (C) Copyright Eric Niebler 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/test/unit_test.hpp> #include <boost/accumulators/accumulators.hpp> #include...
9e4eb4e2fe74105d8e4dae24724b6b72f25eddf17a14bd6fd16479f89c76e507
C++
1,213
47
// // cpp03/can_require_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://www.boost.org/LI...
39c991d187cb79c157a9bfc4f409e7a47836963a6bc19507b168d52daf37748f
C++
1,217
60
// // cpp11/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...
7e4da07870fc08ffc4d7806135d0fbe98e6460bc943b1249a3a7a2096428491d
C++
1,218
62
// // streambuf.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. #i...
a998d950cfca81fa17f8874c7bc2444aff76a1b9f6f45dc0302cd85b1b891194
C++
1,223
44
#include "../common/create_streampair.hpp" #include <atomic> #include <catch2/catch.hpp> #include <lsl_cpp.h> #include <thread> // clazy:excludeall=non-pod-global-static namespace { TEST_CASE("simple timesync", "[timesync][basic]") { auto sp = create_streampair(lsl::stream_info("timesync", "Test")); double offset ...
83964b21cda4f648bb2cf5d3713cd110232093b513cbc49d408d0dd57d6910ff
C++
1,226
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...
13786e3c4552c9b6d8ea1d3d39622820ccd64c8aaea287e010d6747a971bf9a5
C++
1,227
62
// // cpp03/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...
d537b18641c717cd1cc8758fe6e58ec22861c9383797f0e7df1b7965cf9049f1
C++
1,227
43
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Rastko Anicic <anicic.rastko@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://...
0d98cead0795a741faafe92d1f3bad09385f033f8bb216ea827c918d506cb78f
C++
1,232
45
// // cpp11/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...
aa5c8a670d62871ac2cce49fe009cc2e7de5c1e08c47b839bcacac62c87775a2
C++
1,232
39
//---------------------------------------------------------------------------// // 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...
1319fef9b5a3a11765798c54676aa556c88189333ccc272228dc7f57c73019cd
C++
1,237
51
// Copyright (c) 2018-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. #include <cstdint> #include <iostream> #include <fstream> #include <string> #include <vector> uint64_t fnv1a_64(uint8_t...
e53fc02d7efefb9b3419ea81f5e1c8e2d37a88c0434c809a978809d440ee6098
C++
1,237
62
// // cpp03/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...
334a1646a55fd124863a698940981badffd8b8ce3e476872373a888ec960023e
C++
1,238
40
//---------------------------------------------------------------------------// // 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...
9d85e05e15b8ad437e9fa7fdd6e882095d5ebc76b635f75058a9017755eaca35
C++
1,240
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 block until operation is finished. class bank_account { int balance_ = ...
12525c57c248f17bc6c4d83305537427f6bac485c448d7745e63c89e3b8f472e
C++
1,242
45
// // cpp11/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...
9273e5f863aa2940266ead778533432e993e5996f1bb7e65de7959d5d63cfb21
C++
1,244
36
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // text_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:/...
43c8f63528dcb5d6a3732a7b91dd51af94b3a752c0389efea78665ab81cdbf78
C++
1,246
38
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // text_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:/...
af0b6ee5e79770e123f3368dfe95869b366a34e7e09c6dbe4b86661e1cdd83ce
C++
1,248
37
//---------------------------------------------------------------------------// // 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...
cac1c333a93b2ebad8dbb0b18d0c57043ddd3598f431988520e1183b467fd45c
C++
1,248
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...
8c26f92d8c3ef0a7d7509bb0bde6451c6891f728bbe66aa4e75feaa13a4187a4
C++
1,251
52
#include <tuple> #include <utility> #include <type_traits> #include <boost/callable_traits/class_of.hpp> #include "test.hpp" struct foo; int main() { { using f = void(foo::*)(); using test = TRAIT(class_of, f); using expect = foo; CT_ASSERT(std::is_same<test, expect>::value); ...
931a9dfdfc4ff3b497b4ec84a48e048a31a44afa3997d541d4b72aa2340574e1
C++
1,251
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...
7cceac87fa004e3edc65222787926a9103d1a318e42b53578c13c204e1eeb009
C++
1,257
48
// io_ex1.cpp ----------------------------------------------------------// // Copyright 2010 Howard Hinnant // Copyright 2010 Vicente J. Botet Escriba // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt /* This code was adapted by Vicente J. Botet Escriba f...
4549b8e9c507b9d4030ec13529c8832ec83441ea6f7f9043ba51444c4c1f1642
C++
1,258
48
/*<- 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> #ifdef BOOST_CLBL_TRTS_DISABLE_ABOMINABLE_FUNCTIONS int main(){ return 0; } #else //[...
7d8554fad8fc7c636605de1b4c7442e164419de77a2815926d0714514d4ef329
C++
1,260
44
//---------------------------------------------------------------------------// // 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...
954e954678b46bdd98ba9347901c44f644e9090867c1c3f069e22a5af8a77c77
C++
1,260
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...
dc3cc3cd8a3c4d37fa1d4f317abff954b4f291087fb1fd7042681c91a77f2b01
C++
1,260
47
// // cpp11/can_prefer_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://www.boost.org/LICE...
3f3fd90ebada34977838d1ef505c2423c78e08880b59eecd30a367baaebdb703
C++
1,262
63
/* Copyright 2019 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/is_aligned.hpp> #include <boost/core/lightweight_test.hpp> template<std::size_t N> struct A { }; template<class T, std::size_t N> voi...
ce227b17c05758399c25c346e29e90f4717dcb800a7f1984f434345cf6681a8a
C++
1,262
55
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */ #include <torch/extension.h> #include <vector> /* CPP Binding for CUDA OP */ // CUDA forward declarations torch::Tensor ngram_repeat_block_cuda_forward( torch::Tensor tokens, torch::Tensor lprobs, int bsz, int step, int be...
ca6448af47603f49d6efafaa3f8205da47d9b68b632c1ebf771b41d2e854a745
C++
1,265
49
// // 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/beas...
eb57ecf3231ebc931d4e36e073711c9f02d2e9133eb83e0f01dc0104911e83d6
C++
1,265
34
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // text_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 // http://...
33e415e4b25e148ea4917d7914be9b2a22a9b34c28af5f93ef00a974665df94d
C++
1,266
43
//---------------------------------------------------------------------------// // 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...
9b555c8263c800ecc849781da3c5c20114c903faa50a69b8165eb4495090942e
C++
1,266
44
//---------------------------------------------------------------------------// // 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...
8086f3b30ff38596b2df419c408fbdb466899f3490a074738955c01fcd592a16
C++
1,268
56
/* Copyright Barrett Adair 2015-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 <cstdint> #include <memory> #include <boost/callable_traits.hpp> #include "test.hpp" struct foo1 { int...
0859ee41e4af84c48685435521acf582b8a9b2f1e247700bc082d21ce7e966e0
C++
1,269
47
// // cpp11/can_require_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://www.boost.org/LI...
00f2ab96a6a543543e3bc569eed0cf38dc677814a75708bb0db27d8f096cc6df
C++
1,273
44
//---------------------------------------------------------------------------// // 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...
8ab8f342eedd694f360e7cb10f14cb62a0115d7345ce2b8a80d2a885b29708b5
C++
1,274
57
// // 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 <iostream> #include <boost/array.hpp> ...
49f08a22e590d140526ddb7b24469327fb28f2e78a74def5032c551e9eff5df2
C++
1,275
53
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "utils.h" #include <iomanip> #include <ios> namespace fasttext { namespace utils { int64_t size(std...
5983a932b1d637ce395b071807fa02046e20f12e94d1af48eb461f4eca464c04
C++
1,277
63
/* Copyright 2019 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/align_up.hpp> #include <boost/core/lightweight_test.hpp> template<std::size_t N> struct A { }; template<class T, std::size_t N> void ...
fbd804266b4f7cb88b0838a3b406e432e7428a700e366672b4242e298669879e
C++
1,277
42
// 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...
eeb802f9355aa8ffd0282fad085f21444209588caaa91037cded75cff9c7e105
C++
1,280
43
//---------------------------------------------------------------------------// // 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...
1f181020928a911c0590766d50ead9644c113023d896d6e9ea7806dda7b1a0cd
C++
1,283
54
// // cpp03/can_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 <boo...
58134326a8cc00c3791a4826a384562c3ccc5ff830751c29e75baaad92a70143
C++
1,284
43
//---------------------------------------------------------------------------// // Copyright (c) 2015 Jakub Szuppe <j.szuppe@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...
8a72b76d09291d81ca49fcc395ff193803bc4d6144c107e35e5a6a175ea08c7a
C++
1,284
33
/* * inserts sequences into the SA and SAi indices */ #include "Genome.h" #include "genomeScanFastaFiles.h" #include "insertSeqSA.h" #include "TimeFunctions.h" void Genome::insertSequences() { if (pGe.gFastaFiles.at(0)!="-") { time_t rawtime; time ( &rawtime ); P.inOut->logMain << timeMonthDayTime(rawti...
e8a30f4f7365c5b20c7c7a38234d1fa5798c376cb56a888891af53db539bb754
C++
1,285
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...
28de21f21341ae80c56e74521f6d74882069d43df8c91a6add0aefa213f79167
C++
1,290
47
//---------------------------------------------------------------------------// // 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...
3913a9b1420401758758990d757e5ac443bf6a748aba5b5f42f5b239db20fe34
C++
1,290
51
#include "SoloReadBarcode.h" #include "streamFuns.h" SoloReadBarcode::SoloReadBarcode(Parameters &P) : P(P), pSolo(P.pSolo) { if (pSolo.type==0) return; for (uint32 ii=0; ii<stats.nStats; ii++) stats.V[ii]=0; if (pSolo.cbWLyes) { cbReadCountExact.resize(pSolo.cbWLsize,0); }; ...
66dd27188325136bc89ab67fa8d11154431b3bfe8184759b5fdabad243654b42
C++
1,291
34
//===================================================== // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> //===================================================== // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the...
5b61c1abf8e05f177aa25a146016be399958e3835e0ca967263465c1b0ba7317
C++
1,292
50
/* Copyright (c) 2002-2004 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Author: Jeff Garland, Bart Garst * $Date$ */ #ifndef BOOST_DATE_TIME_SOURCE #...
91ac61380e16de225e842aaf48c7322dcca665462d34347699753ac79b46b41d
C++
1,292
54
// // cpp03/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...
be4cc8bf1f4b9051f68a8c2ccbf81c83e7605ecbd8ed6375b22746180cd12eab
C++
1,295
80
/* * main_testing.cpp * peer * * Created by Oliver Stegle on 3/24/11. * Copyright 2011 __MyCompanyName__. All rights reserved. * */ #include "main_testing.h" #include "vbfa.h" #include "sparsefa.h" #include "sim.h" using namespace PEER; int main (int argc, char * const argv[]) { int N = 50; int D = 10...
0892ddbdcf8928e9809f7f608bc669fe9369f72bb8367f1ba6d218997abd17ab
C++
1,296
43
/* 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) */ #include <algorithm> #include <functional> #include <string> #include <iostream> ...
c91b2787f72b00a9bad1e9cfdd080c918014bde64ae97768ecb99cdf93a21d34
C++
1,299
54
// // Copyright (c) 2016-2019 Damian Jarek (damian dot jarek93 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 heade...
c2aa83a4769b5b1eec973514e3537372a55978f32032a16e7e647e8b1795a9f4
C++
1,300
50
// // cpp11/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...
e8549cdc1c70f1a1776fbf3a85aa2b2d3c9ab80253ce1a35d98f72a270809112
C++
1,300
51
//---------------------------------------------------------------------------// // 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...
8ba73a219cd73d0994845d7337ffdff5dcc9fd7ed85d3623ce673ac2e5ed4e43
C++
1,301
46
//---------------------------------------------------------------------------// // 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...
593f2212921051d0f2491a1b537f6b2f035037e2d302a4f61e1341a7f4b3cfbf
C++
1,302
55
// // host_name.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. #i...
9c3989ebe864217f83633f349cb3d442aed9b8ce733907948baec75fdaf75e54
C++
1,302
39
#include "unittest.h" #include "sequence.h" #include "fastqreader.h" #include "read.h" #include "overlapanalysis.h" #include "filter.h" #include "adaptertrimmer.h" #include "basecorrector.h" #include "polyx.h" #include "nucleotidetree.h" #include "evaluator.h" #include "simd.h" #include <time.h> UnitTest::UnitTest(){ ...
b47b740b4975c235c7a4991a228ba19606c9ea1d0dd85345ee06f3264839caec
C++
1,304
50
// // cpp11/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) // ...
e0931d14f98a1916abb99ec344fb50ffd68bd5a63a49855586a1b41f1d753a18
C++
1,305
37
/* functions that handle errors and warnings */ #include "ErrorWarning.h" #include "TimeFunctions.h" #include "GlobalVariables.h" void exitWithError(string messageOut, ostream &streamOut1, ostream &streamOut2, int errorInt, Parameters &P) { if (P.runThreadN>1) pthread_mutex_lock(&g_threadChunks.mutexE...
d3479166eacdee071a6e5177767f95c483421bfe498df83016971b81a4c1c67a
C++
1,306
32
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2011 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...
e4484e302d1b64be1446e8c7d50a4a131a71971e19a2ce888db9c9ea220b569c
C++
1,306
39
//===================================================== // File : main.cpp // Author : L. Plagne <laurent.plagne@edf.fr)> // Copyright (C) EDF R&D, lun sep 30 14:23:23 CEST 2002 //===================================================== // // This program is free software; you can redistribute it and/or // modify it ...
1edc4350b2f8fee203b8e9e94ddaaace0da3472428fcb35c3659779436833b48
C++
1,307
62
// Copyright Ruslan Arutyunyan, 2019-2021. // Copyright Antony Polukhin, 2021-2022. // // 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/any/basic_any.hpp> #include <boost/core/lightweight_test.hp...
4f4df7accdfad93a79f09ef658c4392402dc01cd038395369e7be75e7236ed61
C++
1,307
50
// // cpp11/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) /...
cb60130cfa470cbf4c1ca167e1962511f9affde3c9f011a18dc5f7735bdaf7ea
C++
1,307
32
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2011 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...
054b4c30e6bea74e8c8c144d463db3958740153059bca35f7725ca90998fd279
C++
1,308
40
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // binary_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 // http:...
382015d06c0d90a38e3142019a0cdf16f6c5e02c71e92697f2b816fcc547e1e4
C++
1,312
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...
dafac691d73f83658bac95eb931a47a29fc46017af945d8c4681d54b493b3f9b
C++
1,312
50
// // cpp11/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...
6460596ab7698910e270029e51a1fc3ea15a69c67ea3ed1572999c7a851b5139
C++
1,313
43
//---------------------------------------------------------------------------// // 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...
1772ae16dbf58600be817445497ae08f49eda851d29666809fe0c965e2bf4e0e
C++
1,316
31
Matrix3d v = Matrix3d::Random(); cout << "The matrix v is:" << endl; cout << v << endl; Vector3d v0(1, v(1,0), v(2,0)); cout << "The first Householder vector is: v_0 = " << v0.transpose() << endl; Vector3d v1(0, 1, v(2,1)); cout << "The second Householder vector is: v_1 = " << v1.transpose() << endl; Vector3d v2(0, 0...
2d33dee2dbbf19a150d3c18f167194a1a4901e17ddf067de13f1ab9af7353124
C++
1,316
40
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // binary_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 // http:...
5f9f0a69f146334a4713f0b5e0abd52198dadd37a0baa85c716538d88692ef2a
C++
1,316
50
// // cpp11/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...
af607a485a24be848fb77c64dd22f62a3ead06cd0391a1869bd083f815995bf0
C++
1,318
63
// // cpp03/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/...
c7891b0d80a3b1dcc62b919a9df0c3a8d91160548e836d28eb9fbeed13bdaf2b
C++
1,319
50
// // cpp11/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) // #...
5a1725694312af90cc19027a55d66e9054b32453a7dd46adebb4096a994e8994
C++
1,320
54
// // cpp03/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...
132f8511929c8396cc269f17c415652c333d56fae6ab2773f5eb519d550425f1
C++
1,322
69
/*============================================================================= Copyright (c) 2006 Joel de Guzman http://spirit.sourceforge.net/ 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.boo...
e621aa0608178b6b246424f83b7873e437afb32a874c5205b7773b1156252ed7
C++
1,322
32
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2011 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...
f9637c091d132fd6dc4801279173e428aabf42670578c9fef4f261e959c7b8a6
C++
1,322
29
// Copyright 2021 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include <boost/bind/apply.hpp> #include <boost/bind/protect.hpp> #include <boost/bind/bind.hpp> #include <boost/core/lightweight_test.hpp> using namespace boost::placeholders; int f( ...
7af6a22de6b43f2e907a45286e4357a874ba3ba6b2e61900127e7b00a92c5301
C++
1,323
32
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009-2011 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...
caa75d503a20df52ef547ae03858db356deb492f8a7d80730aafd882f6e80b80
C++
1,325
49
//---------------------------------------------------------------------------// // 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...
ee08a5d240bcfdb23f4f9227f47f2174c74d304ef7a71a2a9df81cb237aae713
C++
1,326
44
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // binary_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...
3e13f6a5d29eecaee27e38f0e50ed62c387f72397da82a35e8e34a9f1b8a9ee7
C++
1,327
45
//---------------------------------------------------------------------------// // Copyright (c) 2015 Jakub Szuppe <j.szuppe@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...
feafe04536879be834fa4d86fe1baba0622263b5fb45d1fbc3c03680eeb1935f
C++
1,327
63
// // cpp03/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 <boost/asi...
62e2468f048d04f7b80abcdaf57ce88b225092a908002ac752aaa97e9a035635
C++
1,329
44
/*<- 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) ->*/ //[ add_varargs #include <type_traits> #include <boost/callable_traits/add_varargs.hpp> namespace ct = boost::callable_traits; struct ...
cd232640757e849b419db19d127548375b48dfdb8330b31edda63e4e5b3cbdb1
C++
1,330
41
#include "blocksOverlap.h" uint blocksOverlap(Transcript &t1, Transcript &t2) {//calculate overlap between blocks of two transcripts uint i1=0, i2=0, nOverlap=0; while (i1<t1.nExons && i2<t2.nExons) {//scan through all exons uint rs1=t1.exons[i1][EX_R]; uint rs2=t2.exons[i2][EX_R]; uin...
420d2eefb37dcc3c7113773e1857951aa9aa5b402dcd4d1c6f85745adb4eaff4
C++
1,332
59
// // deferred_4.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...
802f0edfea88e643cce1cbd47d7115642f530615a9cca41bb168b3748f2eae24
C++
1,334
43
//---------------------------------------------------------------------------// // 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...
8d562f7f0dc3b44e3692cb5a39998b10059b3f14d8b1ce885a3efee726522373
C++
1,334
39
//---------------------------------------------------------------------------// // 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...
e0f8f2444d36f3e07405d1f64267030a9ab255c52c9dc5df4db9b10b124b53a4
C++
1,338
40
#include "funCompareUintAndSuffixes.h" char* g_funCompareUintAndSuffixes_G; uint64_t g_funCompareUintAndSuffixes_L; int funCompareUintAndSuffixes ( const void *a, const void *b){ uint64_t* va= ((uint64_t*) a); uint64_t* vb= ((uint64_t*) b); if (va[0]>vb[0]) { return 1; } else if (va[0...
9c2b88618722a45720ffb98c22b7dd79b8dd13d102d55adaa3f38b4bde6c5f72
C++
1,341
50
// // cpp11/can_prefer_not_preferable_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....
472cc0c059a9c5eef78196a91479557c78c4814e0dff7bf45a2f8e5b579d986b
C++
1,342
56
#include <stdio.h> #include <stdlib.h> #include <mex.h> #include <math.h> #include <matrix.h> #include <string.h> // Avalues = mexArrangeLinear( A , dims ) // where A is the NxM x K matrix containing multi-resolution info // dims is K x 2 matrix containing dimensions of each scale // Avalues...
99302169ba455facb0d3e1ffdec82981b2dd382fd3bdee9e8e138c90a5d27f19
C++
1,343
54
// // cpp11/can_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 <boo...
be3940b2c1121746ea358b814f911b9ebddf5ecf02244852903e534d80267ceb
C++
1,344
50
// // cpp11/can_prefer_not_preferable_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...