sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
e255b168a4c317a924fe5298012e15446997f5549f660eaf85231af3da5a2038 | C++ | 9,096 | 409 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
5f8f1726504f86bf39056b2a371bd9425eef93e840239e3be1fb185f2e6e5144 | C++ | 9,139 | 215 | /*
igraph library.
Copyright (C) 2024 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ver... |
bd4b53a3af57ef3a042b2c60cb6e8f02527a37495af6697e0d7b5dc34682b082 | C++ | 9,282 | 269 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
d08c734872dfee8c5f659be400f29347bccba9573447c7de0429f7e2dc305cce | C++ | 9,283 | 223 | #include "RectangleAnnotationTool.h"
#include "QtAnnotation.h"
#include "AnnotationWorkstationExtensionPlugin.h"
#include <QAction>
#include <QPen>
#include <QGraphicsItem>
#include <QDialog>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QFrame>
#include <QFormLayout>
#include <QPushButton>
#inclu... |
a7ccc597d4a5f12725e610e683b2584c368da9775fbd62fe63b4681a3daef626 | C++ | 9,334 | 271 | /*******************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Anton Holmgren, Martin Rosvall
This file is part of the Infomap software package.
See file LICENSE_GPLv3.txt for full license details.
... |
952bc4f77ba3a157f97e8082808f349ca34bff879d71a9ff7270b80b860c9341 | C++ | 9,421 | 329 | /*******************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Anton Holmgren, Martin Rosvall
This file is part of the Infomap software package.
See file LICENSE_GPLv3.txt for full license details.
... |
b9c40934cc22a2ad49963be2790675f779e2de0cbcf9c2670151a6375fdd3666 | C++ | 9,509 | 216 | #include "IOWorker.h"
#include "IOThread.h"
#include "UtilityFunctions.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include <QImage>
#include <QPixmap>
#include <QPainter>
using namespace pathology;
IOWorker::IOWorker(IOThread* thread) :
QThread(thread),
_abort(false),
_back... |
23b24354f9ea685c096219c83b3d0c40935bf0cdcbaf0511a8f5be231025d818 | C++ | 9,544 | 314 | #include "VSIImage.h"
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <math.h>
#include "core/filetools.h"
#include "core/Box.h"
#include "core/PathologyEnums.h"
// Include LIBJPEG for lossy (and lossless with TurboJPEG) JPEG compression
extern "C" {
#include "jpeglib.h... |
83704148e379be8211062c971a9fb863cfba36875ced2f29a393930126da233f | C++ | 9,561 | 282 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
f4b3053516e68db4156ba7fe268d5d8af28653980b14f4f90751502c4143cd9a | C++ | 9,613 | 282 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
ca00405c1476016432380ca3831b6f237e4f6d9f21424e4219344f9b5b4e7b2d | C++ | 9,625 | 301 | /**
* Copyright (c) 2020 CCS/GMRV/URJC/UPM.
*
* Authors: Juan P. Brito <juanpedro.brito@upm.es>
* Juan Jose Garcia Cantero <juanjose.garcia@urjc.es>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3.0 as publi... |
2b59cf1fb59b74f22a8c8cf69d0cc163ac7a59572faab51da292ec2bbe6a8dbe | C++ | 9,710 | 282 | /*
* Copyright 2007 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
* certain rights in this software.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
34fb53daeeec1abfeb496aef4df646bed281c8fcb05fd4a775422e5054c95033 | C++ | 9,741 | 299 | /**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap... |
269d99bd052eaf8120dedd7b42f40dbbe19991f7d3e889080bf8b168001a711e | C++ | 9,785 | 294 | /**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap... |
51f8582e5cde8fb631f4c6a1a2da07821e7197a29cde09ca3c18cc9a8d7b59b0 | C++ | 9,895 | 405 | /*******************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Anton Holmgren, Martin Rosvall
This file is part of the Infomap software package.
See file LICENSE_GPLv3.txt for full license details.
... |
4be3784c4afbed567a7577967c65716b8b5a9dd67b3c7f1d46468e60307f5ea9 | C++ | 9,899 | 405 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
7162faceb6a9951c45198958a802a1437202ce4206b042a9bc1440997e212948 | C++ | 9,920 | 290 | // Copyright Vladimir Prus 2002-2004.
// 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/program_options/variables_map.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/... |
7842665b91c50ebdbd048f6eab11f6408b55eb3f769ea2e83f8629f54be92af9 | C++ | 9,939 | 258 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
357d901f5119f1c194631c1f17797cba5c2ef16505627cfe8d57e5cf2e3c4d63 | C++ | 10,016 | 275 | /*
igraph library.
Copyright (C) 2011-2025 The igraph development team <igraph@igraph.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at y... |
61059dce7ca47052383c8eab9877728555cca3d02cd61051d4e1d154dbef41ac | C++ | 10,061 | 345 | #include "prpack_base_graph.h"
#include "prpack_utils.h"
#include <cassert>
//#include <cstdio>
//#include <cstdlib>
#include <cstring>
#include <stdexcept>
#include <vector>
#include <limits>
using namespace prpack;
using namespace std;
void prpack_base_graph::initialize() {
heads = NULL;
tails = NULL;
va... |
e830da432806fd34cd2239a666e0ca718eff620a7831d527ab1ca17c9a372aeb | C++ | 10,094 | 304 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
c00e06567472c42b8ba02720ee8f95a10bb6584c6246adad109d542a8fee3660 | C++ | 10,114 | 327 | // Copyright Vladimir Prus 2002-2004.
// 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/program_options/parsers.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/progra... |
417577145aa7f6861e79824f9131c9b505f75813900803c5f8cfb3e5e7f4c65a | C++ | 10,202 | 221 | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <RcppArmadillo.h>
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::R... |
3da7ea318fcadb94dc679c4bdb1ecd7b6778689a8629ed633d7dadd84be131f0 | C++ | 10,238 | 333 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
9410e15e8cdebb8fd2c469abbda423bf91942e55679e0fa03ff7d70de6197967 | C++ | 10,393 | 393 | #include <algorithm> // generate
#include <vector> // vector
#include <iterator> // begin, end, and ostream_iterator
#include <functional> // bind
#include <iostream> // cout
#include <ctime> //clock
#include <math.h> /* exp */
#include <map>
#include <stdexcept>
#include <utility>
#include <set>
#inc... |
0133b735b781ed078d1405a5d84b6b137b3eef4f596166ec270927f831d8f6aa | C++ | 10,395 | 259 | // Copyright Vladimir Prus 2002-2004.
// 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/program_options/options_description.hpp>
using namespace boost::program_options;
#include <boost/function.h... |
12a7fdf26466b8c3635ab60f4d48f8787ef3557a506843ffa3954468f1aaa555 | C++ | 10,454 | 333 | /*
* MemoryNetworkAdapter.cpp
*
* Created on: 26 jun 2015
* Author: Daniel
*/
#include "MemoryNetworkAdapter.h"
#include <algorithm>
#include <iostream>
#include <iterator>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include "../io/conv... |
42fe317a672e895355802556fb87741b3444fb0604cbb06eb66199c2efe90fa2 | C++ | 10,465 | 302 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
33ccbdfb4c8752bb1f4f61a18b67b2c0dffb5ecd2502e3f97a0c4f664d55ab90 | C++ | 10,489 | 309 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
9286fa46908c4f34b31610a4a4c6bd04bdbae1f5145226f8f531c6be4173bc57 | C++ | 10,529 | 273 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
102eb543e3e49a2bc7fd0538b6f673c90d762c5320b1bb21738a2f8c432e7158 | C++ | 10,559 | 310 | #include <sstream>
#include "core/ImageSource.h"
#include "TileManager.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "IOThread.h"
#include "WSITileGraphicsItem.h"
#include "WSITileGraphicsItemCache.h"
#include <QGraphicsScene>
#include <QPainterPath>
#include <QCoreApplication>
#... |
25092d766fe317a52840154a8ac7b825f0c2671105d49401111ab27a6d23696c | C++ | 10,657 | 266 | /**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap s... |
e6636f589fde3be33eb52afc6903cde675e1e6394b3a75ed0b97e9a774ec0d7f | C++ | 10,788 | 251 | /**
* Copyright (c) 2020 CCS/GMRV/URJC/UPM.
*
* Authors: Juan P. Brito <juanpedro.brito@upm.es>
* Juan Jose Garcia Cantero <juanjose.garcia@urjc.es>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3.0 as publi... |
bad39284443143021b6128209f7e3d4647f1ae6ecb91a111b630138448ef2288 | C++ | 10,789 | 301 | /*
*
* 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.
... |
db2c62284ba4c6577d07f84694675244eabb82a025e7194363c48be36e284403 | C++ | 11,257 | 226 | #include "ColorDeconvolutionFilterPlugin.h"
#include "imgproc/basicfilters/ColorDeconvolutionFilter.h"
#include <iostream>
// Qt widget used for panel
#include <QDialog>
#include <QtCore/QVariant>
#include <QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QComb... |
bba6f91a8966ee382bd92c373c09413f7babeb215165246fbe161c0ad42ed52b | C++ | 11,323 | 249 | /*
igraph library.
Copyright (C) 2024 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ver... |
801ff26cf96703ac87ce843f430f8125d73f1bf13a3c759843da933017b24b7a | C++ | 11,364 | 321 | #include "MultiResolutionImage.h"
#include <cmath>
using namespace pathology;
// Subsequent specialization to not re-copy data when datatypes are the same
template <> void MultiResolutionImage::getRawRegion(const long long& startX, const long long& startY, const unsigned long long& width,
const unsigned lon... |
d7fd728a0249dbc716ca9fcbf08c7a9f884c8cd73ba7533dcc7babca1c18d8d4 | C++ | 11,480 | 355 | // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
105894f2e7055f2abfac3ea46d8d33920793a76a158403411ca512d0f8557222 | C++ | 11,790 | 291 | /*
Copyright 2017 The Johns Hopkins University Applied Physics Laboratory LLC. All Rights Reserved.
Copyright 2021 The igraph team.
Truss algorithm for cohesive subgroups.
Author: Alex Perrone
Date: 2017-08-03
Minor edits: The igraph team, 2021
This program is free software; you can redistribute it and... |
abd2c882ffb609c83d112f72fc3c52167dc888f3d3a1f5097f57b9b7ef5066c1 | C++ | 11,936 | 314 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
890710f366e6a70a686a95851f7deb5353ff46d5eeafe241747f10dbdf616559 | C++ | 12,215 | 421 | /*
* BSD 3-Clause License
*
* Copyright (c) 2016-2021, UniFrac development team.
* All rights reserved.
*
* See LICENSE file for more details
*/
#include "tree.h"
#include <stack>
#include <algorithm>
#include <Rcpp.h>
using namespace su;
BPTree::BPTree(std::vector<bool> input_structure,
std::vecto... |
8e0c7cc47d9376a748727dee22018809b47787d2a41eab3d19cd866b1369cf0a | C++ | 12,268 | 437 | #include "env.hh"
#include "mmsbinfer.hh"
#include "linksampling.hh"
#include "fastamm.hh"
#include "fastinit.hh"
#include "fastamm2.hh"
#include "sbm.hh"
#include "mmsbinferorig.hh"
#include "mmsbgen.hh"
#include "log.hh"
#include "mmsborig.hh"
#include "fastqueue.hh"
#include <stdlib.h>
#include <string>
#include <i... |
e05c045ce64ae49be22a706bef7575cd9c09513f29de10eb1dc137de0e952dbc | C++ | 12,318 | 332 | #include "GrandChallengeSource.h"
#include <algorithm>
#include <stdexcept>
#include <system_error>
#include <cstdio>
#include "core/stringconversion.h"
#include "../Networking/HTTPFileDownload.h"
#include "../Serialization/JSON.h"
// TODO: Grand Challenge doesn't offer schema's for it's API yet, which is... |
6482aa8dbc7c8619f05c1f79e2bcaf50e6824e23c33e3f0dba6c4f1c3b7f9d8f | C++ | 12,377 | 329 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
913978d266d7a89ef14bc1ee2d17f6d82564f63b6659624da163cde363fc19cc | C++ | 12,382 | 316 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
1f626019518cf7c96a7c400319ac3d35dba1ba8c426b8a654a49dc18f140e69f | C++ | 12,551 | 259 | /*
igraph library.
Copyright (C) 2024 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ver... |
40cd8bd378c70a0d6d60e157f581ae709b3593714458294a4630491a632e4802 | C++ | 12,673 | 336 | /**
* Copyright (c) 2020 CCS/GMRV/URJC/UPM.
*
* Authors: Juan P. Brito <juanpedro.brito@upm.es>
* Juan Jose Garcia Cantero <juanjose.garcia@urjc.es>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3.0 as publi... |
4abd21e96bc1cfaffa5463f5dba84ccb90f52873c5a9bc87f27c1db77b1afd05 | C++ | 12,692 | 368 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
382c275819e2a302dfad6387753eda21bcf2c827e37a76db88590c8577ca5a4d | C++ | 12,713 | 294 | #include "PolyQtAnnotation.h"
#include "annotation/Annotation.h"
#include <QPainter>
#include <QPainterPath>
#include <QPainterPathStroker>
#include <QStyleOptionGraphicsItem>
#include <iostream>
#include <cmath>
PolyQtAnnotation::PolyQtAnnotation(const std::shared_ptr<Annotation>& annotation, QObject* parent... |
494be95de55c7adb3bd4b048cdbdaa8d31cc26d2deeb0216eae0d7db50cc2028 | C++ | 13,264 | 367 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
0b01562e744c7d2fa55e277811acd8ff4b3634f565f763d98f9568bd20533b6a | C++ | 13,386 | 364 | /**
* Copyright (c) 2020 CCS/GMRV/URJC/UPM.
*
* Authors: Juan P. Brito <juanpedro.brito@upm.es>
* Juan Jose Garcia Cantero <juanjose.garcia@urjc.es>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3.0 as publi... |
37bf4ce7817d6ce7b284a842e5f495ab52f756fdebbe973321bfd95234fda2d3 | C++ | 13,457 | 362 | /*******************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Anton Holmgren, Martin Rosvall
This file is part of the Infomap software package.
See file LICENSE_GPLv3.txt for full license details.
... |
0886c3ff365f9fb54196b44f048f2bf2f218808201e566807c9dfeb88969510f | C++ | 13,528 | 568 | #include "fastinit.hh"
#include "log.hh"
#include <sys/time.h>
#define NDEBUG_ITER 5
FastInit::FastInit(Env &env, Network &network, uint32_t max_deg)
:_env(env), _network(network),
_n(env.n), _k(5), _max_deg(max_deg),
_t(env.t), _s(env.s),
_iter(0),
_alpha(_k),
_family(0), _prev_mbsize0(_s), _prev_... |
5f51de3d005157f518a52058fd4f5e1dcc8d3087f1eb801d21e558da3274a683 | C++ | 13,753 | 317 | #include "WSIDicomInstance.h"
#include <vector>
#include <string>
#include <cmath>
#include "dcmtk/config/osconfig.h"
#include "dcmtk/ofstd/ofcond.h"
#include "dcmtk/dcmdata/dctk.h"
#include "dcmtk/dcmdata/dcdeftag.h"
#include "dcmtk/dcmdata/dcuid.h"
#include "dcmtk/dcmdata/dcfilefo.h"
#include "dcmtk/dc... |
8e9c972be61669b83b451ebd815204cd1e451adc47fd3e81257f3d1308bcef52 | C++ | 13,985 | 428 | // Copyright Vladimir Prus 2004.
// 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 BOOST_PROGRAM_OPTIONS_SOURCE
#include <boost/program_options/config.hpp>
#include <boost/program_options/value_semantic.hp... |
ab37a1bbbd43363836551c5e2dc8e1d5364a6b5a1d7a670ccad4a32dddf996f3 | C++ | 14,016 | 395 | /**
* Copyright (c) 2020 CCS/GMRV/URJC/UPM.
*
* Authors: Juan P. Brito <juanpedro.brito@upm.es>
* Juan Jose Garcia Cantero <juanjose.garcia@urjc.es>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3.0 as publi... |
128a905ecfed41c5802d5409406fe4df84d249a9030963cad61f7289a072acc7 | C++ | 14,161 | 354 | /*
* BSD 3-Clause License
*
* Copyright (c) 2016-2021, UniFrac development team.
* All rights reserved.
*
* See LICENSE file for more details
*/
#include <unordered_map>
#include <cstdlib>
#include <thread>
#include <algorithm>
#include <cstdlib>
#include "tree.h"
#include "unifrac_task.h"
using namespace su;... |
bf3fd972a586348d78840076875e536ffc87ac763d79a8f05978bdbba7d55bf9 | C++ | 14,252 | 415 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
98fdc0232afaefec991112480eb77e3930db9c53d42cf4e063bb478547de1fd1 | C++ | 14,482 | 410 | /**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap s... |
0716028848e9f0c7adaf8b29da46d325dc763b1ccbc0d45ee45b0449f0901fc0 | C++ | 14,555 | 680 | /*
CmdMessenger - library that provides command based messaging
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,... |
93602afd3e7b68db5f90531376498a52dcde54620a1647530acecfd8505850c7 | C++ | 14,611 | 424 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
efcb404e6b9414ecd72517695bd04510115aec517ec6843dd99307e1e5fbbdfc | C++ | 14,833 | 415 | /**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap s... |
765306b2701c9137bb0ea39ffd4fe51dbaf47c825b1736f81ec38a9077564cdd | C++ | 15,050 | 397 | #include "JPEG2000Codec.h"
#define OPJ_STATIC
#include "opj_config.h"
#include "openjpeg.h"
#include "core/PathologyEnums.h"
#include <string>
#include <cstring>
#include <vector>
#include <sstream>
using namespace std;
void error_callback(const char *msg, void *client_data)
{
//(void)client_data;
... |
6d012e8b21232f9f6db5850e7fde18f855d111743089ad5cd3dc1b1ee1ad72b9 | C++ | 15,148 | 388 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
2103b62fed3a2b46cfa518028cb42dd256c7df861a9c1ed986bd2b8b3d8a7d58 | C++ | 15,160 | 489 | /* This source file must have a .cpp extension so that all C++ compilers
recognize the extension without flags. Borland does not know .cxx for
example. */
#ifndef __cplusplus
# error "A C compiler has been selected for C++."
#endif
/* Version number components: V=Version, R=Revision, P=Patch
Version date c... |
7ae0105b6c4050d72ef839fc02ad42bbdbe7fb8a15a1624f7042a2c53bceb4d5 | C++ | 15,175 | 264 | /*******************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Anton Holmgren, Martin Rosvall
This file is part of the Infomap software package.
See file LICENSE_GPLv3.txt for full license details.
... |
9407618500284ba2f321269b500d84571b7ba84c05bd683220502b922f59f796 | C++ | 15,274 | 428 | // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
cb4027e5341f8e77d0ff33db5d749f8430997056df6ad6e07c719b3c685b3f16 | C++ | 15,466 | 297 | #include "NucleiDetectionFilterPlugin.h"
#include "imgproc/opencv/NucleiDetectionFilter.h"
#include "core/Point.h"
#include <iostream>
// Qt widget used for panel
#include <QDialog>
#include <QtCore/QVariant>
#include <QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <Qt... |
8762363b8d6612c3fa80341138f9ace225d08c1df63c52d17af80549382054a2 | C++ | 15,817 | 517 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
9ab4dee792c4a01c5c82a0da58f1a3084cb4526d794c0bc8d765dd8e47b9aadb | C++ | 16,067 | 411 |
#include <cmath>
#include <cstring>
#include <iostream>
#include <stdexcept>
#include <algorithm>
#include <functional>
extern "C" {
void match_template_mad(
int nax, int nay, int naz, float *array,
int ntx, int nty, int ntz, float *temp,
float *dist_array
) {
if (ntx % 2... |
8c6f2e69401631d59be644ad7bd1ed87710c1b4129797126a44719d188780878 | C++ | 16,258 | 660 | /*
*
* Copyright (c) 1998-2002
* 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 versio... |
d47aa95f1194b97fb3acc2dfe1760e460c5fa4610ce98cebc92eea9a4a0e6f4a | C++ | 16,259 | 560 | #include <math.h>
#include <iostream>
#include <sstream>
#include <unordered_set>
#include <unordered_map>
#include <algorithm>
#include <random>
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
#include "survival_forest_utility.h"
#include "survival_forest_globals.h"
#include "survival_fore... |
2e36e6f51946ba64a24f4a4d8fd1d49c440f859ac8a6c660ce7fee20b29bf96f | C++ | 16,495 | 487 | /*
* Copyright 2007 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
* certain rights in this software.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided t... |
f120f427d71a3fb96d184643747370e784eac21d0a9c32044b9bd1a85e690803 | C++ | 16,678 | 492 | #include "TIFFImage.h"
#ifdef _WIN32
#include <Windows.h>
#include <Stringapiset.h>
#endif
#include "tiffio.h"
#include "JPEG2000Codec.h"
#include "core/PathologyEnums.h"
#include <shared_mutex>
#include <cmath>
#include <sstream>
using namespace pathology;
TIFFImage::TIFFImage() : MultiResolutionImage(... |
c1d74c0e915abc93b9624c734acd86121a675b942b2b776abc70938098226733 | C++ | 16,823 | 337 | //
// Created by ivan on 3/11/21.
//
#include "SimplificationHelpDialog.h"
#include <QVBoxLayout>
#include <QLabel>
#include <QTextEdit>
#include <QPushButton>
#include <QMessageBox>
SimplificationHelpDialog::SimplificationHelpDialog(QWidget* parent) :
QDialog(parent)
{
auto mainLayout = new QVBoxLayout();
... |
e4919b290eff4d2d78a20fdf76a36bc0874586ca962c11a62981e8e17d8b059b | C++ | 17,029 | 584 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
52b63a2bd45f396a03a03c19f6e1afedc806a9484cf5981fadce6363556eb5dd | C++ | 17,152 | 726 | #include "mmsbinferorig.hh"
#include "log.hh"
#include <sys/time.h>
D3 *PhiComp2::_gphi1 = NULL;
D3 *PhiComp2::_gphi2 = NULL;
MMSBInferOrig::MMSBInferOrig(Env &env, Network &network,
int itype)
:_env(env), _network(network),
_n(env.n), _k(env.k),
_t(env.t), _s(env.s), _itype(itype),
_alpha(_k),
... |
48a9064eb0b172162e5254a4d4b5dfc64e88f9fad0483c77418361d8c932e321 | C++ | 17,673 | 438 | #include <string>
#include <vector>
#include <iostream>
#include <QFileDialog>
#include <QToolButton>
#include <QIcon>
#include <QLabel>
#include <QGraphicsEffect>
#include <QDebug>
#include <QPushButton>
#include <QDockWidget>
#include <QListWidget>
#include <QPlainTextEdit>
#include <QMenu>
#include <... |
e18e7ec46b000e1c31175ad3b09c012eb06d8242b9f8379fe4f980ab870618f0 | C++ | 17,987 | 624 | // Copyright Vladimir Prus 2002-2004.
// 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/program_options/cmdline.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program... |
5a2734a90bd9390eb787df85a6329931743899aff7fde46c0475e9ad4bf56b7c | C++ | 18,299 | 451 | /*******************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Anton Holmgren, Martin Rosvall
This file is part of the Infomap software package.
See file LICENSE_GPLv3.txt for full license details.
... |
779a3c4d096a8a39b2acbcc863532fd8363976368023f0d6dccd2b6a8d04b248 | C++ | 18,870 | 547 | /**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap s... |
21472139425e9a03930a3e31adb7f63fae4bff252afdfe9a7498b276b3010978 | C++ | 19,133 | 775 | #include "network.hh"
#include "log.hh"
#include <stdio.h>
static int scurr = 0;
//#define DELIM " "
#define DELIM "\t"
int
Network::read(string s)
{
fprintf(stdout, "+ Reading network from %s\n", s.c_str());
FILE *f = fopen(s.c_str(), "r");
if (!f) {
lerr("error: cannot open file %s:%s", s.c_str(), strerr... |
2d4abb963ed5e67d72eb02fd992eeca5d7947b1734ce78c64aac27ba1fa47f6a | C++ | 19,965 | 652 | /*
*
* 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.
... |
92ba5e3c6d051134d249211246a1fbe7e81d050b617ca2752588963eb0d4f5dc | C++ | 20,466 | 525 | #include "UnitTest++/UnitTest++.h"
#include "MultiResolutionImage.h"
#include "MultiResolutionImageReader.h"
#include "MultiResolutionImageWriter.h"
#include <iostream>
#include "core/filetools.h"
#include "core/PathologyEnums.h"
#include "TestData.h"
using namespace UnitTest;
using namespace std;
using nam... |
92d31cd3fb7aaf515686092e2f87a27c3662a987f44185ece6f3b09a1f93a26d | C++ | 21,040 | 622 | #include "LIFImage.h"
#include <fstream>
#include <iostream>
#include <cmath>
#include "core/filetools.h"
#include "core/stringconversion.h"
#include "core/PathologyEnums.h"
#include "pugixml.hpp"
using namespace pathology;
const char LIFImage::LIF_MAGIC_BYTE = 0x70;
const char LIFImage::LIF_MEMORY_BYTE... |
b530d366c6a8c3b48f6da06d0e990dbc9ed4b18d9a063cb2be47eb49569788a9 | C++ | 21,085 | 507 | /*
*
* 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.
... |
479ac6956e836eb516ad079b5c554dd12876029dfda64423781b5e7aca983896 | C++ | 21,180 | 927 | /*
*
* Copyright (c) 1998-2002
* 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 versi... |
918814aa4ac0c5a37c844e4cd2990ab2606d52543b8cbc8f63271ffdf0cadb1b | C++ | 21,269 | 571 | /**
* Copyright (c) 2020 CCS/GMRV/URJC/UPM.
*
* Authors: Juan P. Brito <juanpedro.brito@upm.es>
* Juan Jose Garcia Cantero <juanjose.garcia@urjc.es>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License version 3.0 as publi... |
47f5d466ef1fcffc4634a8eb592b03fc021ca636f55eccba652f457fbf4cc855 | C++ | 21,326 | 629 | /*******************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Anton Holmgren, Martin Rosvall
This file is part of the Infomap software package.
See file LICENSE_GPLv3.txt for full license details.
... |
c1a20005bfcc7ef5397f49b68bb69883bf5393efc649ab7be80e5e2fb0ef1a04 | C++ | 21,637 | 489 | /**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap s... |
72513846540197d4f3e28553f2851dbcf4d26c02a8b6c7b3feeed7a9da3f9ae6 | C++ | 21,703 | 524 | // Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
47168945b460bf6a836c84c4437a051094e3c398ec44f6a9b7b1f3de3fea7edb | C++ | 22,114 | 732 | /*
*
* gengraph - generation of random simple connected graphs with prescribed
* degree sequence
*
* Copyright (C) 2006 Fabien Viger
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Fo... |
a0479c5927608786d783343bfe195bf5599bb5e94690d1815c725e30b02dcd09 | C++ | 22,423 | 598 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
eb259c162daad94179662eda4d5b4fd40fce7b2a8b04de3f047ef8436290f529 | C++ | 22,573 | 650 | // Copyright Vladimir Prus 2002-2004.
// Copyright Bertolt Mildner 2004.
// 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 BOOST_PROGRAM_OPTIONS_SOURCE
#include <boost/program_options/config.hpp>
#include... |
b03e20bd12e5fe776af67efb3a4bb0b3fc46217ba649743d38c4828f8dad31e9 | C++ | 22,834 | 645 | #include "PathologyViewer.h"
#include <iostream>
#include <QResizeEvent>
#include <QApplication>
#include <QMenu>
#include <QAction>
#include <QMessageBox>
#include <QTimeLine>
#include <QScrollBar>
#include <QHBoxLayout>
#include <QSettings>
#include <QGuiApplication>
#include <QMainWindow>
#include <... |
f197c33dcfde7dc677376ecf2e25aca3ddcd49a375667ea6b38c8c96770ecb51 | C++ | 23,045 | 592 | // Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
a63ff9faee289e1f1b8ffa29bbd3fe00e058d0260a5cfd29b86c6e01701d9f36 | C++ | 23,772 | 767 | #include "WorklistWindow.h"
#include <cctype>
#include <condition_variable>
#include <sstream>
#include <unordered_map>
#include <qfiledialog.h>
#include <qinputdialog.h>
#include <qmessagebox.h>
#include <QMimeData>
#include <QtConcurrent/qtconcurrentrun.h>
#include "core/stringconversion.h"
#ifdef BU... |
afdeff9b87b5071c4f09c7675d5254b03fab9c5bfa2065aa57c9bd4ab85fb16b | C++ | 23,777 | 962 | #include "mmsbgen.hh"
MMSBGen::MMSBGen(Env &env, Network &network, bool ppc)
: _env(env), _network(network), _ppc(ppc),
_n(env.n), _k(env.k), _t(env.t),
_gen_y(1,1), //XXX
_gen_ones(0),
_alpha(_k), _eta(_k,_t),
_pi(_n,_k),
_beta(_k), _gamma(_n,_k), _lambda(_k,_t),
_curr_id(0),
_Elogpi... |
4243f45d0ba263caf5a84a0ff9f2594cb72b61783ad26b562ea89b7e95ffb13f | C++ | 25,026 | 716 | // Copyright Vladimir Prus 2002-2004.
// 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 BOOST_PROGRAM_OPTIONS_SOURCE
#include <boost/program_options/config.hpp>
#include <boost/config.hpp>
#include <boos... |
f136f00f19aeba671fe83de5c598f7220d2e4f5f928df30f16c6cecf9a724277 | C++ | 25,393 | 638 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.