sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
f7ffcbd46af156752dd7f6976a06913a4a9411b8fe85f609aff8dfc4a2c63d31
C++
3,055
107
// 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...
cd0432aa59a4b5ba4dadec55576ded55f4497dc61e36f37fc376d0f4d530770a
C++
3,056
126
// // 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 <boost/asio/detached.hpp> #i...
6d47bfda91ee221c8e1ca47c71739674dd30b5bf76570c0d8338d19135052698
C++
3,060
80
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
3ab70806a7a60354daa82dc59785515523e18637e1aad97b17055a5bbfb9e831
C++
3,062
82
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU ...
2b085354d4a6c39902437bf79416267d0cbf6502d311f6287bbf8cceeaf0cc03
C++
3,068
88
//---------------------------------------------------------------------------// // 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...
68e26655121b425295e80d3db9d11542e775c8b899656516298fdb341a6aaa82
C++
3,069
107
// (C) Copyright 2005 Daniel Egloff, Eric Niebler // 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/test/tools/floating_point...
c6ae9c61dae82dac5f19946e174a1d1a4b22716ca0c0a15594b156e70f719f53
C++
3,072
131
// // reference_counted.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>...
1e5365d451111e4c205143b7d9f8b82bcfc7b1ac5cdf029544a1d08535384806
C++
3,082
118
// 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...
78c7b2f5448d8437630c7fe23224eb3e94084a17c578331e73a687eca9109962
C++
3,086
100
// (C) Copyright 2006 Eric Niebler, Olivier Gygi. // 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) // Test case for skewness.hpp #include <boost/random.hpp> #include <boost/te...
d827e36b5b5a67168047e67a6ba027fbaf621231863c88e9cd47f1766a2b544f
C++
3,092
135
// // 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/vinniefalco/CppCon2018 // #include "we...
287b18b27ab0a593c51c1afbbc117347f136fff0ca693448c72a4490fa81e6da
C++
3,108
97
#include "twoPassRunPass1.h" #include "mapThreadsSpawn.h" #include "ReadAlignChunk.h" #include "Stats.h" #include "GlobalVariables.h" #include "outputSJ.h" #include "sjdbInsertJunctions.h" void twoPassRunPass1(Parameters &P, Genome &genomeMain, Transcriptome *transcriptomeMain, SjdbClass &sjdbLoci) //2-pass: 1st pass ...
c4e187421cb0f42764904edff2e544742b04ef8e3a89f339505a768cf9e96eab
C++
3,109
140
// // verify_msg_exp_test.cpp - tests BOOST_VERIFY_MSG expansion // // Copyright (c) 2014 Peter Dimov // // 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/config.hpp> #include <boost/current_fun...
9c223c4b7185cce2ec7f2b45cd2d4797c9e305a468b9f16795ea324d385e25fb
C++
3,110
144
// // 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 ...
f5107d282ef9b2699a4d8d9ab8395556b86b45048609563dfd506296d0580bbd
C++
3,112
102
// (C) Copyright 2006 Eric Niebler, Olivier Gygi. // 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) // Test case for kurtosis.hpp #include <boost/random.hpp> #include <boost/te...
4d828f5da5323fb352b32e15e574fb45f45ca2016c12357fc63b60f6d821be14
C++
3,114
102
// 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...
8f2fc0a7aad7c6b7bf18ed68934adccc14afa721a6ecd76c499869feaade2603
C++
3,115
78
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // m...
38ca111299c9a82aec930c6c2b675fbf4b77d4d49ef8f459ba64a9a3caed4fb7
C++
3,116
130
// // connect_pair.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 <array> #include <iostream...
9a62021709951fbb7fd8eecf32b7c0e1b6572158e038a5a5920fd0de99c83db1
C++
3,122
95
//---------------------------------------------------------------------------// // Copyright (c) 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://boostorg.gi...
d24d6ffa85aa31716dc4e19932e9d33cda880e954ec6f2d5855cc33f32a62073
C++
3,128
78
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // m...
9ad150d0ff7bbc932a53559f0538f19a8281cc63603a1bd1fa64cb9f33dd9906
C++
3,137
73
//---------------------------------------------------------------------------// // 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...
2e7e450961d36aefb1920002a3185d33802c34d400214c83fd320de5f5ecb4c7
C++
3,143
120
#include "fastareader.h" #include "util.h" #include <sstream> FastaReader::FastaReader(string faFile, bool forceUpperCase) { // Set locale and disable stdio synchronization to improve iostream performance // http://www.drdobbs.com/the-standard-librarian-iostreams-and-std/184401305 // http://stackoverflow....
438ceb1832ad82462b7f58c898d39d1e1a236fdb06c2e3b8d937d1e73ddeb34b
C++
3,149
100
//---------------------------------------------------------------------------// // 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...
ecac3b3b7e1edf11386a78168fd67a9749a6d3091244363288ca90875a46ef79
C++
3,149
77
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify...
b9291ee5651534e5534bfc040ac6756b795c657b0ace4fbd945392910900b137
C++
3,153
147
// // 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...
52f2fc497e72410f365228f1df59d74aac83f218d24737ccf3e3de2e434a0536
C++
3,156
117
/* * * Copyright (c) 2004 * John Maddock * * 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) * */ /* * LOCATION: see http://www.boost.org for most recent version. ...
7959f8799a5c6fbe26640490b9b9fd563ab7b1b969ae0d223e82f78b6ef06dbd
C++
3,158
87
// io_ex1.cpp ----------------------------------------------------------// // Copyright 2010 Howard Hinnant // Copyright 2010 Vicente J. Botet Escriba // Copyright (c) Microsoft Corporation 2014 // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt /* This c...
2ec320682bffeb18ebb7d98d661c2912e07d0d558e7ab41d1865c5383dfda3a6
C++
3,160
77
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2010 Jitse Niesen <jitse@maths.leeds.ac.uk> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU L...
3474f72c83badfd1f3f50cc6318a7b0bdedea9506bef54be2027c9504a172db7
C++
3,163
81
/* * * Copyright (c) 1998-2002 * John Maddock * * 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) * */ /* * LOCATION: see http://www.boost.org for most recent versio...
93ff5552f5ef4f507e7fdc2b82f5cb992a73c2157efc7694324a6bb667b63420
C++
3,164
77
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify...
3cbbcd5c8663afd9d0678e4e1a9d07a95e8b3509c213f444b50190260418a06d
C++
3,166
120
//---------------------------------------------------------------------------// // 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...
0521c4bd73bd0249bcc6e3c767b684f2f679d541a166fab301bb3ffbad5205e3
C++
3,167
139
#include "scanner.h" #include "token.h" #include "exceptions.h" #include "exp.h" namespace YAML { Scanner::SimpleKey::SimpleKey(const Mark& mark_, int flowLevel_) : mark(mark_), flowLevel(flowLevel_), pIndent(0), pMapStart(0), pKey(0) { } void Scanner::SimpleKey::Validate() { // Note: pIndent will *not* be g...
fd8a1cad49e64c05949746d66d93133015d262c827a61f7fb0512c436f9e39f5
C++
3,181
111
// // 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 ...
6af03434c373d4233f36fef260eeb0b3555190d56dcae6843a50fe20f938cb34
C++
3,193
90
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_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 // http://...
dfb8d46323a4b11536f00db13622f07bd3d65e838c1e3b439ea563f31395924d
C++
3,193
145
// // 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 <cstdlib> #include <functional> #inclu...
ca062f1909c0c2d2c09b31ccef4aff476b8dfc68518177b93a7bd8cb46fc4457
C++
3,195
130
// // 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 ...
a5c0f3fd3e7837482976be672a43e3aeb2224d29988b239395d3519fc9dc16dd
C++
3,199
82
// // 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 ...
a9015691652b93d0b12a9de420f118276e71a70056080075bdc4d41516bc4866
C++
3,203
89
// // error.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 !defin...
4dfc7701402294132f2e100a0c3b8999daef9382a1488f17891fe8624ba28217
C++
3,212
88
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify...
56e8735464c69ecc23fb9368836766293693dc0ec32b152913d401660b604861
C++
3,226
87
#include "SoloFeature.h" #include "streamFuns.h" #include "TimeFunctions.h" #include "SequenceFuns.h" #include "ErrorWarning.h" #include "systemFunctions.h" void SoloFeature::processRecords() { if (pSolo.type==0) return; time_t rawTime; time(&rawTime); P.inOut->logMain << timeMonthDayTime(rawT...
4b6794c1264e6a9436afe048f6b8d8797c27927bf8e220713301cb6830098d18
C++
3,232
143
#include <iostream> #include <Eigen/Core> #include <bench/BenchTimer.h> using namespace Eigen; using namespace std; #define END 9 template<int S> struct map_size { enum { ret = S }; }; template<> struct map_size<10> { enum { ret = 20 }; }; template<> struct map_size<11> { enum { ret = 50 }; }; template<> struct ...
58b9134352bb4149626d9c7bfa3994d4cea781b3d67bd4feba6b7a20501ad64b
C++
3,233
89
//---------------------------------------------------------------------------// // 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...
426c4bb1734c186f58bfaed56c1f01a1feda92358c346b5540a5471c9e88b38c
C++
3,237
105
//---------------------------------------------------------------------------// // 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...
ca3119e930cdd57604be34b88d1277286abf1d50639bf72b193a517a2b2fdc82
C++
3,238
76
/* 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 <tuple> #include <boost/callable_traits/add_member_volatile.hpp> #include "test.hpp" ...
61289f2be3ec6a9c579def63f1ddb38eacabbb8aff89b30ff2a588d5a3ea8c2e
C++
3,240
157
// // assert_test.cpp - a test for boost/assert.hpp // // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. // Copyright (c) Beman Dawes 2011 // // 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 <...
6f8668baa6dfcc7fc58c28b3de32fc1e450bd14852a445a77d86850f0d10d52c
C++
3,241
110
// (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) // Test case for extended_p_square.hpp #include <iostream> #include <boost/random.hpp> #in...
1348c61ee38a4b35f1f0fcd66db3ebf44a01e5032e1f31bdac45efe6cfaf6b19
C++
3,242
80
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 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...
005f9649abf078e6b261c99245ac9d972bebc660ce8ddf2bc1d8c84904e8cb11
C++
3,245
102
//---------------------------------------------------------------------------// // 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...
33f059b629c62b91d06f7c365e9cf7f9be917e6e08064b933b40fa171a430939
C++
3,245
91
#include "Solo.h" #include "TimeFunctions.h" #include "streamFuns.h" Solo::Solo(ReadAlignChunk **RAchunkIn, Parameters &Pin, Transcriptome &inTrans) : RAchunk(RAchunkIn), P(Pin), Trans(inTrans), pSolo(P.pSolo) { if ( pSolo.type == 0 ) return; readBarSum = new SoloReadBarcod...
816d4df88c60d40ca351348e37fb0c817763667002bf8b09840f58748333770c
C++
3,247
106
// // time_t_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 <boost/asio.hpp> #include ...
d5b378b0abd59a390af7ce39e9a8adaca2530e1d12f0b1e1a5f73a21eb2a1697
C++
3,248
89
#include "lsl_cpp.h" #include <array> #include <chrono> #include <iostream> #include <stdlib.h> #include <thread> /** * This example program offers an 8-channel stream, float-formatted, that resembles EEG data. * The example demonstrates also how per-channel meta-data can be specified using the .desc() fiel...
7d1cd7a2d643964b2522dbf6a0dca1efb36d3c2aed74942d4fcd67b7b9ee0213
C++
3,251
75
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Licens...
d410ebd9ac07f0535a40e002c5f2b82e5e5d12bfd4dfe1cb1037d3edc73909d3
C++
3,254
108
// 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 ...
499f03761fc459fc06e2662e7f0b62943d38af9e33d03ac4350cbe3aa05681fb
C++
3,257
86
// Copyright 2006, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
cc9c1ef494d5566c3b147609409cf73d53e2ab3ea876e2639810a97e92b2d703
C++
3,258
75
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Licens...
29115d7a32d924dcfebd42dbeebd6b112488015e5b9d3b0656b97bfd9988a221
C++
3,263
89
#include "lsl_c_api_helpers.hpp" #include "stream_info_impl.h" #include <chrono> #include <cstring> #include <loguru.hpp> #include <string> extern "C" { #include "api_types.hpp" // include api_types before public API header #include "../include/lsl/streaminfo.h" using namespace lsl; // boilerplate wrapper code LIBLS...
57a815139cf4a0bb6912ea55a6527bebac6066729eaf345f24f1da78e95291de
C++
3,265
56
#include "ReadAlign.h" #include "OutSJ.h" void ReadAlign::outputTranscriptSJ(Transcript const &trOut, uint nTrOut, OutSJ *chunkOutSJ, uint sjReadStartN ) {//record junctions in chunkOutSJ array //TODO: make sure that a junction is recorded onyl once from one read. //For a multimapper, several alignments may c...
790b51b353e1eb5a54205428b8e0ff0d65b4400852caf3eb59352de3593c1033
C++
3,269
101
#define EIGEN_INTERNAL_DEBUG_CACHE_QUERY #include <iostream> #include "../Eigen/Core" using namespace Eigen; using namespace std; #define DUMP_CPUID(CODE) {\ int abcd[4]; \ abcd[0] = abcd[1] = abcd[2] = abcd[3] = 0;\ EIGEN_CPUID(abcd, CODE, 0); \ std::cout << "The code " << CODE << " gives " \ ...
bf127b77fc76293f23e9709b9e794347afae17d4749fc1eef442ccc015ab4242
C++
3,270
107
// 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...
fc48cb67408ba4b37f835ee7750dac706a241b3d8d0c04682c53c88781d6f925
C++
3,275
89
// This file is triangularView of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-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 b...
74bdedcaaff6567c313fd54462826be9c82cef712580bed205f399bc48394834
C++
3,278
114
/* Copyright (c) Marshall Clow 2011-2012. 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) For more information, see http://www.boost.org */ #include <iostream> #include <boost/config.hpp> #include <boost...
1b8b8dbcc83d3518d581a14aad1c0f527075901d8ada52ef67abb1c53fb2a3f0
C++
3,282
120
// (C) Copyright Gaetano Mendola 2010, Simon West 2011. // 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/accumu...
2d6491ade8ebd635ed7987991db7ea1b390a44c3549628ba868a516333a97447
C++
3,285
92
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify...
fd814717aa673831695bfb0471c6fd65c556e90389978c3e0121f1da2d9a5652
C++
3,286
86
#include <pugixml.hpp> extern "C" { #include "api_types.hpp" // include api_types before public API header #include "../include/lsl/xml.h" using namespace pugi; LIBLSL_C_API lsl_xml_ptr lsl_first_child(lsl_xml_ptr e) { return xml_node(e).first_child().internal_object(); } LIBLSL_C_API lsl_xml_ptr lsl_last_child(lsl...
22e98629633ab412ed653e1168a6aafe006a637d9f78862251394b16b51bc450
C++
3,288
125
#define NOGMM #define NOMTL #include <map> #include <ext/hash_map> #include <google/dense_hash_map> #include <google/sparse_hash_map> #ifndef SIZE #define SIZE 10000 #endif #ifndef DENSITY #define DENSITY 0.01 #endif #ifndef REPEAT #define REPEAT 1 #endif #include "BenchSparseUtil.h" #ifndef MINDENSITY #define M...
e75a20dd95f548097e2cd0daf80fd16b0bd386eb9b4cc90c8e85b641a392e6d3
C++
3,294
106
// // time_t_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 <boost/asio.hpp> #include ...
88dedbbe1f9bfe06da5489108905a8fd04f16a4b05957d7766d1d9dbd0f5eca5
C++
3,306
129
// // is_read_buffered.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 ...
07f8ee6643cc9fc6fb6ca7facba89b9b096545b486f24257c8ad545c50354ab1
C++
3,307
126
#include <iostream> #include <Eigen/Geometry> #include <bench/BenchTimer.h> using namespace std; using namespace Eigen; #ifndef SCALAR #define SCALAR float #endif #ifndef SIZE #define SIZE 8 #endif typedef SCALAR Scalar; typedef NumTraits<Scalar>::Real RealScalar; typedef Matrix<RealScalar,Dynamic,Dynamic> A; type...
383826ce669506c6f6eda4050d1df94884c54f4e7dd88eb8869b55406d255bf0
C++
3,312
121
// 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...
01ff50fae1bda1f333df4bc790debe88e52fb7a6ecdd582b055f4f9216fc1aea
C++
3,320
129
// // is_write_buffered.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 fo...
b1cfc321e5498a4ddc6d935f21cfc7620c50226560b5a04467c3981c74dc5273
C++
3,322
148
#include <boost/asio/dispatch.hpp> #include <boost/asio/execution_context.hpp> #include <condition_variable> #include <iostream> #include <memory> #include <mutex> #include <queue> using boost::asio::dispatch; using boost::asio::execution_context; namespace execution = boost::asio::execution; class priority_scheduler...
1573ac91281e102935ad76dd1b20e0b3ce524639d00d167ebeeed3b1c5cd3a88
C++
3,333
93
#include "lsl_c_api_helpers.hpp" #include "common.h" #include "stream_info_impl.h" #include <cstdint> #include <cstdlib> #include <cstring> #include <exception> #include <loguru.hpp> #include <stdexcept> #include <string> extern "C" { #include "api_types.hpp" // include api_types before public API header #include "../...
1d6a508478c9bec229cb78d924911d519b6973e4e2a9bb8d7c65c169e5071819
C++
3,333
160
// // 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 <...
054f18cc81fcff85e9884365dd25a3015512d2ce9ffc46d73fb82f4cf1f60252
C++
3,339
83
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com> // // 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 Softwar...
af1b2b01ae275f1a9fee7e7940c0f88f39ded063008994d585aad87e3ffadb39
C++
3,341
104
// Copyright 2009, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions ...
8aef811d875df35d3cf71fb015b33cb144a06e56142d9e8803abfd6bc90bf08f
C++
3,348
114
/* Copyright (c) Marshall Clow 2011-2012. 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) For more information, see http://www.boost.org */ #include <boost/config.hpp> #include <boost/algorithm/cxx11/iota...
f74d6026b88eafd4533cbec4e8aabe73d806d5f4bd8cb08e0c406b024993fd0a
C++
3,356
106
// // sync_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 <istream...
e52e018ad6a2ea801dc580236241a0a9c107e44e3fdf41bf9861d1904c64d5af
C++
3,358
125
#define NOGMM #define NOMTL #include <map> #include <ext/hash_map> #include <google/dense_hash_map> #include <google/sparse_hash_map> #ifndef SIZE #define SIZE 10000 #endif #ifndef DENSITY #define DENSITY 0.01 #endif #ifndef REPEAT #define REPEAT 1 #endif #include "BenchSparseUtil.h" #ifndef MINDENSITY #define M...
cc3b1023b1c7afa3abad4c65f5ed1b781a2f45182b604032ca70e401b733a6dc
C++
3,366
118
/* Copyright (c) Marshall Clow 2011-2012. 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) For more information, see http://www.boost.org */ #include <boost/config.hpp> #include <boost/algorithm/cxx11/copy...
30ecf0a46c9734299d8cdfdfd1821831cb44a4fd6435324250b4d6929e3f9086
C++
3,368
104
#include "helper_type.hpp" #include "helpers.h" #include <catch2/catch.hpp> #include <cstdint> #include <lsl_cpp.h> #include <thread> TEMPLATE_TEST_CASE( "datatransfer", "[datatransfer][basic]", char, int16_t, int32_t, int64_t, float, double) { const int numBounces = sizeof(TestType) * 8; double timestamps[numBounc...
5b68cb9b6f615024d8a8819e4bc2b692b69e79416cccbeb0dcaac1c01567b620
C++
3,371
105
// // 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 // //------------------...
69b099329ca671a85c69f11046d7f3dc331c78fc64d0bf83852982f318cfe249
C++
3,371
153
// Copyright 2011 Vicente J. Botet Escriba // Copyright (c) Microsoft Corporation 2014 // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt #include <boost/chrono/chrono.hpp> #include <boost/chrono/chrono_io.hpp> #include <libs/chrono/example/timer.hpp> #includ...
3ecacd6746f8cc67a4088dfeb5b8e4143086aeebbb7764ad34f5096c7492a45a
C++
3,372
134
// // parallel_sort.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> #includ...
27783da38fafe3aec3dfebf73f1a64288d7474ed43764134eba4cb260e5a9195
C++
3,376
109
// 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...
54ec30d552b7290cf0ace49cad0b8e89f3ca820e33b48b5d4dd5230019a0a7c9
C++
3,378
101
//---------------------------------------------------------------------------// // 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...
fbfd49c0125f4271e4c4bb388b8572c27f782d26a4346b97f414289ebe47d29b
C++
3,380
114
// Copyright 2011 Vicente J. Botet Escriba // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt #include <boost/chrono/chrono_io.hpp> #include <sstream> #include <boost/detail/lightweight_test.hpp> template<typename D> void test_good_prefix(const char* str, D d)...
ff841092e2a1eb3e779611cb19bd5b5f2f4a0055edc2a7fba4d1ffb1b0b68f6b
C++
3,382
78
/* 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 <tuple> #include <boost/callable_traits/remove_member_reference.hpp> #include "test.hp...
243e3a4fae79fd4b4f9c659931addf8486f9710f55f0fd4b2eee88094f5387d4
C++
3,386
79
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // 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 So...
8992011e09ec315d0c789a7a33c6eb7563f04c047c849e9b0645c184770150cb
C++
3,387
88
#include "api_config.h" #include "lsl_c_api_helpers.hpp" #include "resolver_impl.h" #include <loguru.hpp> extern "C" { #include "api_types.hpp" // include api_types before public API header #include "../include/lsl/resolver.h" using namespace lsl; LIBLSL_C_API lsl_continuous_resolver lsl_create_continuous_resolver(d...
2df2d6f22795f909a497c58bce2334b504163c97d9ee88168d70fd0fcb5a4e4a
C++
3,390
101
//---------------------------------------------------------------------------// // 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...
baf461d954edfc4b059ada3e080bebdab00cba44808bc544e27c9e6e42e5e1a7
C++
3,395
131
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public //...
0cf0469eecf06bc1cd6654a42e2a5ef8c4703d2468302c9fe3d0f18e1c8bbc25
C++
3,397
110
#include "common.h" #include "api_config.h" #include <algorithm> #include <cctype> #include <chrono> #include <cstdlib> #include <loguru.hpp> #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #if defined(_MSC_VER) && _MSC_VER < 1900 #error "MSVC 2013's std::chrono isn't supported. Please upgrade to VS2015 or later" #endif #in...
43b905ff5a70e2a49a2c9d0e1798c51643704779caa9c2a8084bc95d0034c667
C++
3,402
131
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public //...
7690a7dd750c4a273de275e230debcd277c2c2ce519b11479c1ddb7bcde1fc91
C++
3,403
81
// Copyright 2013 Vicente J. Botet Escriba // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt // See http://www.boost.org/libs/chrono for documentation. #define BOOST_CHRONO_VERSION 2 //#define BOOST_CHRONO_PROVIDES_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT 1 #incl...
53e4a5919e1d23fd0e47240fbca63ef87a051c138e1352448b590d4294bac537
C++
3,409
98
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com> // // 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 Softwar...
b423a7d3c2b3f8f464efed9e49b4f9cd19e8b99e47522c141ad061b23e324a9e
C++
3,410
104
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010-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...
1cb7f02c959c5a61d466716274d3b1e84275879597956320505cba83cf800edc
C++
3,413
85
// (C) Copyright 2006 Eric Niebler, Olivier Gygi. // 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) // Test case for tail_quantile.hpp #include <boost/random.hpp> #include <boo...
b73aee7adfef7a29bf66c0b8052c3c1c017cd64b79baf0ee884ba02cb75c058c
C++
3,419
94
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // basic_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 // http://...
de259c9ea59fb3207c369dece7ce11eb90adedbeafd4f42dd878e3b555b42c6a
C++
3,420
121
#include <Eigen/Core> USING_PART_OF_NAMESPACE_EIGEN namespace Eigen { /* Echelon a matrix in-place: * * Meta-Unrolled version, for small fixed-size matrices */ template<typename Derived, int Step> struct unroll_echelon { enum { k = Step - 1, Rows = Derived::RowsAtCompileTime, Cols = Derived::C...
a320bfd08203ca05eb5626cd6e824d68865f71f7bdf6916c393cba90bcf248d2
C++
3,422
81
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com> // // 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 Softwar...
4e3eef050bcbc66b33a1608c0dad3ffda444bd808d27143cc860ea0b0ca07cd4
C++
3,423
142
// // connect_pair.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 <strin...