sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
190babc8b10a2e38c5b544634684fd9679225c6cc5491ca6912867ba046fecd3
C++
8,850
263
// // generic/datagram_protocol.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) // // Disabl...
e3963af9613d02b1e16cce696a692a2d3ff517516f8a65d6a0de52cd502f6aaa
C++
8,911
238
// // composed_3.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/bind_executor.hpp>...
caae6e82a9beffeaf30d73bfb5fbf2e95bcfae0ffe320b12cb6d54d68cdfb965
C++
8,920
253
// (C) Copyright Herve Bronnimann 2004. // 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 <utility> #include <functional> #include <algorithm> #include <numeric> #inclu...
2a903155d7da47889169f75659faa20c6c77f6970a55ed438dbd7a64695f3a7c
C++
8,927
260
/* ========================================================================= * * * * OpenMesh * * Copyright (c) 2001-2015, RWTH-Aachen University * * ...
222fab5b7017d9f05b79ed2d3b52c4aacf2d0f18e3fbe17e22f52ba3c1739031
C++
8,945
283
// Copyright (c) 2011 Helge Bahmann // // 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) // Attempt to determine whether the operations on atomic variables // do in fact behave atomically: Let multiple threads ...
8120977869f2360d1486f3f5f3e52e6032f53ce255e569ac86026047fa12f92f
C++
8,945
156
#include "Stats.h" #include "TimeFunctions.h" void Stats::resetN() {//zero all counters readN = 0; readBases = 0; mappedMismatchesN = 0; mappedInsN = 0; mappedDelN = 0; mappedInsL = 0; mappedDelL = 0; mappedBases = 0; mappedPortion = 0; mappedReadsU = 0; mappedReadsM = 0; unmappedOther = 0; unmappedSh...
833fee399954f908cf0f3b789832e505329787f4cf73607a7b31ca0f62f368d7
C++
8,989
224
// 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...
c0964c44d463e73d74412c9da8dedb876495dfc0dc9dd1110acbe7c7b3a39c24
C++
8,989
263
// // composed_8.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/compose.hpp> #incl...
a063d3866d37aa8693fbe4983ea1c03c876b5670ae9785de3d8951884cac1fd2
C++
8,999
323
//g++ -O3 -g0 -DNDEBUG sparse_product.cpp -I.. -I/home/gael/Coding/LinearAlgebra/mtl4/ -DDENSITY=0.005 -DSIZE=10000 && ./a.out //g++ -O3 -g0 -DNDEBUG sparse_product.cpp -I.. -I/home/gael/Coding/LinearAlgebra/mtl4/ -DDENSITY=0.05 -DSIZE=2000 && ./a.out // -DNOGMM -DNOMTL -DCSPARSE // -I /home/gael/Coding/LinearAlgebr...
497edb4c88f05d002375b206f407de5a452c64beab12c0fb25e6205fcd1ab253
C++
9,035
242
// // composed_4.cpp // ~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <boost/asio/bind_executor.hpp>...
5282fb64f6df248b39f373f323c49a83a8ad36c3bbd3cbb1dd680a4c77c09447
C++
9,124
346
/** * 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 "loss.h" #include "utils.h" #include <cmath> namespace fasttext { constexpr int64_t SIGMOID_TABLE_SI...
833513f210129c64098279e38cabcafeb3ac8a63b59e99c82f3fe19071a18431
C++
9,139
261
// // composed_7.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/compose.hpp> #incl...
2ce35d5ada75c76b97fe09f3285411222b24902422e143f6093a1e423295f04e
C++
9,148
203
#include <limits> #include <utility> #include <iostream> #include <fstream> #include <boost/lexical_cast.hpp> #include <boost/thread.hpp> /// Processing options for the time_postprocessor. enum processing_options_t { post_none = 0, // No automatic post-processing; return the ground-truth time stamps for manual pos...
66aaa0a9958953c5f8c6bed58b678af729ae613603746ef23d81765287900710
C++
9,155
348
/*************************************************************************************************************** Copyright (c) 2011, Marco Reisert, Valerij G. Kiselev, Medical Physics, University Medical Center Freiburg All rights reserved. Reference: Reisert M, Mader I, Anastasopoulos C, Weigel M, Schnell...
76e3da0e2fc3a783444322ac8a72d26f4a0ed885d5ad5b5e9f12efc983de093a
C++
9,173
165
/* Copyright (c) Marshall Clow 2013. 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/cxx14/equal.hpp...
df942f8d97c96563eeda0efee9dcd84ceb2abc63fb58cdaf6101a90c6a06d912
C++
9,185
188
/* Copyright (c) Marshall Clow 2013. 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/cxx17/transform_...
2a8f6d795242359f6f08d9f4290a4a7b45e7f8d48b0f831a7b1ed85390f97d87
C++
9,199
308
#include <mex.h> #include <matrix.h> #include <math.h> #include <map> #include <string.h> using namespace std; #define REAL float #define PI 3.1415926536 //////////////////////////////////// #include "MersenneTwister.h" MTRand mtrand; int dbgflag; #ifdef _WIN64 #include "wintime.h" #define INFINITY 999999...
f5af8d42744ba5c2a581fc3c991664af2fb3c1c972855613de720dfde62341d3
C++
9,211
259
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2009 Mathieu Gautier <mathieu.gautier@cea.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of th...
6f01c111b5ddb08098b6e2a1c4166083afe611c9efc9279dc261cb5028232771
C++
9,219
247
// // composed_4.cpp // ~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <boost/asio/bind_executor.hpp>...
5f48c2dd9a74ad1e583fcd60362c013ffcb1239f28f8a240963f77ec862b5b38
C++
9,229
262
// // composed_7.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/compose.hpp> #incl...
ed3039ba9df9d764de0ce0880a6a984c3c1c6a1d69804a43e7d3a258a3da3b83
C++
9,229
361
// // 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 ...
8b665d6169bb55ce2eaaa86b160ed812467ba9cc38b37bacf60cf0927521baad
C++
9,237
271
// g++-4.4 bench_gemm.cpp -I .. -O2 -DNDEBUG -lrt -fopenmp && OMP_NUM_THREADS=2 ./a.out // icpc bench_gemm.cpp -I .. -O3 -DNDEBUG -lrt -openmp && OMP_NUM_THREADS=2 ./a.out #include <iostream> #include <Eigen/Core> #include <bench/BenchTimer.h> using namespace std; using namespace Eigen; #ifndef SCALAR // #define...
2850dc1f73a3f8020d8a4d80688a28d9b736eae6d677222c3f871d8d33b25501
C++
9,250
320
// Copyright 2007, 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 ...
c0189d0703508543fec20206b62a466487857030cc11a27e4b6c24909417b0c0
C++
9,251
314
// // 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 // //------------------...
5cf50d15318e167672e3e23618383bf27f8f6cb8371644e44ecaee0945220361
C++
9,253
291
// 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 test is based on atomicity.cpp by Helge Bahmann. The test // Was modified to use atomic_ref template instead of...
27e5b628e597971d7b5b030252fa359c73dbee32e42d54750455b65bd5367bf4
C++
9,279
252
// // composed_4.cpp // ~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include <boost/asio/bind_executor.hpp>...
a3566524affe3da08a96370a619c28ba7d377c68e38cc2d55ddbb93fbadb3337
C++
9,281
311
// // async_tcp_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 <boost/asio/buffer...
d9c824fa6143ce22d53e281cda9fee1b813af98308060eb9387611242da1393a
C++
9,283
249
/* * Created by Fahimeh Mirhaj on 6/18/19. */ #include "SpliceGraph.h" #define macro_CompareScore(score1,scoreMax,dirInd,dirIndMax) if(score1>scoreMax){dirIndMax=dirInd;scoreMax=score1;} SpliceGraph::typeAlignScore SpliceGraph::swScoreSpliced (const char *readSeq, const uint32 readLen, c...
93ec34f4d75dd8a703824c090902b4da71eaba3782a05d4e0b219a99c8a4b835
C++
9,293
251
// Copyright (c) 2011 Helge Bahmann // 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) // Verify that definition of the "LOCK_FREE" macros and the // "is_lock_free" me...
962758cc9c562419861ea3fcf46bfddb67a4d5f7f8ac4cf7c17c942d1724f26d
C++
9,302
233
/* Copyright (c) Marshall Clow 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 <vector> #include <functional> #include <numeric> #include <...
c8eb8387d6197285a194fcd48fde1b4d07087adf9dc879f0f3edab8e9536b9ad
C++
9,314
268
// // composed_7.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/compose.hpp> #incl...
7ab9988487d3212aa3bf77814670e7a7d611a1631769402b61056bb3ed24f304
C++
9,325
250
// 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...
c957d4d8d180239f80a3bf19791198f852da2701a955ab30098dc1e277046da9
C++
9,344
311
// // async_tcp_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 <boost/asio/buffer...
530b5a2757ba5e7341f9569df21d30180ddf71fa4f318872107657b1272f7047
C++
9,424
333
//---------------------------------------------------------------------------// // 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...
e4ef7b9906b1eb9d4104a0b378239da579cd21cc5d83cb8fc9dacb501e265833
C++
9,438
275
// Boost string_algo library substr_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 http://www...
d44c7ccd64d16bf7d9c52f6bc1e78b94980d9b56fe43f65a440fbd01c2629100
C++
9,481
316
// // 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 "snippets.h...
ddb16cfefe0f83ad14ec8dce98d82155f5291ff8a988e7d0f55dcb1dcaa54a5a
C++
9,490
333
// // 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 ...
3277f14ac63a7c7eb554e6a6384f44a45b5cff81af1ad4859861ee49b791c31e
C++
9,503
246
// (C) Copyright Ivan Matek, Marshall Clow 2021. // 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/algorithm/is_clamped.hpp> #include <boost/algorithm/clamp.hpp>...
24bd8bf1678d146ac91ab419d0d7718ac3edd9416621fa946fcbb588a6d03746
C++
9,506
180
// // 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 ...
9be44751ae957a88e31aa3fc5c1518041f24cad3f683bd629bc826e16809c9b5
C++
9,520
238
// 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_io.hpp> #include <sstream> #include <boost/detail/lightweight_test.hpp> #include <boost/chro...
264a0ceb397412a5799d5eaca45979325a7596ba2f78f93137f19447d09e67b0
C++
9,527
262
/////////////////////////////////////////////////////////////////////////////// // main.hpp // // Copyright 2005 Eric Niebler. 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 <fstrea...
8a3781f3dab1ef21da19b980b13aac0e1a113e9e2357ebb115a4b6a5fbe87aa0
C++
9,536
328
/* ------------------------------------------------------------------ This file is part of the Open Ephys GUI Copyright (C) 2017 Allen Institute for Brain Science and Open Ephys ------------------------------------------------------------------ This program is free software: you can redistribute it and/or modify it ...
033425a3ef54f1f3f277af951a70644960b16520e72458c0e6f000ba9318891c
C++
9,582
261
#include<stdio.h> #include<string> #include<stdlib.h> #include<math.h> using namespace std; # define gr (double)1.0 void sol_0(double t0, double t, double *x0, double *x, double *para, double *para2); void sol_1(double t0, double t, double *x0, double *x, double *para, double *para2); double t_min_fun(double pf, do...
bcd0ba955a87bcf91d63a02478c4e2f6dbaae9f7f6848e5bdba7ef44dbf5874c
C++
9,585
253
#include "api_config.h" #include "common.h" #include "inireader.h" #include <algorithm> #include <cstdlib> #include <fstream> #include <loguru.hpp> #include <mutex> #include <stdexcept> using namespace lsl; /// Substitute the "~" character by the full home directory (according to environment variables). std::string e...
901d9541163de780748ba0893057990b4e18086e4cfc7823144a2d7574e65307
C++
9,635
220
// 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...
0b02fc12f87944226915a999bdcc8a3eaafb34a1ea5bb0df128774abf8667f09
C++
9,655
257
// Copyright 2007, 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 ...
f531bd69b56c20b3550536dc158a82d23c2f057568df87b14ba25d30afbf2da1
C++
9,720
237
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-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 So...
8d312a54b5e13aed973e38c142366c374d3ee9b04f99b8d7a69f1e02d7552327
C++
9,723
293
//---------------------------------------------------------------------------// // 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...
590466ce3bb658622fb1f6b609064aa72720bc2ae47d7603ca923ced0226fae5
C++
9,739
211
#include <stdint.h> #include "../../include/lsl_cpp.h" #include <boost/thread.hpp> #include <boost/lexical_cast.hpp> #include <boost/bind.hpp> #include <boost/functional/hash.hpp> #include <boost/uuid/uuid.hpp> #include <boost/uuid/uuid_generators.hpp> #include <boost/uuid/uuid_io.hpp> #include <boost/atomic.hpp> #incl...
9bc4094372f29d45b24e558c44b6508c74a41096a45c49701ce43ad976ba615c
C++
9,747
219
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-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...
d9e7b3bc238086988ccb9797d5bb7910fca257ce642482f5573bef5e8390b334
C++
9,835
174
// Copyright (c) 2010 Nuovation System Designs, LLC // Grant Erickson <gerickson@nuovations.com> // // Reworked by Marshall Clow; August 2010 // // 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 ...
7e1d2f67127b01066bf4491d94536c0efebd299f02b38488749cd21f3599666e
C++
9,890
268
#include "mex.h" #include "cokus.cpp" // Syntax // [ DP , Z ] = GibbsSamplerLDA( WS , DS , T , N , ALPHA , BETA , SEED , OUTPUT , ZIN , WIN ) // updated for 64 bit void GibbsSamplerLDA( double ALPHA, double BETA, int W, int T, int D, int NN, int OUTPUT, int n, int nin, int *z, int *z...
acf78f2c9a730525ea5adc93e9196a42de8fbfe488db1dfd02656bdbd477b2c0
C++
9,907
313
// 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 and ...
9b56d4a88bc5f7fee62f5db8f959adacbce1159f1d7aea3fc9c428c4cf8dacad
C++
9,965
280
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2009 Mark Borgerding mark a borgerding net // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // L...
ee10043fa3c0053ad4e587fa5ffe2c6baf51e552613ce0a60182c84f1dac0126
C++
9,999
234
#include "Genome.h" #include "SuffixArrayFuns.h" #include "PackedArray.h" #include "ErrorWarning.h" #include "streamFuns.h" #include "SharedMemory.h" #include "genomeScanFastaFiles.h" #include "systemFunctions.h" #include <time.h> #include <cmath> #include <unistd.h> #include <sys/stat.h> Genome::Genome (Parameters &...
d142f3a1f7083609fa9d977dbc0649f56da402bfe2685c00581e1a262646b526
C++
10,042
250
// 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...
72c58f94fcb78d6618230dc8d7009fb5dfb401c4ae2796eeb06efb9e96b670a9
C++
10,063
288
#include "mex.h" #include "cokus.cpp" // Syntax // [ WP , DP , Z ] = GibbsSamplerLDA( WS , DS , T , N , ALPHA , BETA , SEED , OUTPUT ) // Syntax // [ WP , DP , Z ] = GibbsSamplerLDA( WS , DS , T , N , ALPHA , BETA , SEED , OUTPUT , ZIN ) // Updated for 64-bit compilers void GibbsSamplerLDA( double AL...
358011aac42621a07ef612ddbc11cd3024654a8f72240a480b0a52846a6fb4ec
C++
10,159
400
// // execute.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 !d...
b8305633d7c3d6f284f1a364b14f8885c5983f11b4532b216e11107667a089f3
C++
10,186
316
// Comparison of bounded buffers based on different containers. // Copyright (c) 2003-2008 Jan Gaspar // Copyright 2013 Paul A. Bristow. Added some Quickbook snippet markers. // Use, modification, and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or cop...
e0dae978cf92bf07bbd571a19222f76a2c5b875effc385c737bb482990a90641
C++
10,188
371
/*************************************************************************************************************** Copyright (c) 2011, Marco Reisert, Valerij G. Kiselev, Medical Physics, University Medical Center Freiburg All rights reserved. Reference: Reisert M, Mader I, Anastasopoulos C, Weigel M, Schnell...
841aa172b35e8a44527916ab5eaa319f87a01f0454c15f5ee74535e91e37b9f5
C++
10,245
404
#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...
2e2314d5dbd0325b6e862cf6b2dcd74a2b4b001065540a404cfe1e31b86396dc
C++
10,258
289
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Mageswaran.D <mageswaran1989@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://...
4e1ab5a4bee38371479f37c9a1365e386df1ca82eec0b59da440f6a195138b10
C++
10,276
188
/* 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_varargs.hpp> #include "test.hpp" struct f...
58f8108517c1dd0b6a332e0083a3fb69b20c02e23ccb29cf1c06d0f93e33aed9
C++
10,284
190
/* 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_varargs.hpp> #include "test.hpp" str...
e831c49847a65492e62d8539d35e4864f3f09104a0d6c3bfbfd8769517c449c2
C++
10,311
311
// // Copyright (c) 2016-2017 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...
fe8269c7c9ba47132d9d8d3076589d099b9f9d3cbc749dbf31381140bbbc7b46
C++
10,315
225
#include "sjdbPrepare.h" #include "ErrorWarning.h" #include "serviceFuns.cpp" void sjdbPrepare (SjdbClass &sjdbLoci, Parameters &P, uint nGenomeReal, string outDir, Genome &mapGen, char *Gsj) { char *G=mapGen.G; uint *sjdbS=new uint [sjdbLoci.chr.size()]; uint *sjdbE=new uint [sjdbLoci.chr.size()]; ...
87db121eff3ab347bd9e2ab9661295729c7d6b60021c66a071d4828fea9cf153
C++
10,323
316
// Comparison of bounded buffers based on different containers. // Copyright (c) 2003-2008 Jan Gaspar // Copyright 2013 Paul A. Bristow. Added some Quickbook snippet markers. // Use, modification, and distribution is subject to the Boost Software // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or cop...
80b5c9b9bdfaaea5b52b23252944a887ed81d3154c1c6050f9efe5a66d780172
C++
10,395
374
//---------------------------------------------------------------------------// // Copyright (c) 2016 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...
87b941128bfca451bd6b27a0138a650e919f34db323a2d6765da8d2fc802122f
C++
10,423
300
#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...
458c2118847938b4dc0c4e4bb4ace44575270c8f8e0f40cc77a025eceeac41cc
C++
10,451
278
#include "Transcriptome.h" #include "ReadAlign.h" #include "serviceFuns.cpp" #include "AlignVsTranscript.h" #include "ReadAnnotations.h" #include <bitset> int32 alignBlocksOverlapExons(Transcript &aG, uint16 exN1, uint32 *exSE1, uint64 trStart1, bool &sjConcord); void Transcriptome::alignExonOverlap(uint nA, Transcri...
c6548534ae4e6ff3b4b954cbf491c3b1df9f0e318cab34cb9f3acbaf2d9cf325
C++
10,476
315
// 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...
0176275bb4122d345d8c03ca42071c2a2c4a885f716ab9c6e816d3574db1a929
C++
10,506
285
#include "lsl_c_api_helpers.hpp" #include "stream_inlet_impl.h" extern "C" { #include "api_types.hpp" // include api_types before public API header #include "../include/lsl/inlet.h" using namespace lsl; LIBLSL_C_API lsl_inlet lsl_create_inlet( lsl_streaminfo info, int32_t max_buflen, int32_t max_chunklen, int32_t r...
5584c99b34f93a9c3a66a1627fe333d454790084425bc35749f0ca84aaed1778
C++
10,519
338
// // buffered_read_stream.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 autolink...
2f0fcc6a4892b499d71414c9a33a6ec4db03a02d5b9600f7e0616abd24a28831
C++
10,540
195
/* Copyright (c) Marshall Clow 2013. 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/cxx14/mismatch....
2bb72737400ca6f0735a4264c6671f49c3ed103ead97526683497cdc04dd9eb8
C++
10,544
423
#include "scanner.h" #include "token.h" #include "exceptions.h" #include "exp.h" #include <cassert> #include <memory> namespace YAML { Scanner::Scanner(std::istream& in) : INPUT(in), m_startedStream(false), m_endedStream(false), m_simpleKeyAllowed(false), m_canBeJSONFlow(false) { } Scanner::~Scanner() { for(...
d432daffaee295977c5255ba4362462f375507607dd18d11a5482b2f9fda0b33
C++
10,557
403
// [[Rcpp::depends(RcppArmadillo)]] #include "RcppArmadillo.h" #include "math.h" using namespace Rcpp; // from Rcpp gallery https://gallery.rcpp.org/articles/stl-random-shuffle/ // wrapper around R's RNG such that we get a uniform distribution over // [0,n) as required by the STL algorithm // inline int randWrapper(...
f1556e188766a9d21c79bcca2ac9bb4db8c4f83aefec2c3ffcd324e4beefcf48
C++
10,578
271
#include <unordered_map> #include "bamRemoveDuplicates.h" #include <iostream> #include "htslib/htslib/sam.h" #include "IncludeDefine.h" #include SAMTOOLS_BGZF_H #include "ErrorWarning.h" #define compareReturn(a,b) if(a>b) {return 1;} else if (a<b) {return -1;} uint g_bamRemoveDuplicatesMate2basesN; int funCompareNam...
a2efc09dd64a7a79f6f6546b3001abc6ba30b6e441bf2e7130585135a1ffea9f
C++
10,725
350
//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------...
99e8bc8b9a7e78b89062e6305559d6f4cca46228dca1a48e2d8e35d0b1f433dc
C++
10,766
335
//---------------------------------------------------------------------------// // 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...
3e86324bf49cbffd4a98bde64a21c0d8a4a3cb4fc34e3dce678f0c4e599b4424
C++
10,769
405
// // 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 // //------------------...
4dbbefadc28ff21cee5f6ab3c656d3001bfbf75c0585b140ed297fa73275570c
C++
10,786
231
#include "SoloFeature.h" #include "serviceFuns.cpp" #include "SimpleGoodTuring/sgt.h" #include <math.h> #include <unordered_set> #include <map> #include <random> double logMultinomialPDFsparse(const vector<double> &ambProfileLogP, const vector<uint32> &countCellGeneUMI, const uint32 stride, const uint32 shift, const i...
53104567eff45f2264908f495bfa5f7bc7e2193ef36f1619d21a81238c36553a
C++
10,850
381
// // 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 ...
f885df7c2796757da253159f8c24fccef6e86f9d43b1449a22d46e629acf27b7
C++
10,851
407
// // 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 "example/do...
4525b11b75ed7d16845207a06ccd0cc40f79f1b7e9760d7531304930badd2928
C++
10,859
280
// // composed_5.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/deferred.hpp> #inc...
c5b731a0a9abdfe54f22ed16c5cc8d28c2e41a993cccd5d624deefaebc9d62b2
C++
10,859
335
// // 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 // //------------------...
fb555795a68c7c8b97d04cfbd7f4c3cea90f7bc154ce262d5547bcfdef275a72
C++
10,883
337
// $Id$ // (C) Copyright Aaron W. LaFramboise, Roland Schwarz, Michael Glassford 2004. // (C) Copyright 2007 Roland Schwarz // (C) Copyright 2007 Anthony Williams // (C) Copyright 2007 David Deakins // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file /...
2bc28a0ec2a0f36dd07394377d76a099c7e75b8a95e66a60a1f885323dcfc9aa
C++
10,907
353
// // buffered_write_stream.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 autoli...
05727c9ccc5e9c3e48c03c68774f51102fda2c670a3930eb59b64dd4877e8968
C++
10,913
670
// // use_future.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. ...
74b82c677383c1388ba1ab35c39e062dfdd3b5298e0c76e44ecd4a0578cc0725
C++
10,951
434
#include "scanner.h" #include "token.h" #include "exceptions.h" #include "exp.h" #include "scanscalar.h" #include "scantag.h" #include "tag.h" #include <sstream> namespace YAML { /////////////////////////////////////////////////////////////////////// // Specialization for scanning specific tokens // Directive // ...
ab98c44c98c36c2d6c4ce4ac2e46211f2c90f7be06519eb12fae8918a558b06d
C++
10,963
352
//---------------------------------------------------------------------------// // 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...
81fbb0d5736bcff0d6c8de7787eac6a7f0b6c225d21f0c60345d9856bca3be06
C++
10,969
664
/*************************************************************************************************************** Copyright (c) 2011, Marco Reisert, Valerij G. Kiselev, Medical Physics, University Medical Center Freiburg All rights reserved. Redistribution and use in source and binary forms, with or without...
3877ce763dc9e12b7f7874761e574cf1f0c35a8a077907c437a7825ffdd646dc
C++
10,993
305
#include "lsl_c_api_helpers.hpp" #include "stream_inlet_impl.h" #include <cstdlib> #include <exception> #include <loguru.hpp> #include <stdexcept> #include <string> #include <vector> extern "C" { #include "api_types.hpp" // include api_types before public API header #include "../include/lsl/inlet.h" using namespace l...
1c4e98eb1b217970c7260191bb99c2d61197139a783db084ae29e43907ab0d0d
C++
11,039
284
// // composed_5.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/deferred.hpp> #inc...
e213bb231f076c3ce94b343301eacde5a862f2844abbc5b51ae25b876497316a
C++
11,086
328
/** * 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 <emscripten.h> #include <emscripten/bind.h> #include <fasttext.h> #include <functional> #include <sstre...
373c38cbb0c5ab92b2eafd58d4fe9cd624a73dbb0279368bc0dc11f521d4d5b0
C++
11,091
364
// // buffered_stream.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...
2f475770c54a6a42ca23f22d7a15db3c1afe2bb440bf515bdd5749f681e9c832
C++
11,116
349
//Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. //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 MSVC-specific cpp file implements non-intrusive cloning of exception objects. //Based on an ...
4291146797a9265d2fd49686355afc62ace7e52f3ab443977ab3f0c2a71576c0
C++
11,118
289
// // composed_5.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/deferred.hpp> #inc...
14756a024268d664d1d1cd58fe224329d36a031f7e9927e33dc191a68f868a0f
C++
11,144
314
// // network_v4.cpp // ~~~~~~~~~~~~~~ // // Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com) // Copyright (c) 2014 Oliver Kowalke (oliver dot kowalke at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http:/...
33f30c472d0114c50cc04506a8eca32cceed24ba0dc578d0f573a09ae3097809
C++
11,189
351
// // Copyright (c) 2017 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) // // Official repository: https://github.com/boostorg/beast // //--------------------...
0f907f7bf911efcdb5ccce108ce2d110ce2372e64f02dce28fdf733725b54abe
C++
11,196
506
// // schedule.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 ...