sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
d4379f1b91b4100649599e256e587ca3639da88ae96cc86aa2045b45b029e9b0 | C++ | 3,966 | 95 | #include "IncludeDefine.h"
#include "Parameters.h"
#include "Transcript.h"
#include "ReadAlign.h"
#include "ErrorWarning.h"
#include <random>
void ReadAlign::multMapSelect() {//select multiple mappers from all transcripts of all windows
nTr=0;
if (nW==0) {//no good windows
return;
};
maxScore... |
2fe1ab74120edee9e40dfb40a03570a624da955e18c3669ae585aa60d9c7ffb7 | C++ | 3,981 | 182 | // Special tests for erase_begin, erase_end and clear methods.
// Copyright (c) 2009 Jan Gaspar
// 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)
#include "test.hpp"
int MyIntege... |
683c5c3f8fccb188a0193806626d2babab0d9a17711738f66ea81ef41afb795b | C++ | 3,982 | 86 | // (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_mean.hpp
#include <boost/random.hpp>
#include <boost/t... |
ac8853159781293cb116fe39e74e6ab319b014733a82973bdd275bbd799a6bbd | C++ | 3,986 | 99 | // 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... |
54989b12f888302a095cdee598fe2662246221623aac818c59466e5412976cec | C++ | 3,987 | 183 | /*
*
* Copyright (c) 2004
* John Maddock
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent version.
... |
b012b7b4c766d6d71c9a7c2096cfd629722385e06640b5b995758048b27f9368 | C++ | 3,988 | 150 |
#include "auxilary_classes.cpp"
class SphereInterpolator
{
public:
REAL *barycoords;
int *indices;
int size; // size of LUT
int sN; // (sizeofLUT-1)/2
int nverts; // number of data vertices
REAL *dirs;
REAL beta;
REAL inva;
REAL b;
int *idx;
REAL *interpw;
... |
701e0f3191bf9803466a43b38a065d0112ced32b983c016cceb08838edaff4e9 | C++ | 3,997 | 122 | /***************************************************************************************************************
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... |
43686509f912152cc90deb98f43aef8ac3120cf6e21f13b217703d54285cba2c | C++ | 4,010 | 118 | //---------------------------------------------------------------------------//
// 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... |
7fd49449f83dd127e22adcc9314ca9dc8190b4880624e2a24cb454b554db0dcb | C++ | 4,011 | 122 | #include "netinterfaces.h"
#include <loguru.hpp>
using lslboost::asio::ip::address_v4;
lslboost::asio::ip::address_v6 sinaddr_to_asio(sockaddr_in6 *addr) {
lslboost::asio::ip::address_v6::bytes_type buf;
memcpy(buf.data(), addr->sin6_addr.s6_addr, sizeof(addr->sin6_addr));
return lslboost::asio::ip::make_address_v... |
ed4bf4e1866f89fb69f3293346da6e6a5eca685f48d7abbfeb091fdcf6476853 | C++ | 4,012 | 91 | #include "BAMbinSortUnmapped.h"
#include "ErrorWarning.h"
#include "BAMfunctions.h"
void BAMbinSortUnmapped(uint32 iBin, uint nThreads, string dirBAMsort, Parameters &P, Genome &genome, Solo &solo) {
BGZF *bgzfBin;
bgzfBin=bgzf_open((dirBAMsort+"/b"+to_string((uint) iBin)).c_str(),("w"+to_string((long long) P... |
a4b90ad4e65590ba0140995843a6943ae2141a64423b45ad6aed51c61034363d | C++ | 4,014 | 124 | //
// 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/ip/tcp.hpp>
#inclu... |
c5ec081eb7dd2e0e2130be850347a43a9f4083e2cbcd2321f6798cb0c2e86fe3 | C++ | 4,016 | 109 | /**
* Copyright 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
/*
C++ code for solving the linear assignment problem.
Based on the Auction Algorithm from
https://dspace.mit.edu/bitstr... |
84b3859ea2d82f7946fefb23bd6082517e54e8d9f6ac247728f9aa9b9fc682ff | C++ | 4,019 | 146 | //===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
11a6c04e2f0c7f9a2724929c5fdba6ad385aed331ff7bdbba4aa15044824d65e | C++ | 4,026 | 171 | //
// prioritised_handlers.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/asi... |
57bf0b88e5045fd1ad1abfb1be84337e5d459d0a8c3f92dae2b57524ec052c25 | C++ | 4,035 | 151 | #include <boost/config.hpp>
#include <boost/detail/workaround.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(di... |
b9863f1baa759e6abccbd3df081b797f887afc6aef29c453818eeb655f7f9489 | C++ | 4,038 | 154 | // Copyright 2003, 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 ... |
38a776a882574b2dfa3291b2851e2ec0571517da57d74922018d3015500fc4fe | C++ | 4,042 | 121 | /*
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/is_cv_member.hpp>
#include "test.hpp"
struc... |
506f94281348ebabaeb257e45746c0003dabd3273a5b0141164bf363b86dfbca | C++ | 4,071 | 128 | #include "ReadAlign.h"
void ReadAlign::waspMap() {
if (!P.wasp.yes) {
waspType=-1;
return;
};
auto nTr1 = nTr;
auto align1 = trBest;
auto Var1 = mapGen.Var;
if (P.pGe.transform.outYes) {
nTr1 = alignsGenOut.alN;
align1 = alignsGenOut.alMult[0];
Var1 ... |
b44428ea54fc87303fdf6d4ae39058e1345b66a2bb664a16511732ce7892cf59 | C++ | 4,075 | 165 | //
// experimental/concurrent_channel.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)
/... |
eb0786efa911fc65da55bc58a454a6184c1ffd691c2fb8f13b145886f80516a2 | C++ | 4,075 | 130 | //---------------------------------------------------------------------------//
// 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... |
b5cbdf59e9998263a272aa2d2e1886e5a535c9a39dfa45df14420c177fe6f3ff | C++ | 4,077 | 157 | //
// context_as.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.
... |
18331ee2ba8df24771784ae3a6f1cc2aae75393c1940952c37dab8545a4e83f9 | C++ | 4,091 | 104 | // (C) Copyright Eric Niebler 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Test case for pot_quantile.hpp (weighted feature)
#define BOOST_NUMERIC_FUNCTIONAL_STD_... |
8ca2a10fbbfef484ccfa0134e3fdccde50dcf41ea12733a9888980d25ce36f0f | C++ | 4,094 | 117 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
// 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 ... |
8283d068ecb7167140f1c2dd6cd126628a59e79a3ac4d8ae15507e0d2f14be53 | C++ | 4,108 | 131 | // 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... |
aac63027af504bd0bd9f8ef9cfed7b5c2f36f235561e6f4a702f6fe57af45414 | C++ | 4,111 | 122 | // (C) Copyright Eric Niebler 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Test case for p_square_quantile.hpp
#include <boost/random.hpp>
#include <boost/test/un... |
2cc0e4ba2db2e194af1e6dea835b4cba21387b81ebf5d87ef6f9d91d064c7482 | C++ | 4,117 | 134 | /*
Copyright (c) T. Zachary Laine 2018.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
*/
#include <iostream>
#include <boost/algorithm/find_not.hpp>
#defi... |
81ea59efe8b682268770d218f26d52a5dfb87dbf010e1f766875bf821f45d44a | C++ | 4,118 | 144 | //
// writable_pipe.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 t... |
03062204b5f8946898445a459868aed873ad40d4bef78df53b20b976b14255a9 | C++ | 4,126 | 100 | // (C) Copyright Eric Niebler 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Test case for weighted_p_square_quantile.hpp
#include <cmath> // for std::exp()
#includ... |
e31fdffba7e50446f8c6849377a287758b545fe0fe47b8501483c08e88b3818c | C++ | 4,135 | 131 | // 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... |
0eabdf4f98aadbb0f29e6748ddaefc7b204551c5c7cdf825678d5c2f3b11d01e | C++ | 4,136 | 103 | // (C) Copyright Eric Niebler, Olivier Gygi 2006.
// 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_p_square_cumul_dist.hpp
#include <cmath>
#include ... |
131e3d87e9a762a3a8972ad560517eef6cb206dad1f206c5163629d8e73e208d | C++ | 4,145 | 164 | //
// assert_exp_test.cpp - tests BOOST_ASSERT expansion
//
// Copyright (c) 2014 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#include <boost/config.hpp>
#include <boost/current_function.hp... |
3bfe2cff312f8c48833e6de6de0ca6eb122e5eeea109eb1821a9837efa2e671d | C++ | 4,145 | 108 | #include "samHeaders.h"
#include <iostream>
#include "BAMfunctions.h"
void samHeaders(Parameters &P, Genome &genomeOut, Transcriptome &transcriptomeMain)
{
/////////////////////////////////////////////////////////////////////////////////// transcriptome BAM header
if ( P.quant.trSAM.bamYes ) {//header for tra... |
3d385b37f445c7045395e2e029ee7c6fcc41d368216a7e842095e6876d5d6c0b | C++ | 4,145 | 127 | //
// 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 ... |
495c4ea3735775aac0589119186dac2ec9335130ba1d9b4798cc2d536d0cb5d9 | C++ | 4,145 | 141 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// 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
// License as published by the Free Software Found... |
5fae70dbceba374eea1b59ccffd69d00d3805eb6290ae29c4066bba419711570 | C++ | 4,145 | 100 | // (C) Copyright Eric Niebler 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Test case for weighted_extended_p_square.hpp
#include <iostream>
#include <boost/random... |
6d062cdc09bf2d1d9d279a83d2987ffc1af1178ebe8dcf158cca51e178174f17 | C++ | 4,147 | 119 | //---------------------------------------------------------------------------//
// 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... |
5e97ed41741867b791c9fd5f541ba9db1f0f5f9d03a79bae5b0536522014efcd | C++ | 4,150 | 121 | /*
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/is_const_member.hpp>
#include "test.hpp"
st... |
b407e19d749f6a56a2cb8740b442593fb0cec6e426537a414a2ecc511ce40643 | C++ | 4,153 | 128 | /*
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_member_qualifiers.hpp>
#include "test.hp... |
9b24a9a010bdcd94320a1a61ec89d7d936d6699717f6bdef264239910b43e99b | C++ | 4,169 | 123 | // (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... |
313eab6f7bdc19049c5e90bcc25b8ee0e87d7d466eff7dc61900788017720193 | C++ | 4,171 | 92 | #include "genomeScanFastaFiles.h"
#include "ErrorWarning.h"
#include "SequenceFuns.h"
uint genomeScanFastaFiles (Parameters &P, char* G, bool flagRun, Genome &mapGen) {//scans fasta files. flagRun=false: check and find full size, flaRun=true: collect all the data
uint N=0;//total number of bases in the genome, in... |
1ca88577ea4459a73a423d1e020db145098d01a715c4501d5747afb69dc3f846 | C++ | 4,175 | 172 | //
// experimental/coro/exception.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2021-2022 Klemens D. Morgenstern
// (klemens dot morgenstern at gmx dot net)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://w... |
62b8422608cffc98ea551b38e115b07e6e6f9d4e53fd1bb94245d8d3c038a736 | C++ | 4,179 | 124 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 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 Soft... |
df7d5b4cb87f1f1f18014ed5ac7bac21a07f5807d9dae9bf9dd256a8ef342708 | C++ | 4,179 | 122 | //---------------------------------------------------------------------------//
// 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... |
6a8f927591cb8e29218da18f4702e255922a6e5eac9ad6206cf40f02e71de942 | C++ | 4,180 | 149 | /***************************************************************************************************************
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... |
8abf7c1270e782aed7aed1c5cdc4fccbc0805fd7399b96157e1d729eaad36ab6 | C++ | 4,180 | 104 | // 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)
#include <boost/atomic.hpp>
#include <boost/config.hpp>
#include <boost/cstdint.h... |
9aa2228de5ac3c0ea372183b5c82efc30de239fa73143cdb01fcbf1523d0d560 | C++ | 4,185 | 155 | //extension_velocity_marcher.cpp
#include "extension_velocity_marcher.h"
#include <stdexcept>
#include <iostream>
#include "math.h"
void extensionVelocityMarcher::initializeFrozen()
{
//loop over phi to find zero values
// and mark them as frozen
for (int i=0; i<size_; i++)
{
if (flag_[i] != Mask && ph... |
f4b142a26ac1a346bb69824d9ad560fb4bf5c89f7654c036c31ba182366472fb | C++ | 4,189 | 113 | /*
* 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)
*
* Copyright (c) 2020 Andrey Semashev
*/
/*!
* \file wait_on_address.cpp
*
* This file contains implementation of runtime detection of \c WaitOnAddress ... |
e489868b4cdc66f4fc33bc2326ac86bc1acc5808ab58bbb288c9dcfc330faddc | C++ | 4,197 | 110 | // 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 ... |
7d83b3b9d20a32537434dba2a593bf617064cd71a94c07f316127e519c511a40 | C++ | 4,206 | 130 | // french.cpp ----------------------------------------------------------//
// Copyright 2010 Howard Hinnant
// Copyright 2011 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// Adapted to Boost from the original Hawards's code
... |
22a77b2f5752a606fae3dde9f9805acd4a8074ba003bcbadc4669e160ea4b5cd | C++ | 4,208 | 149 | //
// 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... |
7c254a51f71c103ae87dbc084b5f98b8cdd912fef4bfc7f1a3e060d9853615bb | C++ | 4,209 | 116 | // 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... |
a4638ed4898c431007f2064c8f6990cdab4c02303bca2d5ea4a4f8d6a294c143 | C++ | 4,209 | 136 | //---------------------------------------------------------------------------//
// 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... |
578438b8889f215cfabf394e223abc7094742c15d55acd35d6c55336903fead0 | C++ | 4,225 | 135 | // (C) Copyright 2005 Daniel Egloff, Eric Niebler
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#define BOOST_NUMERIC_FUNCTIONAL_STD_VECTOR_SUPPORT
#include <boost/test/uni... |
97371cb9c2dd37ddc3eb58f3cd6a5b7a14211a03c2a5fa63f8d9162c2e631e10 | C++ | 4,228 | 96 | // 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... |
13c6adfdc3aad65b9a302c4012fff311d92d176742ea979bd6e1eb65c37f81b6 | C++ | 4,231 | 151 | #include <boost/config.hpp>
#include <boost/algorithm/sort_subrange.hpp>
#include <boost/algorithm/cxx11/is_sorted.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <vector>
#include <iostream>
#if (__cplusplus >= 201103L) || defined(BOOST_NO_CXX98_RANDOM_SHUFFLE)
#include <random>
std::defa... |
5edf9c034e83dcaa9a1ae4c58e9d5251e6306d361ae8d2469ec3739d4fb4966d | C++ | 4,241 | 163 | //
// connect_pipe.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... |
6baa0d43229e89ae1201d0d9dd8b115987753907e5ee3459979f747a55ded5db | C++ | 4,244 | 144 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
//------------------... |
67e5cb302c3076a95416f4f7c0b236cc5fc31e3b991646c284e68675b653a62b | C++ | 4,246 | 148 | // 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... |
9335cf317483cdfe84754a84b70c0f95c6bf736c2440fb76ef995d0c41b9c554 | C++ | 4,259 | 133 | // 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... |
8577b416fe72bf408128cfb68f00f5e5626a805b1696ca2247e61e30898121c6 | C++ | 4,268 | 146 | /*
Copyright (c) Marshall Clow 2011-2012.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
Try ostream_iterators
*/
#include <boost/config.hpp>
#include <boo... |
5828acb242683819effd421c51174b0a635ec49daa7cbf0c3a9edb0407d7bea4 | C++ | 4,270 | 142 | // 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... |
6da9f3da211179a7b8718bf998c771778947877a748af85425cfe15783b55a19 | C++ | 4,276 | 165 | //
// 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 <cstdlib>
#include <cstring>
#include ... |
06f2fc7de48c53902106d33377db711d369b34d7200b812ce07724fbc22b528d | C++ | 4,279 | 161 | //
// process_per_connection.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost... |
d3105800a4f4975dfdeffae2cf77a02dfad019644cf97615d558701efe027c1f | C++ | 4,280 | 146 | // 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... |
9b8b3281f4ac07e5805d3102518f6de6425cbe983d0bf12a10427dc3a9c9a03e | C++ | 4,285 | 166 | #include "distance_marcher.h"
#include "math.h"
#include <stdexcept>
double distanceMarcher::updatePointOrderOne(int i)
{
double a,b,c;
a=b=c=0;
int naddr=0;
for (int dim=0; dim<dim_; dim++)
{
double value = maxDouble;
for (int j=-1; j<2; j+=2) // each direction
{
naddr = _getN(i,dim,j,Mask... |
88cfd4182965ddb6e5f66cb6bc0283a9b139f0a0575899c4798fc43fe0eb01f5 | C++ | 4,287 | 163 | // 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... |
7679e6e57d27d1f5a70f9ff6a27951e99c1f9b701b448487a7743d17d3b1463c | C++ | 4,292 | 147 | // 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... |
ae153ee0eb01cd872329bb4731901c802cd954fb5fe0e31188f9114086cf122b | C++ | 4,301 | 143 | //---------------------------------------------------------------------------//
// 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... |
4fbf142d62722f44436096d48e79ce105a1ed0b88cc8ef803db5064593b78ac5 | C++ | 4,309 | 178 | //
// chat_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 <cstdlib>
#include <deque>
#... |
57b932405ee85198bc31d630d985f917dc23e2b95f66408df969b20c87ef4fb4 | C++ | 4,312 | 116 | //---------------------------------------------------------------------------//
// 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... |
22f875acaa621065db5021fc78327e5546769001bebc097ce6aefcd1cf64c19c | C++ | 4,336 | 139 | //---------------------------------------------------------------------------//
// Copyright (c) 2014 Benoit Dequidt <benoit.dequidt@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://boo... |
49ee3f232a03af5b9b78fe99e8cdbf8bfb930b13d59fdde4965d438186c0d7e2 | C++ | 4,338 | 157 | //
// 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 <cstdlib>
#include <iostream>
#include... |
b42e23a8aedd06e3180a1764e2e292cfb3f0fb1edfb9ac53e4171f821aafec3e | C++ | 4,338 | 128 | // 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 ... |
c282d89f245767c866fa2071850ac440811d91a9ca2c944b5af96400e6d496c0 | C++ | 4,345 | 57 | /*<-
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt)
->*/
//[ hideous_template
template<typename T> struct foo;
template<class Return, class... Args> struct foo<Return(Args...)> {};
template<class Return, class... Args> struct f... |
de9f3204430c16d35cf3c26de5e057282415f68b3eaf2d84e5112343be746e4e | C++ | 4,347 | 137 | //
// 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
//
//------------------... |
159d50ed5689d92dd5de7bdeb54fc62637cae3cd657ef911c02071badef5c10c | C++ | 4,350 | 121 | /*
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/is_volatile_member.hpp>
#include "test.hpp"
... |
1daa953071313bbaddcbe531fd0901fab4ece0a900ded97ea06fdd9a112847fe | C++ | 4,363 | 129 | #include "time_postprocessor.h"
#include "api_config.h"
#include <cmath>
#pragma GCC diagnostic ignored "-Wdouble-promotion"
#pragma GCC diagnostic ignored "-Wimplicit-int-float-conversion"
// === implementation of the time_postprocessor class ===
using namespace lsl;
/// how many samples have to be seen between c... |
a60977e45ad8ae1da38d188bb5cdca0eec21978dbfb07c715680e385ac95b33c | C++ | 4,367 | 128 | // 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... |
2a1a6b9bb08978bae9add10d64149709720cfcea08e91172cb6013c555ebd4e7 | C++ | 4,385 | 128 | //
// 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
//
//------------------... |
0de7d4da472ee9ce4930866b22b434dbef56bc5bfbf44be2d65ac1ff61f5b50f | C++ | 4,387 | 164 | //
// assert_msg_exp_test.cpp - tests BOOST_ASSERT_MSG expansion
//
// Copyright (c) 2014 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#include <boost/config.hpp>
#include <boost/current_fun... |
44989017bbafb92225ebe4ca3c879e3db42101be064c79df21215ec482c6ff02 | C++ | 4,393 | 126 | /*
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/is_lvalue_reference_member.hpp>
#include "te... |
39217feabb9ca6b1e2a5a0b8dfb661880af354e596eabaffd77b16668eccd986 | C++ | 4,397 | 126 | /*
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/is_rvalue_reference_member.hpp>
#include "te... |
924bcaeaac18ae1212a1401c626d849637cd11d1003ac099aa471a1ad85e96c1 | C++ | 4,401 | 98 | // 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... |
66ba6077f0d461611e82a6c9e290228a6e249f375093e0654395ad19dd92581e | C++ | 4,406 | 154 | //
// blocking_udp_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/... |
8a781cd6217ab67bad745aff8ad64b819e0e4b416c0890ea0251d0458ffa95f3 | C++ | 4,408 | 155 | //
// blocking_udp_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/... |
d60e1abe4689e3d4d83ecddbbc48dd1f1937153f0c34d44e511c306d5ec864f0 | C++ | 4,411 | 124 | //
// 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
//
//------------------... |
2c4ffa70357780940d0d6d84daa2ba3e31cf94c097b0a9b69b589af014fb89fe | C++ | 4,418 | 158 | // 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... |
eb2113aa3adb9d45baeccc4b8d27a6eecea3d4d7117355e53df408946917bb2e | C++ | 4,419 | 172 |
//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... |
0f69a6bb1bf390af86135b181fad0089d1797c537832837b74d394442eda9ee5 | C++ | 4,424 | 131 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2008 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... |
4b0816764956fb56db48d153c0f2c7176dd5aaec70ceb288fe950ea83570be65 | C++ | 4,424 | 91 | #include "Transcriptome.h"
#include "ReadAlign.h"
#include "Transcript.h"
#include "serviceFuns.cpp"
#include <random>
uint ReadAlign::quantTranscriptome (Transcriptome *Tr, uint nAlignG, Transcript **alignG, Transcript *alignT) {
uint nAlignT=0;
for (uint iag=0; iag<nAlignG; iag++) {//transform all alignments... |
5ddab27fa9fe5c74c867579fc8f7492ce1e4383e855d1cf46ea01a5a4d25f176 | C++ | 4,438 | 138 | /*
Copyright (c) Marshall Clow 2011-2012.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
*/
#include <iostream>
#include <boost/config.hpp>
#include <boost... |
7e9e512332da07678cffb633159e7a697d14b20b067fce003740f799d87c5ae5 | C++ | 4,438 | 252 | #include <boost/config.hpp>
//
// bind_fwd_test.cpp - forwarding 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
//
#include <boost/bind/bind.hpp>
#include <boost... |
681c6826dc97b5d06a423e16b4da99e07d05b528762e09e694cb023dbfdcc09e | C++ | 4,462 | 165 | #include <boost/config.hpp>
#ifndef BOOST_MSVC
int main()
{
}
#else
#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 warnin... |
651b88e8a43d6da0627f5c0f8b8a4ab74803c00621d52a240fbf7edc6bba3fa2 | C++ | 4,465 | 135 | #include "time_postprocessor.h"
#include "api_config.h"
#include <cmath>
#include <limits>
#include <utility>
#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wdouble-promotion"
#elif defined(__clang__)
#pragma clang diagnostic ignored "-Wimplicit-int-float-conversion"
#endif
// === implementation of the time_p... |
2cbfba6522a8240202403d71ff3382695fdfdb20fc95e0732e4ccb38e092d027 | C++ | 4,471 | 85 | /* ========================================================================= *
* *
* OpenMesh *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* ... |
a216fd17dda1184c2a4390477d8e74e7596a1140e5935ad6dff7263546bfe8b0 | C++ | 4,478 | 140 | //---------------------------------------------------------------------------//
// 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... |
22031e838385fc67ca79f49aea772aa7c396463e1a40a554c137d3d4e2eb0528 | C++ | 4,482 | 129 | // 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 Hauke Heibel <hauke.heibel@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// L... |
3da64553682d7c9a53c4416ce03765803aff1903686cd3e6196a12d9c3eda28f | C++ | 4,482 | 158 | //---------------------------------------------------------------------------//
// 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... |
f75f2e7d49ddb1a56ccfdd31bc74c1ee2a9a62cfa62f61581b9d108a361b4670 | C++ | 4,509 | 162 | //
// process_per_connection.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost... |
2672cf11fb23e207f472f1b98c8daa3a9edd2981e2b6df20e0475cb95d0299ee | C++ | 4,516 | 107 | /*
Copyright (c) Marshall Clow 2008-2012.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
*/
#include <boost/config.hpp>
#include <boost/algorithm/cxx11/one_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.