sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
fa28bd83ab56668721bf925111dbee09c3f53ac5956424af357e46b7371fbb5f
C++
2,146
68
//---------------------------------------------------------------------------// // 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...
f244364efc84380f024257332f24957dc68facb293ddf10ac8101e7dce1fb9eb
C++
2,150
66
//---------------------------------------------------------------------------// // 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...
570d9bdaed1844c814b3e05085d3814165e72401fffc502e3b0946067c7596c9
C++
2,151
94
// // promise.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.boost.org/LICENSE_1_0.txt) // // Dis...
0188598f8fe151d39dfb0e28ae8c4d7776251fd312321adc483ba7bf24094e92
C++
2,152
60
#include <cmath> #include "Transcript.h" intScore Transcript::alignScore(char **Read1, char *G, Parameters &P) {//re-calculates score and number of mismatches maxScore=0; nMM=0; nMatch=0; if (nExons==0) return maxScore; char* R=Read1[roStr==0 ? 0:2]; for (uint iex=0;iex<nExons...
72e951c06cc36584ca885812ed018021244b556a3dfa650315f17042173cd86b
C++
2,152
101
// // scheduler.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...
bc37488dc0b2613342f2dde8f1e5a09865b510e01981f0e857902494959d2b42
C++
2,155
118
// // assert_test2.cpp - a test for BOOST_ASSERT and NDEBUG // // 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/detail/lightweight_test.hpp> #include <st...
89080d685550ebcacd74d08921178be8ef2df33e410d8db39b696c9b72e1069f
C++
2,156
83
// // 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 ...
474d5a28af2918b93c2e53712900ca4d2e2cce946db83f4faf1bc26516da66f4
C++
2,159
84
#include <iostream> #include <Eigen/Core> #include <bench/BenchUtil.h> using namespace Eigen; #ifndef REPEAT #define REPEAT 100000 #endif #ifndef TRIES #define TRIES 20 #endif typedef double Scalar; template <typename MatrixType> __attribute__ ((noinline)) void bench_reverse(const MatrixType& m) { int rows = m.r...
e229d9ee35349b50de068dfe69ec3de41ac252352882a40a1ee1be5eaf1b69f9
C++
2,160
64
#include "../src/api_config.h" #include "../src/stream_info_impl.h" #include <loguru.hpp> #include <catch2/catch.hpp> TEST_CASE("streaminfo matching via XPath", "[basic][streaminfo][xml]") { lsl::stream_info_impl info( "streamname", "streamtype", 8, 500, lsl_channel_format_t::cft_string, "sourceid"); auto channel...
568ac119f5e6418f1fbcfbdf185d724657d7f3539b47822da229ac5d015626b2
C++
2,161
48
// Copyright 2008, 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 ...
aa9c407ca57f0bdb98547551e70a34a93cbabf032232979db86cb5b7ef298068
C++
2,163
64
//---------------------------------------------------------------------------// // 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...
8976723b08aa3800c0c8a04f2cdcec52a96ff7106ebb646c48ee836ee5111d66
C++
2,164
65
//---------------------------------------------------------------------------// // 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...
53cc2f696b3a038f3434ec8e79358e67e9e5cf0028e2aa3a2d6adf73ee623fca
C++
2,166
91
// // 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...
d934d7ed5c786e1ee140601a3b6f34009143b58e19ebb8bd3608f7d01e495dfc
C++
2,167
52
/* Copyright Barrett Adair 2016-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt) */ #include <boost/callable_traits/qualified_class_of.hpp> #include "test.hpp" template<typename T> struct is_substitution_failure_qualifie...
1019cb40ea247f7d19bb6db9277b1dd5d1cd8c5fe6e98f223e0b50eeda3e15d8
C++
2,168
93
/** * 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 "model.h" #include "loss.h" #include "utils.h" #include <algorithm> #include <stdexcept> namespace fa...
51d51a2a4f665b6ee6d9158cc9cc07fc21ef2ed075c67e87912909eedf6410d9
C++
2,168
58
#include "Genome.h" #include "SuffixArrayFuns.h" #include "PackedArray.h" #include "ErrorWarning.h" #include "streamFuns.h" void Genome::genomeOutLoad(){//allocate and load *output* Genome Parameters P1; ifstream parFile((pGe.gDir+("/genomeParameters.txt")).c_str()); if (parFile.good()) { P....
1315cb4c45479400c4a33c3e6c0ec4d5ce9d2d3c26ca9018b62d9dd9cfc8f463
C++
2,170
97
// 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...
a53806a01d330f32ee43d0d939928ae6283fa399ec94b755bb79a7947d7555bb
C++
2,175
91
#include <math.h> #include "mex.h" #include "matrix.h" #define REAL float void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[] ) { if(nrhs!=3) { mexPrintf("wrong usage!!\n",nrhs); return; } else if(nlhs>4) { printf("Too many output arguments\n"); return; } int pcnt =...
cb8852514a1667d75a1f4142bf76d106414b89d9aad5e56894e64feb5df0a757
C++
2,175
77
// (C) Copyright Eric Niebler 2008. // 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...
1f990611050327e12eae794748bd0b3b5c1c0e9b6352a6b95f6e5722fbe59bf8
C++
2,177
114
// // async_tcp_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 <cstdlib...
f4805a84e8a745670efcfacccdf7fd96add8e5ceeb5da9bee0ebf14dfca6349d
C++
2,178
101
// // async_file_copy.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 ...
9db5b355895badadb4b2cf10402003bb53eb0f953620f13b9d60e5bf84b1ba62
C++
2,186
72
//---------------------------------------------------------------------------// // 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...
037289fedca1c6ba7b15883f9d8b42f797d668c331e22796593f98fd67306433
C++
2,205
68
//---------------------------------------------------------------------------// // 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...
f3a7443a1fdb849d652048fba0e01b1f1bab634575874a9b427d3836083ac883
C++
2,207
65
#include "SoloFeature.h" #include "streamFuns.h" SoloFeature::SoloFeature(Parameters &Pin, ReadAlignChunk **RAchunk, Transcriptome &inTrans, int32 feTy, SoloReadBarcode *readBarSumIn, SoloFeature **soloFeatAll) : P(Pin), RAchunk(RAchunk), Trans(inTrans), featureType(feTy), soloFeatAll(soloFeatAll), pSolo(P...
58e6501890380dd734c69f9a39dfdcd264a276a5f1dc0135a2f55214c7950f01
C++
2,209
101
// // 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 "li...
b42ca1a6d0a1e43bc576b4ff7776c6d2c37234f6dc2a76f2735f261b4a47a526
C++
2,209
57
// 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 ...
514354439b4c33e70b86beb981872aedb62815e9dd3fdcfb3065b01d5170edbe
C++
2,210
77
// 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/bind.hpp> #include <boost/core/lightweight_test.hpp> #include <boost/config.hpp> #include <boost/config/pragma_message.hpp> #if define...
de3aef5652070aeac421c01eaa20f0cacfea79e8488585d69b02a78412488d9e
C++
2,211
63
//---------------------------------------------------------------------------// // 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...
9859095238364dfdb150a398013096d7fce5f5bc6790d7e2b32d828cbeeeb9b8
C++
2,215
77
#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...
538414c27a593ab8dc34c37b5c877eb3a022d75d1b481ef14ceca00914929754
C++
2,221
57
// Copyright 2008, 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 ...
7d505ad6310f6ec0afb35b0d1e6bead19e5fce86cd02de298fd89664ce1d9c62
C++
2,222
78
// (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...
7c1105bc690abcf548d2770c163607e4cb0c928478fadf0e2456f6d0bf989cb9
C++
2,223
71
//---------------------------------------------------------------------------// // 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...
6141a806bf8ed7ff894c484003c9976b5127dc388274f6ec166e52c8ab2c8be1
C++
2,244
88
// // receiver.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> #inclu...
5677b645b37e489498fe51f3db5d4f96e877e47eee6b321b9b19ca162d691f56
C++
2,247
71
//---------------------------------------------------------------------------// // 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...
c7846ae9a200d82018e01ed0757f0da4b86857e4e24d374d5659933adb56066c
C++
2,249
76
//---------------------------------------------------------------------------// // 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...
db0c3c42b385570b1d517e3ee927671b8fad4e206247fca738ec477222ac3d97
C++
2,251
47
// 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 ...
83a7de455b14504155f608aea359ae74b643da1298a98723dbe7d0f345ff88e7
C++
2,252
108
// // operation_state.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 un...
1489cba7b2ab3dafd47b42919199fa517b3b3df34fda1e83b313837549211427
C++
2,255
56
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Hauke Heibel <hauke.heibel@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 Software ...
47876479ab3fe7fd2eb3151fcf38dfbca7e8eeb08955b7fb15b41b25084750a8
C++
2,258
72
#include <catch2/catch.hpp> #include <lsl_cpp.h> #include <thread> namespace { TEST_CASE("move C++ API types", "[move][basic]") { lsl::stream_info info("movetest", "test", 1, lsl::IRREGULAR_RATE, lsl::cf_int32); lsl::stream_outlet outlet(info); lsl::continuous_resolver resolver("name", "movetest"); auto found_str...
6cc65795e21c3d2a541d2270e95b21c1c7780edf533a5c5a52d33bf8d3fca42b
C++
2,260
56
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 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...
8cfd508565b90fd453c37e30b0eddd9841a37314aa35e6079f7f26925948dd89
C++
2,270
117
// // 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...
fb1d30364aa4cbe4b66348fc2c5b8495b35508269915d8ad51c8d29969fe5efc
C++
2,278
83
//---------------------------------------------------------------------------// // 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...
85e95135ccb54412ae2c13d788b355649e781bd5f597eddbcc2448003732357d
C++
2,280
70
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
2d68af11c572711509620a44e71b0c1bed14df8dbcd441c0f6dce3a81ff743d1
C++
2,284
71
//---------------------------------------------------------------------------// // 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...
38488aeaf7c9985cdb2661006fbc715323fdaaf1f2e9c3a7dd0085d59cd92a2b
C++
2,284
102
// // range_based_for.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/co_spawn...
8861f47c56ecababe24dde6b15799d05b3b87f25b73372768cb40494af48ecbb
C++
2,284
126
// // 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...
3224f9e09f0f03cc65cb6cccbca76cbc38fcc8e64f5169a752917cc1eaae1c1c
C++
2,286
79
// (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/test/tools/floating_point_comparison.hp...
3d3c24e22e369e0405281c8c3d496348d06ae888eead7e6dc9d86a233f9e65fa
C++
2,288
81
// // 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 ...
c8d8869163604efedd36bf36b779e3fa3241def43982702e91a3e40fd9cefe41
C++
2,291
74
#include "Transcript.h" #include "serviceFuns.cpp" int Transcript::variationAdjust(const Genome &mapGen, char *R) { Variation &Var=*mapGen.Var; if (!Var.yes) {//no variation return 0; }; int dScore=0;//change in the score uint nMM1=0; //for each block, check whether it overlaps o...
23754e4f9797fc6f2c09c207f30c6e1fde6963d18f17a6ae27bb54560d8d7761
C++
2,296
71
//---------------------------------------------------------------------------// // 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...
b1985b7cb6e495e54c44948c9680bff4a7258071d8303a0cad8d02d8d3061747
C++
2,296
74
#include <catch2/catch.hpp> #include <lsl_cpp.h> #include <thread> // clazy:excludeall=non-pod-global-static namespace { TEST_CASE("move C++ API types", "[move][basic]") { lsl::stream_info info("movetest", "test", 1, lsl::IRREGULAR_RATE, lsl::cf_int32); lsl::stream_outlet outlet(info); lsl::continuous_resolver re...
168bd6c07e16c5f513086a682ed7bee3fd61198cae3f5c33cb3fe5bb36fbe9a0
C++
2,298
78
#include "time_postprocessor.h" #include <loguru.hpp> #include <random> #include <thread> #include <catch2/catch.hpp> template <std::size_t N> inline void test_postproc_array( lsl::time_postprocessor &pp, const double (&in)[N], const double (&expected)[N]) { for (std::size_t i = 0; i < N; ++i) CHECK(pp.process_time...
f14b8a1e69d52eef1a70053fb256818c7eca64e8eda08de43cf46e896e57fcc2
C++
2,298
56
// Copyright 2005, 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 ...
3e92b38834419af1c610d8907a0624e6301ed9c83afe22ef41ff3871502d899a
C++
2,299
58
#include "ReadAlign.h" void ReadAlign::calcCIGAR(Transcript const &trOut, uint nMates, uint iExMate, uint leftMate) { matesCIGAR.clear(); for (uint imate=0;imate<nMates;imate++) { uint iEx1 = (imate==0 ? 0 : iExMate+1); uint iEx2 = (imate==0 ? iExMate : trOut.nExons-1); uint Mate=trOut...
7b91f438531faaa0bce04eaaadafe144a8c8775e10ed451b7d4a4d10c5566f4e
C++
2,305
130
// // verify_test.cpp - a test for BOOST_VERIFY // // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. // Copyright (c) 2007 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 <boos...
562a2bb615e93186012823c9b41761769638a11e38b54498ad5f699038c8fd32
C++
2,307
63
// Copyright 2008, 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 ...
828af3ec200383cd744a8b6bf7d17765568764505a3aacd34cdca9ef259cedc0
C++
2,318
72
//---------------------------------------------------------------------------// // 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...
c19876bfd17fbb095108f2d1b84cc68d6f7194d62ce98ee5a07860ff984cf9de
C++
2,319
80
/** @file components.cc * @author David F. Gleich * @date 2006-04-19 * @copyright Stanford University, 2006-2008 * Implement wrappers for connected component functions */ /** History * 2006-04-19: Initial version * 2007-07-09: Updated to use simple_csr_matrix graph type */ #include "include/matlab_bgl.h" #...
918fd2792eac7e4c7f65a054141fd0ced29f76e1bb60b8c6ce4c410afe8959ec
C++
2,320
69
// (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 weighted_skewness.hpp #include <boost/random.hpp> #include ...
f14abf6f94645d69f10cafa1d9b27bfbe1ccd2f1f6f84b9a54324963ea4cadbc
C++
2,321
56
#include "Transcriptome.h" #include "serviceFuns.cpp" #include "ReadAnnotations.h" void Transcriptome::geneFullAlignOverlap(uint nA, Transcript **aAll, int32 strandType, ReadAnnotFeature &annFeat) { // annFeat.fSet={}; // annFeat.fAlign = {}; // annFeat.ovType = 0; //exonic/intronic determination is not do...
1c0c257b15a6452bdef7227e38739cb263f5f07d92b44bad50ed39f9a16c8124
C++
2,327
83
// // experimental/coro/stack_test.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:/...
d437ba5e2ea185f691679812b6f73d079a2cd5108597d020e5f2fdda493fc1ff
C++
2,331
94
// // connection.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 "connection.hpp" #include <uti...
1c4cdc19caddfda8afc8a6a0f311db5156c84c02034905fa4f7b1cecb7b4b8bc
C++
2,333
69
//---------------------------------------------------------------------------// // 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...
69d6a3ee53dbb84c6acb8d1bd6fb0f9575459cceaf782a084d2457df39c4be3d
C++
2,333
76
/* Copyright (c) Alexander Zaitsev <zamazan4ik@gmail.com>, 2016 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://www.boost.org/ for latest version. */ #include <boost/config.hpp> #include <boost/alg...
49586e4688808ddad901f44dfdc9ed16cdb40410147af50b9f461608e323f585
C++
2,336
99
// // bind_noexcept_test.cpp // // Copyright 2017 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/bind/bind.hpp> #include <boost/core/lightweight_test.hpp> #include <boost/config...
f4c8f58d3ddb77ff2e6e56377e0836bf9c5173d8e9e56c3f9523596f24cb61de
C++
2,336
86
// 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...
46cebc93521d5ce8249c808a8f8195d95360858653f096edf59ec0ebda1efed9
C++
2,347
104
//g++ -O3 -g0 -DNDEBUG sparse_transpose.cpp -I.. -I/home/gael/Coding/LinearAlgebra/mtl4/ -DDENSITY=0.005 -DSIZE=10000 && ./a.out // -DNOGMM -DNOMTL // -DCSPARSE -I /home/gael/Coding/LinearAlgebra/CSparse/Include/ /home/gael/Coding/LinearAlgebra/CSparse/Lib/libcsparse.a #ifndef SIZE #define SIZE 10000 #endif #ifndef...
c201ac7feb5d8d855e329f21a951efd43210e84bc523dd9dd05a0077f88e8fbd
C++
2,351
79
// 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...
57edf62b1edf7d0bb0eac17624959d1c2aef888e8d2cfcdd81c9e431c60fc2fe
C++
2,354
93
// 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...
3261da67c40a8700c07df35e03a08cc42914c9a58a5ae8f307d7b2e1455bb975
C++
2,356
52
// BSD 3-Clause License // // Copyright (c) 2019, Karan Aggarwal (karan@iisc.ac.in) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the a...
adc5aa665b280e5fdc92a749a8ccfd3da755cf0d940a597c5fb5d7ce502e6e7c
C++
2,358
58
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // 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 Publ...
6d5e9b35ae0ab3454093f1957884c6cd1119fe3731a46c46932b29a2a375396f
C++
2,359
83
#include <boost/property_map.hpp> namespace yasmic { namespace impl { template <typename Index, typename EdgeIndex> class simple_csr_edge { public: Index r; EdgeIndex i; simple_csr_edge(Index row, EdgeIndex ind) : r(row), i(ind) {} sim...
0c7573e1103bb39cc4e3f2017bdf419f9a0ff97499d08e54ecb809055009a711
C++
2,361
74
//---------------------------------------------------------------------------// // 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...
954cce2d685e05cb53bee9d783b926bfbf2202903c5f26e3894207e26ecd9034
C++
2,361
69
// This file is part 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 by the Free...
c424097909a3a2ce5b9eda4a9f242a376e1799cd9803281892c9e93f9d7091d7
C++
2,364
84
// // 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...
ee1b6af511e699dec3cc7e4330e2f9c6fd16cc4f0e0f542179993fb7cb6d222d
C++
2,366
97
// 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...
42976a17cd3a8ff39f7df0d05804588829f62e25372f4a778115f74b4a198fab
C++
2,370
112
// // coroutine.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...
dc77c2ed9c97f6bed647fda1f091f0f47f0fb742017fdfc687e69320b0fe58c2
C++
2,371
80
#include "time_postprocessor.h" #include <loguru.hpp> #include <random> #include <thread> // include loguru before catch #include <catch2/catch.hpp> // clazy:excludeall=non-pod-global-static template <std::size_t N> inline void test_postproc_array( lsl::time_postprocessor &pp, const double (&in)[N], const double (&e...
8fe5a33b5644e6a23495c8cb018ac7080e434edd1a41e283e28332a49663cede
C++
2,373
76
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
5d6c2d306c1fe3ce7eba8c340dc1d6a123b9e49d962e6749482588a72f004795
C++
2,377
85
#include <boost/property_map.hpp> namespace yasmic { namespace impl { template <typename Index, typename EdgeIndex> class simple_csr_edge { public: Index r; EdgeIndex i; simple_csr_edge(Index row, EdgeIndex ind) : r(row), i(ind) {} sim...
aaa16e25b61db3f312dd8cf52c1fae313cf8e5bcceb34d06307ac09cb32417c5
C++
2,386
115
// 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...
13c2d5693b12b4a7b3bc3d9e961bdf869e1312974f1e320e3f9aabe788ecd0df
C++
2,388
68
// // 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 ...
2fbb545615ce71e6c88343697e496173ba4d9dc830c7632aceedd68b3f3876c6
C++
2,392
111
// // registered_buffer.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...
5984fcab7743aebb2e1c3a79c650d61ab7477a6b824ef1b6d8132338f92912ae
C++
2,395
78
#include "ParametersClip.h" #include "Parameters.h" #include "SequenceFuns.h" uint32 ClipMate::clip(uint &Lread, char *seqNum) { clippedN=0; if (type<0) return 0; //no clip for this mate uint LreadOld=Lread; if (N>0) {//clip N bases if (Lread>N) { Lread -= N; // for 3p this is all clippedN += N; if...
aeb33a4156d7776007ea7ced7e931b650b7bf1b20fade10b96f926bf58fa3e06
C++
2,396
70
// (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 weighted_kurtosis.hpp #include <boost/random.hpp> #include ...
5e0b92697c5ea50bc2cb5afa259b68e670b78643e6e18786cc904de5b3870a8c
C++
2,397
53
#include <unsupported/Eigen/Polynomials> #include <vector> #include <iostream> using namespace Eigen; using namespace std; int main() { typedef Matrix<double,5,1> Vector5d; Vector5d roots = Vector5d::Random(); cout << "Roots: " << roots.transpose() << endl; Eigen::Matrix<double,6,1> polynomial; roots_to_mo...
4f2bf649d6247a4fd61887222f03fad2a50d4fb0d5dba79668e465b868fea074
C++
2,399
78
// 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) // This is a fuzzing test for waiting and notifying operations. // The test creates a number of threads exceeding the n...
5a8f5811a7966be69d7a71f692b964e6faf5f1422fe773a2a8ae6fca0bebebaf
C++
2,399
92
// // 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 ...
3f76b4315f0a102f65bba9f7301b7c40a436aad014a2454665c4459696c4b925
C++
2,402
57
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2011 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 // License as published by the Free Software Found...
17a878199f0426458a10e2b6ee8e002e224ed185d5fb0800db3634bad6a1ea34
C++
2,404
59
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
1267148a7ba61ab36a6b4b3612bbdf3ced2923248297f7327095cee8be13b100
C++
2,407
60
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // 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 Publ...
b1d8aadd8b25601c7c70d9dcc2825b00391e87a734075f0617ed088677b0aa83
C++
2,409
86
// // parallel_grep.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...
5ddd804af0ffa9b70838c8b81ad9c88852b5570e98356c14849a8db64e28d89a
C++
2,413
79
#include <iostream> #include <lsl_cpp.h> #include <string> #include <thread> /** * Example program that demonstrates how to resolve a specific stream on the lab * network and how to connect to it in order to receive data. */ void printChunk(const std::vector<float> &chunk, std::size_t n_channels) { for (std::siz...
a1f5c0ab1ebdffe032623aa85334f334e5eca113160a50592b5aa8a56c23ce6b
C++
2,413
90
// 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) // Boost.Bimap Example //------------------------------------------------------------------------...
f99c277e9f82b759cccd432900820a3bd055f35e70686f01f731dd0d19c25340
C++
2,415
92
// // async_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 <cstdlib...
51bb547f6ec7097f7c9e84bbdb287ca28f2abe221d124f232f0d0d742736ad73
C++
2,421
80
#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...
9fa889fc75148f9dc347fc723e55536a3a6da231c2289100a4a70f2b9b7550e3
C++
2,422
77
//---------------------------------------------------------------------------// // 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...
e4950fff3ae8e839bfd52f30770087f9b5ab8d4de1834358aa637eb5ba830dee
C++
2,432
81
#include <thread> #include <iostream> #include <lsl_cpp.h> #include <string> /** * Example program that demonstrates how to resolve a specific stream on the lab * network and how to connect to it in order to receive data. */ void printChunk(const std::vector<float>& chunk, std::size_t n_channels) { for(std::size...
074628ef4950e5d985b701aad6424de9d71ac720513a38638913478054dc4abe
C++
2,436
106
// Boost.Assign library // // Copyright Thorsten Ottosen 2003-2006. 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...
529392fed79ed536891d69d78af9c54193738e88f548ca5035e36ef16069db05
C++
2,437
59
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Soft...