sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
fe11ff9046174a2d2a84e4adda9b7cc9c7e2223e18b9dc2592db0c44ae8c1d8a | C++ | 25,633 | 609 | #ifndef _GNU_SOURCE
# define _GNU_SOURCE
#endif
#include "bamrc/auxfields.hpp"
#include "bamrc/ReadWarnings.hpp"
#include "version.h"
#include <boost/program_options.hpp>
#include "bamrc/BasicStat.hpp"
#include "bamrc/IndelQueueEntry.hpp"
#include "bamrc/IndelQueue.hpp"
#include <stdio.h>
#include <memory>
#include <... |
cd671b9417b5d0be5ca23e4202687029a1420fee165bffcd332b55ae006f4557 | C++ | 27,750 | 764 | /*
Copyright (C) 2003-2006 Tommi Junttila
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; wi... |
f4e31d73a5cea312f07defca8fbdb76c45dc168c0dda5816dfff81b213bad530 | C++ | 27,933 | 746 | #include "MultiResolutionImageWriter.h"
#include "MultiResolutionImage.h"
#include <iostream>
#include <sstream>
#include <cmath>
#include <math.h>
#include <algorithm>
#include <chrono>
extern "C" {
#include "tiffio.h"
};
#include "JPEG2000Codec.h"
#include "core/ProgressMonitor.h"
#include "core/Path... |
4f354a26a2a2a5547e87c370ebd4e6a5ee64b6ebf79b096e31bb1164a74bbb43 | C++ | 28,098 | 837 | /*
* 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... |
bc2a5bae6e5283162d24d8fec28387ce5566b24365f9ec91ba1b9af6b1742027 | C++ | 28,408 | 799 | /*
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... |
707dc0dd7c56de8dbfb268334adbf386384b9bd2c033dd2cc02948bba7b8171d | C++ | 28,529 | 636 | #include "VisualizationWorkstationExtensionPlugin.h"
#include <iostream>
#include "../PathologyViewer.h"
#include <QDockWidget>
#include <QtUiTools>
#include <QCheckBox>
#include <QDoubleSpinBox>
#include <QGraphicsPolygonItem>
#include <QPolygonF>
#include <QDialog>
#include <QPushButton>
#include <QFrame>
... |
c73bd322a51f64f5e3ae229e86e221e13db2d383b84aa58711ecbdb8b610cecb | C++ | 28,837 | 785 | /*
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 ... |
6066a84720522ce853ab801c39da48bdb30d4808bbd191c9eb629399bf436112 | C++ | 29,029 | 1,023 | /***************************************************************-*-c++-*-
@COPYRIGHT@
$Id: filetools.cpp,v 1.35 2007/02/12 21:07:23 bram Exp $
*************************************************************************/
#pragma hdrstop
#include "filetools.h"
#include "stringconversion.h"
#ifdef WIN... |
eca9e383df48e37dce73b84b694e886c6161e948d60090deac312324910a80ab | C++ | 29,843 | 1,127 | #include <new>
#include <cassert>
#include "graph.hh"
#include "partition.hh"
#include "igraph_decls.h"
/* Allow using 'and' instead of '&&' with MSVC */
#if _MSC_VER
#include <ciso646>
#endif
/*
Copyright (c) 2003-2021 Tommi Junttila
Released under the GNU Lesser General Public License version 3.
This file ... |
e6fc8ea7c49e1c7eb2aad4a8683cd4609636a00bd3c00454c63b128563a038ed | C++ | 30,031 | 1,241 | #include "sbm.hh"
#include "log.hh"
#include <sys/time.h>
SBM::SBM(Env &env, Network &network)
:_env(env), _network(network),
_n(env.n), _k(env.k), _K(_k+1),
_t(env.t), _iter(0),
_alpha(_k), _family(0),
_eta(_K,_t),
_ones_prob(.0), _zeros_prob(.0),
_hitcurve_id(0),
_inf_epsilon(0.001),
_r(... |
e17fcf629d23b68b57df647b98b5fd2ac771a576e05a857156ca0e9a1e422778 | C++ | 30,086 | 692 | /*
*
* 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.
... |
ff152ac6edb6dcdc3384f92ee0a68b8bf9896de5f54bf7aebc13549a9d7283f4 | C++ | 30,308 | 886 | #include "prpack_solver.h"
#include "prpack_utils.h"
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <stdexcept>
using namespace prpack;
using namespace std;
void prpack_solver::initialize() {
geg = NULL;
gsg = NULL;
sg = NULL;
sccg = NULL;
owns_bg = true;
}
pr... |
2d55c2af705008ed4698ace43ea3424e7a1a2758dd87bb18e987f7ec13e7c336 | C++ | 30,324 | 898 | /*******************************************************************************
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.
... |
f8a470b412e7aa012693ba39821328de73a3e239709b20a40e9ae86e0bcb96c9 | C++ | 32,079 | 863 | /**
* 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... |
6a8f729b551b69658b7ab69e0fdbb6a1344c9ddbcb0dfce74d11c8724c80399a | C++ | 33,487 | 1,104 | /**********************************************************************************
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... |
e09cde1573aed73325e3b794a20b128f7870702b785d1dfdfb50c31a44f0a72d | C++ | 34,793 | 972 | /**********************************************************************************
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... |
df05ed375223b3ea0867aa7cd75cb031be18f9973fc1601aa7302bc3e8e997a8 | C++ | 35,152 | 1,476 | #include "linksampling.hh"
#include "log.hh"
#include <sys/time.h>
LinkSampling::LinkSampling(Env &env, Network &network)
:_env(env), _network(network),
_n(env.n), _k(env.k),
_t(env.t), _s(env.s),
_alpha(_k), _beta(_k),
_eta(_k,_t),
_gamma(_n,_k), _lambda(_k,_t),
_gammanext(_n,_k), _lambdanext(_k,_... |
93bbdc6038df37a4048ce7906a6d8c2eb2ea98f515a88be7fc1ac054f2775769 | C++ | 35,327 | 990 | /*******************************************************************************
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.
... |
0ba485186f6f806dd0de3b18ba5722db754684da52361e4d5e8b781a178f5a72 | C++ | 36,681 | 1,212 | /*
*
* 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... |
ca159460e5acd4ff0e0807253edf970090616bf773df6d56d6ad8ee7054e1fd4 | C++ | 36,733 | 1,086 | /* -*- mode: C++ -*- */
/*
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 Sof... |
4b8ef822634eebf5e41a5af7cea512bf1d32b2d97e45c0767eec500968e15dbb | C++ | 38,153 | 1,259 | /**
* 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... |
704ec8bcbb487f0dfa384a90d1d5fb53e9d79e320b6da9a3b1c51c010948320e | C++ | 40,476 | 1,270 | /*
* 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... |
31a3a356a5ab644231ce06e942fe7f2510602dfb9f587b232deae856bb93915d | C++ | 42,562 | 1,123 | /**********************************************************************************
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... |
041ddecefdf35f508948f656a98ab3c30166e5190ff6948671c84c7f1b48bb99 | C++ | 42,772 | 975 | #include "AnnotationWorkstationExtensionPlugin.h"
#include "DotAnnotationTool.h"
#include "PolyAnnotationTool.h"
#include "PointSetAnnotationTool.h"
#include "SplineAnnotationTool.h"
#include "annotation/AnnotationService.h"
#include "annotation/AnnotationList.h"
#include "annotation/AnnotationGroup.h"
#include... |
b74a539f0c51c74de5f7cc3675bc0d8040b5f5b6e0b8f7bd582410b4431b9dfc | C++ | 48,034 | 1,400 | #include <iterator>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <numeric>
#include "survival_forest_data.h"
#include "survival_forest_utility.h"
#include "survival_forest_tree.h"
namespace ranger {
Tree::Tree() :
dependent_varID(0), mtry(0), num_samples(0), num_samples_oob(0), min_node_siz... |
2e57b6cec7ddd1cd65e9d83768f334d2cef607d4c93bb75af4bff24e1e165953 | C++ | 48,722 | 1,377 | #include <math.h>
#include <algorithm>
#include <stdexcept>
#include <string>
#include <ctime>
#include <functional>
#include <set>
#include <cmath>
#include <vector>
#include <sstream>
#include <memory>
#include <utility>
#include <random> // mt19937 and uniform_int_distribution
#include <thread> //thread
#in... |
d8410ed6481c55e2b569d115d8f382d351d39c2160f323dbcaf6268b32cac58a | C++ | 49,252 | 2,084 | #include "fastamm.hh"
#include "log.hh"
#include <sys/time.h>
int FastAMM::ea = 0;
int FastAMM::eb = 0;
uint32_t FastQueue::_K = 0;
double FastQueue::_alpha = .0;
FastAMM::FastAMM(Env &env, Network &network)
:_env(env), _network(network),
_n(env.n), _k(env.k),
_t(env.t), _s(env.s),
_alpha(_k),
_family(... |
c72db7508ec8927c6d02ef553804d51fdbd8171df709040b1c4cbf2b587429ad | C++ | 50,289 | 1,373 | /*
igraph library.
Constructing realizations of degree sequences and bi-degree sequences.
Copyright (C) 2018-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 Fr... |
9abcb917c241137bb0eea050b4d04fd75c5d875ef70698c57a5622df27114998 | C++ | 50,497 | 2,076 | #include "fastamm2.hh"
#include "log.hh"
#include <sys/time.h>
int FastAMM2::ea = 0;
int FastAMM2::eb = 0;
FastAMM2::FastAMM2(Env &env, Network &network)
:_env(env), _network(network),
_n(env.n), _k(env.k),
_t(env.t), _s(env.s), _m(10),
_alpha(_k),
_family(0), _prev_mbsize0(_s), _prev_mbsize1(_s),
_e... |
7ec318f2669f1f91b55d5de2fc637979390d777ec51ba9191503ff393ce5fbea | C++ | 62,854 | 2,671 | #include "mmsbinfer.hh"
#include "log.hh"
#include <sys/time.h>
int MMSBInfer::ea = 0;
int MMSBInfer::eb = 0;
MMSBInfer::MMSBInfer(Env &env, Network &network)
:_env(env), _network(network),
_n(env.n), _k(env.k),
_t(env.t), _s(env.s),
_alpha(_k),
_family(0), _prev_mbsize0(_s), _prev_mbsize1(_s),
_eta(... |
c262957e12f1d24c30048c02af029ac84e96d9d3aedcbd9abdc96ce42897bda1 | C++ | 65,024 | 1,708 | /*
igraph library.
Copyright (C) 2006-2012 Gabor Csardi <csardi.gabor@gmail.com>
334 Harvard street, Cambridge, MA 02139 USA
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
1a7f9853a7307e9f2b19f43114f44ca683fe290c3b640a54721790a8797f164e | C++ | 76,354 | 2,182 | /*******************************************************************************
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.
... |
e702da1294605a0fb7b2193278b0932f8e8d128e3af841a550395e62b9fdb5cd | C++ | 86,716 | 2,566 | /**********************************************************************************
Infomap software package for multi-level network clustering
Copyright (c) 2013 Daniel Edler, Martin Rosvall
For more information, see <http://www.mapequation.org>
This file is part of Infomap software package.
Infomap softwar... |
c4e46af052967102821830c4a5a2a213aa093bb187357cabe7185fe144429e9f | C++ | 123,013 | 3,589 | // ***********************************************************************
// *** COPYRIGHT NOTICE **************************************************
// rbtree - red-black tree (self-balancing binary tree data structure)
// Copyright (C) 2004 Aaron Clauset
//
// This program is free software; you can redistribute it an... |
c7920700b3374e4bde9e3030820690ea39fc73a6154229b9b05153fefe2e481f | C++ | 148,844 | 5,035 | #include "igraph_error.h"
#include <new>
#include <set>
#include <list>
#include <algorithm>
#include <stdexcept>
// #include <cstdio>
#include <cassert>
#include <climits>
#include "defs.hh"
#include "graph.hh"
#include "partition.hh"
#include "utils.hh"
/* Allow using 'and' instead of '&&' with MSVC */
#if _MSC_VE... |
8934a862d4119e98d3b5d59eb0d0336fe2e6d5090d561ab54cda3bd214644038 | C++ | 152,833 | 3,854 | /* Generated by Cython 0.29 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython re... |
e24a41c913a43313bbab4890ef804b26af8ad0117726776d6472f3fc4f8ee837 | C++ | 172,903 | 4,295 | /* Generated by Cython 0.29 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython re... |
6b676932ba004cddfa069e9178c0eb585b19eafd1e200d8c242379eaeff52895 | C++ | 174,709 | 4,053 | // Copyright Leo Goodstadt 2012
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/program_opti... |
2ff440fbe10a0d7745da3a09f5c08bc1d39c5efb325e96eb44c7d1b83b49f59d | C++ | 200,000 | 4,310 | /* Generated by Cython 0.29 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython re... |
5155914aa396cc9914f715b85ba9adc687a1e5d9f2dafbcc97263b885858bbba | C++ | 200,000 | 4,478 | /* Generated by Cython 0.29 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython re... |
c4b2648e0fb3eb68379b3deeed0136f6bf395901665e8835965c415d22f5e177 | C++ | 200,000 | 4,903 | /* Generated by Cython 0.29 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython re... |
f0d81a5d2e09f9554f2fb4f9541d3a53b36c9f9457b67740f599ad8fdf7ba105 | C++ | 200,000 | 4,330 | /* Generated by Cython 0.29 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython re... |
897e7418ab288934eb10fea97d026f20188dc3f08f57297beede95fc485eb1b9 | C/C++ | 133 | 8 |
class WorkstationToolBarFactory
{
public:
WorkstationToolBarFactory();
~WorkstationToolBarFactory();
void initialize();
}; |
d7a51da6310188d977c484f84274bda87fb69a84df477a1f9ca6ff00aab30b4b | C/C++ | 202 | 11 | #ifndef PRPACK
#define PRPACK
#include "prpack_csc.h"
#include "prpack_csr.h"
#include "prpack_edge_list.h"
#include "prpack_base_graph.h"
#include "prpack_solver.h"
#include "prpack_result.h"
#endif
|
b68e6eaf23ccf91fadca02b499b307eec0e23f652a1ffb834950c50b315dac0d | C/C++ | 212 | 16 | #ifndef PRPACK_CSR
#define PRPACK_CSR
namespace prpack {
class prpack_csr {
public:
int num_vs;
int num_es;
int* heads;
int* tails;
};
}
#endif
|
799d4f25148e3e5d774c5f6fd0ba9676276b8a2070e01458ae96084517c22e44 | C/C++ | 216 | 11 | #ifndef TestDataH
#define TestDataH
#include <string>
extern std::string g_dataPath;
extern std::string g_externalDataPath;
extern bool g_runTimeIntensiveTests;
extern std::string g_programPath;
#endif
|
78fcb23c098948b2c785692e46910cdd7d743e110969c6dbfd68fc02a45cfe51 | C/C++ | 222 | 11 |
/*
* unistd.h replacement for MSVC
*
* Provide the minimum that igraph needs.
* At presents this is:
* - isatty() for f2c and flex-generated sources
* - unlink() for examples/simple/graphml.c
*/
#include <io.h>
|
57dd422e88d8abc0cba7a9852097b6d33fbfe139f219c57b59df6c5ca4deda42 | C/C++ | 226 | 10 |
#include "igraph_threading.h" /* IGRAPH_THREAD_SAFE */
/* This includes igraph's config.h.
* The vendored GLPK must not have a config.h. */
#include "config.h"
#if IGRAPH_THREAD_SAFE
#define TLS IGRAPH_THREAD_LOCAL
#endif
|
3864341a5112e9fef9c88d6338caadcccbd153e894ca7da9a7ee1f1308bb5aad | C/C++ | 230 | 16 | #ifndef PRPACK_EDGE_LIST
#define PRPACK_EDGE_LIST
namespace prpack {
class prpack_edge_list {
public:
int num_vs;
int num_es;
int* heads;
int* tails;
};
}
#endif
|
270ca24852d33472b2c068eca356a07c7df0e47f0db2c1080b9c08732bd3579f | C/C++ | 327 | 9 | #pragma once
#include <torch/extension.h>
std::tuple<torch::Tensor, torch::Tensor, torch::optional<torch::Tensor>,
torch::Tensor>
relabel_one_hop_cpu(torch::Tensor rowptr, torch::Tensor col,
torch::optional<torch::Tensor> optional_value,
torch::Tensor idx, bool bipar... |
ff3b70a16dbcf509623311070036bd142ce04e97658e72842cc78ee63ee3c4c1 | C/C++ | 327 | 16 | #include <qtoolbutton.h>
#include <qtoolbar.h>
class WorkstationToolbar : public QToolBar {
public:
WorkstationToolbar();
std::vector<QToolButton*> getButtons();
void setAllButtonsUp();
void activateButtons();
void deactivateButtons();
private:
std::vector<QToolButton*> _buttons;
void initialize... |
93367d376fb482e2cdfdbcf9c3cd2f4d45be2f3fbf13b1ded31c1f660682e85d | C/C++ | 333 | 17 | #ifndef PRPACK_PREPROCESSED_GRAPH
#define PRPACK_PREPROCESSED_GRAPH
namespace prpack {
// TODO: this class should not be seeable by the users of the library.
// Super graph class.
class prpack_preprocessed_graph {
public:
int num_vs;
int num_es;
double* d;
}... |
4b71eaf23585725736f696c3018798b26c86bc04c7cb1471a08f643ff15ccdbe | C/C++ | 344 | 14 | /* Send JSON and string messages over the serial port
* --------------------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#ifndef send_h
#define send_h
#include <ArduinoJson.h>
void send_message(const char* topic, const char* payload);
void send_json(const char* topic, JsonDocumen... |
f39e40b8139dad8246ab4dab5aa2c74783e31abfafcd3de7e7465877757a815c | C/C++ | 399 | 18 | #ifndef WSCOORDINATE_H
#define WSCOORDINATE_H
#include "core_export.h"
class CORE_EXPORT Point {
public:
Point();
Point(const float& x, const float& y);
inline float getX() const { return _x; }
inline float getY() const { return _y; };
inline void setX(const float& x) { _x = x; }
inline void s... |
c6ec64330e082fc412f8cc37a8e547c152e662d56e8c927283407f5fe6d7950f | C/C++ | 401 | 14 | #ifndef FUZZ_UTILITIES_H
#define FUZZ_UTILITIES_H
#include <igraph.h>
#define CHECK_ERROR(funcall, expected_err) \
do { \
igraph_error_handler_t *handler; \
handler = igraph_set_error_handler(igraph_error_handler_ignore); \
IGRAPH_ASSERT(funcall == expected_err); \
... |
2f72d81f26b1729cdf090875aac3f5b7ee0e1b031cc65514f737995ae8944c66 | C/C++ | 420 | 20 | /* draft.h */
#ifndef DRAFT_H
#define DRAFT_H
#if 1 /* 28/III-2016 */
#define GLP_UNDOC 1
#endif
#include "glpk.h"
#if 1 /* 28/XI-2009 */
int _glp_analyze_row(glp_prob *P, int len, const int ind[],
const double val[], int type, double rhs, double eps, int *_piv,
double *_x, double *_dx, double *_y, doubl... |
4231780888048173a2c8df9c212ba5e302ad0d17220141f47d4acd061698fa81 | C/C++ | 425 | 17 | #ifndef IGRAPH_OPERATORS_REWIRE_INTERNAL_H
#define IGRAPH_OPERATORS_REWIRE_INTERNAL_H
#include "igraph_decls.h"
#include "igraph_constants.h"
#include "igraph_datatype.h"
#include "igraph_error.h"
IGRAPH_BEGIN_C_DECLS
IGRAPH_PRIVATE_EXPORT igraph_error_t igraph_i_rewire(
igraph_t *graph, igraph_int_t n, igraph_b... |
f7ecabc555aa06d43511bd477e2f8381196e4bbf29c145c8c5a8aaa4d9667412 | C/C++ | 433 | 19 | #ifndef PANTOOL_H
#define PANTOOL_H
#include "interfaces/interfaces.h"
class PanTool : public ToolPluginInterface {
Q_OBJECT
Q_PLUGIN_METADATA(IID "ASAP.PanTool/1.0")
Q_INTERFACES(ToolPluginInterface)
public :
std::string name();
void mouseMoveEvent(QMouseEvent *event);
void mousePressEvent... |
246f7d833edfce7530edcf1c30471d643243dd08ba72624f204b72ea6d30b701 | C/C++ | 453 | 22 | #ifndef QTPROGRESSMONITOR_H
#define QTPROGRESSMONITOR_H
#include "asaplib_export.h"
#include "core/ProgressMonitor.h"
#include <QObject>
class ASAPLIB_EXPORT QtProgressMonitor : public QObject, public ProgressMonitor {
Q_OBJECT
public :
void setProgress(const unsigned int& progress);
void setStat... |
1cbef77c42ee90965e0bea0f5f22df64ee3cf01d0d5ba8ed3e9f5f3bad8398a1 | C/C++ | 456 | 24 | /* Interface for a single digital output pin
* -----------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#ifndef LineInterface_h
#define LineInterface_h
#include "Arduino.h"
#include <ArduinoJson.h>
#include "Interface.h"
#include "ToggleInterface.h"
class LineInterface: public Tog... |
69f94e9857f91ddc692fef6eae1616f536abd05899ec0d9537a385d5873ff2bc | C/C++ | 458 | 24 | #ifndef CMDLINEPROGRESSMONITOR_H
#define CMDLINEPROGRESSMONITOR_H
#include "core_export.h"
#include "ProgressMonitor.h"
class ProgressDisplay;
class CORE_EXPORT CmdLineProgressMonitor : public ProgressMonitor {
protected:
ProgressDisplay* disp;
public :
CmdLineProgressMonitor();
virtual ~Cmd... |
2594dee471ac72e52dbc4a1631a3ce262b892bff0cec0a4ef9058ca0572a2033 | C/C++ | 477 | 12 | #pragma once
#include <torch/extension.h>
void synchronize_cuda();
void read_async_cuda(torch::Tensor src,
torch::optional<torch::Tensor> optional_offset,
torch::optional<torch::Tensor> optional_count,
torch::Tensor index, torch::Tensor dst,
... |
8d53393a0a8f43e2c5a1539d6ad900e0e861abc24b3e91a25d8f3713737bce90 | C/C++ | 477 | 17 | #ifndef _LIFIMAGEFACTORY
#define _LIFIMAGEFACTORY
#include "multiresolutionimageinterface_export.h"
#include "MultiResolutionImageFactory.h"
class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT LIFImageFactory : public MultiResolutionImageFactory {
public:
LIFImageFactory();
private:
static const LIFImageFactor... |
946a57f5ae47690c13df197e681af59f62e3434b4da9472d2294950cb8752197 | C/C++ | 477 | 17 | #ifndef _VSIIMAGEFACTORY
#define _VSIIMAGEFACTORY
#include "multiresolutionimageinterface_export.h"
#include "MultiResolutionImageFactory.h"
class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT VSIImageFactory : public MultiResolutionImageFactory {
public:
VSIImageFactory();
private:
static const VSIImageFactor... |
76a67b65e96e82e725df79165d864de9d2a469e2746fffef79efc044a05696ed | C/C++ | 478 | 21 | #ifndef DOTANNOTATIONTOOL_H
#define DOTANNOTATIONTOOL_H
#include "AnnotationTool.h"
class AnnotationWorkstationExtensionPlugin;
class PathologyViewer;
class ANNOTATIONPLUGIN_EXPORT DotAnnotationTool : public AnnotationTool {
Q_OBJECT
public :
DotAnnotationTool(AnnotationWorkstationExtensionPlugin* ... |
2f8efd38db7703c3915d1cda1f24a7b64c8cd0a1199e884b677db09a57d78bc9 | C/C++ | 480 | 19 | #ifndef SPLINEANNOTATIONTOOL_H
#define SPLINEANNOTATIONTOOL_H
#include "PolyAnnotationTool.h"
class QAction;
class AnnotationWorkstationExtensionPlugin;
class PathologyViewer;
class ANNOTATIONPLUGIN_EXPORT SplineAnnotationTool : public PolyAnnotationTool {
Q_OBJECT
public :
SplineAnnotationTool(Ann... |
f91a40c54254bd187f8eb242fffe2508f1304a343088aaeb71d680e55901dcf7 | C/C++ | 482 | 17 | #ifndef _TIFFIMAGEFACTORY
#define _TIFFIMAGEFACTORY
#include "multiresolutionimageinterface_export.h"
#include "MultiResolutionImageFactory.h"
class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT TIFFImageFactory : public MultiResolutionImageFactory {
public:
TIFFImageFactory();
private:
static const TIFFImageF... |
3ed8a13525a5bd76aa09e368cc3e3a139d4268c2d6f1d32be6abf06daa598cb7 | C/C++ | 483 | 29 | #ifndef SCALEBAR_H
#define SCALEBAR_H
#include <QWidget>
class ScaleBar : public QWidget {
Q_OBJECT
public:
ScaleBar(float resolution, QWidget *parent);
~ScaleBar();
QSize sizeHint() const;
int heightForWidth(int w) const;
public slots:
void updateForFieldOfView(const QRectF& fieldO... |
3ec754a54a2e5b8d35700b89e3d55aca64d782228bd9ca2335c4e2f2e3544db2 | C/C++ | 484 | 21 | #ifndef ANNOTATIONIMAGESCOPESERVICE_H
#define ANNOTATIONIMAGESCOPESERVICE_H
#include "annotation_export.h"
#include "Repository.h"
class ANNOTATION_EXPORT ImageScopeRepository : public Repository {
private:
float _closingDistance;
bool loadFromRepo();
public:
ImageScopeRepository(const std::shared_... |
30c2bad10778a726d53ad96bc16e578485c359a2501990eb5b72ac7030490924 | C/C++ | 487 | 22 | #ifndef ANNOTATIONNDPASERVICE_H
#define ANNOTATIONNDPASERVICE_H
#include "annotation_export.h"
#include "Repository.h"
class ANNOTATION_EXPORT NDPARepository : public Repository {
public:
NDPARepository(const std::shared_ptr<AnnotationList>& list);
void setNDPISourceFile(const std::string& ndpiSourcefi... |
2a9d8075b371225532d96d4ea71d53b83473cd178cd1d1689b05180693a6ade0 | C/C++ | 497 | 17 | #ifndef _OPENJP2IMAGEFACTORY
#define _OPENJP2IMAGEFACTORY
#include "multiresolutionimageinterface_export.h"
#include "MultiResolutionImageFactory.h"
class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT OpenJP2ImageFactory : public MultiResolutionImageFactory {
public:
OpenJP2ImageFactory();
private:
static cons... |
2e8fbd0c1f634e79b61f29a484f0b9b52e91ee740dc14bd092539c971aebd8a6 | C/C++ | 499 | 21 | #ifndef _DICOMIMAGEFACTORY
#define _DICOMIMAGEFACTORY
#include "dicomfileformat_export.h"
#include "MultiResolutionImageFactory.h"
class DICOMFILEFORMAT_EXPORT DICOMImageFactory : public MultiResolutionImageFactory {
public:
DICOMImageFactory();
~DICOMImageFactory();
private:
MultiResolutionImage* re... |
43736cde412a9d7adae7585ab2a07c91252bcf6058db93084dede23a0706513a | C/C++ | 503 | 25 | //
// Created by ivan on 3/11/21.
//
#ifndef __SIMPLIFICATIONHELPDIALOG__
#define __SIMPLIFICATIONHELPDIALOG__
#include "TraceModifier.h"
#include <QDialog>
class SimplificationHelpDialog : public QDialog
{
Q_OBJECT
public:
explicit SimplificationHelpDialog(QWidget* parent = 0);
public Q_SLOTS:
void... |
f895df3d86f18f7977fafa4c005018d73bfc573bb022e038c34c96762e69c731 | C/C++ | 505 | 20 | #ifndef _OPENSLIDEIMAGEFACTORY
#define _OPENSLIDEIMAGEFACTORY
#include "openslidefileformat_export.h"
#include "MultiResolutionImageFactory.h"
class OPENSLIDEFILEFORMAT_EXPORT OpenSlideImageFactory : public MultiResolutionImageFactory {
public:
OpenSlideImageFactory();
private:
MultiResolutionImage* r... |
11e5f88603c8cc9d37e0110491b59c3081b858012a09b8c91a1e705bde341d37 | C/C++ | 509 | 23 | /*
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 02:38:53 +0900
*/
#ifndef __mtgraphics__
#define __mtgraphics__
#include <X11/Xlib.h>
#include <X11/Xutil.h>
typedef struct _mtGraphics {
int Scale1;
Display *d;
Colormap cm;
... |
16ee7a222542503c26e18fdb68083a7b420daf7a843ce9f35abf8d96bc11e3e0 | C/C++ | 512 | 23 | /*
* Author: Akatsuki Kimura <akkimura@nig.ac.jp>
* Akira Funahashi <funa@bio.keio.ac.jp>
* Last modified: Thu, 25 Jul 2013 02:38:53 +0900
*/
#ifndef __mtgraphics__
#define __mtgraphics__
#include <X11/Xlib.h>
#include <X11/Xutil.h>
typedef struct _mtGraphics {
int Scale1;
Display *d;
Colormap cm;
... |
edfb50aed3c09b4b821f2b94a0dc96c5b0b0b125e09ffbf3658350f4d6d2a8e8 | C/C++ | 521 | 22 | #ifndef POINTSETANNOTATIONTOOL_H
#define POINTSETANNOTATIONTOOL_H
#include "AnnotationTool.h"
class QAction;
class AnnotationWorkstationExtensionPlugin;
class PathologyViewer;
class ANNOTATIONPLUGIN_EXPORT PointSetAnnotationTool : public AnnotationTool {
Q_OBJECT
public:
PointSetAnnotationTool... |
79feeb6faac54bbc789401295415356cc9b24d17f321014e93f9c6936f1882a3 | C/C++ | 528 | 22 | #ifndef __ASAP_GUI_COMPOSITECHILD__
#define __ASAP_GUI_COMPOSITECHILD__
#include <QMainWindow>
namespace ASAP
{
/// <summary>
/// Provides an interface that interacts with the CompositeWindow class,
/// allowing the implementation to request a tab or context switch
/// through a signal.
/// </summary>
... |
9c15efc34d5eef5278bb2d112d5518a69c3f6083a5792f54668c8f77e0fc4a8c | C/C++ | 528 | 28 | #ifndef REPOSITORY_H
#define REPOSITORY_H
#include <string>
#include <vector>
#include <memory>
#include "annotation_export.h"
class AnnotationList;
class ANNOTATION_EXPORT Repository
{
public:
Repository(const std::shared_ptr<AnnotationList>& list);
virtual ~Repository();
void setSource(const... |
93e83bdbad1bb71ee63fd581bade52c796ffd276987c7726903b7a93a6347af6 | C/C++ | 529 | 25 | #ifndef ZOOMTOOL_H
#define ZOOMTOOL_H
#include "interfaces/interfaces.h"
class ZoomTool : public ToolPluginInterface {
Q_OBJECT
Q_PLUGIN_METADATA(IID "ASAP.ZoomTool/1.0")
Q_INTERFACES(ToolPluginInterface)
public:
ZoomTool();
std::string name();
void mouseMoveEvent(QMouseEvent *event);
vo... |
609c8e8a5354bdb714c79a5fde0dbdafd81cfdf3d1ef20f5e584c35d3fe94b17 | C/C++ | 531 | 27 | /* Interface for the EVNICE feeder library
* ---------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#ifndef FeederInterface_h
#define FeederInterface_h
#include "Arduino.h"
#include <ArduinoJson.h>
#include "Interface.h"
#include "Feeder.h"
class FeederInterface: public Interface ... |
f9cb9ee098387a617070bf933900568e34eb7b4223d6a938f0f485a586ad6e00 | C/C++ | 533 | 30 | #ifndef PRPACK_CSC
#define PRPACK_CSC
#if !defined(_MSC_VER) && !defined (__MINGW32__) && !defined (__MINGW64__)
# include <stdint.h>
#else
# include <stdio.h>
typedef __int64 int64_t;
#endif
namespace prpack {
class prpack_csc {
public:
int num_vs;
int num_es;
int* ... |
2318d97396e87f3de010b662d25d42a5adad756de1ac743c37e58ec379e8783f | C/C++ | 537 | 25 | /* msMask.h -- masking for ms ascertainment stuff*/
#ifndef MASK_INC
#define MASK_INC
#define LENGTH 1000000
#include "stdio.h"
// stringWrap Object Definition
typedef struct{
int **bitmap; // where the masking is stored
int sampleSize; // number of alleles represented
} mask;
int biggerlist(int nsam,... |
ae1c33757ee5ce399ed050b86df64db76982b78f7ed27175ba01ca78c6aadb6a | C/C++ | 543 | 38 | struct devent {
double time;
int popi;
int popj;
double paramv;
double **mat ;
char detype ;
struct devent *nextde;
} ;
struct c_params {
int npop;
int nsam;
int *config;
double **mig_mat;
double r;
int nsites;
double f;
double track_len;
double *size;
double *alphag;
struct devent *deventlist ;
} ;... |
3ccebfad83b7d6d377f3e8ccc6ce9904a63fe7920d5b81bc6b6c84d212ec20c8 | C/C++ | 571 | 32 | /* vector.h -- methods for vector object */
#ifndef VECTOR_INC
#define VECTOR_INC
#include "stdio.h"
// stringWrap Object Definition
typedef struct{
int length; // length of string
double *dubs; // true doubles underneath
int size; // current alloc'd Size
} vector;
vector *vectorNew(int startingSize)... |
17c2d61cbebac4f2921dfbad65d4e3eaa3096604d0a90ba8cddbf56761b95b27 | C/C++ | 588 | 19 | /*******************************************************************************
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.
... |
36d447683c697485fec45288ea3907aee98ef1195f20b368a4156d2feb2a466e | C/C++ | 595 | 30 | #ifndef PRPACK_RESULT
#define PRPACK_RESULT
#include <string>
#include <cstdint>
namespace prpack {
// Result class.
class prpack_result {
public:
// instance variables
int num_vs;
int num_es;
double* x;
double read_time;
double ... |
e0f7f78b0d7c5a29b79aff6aefb5ac84d6ba99837f7c879ff43a69cdf768f8ab | C/C++ | 595 | 20 | //---------------------------------------------------------------------------
#ifndef _MultiResolutionImageReader
#define _MultiResolutionImageReader
#include "multiresolutionimageinterface_export.h"
#include <string>
class MultiResolutionImage;
class MULTIRESOLUTIONIMAGEINTERFACE_EXPORT MultiResolutionImageR... |
1cbdef43b0fd4e2cad88e5718c7736f8cae9fe170c0b399c1ad246d4289de6ba | C/C++ | 609 | 25 | #ifndef ANNOTATIONXMLSERVICE_H
#define ANNOTATIONXMLSERVICE_H
#include "annotation_export.h"
#include "Repository.h"
class Annotation;
class AnnotationGroup;
namespace pugi {
class xml_node;
}
class ANNOTATION_EXPORT XmlRepository : public Repository {
public:
XmlRepository(const std::shared_ptr<... |
e89c83e85fee59ba42d295c9eda0f07f4973dd797da305cfa975b72f91dc16c2 | C/C++ | 628 | 28 | /* Interface for controlling a multiplexer such as CD74HC4067 as an output
* -----------------------------------------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#ifndef MuxInterface_h
#define MuxInterface_h
#include "Arduino.h"
#include <ArduinoJson.h>
#include "ToggleInterface.... |
384e8aac2573017bdf4d213a52bb9c5f86f92ef3d253a08ce1d2172a912d53fc | C/C++ | 630 | 28 | #ifndef THMBCACHE
#define THMBCACHE
#include <QString>
#include <QImage>
#include <QFileInfo>
#include <QMutex>
#include <map>
class ThumbnailCache {
public:
ThumbnailCache(const QString& cacheFolder);
~ThumbnailCache();
bool addThumbnailToCache(const QString& imageFilePath, QImage thumbnail);
QIm... |
4e3edf37c69427f8425bf83170c23ae7f899efdbe49acd5d73b92403ee897137 | C/C++ | 644 | 34 | /* Abstract class for a hardware interface
* ---------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#ifndef Interface_h
#define Interface_h
#include "Arduino.h"
#include <ArduinoJson.h>
class Interface {
public:
Interface(const char* type, const char* name);
char* get_type... |
de0b3867e1fd79bd5970b58636691a3c5186623a5ac67dec5febd14c4fdf97bc | C/C++ | 648 | 38 | #ifndef PrefetchTHREAD_H
#define PrefetchTHREAD_H
#include <QThread>
#include <QMutex>
#include <QWaitCondition>
#include <QRect>
class MultiResolutionImage;
class PrefetchThread : public QThread
{
Q_OBJECT
public:
PrefetchThread(QObject *parent = 0);
~PrefetchThread();
public slots :
... |
302a573ff2337f577ba3dc855641e00b885138dd764365c68a768c2007e87ca8 | C/C++ | 655 | 28 | /* Interface for Dallas Temperature devices such as DS18B20
* --------------------------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#ifndef DallasTemperatureInterface_h
#define DallasTemperatureInterface_h
#include <OneWire.h>
#include <DallasTemperature.h>
#include "send.h"
#inc... |
5b68071427ed4a994b90dd5934ec1f6f76c3beb69f90886f87207e9328df6249 | C/C++ | 660 | 31 | #ifndef ANNOTATIONSERVICE_H
#define ANNOTATIONSERVICE_H
#include <vector>
#include <string>
#include <memory>
#include "annotation_export.h"
class AnnotationList;
class Repository;
class ANNOTATION_EXPORT AnnotationService {
public:
AnnotationService();
~AnnotationService();
std::shared_ptr<Annota... |
bf9953d89b26316bbecad3e3e86840ed19903f1a225b2e09b37c980cd0d25d8d | C/C++ | 660 | 32 | /* Interface for sending periodic pulses over a single digital pin
* ---------------------------------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#ifndef TriggerInterface_h
#define TriggerInterface_h
#include "Arduino.h"
#include <ArduinoJson.h>
#include "Interface.h"
#include "T... |
e5d9cea765b3170c4dbabf33b441234ec9f1349c4ae84395f855ab68e916ab93 | C/C++ | 665 | 28 | #define FMAX 40
#define EXPMAXDIGS 8
#define EXPMAX 99999999
/* FMAX = max number of nonzero digits passed to atof() */
/* EXPMAX = 10^EXPMAXDIGS - 1 = largest allowed exponent absolute value */
#ifdef V10 /* Research Tenth-Edition Unix */
#include "local.h"
#endif
/* MAXFRACDIGS and MAXINTDIGS are for wrt_F -- bound... |
d52414285852055985f37d844c198a0f662dfbd434965a1e728210e90634a7e8 | C/C++ | 697 | 34 | #ifndef PROGRESSMONITOR_H
#define PROGRESSMONITOR_H
#include <string>
#include "core_export.h"
class CORE_EXPORT ProgressMonitor {
protected:
std::string _status;
unsigned int _progress;
unsigned int _maxProgress;
public:
ProgressMonitor();
virtual ~ProgressMonitor();
virtual void ... |
2753048a585e6f20ca8be37b855e2ee98eca08e84e1cba0c9d1953398746a91e | C/C++ | 703 | 22 | #ifndef _JPEG2000Codec
#define _JPEG2000Codec
#include "jpeg2kcodec_export.h"
namespace pathology {
enum class DataType;
enum class ColorType;
}
class JPEG2KCODEC_EXPORT JPEG2000Codec
{
public:
JPEG2000Codec();
~JPEG2000Codec();
void encode(char* data, unsigned int& size, const unsigned in... |
ec1d9066087cfa5b6d900b55d14dd6157834116b484b726b9cb36166a3b180b4 | C/C++ | 706 | 28 | #ifndef QTANNOTATIONGROUP_H
#define QTANNOTATIONGROUP_H
#include <string>
#include <vector>
#include <memory>
#include <QObject>
#include "annotationplugin_export.h"
class AnnotationGroup;
class ANNOTATIONPLUGIN_EXPORT QtAnnotationGroup : public QObject
{
Q_OBJECT
public:
QtAnnotationGroup(const... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.