sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
8ccec768c504c9a9f75f65cc87bcfe2b4f4d6d5b60c3bbc83ccb912873f49d15 | C/C++ | 1,274 | 29 | #ifndef __ASAP_NETWORKING_HTTPFILEDOWNLOAD__
#define __ASAP_NETWORKING_HTTPFILEDOWNLOAD__
#include <functional>
#include <string>
#include <thread>
#include <filesystem>
#include <cpprest/filestream.h>
#include <cpprest/http_client.h>
namespace fs = std::filesystem;
namespace ASAP
{
/// <summary>
... |
269483b9e3e6aa09603a26b7d5cf24c5e17cfcf13065607efa295f4dc4bf0642 | C/C++ | 1,284 | 44 | /**********************************************************************************
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... |
78172651c2dee73ec8f1fdc0df7a6011751d73f56ed2ccf5890fbbfcf8532292 | C/C++ | 1,295 | 37 | // 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... |
dfb01b2c1961def077f5be62a64e871612e312b5f34da39f73fff62bb5a9adae | C/C++ | 1,298 | 40 | #ifndef _OPENJP2IMAGE
#define _OPENJP2IMAGE
#include "MultiResolutionImage.h"
#include "multiresolutionimageinterface_export.h"
typedef void* opj_stream_t;
class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT OpenJP2Image : public MultiResolutionImage {
public:
OpenJP2Image();
~OpenJP2Image();
bool initi... |
a0fb1018cef44fa6967b8e20f8527743746d37b98068e691f18468aba13fac21 | C/C++ | 1,307 | 42 | /*
igraph library.
Copyright (C) 2011-2021 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... |
283b6c32e8a08fe0198e8cf28585070835937c27805560f883d74df988971158 | C/C++ | 1,308 | 36 | /*
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... |
9fa4db1fbbc4b3f43e8731eb5b99a22b136a30b692f1dece27ae786c9fc849a4 | C/C++ | 1,308 | 61 | #ifndef _FRST
#define _FRST
/* FRST compute Fast Radial Symmetry Transform (FRST).
* Computes the Fast Radial Symmetry Transform (FRST) as described in
*
* Loy & Zelinsky (2003),
* Fast Radial Symmetry for Detecting Points of Interest,
* IEEE Transactions on Pattern Analysis... |
ed7747b886436abcfc9d08186ff7009901f802d8e1872a03cba09d7e6b3cd54a | C/C++ | 1,313 | 46 | #ifndef PRPACK_ADJACENCY_LIST
#define PRPACK_ADJACENCY_LIST
#include "prpack_csc.h"
#include "prpack_csr.h"
#include "prpack_edge_list.h"
#include <cstdio>
#include <utility>
namespace prpack {
class prpack_base_graph {
private:
// helper methods
void initialize();
#if 0
... |
91be180e82836bc2e0cdc3b532044a36485e23377b6d4e2ff16ec6d9224f9ad9 | C/C++ | 1,320 | 40 | /*
igraph library.
Copyright (C) 2003-2021 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... |
21eb0f558073311de268ef2b172111ffb5b2249de84ac0be10e0ca214f46be90 | C/C++ | 1,323 | 50 | /**
* 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... |
48a7a761c17bce80051e0bd161917e84731bc7e114b660643cc37c1b94996ed7 | C/C++ | 1,329 | 44 | #ifndef __ASAP_MODELS_WORKLISTMODELS__
#define __ASAP_MODELS_WORKLISTMODELS__
#include <memory>
#include <set>
#include <QAbstractItemView>
#include <QStandardItemModel>
#include "../Data/DataTable.h"
#include "../GUI/IconCreator.h"
#include <QtConcurrent/qtconcurrentmap.h>
#include <QFutureWatcher>
names... |
03464eed6c98b4a2e669186affac70f3319a63a464574d47ba79c4f8c7774fb1 | C/C++ | 1,331 | 34 | /*
igraph library.
Copyright (C) 2020-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... |
436732f9f85326f37edb711a9594416f5bfffab07146f1bc25ecf4efbfc3e89d | C/C++ | 1,332 | 35 | /* bignum.h (bignum arithmetic) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2006-2013 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistribute ... |
9f94dd25cce5fbabadc5fbbbeb40d57e83af9db9a221c6b8dd6ad934b1f92ba4 | C/C++ | 1,338 | 39 | /*
igraph library.
Copyright (C) 2008-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... |
4deaabb8145e0cb3033e75a7af5c5e50e60ef0b1a5a2508083e393748ba3c4dd | C/C++ | 1,346 | 43 | #ifndef FILTERWORKSTATIONEXTENSIONPLUGIN_H
#define FILTERWORKSTATIONEXTENSIONPLUGIN_H
#include "interfaces/interfaces.h"
class FilterDockWidget;
class QGraphicsItem;
class FilterThread;
class MultiResolutionImage;
class FilterWorkstationExtensionPlugin : public WorkstationExtensionPluginInterface
{
Q... |
7efa8628d7833d32e00bd59b56d3da703f25d05cd452ea1f730d9fcddbff6a90 | C/C++ | 1,346 | 44 | #ifndef _TIFFImage
#define _TIFFImage
#include "MultiResolutionImage.h"
#include "multiresolutionimageinterface_export.h"
struct tiff;
typedef struct tiff TIFF;
class JPEG2000Codec;
class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT TIFFImage : public MultiResolutionImage {
public:
TIFFImage();
~TIFFI... |
e77db543151de23df3d7bb343ad792f80531426a1d664bcfb40ff23a6f565147 | C/C++ | 1,348 | 27 |
void mnbrak(double *ax,double *bx,double *cx,double *fa,double *fb,double *fc,double (*func)());
void mnbrak2(double *ax,double *bx,double *cx,double *fa,double *fb,double *fc,double (*func)(double , void * ), double beta, void * p);
double d_trapzd(double (*func)(double), double a, double b, int n);
double d_qtrap(d... |
2ef901183d45b45cf33680aaf7db1fe19edc550e20b6641b4b7a8b77be955fbb | C/C++ | 1,353 | 39 | // 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... |
ca920fb297d8295e74490d5c0e0f82433ebf711f4dc37e95f1aa31dad798b546 | C/C++ | 1,356 | 38 | /**
* 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... |
ab7805ab5570464072921d7c5a3307ef1c214a21adb90a06b48e97bb2b1fd908 | C/C++ | 1,358 | 43 | #ifndef POLYQTANNOTATION_H
#define POLYQTANNOTATION_H
#include "QtAnnotation.h"
#include <QColor>
#include <memory>
#include "annotationplugin_export.h"
class ANNOTATIONPLUGIN_EXPORT PolyQtAnnotation : public QtAnnotation
{
Q_OBJECT
public:
PolyQtAnnotation(const std::shared_ptr<Annotation>& annotation,... |
d1199836025d38cf642ba5a96c2614bc2f846222b15644ab7574ef6659b81daa | C/C++ | 1,360 | 38 | /*
igraph library.
Copyright (C) 2010-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... |
b647e9c9ca56760c38b5532bd993d52d55972fe796b704e42973aa593d03d69d | C/C++ | 1,384 | 43 | /*
igraph library.
Copyright (C) 2021 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 vers... |
df432624b49b5b5879b4705e26da6bce86db2900d20e5206d8ce1ea21aca099f | C/C++ | 1,400 | 40 | #ifndef ANNOTATIONLIST_H
#define ANNOTATIONLIST_H
#include <string>
#include <vector>
#include <memory>
#include "annotation_export.h"
class AnnotationGroup;
class Annotation;
class ANNOTATION_EXPORT AnnotationList {
public:
AnnotationList();
~AnnotationList();
bool isModified();
void reset... |
314ccd1e87a0c49f879069fec64e63bcbc6896fc5b8ff691892f48285e88972d | C/C++ | 1,411 | 34 | #ifndef IGRAPH_HANDLE_EXCEPTIONS_H
#define IGRAPH_HANDLE_EXCEPTIONS_H
#include "igraph_error.h"
#include <exception>
#include <new>
#include <stdexcept>
/* igraph functions which may be called from C code must not throw C++ exceptions.
* This includes all public functions. This macro is meant to handle exceptions t... |
2c359f5f6902c806b332a963af414dcafedc8dd240c787046f997a7796ab994f | C/C++ | 1,422 | 61 | #ifndef _FilterContainer
#define _FilterContainer
#include <qdockwidget.h>
#include <vector>
#include <memory>
class QListWidget;
class QListWidgetItem;
class ImageFilterPluginInterface;
class MultiResolutionImage;
class QLayout;
class QProgressBar;
class QLabel;
class QtProgressMonitor;
class QPushBut... |
f86f9f4bccb15848effd94f54fbd74783951b9f39008002f43bdf2793f27a8ce | C/C++ | 1,433 | 54 | #ifndef FUNCTIONS_H_
#define FUNCTIONS_H_
#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 <utilit... |
54dd1c722f21239171a8a5040abb14c1f679ad6a2d272935c66bb0358475d47a | C/C++ | 1,438 | 52 | #ifndef _ImageSource
#define _ImageSource
#include <string>
#include <vector>
#include "core_export.h"
#include "PathologyEnums.h"
class CORE_EXPORT ImageSource {
public :
ImageSource();
virtual ~ImageSource();
virtual bool valid() const {return _isValid;}
//! Gets the dimensions of the base ... |
a088a2bd87d8848887373ed0411de9de673d147ff8a76cb50e906c79277a62ce | C/C++ | 1,447 | 44 | /* stringWrap.c -- methods for stringWrap object
which eases the use of C strings */
#ifndef STRINGWRAP_INC
#define STRINGWRAP_INC
#include "stdio.h"
//#define BUFFER 300000000 /*enough for normal lines */
#define BUFFER 10000
#define SMALL 100
#define LARGE 10000
#define max(a, b) (a > b ? a : b)
// stringWrap Obj... |
153f514b1e9946a0da2017ef26000edab9248b358a9a7fca0ab31e71a34e131d | C/C++ | 1,450 | 46 | /*
igraph library.
Copyright (C) 2024-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... |
ad3863987fe8b6bd1d9356fbc57d2e45ab28c664ad9ef8a8399d0bf5270a31b8 | C/C++ | 1,468 | 61 | #ifndef _FilterContainer
#define _FilterContainer
#include <qdockwidget.h>
#include <vector>
#include <memory>
class QListWidget;
class QListWidgetItem;
class ImageFilterPluginInterface;
class MultiResolutionImage;
class QLayout;
class QProgressBar;
class QLabel;
class QtProgressMonitor;
class QPushBut... |
9bbcf7e69aa7ece73d1718dab6d5937591bd5f84403d97ff9ab28ec6ebac6615 | C/C++ | 1,472 | 54 | /*******************************************************************************
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.
... |
31ac69d3ee85de8dbc7822c2911dbc0e24a15142b567eccf93aaf1b35eeb186d | C/C++ | 1,486 | 61 | #ifndef ANNOTATION_H
#define ANNOTATION_H
#include <string>
#include <vector>
#include <map>
#include <memory>
#include "AnnotationBase.h"
#include "core/Point.h"
#include "annotation_export.h"
class AnnotationGroup;
class ANNOTATION_EXPORT Annotation : public AnnotationBase {
public:
enum class T... |
07f6979b7204f376c38f4dab4f2dcb3d565b7ba0179dcecb017e36646c103433 | C/C++ | 1,496 | 45 | /*
igraph library.
Copyright (C) 2003-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... |
0cd66a78040775c3b9592009f4621fc95ea7962fecb7de4c1cf51002bd4a339e | C/C++ | 1,498 | 27 | #ifndef __ASAP_SERIALIZATION_JSON__
#define __ASAP_SERIALIZATION_JSON__
#include <functional>
#include <cpprest/http_client.h>
#include "../Data/DataTable.h"
#include "../Networking/DjangoConnection.h"
namespace ASAP { namespace JSON
{
web::json::object getTagRecursive(std::wstring tag, const web::jso... |
87c5b88d12942726f93e9146281eade52ec1e740acbd466957706cf3d289ed22 | C/C++ | 1,498 | 57 | /*******************************************************************************
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.
... |
abd65e298f10f877b12ad43deff2721524783cc37954960b87c4208ba224daa2 | C/C++ | 1,501 | 51 | #ifndef __ASAP_NETWORKING_HTTPCONNECTION__
#define __ASAP_NETWORKING_HTTPCONNECTION__
#include <functional>
#include <mutex>
#include <unordered_map>
#include <cpprest/http_client.h>
namespace ASAP
{
/// <summary>
/// Represents a connection towards a specified URI.
/// <summary>
class HTTPConnecti... |
0019de29a85ed17d064efa9bc24207235db15f19e0ecf8da42476c1f142fd5f8 | C/C++ | 1,506 | 52 | // 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... |
bcc620ccc06e95c7e5f30d5c117a12e7f8cccaf4f13f629869daf7b7bb122186 | C/C++ | 1,517 | 41 |
#ifndef IGRAPH_PARSE_UTILS_H
#define IGRAPH_PARSE_UTILS_H
#include "igraph_error.h"
#include "igraph_types.h"
/* This macro must be used only in Bison actions, in place of IGRAPH_CHECK(). */
#define IGRAPH_YY_CHECK(expr) \
do { \
igraph_error_t igraph_i_ret = (expr); \
if (IGRAPH_UNLIKELY(igraph_... |
31717ead97cc41effe5a01dd13097dcdc7431cbaf4d52a6547a05eab99a1f8d1 | C/C++ | 1,523 | 43 | /*
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 ... |
c8eff9dcfab28eecbcd57aae0e28be9a7160c9a6f647609a541ccb96f2d12148 | C/C++ | 1,534 | 51 | #ifndef __ASAP_MISC_TEMPORARYDIRECTORYTRACKER__
#define __ASAP_MISC_TEMPORARYDIRECTORYTRACKER__
#include <thread>
#include <vector>
#include <filesystem>
namespace fs = std::filesystem;
namespace ASAP
{
// TODO: Perhaps expand this class to handle a set of directoryies
/// <summary>
/// Holds var... |
62a3bf062ca2eb546370fb3efe2c48d6df6065abaafbda05289eec0aa1de5bd9 | C/C++ | 1,541 | 69 | #pragma once
#include <condition_variable>
#include <future>
#include <queue>
#include <thread>
// A simple C++11 Thread Pool implementation with `num_workers=1`.
// See: https://github.com/progschj/ThreadPool
class Thread {
public:
Thread();
~Thread();
template <class F> void run(F &&f);
void synchronize();
... |
41a3228ff035393bd219b12ff69190f1410b1c03e69deb6f67d35616ba2956b0 | C/C++ | 1,545 | 52 | /**
* 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... |
f65dec0156b429ccb83b8093351b57e88824279a66926e40933f245610b598a1 | C/C++ | 1,546 | 46 | /*
igraph library.
Copyright (C) 2020 The igraph development team
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 version 2 of th... |
9e3d58f797fe5ade833d17126096984966a40704ebfdadb4c71e3948357e4fb6 | C/C++ | 1,552 | 56 | #ifndef _NUCLEIDETECTIONWHOLESLIDEFILTER
#define _NUCLEIDETECTIONWHOLESLIDEFILTER
#include "wholeslidefilters_export.h"
#include <string>
#include <vector>
#include <memory>
class MultiResolutionImage;
class ProgressMonitor;
class WHOLESLIDEFILTERS_EXPORT NucleiDetectionWholeSlideFilter {
private:
s... |
38a3fbd2f079d75f14c229d56739b5eb8fe1e06bf18883eeb649e560d0a57e69 | C/C++ | 1,560 | 42 | /* ks.h (0-1 knapsack problem) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2017-2018 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistribute i... |
dd28074f7baed9524ab24d9c345904e01604fb35b8cee680619dcd5e52dc851c | C/C++ | 1,561 | 58 | /**********************************************************************************
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... |
d13b5bb1c0217dd0456251dbd8400fd2ac75910b0c135cc45a59d7dfc2181345 | C/C++ | 1,564 | 74 | /* copy of ftypes from the compiler */
/* variable types
* numeric assumptions:
* int < reals < complexes
* TYDREAL-TYREAL = TYDCOMPLEX-TYCOMPLEX
*/
/* 0-10 retain their old (pre LOGICAL*1, etc.) */
/* values to allow mixing old and new objects. */
#define TYUNKNOWN 0
#define TYADDR 1
#define TYSHORT 2
#define TY... |
4cc7714a9c9dfe0b242cfd4677fb8a43d178e8f28ce0c7e867951783a134c9fe | C/C++ | 1,588 | 59 | #ifndef ANNOTATIONGROUP_H
#define ANNOTATIONGROUP_H
#include <string>
#include <vector>
#include <map>
#include <memory>
#include "annotation_export.h"
#include "AnnotationBase.h"
#include "core/stringconversion.h"
class ANNOTATION_EXPORT AnnotationGroup : public AnnotationBase {
public:
AnnotationGr... |
b35f25bfd50d851d0330fdd0268de6d9bbd24488b96e087c30c0f3c2c76fe917 | C/C++ | 1,588 | 37 | #ifndef _MultiResolutionImageFactory
#define _MultiResolutionImageFactory
#include <string>
#include <map>
#include <vector>
#include <set>
#include "multiresolutionimageinterface_export.h"
class MultiResolutionImage;
class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT MultiResolutionImageFactory {
public:
M... |
41cd8af8d308e09ded5e6ed5004220d1a82a0cb7a3aa76c123b1f70271a95c9a | C/C++ | 1,590 | 61 | /**********************************************************************************
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... |
618bfe74b0b58e19a27f503f4b6f88a9f31b4d1eb6c59faf5b1f98a73ad1ee51 | C/C++ | 1,595 | 56 | /**********************************************************************************
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... |
863a95ea7beec941f0c97f37339e9c3a86c264c61be0d6e97a0c62cabbc0bb40 | C/C++ | 1,607 | 45 | /*
igraph library.
Copyright (C) 2008-2020 The igraph development team
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 version 2 ... |
a249f80796846a97aeffd187c5518047875786595df3e0a9f937bcdf6cab9317 | C/C++ | 1,611 | 48 | /*
igraph library.
Copyright (C) 2022 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... |
63a282b50a13e7dc815ff22455ee0639235649a7446ac52d023001636144e7a0 | C/C++ | 1,630 | 56 | #ifndef _DIAGPathologyOpenCVBridge
#define _DIAGPathologyOpenCVBridge
#include "opencv2/core/core.hpp"
#include "core/Patch.h"
//! Converts an OpenCV Mat to a Patch
template <typename T>
Patch<T> matToPatch(const cv::Mat& mat, bool copyData = false) {
std::vector<unsigned long long> dims;
dims.push_back... |
91f81cc52a867ab79cba61e65881cdb190696d473403ef5d236ebec4e1bbd3a8 | C/C++ | 1,631 | 60 | #pragma once
// If the image file is truncated, we insert EOI marker to signal to the library to stop processing and display the image instead of raising an error.
#define PROCESS_TRUNCATED_IMAGES
static void mem_init_source( j_decompress_ptr cinfo )
{
}
static void mem_term_source( j_decompress_ptr cinfo ... |
290f3f3f330519c6c704f9b2bf524e16999dd5f19c67d59e0e94c13d30074c10 | C/C++ | 1,632 | 60 | #ifndef __ASAP_GUI_COMPOSITEWINDOW__
#define __ASAP_GUI_COMPOSITEWINDOW__
#include <functional>
#include <memory>
#include <unordered_map>
#include <QtWidgets/QMainWindow>
#include <QSettings>
#include "CompositeChild.h"
#include "ui_CompositeWindowLayout.h"
namespace ASAP
{
/// <summary>
/// Holds ... |
a0740b1c09cae34bfbba4738b6dd767b4ebd1a7ab558493d1368a9a0d1709a32 | C/C++ | 1,635 | 49 | /*
igraph library.
Copyright (C) 2024-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... |
0f8511c0c9cf72cc2043a66f60e1a779d6fd6d72e3f9aa7af201dd8653a6e3a5 | C/C++ | 1,659 | 49 | /*
igraph library.
Copyright (C) 2009-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 ... |
0819115df657b6b61bc3462314ceb10d372ee1eeb3261b279127cc23318b3ee8 | C/C++ | 1,661 | 61 | #ifndef _ImageFilter
#define _ImageFilter
#include "core/ImageSource.h"
#include "core/Patch.h"
#include "FilterBase.h"
class ProgressMonitor;
template <class inType, class outType>
class ImageFilter : public ImageSource, public FilterBase {
virtual bool checkInputImageRequirements(const Patch<inTyp... |
11a799954f3c5b7c4a60dde9461a65b24c0acc93300511159a9a893e19129af7 | C/C++ | 1,686 | 53 | /*
igraph library.
Copyright (C) 2009-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 ... |
7b64e6ac6768bd10caebe5ad890af498c66b292c09308c6f5e24b8ad07950cf7 | C/C++ | 1,709 | 45 | /*
igraph library.
Copyright (C) 2003-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... |
9aa18ec011fb4f99ee6af1fe57b8b7ccedb876f4c3bea25d1307bdf832de183b | C/C++ | 1,726 | 67 | /* amd.h */
/* Written by Andrew Makhorin <mao@gnu.org>. */
#ifndef GLPAMD_H
#define GLPAMD_H
#define AMD_DATE "May 31, 2007"
#define AMD_VERSION_CODE(main, sub) ((main) * 1000 + (sub))
#define AMD_MAIN_VERSION 2
#define AMD_SUB_VERSION 2
#define AMD_SUBSUB_VERSION 0
#define AMD_VERSION AMD_VERSION_CODE(AMD_MAIN_VER... |
2c66b47d5b6a42108ba933c869bb9f28100e8631625e247b5ddbc44bfe5270bb | C/C++ | 1,734 | 61 | /**
* 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 a... |
b78d0f2571e3d565900d7f664f68b70c217fa102f9b9d4027978b5f7cf36d00d | C/C++ | 1,749 | 59 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
20ecebfb889321b951a8f0ccdfc1cd79c1b68152a671b911347c673df815411b | C/C++ | 1,771 | 52 | /*******************************************************************************
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.
... |
ed134c4a656cc00b9ae4e6a1e0795fb3dd70bd18eeeb7a2ca32a8adcd2eb8f48 | C/C++ | 1,771 | 75 | /**
* 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... |
e8b6cf8d7b102e387122b4d5f63ca57d60b9f02001c9eec8679e098405d9a11d | C/C++ | 1,780 | 47 | /*
igraph library.
Copyright (C) 2010-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... |
5095a2dc283945138a7d628bfe980204ad9c940d56ad38762586cc83db059868 | C/C++ | 1,792 | 55 | /*
igraph library.
Copyright (C) 2022-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... |
846af572f027161b329fdeb2e565a8b5698da38e994f873103cf295ec19e1bab | C/C++ | 1,805 | 55 | /*
igraph library.
Copyright (C) 2022-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... |
68cf625a8b1f027549da216d41a55c64a52c12ad4b88f0c13537130e1c7f32fc | C/C++ | 1,808 | 50 | #ifndef __ASAP_DATA_DATATABLE__
#define __ASAP_DATA_DATATABLE__
#include <map>
#include <string>
#include <set>
#include <vector>
namespace ASAP
{
class DataTable
{
public:
enum FIELD_SELECTION { ALL, VISIBLE, INVISIBLE };
DataTable(void);
DataTable(std::vector<std::string> columns);
... |
ebd085900c842e01216535d8c58ca988ed6bf78f10585ee70684c88c7e5084f0 | C/C++ | 1,810 | 34 | /*
igraph library.
Copyright (C) 2007-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... |
4473435fb4d33cdf825ccd1eb45350b667a1b0dabeed78ce06ce681784d2051f | C/C++ | 1,858 | 82 | /*******************************************************************************
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.
... |
c959354306dd8faf4f6e3baebac739371534a17ed7688850398f7278c59e0c82 | C/C++ | 1,880 | 71 | /* stdc.h (standard ANSI C headers) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2000-2017 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistrib... |
98edb57599f6fd291b50a6d903fc6e4b18d70a7d853e9fb3d5eaf82c3ecb4ff7 | C/C++ | 1,887 | 51 | /*
igraph library.
Copyright (C) 2010-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 ... |
a154d9ab8dad19fe2f1c7bf22bfcdb8d12bcec33e05f3ee03f5a457c2f44c7de | C/C++ | 1,892 | 44 | /*
igraph library.
Copyright (C) 2009-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... |
32779e0e650a72d8b9303169a0969bdc47f97cb2f9298378d99cc172c8823901 | C/C++ | 1,893 | 61 | /* dmp.h (dynamic memory pool) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2000-2013 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistribute i... |
93211a6214fcd030a074348ca3bcc48767eea72bdc22be14e0929e1485c2a19f | C/C++ | 1,893 | 47 | /*
igraph library.
Copyright (C) 2009-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... |
be6f7c5dc648ae24ef2578203597b61b8df461fd1f16fc17b3e5aa8701c0960b | C/C++ | 1,897 | 64 | // 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... |
c7d1c733205f5d02a271fa291a5e7f23693d714ca81476f6b3ca4e83a9c29295 | C/C++ | 1,916 | 63 | // 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... |
f35930b1a97305d78b59e562f0b03e994cac81c812231596e5ea17a2d9b2d0b2 | C/C++ | 1,921 | 59 | /* misc.h (miscellaneous routines) */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2000-2013 Free Software Foundation, Inc.
* Written by Andrew Makhorin <mao@gnu.org>.
*
* GLPK is free software: you can redistribu... |
bd5afe204a9dddbe5bd2c1b6650dce2f4fb6d5e0ba1f8c937c6eb8b1d66907e2 | C/C++ | 1,930 | 68 |
#ifndef CLIQUERCONF_H
#define CLIQUERCONF_H
/*
* setelement is the basic memory type used in sets. It is often fastest
* to be as large as can fit into the CPU registers.
*
* ELEMENTSIZE is the size of one setelement, measured in bits. It must
* be either 16, 32 or 64 (otherwise additional changes must be mad... |
b5523689c7c0bda7b0935c89426e2a103863caa2941ee58a8d56fd2adfe6e048 | C/C++ | 1,951 | 69 | /*******************************************************************************
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.
... |
42e08328bc4640a6ae2f8e564bab746d78c9621384fd332d6e4e66b8d915e225 | C/C++ | 1,953 | 69 | /**********************************************************************************
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... |
e598203ff725178fa12d401a9b235ddc42a473013996f4342e490a6105d069f3 | C/C++ | 1,959 | 52 | /*
igraph library.
Copyright (C) 2009-2024 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... |
ff4e2624d58e5390ecd4fb86894bf0ca156777b5ed2623bb10305ac64116180a | C/C++ | 1,960 | 66 | /*
igraph library.
Copyright (C) 2009-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... |
584eb5b3299c84830be7cb4dbdc4dc59705359a7c1ecd3a6bcdc898e46ce323d | C/C++ | 1,965 | 59 | /* mplsql.h */
/***********************************************************************
* This code is part of GLPK (GNU Linear Programming Kit).
* Copyright (C) 2003-2016 Free Software Foundation, Inc.
* Written by Heinrich Schuchardt <xypron.glpk@gmx.de>.
*
* GLPK is free software: you can redistribute it and/or... |
a1ab556222079b32ecfc1db602767a449760fdb3b70ecba56cb1e331ebfb80d2 | C/C++ | 1,967 | 82 | /**********************************************************************************
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... |
faa1d7151fd03ee4441d156684f0de1dc8fbf2ea46d8cf813132dbfdb595d7ea | C/C++ | 1,973 | 48 | /*
igraph library.
Copyright (C) 2013-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... |
b4f17ea7dbef1bb18da4e23a4b4f02a828b0b48548b004f8858507e3d826045c | C/C++ | 1,975 | 66 | /*
igraph library.
Copyright (C) 2009-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... |
42fcb81511a175c1458cef744004334d6b837dc3b22656882f37e8b0a826ec9d | C/C++ | 1,983 | 68 | /*
* BSD 3-Clause License
*
* Copyright (c) 2016-2021, UniFrac development team.
* All rights reserved.
*
* See LICENSE file for more details
*/
#ifndef __FAITH_PROPMAP_H
#define __FAITH_PROPMAP_H 1
#include <vector>
#include <stack>
#include <unordered_map>
#include "tree.h"
#include "assay.h"
namespace su {
clas... |
51d897bf7161e8c6bf9b6df07087bf536933c390a43b5e1cd6060d984472a2d3 | C/C++ | 1,993 | 42 | /*sequenceMatrix.h -- simple object to hold sequences */
/* ADK 10/9/09 */
#ifndef SEQMAT_INC
#define SEQMAT_INC
#include "stringWrap.h"
#include <stdlib.h>
#include <stdio.h>
//#include "pgSummaryStats.h"
struct sequenceMatrix{
int sampleSize, length;
stringWrap **matrix;
stringWrap **names;
}sequenceMatrix;
... |
eb874053e1277c2f8eaa10b3fbd2201503478504c0470b9895ac5d294c8fc6c0 | C/C++ | 2,000 | 66 | #ifndef RENDERWORKER_H
#define RENDERWORKER_H
#include <QThread>
#include <QMutex>
#include <QPixmap>
#include <memory>
#include "core/PathologyEnums.h"
#include "IOThread.h"
class MultiResolutionImage;
class FilterInterface;
class WSITileGraphicsItem;
class IOWorker : public QThread
{
Q_OBJECT
... |
fdf64c20b25ea3490115747d0d3da14145698c2f84749d5c3b6e3ef8719d5eab | C/C++ | 2,006 | 105 | struct syl
{ int op;
int p1;
union { int i[2]; char *s;} p2;
};
#define RET1 1
#define REVERT 2
#define GOTO 3
#define X 4
#define SLASH 5
#define STACK 6
#define I 7
#define ED 8
#define NED 9
#define IM 10
#define APOS 11
#define H 12
#define TL 13
#define TR 14
#define T 15
#define COLON 16
#define S 17
#define S... |
ac0af8028b80562f7725afbad15ff8e3c849530dd3834944c6bc4ad6a1d88eeb | C/C++ | 2,034 | 70 | #ifndef QTANNOTATION_H
#define QTANNOTATION_H
#include <string>
#include <vector>
#include <memory>
#include <QGraphicsItem>
#include "annotationplugin_export.h"
class Annotation;
class Point;
class ANNOTATIONPLUGIN_EXPORT QtAnnotation : public QObject, public QGraphicsItem
{
Q_OBJECT
Q_INTERFACES... |
83c0b31beaafc60df3dacdd2739f3bef24170be591058bcff7d2beb6d33adbcb | C/C++ | 2,039 | 64 | #ifndef WSITileGraphicsItem_H
#define WSITileGraphicsItem_H
#include <QGraphicsItem>
#include <memory>
class TileManager;
class MultiResolutionImage;
class ImageSource;
class WSITileGraphicsItem : public QGraphicsItem {
public:
// make sure to set `item` to NULL in the constructor
WSITileGraphicsIte... |
ed3bd6a183de125e5940eef34a4634ec17cce173ee1cff9ba2bb1ddb71cb0c10 | C/C++ | 2,039 | 62 | // 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... |
5744fd83e9304b8366066eb91bf937dc1788ab340632ed7842fc28b631113440 | C/C++ | 2,040 | 80 | /*
igraph library.
Copyright (C) 2009-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... |
7c88a784816ad073211c3c627f1dad813931b7db7828fd1cbea9f1de347e48b2 | C/C++ | 2,043 | 75 |
#ifndef CLIQUER_GRAPH_H
#define CLIQUER_GRAPH_H
#include "set.h"
typedef struct _graph_t graph_t;
struct _graph_t {
int n; /* Vertices numbered 0...n-1 */
set_t *edges; /* A list of n sets (the edges). */
int *weights; /* A list of n vertex weights. */
};
#define GRAPH_IS_EDGE_FAST(g,i,j) ... |
9791ae7563a9475d49f90f438cdd1dcb5230c2a1722ab26f84ca30ca0d2caab7 | C/C++ | 2,067 | 43 | /*
igraph library.
Copyright (C) 2007-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... |
1aac3936325625dbd1c783c49a04eda73c27612f0e73821671c99febeb55d7a6 | C/C++ | 2,069 | 72 | /*
igraph library.
Copyright (C) 2003-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.