sha256 stringlengths 64 64 | language stringclasses 27
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
4d3eda6522d633ef6938b6c8228f9452647b1ecba4b43fbe4293351ab8c68ada | C++ | 3,424 | 98 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 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 Softwar... |
bda59ae920258214cb7ca7093a7d35c4781f223c907b7458ac7797237f615b34 | C++ | 3,427 | 75 | //---------------------------------------------------------------------------//
// Copyright (c) 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://boost... |
8c2250b711dcb4da78599aa101f7e14a1bb5803b38a707f6a82e3b579e517e3c | C++ | 3,434 | 111 | /*
* tests.cpp
* peer
*
* Created by Matias Piipari on 18/11/2010.
* Copyright 2010 Matias Piipari. All rights reserved.
*
*/
#include <limits.h>
#include "gtest/gtest.h"
#include <stdlib.h>
#include "sim.h"
#include "vbfa.h"
#include "ossolog.h"
#include <iostream>
using namespace std;
namespace {
//... |
e2dab91ab30d31424d01cab8064172eddbc3a7374513c6ecb998eb1fbfc81384 | C++ | 3,440 | 119 | //
// overlapped_ptr.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... |
f6862fedd6fe331bc35b683b0987ad1fb90c861532ab4e2b9549ea1cc982619a | C++ | 3,442 | 141 | //
// stream_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 <cstdio>
#include <iostr... |
11ae790028da20bc7b7af1572eff3cfe8499be43ab64c110e18e1892612a183f | C++ | 3,444 | 92 | // Copyright 2009, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
106cec15ee556a2cb9a30cfd401d2252e05e83d8b1363b5862089520e66c848a | C++ | 3,445 | 142 | // 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... |
5623b7934dc70dcf5fb3e4ab3a38c517555afca5cd010be3e7152906b7df86f0 | C++ | 3,449 | 219 | /*
Copyright 2014 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/align/alignment_of.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#include <cstddef>
template<class T>
struct r... |
e2736a9cc3b86cefd88a03cc901cf46636a04552c152d5ae8f7fcf5430944117 | C++ | 3,449 | 77 | /*
Copyright Barrett Adair 2016-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt)
*/
#include <type_traits>
#include <functional>
#include <tuple>
#include <boost/callable_traits/remove_member_volatile.hpp>
#include "test.hpp... |
f39bdd6f67a43f59f834865503d42bf4ad857df32b8f2e3647ee5dac61c0dbcd | C++ | 3,457 | 107 | //---------------------------------------------------------------------------//
// 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... |
f41a2e80c5d4423337fc29d307edd7b254f8ef02d46482c1e5e7802a35319fee | C++ | 3,460 | 105 | //
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
//------------------... |
64031a78d0aaeb830d0fb1f43eca7f7ecfae335f8e8512ff220649c24801fe71 | C++ | 3,463 | 92 | #include "api_config.h"
#include "lsl_c_api_helpers.hpp"
#include "resolver_impl.h"
#include <cstdint>
#include <exception>
#include <loguru.hpp>
#include <string>
#include <vector>
extern "C" {
#include "api_types.hpp"
// include api_types before public API header
#include "../include/lsl/resolver.h"
using namespace... |
0fed8a0e8317360a878f2299fab2c09a90ad371a3aaf6fd1937098ee09df0761 | C++ | 3,468 | 156 | /*
Copyright 2014 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/align/aligned_allocator_adaptor.hpp>
#include <boost/align/is_aligned.hpp>
#include <boost/core/lightweight_test.hpp>
#include <new>
#include... |
b473ed96ccc343964ff8741a6a6ffad54f62275cc1be5f4302f269728a934078 | C++ | 3,468 | 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) 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... |
a18aacf272e7d23725cf1b0c4a76bc999b93782d072024e888852c51e966cadf | C++ | 3,470 | 98 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 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 Softwar... |
89a171a9fea13545dfebcf859a6c1d9df0769c239443cecb6eb403f705ec8208 | C++ | 3,471 | 117 | // (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_extended.hpp
#include <iostream>
#include <boost/random... |
cdf2b624b32ffb0782098666e7e06b4286fc73e1d286f047d08d0a3f44023205 | C++ | 3,473 | 135 | // 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... |
bd8941e00ac1c9c710d77daaa4ad92fbe9c494b051da2765fe97d9aa38e293c2 | C++ | 3,477 | 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... |
dfb3c47541093d4be839021e7fa207eeee45ea8637471b8ea96b46826310e351 | C++ | 3,477 | 107 | #include "../common/create_streampair.hpp"
#include "../common/lsltypes.hpp"
#include <catch2/catch.hpp>
#include <cstdint>
#include <lsl_cpp.h>
#include <thread>
// clazy:excludeall=non-pod-global-static
TEMPLATE_TEST_CASE(
"datatransfer", "[datatransfer][basic]", char, int16_t, int32_t, int64_t, float, double) {
... |
c6db83dea84586227b9c33455f044a14bc4c071598bcfdb13f9d14ce55d257ff | C++ | 3,481 | 81 | #include "BAMbinSortByCoordinate.h"
#include "ErrorWarning.h"
#include "serviceFuns.cpp"
#include "BAMfunctions.h"
#include "SequenceFuns.h"
void BAMbinSortByCoordinate(uint32 iBin, uint binN, uint binS, uint nThreads, string dirBAMsort, Parameters &P, Genome &genome, Solo &solo) {
if (binS==0) return; //nothing ... |
3c6f7c456c8440f77a630b10d030fc3a0fa0124fd0b07425d3dbf049725b5c4b | C++ | 3,484 | 128 | /*
Copyright (c) Marshall Clow 2013.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
*/
#include <vector>
#include <functional>
#include <boost/config.hpp>
#... |
143d7c0aba87867cf56ed8229dcd773194aca4f3942dbf6585b9a74733d754d8 | C++ | 3,488 | 140 |
// g++ -DNDEBUG -O3 -I.. benchLLT.cpp -o benchLLT && ./benchLLT
// options:
// -DBENCH_GSL -lgsl /usr/lib/libcblas.so.3
// -DEIGEN_DONT_VECTORIZE
// -msse2
// -DREPEAT=100
// -DTRIES=10
// -DSCALAR=double
#include <Eigen/Array>
#include <Eigen/LLT>
#include <bench/BenchUtil.h>
using namespace Eigen;
#ifndef R... |
ab878257cafbae075be30f2d6b0a0b734089e5ca195fe91791de72d80f6ea37b | C++ | 3,490 | 135 | //
// v6_only.cpp
// ~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for unit tests.
#if !d... |
19a8cb66658d4a2e9d66afef84c7a8c432ce57b1c991462f955908fac601b685 | C++ | 3,493 | 157 | //
// 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... |
3bb295653ddb7de0afb9d100d6b533edb2b1edff3223fe075227f0ac6c441262 | C++ | 3,499 | 83 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free So... |
225eb15ab3aa6b1f40474bf23f0b8dee422003f26eb5aceec2bebe6220cfbb69 | C++ | 3,500 | 89 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2010 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
// ... |
ab916a5544f4bec3954fdf83f72bad1c8d10b71bf6c1d708dd02c8311e5f9375 | C++ | 3,501 | 107 | #include "basecorrector.h"
#include "util.h"
BaseCorrector::BaseCorrector(){
}
BaseCorrector::~BaseCorrector(){
}
int BaseCorrector::correctByOverlapAnalysis(Read* r1, Read* r2, FilterResult* fr, int diffLimit, int overlapRequire, double diffPercentLimit) {
OverlapResult ov = OverlapAnalysis::analyze(r1, r2, di... |
35de2f0e7d50a733e4ce6ec500fb2f06a054c9d5363a05a92b8275cad236b7ab | C++ | 3,509 | 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) 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... |
c6b2ebf9b15947c79ca12d35df80a5027e9ad677b1fc8cba4e5c6080fdea576d | C++ | 3,535 | 118 | //travel_time_marcher.cpp
#include "travel_time_marcher.h"
#include "math.h"
#include "heap.h"
#include <stdexcept>
#include <vector>
#include <algorithm> // std::min_element, std::max_element
void travelTimeMarcher::initializeFrozen()
{
distanceMarcher::initializeFrozen();
for (int i=0; i<size_; i++)
{
... |
3edd9bb9d865a8d4ec7b56dda0a51b6ca68585f13dac37a72919bc644bc2431a | C++ | 3,536 | 96 | // 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) 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 ... |
d69f2831b184bdecff0aeeabd08d2c7b5b10fe5a9de9f463f967dff96235717b | C++ | 3,536 | 169 | #include "sequence.h"
#include "node.h"
#include "scanner.h"
#include "token.h"
#include "emitter.h"
#include <stdexcept>
namespace YAML
{
Sequence::Sequence()
{
}
Sequence::Sequence(const std::vector<Node *>& data)
{
for(std::size_t i=0;i<data.size();i++)
m_data.push_back(data[i]->Clone().release());
}
... |
7e5b3c6e041a666249c0b74ae128f13cc9825eb5b2a55c27141760f0c3c6951b | C++ | 3,539 | 112 | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// serializer_map.cpp:
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http:/... |
595285f78f6fbca1fde1bf254714023ecd15efd1f08a5602fa9cb388ea02d7bf | C++ | 3,541 | 160 | /*
* array_helper.cpp
* peer
*
* Created by Oliver Stegle on 12/28/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#include "array_helper.h"
#include "ossolog.h"
/******************************************************************************/
// Standard version with trigonometric calls
... |
ff7f264ddee4ea74c79c5afbbe939b3468af2f46f29f0b4652a982db4afe19b5 | C++ | 3,547 | 124 | /*
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... |
dde28475dee93964952e7a9011b5fda6abc82be74b41baddcb56170021f9a746 | C++ | 3,556 | 142 |
// g++ -DNDEBUG -O3 -I.. benchLLT.cpp -o benchLLT && ./benchLLT
// options:
// -DBENCH_GSL -lgsl /usr/lib/libcblas.so.3
// -DEIGEN_DONT_VECTORIZE
// -msse2
// -DREPEAT=100
// -DTRIES=10
// -DSCALAR=double
#include <iostream>
#include <Eigen/Core>
#include <Eigen/Cholesky>
#include <bench/BenchUtil.h>
using na... |
1e8e3813a066390427e12defc13004e5b678663ab16c048d097b9056b84a942d | C++ | 3,562 | 85 | #include "IncludeDefine.h"
#include "Parameters.h"
//#include "Transcript.h"
#include "ReadAlign.h"
#include "SequenceFuns.h"
int ReadAlign::createExtendWindowsWithAlign(uint a1, uint aStr) {
uint aBin = (a1 >> P.winBinNbits); //align's bin
uint iBinLeft=aBin, iBinRight=aBin;
uintWinBin* wB=winBin[aStr];... |
f943139b17362ef1770eb228b0f119ef7c192d51d1ed8661b05617ab7ab6e6cf | C++ | 3,563 | 121 | // 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... |
996ac528ad75c293d8201ce28cf6acccee266286bd369b4cf43f05b8d67a4559 | C++ | 3,564 | 140 | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
b5b88905fd34a5ed9b9408bf7c7692f7910b0185c25eefa58e7b4ee2e105e49a | C++ | 3,575 | 155 | #include "parser.h"
#include "scanner.h"
#include "token.h"
#include "exceptions.h"
#include "parserstate.h"
#include <sstream>
#include <cstdio>
namespace YAML
{
Parser::Parser()
{
}
Parser::Parser(std::istream& in)
{
Load(in);
}
Parser::~Parser()
{
}
Parser::operator bool() const
{
return m_pScann... |
0eee5dfbb2a2598f4e76626346b921928ec1e052e38f254cc97c60d05611ab46 | C++ | 3,576 | 126 | // 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 ... |
e655df498ab2147185dfb5736f30cb1dbdb8cc07470007114ff90acfaa4e9a83 | C++ | 3,577 | 106 | //---------------------------------------------------------------------------//
// 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... |
f02e1657035ed6a6a669058e59b6e480a915ae6316a5892cdbc7ffc92f61f791 | C++ | 3,579 | 101 | // (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... |
9ff618f44a7166e1faf3eeb46ec834a0fd4071ca82fb958782a428cfa754eefe | C++ | 3,588 | 134 | //
// object_handle.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... |
e3350c6ec785cefb237f3773cf1946e0e1c789a8229b608f3ef45457af3a15ab | C++ | 3,589 | 129 | // (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... |
75477c5dd33c5d4d2a070a6f1b58567b38e53fa9f93173e55a9d9a9f8ce6a05b | C++ | 3,592 | 123 | //
// 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.hpp>
#include <boost/bind/... |
070d8e39db7ad99d7d562ec74200361535c566a61ce018e2683c16f53b0903e9 | C++ | 3,595 | 125 | /**
* 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 "quantmatrix.h"
#include <assert.h>
#include <iostream>
#include <stdexcept>
namespace fasttext {
Qu... |
a8e83b11c8d4540b90cf61beb492cda8d86c46d09027a7b7ce0a02323a331076 | C++ | 3,596 | 105 | #include "sample.h"
#include <catch2/catch.hpp>
#include <fstream>
#include <sstream>
#include <type_traits>
// clazy:excludeall=non-pod-global-static
#define NO_EXPLICIT_TEMPLATE_INSTANTIATION
#include "portable_archive/portable_iarchive.hpp"
#include "portable_archive/portable_oarchive.hpp"
static lsl::factory dou... |
e2a5fcb45c4346489d21890edc6f705315d67531966eb41be62b5e33919ac4ac | C++ | 3,607 | 102 | // (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... |
c8760c50dc0193cabd0fb62137cb9e670569944bcc7ee408364048fed69b8497 | C++ | 3,611 | 130 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2009 Mark Borgerding mark a borgerding net
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// L... |
6c34cf448aeebee4b57cfd00a5da81e4b83a2e80a7a38950c5abfd6e3f9d28d7 | C++ | 3,619 | 117 | #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... |
22b0d74dfa460f58381247bd3e0f5dbef7fb730732b7d5fd4dcc809bd19553b0 | C++ | 3,622 | 114 | //---------------------------------------------------------------------------//
// Copyright (c) 2015 Jakub Szuppe <j.szuppe@gmail.com>
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
// See http://boostorg.gi... |
313a4977bac55134d9db2d4e7086ded3a0052cac7f6f0992ebe67a4f7dd76e39 | C++ | 3,622 | 155 | #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... |
2281f88ff2ca3224e81afc8cf360b9f0f7dc4e0a38df2f87d43d415d3e3b9f80 | C++ | 3,641 | 115 | /***************************************************************************************************************
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... |
02f91d3ed125fe6e9fa893b148e7cf71ecc33190e77b03d2144630c537767113 | C++ | 3,654 | 74 | #include "ReadAlign.h"
#include "BAMfunctions.h"
#include "ChimericAlign.h"
void ReadAlign::chimericDetectionOldOutput() {
if (!chimRecord) {
return;
};
//re-calculate the score for chimeric transcripts
trChim[0].alignScore(Read1, mapGen.G, P);
trChim[1].alignScore(Read1, mapGen.G, P);
... |
9a18cccba4d62036a5285587652130a4dde7fc94410ce194a63b7b3b0e43325f | C++ | 3,654 | 125 | // 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... |
5d667c2488026dc945f07e198705e02df1c30fc4b016d76afe7a90d38bb3806a | C++ | 3,661 | 149 | //
// address.cpp
// ~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for unit tests.
#if !d... |
97785dc2c88e195b7018a799ac4eb24dac2631009cac1e6b441cfeef4781863b | C++ | 3,664 | 104 | //
// 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/ip/udp.hpp>
#inclu... |
6070bcbefbf6ee6d76d83f4bf3ddf27109cff9bf52ef6d60be0d9db8caa860a6 | C++ | 3,668 | 93 | // 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 ... |
265470661057cfd076201c2e9bba682a961435a3b96197a5d690d2cb5d4ad831 | C++ | 3,675 | 106 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2011 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// Eigen is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free... |
7d1e18c038c05485dfcfd80d0a503eb372faaa157d42b02d47a5cd1cae12fcdd | C++ | 3,685 | 119 | // Copyright (C) Eric Niebler 2005.
// 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 <... |
c5b2a224c54a67fc0c191df3a8a33b372bac560de7737241bcb421443b6daaa8 | C++ | 3,699 | 110 | /*
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... |
c38b97c33fe410d93b33d973f36b73b1b1dc0e78d1da2e2ff07b0435ee8cbe94 | C++ | 3,706 | 92 | #include "SuperTranscriptome.h"
#include "streamFuns.h"
void SuperTranscriptome::sjCollapse()
{//sort junctions by superTranscript, and then by the end coordinate, and then by the start coordinate
sort(sj.begin(), sj.end(),
[](const sjInfo &sj1, const sjInfo &sj2) {
return ( sj1.super < sj2.s... |
45465d151483066a4d05c196ab771f50dca417f26d583d616f037748ece78af0 | C++ | 3,716 | 121 | //
// 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
//
//------------------... |
d88e04ffcf98702580eb88bdcefd41bdb84a62763205ae9c201b3b7f543b769a | C++ | 3,716 | 102 | // 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... |
ff27ed9c89115ad53cb609b3e6a20693b348c0bdacec5f216461eda666a0342d | C++ | 3,716 | 153 | /*
Copyright (c) Marshall Clow 2017.
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
For more information, see http://www.boost.org
*/
#include <vector>
#include <functional>
#include <numeric>
#include <a... |
46b4d1e55fa0dda44d91356ebd8ec81f075bba669b6ed86e7c2329ffc841b750 | C++ | 3,717 | 130 | #include "polyx.h"
#include "common.h"
PolyX::PolyX(){
}
PolyX::~PolyX(){
}
void PolyX::trimPolyG(Read* r1, Read* r2, FilterResult* fr, int compareReq) {
trimPolyG(r1, fr, compareReq);
trimPolyG(r2, fr, compareReq);
}
void PolyX::trimPolyG(Read* r, FilterResult* fr, int compareReq) {
const int allowOne... |
52742053e64a2292f700d62162e0f2072850c4a74109e9b6388434ce531437db | C++ | 3,731 | 102 | // 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... |
3b76536e3eddd061a92079675d11b801567e19b84f96e7fe6012f8cb7f8007ff | C++ | 3,735 | 101 | #include "matcher.h"
Matcher::Matcher(){
}
Matcher::~Matcher(){
}
bool Matcher::matchWithOneInsertion(const char* insData, const char* normalData, int cmplen, int diffLimit) {
// accumlated mismatches from left/right
int accMismatchFromLeft[cmplen];
int accMismatchFromRight[cmplen];
// accMismatchF... |
6c7c287aa5afe7f4387aa55ac45fd6752e3136520ddc1ad4ac3d67fd8ed1519d | C++ | 3,737 | 167 | //
// 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>
#... |
81a861cbc00c251c11c43954545d9b9b197f23df281b509844ab9fc3edcc0b3d | C++ | 3,745 | 94 | /*
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 <boost/config.hpp>
#include <boost/algorithm/cxx11/all_... |
ca9e819df728c25a6a1fc072806c22f3494e1dffe4bd0d48284f38dbdd3a0dd5 | C++ | 3,747 | 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 a... |
cada528910e34a3687814198e489cc5752dc4242858afaba1b88c965bf5a4b63 | C++ | 3,767 | 97 | // i_dont_like_the_default_duration_behavior.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/LICEN... |
fde72e0c3fd14cc0390c1d4a1681a5de113d8719f1ce560a2ef8b50aabc67c61 | C++ | 3,768 | 142 | // (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... |
c62971c29eecf1179af133c66c9a714d9136443ef2bc9b8994787dd64657ea51 | C++ | 3,783 | 134 | //
// throttling_proxy.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.hpp>
#... |
9708b89769b79823719eb7a6175b1b84997b6e0892b49fe45ccc96c039d1ca08 | C++ | 3,793 | 139 | //
// 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 ... |
878a6b721505a84ee436204453e057efd9109806ab25c5d355ce7c92a0851b8e | C++ | 3,796 | 154 | /*
MIT License
Copyright (c) 2021 Shifu Chen <chen@haplox.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, m... |
ab73aa3373cac54f52ea7d67bcdf3616ca3740d41b00a28904e1db6659c8dc09 | C++ | 3,805 | 59 | /* ========================================================================= *
* *
* OpenMesh *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* ... |
635c1f27d59c8eb0ce8bf0e339b3195039a107e1968377036dbf347542371e30 | C++ | 3,808 | 160 | //
// fd_passing_stream_server.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2021 Heiko Hund (heiko at openvpn dot net)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or c... |
a400d9963b20e1c72d5fad9bd41c0978534394befed7f23715855522747b4c85 | C++ | 3,819 | 96 |
#include <boost/callable_traits/function_type.hpp>
#include "test.hpp"
int main() {
struct foo;
{
auto g = [](int, char){};
using G = decltype(g);
using F = void(int, char);
CT_ASSERT(std::is_same<TRAIT(function_type, G), F>::value);
CT_ASSERT(std::is_same<function_ty... |
b2bda8c114f3c433eac93134b628cbd5441baa8035073623692539555533fea3 | C++ | 3,827 | 130 | #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... |
2e56904236d56e434cf7ba972186cb51cd8130e667fc0e764f3d3680ec5302f3 | C++ | 3,828 | 155 | // Guy Shechter
// June 2004
// ********
// Edit kdtree_common.h to set architecture specific pathnames.
// ********
//
// You can turn on some of the following definitions to debug this file.
//
#undef DEBUG //General input-output debugging information
#undef DEBUG_RUN_RANGE_SEARCH //Follow the tree qu... |
c0d220d024f1a6f1fe21879e33ecdd46f06e25cfdbc4788fb8268ed53d791d8d | C++ | 3,830 | 110 | // (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_... |
1bc68204386c9f73ea7fc15bb9925bb8c37c55bc7d289e8f18d495e8234b7d8a | C++ | 3,834 | 139 | //
// readable_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... |
410dc22b969984aabbe284347cf09c0f183a750368bdcc634180d441a509a32d | C++ | 3,844 | 155 | // 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... |
d8e55e4434f192f6fd000f7241921729cc3088030a17ec61c923ecbac6a563db | C++ | 3,853 | 101 | #include "SoloFeature.h"
#include "streamFuns.h"
#include "TimeFunctions.h"
#include "SequenceFuns.h"
#include "Stats.h"
#include "GlobalVariables.h"
void SoloFeature::sumThreads()
{
//stats
nReadsInput=g_statsAll.readN+1; //reserve 1 extra
///////////////////////////// collect RAchunk->RA->soloRead->r... |
8cd4cf315f1f644bb8b9326dbc2b56d14aa510c8ae89708bd81e84889a576bec | C++ | 3,859 | 186 | //
// executor.cpp
// ~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Disable autolinking for unit tests.
#if ... |
b204331cf9ec4ab26a06f4c9235004e4043c086bd96ec176bb50a22a73a31d90 | C++ | 3,859 | 154 |
#include "mex.h"
#include "matrix.h"
#include <math.h>
#include <map>
#include <string.h>
#include <time.h>
using namespace std;
#define REAL float
#define PI 3.1415926536
#include "MersenneTwister.h"
MTRand mtrand;
#include "auxilary_classes.cpp"
void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxA... |
02fa1a0cece32e22a5b98fa129108f0a3ffd978b3bd6b9e8ff6ceeaa66522b45 | C++ | 3,860 | 134 | //===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
ccab00d05cf844c7e5d84e652988e60f9af4efeea91614f645f21d15ebeadd0e | C++ | 3,863 | 125 | //
// 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.hpp>
#include <boost/bind/... |
42c0ce55861e9f7e0201d401278a4c5c6a679519cbba90919dd96ad1ecd07909 | C++ | 3,872 | 99 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 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 Softwar... |
4c58dd353a6ea8581d40c954e29c9139dc6fc7b9305eeb6a5fd44b5a9bc0cc1c | C++ | 3,892 | 99 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 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 Softwar... |
d6fd32847e7f48db2a96f4fcc0644e56704b473323b3fd382d78fdb7c790597a | C++ | 3,903 | 170 | //
// 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>
#include <iostream>
#include... |
64a96954305074310f22f4bf1a12335aafbc7a7838060c2cb6ab243c66c1fac5 | C++ | 3,934 | 126 | // (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/foreach.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/accumulato... |
abe7e0b253d328cb82ae67623fbe3c89eb94699102510c64a0b568eaca101e05 | C++ | 3,942 | 109 | // Copyright 2005, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... |
4eea61e23cca312eb08fdb1644d936967023c89eee5687316932aa9185e9c00f | C++ | 3,944 | 121 | #include "netinterfaces.h"
#include <cstring>
#include <loguru.hpp>
asio::ip::address_v6 sinaddr_to_asio(sockaddr_in6 *addr) {
asio::ip::address_v6::bytes_type buf;
memcpy(buf.data(), addr->sin6_addr.s6_addr, sizeof(addr->sin6_addr));
return asio::ip::make_address_v6(buf, addr->sin6_scope_id);
}
#if defined(_WIN32... |
a8b2dbfe137c593a66a965984dbb18e0fd010c764d75b60c9c4030c659a87a47 | C++ | 3,951 | 108 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra. Eigen itself is part of the KDE project.
//
// Copyright (C) 2010 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
// ... |
ee9002744d24dcd4f748df0733b1a9c3002218a08465bebbde6e42fc354026c6 | C++ | 3,962 | 111 | #include "sample.h"
#include <catch2/catch.hpp>
#include <fstream>
#include <sstream>
#include <type_traits>
#define NO_EXPLICIT_TEMPLATE_INSTANTIATION
#include "portable_archive/portable_iarchive.hpp"
#include "portable_archive/portable_oarchive.hpp"
static lsl::factory doublefac{cft_double64, 4, 1}, strfac{cft_stri... |
2e6b89e5441bb9bc5bbb660d3a0777efcb8aaa3f906386c32465218792f89a57 | C++ | 3,963 | 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... |
7b3570741f655e4f475da6c6e8a9e512eb147d489ba7be85655737a0df5dc6c5 | C++ | 3,965 | 165 | //
// experimental/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)
//
// Disable autolink... |
e8ea03ea2687362dfa952accace9b7f05f1342102859545e7728109044aeaf5d | C++ | 3,965 | 96 | // Copyright (c) 2020-2021 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/atomic_ref.hpp>
#include <boost/memory_order.hpp>
#include <boost/config.hpp>
#include <bo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.