sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
0b5d46d05cf1359a1bdb49c6e184c0c26e43bbca0d12e51b30eeb30edf950f0c | C++ | 4,320 | 128 | // 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... |
cc199127113676997b8ce68744edd23df219f60a2043e43b418297c78c163d22 | C++ | 4,386 | 121 | // 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... |
97b80604240cf9cf33660fa0a528cbade9339cdf96aa249c03bf8a731377b837 | C++ | 4,439 | 148 | #include "OpenSlideImage.h"
#include <shared_mutex>
#include "openslide.h"
#include <sstream>
using namespace pathology;
OpenSlideImage::OpenSlideImage() : MultiResolutionImage(), _slide(NULL), _bg_r(255), _bg_g(255), _bg_b(255) {
}
OpenSlideImage::~OpenSlideImage() {
std::unique_lock<std::shared_mutex... |
ea15d29036c16cb909439109a9d48f9ee5a831e11c8ea607e59884dc2dfbfa52 | C++ | 4,439 | 117 | #include "uintseqhash.hh"
/*
Copyright (c) 2003-2021 Tommi Junttila
Released under the GNU Lesser General Public License version 3.
This file is part of bliss.
bliss 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 Fre... |
077243377558566af804c759a28223c99806639396a7321caccd9c53b173163a | C++ | 4,552 | 145 | #include "NucleiDetectionWholeSlideFilter.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "core/PathologyEnums.h"
#include "imgproc/opencv/NucleiDetectionFilter.h"
#include "annotation/Annotation.h"
#include "annotation/AnnotationList.h"
#include "annotation/XmlRepository.h"
#include ... |
b418d84980f605d370618a08103cd88291609c9d1c79cac8b89fdd97fc7d522d | C++ | 4,568 | 163 | // 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/... |
394d19b71d095b494b9e88e8e5c940fe71395fdf98337b14ba34063e1f09d418 | C++ | 4,614 | 164 | // Copyright Sascha Ochsenknecht 2009.
// 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/progr... |
8dde4d7777fa54f1438db06afdab5626c18c5927a4db132642940f652ca3de4d | C++ | 4,657 | 136 | /*
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... |
c5696fa21751df9c676bceb7dcb24ffff5b227cb2db229919ea8bcf01aa72fc1 | C++ | 4,668 | 136 | /*
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... |
4acf72a3f1e068d81cab346da747d06043b3584756a0c6179d62f5654b3cb8c0 | C++ | 4,756 | 134 | // 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... |
ed294ace0a3bc194ae9a08a3bf4a5db31ad8a5f4a3fb2ea7330cec51935cd2ec | C++ | 4,758 | 140 | #include "HTTPFileDownload.h"
#include <stdexcept>
#include "core/stringconversion.h"
namespace ASAP
{
fs::path httpFileDownload(const web::http::http_response& response, const fs::path& output_directory, std::string output_file, std::function<void(uint8_t)> observer)
{
// Fails if the path doesn't po... |
bc4a4455a30b5679fc4a6e2647f3ca36f0060a0d8adddbca208514efbc14f2e4 | C++ | 4,760 | 147 | #include "IconCreator.h"
#include <QStandardPaths>
#include <functional>
#include <stdexcept>
#include <multiresolutionimageinterface/MultiResolutionImage.h>
#include <multiresolutionimageinterface/MultiResolutionImageReader.h>
#include <multiresolutionimageinterface/MultiResolutionImageFactory.h>
namesp... |
12fa419c6ee53ffdf5ab036ea3b712ecbb9d146bb37790ed62efa630d35dd39c | C++ | 4,904 | 141 | #include <iostream>
#include <QStyleOptionGraphicsItem>
#include <QPixmap>
#include <QPainter>
#include <QPointer>
#include <QGraphicsScene>
#include <QTransform>
#include "WSITileGraphicsItem.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "WSITileGraphicsItemCache.h"
#include "Ti... |
7ce71b893c93b123b9b63e547c48d120593967093e56bc73527a0daec1748382 | C++ | 4,959 | 134 | /*
igraph library.
Copyright (C) 2007-2021 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... |
cb1b04e457688f12b227ff2ba7ce6000ba45956e6546c59d1667e7ad9aff5ff5 | C++ | 5,002 | 243 | //
// sp_debug_hooks.cpp
//
// Copyright (c) 2002, 2003 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)
//
#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
#include <boost/assert.hpp>
#include <new>
#i... |
76717694396278b525f4105accac4d1d7e432601bcbdbf0ace816ac3f89f4796 | C++ | 5,023 | 146 | /*
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... |
5ea225a94fe27830172ccf115fff9f03a3346ae0a88aa98d415c760439ab86cc | C++ | 5,151 | 146 | #include "ThresholdWholeSlideFilter.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "multiresolutionimageinterface/MultiResolutionImageWriter.h"
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "core/PathologyEnums.h"
#include "core/filetools.h"
#include <... |
5693231b2cbf2e1f161a1b79c34fdc105823b6472b7a7a4ce4371d33259adbdf | C++ | 5,163 | 183 | #include "JSON.h"
#include "core/stringconversion.h"
namespace ASAP { namespace JSON
{
web::json::object getTagRecursive(std::wstring tag, const web::json::value& json)
{
web::json::object object(json.as_object());
for (auto it = object.cbegin(); it != object.cend(); ++it)
{
if (it->first == tag... |
478947ba548fa3fda0ab4f1902cb32d01b0f6d3f834860355b44c35d48d3902a | C++ | 5,227 | 147 | #include "AperioSVSWriter.h"
#include "JPEG2000Codec.h"
#include <sstream>
#include "core/PathologyEnums.h"
extern "C" {
#include "tiffio.h"
};
using namespace pathology;
int AperioSVSWriter::finishImage() {
if (getDataType() == DataType::UInt32) {
writePyramidToDisk<unsigned int>();
writeThu... |
eaa5c7dab698585156b49c6d6af0e7958654fd8d184195c9361847a8e191a479 | C++ | 5,282 | 161 | // 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)
#include <fstream>
#include <locale.h>
#include <locale>
#include <iostream>
#include <string>
#include <locale>
#include <stdexce... |
efa82486ba2c0c988f17ef87f288aa33739880f6b41fb2c74fc6443ffc806d8a | C++ | 5,355 | 134 | /*
* 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... |
f95db7caccd51afd5eadac0f072dae002eda8ef392c6b23afdf0e4c9517fbefb | C++ | 5,364 | 183 | #include "prpack_igraph_graph.h"
#include <climits>
#include <cstring>
#include <new>
#include "igraph_interface.h"
using namespace prpack;
using namespace std;
#ifdef PRPACK_IGRAPH_SUPPORT
igraph_error_t prpack_igraph_graph::convert_from_igraph(
const igraph_t *g, const igraph_vector_t *weights, bool direc... |
140b62462c2c117e4a70b769beedaaeab5bab28e4bfbd85e176b0e8d3d56aeda | C++ | 5,370 | 227 | /*
*
* Copyright (c) 1998-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 versio... |
e33a1e7d5d1417898e01ad77c800ce8416bbebe4b07c6e0360d7cee77d2bbc65 | C++ | 5,406 | 169 | /**
* 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... |
f0ffb972dc81536493e30916a30ca0746da5737da34660322406b4d5968139a9 | C++ | 5,502 | 165 | #include "DjangoConnection.h"
#include <functional>
#include <stdexcept>
namespace ASAP
{
DjangoConnection::DjangoConnection(const std::wstring base_uri, const AuthenticationType authentication_type, const Credentials credentials, const web::http::client::http_client_config& config)
: HTTPConnection(base_u... |
c78c8dc822bb493d324177d26690983022f7a24628135b2ae2ac5d3f61cb454b | C++ | 5,561 | 191 | #include "QtAnnotation.h"
#include "annotation/Annotation.h"
#include "annotation/AnnotationGroup.h"
using namespace std;
float QtAnnotation::selectionSensitivity = 100.;
bool QtAnnotation::annotationColorForRects = true;
QtAnnotation::QtAnnotation(const std::shared_ptr<Annotation>& annotation, QObject* par... |
3e375c1a8f721ed461fe46d22477d888de661a30a478e61efeafda4c2abbc063 | C++ | 5,569 | 159 | /*
igraph library.
Copyright (C) 2021-2022 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 late... |
d1c8c0b29f01a74ddca29e40333791d7cfc467af2142065b264c839edd576acb | C++ | 5,582 | 149 | // 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... |
9c62fa3f71b2cd3665bdf1b4c6e4a4ded844011ae4a9232430d3bdc4adc878ac | C++ | 5,654 | 189 | // Copyright Sascha Ochsenknecht 2009.
// 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/progr... |
988d485f578a9d61a928b18d37f6ff47ed72069d3ee88bb33d17a13c55a1d7c3 | C++ | 5,675 | 212 | #include "Annotation.h"
#include "AnnotationGroup.h"
#include "psimpl.h"
#include <limits>
#include <cmath>
#include <iterator>
const char* Annotation::_typeStrings[7] = { "None", "Dot", "Polygon", "Spline", "PointSet", "Measurement", "Rectangle"};
Annotation::Annotation() :
_type(Annotation::Type::NONE),... |
ba0423ce7ce9673a6479c731b48dafa1de6ae05de5d01c9d55c3c72b5f5cfb5f | C++ | 5,846 | 180 | /**
* 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... |
19762fabac7c5174c6f515ce6507d884a1876c271bc1c3f692272a0c00c705fd | C++ | 5,862 | 153 | #include "MeasurementAnnotationTool.h"
#include "QtAnnotation.h"
#include "AnnotationWorkstationExtensionPlugin.h"
#include <QAction>
#include <QPen>
#include <QGraphicsLineItem>
#include <QGraphicsItem>
#include <QApplication>
#include <QStyleHints>
#include "PolyQtAnnotation.h"
#include "annotation/Annotati... |
cd838a08f3f17708e52310f78f22c0c9ecac3127062314c89e034623068bc83c | C++ | 5,885 | 160 | #include "WorklistModels.h"
#include <stdexcept>
#include <cctype>
#include "../GUI/WorklistWindow.h"
#include "core/stringconversion.h"
namespace ASAP
{
WorklistModels::WorklistModels(void) : images(new QStandardItemModel(0, 0)), patients(new QStandardItemModel(0, 0)), studies(new QStandardItemModel(0, 0... |
6282183507f3d7565cdc6e3c85dd0775fddeaf36160d4588352fd207531353ae | C++ | 5,909 | 172 | // 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... |
87cac3b33e61de96c135d1c887ca499b9512e4a7862e064146774b86d9efe516 | C++ | 5,948 | 124 | #include "MeasurementQtAnnotation.h"
#include "annotation/Annotation.h"
#include <QObject>
#include <QPainter>
#include <QPainterPath>
#include <QPainterPathStroker>
#include <QStyleOptionGraphicsItem>
#include "AnnotationWorkstationExtensionPlugin.h"
#include "multiresolutionimageinterface/MultiResolutionImage... |
49cd2da091b031c76f1721aae34bbe5fe2959bf01cfdfd0b2fb506eddbc32d19 | C++ | 6,018 | 170 | /*
igraph library.
Copyright (C) 2025 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... |
90e761ac48623f09209168cf967936ef5e1308d7bfc029d976b18ab1315ad23a | C++ | 6,018 | 198 | #include "FilterThread.h"
#include <limits>
#include <QPixmap>
#include <QPen>
#include <QBrush>
#include <QGraphicsPixmapItem>
#include <QGraphicsItemGroup>
#include <QElapsedTimer>
#include <QDebug>
#include "io/multiresolutionimageinterface/MultiResolutionImage.h"
#include "interfaces/interfaces.h"... |
2d37f05b66148e4600b7164d1398f7df93cba8af218c8b1b06a1016661cf1400 | C++ | 6,036 | 195 | #include "FilterThread.h"
#include <limits>
#include <QPixmap>
#include <QPen>
#include <QBrush>
#include <QGraphicsPixmapItem>
#include <QGraphicsItemGroup>
#include <QElapsedTimer>
#include <QDebug>
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "interfaces/interfaces.h"
#... |
5a33dc0703d0ca2c9deb56c6f9bf0059753f2e5bc4a4e7fe1c5294896e9f11f9 | C++ | 6,112 | 198 | // 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/program_options/detail/con... |
3553446c2bac093054ab87f998cbfbf57c53a363180a87baca30b3fb81f0b7b3 | C++ | 6,149 | 159 | #include "FilterWorkstationExtensionPlugin.h"
#include "FilterDockWidget.h"
#include "FilterThread.h"
#include "../PathologyViewer.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include <QDockWidget>
#include <QDir>
#include <QApplication>
#include <QPluginLoader>
#include <QListWidgetIt... |
27066cb22e8c687c4dbfb36a3cf49cd40a3dfca42d102b1dcd61f6baab2481af | C++ | 6,212 | 163 | #include "MultiResolutionImageFactory.h"
#include "MultiResolutionImage.h"
#include "core/filetools.h"
#include "VSIImage.h"
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
bool MultiResolutionImageFactory::_externalFormatsRegistered = false;
std::set<std::string> MultiResolutionImageFa... |
fd58bc5da3d087f299936bd13775b723547e6d7cb5f50fbca1f5c914577d0723 | C++ | 6,223 | 189 | /*******************************************************************************
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.
... |
5771ea6464e8eb13c32571e42b70e7e51924738ff548df5b0b2d6d5f90a2ba85 | C++ | 6,254 | 193 | /*
*
* 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.
... |
77bdbff8dcda4e8db0353a4022b9a11988e87852a09a6e9dfb55d78d15fc0bc3 | C++ | 6,385 | 178 | #include "FilterDockWidget.h"
#include <QListWidget>
#include <QLayout>
#include <QLabel>
#include <QProgressBar>
#include <QCheckBox>
#include <QPushButton>
#include <QtUiTools>
#include "interfaces/interfaces.h"
#include "io/multiresolutionimageinterface/MultiResolutionImage.h"
#include "PathologyWorkst... |
8913f90bff8da9ff2a322b5468a2f8f7737c2229a0f5fcc4cd806a6c7aca3f0a | C++ | 6,387 | 265 | #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 <utility>
#include <set>
#include <stdlib.h>
#incl... |
2ffeef5c69197e50ef7235e278f9bbcb6e69e600a3db3fb34f6c1c1227d483df | C++ | 6,393 | 187 | // 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... |
ac8c97a8d89ab38a96000115b598127dc95af755357681483ad678ca4955fe10 | C++ | 6,453 | 175 | #include "FilterDockWidget.h"
#include <QListWidget>
#include <QLayout>
#include <QLabel>
#include <QProgressBar>
#include <QCheckBox>
#include <QPushButton>
#include <QtUiTools>
#include "interfaces/interfaces.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "ASAP_Window.h"
#i... |
5b64ef8429ebe8b42dd00f96e898725158fd245fb7d4cb4067ca5f44d79512ed | C++ | 6,458 | 270 | //
// sp_collector.cpp
//
// Copyright (c) 2002, 2003 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)
//
#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
#include <boost/assert.hpp>
#include <boost/sha... |
5b25d274a4e4de7b3ceac2e0f30ab2cfea063b607fa830ab497e9b0ea3f1d63e | C++ | 6,482 | 238 | /*******************************************************************************
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.
... |
b5f38985c1dfe89b6e8bb8e352a23d8d28744d462723fc080997bd25cd30a670 | C++ | 6,500 | 185 | // 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... |
0b542b31e7dee37aa16a566b070acc42ae5ccb40fee873f4e32b1cc187c67eab | C++ | 6,513 | 189 | /*
igraph library.
Copyright (C) 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 your o... |
7bc7356c643301201d552ede1b8dee26df44373489fc5541c27e2844b1774a39 | C++ | 6,550 | 156 | #include "AnnotationToMask.h"
#include "AnnotationList.h"
#include "Annotation.h"
#include "AnnotationGroup.h"
#include "multiresolutionimageinterface/MultiResolutionImageWriter.h"
#include "core/Box.h"
#include "core/ProgressMonitor.h"
#include "core/PathologyEnums.h"
#include <algorithm>
void AnnotationToM... |
d6042cd5cc54004577f14a558cf1b0684ca617e871beb26c5b005ac434767df8 | C++ | 6,584 | 146 | /*
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... |
e5af85bfa21c85734162a7ff2120171da0e9cf05437a2ee1839bbf46194ddf43 | C++ | 6,655 | 182 | /*
*
* 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... |
f0fc29aab86353520dabd8b2e9d28818dc4e559884e5e17f7f459ffd202f01d0 | C++ | 6,742 | 256 | #include "DataTable.h"
#include <algorithm>
#include <stdexcept>
namespace ASAP
{
DataTable::DataTable(void)
{
}
DataTable::DataTable(std::vector<std::string> columns)
{
convertColumnsToLower(columns);
for (size_t column = 0; column < columns.size(); ++column)
{
m_column_order.insert(... |
02a819cc55febb07e91ca1e01811187617d3d2beeff9d6f38b48bf7b03e8b470 | C++ | 6,759 | 232 | /**
* 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... |
91ba9454f2810289ab590841a1c439f3174fb83ae3d3ac92076fd380da1c9960 | C++ | 6,773 | 179 | // 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... |
3d7df2a0773a79388092b4f43df62f4786e88ff54b9fcedc1a939bcd4fb1af36 | C++ | 6,786 | 203 | // 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... |
1bc1c41f04d5a5e76c7c79d3e0975399b419845493cd7db7c589082efdeaddac | C++ | 6,860 | 146 | /*
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... |
df1d55093fa3800075728e81d708dc466851d1b29cd9f53aefa73ff838c15ea5 | C++ | 7,008 | 151 | /*
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... |
039ae0bc6ca34c4e99603c910a1d37f6ea99138234e820646d5653880608b2b9 | C++ | 7,013 | 207 | // 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... |
03ad20e2778cbc83ff3f9c26ab27b03dbb95564b7bcc98a130647980925f72eb | C++ | 7,061 | 228 | /*
igraph library.
Copyright (C) 2007-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 ... |
72654f3767b8c0f153bf614ab5725206b9628e5ff327f845ea9b32990cb42753 | C++ | 7,125 | 203 | #include "DistanceTransformWholeSlideFilter.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "multiresolutionimageinterface/MultiResolutionImageWriter.h"
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "core/PathologyEnums.h"
#include "core/filetools.h"
#i... |
4569e5a8f7a24e0af1180e88b0feedde3579b47dd3996bbaea4968ae605539b9 | C++ | 7,142 | 176 | /*
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... |
433c511bdc2713666f217bad6bb32594138a9311084f3338bda0cecd61672097 | C++ | 7,146 | 162 | #include "ImageScopeRepository.h"
#include "Annotation.h"
#include "AnnotationGroup.h"
#include "AnnotationList.h"
#include "core/Point.h"
#include "core/filetools.h"
#include <vector>
#include <string>
#include <stdio.h>
#include "pugixml.hpp"
#include <algorithm>
#include <cmath>
ImageScopeRepository::I... |
e4f8dff86430b1703dae9f0fbde2171ee0f580012d62a730bd7c6f1c70f351d5 | C++ | 7,164 | 210 | // 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... |
db9c34d07dba5ca05a82ef8773034e7ea7d6d05661a9bab63c1a87ebdf021e6d | C++ | 7,168 | 201 | #include "prpack_preprocessed_scc_graph.h"
#include <algorithm>
#include <cstdlib>
#include <cstring>
using namespace prpack;
using namespace std;
void prpack_preprocessed_scc_graph::initialize() {
heads_inside = NULL;
tails_inside = NULL;
vals_inside = NULL;
heads_outside = NULL;
tails_outside = N... |
2987a6b3e6f393985b7ed3d77150909ac27e3987a761987de8b98d2b3b90082a | C++ | 7,170 | 170 | #include "DICOMImage.h"
#include <mutex>
#include <sstream>
#include <cmath>
#include "core/filetools.h"
#include "dcmtk/dcmdata/dcfilefo.h"
#include "WSIDicomInstance.h"
using namespace pathology;
DICOMImage::DICOMImage() : MultiResolutionImage() {
}
DICOMImage::~DICOMImage() {
std::unique_lock<std::s... |
aa7d70f76f7e2c8fb28574e3485d6b82867e832609273074b0a62de348093f3c | C++ | 7,186 | 296 | /*
*
* 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... |
c7c0d8386bdef897b3991b70b8626f15cf5ee849d0040f230e78daa6c699bb0e | C++ | 7,243 | 213 | // 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... |
7b9aca6e21a7315682f131d36c6cd516f731ec6e189a743332cab9b1c4b0f4e1 | C++ | 7,249 | 209 | // 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... |
24012f80a4fdf7b8f2ec751360f097ca56ef9311df09c4666c086eed1604c1ee | C++ | 7,354 | 197 | /*
* 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... |
fda54e5120330a26cc9ff81dfa554a874813af3778ac345ed0d2b4404cc24fe0 | C++ | 7,378 | 205 | #include <iostream>
#include <string>
#include <vector>
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "multiresolutionimageinterface/OpenSlideImage.h"
#include "multiresolutionimageinterface/MultiResolutionImageWrit... |
5069dffa94190ffc28848f250e76930ebcf21c43d1ab046914e90c430d0dbf1a | C++ | 7,554 | 277 | #include <random> // mt19937 and uniform_int_distribution
#include <algorithm> // generate
#include <vector> // vector
#include <iterator> // begin, end, and ostream_iterator
#include <functional> // bind
#include <iostream> // cout
#include <math.h> /* exp */
#include <numeric>
#include <iomanip>
#i... |
68ccd9fb413ac4b8382a60e36a33025ae35f28fe2215a1222c2ddd4f35385098 | C++ | 7,565 | 315 | /*
*
* 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... |
e1f8ba9fe25b43dc5a7652e3fb8a66b27f508e5b7cb53443babe7486221797a3 | C++ | 7,611 | 207 | // 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... |
b5e1543d4cfbe1cfd669f48ca418685ed31ebcbab921babbeaa4c90eb49e4cbf | C++ | 7,652 | 229 | // 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... |
a8e3d7a85fbc73d83dc8a3867e52c71f19989126b236687dde530c6297a5ec00 | C++ | 7,697 | 322 |
#define ARMA_NO_DEBUG
#include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
#include <Rcpp.h>
#include <vector>
using namespace Rcpp;
using namespace arma;
// [[Rcpp::export]]
void set_seed(unsigned int seed) {
Rcpp::Environment base_env("package:base");
Rcpp::Function set_seed_r = base_env["set.s... |
5435a58ab378a086762f86c190d3b4fcb3c8d59b7bfa5791cc5a21ff8d5447e1 | C++ | 7,715 | 232 | // 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... |
46861e60bb9394d31a1b69e4330a62dd66e13bbfff4ba4335efeeee7cc4314e0 | C++ | 7,784 | 188 | #include "XmlRepository.h"
#include "Annotation.h"
#include "AnnotationGroup.h"
#include "AnnotationList.h"
#include "core/Point.h"
#include <vector>
#include <string>
#include <stdio.h>
#include "pugixml.hpp"
XmlRepository::XmlRepository(const std::shared_ptr<AnnotationList>& list) :
Repository(list)
{
}... |
edfb85518a6af372bd3c36bc7226a92220892789e98c40a14d3dffae0dbfdc29 | C++ | 7,785 | 275 | /*
*
* 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... |
7aa63aa0ae1782d1fc77a10498ef6de9532a4a49bf244e11ec3a7b0409a9027f | C++ | 7,826 | 214 | #include "AnnotationTool.h"
#include "QtAnnotation.h"
#include "AnnotationWorkstationExtensionPlugin.h"
#include "annotation/Annotation.h"
#include "../PathologyViewer.h"
#include <math.h>
#include <numeric>
#include <iostream>
#include <QTimeLine>
AnnotationTool::AnnotationTool(AnnotationWorkstationExtensio... |
32130e3ea0c78d75985b4369e13964d085905059c0e1671d6352f0b561f80dea | C++ | 7,925 | 205 | // 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... |
3648ef479d1d05c99191926e5a2c87741f860cd2abbfbb8f176ae4571ec005d5 | C++ | 7,998 | 240 | /*******************************************************************************
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.
... |
6040f32ace4298731ee87736bcca6743e467e941e53c02692744ad56e19ec22f | C++ | 8,050 | 236 | // 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... |
3e6a033256c45c99d646ecd93c08244e0b50adc76c72e2097dc7a09514c9261f | C++ | 8,052 | 228 | #include "SourceProxy.h"
#include <stdexcept>
#include <sstream>
#include <filesystem>
#include "core/stringconversion.h"
#ifdef BUILD_GRANDCHALLENGE_INTERFACE
#include "GrandChallengeSource.h"
#endif
#include "DirectorySource.h"
#include "FilelistSource.h"
namespace ASAP
{
SourceProxy::SourceProx... |
02a7ee16e87efc06f1688b04f2a6dbe9adc902b51b283e908ad889363d795660 | C++ | 8,066 | 249 | // 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/config.hpp>
#define BOOST_PROGRAM_OPTIONS_SOURCE
#include <boost/program_options/config.hpp>
#include <boos... |
1e981dadc9f76af01985826fcbb0eb7592eb5e1bcfdc36a72b25208fa3ee9e5e | C++ | 8,212 | 235 | // 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... |
e3f76f38b59e8a99c77619b2c303433dde6228f8552db879c98ee18649d68b45 | C++ | 8,374 | 245 | /*
* BSD 3-Clause License
*
* Copyright (c) 2016-2021, UniFrac development team.
* All rights reserved.
*
* See LICENSE file for more details
*/
#include "unifrac.h"
#include "propmap.h"
#include "stripemap.h"
#include "tree.h"
su::mat_t su::one_off(const su::Assay & table,
const su::BPTr... |
8c455418fe19817989dd80ba6651229a29a41da0872324a49eb6f366f23fd458 | C++ | 8,390 | 224 | // 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... |
ba6e58b6b9bfff6b238574601a9aaf55459b644c18aebc689c3924cfe3f9bbd5 | C++ | 8,486 | 209 | /*Copyright (c) 2018 Miguel Monteiro, Andrew Adams, Jongmin Baek, Abe Davis
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
... |
504acd8c66bfd5f53ccb7554a7778d5629c1f05326b88ac3221f142b055d8b71 | C++ | 8,491 | 258 | /*
* 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... |
4d667c755737a997096a28c5731ca595f74d3aca503f1a5125f95fe090258e6e | C++ | 8,558 | 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 required... |
41036494671707281cba0d7f33fce4696e93f5edb6c1d16fa14f4a9d705181ce | C++ | 8,669 | 249 | // 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/program_options/parsers.hpp... |
c4dfc92586a068985b2ab937482d8475a42b77cf6152d9bff0289d509753d7ef | C++ | 8,783 | 260 | // 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... |
e5397be05acdd6017f4880002686eb9317a42f50649088829409ed66902ffad7 | C++ | 8,980 | 303 | /*******************************************************
* Copyright (c) 2019, Maxim Puchkov
* ArryFire version of Paganin Filter
* Paganin et al., J.Microscopy, 2002
* Based on Python code from Diamond Source (https://github.com/DiamondLightSource/Savu)
*
********************************************************/
//#in... |
065c192ef72726bdafb9fbcd4a787888db800ed039d06d223ca886689648b8f5 | C++ | 9,040 | 272 | #include "ConnectedComponentsWholeSlideFilter.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "multiresolutionimageinterface/MultiResolutionImageWriter.h"
#include "core/PathologyEnums.h"
#include <set>
#include <iostream>
ConnectedComponentsWholeSlideFilter::DisjointSet::DisjointSet... |
11a1d85470a08b122051653cfea3251830c214e68fa6d2d2cb8b33c54fd44e8e | C++ | 9,043 | 233 | /*
igraph library.
Copyright (C) 2007-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 ... |
262177a533ee5b6431b0aeca77b37b56dd18f57d0b6dc0b4f6d4c8a3115328f8 | C++ | 9,044 | 231 | // 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... |
011f1a7031d935f179aadac0b39f5ff5728447c3bc4094d152ed0189fe439ab1 | C++ | 9,056 | 253 | // 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.