sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
21.8k
content
stringlengths
1
200k
e95592f3524f55705bcd185afdfd22c5cc9924d5ab0613a64bb369e3bc34f7f9
C++
1,906
48
//===================================================== // 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 ...
6cfb4821d8cb1c77fbb5af4f8aec569948762d8ea314827e3ead967b5b6a223e
C++
1,909
45
// 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 ...
d722f4496ca243451f02460117c4680a213915231bc0651236da9f64ca0c4ae3
C++
1,909
60
//---------------------------------------------------------------------------// // 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...
12477b8555c6d05be7e9c1d2d0c9398387972530ea6c93ad4c9baf60d8bb6bdc
C++
1,919
61
//---------------------------------------------------------------------------// // 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...
0b6a9d4983480f87352ca4da946089264b401f7a4a3b1282253fd6cc861bf483
C++
1,921
43
// 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 ...
e83d7e5dd81150d123adeb09f7ad78839e5f2cdf9897e433faeeb4b4f3169238
C++
1,922
57
#include "IncludeDefine.h" #include "Parameters.h" #include "Transcript.h" #include "ReadAlign.h" #include "BAMfunctions.h" #include "blocksOverlap.h" //#include "SequenceFuns.h" //#include "stitchWindowAligns.h" //#include "sjSplitAlign.cpp" //#include "PackedArray.h" //#include "alignSpliceGraph.h" //#include "Globa...
f685a456665f8f3f6e6b56b149d11d76c00de9157352b7f60da8b8f3542046b4
C++
1,925
62
#include "ParametersClip.h" #include "Parameters.h" #include "SequenceFuns.h" inline char* findChar(char *arr, char c); void ClipMate::clipChunk(char *chArr, uint64 chSize) {//clipping adapters from a chunk of reads if (type != 10) //type=10 for CellRanger4 5' clipping. return; char *chA1 = chArr...
8c5acb00cb6b11ef68f9ada1096bd6e71e77f47cdc94196f7a2d1ab8aceebcec
C++
1,926
61
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // 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 Lesser General Public // License as published by the Free Soft...
b4260f5fa35d78ac114a9abb59fce12403faf0273df41f57e83c341ae7979222
C++
1,927
46
// 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 ...
286dacad8d6821da726783d33103817159fcb3405331d9ff8912034c298b16d9
C++
1,928
54
#include "socket_utils.h" #include "api_config.h" #include "common.h" #include <boost/endian/conversion.hpp> double lsl::measure_endian_performance() { const double measure_duration = 0.01; const double t_end = lsl_clock() + measure_duration; uint64_t data = 0x01020304; double k; for (k = 0; ((int)k & 0xFF) != 0 ...
65f2900ab908133b7eeeb81bc7e9c9d38ca0ca5f2b6c8f9f738dee7060a6b273
C++
1,928
68
//---------------------------------------------------------------------------// // 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...
39dc28d3e5608307336d3cee7515a6b3a86d7280f658bdc7daa640f50b2f3764
C++
1,930
46
//===================================================== // 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...
c444be739eeb2a20819b8b39ee55be8ec5cf96e6357cc20035fa0821b1b06357
C++
1,930
61
// Copyright 2015 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_VERION 2 #include <iostream> #include <boost/chrono/chrono.hpp> #include <boost/chrono...
8755d22002c150bc9beec0bf095d86d56772435169cfe0ba8adacb37140e1b58
C++
1,931
60
//---------------------------------------------------------------------------// // 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...
6ee7dfc4171d947dc1d2cd485c4994b31ddd1f0bf7928932a59c902bc794cf83
C++
1,938
58
//---------------------------------------------------------------------------// // 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...
7704b9fa1d1a62e43980a3c501651dc2e1f58c4904ce5f990ec1a775193b83b3
C++
1,941
60
//---------------------------------------------------------------------------// // 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...
7bdda66b9b1d7dd16a5994d96e7572afb3a09471a0255f2d94523929f404f265
C++
1,942
59
#include "send_buffer.h" #include "consumer_queue.h" #include <loguru.hpp> #include <memory> using namespace lsl; std::shared_ptr<consumer_queue> send_buffer::new_consumer(int max_buffered) { max_buffered = max_buffered ? std::min(max_buffered, max_capacity_) : max_capacity_; return std::make_shared<consumer_queue>...
afa3e7977a24ce2e3edaad200ebba28549834abb1022cb62ca42fd2c915d617d
C++
1,943
46
//===================================================== // 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...
9dfa10585d6b4bd4aa608a1cd440e09332b66850470f6b366a8fea9362780ae4
C++
1,947
49
#include <iostream> #include <lsl_cpp.h> int main(int argc, char *argv[]) { try { // create a new stream_info and declare some meta-data (in accordance with XDF format) const char *name = argc > 1 ? argv[1] : "MetaTester"; lsl::stream_info info(name, "EEG", 8, 100, lsl::cf_float32, "myuid323457"); lsl::xml_el...
65f856a0220241255acea46acc940d577e69e3865c4baf7e099f5e866a739dbb
C++
1,953
70
//---------------------------------------------------------------------------// // 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...
bff0a093abe83fa95f6cd31ac1d869ed659ec5804634b67946f710edf008a65b
C++
1,954
78
// // 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...
9a0f57e6ccf4f96fea54c6804f3514523220928d1e3da63d2cf9f3c27b94a3e4
C++
1,956
73
// await_keystroke.cpp -----------------------------------------------------// // Copyright Beman Dawes 2008 // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt #define _CRT_SECURE_NO_WARNINGS #include <boost/chrono/chrono.hpp> #include <iostream> #include ...
56e7dd5d27df7d13ebdda83b4fe351104eb63683460e7f766d8cbbece054e4bd
C++
1,957
62
//---------------------------------------------------------------------------// // 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...
f82ded7464a6c7baec45b046ef473e6e6c6ac67094fd0715ce6ebda9bba546ff
C++
1,957
61
// 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...
946ec606f225be27281f318089a0ed67f5f3bb2c2fb91256b1f0fdd751434cc8
C++
1,959
107
#include "node.h" #include "exceptions.h" #include "iterpriv.h" namespace YAML { Iterator::Iterator(): m_pData(0) { m_pData = new IterPriv; } Iterator::Iterator(IterPriv *pData): m_pData(pData) { } Iterator::Iterator(const Iterator& rhs): m_pData(0) { m_pData = new IterPriv(*rhs.m_pData); } Iterator& ...
d864f14171e283a670655a2221df0a50a9d8c068c61e7ba78e25412a97958aea
C++
1,961
96
/** * 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 "vector.h" #include <assert.h> #include <cmath> #include <iomanip> #include "matrix.h" namespace fa...
523aaa6d01c457a72fe51315478f8b3b43dcf3678dbcade958539b8969202a8e
C++
1,962
51
//===================================================== // File : main.cpp // Author : L. Plagne <laurent.plagne@edf.fr)> // Copyright (C) EDF R&D, lun sep 30 14:23:30 CEST 2002 //===================================================== // // This program is free software; you can redistribute it and/or // modify it ...
574671362de78f125d2225341faee450593b1cdfa268fb1d0d3f10455a0119f2
C++
1,964
61
// 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...
d1f4481247a7122a0675d940344b2cf8b43d8cebad599554cc4965a45522ed58
C++
1,972
71
// // echo_server_with_as_tuple_default.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.tx...
bfb5665d20f620e215fd46eaeb6457d91cd2f4ffe0c281b8ef1085a3ea0b66cb
C++
1,974
46
// 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...
cffb0ce5535117d44290b25a63aec8b650ec37f66786ddba5e229c0d088c3fba
C++
1,975
59
#include "IncludeDefine.h" #include "Parameters.h" int stitchGapIndel (uint rAend, uint gAend, uint rBstart, uint gBstart, uint L, uint gapStart, uint gapEnd, char* R, char* G, Parameters& P,\ uint &iRbest, uint &nMM){//returns stitch score uint gapLength = gapEnd-gapStart+1; sint inDel= (...
48419031592ddc43004a4ce8c3418c8b6f47c09728d6a5131daf10f9f204561c
C++
1,977
68
//---------------------------------------------------------------------------// // 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...
bb842cb106418aeb05018b40be39150336ddee953564bb6c8e22ae8753d8a1d0
C++
1,981
61
#include "send_buffer.h" #include "consumer_queue.h" #include <algorithm> #include <chrono> #include <loguru.hpp> #include <memory> using namespace lsl; std::shared_ptr<consumer_queue> send_buffer::new_consumer(int max_buffered) { max_buffered = max_buffered ? std::min(max_buffered, max_capacity_) : max_capacity_; ...
ebb262984af210430798411a9b135b7fc52702c42dbabceeea3293b247e75d45
C++
1,981
54
// 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....
8132da88c6fe520c1b11200fae2e857867ac0c00ea7acd4923b50d7a8a1db52c
C++
1,991
63
#include "SoloReadFeature.h" #include "streamFuns.h" #include "SoloFeatureTypes.h" SoloReadFeature::SoloReadFeature(int32 feTy, Parameters &Pin, int iChunk) : featureType(feTy), P(Pin), pSolo(P.pSolo) { if (pSolo.type==0) return; // if (pSolo.type==pSolo.SoloTypes::CB_samTagOut) // ...
892f7bb7f34c1e3a4c7622abf7e27a8f009f8de5b6969537ce220e1358764d8b
C++
1,992
49
#include <iostream> #include <lsl_cpp.h> int main(int argc, char* argv[]) { try { // create a new stream_info and declare some meta-data (in accordance with XDF format) const char* name = argc > 1 ? argv[1] : "MetaTester"; lsl::stream_info info(name, "EEG", 8, 100, lsl::cf_float32, "myuid323457"); lsl::xml_el...
8852a26229247c5e8e44fe8e59f13a742a28af73d94af67e6b9c28c1eee77c1b
C++
1,998
76
// // 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) // // Disable autolinking for unit tes...
fd824747255dc27dee1d4583da014150b07b5ae2d2eb4d030d96e75d6f971675
C++
1,998
63
//---------------------------------------------------------------------------// // 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...
bc014526455ac23fd222297f9ee37356ead6612c9b79ed0668aa45cf69a0b796
C++
2,000
77
// (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...
16f969ed718629eea9b17d545915ed0301f1ac1bede1aefe3a697c53af9d0c3d
C++
2,004
46
// 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...
1ca1248dca0de339ff154d014105ff82fc61e31348e39428453a85a3cd97970a
C++
2,004
71
// // echo_server_with_as_single_default.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....
f7a343e9e50557c9d2c2fa8402e160e31c0b6a115875939aa66394764e06f927
C++
2,006
61
#include <algorithm> #include <chrono> #include <iostream> #include <lsl_cpp.h> #include <map> #include <thread> /** * This example program shows how all streams that are currently present on the lab network can be * resolved and displayed. This is useful for browsing applications. */ int main(int argc, char* argv...
f808ec2779bfaf29519ec91baa1c22c0c8aa16411996946e42ece50028247ce9
C++
2,006
61
#include <algorithm> #include <chrono> #include <iostream> #include <lsl_cpp.h> #include <map> #include <thread> /** * This example program shows how all streams that are currently present on the lab network can be * resolved and displayed. This is useful for browsing applications. */ int main(int argc, char *argv...
a44d45d3f245cf37ff1225168ed77548e22a862cb5e1696a6209747c3d439df5
C++
2,008
61
//---------------------------------------------------------------------------// // 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...
a983fa6cc98aa0c19a762382a802108d32b8ae09d95204ef375e340456b143aa
C++
2,008
70
// // io_context_pool.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 "server.hpp" #includ...
9ddc9372a1ef034bd8622f736cd2df1a199e86f9fed1c98623d024023dfe6e3b
C++
2,009
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...
29341d777a9c9d25f360d13ed966b30f0cbef1fc88aefe2f01bb88b82cf1ed93
C++
2,011
49
// 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 ...
da7ab3cf0e9b2a293eceed7c5691233d6b61afb557e3c1176dfb75390f85be46
C++
2,011
49
// 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 ...
54bf44999907f7006ce1a463d7a6760079321ded009248bd83517bb46eeb979b
C++
2,012
68
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // xml_archive_exception.cpp: // (C) Copyright 2009 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 //...
0fd69f6056f80d743897ad8e6d285f58cf9b60e87b1d427e327884c7473fc4c1
C++
2,016
62
/* Copyright (c) 2002,2003 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 * $Date$ */ /** @defgroup date_basics Date Basics This...
b8ded6a3fb51ff934f0e0d9dfaa085f254d72ff1cbe7e964217c2941bfa02ae3
C++
2,021
65
#include "lsl_cpp.h" #include <iostream> #include <time.h> #include <stdlib.h> using namespace std; /** * 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() field of the stream i...
ea5d10a0ad4db3b014da344edf484b2526aa2935774dd833d1a17cae9a1fa1ee
C++
2,021
75
// 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...
483747b88a36af7a83f82b1bb39b703cf309c87205bd54141acf5ca690d5e53d
C++
2,027
89
#include "conversion.h" #include <algorithm> //////////////////////////////////////////////////////////////// // Specializations for converting a string to specific types namespace { // we're not gonna mess with the mess that is all the isupper/etc. functions bool IsLower(char ch) { return 'a' <= ch && ch <= 'z'; }...
94ab6ead63db5e91fd03ddd2b62aa836a6763cc5a57451227fabd5d359a2bd00
C++
2,029
60
//---------------------------------------------------------------------------// // 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...
eef2bbc8049d43ec52651e610b7cac58dd11daed91a32de04d29ccabdc55d269
C++
2,029
47
// 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...
5b93b8cb7e5151cc4e0a5d0d1ab793fa469bce0c62b50281d58a7c5dbb508f95
C++
2,031
62
//---------------------------------------------------------------------------// // 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...
e5e47c086f932471e0ca748a62b3b1597e5e731f4d34fb8cb8b2ca2db7ba3ed0
C++
2,033
40
// 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 con...
eae8e58f2fee63c8ffea933b58f649571d74a7c5c70101c8ebe2447cc0834e09
C++
2,034
57
// 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...
356f6ee5f27621f0c2378824857c0151eade9894af1c16121e76e5f9500ab2dd
C++
2,035
86
// // 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 // // prevent ssl.hpp f...
19d23ed8a6eb88ef2bbe8b2160222b0e6f10dfcd4741657a424d7dc3c996f969
C++
2,037
43
#include "funPrimaryAlignMark.h" void funPrimaryAlignMark(Transcript **trMult, uint64 nTr, Parameters &P, int maxScore, std::uniform_real_distribution<double> rngUniformReal0to1, std::mt19937 rngMultOrder) { if (nTr==1){//unique mappers trMult[0]->primaryFlag=true; } else {//m...
67ded5924b7a77e7c85ee502c9306e28d805297221cd5db4faee846d4bb53d0f
C++
2,037
60
//---------------------------------------------------------------------------// // 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...
e39fd1c35d76effd4fb2e5903db985a342f1e138953bd8fd36b2be977adaf49f
C++
2,040
47
// 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...
361db6318e73475eef92f127ec791f91cf1580613e67f444182ecb5478750c2e
C++
2,041
57
// 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...
9d2768ad73087fa2876d7872a7dc0fb0dbe93d97dc5657883ae335461a7dd701
C++
2,048
103
// // 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...
2ec927c3c87a02675fc24fcfe918a6323ee8fb778cb97c4ef89d38a6ada4e92f
C++
2,051
74
#include "../src/consumer_queue.h" #include "../src/sample.h" #include <atomic> #include <catch2/catch.hpp> #include <thread> // clazy:excludeall=non-pod-global-static TEST_CASE("consumer_queue", "[queue][basic]") { const int size = 10; lsl::factory fac(lsl_channel_format_t::cft_int8, 4, size / 2); lsl::consumer_q...
6bb582975ec30255a4231940dd6e1a6d7de8b3387e5c467bb9a65f7ecb6f69c6
C++
2,052
89
// // 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 <...
c52b65e7181610d6e577631cd50177399884913ff28d08aedfedc92f05185044
C++
2,059
45
// 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 a...
1c4ae8ef00f310bd12b14517aa5e60dbfcd8cbf4144be8bfa0c8af17d3d085d8
C++
2,066
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...
aff33fc6ebab0a5a23ab8f86ce7eb216f61dd78ea1bc86e42725f07023c551e2
C++
2,066
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 // #include <boost/conf...
da400901d9e2230ee0bb8f9b0084ac09a9de4768873c07103cfa310c8f3fec98
C++
2,066
67
//---------------------------------------------------------------------------// // 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...
5ff270fae07cfb4d365a97af8a0bddabc74f0e1d50c5cbbbb494bba69aa30467
C++
2,074
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...
5137f662b7481a2eb2d7ef9ca546ac6407a497695bbe6c0af347cb3ad19d421b
C++
2,075
91
// // sender.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 <sstream> #include...
a9903535d2e0a08679fbab385ce953a619372c3b5d95e17ac4aa38a6dba12fb9
C++
2,078
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...
c4fca01d1020bb97aead9683519cc4adcdd5b54466f837ddb565732342316f8d
C++
2,078
54
// (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...
c6179d55714ead73e21e132a082c3e37276dfc3779e6da16fee31c9185df9e66
C++
2,079
74
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // xml_grammar.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://ww...
82d2d1d3d4aab49600580c7936733a4f2bc02d9136318d0a753ec3b7da4ad28d
C++
2,084
69
//---------------------------------------------------------------------------// // 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...
eb3c437bd75122767fb889e7220e6bcdba7ca810b989cd92b11c80755d082683
C++
2,086
68
//---------------------------------------------------------------------------// // 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...
1f0ee293870c423998f153e40466cec8b0cbf2deddc83c6f85bb6105f8adfd81
C++
2,087
49
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // 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 Lesser General Public // License as published by the Free Soft...
d0a25c7e1ab5f1ae8d7ba430b74c951c00c89bb36d677e916e52ab0ded3baaaf
C++
2,089
65
//---------------------------------------------------------------------------// // 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...
e22faf9bcf309962dd37f4ea516c3fa53939c736f47c1676f56cec4e74a08b44
C++
2,089
80
#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) {} simple_csr_edge(...
ea38b51537e849a40c935f77753eb546ef473710e5793fec311e88f208e65bfc
C++
2,093
75
//---------------------------------------------------------------------------// // 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...
9881d9cf53bbaa96dd46a0f22c8bfbb1b8991c15c9c31dc44f25425b954fafd3
C++
2,095
51
//===================================================== // 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...
58c6c41029ef72c46adec18e797272a8b4e9255c98b27c866af3852025b6ebda
C++
2,098
45
#include "genomeParametersWrite.h" #include "streamFuns.h" void genomeParametersWrite(string fileName, Parameters& P, string errorOut, Genome &mapGen) {//write the genome information into the genomePar stream ofstream & genomePar = ofstrOpen(fileName, errorOut, P); genomePar << "### "<<P.commandLineFull <<"\n...
e05d7b22eef6012707578843eddabfd28c6bdb69343ebb9c5f4f79bd82ae37f4
C++
2,104
74
#include <boost/property_map.hpp> 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) {} simple_csr_edge() : r(0), i(0) {} bool...
03bec5b39897999ae8aac22c5df5edb80229ac827eabe5d77b9860d18b9d2ee4
C++
2,106
59
#include "util/strfuns.hpp" #include <catch2/catch.hpp> // clazy:excludeall=non-pod-global-static using vec = std::vector<std::string>; TEST_CASE("strings are split correctly", "[string][basic]") { CHECK(lsl::splitandtrim(" ", ',', true) == vec{""}); CHECK(lsl::splitandtrim(" ", ',', false) == vec{}); CHECK(lsl::...
59f1ab9eb93685c9ba4ebfb026757042d8e3cf2f213029bdbdc3ed875305cb81
C++
2,108
68
//---------------------------------------------------------------------------// // 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...
4a703436f3d1ad8d1bd05255716ad89e8fda3d380c583f5feca1049575293408
C++
2,112
80
// // refactored_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...
7cdd224d0b11c5a4ffc0ca0464c8b967c4078507e748d47a320c318a8df5ad3a
C++
2,113
51
//===================================================== // 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...
f18b3b69ba478373b5b0a961a1923910533db0b1b0692eb74b5233cd5a20f54d
C++
2,115
77
// // 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 "server.hpp" #include <boost/bind/bind...
0bf4bce4dded7272b44a31adcb3f563db4f5b1f7c8b0a70572f3a36ea4823def
C++
2,117
82
// // recycling_allocator.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 autolinkin...
673596e222d208f07561a8e6526a18822b421282d9a2b63c89d72d9a35d73e45
C++
2,127
65
//---------------------------------------------------------------------------// // 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...
75a3dae1a35b2b33273df638d012334487810a463f30a3da2dae06a2ecd166c4
C++
2,128
63
/* Copyright (c) Marshall Clow 2011-2012, Alexander Zaitsev <zamazan4ik@gmail.com>, 2017. 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 <iostrea...
a41cc673181391d73dc0c449b6002a9092610a0baef5e553065aad30a3544a04
C++
2,129
78
// Boost string_algo library iterator_test.cpp 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...
ff4b121098f0fe7cb4abf11fdd31f2fe7a477286ec9175482138bc038d61c807
C++
2,131
46
// 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 ...
c3240b6cd5995bf3f049717478c8ceafd69cbdd28986720fc1035b0c63947ec5
C++
2,134
70
//---------------------------------------------------------------------------// // 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...
2897471d4335ca3a430a4da2ec05b5d07605497e8862f34b3cb4f248a1b20a62
C++
2,136
72
/* simple 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 <iostream> #include <boost/array.hpp> template <typename T> void...
ce53be4543031a689d0bd45801fa1aae0fcc4e207756b9a72a909a905b6209bf
C++
2,137
95
// // signal_set.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. ...
a0b77c13d2787eee2a96c15f5c88097165132a933507fc7fbc1ed24e901b4baf
C++
2,140
65
//---------------------------------------------------------------------------// // 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...
2efc15d533b2933df45b76242929d57fc9b1d0d5c20e02d1a778e91ba4f3c687
C++
2,143
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...
2180597a4d02fb3dbd870e7ebbce68145995bb14b5f1371cb6d5e68c424bd9ac
C++
2,145
52
#include <Eigen/StdVector> #include <unsupported/Eigen/BVH> #include <iostream> using namespace Eigen; typedef AlignedBox<double, 2> Box2d; namespace Eigen { namespace internal { Box2d bounding_box(const Vector2d &v) { return Box2d(v, v); } //compute the bounding box of a single point } } struct Poin...