sha256
stringlengths
64
64
language
stringclasses
27 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
a830f5515798adb4c5011a5e38da936d0f9f789fa24d6cb180868a0dccddb794
C++
7,547
226
/* * io.cpp * peer * * Created by Leopold Parts on 13/03/2011. * Copyright 2011 __MyCompanyName__. All rights reserved. * */ #include <fstream> #include "peerutil.h" #include "sparsefa.h" #include "tclap/CmdLine.h" #include "csv_parser/include/csv_parser/csv_parser.hpp" using namespace TCLAP; using namespa...
1405ac641a356c2f79be2a5e5b965630219e6e490b1d90be7ac01ce3ae8cfc9a
C++
7,571
210
#include "resolve_attempt_udp.h" #include "api_config.h" #include "netinterfaces.h" #include "resolver_impl.h" #include "socket_utils.h" #include "util/strfuns.hpp" #include <asio/io_context.hpp> #include <asio/ip/address.hpp> #include <asio/ip/multicast.hpp> #include <exception> #include <loguru.hpp> #include <sstream...
d09ffd3f8bb7df0caf1e7d016fb76da4566d532ac5a1573786e542994a5262e1
C++
7,579
239
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010-2011 Hauke Heibel <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 F...
ee860d4535b8d04ef3e76e624a7d222823ac93aefede7f45e137377751ff4998
C++
7,600
351
#ifndef DEF_serviceFuns #define DEF_serviceFuns #include "IncludeDefine.h" template <class T> T sum1D(T* a, uint N) { T s=0; for (uint ii=0;ii<N;ii++) s+=a[ii]; return s; }; template <class numT> int funCompareNumbers (const void *a, const void *b) { numT va= *((numT*) a); num...
fe393ee76abc4cee18f2cd73d870bc204c3c6e94cd60fe19911899b5be002812
C++
7,630
131
// (C) Copyright 2006 Eric Niebler, Olivier Gygi. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Test case for tail_variate_means.hpp #include <boost/random.hpp> #include...
c1380cfaab82f57d18ab0dad9d11058ce3bd5891a356565f5bea7d02281ffe31
C++
7,648
226
// boost run_timer_test.cpp -----------------------------------------------------// // Copyright Beman Dawes 2006, 2008 // Copyright 2009 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 f...
ae386335ee5bb78b78ba6f1477ff6ccdfc3a1755edbb1a970e4ec956e0b3a066
C++
7,662
227
#include <jni.h> #include <string> #include <iostream> #include <cstring> #include "xdfwriter.h" // a non-zero value to let the constructor of class XDFWriter skip the file header static const int SKIP_FILE_HEADER = 1; /** * Most simple way to get a unique stream ID from the zero-based index, * considering the stre...
37b6855a1b20ba98cfa010886fdf9184d4f86a0528639f768610a67a70098f34
C++
7,692
241
#include <boost/config.hpp> #include <boost/config/pragma_message.hpp> // // bind_function_ap_test.cpp - regression test // // Copyright (c) 2015 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...
9d136ec249bb3b3542658fb1f2be2027d77ae5f550ee88f3be3c682ca76b993d
C++
7,692
262
// // 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 // //------------------...
e5692b0e0c49dc81022ea31bec42b5ab100e8376d5a57f5ef15b71ebc4ec32cb
C++
7,713
265
/** * 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 "densematrix.h" #include <random> #include <stdexcept> #include <thread> #include <utility> #include "...
b5e4d6190e5337d6f4d785b51512a21685af5e94552e27072059cd207f7fc206
C++
7,714
261
// // 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 ...
cbfc5e9d4b2497cbc4b586a95501283055012d7c6b667286ec848a56293f8489
C++
7,717
298
// // 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 ...
966013ff6f7bf61fd99cedc519ace452f50f4fa99948f979f261c916e9583902
C++
7,727
173
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Softwar...
a2e0280bd5559496f2e61d5c4195a75396c94dad227d1b2314c99bd870aae310
C++
7,736
286
#include <boost/asio/any_io_executor.hpp> #include <boost/asio/defer.hpp> #include <boost/asio/post.hpp> #include <boost/asio/strand.hpp> #include <boost/asio/system_executor.hpp> #include <condition_variable> #include <deque> #include <memory> #include <mutex> #include <typeinfo> #include <vector> using boost::asio::...
987c9efbd84364152bcb4c02d906f22e0479a4c2653205de0c3541018c113876
C++
7,759
219
#include "time_receiver.h" #include "api_config.h" #include "inlet_connection.h" #include "socket_utils.h" #include <asio/io_context.hpp> #include <chrono> #include <exception> #include <limits> #include <loguru.hpp> #include <memory> #include <sstream> #include <string> /// internally used constant to represent an un...
87572279a0dd3beadcf30687682ee21ad4eab4a64e4a9e296cfa9dabffbb7f10
C++
7,767
222
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free So...
cee44618234bb995a95ddc23de3fc074b0a8d507eb96ac89ac72c49adf324c4e
C++
7,773
285
#include <boost/asio/any_io_executor.hpp> #include <boost/asio/defer.hpp> #include <boost/asio/post.hpp> #include <boost/asio/strand.hpp> #include <boost/asio/system_executor.hpp> #include <condition_variable> #include <deque> #include <memory> #include <mutex> #include <typeinfo> #include <vector> using boost::asio::...
c4ea8ae481ae710ee8a970747b773bf4b3a029fc36635fc1cca294726a1c9374
C++
7,814
179
#include <boost/config.hpp> // // bind_nested_rv_test.cpp // // Copyright (c) 2016 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/make_shared...
72164c794ad2edcbeafab7440a390d7a3d8da5da7ae70e70f71c6b28e946514d
C++
7,819
259
/** * @file shortest_path.cc * * Implement the BGL shortest path algorithm wrappers. */ /* * David Gleich * 19 April 2006 */ /* * 18 April 2007 * Added src/dst vertex pairs to all the calls to allow partial searches. * Corrected small documentation bugs. * * 9 July 2007 * Switched to simple_csr_matrix gr...
6535c9a8207b2154c50aeb77dc437cf45e02420628e9189851e37f08e715340e
C++
7,844
226
/** * @license * Copyright 2016 Google Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
66e364ef7f16f5155caa654dcd4964595074151e4d78e98edb0a0162c2b4a02b
C++
7,859
210
// test_system_clock.cpp ----------------------------------------------------------// // Copyright 2008 Howard Hinnant // Copyright 2008 Beman Dawes // Copyright 2009 Vicente J. Botet Escriba // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt /* This code...
894b1d5464080801188ba9af13eaa29f5e97b1bcf9bb8c13b6f00f7d6228a565
C++
7,874
215
// 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 Daniel Gomez Ferro <dgomezferro@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public...
b0db933c2a1d77f86a625ea3f2a27b33e2b1dfebedddbdc8126050d69ef180ef
C++
7,887
215
// 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 Daniel Gomez Ferro <dgomezferro@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public...
a0e4d20ab7a66f217b42357c444d9bbbb5f33184256c7bff661427881e848ad5
C++
7,889
211
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Soft...
09547c4c0fa0680605084ff2751494fe32ba97050946eea609309e06f405e36c
C++
7,891
163
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free So...
a82e29b8a06bd15356d29c231c4a816d5e8e37cc58bf006b0ff3531fe296e9db
C++
7,896
370
/*************************************************************************************************************** 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...
762229763427a4638792aa68017e73f07fc7009e34271e144f3adc0a332e24fc
C++
7,898
242
//---------------------------------------------------------------------------// // 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...
24bcc6ac3ef9e23097071e425cfab4eddf8729ccce74f458f3750e37c56f51d1
C++
7,907
228
//---------------------------------------------------------------------------// // 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://...
ac4d2549cb32c321df610a08baf699929cda7a3bb912549ca270a2dee45bf4a5
C++
7,909
186
#include "SpliceGraph.h" #include "sjAlignSplit.h" #include "ReadAlign.h" void SpliceGraph::findSuperTr(const char *readSeq, const char *readSeqRevCompl, const uint32 readLen, const string &readName, Genome &mapGen) {//find the candidate superTranscripts: seed-and-rank algorithm implemented //hardcoded for now fl...
988152af94fc693dbc0e734a13a7aa994c8f47260ac8a19ca4740867517e909a
C++
7,914
219
// Copyright (C) Eric Niebler 2008. // Copyright (C) Pieter Bastiaan Ober 2014. // 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 <...
e1d7db6265e812109a9e1a92eb4dd644d9bbdec6098d7077d070f8486e13a1e2
C++
7,922
210
#include "matcher.h" #include "overlapanalysis.h" #include "simd.h" OverlapAnalysis::OverlapAnalysis(){ } OverlapAnalysis::~OverlapAnalysis(){ } OverlapResult OverlapAnalysis::analyze(Read* r1, Read* r2, int overlapDiffLimit, int overlapRequire, double diffPercentLimit, bool allowGap) { return analyze(r1->mSeq,...
c03740a4c6a2d08d9e8a09635528b27ba996d9d447182e767a261c873f796fa7
C++
7,941
255
#include "resolver_impl.h" #include "api_config.h" #include "resolve_attempt_udp.h" #include "socket_utils.h" #include <boost/asio/ip/udp.hpp> #include <loguru.hpp> #include <memory> #include <thread> // === implementation of the resolver_impl class === using namespace lsl; namespace asio = lslboost::asio; namespace...
4e6e4cfa3f15c78860b339d558f13a653e41bdb3ab96400cb3ad8152f5237239
C++
7,955
214
/* 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 <utility> #include <boost/callable_traits/has_varargs.hpp> #include "test.hpp" struct...
254fc20b4f60ecadc582fad768345cc3e6dbeb1f5dda5c0a007fd13dec890ffa
C++
7,968
237
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Ilya Baran <ibaran@mit.edu> // // 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 Foundation...
a17fc2d9469b04642cd01142670b38f136dd2c1bbd5ec576703b6646ff2fc0c5
C++
7,969
264
#include "processor.h" #include "peprocessor.h" #include "seprocessor.h" #include "overlapanalysis.h" #include "simd.h" Filter::Filter(Options* opt){ mOptions = opt; } Filter::~Filter(){ } int Filter::passFilter(Read* r) { if(r == NULL || r->length()==0) { return FAIL_LENGTH; } int rlen = r...
ff46cb8edc929a96419b57ad5f777b40188bbef2df568c9bc623edc5416d87c9
C++
7,987
229
//---------------------------------------------------------------------------// // 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...
c7e2fdcf2d20c660b04b897dabde1feec800c30e2e526385205d4efd8767ce5a
C++
7,992
212
// 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 ...
16db0cfc33175b2cf06e4f63c37873bf0e864d5e1255fa2897d4d1752a4bf8ce
C++
8,027
131
// (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_tail_variate_means.hpp #define BOOST_NUMERIC_FUNCT...
4220be2ce320ed9da8f942bb9af65b1fb22f5de05e73984432228f92892ed047
C++
8,031
338
// // 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 // //------------------...
98205a5a8399db621321ebb7ee68974c388e0de4a73c517c3075f792b6c0e8c0
C++
8,043
352
// // 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...
f0f66090fd566e61d73704871d409fab87b89031ff629e73d37f2d7b6622a8e1
C++
8,060
188
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Softwar...
b676d116f3ce718d4e5a0c15ca6c55288a802e195d6ded9a9ddc7821e51ca53e
C++
8,081
325
// // io_context_strand.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...
eacef8be7000d202c75a9468004ce91f197d8e589617beac60c1c689fec1fe3e
C++
8,090
153
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free So...
ec3d67eeff49ca976946d0984be6cb0fde2e04eac8e30c70d92daa8464119411
C++
8,096
282
// // 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 // //------------------...
b93930bb1134e4974c3682fcba5b6bdae25fb9a5fa13e3fa3cd3deeff5a7d000
C++
8,100
269
// // 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 // //------------------...
5ab7599fc22c60fe7b790060968b6d8b8a363292a464c0168c635152a3dd0ca2
C++
8,108
253
// 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 ...
eda437c99a94d2db4e3612b7afbe2ef28cb67ec02cc7319ac64de7a76107b0c9
C++
8,112
242
// // 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) // // Disable autolinking fo...
dfcfda6b9c16de1130940f76884080a9e6717e691bd5d804ce838e510e937389
C++
8,120
114
/*<- Copyright (c) 2016-2017 Barrett Adair Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) ->*/ #include <boost/callable_traits/apply_member_pointer.hpp> #include "test.hpp" struct foo; template<typename Input, typename Outpu...
6843adc46ffaa0b3a45a50df9167f1bdd2e3ccc109f1e509ebf4db12b50e09a7
C++
8,166
248
// // generic/stream_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) // // Disable au...
452b451dafe7ac623fc0f13f694062a5e5852667cd639233d29b03730406a455
C++
8,173
219
// // composed_2.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...
d19198b57844642ef41db3111f4f0d7826410dc6a62a819938c332e5a37d400c
C++
8,181
301
#include "read.h" #include <sstream> #include <cstring> #include "util.h" Read::Read(string* name, string* seq, string* strand, string* quality, bool phred64){ mName = name; mSeq = seq; mStrand = strand; mQuality = quality; if(phred64) convertPhred64To33(); } Read::Read(const char* name, const char* seq, const...
668659d86c76e26e8ea4dd1049f50fc3751f495b8926a8e218d2825a39daffa2
C++
8,191
217
#include "genomeSAindex.h" #include "TimeFunctions.h" #include "SuffixArrayFuns.h" #include "ErrorWarning.h" void genomeSAindex(char * G, PackedArray & SA, Parameters & P, PackedArray & SAi, Genome &mapGen) { mapGen.genomeSAindexStart = new uint [mapGen.pGe.gSAindexNbases+1]; mapGen.genomeSAindexStart[0]=0; ...
9254afb2a2fa8ff3e751d9bfafd2b86f4d389ee8b6e647ad09416dd61962229c
C++
8,211
171
#include "GTF.h" #include "ErrorWarning.h" #include "streamFuns.h" #include "TimeFunctions.h" GTF::GTF(Genome &genome, Parameters &P, const string &dirOut, SjdbClass &sjdbLoci) : genome(genome), P(P), dirOut(dirOut), sjdbLoci(sjdbLoci), superTrome(P) {//initialize; load gtf file; returns number of ...
8351951cc55e0025a080b8db0454ea685f1306cd0782cafc2a91d508bd8ea02e
C++
8,245
334
/* * bayesnet.cpp * peer * * Created by Leopold Parts on 03/11/2010. * Copyright 2010 __MyCompanyName__. All rights reserved. * */ #include "bayesnet.h" #include "Eigen/Eigen" #include "specialfunctions.h" #include "ossolog.h" using namespace Eigen; using alglib::lngamma; using alglib::psi; double cNode::...
46b2df413e8a1d0c083cb8f1b7527ada2aec501bdcaf557538b28fe7a1469f0c
C++
8,255
295
//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...
f6040da3723299893acdf0c205ec902a74999305f11d6aa23b06b95b054da96b
C++
8,273
228
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Softwar...
97f2721690241aaa1b136a1fe13af47c550a323cc0f39baf60393621c19eec39
C++
8,294
297
// // experimental/awaitable_operators.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)...
ff5cfc082f048ac990091983561c8f8d4bee8fb519c3cf249970509f88375d6c
C++
8,295
232
#include "../src/cancellable_streambuf.h" #include <boost/asio/io_context.hpp> #include <boost/asio/ip/multicast.hpp> #include <boost/asio/ip/tcp.hpp> #include <boost/asio/ip/udp.hpp> #include <boost/asio/ip/v6_only.hpp> #include <catch2/catch.hpp> #include <chrono> #include <condition_variable> #include <future> #incl...
84bbc4874a36b9be0712cea77b9bbe40fd7c12f71eecff0d3ae08efcbb9e9e44
C++
8,322
346
// // 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 "nodejs_par...
26c1127a9027c7f83050b1e7a5931a1cce1b97df2206c15c6546daa17ffffb41
C++
8,324
227
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public //...
1005d6418ded77a8c5021371b55325899c676c41ad410d4109e7d3122fe8f79e
C++
8,336
302
//---------------------------------------------------------------------------// // 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...
3f7550e8930f47770aaeb3c97f6db9c2e67e5786eca48c04395cf3b5fac90a19
C++
8,347
270
// Copyright (c) 2011 Helge Bahmann // Copyright (c) 2012 Tim Blechmann // // 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 memory ordering/ fence operations // work as exp...
2f582185418eda6ec7726c50572986bcf3bd39cbec6f63e933d64bf3de6cb23a
C++
8,348
283
/*************************************************************************************************************** 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...
cf5c8bcd3f7d7a14a703c78af44db2e2afe424cd76b451c49d194f267813631c
C++
8,350
95
/*<- Copyright (c) 2016 arett Adair Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) ->*/ #include <boost/callable_traits/apply_member_pointer.hpp> #include "test.hpp" struct a; struct b; template<typename Input, typename Outp...
cf6eff0da5c938f8f8f281828388a59a332ebd8829e27836de082229660b897c
C++
8,357
250
/* * David Gleich * Copyright, Stanford University, 2006 */ /** * @file max_flow.cc * Implement the BGL max_flow wrappers. */ /* * 16 April 2006 * Initial version * * 8 July 2007 * Added kolmogorov from boost_mod * Added edmunds_karp from boost * * 9 July 2007 * Switched to simple_csr_matrix graph typ...
95b88eb6b3e1c78e6fa43dd8310d05692a706f713d2e941df721b112e91a3e44
C++
8,390
225
// // composed_2.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...
e3f1693494d9b522013fb39e2fb397676b197325f2b173f914ff0e83dd895759
C++
8,414
317
// // 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 // //------------------...
a41286a9723cb5dbee69b0251287402928732ff1b230c66b3c74999e5469b09c
C++
8,419
262
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2010 Manuel Yguel <manuel.yguel@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 ...
887ddb639d67b1e7e6c4415c43ce858fc85b877dc6cdabb49c92795aa35c2806
C++
8,445
275
#include "resolver_impl.h" #include "api_config.h" #include "resolve_attempt_udp.h" #include "socket_utils.h" #include "stream_info_impl.h" #include <asio/io_context.hpp> #include <asio/ip/basic_resolver.hpp> #include <asio/ip/udp.hpp> #include <exception> #include <loguru.hpp> #include <memory> #include <pugixml.hpp> ...
77be73a1dbdebe0b79913a6735be13ec26cd4e4f9e4f816f6b698ca2e836be34
C++
8,448
167
/* 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.hpp> #include "test.hpp" #ifdef BOOST_CLBL_TR...
8691a177726e31a313c8fd78b6255d0b48d7e1dc13cdbf2e630ef51477762a35
C++
8,453
215
#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...
c6c274ccfea52a4fa4d1fd8948c88bfad643f15285ce4418458066823c57d580
C++
8,453
265
//---------------------------------------------------------------------------// // 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://...
8b0611f21b6cfcf7c6d047158d7348b15f6b87a477e21044051ec9b16b982624
C++
8,457
229
// // composed_2.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...
622fb81302e2206abfe7511c9d65b8646bacd5e40eb9d5e14a8d4701804be7ff
C++
8,470
316
#include "emitterutils.h" #include "exp.h" #include "indentation.h" #include "exceptions.h" #include "stringsource.h" #include <sstream> #include <iomanip> namespace YAML { namespace Utils { namespace { enum {REPLACEMENT_CHARACTER = 0xFFFD}; bool IsAnchorChar(int ch) { // test for ns-anchor-char switch ...
30a985f551d00db28dfcffb03092f62fa6480f5eac46df93d69a28a3cbb624d8
C++
8,527
297
//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...
ee3cc1e76af86eac614a513db4c70ac7853015fe858f0026b576f17bb369ae30
C++
8,534
230
// // c_callback_wrapper.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.hp...
be8d087b058e807484973411e334be227daf654c715a91fb15896267d7b8ef8b
C++
8,571
254
//---------------------------------------------------------------------------// // Copyright (c) 2013-2014 Mageswaran.D <mageswaran1989@gmail.com> // // Book Refered: OpenCL Programming Guide // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.b...
f0608019ff9447c5f38088642e445baae0f3a7735c19722ec1db756460569861
C++
8,583
209
#include "signalFromBAM.h" #include <iostream> #include <regex> void signalFromBAM(const string bamFileName, const string sigFileName, Parameters P) { bam1_t *bamA; bamA=bam_init1(); double nMult=0, nUniq=0; if (P.outWigFlags.norm==1) {//count reads in the BAM file BGZF *bamIn=bgzf_open(bamF...
4351d64d7b975f67ac68e61f38d9fd3aa057f67412fc7b4c65f7c20579ffc6b5
C++
8,606
309
// 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...
f595c3182ceaa22225a17d2f24970e08d67a2e3e029aeb478a51b9e1e47fd42b
C++
8,610
232
/** * @license * Copyright 2016 Google Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
aa7de39aaf74a46ac98fd34ab2b0b6be455f81e2a9a77b44e51554777e7e0c3e
C++
8,622
276
// 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 ordering.cpp by Helge Bahmann and Tim Blechmann. // The test Was modified to use atomic_ref te...
89708d5eee7b403c6ed838f4973994eba4505341040fbf4d50f5ba3364cfcbe7
C++
8,652
228
// // 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>...
dccd988d45418def20a8086fadb7b57a15b9a703e1ccc3586dc3642286c2c297
C++
8,662
183
#include "GTF.h" #include "serviceFuns.cpp" #include "streamFuns.h" //#include <ctime> #include <map> #define GTF_extrLoci_size 6 #define GTF_extrTrStart(ii) ((ii)*GTF_extrLoci_size) #define GTF_extrTrEnd(ii) ((ii)*GTF_extrLoci_size+1) #define GTF_extrTrID(ii) ((ii)*GTF_extrLoci_size+2) #define GTF_extrExStart(ii) ((...
87ea7a17adbe0b4e8a45b36aa2772b854ae00f0780f62101e1342a95fae441a7
C++
8,666
230
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free So...
421b3d6bd227d12830ff929cacc89da1b2b52e41a90e8991ae3a8e14e9328d51
C++
8,668
337
// This file provides the interface between Python and the C++ // implementation of the fast marching method in fast_marching.cpp #include "Python.h" #include "numpy/ndarrayobject.h" #ifndef NPY_IN_ARRAY #define NPY_IN_ARRAY (NPY_ARRAY_ALIGNED | NPY_ARRAY_ENSUREARRAY | NPY_ARRAY_NOTSWAPPED | NPY_ARRAY_BEHAVED) #endif...
daf22e169d2ac63a4dd656c33ebc3d4a3a180bd30954ecbb0ff3a15084b023d1
C++
8,675
278
// 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...
d6b343cd9e1da82183399c3b79342cca39a8298cbe2ad9e53754113bc1bc0eed
C++
8,679
292
// // buffers_iterator.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 ...
82b126e290234c6b689b9b4d81d3dcbc1c0c655db1670284e19f6394d7804d12
C++
8,692
232
// // c_callback_wrapper.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.hp...
2c7eaf8bbebf9c0b612e8f8d1966220214d93dd1da8315d1397e994438f5f558
C++
8,710
254
// // 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...
f4a30581bce6612edd1de8ac716a2093e73eec35e5488337a9276483371a8c16
C++
8,721
238
// // network_v6.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:/...
d8ade6966ccde2a6559a52a05d706511b49142d59a6feb7706bd2a354a9de601
C++
8,723
188
// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #include <RcppArmadillo.h> #include <Rcpp.h> using namespace Rcpp; #ifdef RCPP_USE_GLOBAL_ROSTREAM Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); Rcpp::Rostream<false>& Rcpp::R...
a71901ada753e214e1cd177b32a75e502bd4e30eaa6e2aaa8b93171b1bda8f6a
C++
8,770
308
// Copyright 2010, 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 ...
564b9bee0ca3f86c375e86901d327ca8f47043b7f6a947f09cd646d52c97e053
C++
8,779
307
/* ------------------------------------------------------------------ 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 ...
3b2ffcf75ca99927d767a16546a8a6cb8aa51ea7b09b0e1979ce15d4d76e9f2e
C++
8,788
263
// // generic/raw_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) // // Disable autolink...
aba91e0e76f39ddc1dd8277372264e75ddf5f7f79a0aee6089a42caf434268f6
C++
8,788
221
#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...
8a916d82ab5a91448c78fac02a658a3d80f0d298469d5b9937819721d980acdf
C++
8,798
394
// Guy Shechter // June 2004 // Variables used for time debugging. TV tv1,tv2; TZ tz; // // Call this function to build the k-d Tree. // Tree *build_kdtree(double *reference, int N, int D, int *index, int L,int offset) { Tree *treeptr; if ( (treeptr = (Tree *) malloc(sizeof(Tree))) == NULL ) mexPrintf...
6d25d897ba581fc99ae4905aa6aeebabc9b84dbcce82f8f3b87a86e0e7ceb99a
C++
8,800
255
// // 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...
f78ed99d408e4dbfe94a426f5e769f196f369d3b900c8f981c98c4ca9c30b4db
C++
8,822
232
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <omp.h> #include <iostream> #include <sstream> #include <vector> #include <fstream> #include <future> #include <map> #include <limits> #include <string> #include <boost/program_options.hpp> #include <boost/noncopyable.hpp> #include <boost/date_time/...
a2f0f566f8c7917920af2a7133b8fe3dac7ccff1887d682e9a8aaf82ec00531a
C++
8,833
232
// // 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>...
d9672c1b51c578a3c2f781917c06a5820a27ffb5df498509562a4544e8c37c46
C++
8,835
167
#include "Parameters.h" #include "ErrorWarning.h" #include "streamFuns.h" #include <fstream> #include <sys/stat.h> #include "serviceFuns.cpp" void Parameters::readFilesInit() {//initialize read files - but do not open yet if (readFilesType.at(0) == "Fastx") { readFilesTypeN=1; } else if (readFilesTyp...