sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
e21f8f1ba3323b9243625ea7a88600de66bb9a93b16a4dba68da0cf87a760cfa
C/C++
710
27
#ifndef DOTQTANNOTATION_H #define DOTQTANNOTATION_H #include <QColor> #include "QtAnnotation.h" #include "annotationplugin_export.h" class ANNOTATIONPLUGIN_EXPORT DotQtAnnotation : public QtAnnotation { Q_OBJECT public: DotQtAnnotation(const std::shared_ptr<Annotation>& annotation, QObject* parent, float...
2ce85cc44ce5a977d62eb5257ab6b1b8db5f82b98e4692134a906ab8603a5be1
C/C++
717
27
#ifndef POLYANNOTATIONTOOL_H #define POLYANNOTATIONTOOL_H #include "AnnotationTool.h" #include "core/Point.h" class AnnotationWorkstationExtensionPlugin; class PathologyViewer; class QGraphicsLineItem; class ANNOTATIONPLUGIN_EXPORT PolyAnnotationTool : public AnnotationTool { Q_OBJECT public : Pol...
20b52b4a0cc686d625cd915b9c7b2852d2c816f2a568509a72db80bef647a97f
C/C++
718
41
#ifndef KR_headers #ifdef MSDOS #include "io.h" #ifndef WATCOM #define close _close #define creat _creat #define open _open #define read _read #define write _write #endif /*WATCOM*/ #endif /*MSDOS*/ #ifdef __cplusplus extern "C" { #endif #ifndef MSDOS #ifdef OPEN_DECL extern int creat(const char*,int), open(const char*...
adc98eca791656c1b290565e86e2de7f474233910c66cff44da2ae6e037253c9
C/C++
728
35
/* Abstract interface for a toggleable device * ------------------------------------------ * @author Tal Eisenberg <eisental@gmail.com> */ #ifndef ToggleInterface_h #define ToggleInterface_h #include "Arduino.h" #include <ArduinoJson.h> #include "Interface.h" class ToggleInterface: public Interface { public: T...
3fe949a23fe1886f4379fe6b247e485a3aea8c0382d458fc6c9dd5a2967c1795
C/C++
754
26
#ifndef PRPACK_PREPROCESSED_GE_GRAPH #define PRPACK_PREPROCESSED_GE_GRAPH #include "prpack_preprocessed_graph.h" #include "prpack_base_graph.h" namespace prpack { // Pre-processed graph class class prpack_preprocessed_ge_graph : public prpack_preprocessed_graph { private: // helper methods...
96b7cb266d6337a40b020df195a805b4f0d2beeaddb37b49ac168907c04b9e54
C/C++
774
38
/* * BSD 3-Clause License * * Copyright (c) 2016-2021, UniFrac development team. * All rights reserved. * * See LICENSE file for more details */ #ifndef __UNIFRAC_STRIPEMAP_H #define __UNIFRAC_STRIPEMAP_H 1 #include <vector> #include <stack> #include <unordered_map> #include <cstdint> namespace su { class StripeMap...
ca2e521e2d3891eb4978401cb48fc80be5f6829aa148bfa3dea43da1e81f9c5c
C/C++
796
52
#ifndef _PathologyEnums #define _PathologyEnums #include <string> #include <map> #include <vector> #include <array> #include "core_export.h" typedef std::array<float, 4> rgbaArray; namespace pathology { struct LUT { std::vector<float> indices; std::vector<rgbaArray> colors; bool relati...
8f713abdfd267b06c3644cf65a8c5238da42cdedbbff9752010c4b13eec702b2
C/C++
805
22
// Pytorch C++/Cuda extension tutorial: // https://pytorch.org/tutorials/advanced/cpp_extension.html #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor") #define CHECK_CONTIGUOUS(x) TORCH_CHECK(x.is_contiguous(), #x " must be contiguous") #define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTI...
3490f16388815a84fdad3e56df44673d7dbbb8ff0087c8a935aaa883e409e0d1
C/C++
809
36
/* bedFile.h -- for dealing with the bed file format / / / / Also contains the definition of a bedElement */ #ifndef BED_INC #define BED_INC #define MAXBEDELS 10000000 /*bedEl definition- can currently deal with BED9 format */ struct bedEl{ long int chromStart, chromEnd, thickStart, thickEnd; int score; c...
8ae46df5638c46a1d75ff3a0f42babc7152d53ec6d023c10e78d80f5d2baa9b7
C/C++
836
31
#ifndef POINTSETQTANNOTATION_H #define POINTSETQTANNOTATION_H #include "QtAnnotation.h" #include <QColor> #include <memory> #include "annotationplugin_export.h" class ANNOTATIONPLUGIN_EXPORT PointSetQtAnnotation : public QtAnnotation { Q_OBJECT public: PointSetQtAnnotation(const std::shared_ptr<Annotati...
df7c42b66f2614e157987e39903607cc1213706f110a46f65209dc60a0061350
C/C++
842
35
/* You may need to adjust the definition of signal1 to supply a */ /* cast to the correct argument type. This detail is system- and */ /* compiler-dependent. The #define below assumes signal.h declares */ /* type SIG_PF for the signal function's second argument. */ /* For some C++ compilers, "#define Sigarg_t ..." ...
737bc83073dd995d364b2551afb983c6624beb1b3560433e3a5a21752dac5778
C/C++
851
33
/* Arduino library for controlling a fish feeder (EVNICE EV200GW or similar). * -------------------------------------------------------------------------- * @author Tal Eisenberg <eisental@gmail.com> */ #ifndef Feeder_h #define Feeder_h #include "Arduino.h" #include <AccelStepper.h> const int STEPPER_SPEED = 500;...
b5e2c09729b002357d12a9dd3c5a1a5c8c34d283e10e964653da464ee1944962
C/C++
856
43
/* * MemoryNetworkAdapter.h * * Created on: 26 jun 2015 * Author: Daniel */ #ifndef SRC_INFOMAP_MEMORYNETWORKADAPTER_H_ #define SRC_INFOMAP_MEMORYNETWORKADAPTER_H_ #include "NetworkAdapter.h" #include "Node.h" #include <map> #ifdef NS_INFOMAP namespace infomap { #endif class MemoryNetworkAdapter: public ...
bf3143aef600588670fa56b2efcef90bda2883dab2558afc004fce7e2a8287ec
C/C++
856
28
#ifndef MEASUREMENTQTANNOTATION_H #define MEASUREMENTQTANNOTATION_H #include "QtAnnotation.h" #include <QColor> #include <memory> #include "annotationplugin_export.h" class ANNOTATIONPLUGIN_EXPORT MeasurementQtAnnotation : public QtAnnotation { Q_OBJECT public: MeasurementQtAnnotation(const std::shared_...
ad0ea4a4ff671f8b27c0a5fddc3c12d835489507432801e61ebd2d5cc410416d
C/C++
858
30
#ifndef PRPACK_PREPROCESSED_GS_GRAPH #define PRPACK_PREPROCESSED_GS_GRAPH #include "prpack_preprocessed_graph.h" #include "prpack_base_graph.h" namespace prpack { // Pre-processed graph class class prpack_preprocessed_gs_graph : public prpack_preprocessed_graph { private: // helper methods...
1c84218dac5c9004b7093cd7740ff5e1234ab9f7415761055de362e445f07064
C/C++
861
44
#ifndef _FilterBase #define _FilterBase #include "basicfilters_export.h" #include <mutex> #include <string> #include <memory> class ProgressMonitor; class BASICFILTERS_EXPORT FilterBase { std::mutex _cancelMutex; std::weak_ptr<ProgressMonitor> _monitor; bool _cancel; bool _running; public:...
2333e8630ee22f9890246c32c0a0e88f3e705e9acdf624ced82796c2f8e6f8ac
C/C++
879
33
#ifndef PRPACK_IGRAPH_GRAPH #define PRPACK_IGRAPH_GRAPH #ifdef PRPACK_IGRAPH_SUPPORT #include "prpack_base_graph.h" #include "igraph_datatype.h" #include "igraph_vector.h" namespace prpack { class prpack_igraph_graph : public prpack_base_graph { public: // constructors prpack_igraph_graph()...
1f1775ceee854e1d11e85de3e9020678e37f530368022b93bb5a687d3a499ef6
C/C++
893
23
#include <infomap/Network.h> #include <igraph_interface.h> namespace infomap { /** * Copy an igraph network to an Infomap network * * @param network The Infomap network destination * @param graph The igraph network source * e_weights: Numeric vector giving the weights of the edges. If it is a NULL pointer then a...
25a6b9095702a1e400e82ff8417e2ab80d15edcdb8cb836027b247ff1e2d0a1e
C/C++
893
32
/* igraph library. Copyright (C) 2020 The igraph development team 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 version. This program is distributed in the hope that it will be useful,...
2432af45a4763dda8af689c757df505d61e1e268e6f6fc650ce47c4d99f2db07
C/C++
903
32
#ifndef METRICS_H_ #define METRICS_H_ #include <algorithm> // generate #include <vector> // vector #include <iterator> // begin, end, and ostream_iterator #include <iostream> // cout #include <iomanip> #include <map> #include <utility> #include <set> #include <stdlib.h> #include <cstdlib> #include <string> #in...
3c2bb29022b6b739dbe46dc1b7eba1b6ba911fba345a7ef5521479ecd9f93a09
C/C++
910
43
#ifndef MINIMAP_H #define MINIMAP_H #include <QWidget> #include <QPointer> class QPixmap; class TileManager; class MiniMap : public QWidget { Q_OBJECT public: MiniMap(const QPixmap& overview, QWidget *parent); QSize sizeHint() const; int heightForWidth(int w) const; void setTileManager(T...
d4e7a0c2ddef7150d28950dfb9c01dfdaec116d9e30197033287d3f7a8c50fca
C/C++
917
48
/* * BipartiteClusterReader.h * * Created on: 25 maj 2015 * Author: Daniel */ #ifndef SRC_IO_BIPARTITECLUSTERREADER_H_ #define SRC_IO_BIPARTITECLUSTERREADER_H_ #include "ClusterReader.h" #ifdef NS_INFOMAP namespace infomap { #endif class BipartiteClusterReader : public ClusterReader { public: BipartiteC...
ad218967bf06c38419fe39d929b0b38e650be2ef59c1fa14e008bfed43984350
C/C++
919
34
#ifndef _DistanceTransformWholeSlideFilter #define _DistanceTransformWholeSlideFilter #include "wholeslidefilters_export.h" #include <string> #include <vector> #include <memory> class MultiResolutionImage; class ProgressMonitor; class WHOLESLIDEFILTERS_EXPORT DistanceTransformWholeSlideFilter { private...
fcd1de96a2be20873ecdbbe9b7fcaa0de84ca3b2dcb97063f2ab67a453d54ee0
C/C++
925
29
#ifndef BoxH #define BoxH #include <vector> #include "core_export.h" class CORE_EXPORT Box { private : std::vector<unsigned long long> _start; std::vector<unsigned long long> _size; public : Box intersection(const Box& r) const; bool intersects(const Box& r) const; Box(); Box(const ...
4914ab4efe46759831c4d5fe6fa47c1cc83fbe43428a1faf132336c6de1f0491
C/C++
934
28
/* 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...
c8559f8c92215354e21345985a50fa8b9ad519226928919eef51a11dd5d5e451
C/C++
942
32
/******************************************************************************* 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. ...
0fbf88adc01d195a243757e3aa1188cab59327fa6d27598cfe51b88d4773e05b
C/C++
945
31
/* 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...
dc7576e58786807f6bff111bcef94db4b02ed647997f08edfee9c265649d1dc1
C/C++
955
33
#ifndef PRPACK_PREPROCESSED_SCHUR_GRAPH #define PRPACK_PREPROCESSED_SCHUR_GRAPH #include "prpack_preprocessed_graph.h" #include "prpack_base_graph.h" namespace prpack { class prpack_preprocessed_schur_graph : public prpack_preprocessed_graph { private: // helper methods void initia...
377ec0e2597204e0ba7d4bdf4910241a61b217134f68154ab51724929c826aeb
C/C++
958
38
#ifndef _DICOMImage #define _DICOMImage #include "MultiResolutionImage.h" #include "dicomfileformat_export.h" #include <vector> #include <map> class WSIDicomInstance; class DICOMFILEFORMAT_EXPORT DICOMImage : public MultiResolutionImage { public: DICOMImage(); ~DICOMImage(); bool initializeTy...
a2ffff01ec36fdb0c89691e0187bb15cda8e94a253dda42f7c48c85dab650977
C/C++
965
50
#ifndef __ASAP_GUI_EXTERNALSOURCEDIALOG__ #define __ASAP_GUI_EXTERNALSOURCEDIALOG__ #include <QDialog> class QLabel; class QLineEdit; class QCheckBox; class QDialogButtonBox; class QGridLayout; namespace ASAP { class ExternalSourceDialog : public QDialog { Q_OBJECT public: struct SourceDia...
12fd5b4820e47d503f0c1e528b7123bb48c0681a608604fcb1d74093ef009c9b
C/C++
967
28
/* plfit_version.h * * Copyright (C) 2021 Tamas Nepusz * * 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 version. * * Th...
c1a7fffed21b8dd67786f1169e0ffe9f50fc1d2e45f663a183b28bc56c6128c4
C/C++
968
42
#ifndef __ASAP_GUI_ICONCREATOR__ #define __ASAP_GUI_ICONCREATOR__ #include <mutex> #include <string> #include <vector> #include <QObject> #include <QStandardItemModel> #include "ThumbnailCache.h" namespace ASAP { /// <summary> /// Creates thumbnail icons based on WSIs readable by the multiresolution ...
80891e89047f0540551ec180e97cb2575f8459b99a59bd133799d9820adda04c
C/C++
972
33
#ifndef PRPACK_UTILS #define PRPACK_UTILS #ifdef MATLAB_MEX_FILE #include "mex.h" #endif #include <string> // Computes the time taken to do X and stores it in T. #define TIME(T, X) \ (T) = prpack_utils::get_time(); \ (X); \ (T) = prpack_utils::get_time() - (T) /...
bd25e7c73ce2dbe613f44fd948fa2d88e4bfca6b734c3b07a48b248d8b65f48d
C/C++
972
32
#ifndef WSITileGraphicsItemCache_H #define WSITileGraphicsItemCache_H #include "multiresolutionimageinterface/TileCache.h" #include <QObject> class WSITileGraphicsItem; class WSITileGraphicsItemCache : public QObject, public TileCache<WSITileGraphicsItem* > { Q_OBJECT public : ~WSITileGraphicsItemC...
0c5c1471ef6a0c371a9142aa6ef45ba348b38d9b945c338b21725f42672ad4b1
C/C++
979
42
/* * Author: Akatsuki Kimura <akkimura@nig.ac.jp> * Akira Funahashi <funa@bio.keio.ac.jp> * Last modified: Thu, 25 Jul 2013 02:06:24 +0900 */ #ifndef __mtglobal__ #define __mtglobal__ /* parameters used in main(), function_* and draw_graphs() */ typedef struct _mtGlobal { int N; /* the (maximum) number ...
2b5ec926a8408a6b35234b3980f866d73f1219fd5cc49a1d2452854d15fb53d7
C/C++
980
26
#ifndef CLIQUER_REORDER_H #define CLIQUER_REORDER_H #include "set.h" #include "graph.h" extern void reorder_set(set_t s,int *order); extern void reorder_graph(graph_t *g, int *order); extern int *reorder_duplicate(int *order,int n); extern void reorder_invert(int *order,int n); extern void reorder_reverse(int *order...
002cd548e29f7cac2014ad1e9c2a9a94b5657392512af96c7c4e8ca3cf1feba9
C/C++
995
59
#ifndef CLIQUER_MISC_H #define CLIQUER_MISC_H #include "igraph_error.h" #include "cliquerconf.h" /* * We #define boolean instead of using a typedef because nauty.h uses it * also. AFAIK, there is no way to check for an existing typedef, and * re-typedefing is illegal (even when using exactly the same datatype!)....
aba46fbfb848dc7175be47c38306dc7ba76716a4ae533d1b69402eff91df7e90
C/C++
1,001
26
/* * 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 ...
4d35a1a9f20ec31a6f7738996e3b19d6b2c775e81d8b8bb0daeeff43497c3ca3
C/C++
1,018
32
/* igraph library. Copyright (C) 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 your o...
d33aa25cc948b77c5618c1f21684cb846fe809c4a53e4b957e04abe81848e44f
C/C++
1,018
39
#ifndef _ArithmeticWholeSlideFilter #define _ArithmeticWholeSlideFilter #include "wholeslidefilters_export.h" #include <string> #include <vector> #include <map> #include <memory> class MultiResolutionImage; class ProgressMonitor; class WHOLESLIDEFILTERS_EXPORT ArithmeticWholeSlideFilter { private: ...
3ca441f3db81ae4d9151d215310744cc642704e767f9c0d852337b294dcc9822
C/C++
1,026
37
#ifndef _LabelStatisticsWholeSlideFilter #define _LabelStatisticsWholeSlideFilter #include "wholeslidefilters_export.h" #include <string> #include <vector> #include <map> #include <memory> class MultiResolutionImage; class ProgressMonitor; class WHOLESLIDEFILTERS_EXPORT LabelStatisticsWholeSlideFilter { ...
69184bc98dc468cf31d2160ffd242a70531fa36110f2902f8c1d97fb3b269666
C/C++
1,033
43
#ifndef _OpenSlideImage #define _OpenSlideImage #include "MultiResolutionImage.h" #include "openslidefileformat_export.h" struct _openslide; typedef struct _openslide openslide_t; class OPENSLIDEFILEFORMAT_EXPORT OpenSlideImage : public MultiResolutionImage { public: OpenSlideImage(); ~OpenSlideI...
14955d85e031dcb67930df70b1bd8d8b067da989d9f17985fff20208e74623c2
C/C++
1,037
44
/* * Author: Akatsuki Kimura <akkimura@nig.ac.jp> * Akira Funahashi <funa@bio.keio.ac.jp> * Last modified: Thu, 25 Jul 2013 02:06:24 +0900 */ #ifndef __mtglobal__ #define __mtglobal__ /* parameters used in main(), function_* and draw_graphs() */ typedef struct _mtGlobal { int N; /* the (maximum) number ...
0a77210ecb097b51467960c139d016d9d599716cf9dc45b0c6c242b5b56e0547
C/C++
1,045
44
// 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...
fbb2fe67350e5bfc69279bd2550e6ea7767b0129ea399e6994aa960c62d78ebf
C/C++
1,047
41
#ifndef _ColorDeconvolutionFilterPluginH #define _ColorDeconvolutionFilterPluginH #include "interfaces/interfaces.h" template <class inType> class ColorDeconvolutionFilter; class QDialog; class ColorDeconvolutionFilterPlugin : public ImageFilterPluginInterface { Q_OBJECT Q_PLUGIN_METADATA(IID "...
327ee6773e268c4439483c497716134c8315ef1d1510fdb6276af1887917a395
C/C++
1,056
43
#ifndef _NucleiDetectionFilterPluginH #define _NucleiDetectionFilterPluginH #include "interfaces/interfaces.h" template <class inType> class NucleiDetectionFilter; class QDialog; class NucleiDetectionFilterPlugin : public ImageFilterPluginInterface { Q_OBJECT Q_PLUGIN_METADATA(IID "ASAP.Nuclei...
f26eda900144655bfb8683e1c3718a3a9200bda7a6ce9154de78b92fa736b132
C/C++
1,074
41
/*<html><pre> -<a href="qh-geom_r.htm" >-------------------------------</a><a name="TOP">-</a> random_r.h header file for random and utility routines see qh-geom_r.htm and random_r.c Copyright (c) 1993-2020 The Geometry Center. $Id: //main/2019/qhull/src/libqhull_r/rando...
26ce2fbaf80280da882cafecdabd7977906371612fc80f5d43dbe2a16c6625a2
C/C++
1,084
39
#ifndef MEASUREMENTANNOTATIONTOOL_H #define MEASUREMENTANNOTATIONTOOL_H #include "AnnotationTool.h" #include "core/Point.h" #include <QGraphicsTextItem> class AnnotationWorkstationExtensionPlugin; class PathologyViewer; class QGraphicsLineItem; class ANNOTATIONPLUGIN_EXPORT MeasurementAnnotationTool : pub...
928189fc7ec33ddf5a7537f7cd28273c278f79f02efa9cb7cab37be9526a9aab
C/C++
1,084
41
#ifndef _VSIImage #define _VSIImage #include <vector> #include "MultiResolutionImage.h" #include "multiresolutionimageinterface_export.h" class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT VSIImage : public MultiResolutionImage { public: VSIImage(); ~VSIImage(); bool initializeType(const std::string& ima...
6d0517e1f2cbe0b600077ed7e9587280b13708dce746d9c3890b6d09a7861c5c
C/C++
1,087
34
/* kolmogorov.h * * Copyright (C) 2010-2011 Tamas Nepusz * * 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 version. * * ...
d59e7875ece087ce15a031e46b3c6a4f2627d062b9ed911f06b5df450205d180
C/C++
1,091
42
/* * Author: Akatsuki Kimura <akkimura@nig.ac.jp> * Akira Funahashi <funa@bio.keio.ac.jp> * Last modified: Thu, 25 Jul 2013 02:06:24 +0900 */ #ifndef __mtglobal__ #define __mtglobal__ /* parameters used in main(), function_* and draw_graphs() */ typedef struct _mtGlobal { int N; /* the (maximum) number ...
907e2b363c2f640747fbb21127d2e18339b2bef7d486de07f4eaabd28c59c789
C/C++
1,098
33
/* igraph library. Copyright (C) 2011-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...
a78e9b6bce41b29d16e8e4bdb2ec6784b8474df72dfd3d4358563214b4af1a84
C/C++
1,098
35
#ifndef ANNOTATIONTOMASK_H #define ANNOTATIONTOMASK_H #include <string> #include <vector> #include <map> #include <memory> #include "annotation_export.h" #include "core/Point.h" class AnnotationList; class ProgressMonitor; class ANNOTATION_EXPORT AnnotationToMask { public : void convert(const st...
167c8c718c5881590b28b32618df708aeee355ebc5cecce58a08fcccb1230b6f
C/C++
1,105
37
/** * 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...
d66c754ca83012931e631648e3594144e061dac97cfa8085b74e1b5df0b0a428
C/C++
1,105
35
/* 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...
2ef5c5e42347c32b9dff8a9cff97dc081f8c18794631676f71c91b1e11321467
C/C++
1,108
34
/* 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...
b7ab158b72a5e3bd86340800d0fdb1b8dcec3a47259fb327023fb9f3248db20c
C/C++
1,110
35
/* igraph library. Copyright (C) 2014-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...
0ea297c846cdd189d6072e84295fb3b99e50aa021f85d483ddbba5d618eccdf7
C/C++
1,111
41
#ifndef ANNOTATIONTOOL_H #define ANNOTATIONTOOL_H #include "interfaces/interfaces.h" #include "core/Point.h" #include "annotationplugin_export.h" class AnnotationWorkstationExtensionPlugin; class PathologyViewer; class ANNOTATIONPLUGIN_EXPORT AnnotationTool : public ToolPluginInterface { Q_OBJECT pu...
6a7fb473130a70f8120f62c5d9eddbe193c0033aff7eedc46e3be70bdc5d8eb7
C/C++
1,111
35
/* igraph library. Copyright (C) 2021-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 optio...
57578a354a88b0fa26440b80c6cd36a999aa6a35399b282a9c4e305602f75a23
C/C++
1,113
27
//--------------------------------------------------------------------------- #ifndef _AperioSVSWriter #define _AperioSVSWriter #include "multiresolutionimageinterface_export.h" #include "MultiResolutionImageWriter.h" #include <string> #include <vector> //! This class can be used to write images to disk in a...
2c61a2e4e262bdd01fa79344f2214a0a05766af41e2609cd452d8d054ac2f7c2
C/C++
1,126
47
/******************************************************************************* 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. ...
329a02f50d04e6c3835432b7a1097e8ce999dc706a88cd0c7fa957daba05f080
C/C++
1,135
35
/* plfit_decls.h * * Copyright (C) 2024 Tamas Nepusz * * 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 version. * * This...
d0ad794c6aa175d755865b9031c148965df143d70bf0ddaa86fac0ec73077f10
C/C++
1,139
47
/* Custom ctype.h to overcome trouble with recent versions of Linux libc.a */ #ifdef NO_My_ctype #include <ctype.h> #else /*{*/ #ifndef My_ctype_DEF extern char My_ctype[]; #else /*{*/ char My_ctype[264] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
c3bc394e569c4459c23e4aa52c2eab17ef087c96972163c20cbf4dc5214ee87f
C/C++
1,149
54
#ifndef FILTERTHREAD_H #define FILTERTHREAD_H #include <QThread> #include <QMutex> #include <QWaitCondition> #include <QRect> #include <QImage> #include <vector> #include <memory> class MultiResolutionImage; class ImageFilterPluginInterface; class QGraphicsItem; class FilterThread : public QThread { ...
2aaeb0f129ceceedf7f473e331f56c9689c88524c6a7b942d1c1607dc94be072
C/C++
1,154
39
#ifndef PRPACK_PREPROCESSED_SCC_GRAPH #define PRPACK_PREPROCESSED_SCC_GRAPH #include "prpack_preprocessed_graph.h" #include "prpack_base_graph.h" namespace prpack { // Pre-processed graph class class prpack_preprocessed_scc_graph : public prpack_preprocessed_graph { private: // helper meth...
ae196596ae180f2b0284b5df8c92386a6d3365d9780276a87f22f90ffe5cb011
C/C++
1,155
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...
5c8d584a51287144e885628f3e8bd126c9735db6602b955d1af022cb151a1853
C/C++
1,163
43
#ifdef UN_EXTERN #define GLOB #else #define GLOB extern #endif /* function prototypes */ int re_v(int nsam); /* function that performs recombination, taking into account recombinational hotspots */ int cinr_V(int nsam, int nsite); int cleftr_V(int nsam); int crightr_V(int nsam); /*void fprint_coal_time...
7e75dfff629c324f66966f23ebce8ff2e234a9173a5581e3f75d2fc66ec25e86
C/C++
1,171
36
/* igraph library. Copyright (C) 2011-2012 Gabor Csardi <csardi@rmki.kfki.hu> 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 ver...
af4c060624b2e7e5ad92c779d832f4a5ffd6634cc3d69b5613c94aa6c2055671
C/C++
1,175
34
/* 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...
3a858a6fb7fa73ff98f58196ba1e7ac555541bc4a3cd96f600faaab8281b3e86
C/C++
1,177
54
#ifndef FILTERTHREAD_H #define FILTERTHREAD_H #include <QThread> #include <QMutex> #include <QWaitCondition> #include <QRect> #include <QImage> #include <vector> #include <memory> class MultiResolutionImage; class ImageFilterPluginInterface; class QGraphicsItem; class FilterThread : public QThread { ...
3c5c9a475ed85b737165d5c2602614361decf17b908792e91d5996c32a71d72d
C/C++
1,178
31
/* rgr.h (raster graphics) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2004-2018 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free software: you can redistribute it an...
2a956586d2c91758109ef2b1c49d5a9f0f74c2d121206bdc0da2fa4e6cc15033
C/C++
1,189
35
// // Created by Miguel Monteiro on 29/01/2018. // #include "../src/PermutohedralLatticeCPU.h" #include "memory" //for the case where the image is its own reference image template<typename T> static void bilateral_filter_cpu(T *input, int n_input_channels, ...
3686310883989267fa392a7dbd22cca12b5c48c1a934ce263ade765aeacabb76
C/C++
1,194
33
/* glpipm.h (primal-dual interior-point method) */ /*********************************************************************** * 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 c...
6da49d42a027b7d6f55ddff38671b0a369bafed7869eeecbf7622db7ff7267ca
C/C++
1,197
32
/* mc13d.h */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2009-2013 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free software: you can redistribute it and/or modify it *...
be48eff1c6277e9f937b801dbfd9bfafc04829813ff1b0af302e91e3287949fe
C/C++
1,198
37
/* igraph library. Copyright (C) 2011-2012 Gabor Csardi <csardi@rmki.kfki.hu> 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 ver...
a8541302deaa4cf9815c67fcb1a140070b6483b3ed0018a5315ad069c095bf29
C/C++
1,200
32
/* proxy.h (proximity search heuristic algorithm) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2013 Free Software Foundation, Inc. * Written by Giorgio Sartor <0gioker0@gmail.com>. * * GLPK is free software: yo...
c52451e48c8c35f0d1638dfad21c9a4a4c7a1574aabb4b2cd491496271d01c11
C/C++
1,200
37
/* 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 ...
db0f9b22d4d832deb59eb84d4cb0cf79114413d9eed17e53d36c13cb8fb4658d
C/C++
1,201
32
/* ffalg.h (Ford-Fulkerson algorithm) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2009-2013 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free software: you can redistr...
2b29989df2868612751fe3232f550cc12f1b722aa40ef2702e9c65e6dad24d05
C/C++
1,204
31
/* wclique.h (maximum weight clique, Ostergard's algorithm) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2009 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free software...
428f68b859ad161bbcc7a5c7ee3e04029484895177f5bfc6b95ceb1e9b06973b
C/C++
1,206
43
#ifndef RECTANGLEANNOTATIONTOOL_H #define RECTANGLEANNOTATIONTOOL_H #include "AnnotationTool.h" #include "core/Point.h" #include <string> #include <QGraphicsTextItem> #include <QGraphicsRectItem> class AnnotationWorkstationExtensionPlugin; class PathologyViewer; class QGraphicsRectItem; class ANNOTATION...
787fcc4a3d8f083e5716db16b6ef49682540851795755fa401059e38cca31684
C/C++
1,206
34
/* 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...
42e5c503322ef7cd0d3ca9189d5b3e375b86568399245050e5d9200a08065708
C/C++
1,208
35
/* 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...
e7fc4f8dd211d1e6b3d5f667526348602c4ffba7455db7a604f093733d508041
C/C++
1,208
41
// // Created by Miguel Monteiro on 25/01/2018. // #define cimg_display 0 #include "CImg.h" template<typename T> T* get_flat_float_from_image(cimg_library::CImg<unsigned char> image, T pixel_depth=255.0){ //dim0 = y dim1=x auto flat = new T[image.width() * image.height() * 3]; int idx{0}; for(int y=0...
2cf44805d5ba4ceb3d7950a4acc1a527b1dc41ba7934a132e35bd1fc7778bee3
C/C++
1,210
48
#ifndef ANNOTATIONBASE_H #define ANNOTATIONBASE_H #include <string> #include <vector> #include <map> #include <memory> #include "core/Point.h" #include "annotation_export.h" class AnnotationGroup; #ifndef SWIG class ANNOTATION_EXPORT AnnotationBase : public std::enable_shared_from_this<AnnotationBase> {...
878ed92bcbf1c7faff48ee56f7f2bd0a28b2d273607ea34e7b150f929e6f74db
C/C++
1,210
41
// 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...
6caee65ffaced1f2b0d0cd31cd058f9e866e8f4f7e1926753766ec4fe923a63e
C/C++
1,223
33
/* okalg.h (out-of-kilter algorithm) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2009-2013 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free software: you can redistri...
1baa97c701d156d35706e14ed88c2d98549e02c3ebd9afeaa5ae3b766750bdec
C/C++
1,225
30
/* jd.h (conversions between calendar date and Julian day number) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2000 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free so...
05f33004168223053d15a7ede61e79e0fc2ccdb4eecbd9199621f286434f034b
C/C++
1,226
32
/* mt1.h (0-1 knapsack problem; Martello & Toth algorithm) */ /*********************************************************************** * 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 soft...
e16b1a4be2dd82d0fff8b6261779a10076cd5b88e9866e69f76206e4f17e7e8c
C/C++
1,226
60
struct devent { double time; int popi; int popj; double paramv; int num ; /* adna */ double **mat ; char detype ; struct devent *nextde; } ; struct c_params { int npop; int nsam; /* total sample size including ancient samples */ int nsamin; /* sample size at present time, does not include ancient ...
e8982e321a837416daf927620538a4b4094f8492e81d85d2a14e2f26e8ae8e60
C/C++
1,231
32
/* mc21a.h (permutations for zero-free diagonal) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2009-2013 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free software: you ...
6ff270b5c5a7980c3c7fb83bdafd04da902bba561a664ae49edcd2459310334f
C/C++
1,239
48
#ifndef _ThresholdWholeSlideFilter #define _ThresholdWholeSlideFilter #include "wholeslidefilters_export.h" #include <string> #include <vector> #include <map> #include <memory> class MultiResolutionImage; class ProgressMonitor; class WHOLESLIDEFILTERS_EXPORT ThresholdWholeSlideFilter { private: std...
774ec16a04818fe04ed952139c5b8ea8968c90bdd2b4e818d456b234924a81aa
C/C++
1,239
36
/******************************************************************************* 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. ...
07b286c8c5015ca8a1df5d272339cebc180f1ae77ddd7c8b777575f293fdc442
C/C++
1,242
32
/* wclique1.h (maximum weight clique, greedy heuristic) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2012-2013 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free softwar...
70f8b4e34905730bc974039c34fa24a1f5a182acd64b5d073a749d56cb1dd0d1
C/C++
1,242
49
/** * 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...
75d44d33685d1e9dd5353142e55627e8ab152e566f40d474f21915ae7603aec4
C/C++
1,244
32
/* keller.h (cover edges by cliques, Kellerman's heuristic) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2009-2013 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free sof...
0849ec01abe0c7b5aeefe99f491d1b1ba47e0534aad02519c581ac687c93143b
C/C++
1,252
42
/********************************************************************************** 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...
adb4392f31a4cf0f843ecd8b044b0c6e235281ee45953dd1198dc167a1a3431a
C/C++
1,252
70
#ifndef SYSDEP_H_INCLUDED #define SYSDEP_H_INCLUDED #undef USE_LARGEFILE #ifndef NO_LONG_LONG #ifdef __sun__ #define USE_LARGEFILE #define OFF_T off64_t #endif #ifdef __linux__ #define USE_LARGEFILE #ifdef __GLIBC__ #define OFF_T __off64_t #else #define OFF_T off_t #endif #endif #ifdef _AIX43 #define _LARGE_FILES #d...
8d4f686d6486ad137648ecd3105952d8686ef6e52df278f8724dcb3235edf339
C/C++
1,253
45
/******************************************************************************* 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. ...
cb4254e83fea40ffff8330630a3d6703dac3d5bd6f79de36702076ab98baf692
C/C++
1,265
37
/* simplex.h */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2015 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is free software: you can redistribute it and/or modify it * u...
d65eb35e727f2999b3f83f910b3f038b7d71ae683cdc0d895fcd85efd0e7c4db
C/C++
1,268
32
/* triang.h (find maximal triangular part of rectangular matrix) */ /*********************************************************************** * This code is part of GLPK (GNU Linear Programming Kit). * Copyright (C) 2012-2013 Free Software Foundation, Inc. * Written by Andrew Makhorin <mao@gnu.org>. * * GLPK is fre...