sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
208a20099ff37c717c7b4d15d3be4b7954158f55627d5ef7b69a79dffca56aef | C++ | 2,705 | 81 | #include <boost/asio/associated_executor.hpp>
#include <boost/asio/bind_executor.hpp>
#include <boost/asio/execution.hpp>
#include <boost/asio/static_thread_pool.hpp>
#include <iostream>
#include <string>
using boost::asio::bind_executor;
using boost::asio::get_associated_executor;
using boost::asio::static_thread_poo... |
f4fb28e911b7c3bfac2014cc09ed8250741242c31fc2c62a7840cf4d2b4b381e | C++ | 2,716 | 111 | #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... |
e31493c26293508c62ba8d12bc8d898e9e96c71fc8766e5b496285c66c6261a0 | C++ | 2,723 | 75 | // (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_quantile.hpp
#define BOOST_NUMERIC_FUNCTIONAL... |
46040b61e70f2c1266dc0f16e5e01929fcf71095fb5819b81bcc278597c0d641 | C++ | 2,724 | 59 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011 Gael Guennebaud <g.gael@free.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Found... |
6dabba5ecd9bb8f265327daf2c34136b57c1eec013daba30fdf315c5e2047b8b | C++ | 2,727 | 87 | //---------------------------------------------------------------------------//
// 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... |
8872d6da5753b4a31a5d009508a304e3233bcd93d78690adb8d9b7391a91c2e0 | C++ | 2,732 | 113 | #include <boost/config.hpp>
#ifndef BOOST_MSVC
int main()
{
}
#else
#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 in... |
6c67ba878e9f2de79206e95c141db74d3dadc6588449a118cfc0ee699eb20dfd | C++ | 2,743 | 108 | /**
* Copyright (c) 2017-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 <unordered_map>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
std::string... |
bfeb4de792f11b24f277e40868203610951046a4b31383f899dc9b133c26d6cb | C++ | 2,744 | 81 | #include <stdint.h>
#include <iostream>
#include <fstream>
#include "../../include/lsl_cpp.h"
#include <string>
#include <numeric>
#include <cmath>
#include <iomanip>
/* Test the latency between sending a sample and receiving it*/
int main(int argc, char *argv[]) {
/* if (argc != 2)
std::cout << "Usa... |
b8f78ae8f4cd4570346a76a41b919c795acabae0afb1d0ed9aeb44deafde5e63 | C++ | 2,745 | 97 | //---------------------------------------------------------------------------//
// 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... |
d5bd49fb93f637bd36826f9ff4da1b88e63142f6ff25ac21dff2fe55416c821e | C++ | 2,752 | 62 | #include "ReadAlign.h"
uint ReadAlign::alignCIGAR
samStreamCIGAR.str(std::string());
uint trimL;
if (Str==0 && Mate==0) {
trimL=clipMates[Mate][0].clippedN;
} else if (Str==0 && Mate==1) {
trimL=clipMates[Mate][1].clippedN;
} else if (Str==1 && Mate==0) {
... |
02b6e8f54a7e62411a4d36323e74143cf66a416a95911996eadc0d2eb0854c87 | C++ | 2,754 | 100 | /*
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... |
4a01c1ead5277913a81aff666dbdd7b4c05cfdf933bad50c0ce72aa242d2732f | C++ | 2,757 | 78 | // 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>
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify... |
893a682dfd7c873a8a7bd9de5783901cbb64ab3f2c2e5c9592f12911daf86a7c | C++ | 2,759 | 77 | // This file is triangularView 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... |
b0b6b1bdb5b4d4a9684dc9260b5a6f6e8b8e41d785d857ae6ec8a02b85be32cc | C++ | 2,760 | 135 | //
// async_tcp_echo_server.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <cstdlib... |
9046f149646c4e18e0af0c1548e85584701c32680337019c232d639b45e2fc40 | C++ | 2,763 | 81 | // (C) Copyright Marshall Clow 2018
// 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 <iterator> // for std::distance
#include <cassert> // for assert
#include <boost... |
b7cae53e67db8fbc58012f6f54dcdc7a3ec4f984ec420e059326a31e14d2629e | C++ | 2,764 | 79 | //---------------------------------------------------------------------------//
// 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... |
f7ae6d62627b976614c6e804846d9b3c7a89a442f8d73a5e591fee1a67194706 | C++ | 2,769 | 59 | #include "ParametersGenome.h"
#include "Parameters.h"
#include "ErrorWarning.h"
void ParametersGenome::initialize(Parameters *pPin)
{
pP=pPin;
if (gDir.back()!='/') {
gDir += '/';
};
//genome transformation
if (transform.typeString=="None") {
transform.type=0;
} else i... |
4ed68b1b77f13cc4723b6b1fa473ea1a5b26ecc1aae67b390bb7c0118bf572a9 | C++ | 2,771 | 81 | // (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)
#include <boost/test/unit_test.hpp>
#include <boost/test/tools/floating_point_... |
43e6d3d0e0eedd9b7241e5a72d0e5f6db8e8db5666354d3eb09ccd56a3880977 | C++ | 2,776 | 78 | // 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>
// Copyright (C) 2008 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify... |
193ae9657b3ac251eaa0c73fa155467b0316cfcee13bd027ae11e469f6da7804 | C++ | 2,781 | 80 | // (C) Copyright Eric Niebler 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/unit_test.hpp>
#include <boost/accumulators/accumulators.hpp>
#include... |
c3316d152ebac5993a544457f27945fb1f9e194f091c53360c703f2ca3f69f6a | C++ | 2,786 | 65 | #include "ReadAlign.h"
#include "SequenceFuns.h"
string ReadAlign::outputTranscriptCIGARp(Transcript const &trOut) {//generates CIGARp string for the transcript
//p is a special CIGAR operation to encode gap between mates. This gap is negative for over... |
8c8864b62b5f30da889ca60d2193560c894d7cbd3257e8abd2d55daef7b75b44 | C++ | 2,789 | 107 | // Boost.Bimap
//
// Copyright (c) 2006-2007 Matias Capeletto
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
/******************************************************************************
Boost.MultiIndex
*... |
e6cc41fbfc4842cb4c038dfb409484c76e8b5f7a6db8c62a987aad593f51ff11 | C++ | 2,791 | 116 | //
// experimental/coro/executor.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2021-2022 Klemens D. Morgenstern
// (klemens dot morgenstern at gmx dot net)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www... |
ef3b22b14acab4e8be69fb68bc1a40958082368274c3b65b4d297de8e811f5c1 | C++ | 2,792 | 96 | //---------------------------------------------------------------------------//
// 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... |
e1b5051fdc3bf13ede602a6f42bbda7cc9fe2db9b073079174e19975b24e2a07 | C++ | 2,795 | 90 | // (C) Copyright 2013 Andrey Semashev
// (C) Copyright 2013 Vicente J. Botet Escriba
//
// 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)
//#define __STDC_CONSTANT_MACROS
#include <boost/thread/detail/config.hpp>... |
d85c34783e08e3b23a4946851a506e8804026e5f9fbd6b79e0f1139fc2f88313 | C++ | 2,798 | 87 | // Boost.Bimap
//
// Copyright (c) 2006-2007 Matias Capeletto
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Boost.Bimap Example
//------------------------------------------------------------------------... |
098dc2c676cde4b82cbfc4f0c757cba84e591a24edd2f6e55315c20a64c8174d | C++ | 2,801 | 89 | /* tests for using class array<> specialization for size 0
* (C) Copyright Alisdair Meredith 2006.
* 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 <string>
#include <iostream>
#include <boost/array... |
78146d9a6a0ce5317bcf5e95822d576b44ceaedb7be0295bc36b86e4908a9ac1 | C++ | 2,801 | 137 | //
// async_tcp_echo_server.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <cstdlib... |
85972b70e0e7abe0cae00d77b022928161f61b0ff89225d0ef666738a98ad551 | C++ | 2,802 | 97 | //---------------------------------------------------------------------------//
// Copyright (c) 2014 Benoit
//
// 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.github.com/compute for more i... |
0a794f19823334519d68439b22154cb0f7bc16aeba51d4097ae87e77b12de603 | C++ | 2,808 | 100 | // 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... |
b3b182331e601bef19b8d1ca116cf38c1924a7cdee05ba017027011952d1b821 | C++ | 2,813 | 80 | #include "SoloFeature.h"
#include "streamFuns.h"
//#include "TimeFunctions.h"
//#include "SequenceFuns.h"
//#include "Stats.h"
//#include "GlobalVariables.h"
void SoloFeature::redistributeReadsByCB()
{//redistribute reads in files by CB - each file with the approximately the same number of reads, each CB is on one fil... |
6e5a618c97f475484a1216e82f54e1125d4d606df9ae8846b7e361799ef6a1da | C++ | 2,816 | 89 | // Boost string_algo library example 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 htt... |
e9ec8f5d573052fb306436a0a13591fd4cf9a4f548f921db98b8ed2a3afc9555 | C++ | 2,816 | 94 | // Boost.Bimap
//
// Copyright (c) 2006-2007 Matias Capeletto
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Boost.Bimap Example
//------------------------------------------------------------------------... |
e625ccd072e132596001e58a894db1dc194ac30ec1a932bd842715d4084e4706 | C++ | 2,823 | 136 | //
// verify_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... |
ff398e5cce959ee753e913c9497376151598ea2b788721d722bbab9552cf64a3 | C++ | 2,826 | 109 | #include "ClipCR4.h"
ClipCR4::ClipCR4()
{
dbN = 64;
scoreMatrix = {
1, -2, -2, -2, -2,
-2, 1, -2, -2, -2,
-2, -2, 1, -2, -2,
-2, -2, -2, 1, -2,
-2, -2, -2, -2, 0
};
readLen = 91;
alphabetLength = 5;
gapOpen = 2;
gapExt = 2;
dbS... |
177f214830f4d3af2975b3cd56bb0b75eb1d83760e3625f2b4a3039e17197ee4 | C++ | 2,829 | 85 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Soft... |
9e977ac39abaab590f952dbbd3b30b17de6904536fb79e1d4baa31efefbafd3a | C++ | 2,833 | 94 | /*<-
Copyright (c) 2016 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)
->*/
//[ apply_member_pointer
#include <type_traits>
#include <boost/callable_traits/apply_member_pointer.hpp>
namespace ct = boost::callable... |
d2d77ac6bb3e4e9455e681a7c30e2571899f34015c7e18a4229dca2c3b94592c | C++ | 2,848 | 93 | //
// connection.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "connection.hpp"
#include <vec... |
4a80f7c760b4532cf9a8fe88a3ccd21f6c979d915d4a153474b0273e7e3d8ff4 | C++ | 2,850 | 114 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Thomas Capricelli <orzel@freehackers.org>
#include <stdio.h>
#include "main.h"
#include <unsupported/Eigen/NumericalDiff>
// Generic functor
template<typename _Scalar, int NX=Dynamic, int NY=Dynamic>... |
6270e8eaafee5ebd20bf267aaf6c552eb9ae64965124863a8064a460a6820b7d | C++ | 2,852 | 99 | //
// serial_port_base.cpp
// ~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or cop... |
594a2bf2686ccbf315f02516c4922ce7ce0c62d324dbb388d19e2abdc1a7c0de | C++ | 2,856 | 95 | // (C) Copyright Eric Niebler 2005.
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/unit_test.hpp>
#include <boost/accumulators/accumulators.hpp>
#include... |
ff8163e467dcf16e6ab47a885b547c68187576869da1c830412f6cbef5b266b5 | C++ | 2,862 | 76 | // 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>
// Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify... |
a96cd9dc5f8ca8e26521274c268da6652b6d58fabd32a0e8a296b3208536e5d6 | C++ | 2,864 | 77 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011 Jitse Niesen <jitse@maths.leeds.ac.uk>
//
// 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... |
790a3d7986fd019fc0f24b447970a9660625e12180f12305b58296c42be8a6b2 | C++ | 2,866 | 94 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <iostream>
#include "fstext/fstext-lib.h" // @manual
#include "util/common-utils.h" // @manual
/*
* This program is to m... |
8cd59ea35acc062d842bfc2c864504d4c7219dcc0ab703479408eec2aaade0da | C++ | 2,869 | 112 | //
// echo_server.cpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/asio/detached.hpp>
#i... |
6fbc27ab0f55342143e0dae1d206e3666047d1df374fea60e850a6dc89a76955 | C++ | 2,871 | 95 | // 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 ... |
d7046d0fa3622f4a4ecf419b7b26203dba052f280be65b307350650d926cb07a | C++ | 2,871 | 90 | #include "../src/api_config.h"
#include "../src/stream_info_impl.h"
#include <cctype>
#include <loguru.hpp>
// include loguru before catch
#include <catch2/catch.hpp>
// clazy:excludeall=non-pod-global-static
template<typename T, const std::size_t N>
bool contains(const T(&valid)[N], const T target) {
for(T e: valid... |
fce06cbbeff7edec13313bcb30eff2d43753da97eb8cb867130eb4a2262b08e3 | C++ | 2,871 | 106 | // 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... |
81f53c433fc2c2fbc6afe95926911f5c39acf6e90efc258c751b97be120f981a | C++ | 2,877 | 57 | /*
Copyright (c) Marshall Clow 2010-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 <string>
#include <iostream> // for cout, etc.
#i... |
73bea6aab8da56cf7822c002e90e899680e96662a5679fe5937bf158e6eb8a4f | C++ | 2,881 | 100 | //---------------------------------------------------------------------------//
// 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... |
93845aa691743243cafd184ae6cc6c4f162ed3a1a3ab2b51c7632acc9f08d5db | C++ | 2,883 | 76 | // 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>
// Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify... |
a0f1efbcab3f7e49df639383157626931f64756f7e738be081760f93f7308332 | C++ | 2,884 | 65 | // 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 ... |
f263ba349afe58a558bf0fee98a98bb9207a648e7cd4f908a87799bd13d001ea | C++ | 2,888 | 71 | // 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 ... |
d2df2d25fea2d4c5009effa6fbc0c4d2871fa451f99b30621421786e74167f88 | C++ | 2,889 | 82 | // 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... |
062b5a4c42829a4e5795ebb4d14f1f222db8cebfdce45e34cc70008c3897fddd | C++ | 2,891 | 72 | //---------------------------------------------------------------------------//
// Copyright (c) 2016 Jason Rhinelander <jason@imaginary.ca>
//
// 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... |
6a0ec97f53349d55969d2dfef508f6317170ef9238d28a5f83cc5decef5ad958 | C++ | 2,896 | 94 | //
// connection.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "connection.hpp"
#include <vec... |
969f4a17d6fda442b6d53cb0cc27b6202cfc181c3df089b3af462c14641c7c31 | C++ | 2,898 | 125 | //
// udp_server.cpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/asio/io_context.hpp>
#i... |
77dce7038671c3051dffa486024c0d45e53d2fc956c9edf9d059af3ecfdf2b4b | C++ | 2,899 | 81 | #include "info_receiver.h"
#include "cancellable_streambuf.h"
#include "inlet_connection.h"
#include <chrono>
#include <iostream>
#include <loguru.hpp>
#include <memory>
#include <sstream>
lsl::info_receiver::info_receiver(inlet_connection &conn) : conn_(conn) {
conn_.register_onlost(this, &fullinfo_upd_);
}
lsl::in... |
d2ee3c731c87fd7bb4b74cc1c75630a8ba88c565216c6e1bf0208e2befc99686 | C++ | 2,904 | 89 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// extended_type_info_no_rtti.cpp: specific implementation of type info
// that is NOT based on typeid
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// L... |
526368ba97188e86c8686cd993770686c88d3604f666ed0413188dba71d40e3b | C++ | 2,905 | 95 | //---------------------------------------------------------------------------//
// 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... |
33f8dd1144e298c453764654068db84b7d8ced44e2165fdf337d1015c977e9b2 | C++ | 2,906 | 121 | //
// request_handler.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 "request_handler.hpp... |
cb4a49fed4229ade260dea3549563788915aa1aab902ad6b01826e3afdd766be | C++ | 2,910 | 110 | //
// 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 ... |
7999116704733f881e0678a1510515b3d2bb097adb626f7276c1a28134c93cbc | C++ | 2,912 | 152 | //
// 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 ... |
5a3b723317d79b1bbcf4f3c6c13b64b3f5f3cbd2c7ce2eeb26119e68ed55ace3 | C++ | 2,914 | 67 | //===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
b130fb3412460c7777cd182dee37c40bca487a1634ecd5fadb3532c31de1f75d | C++ | 2,919 | 109 | // xtime.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 was extract... |
7fd3871869f4e0f3d11d528c2758d95bf1d768beeaaa5c5e4f7b72fa0542319d | C++ | 2,929 | 94 | //
// sync_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 <array>
#include <iostream>
... |
0763ba5cc0f24674e448304e306c29358d7fc95a7c3e3b9a54ebbe2050aa277a | C++ | 2,935 | 122 | //
// file_handler.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 "file_handler.hpp"
#includ... |
cdaca4d0f876ac427e0b0adcd8e77ff91046361b9cd9b8c25c20e2fae95a7a85 | C++ | 2,941 | 77 | // (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_mean.hpp
#define BOOST_NUMERIC_FUNCTIONAL_STD... |
6e5e9177c168e66b5bee4afc6820d30a8d3def878722c956ba4b745633938926 | C++ | 2,942 | 87 | //---------------------------------------------------------------------------//
// Copyright (c) 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://boostorg.gi... |
d7e16729b24924362b85b6d80ea76a296b546d15ca64ee8cd385aa8385103ac1 | C++ | 2,942 | 83 | // Copyright (C) 2007 Anthony Williams
//
// 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/thread/detail/config.hpp>
#ifdef BOOST_THREAD_ONCE_ATOMIC
#include "./once_atomic.cpp"
#else
#define __STD... |
31b38b705640373056e74c92387aa590614a230337acc8980caf43c43386cee1 | C++ | 2,949 | 91 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// codecvt_null.cpp
// Copyright (c) 2004 Robert Ramey, Indiana University (garcia@osl.iu.edu)
// Andrew Lumsdaine, Indiana University (lums@osl.iu.edu).
// Use, modification and distribution is subject to the Boost Software
// License, ... |
941618ccc75d11ebdda5021d0677ed147ae966db3d8952bef33b4d5d63a3cf59 | C++ | 2,958 | 122 | //
// request_handler.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 "request_handler.hpp... |
e3069f4cbfe9bb30825de7ccfdb8ab6b68c37d54d82d7b5082bea955719d2915 | C++ | 2,959 | 87 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2010-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... |
40e0eb185231d693682a91c415169bb3a15ab371e3bfb4eebd58e592652e238f | C++ | 2,960 | 122 | //
// request_handler.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 "request_handler.hpp... |
61a4dc5e23b901ede281ca2d6d9f329373aa19d2be2ef6ec085ea94b3a4b6f92 | C++ | 2,960 | 122 | //
// request_handler.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 "request_handler.hpp... |
6617850dc24adf428ea7f438e97a047bc66541fb22574e4e993aa34dc4dca623 | C++ | 2,960 | 73 | //=====================================================
// File : main.cpp
// Author : L. Plagne <laurent.plagne@edf.fr)>
// Copyright (C) EDF R&D, lun sep 30 14:23:28 CEST 2002
//=====================================================
//
// This program is free software; you can redistribute it and/or
// modify it ... |
a60f0a57fce75e86de1de5ecadd1c3d659290d99ef2d14736ad9273cff576865 | C++ | 2,960 | 84 | #include "info_receiver.h"
#include "cancellable_streambuf.h"
#include "inlet_connection.h"
#include "stream_info_impl.h"
#include <chrono>
#include <exception>
#include <istream>
#include <loguru.hpp>
#include <memory>
#include <sstream>
#include <string>
lsl::info_receiver::info_receiver(inlet_connection &conn) : co... |
919b02be3b34d3c6b528034c301b56ba3c033a7d49c4b0b3a074998fc39b3000 | C++ | 2,962 | 79 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Soft... |
aba3338c3abebc9c514ff2d35f246500edb98209ea5c9511cda945c9e65d3784 | C++ | 2,965 | 90 | #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... |
8be3df07d102c4004fae9e519e7637612267698c6d36eb4506a4c30b2290e432 | C++ | 2,976 | 86 | // 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
//... |
223bc3b5c407e646b69b2eddc1bbf002ba5a6d5f2b7eaf9fc67665865c54a034 | C++ | 2,979 | 131 | //
// 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 ... |
4f3320fe3a3e3f058f2dee24c288ec3e76312c0b99829da20b9d3358dcf88ab3 | C++ | 2,983 | 94 | //
// sync_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 <iostream>
#include <iomanip... |
19d3928b4b7e8a58e945ee0aa31e42277a946aa38a01262fa2f6c817b07102cb | C++ | 2,998 | 120 | //---------------------------------------------------------------------------//
// 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... |
341c1269026460ed7ffd9b664f57da580088f5b77b7c914b13c4386ad8d75579 | C++ | 3,000 | 84 | // 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... |
2c199f5bf1788c9fff3061cdc035f9417b4bf58b056e958e3eee2df3d1be4dfd | C++ | 3,001 | 86 | // 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
//... |
f159d1705dfc4bed9068f114a98b678cc472544c4ef9194ac26b2b1f2a5c6efe | C++ | 3,004 | 132 |
// g++ -I.. sparse_lu.cpp -O3 -g0 -I /usr/include/superlu/ -lsuperlu -lgfortran -DSIZE=1000 -DDENSITY=.05 && ./a.out
#define EIGEN_SUPERLU_SUPPORT
#define EIGEN_UMFPACK_SUPPORT
#include <Eigen/Sparse>
#define NOGMM
#define NOMTL
#ifndef SIZE
#define SIZE 10
#endif
#ifndef DENSITY
#define DENSITY 0.01
#endif
#ifnd... |
32a7dc3078ec643372526068a934c5959e1ba4f5106524a9ab4f56f8d276164d | C++ | 3,007 | 93 | //---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Rastko Anicic <anicic.rastko@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://... |
3f390784c11217e65066ab9204b0db36e7586028bab3db83b18cee4e63b0063d | C++ | 3,011 | 132 |
// g++ -I.. sparse_lu.cpp -O3 -g0 -I /usr/include/superlu/ -lsuperlu -lgfortran -DSIZE=1000 -DDENSITY=.05 && ./a.out
#define EIGEN_SUPERLU_SUPPORT
#define EIGEN_UMFPACK_SUPPORT
#include <Eigen/Sparse>
#define NOGMM
#define NOMTL
#ifndef SIZE
#define SIZE 10
#endif
#ifndef DENSITY
#define DENSITY 0.01
#endif
#ifnd... |
d627696e821b4fd1d6ec38ae7a104a90e1528804fa6cf9d04258f5105cd5dcdd | C++ | 3,011 | 114 | /* graph.cpp */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "graph.h"
template <typename captype, typename tcaptype, typename flowtype>
Graph<captype, tcaptype, flowtype>::Graph(int node_num_max, int edge_num_max, void (*err_function)(const char *))
: node_num(0),
nodeptr_b... |
f734a3740258bb9145fc97a83bf7f869430db21d270dbf97a91bf4ec16899c4a | C++ | 3,019 | 157 | /**
* 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.
*/
#include <array>
#include <cstdio>
#include <cstring>
#include <map>
// NOLINTNEXTLINE
typedef struct {
size_t reflen... |
ce0874daa7b4426f1c3535e87dc71a80584fa0d547cec8a7061b2f4b2d6df62d | C++ | 3,025 | 130 | #include <boost/config.hpp>
#include <boost/config/pragma_message.hpp>
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && ( defined(BOOST_GCC) && BOOST_GCC < 40600 )
BOOST_PRAGMA_MESSAGE( "Skipping test for GCC 4.4 -std=c++0x" )
int main() {}
#else
//
// bind_function2_test.cpp - regression test
//
// Copyright (c... |
d07aeef438a2f1f0233ccd6b8b8cdcee985f6ee91a297d314c196870561947ef | C++ | 3,026 | 91 | // 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... |
e4b1a6007565ece2bb132a79473d935ef05d679aa8eed5f9521b63a8625c0c0a | C++ | 3,027 | 74 | #include "ReadAlign.h"
#include "ErrorWarning.h"
#include "funPrimaryAlignMark.h"
void ReadAlign::transformGenome()
{//convert to new genome
alignsGenOut.alBest = trBest; //it will be redefined below if alignment passes mapping filter
if (!mapGen.genomeOut.convYes || mapGen.pGe.transform.type==0 || ... |
47d861b9cc6b657e69aa8ddef2aab8815c63d186797288afa794f462df4f99f9 | C++ | 3,029 | 78 | // 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... |
d63be3c0f7c8b67d071d817493a5de26bde9efcfa1cfae69356fc021dffcad03 | C++ | 3,032 | 85 | // 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... |
8544b92cf78db9062e4ebd4704b184d1f47a9e5e1e266461ebb006e4f4953cbb | C++ | 3,034 | 105 | // Copyright (c) 2018-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 <cstdint>
#include <iostream>
#include <string>
// Check that the next n bytes are continuation bytes.
bool co... |
1abbf4585be34015a8b97944c91622a540a959323e558d282ba9d6fd6e936991 | C++ | 3,039 | 99 | /*
Copyright (c) Alexander Zaitsev <zamazan4ik@gmail.by>, 2016
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
*/
#include <vector>
#include <list>
#include <... |
3e44ff1965962a056602d1674710f7894e7ce619bb0baa37481e76e46d3dd203 | C++ | 3,042 | 94 | // 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... |
4267ff5aac0ed0b128fb4dbfcc3b976c12351cef34cea9ca32db19762c02ab4c | C++ | 3,046 | 99 | //---------------------------------------------------------------------------//
// 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... |
68ce7620a2412ed28f458ea22fd454d0fd4de70706c5342f63c9a6df5905c7af | C++ | 3,046 | 113 | #include "exp.h"
#include "exceptions.h"
#include <sstream>
namespace YAML
{
namespace Exp
{
unsigned ParseHex(const std::string& str, const Mark& mark)
{
unsigned value = 0;
for(std::size_t i=0;i<str.size();i++) {
char ch = str[i];
int digit = 0;
if('a' <= ch && ch <= 'f')
digit = ch - 'a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.