sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
8582d7061aff35de496c93241f0a4ca7c65bd56da02926079278db3c5ae37ab9 | C++ | 1,976 | 63 | /*
igraph library.
Copyright (C) 2022-2023 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... |
852296843b0d2338d31fe4a92aa606586327b7367343ddc0e9853f1671fbd749 | C++ | 1,977 | 49 | // 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... |
3b0862d82e1edb5a21401def28e1dd4ca9896522ee292f7f502b8820336f7a1f | C++ | 1,979 | 63 | /*
igraph library.
Copyright (C) 2022-2024 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any late... |
c7192372daa2cd5e4c9a232013594cba4b0c82fb9c14fee54977af295eb07191 | C++ | 1,989 | 60 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
55ba81789f4137c133e835a03772e80f1cca5b30c5c01e763a8216b3b87347dd | C++ | 1,991 | 60 | /**********************************************************************************
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... |
6d7527dcb292336324ec6a86eadc28fd019e8d67691ed751d2308c4331b6764d | C++ | 2,009 | 59 | /**********************************************************************************
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... |
4d03e63739875ca4e4806ba47970655529449c7311d3decee2a938bde6504600 | C++ | 2,013 | 59 |
#include <cmath>
#include <cstdio>
#define CUTOFF 4 // Cutoff in standard deviations for evaluating the Gaussian exponent
extern "C" {
void peak_dist(
int nb, int nx, int ny, int nz, float *dist,
int *N_atom, float *pos,
float xyz_start[3], float xyz_step[3], float std
) {
i... |
643acdfc432bb3a005e959f2c303f8fb2eb30e5b6d9b5e081fbe10e5c292b52e | C++ | 2,029 | 77 |
#include <QToolBar>
#include <vector>
#include <WorkstationToolbar.h>
#include <qdebug.h>
using std::vector;
static const int NUMBER_OF_BUTTONS = 4;
static const int BUTTON_NAME_LENGTH = 15;
static const int INACTIVE_BUTTON_NAME_LENGTH = 24;
WorkstationToolbar::WorkstationToolbar()
{
this->initialize... |
e71e982d5930da59567a825b0120bc2c48a3523364274ccbee3587806b3fa0ca | C++ | 2,036 | 73 | /*
*
* Copyright (c) 2003
* 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)
*
*/
//
// This program extends config_info to print out regex library
// config... |
65575d6a9c4cd5190d0682a0d9c478fde0a31fc8908dc23e6017e2c2002fdaa8 | C++ | 2,045 | 63 | #include <igraph.h>
#include <Infomap.h>
#include <Infomap-igraph-interface.h>
#include <iostream>
void printClusters(infomap::HierarchicalNetwork& tree)
{
std::cout << "\nClusters:\n#originalIndex clusterIndex:\n";
for (infomap::LeafIterator leafIt(&tree.getRootNode()); !leafIt.isEnd(); ++leafIt)
std::cout << l... |
20a5502c06788cc9f6920596e10c6fe27daddd8390ea460aa5caa615e969fe04 | C++ | 2,070 | 65 | #include "prpack_preprocessed_ge_graph.h"
#include <algorithm>
using namespace prpack;
using namespace std;
void prpack_preprocessed_ge_graph::initialize() {
matrix = NULL;
d = NULL;
}
void prpack_preprocessed_ge_graph::initialize_weighted(const prpack_base_graph* bg) {
// initialize d
fill(d, d + num... |
ec27cd37403b5cc35c92acd005f5e92ccd2e01923fac67139d14c845b8e81f67 | C++ | 2,084 | 82 | #include "HTTPConnection.h"
#include <stdexcept>
namespace ASAP
{
HTTPConnection::HTTPConnection(const std::wstring base_uri, const web::http::client::http_client_config& config) : m_client(base_uri, config)
{
// If the task throws an exception, assume the URL is incorrect
try
{
web::http::http_... |
ba7ab308b86f439c0497f67a35124825d53b789869366f1b5ccea1546e5efc46 | C++ | 2,152 | 62 | // Copyright Sascha Ochsenknecht 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#define BOOST_PROGRAM_OPTIONS_SOURCE
#include <boost/program_options/parsers.hpp>
#include <boost/tokenizer.hpp>
#include ... |
79da9844a0b3879b2931ed8603ed548856ad3dc3d5ff5e6fd83cd2fc64239025 | C++ | 2,157 | 75 | #include <string>
#include <vector>
#include <iostream>
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "imgproc/wholeslide/LabelStatisticsWholeSlideFilter.h"
#include "core/filetools.h"
#include "core/CmdLineProgres... |
f137b87ffcb83688c3558f688281974900d457ff8fcdf8b1efd09fe6799a8df9 | C++ | 2,161 | 65 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
28a91f902b8cd9557708369d397bca4d40e619a4a9739b3411c0d164c0d2eb79 | C++ | 2,166 | 112 | /* Abstract interface for a toggleable device
* ------------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#include "ToggleInterface.h"
#include "send.h"
ToggleInterface::ToggleInterface(const char* type, const char* name)
: Interface(type, name),
value(0),
periodic_on(0),... |
1f3c9ad3d1239d8fb648205d3927345c49366aa9f238dfa8b2e01fb855bffef7 | C++ | 2,167 | 74 | #include <string>
#include <vector>
#include <iostream>
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "imgproc/wholeslide/ConnectedComponentsWholeSlideFilter.h"
#include "core/filetools.h"
#include "core/CmdLinePro... |
dd1494f79264ce8efdc2d384eb96ceab42d1482704d0ea1248cdd650ea5ba8ea | C++ | 2,176 | 73 | #include <memory>
#include <string>
#include <vector>
#include <iostream>
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "imgproc/wholeslide/DistanceTransformWholeSlideFilter.h"
#include "core/filetools.h"
#include... |
66b1f111f5c7d510b56c90d99867478f5ef3f7c2f4b07baa342e26a05c1f9847 | C++ | 2,178 | 69 | /*
igraph library.
Copyright (C) 2021-2024 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any late... |
e1d52d8cd0afaaeb7dfacb729ec817db625e3cfe0f313e9592cc760d5f886021 | C++ | 2,198 | 66 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
15dc7b31743aa8e93e6f3e7526eba77ca97c7eb95d6b6fa32f755e97c6b339b5 | C++ | 2,203 | 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... |
c47ed22a2137c3b2bf2a695a45cc8d9cf029aabfc98d352c4c33a141f929b6e4 | C++ | 2,248 | 111 | #include "heap.hh"
#include <new>
#include <cassert>
/* 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 is part of bliss.
bliss is free software: you can... |
9c98b37f2b5b5b258e3d1a3bd0cfba9a30a9adb159111b0350fdd3abb0804228 | C++ | 2,260 | 65 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
272be8332f7902a271dbf2bce8418c93603cbdb5f87cb200a6caa17201c1253e | C++ | 2,264 | 77 | #include "WSITileGraphicsItemCache.h"
#include "WSITileGraphicsItem.h"
WSITileGraphicsItemCache::~WSITileGraphicsItemCache() {
clear();
}
void WSITileGraphicsItemCache::evict() {
// Identify least recently used key
std::map<keyType, std::pair<std::pair<WSITileGraphicsItem*, unsigned int>, keyTypeList:... |
db6d7b44e83ab685caaa619c78a48c2627b63ca472bc7215bb1a5bc2bed9e6b1 | C++ | 2,308 | 88 | // Copyright Sascha Ochsenknecht 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/program_options/cmdline.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/progr... |
f6a6cf2e38820b864dfbc61bb9c24cc6bd31bceccac599b21285e8635037dd24 | C++ | 2,321 | 79 | #include <string>
#include <vector>
#include <iostream>
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "imgproc/wholeslide/ArithmeticWholeSlideFilter.h"
#include "core/filetools.h"
#include "core/CmdLineProgressMoni... |
66a119cecc9e3a1efc2713160268fad6e64cba8d05210aba11e2bb4a2462a2e0 | C++ | 2,326 | 80 | #include <cstdio>
#include <cstring>
#include <cstdlib>
#define cimg_display 0
#include "CImg.h"
#include <ctime>
#include "utils.h"
#include "bilateral_filter_gpu.h"
#include "bilateral_filter_cpu.h"
#include "cstdio"
#include <sys/time.h>
#include <iostream>
int main(int argc, char **argv) {
if (argc < 4) {
... |
15e356570a58987a886409b4e724b7761f84809a01b825c5a11b639532c3b2b3 | C++ | 2,337 | 88 | #include "Box.h"
#include <algorithm>
Box::Box() :
_start(),
_size()
{
}
Box::Box(const unsigned long long& x, const unsigned long long& y, const unsigned long long& width, const unsigned long long& height) {
_start.resize(2);
_size.resize(2);
_start[0] = x;
_start[1] = y;
_size[0] = width... |
c8fff25f63b9d43bf839b3eb92d4bdf7d6b341826ee9c389d7600df941f558fc | C++ | 2,366 | 87 | #include "ScaleBar.h"
#include <QPainter>
#include <QSizePolicy>
ScaleBar::ScaleBar(float resolution, QWidget *parent)
: QWidget(parent),
_resolution(resolution),
_currentWidth(300)
{
QSizePolicy policy;
policy.setHeightForWidth(true);
policy.setHorizontalPolicy(QSizePolicy::Fixed);
pol... |
bb77db4b80712cdb08ffc1190236a2fde1e52cd5f9d215dbef120c21410e15a2 | C++ | 2,382 | 67 | /**
* 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... |
1c1070cbb42a4a33f901067d9a0e16c462fccf63cf8ea12c239e58213094bd99 | C++ | 2,395 | 90 | /*
* BSD 3-Clause License
*
* Copyright (c) 2016-2021, UniFrac development team.
* All rights reserved.
*
* See LICENSE file for more details
*/
#include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <vector>
#include "assay.h"
#include <Rcpp.h>
using namespace su;
Assay::Assay(const Rcpp::NumericMatri... |
7b0be8e1d06775678be1235d3ae3f1dee3a5f3dd9e2cd2ff0e842e4cad42107e | C++ | 2,445 | 80 | #include "prpack_preprocessed_gs_graph.h"
#include <algorithm>
using namespace prpack;
using namespace std;
void prpack_preprocessed_gs_graph::initialize() {
heads = NULL;
tails = NULL;
vals = NULL;
ii = NULL;
d = NULL;
num_outlinks = NULL;
}
void prpack_preprocessed_gs_graph::initialize_weigh... |
1fb1c4d5aa48559e5e490d3a2f097c8528654325f5c4f7c1c5920b7d6b134a07 | C++ | 2,451 | 98 | // Copyright Sascha Ochsenknecht 2009.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/program_options.hpp>
using namespace boost::program_options;
#include <string>
#include <iostream>
#include... |
52b64a6e34db6e87bf9bdd5bf5f141013480e2c670149449c32b92ebe2627cbd | C++ | 2,476 | 78 | #include "ThumbnailCache.h"
#include <QDir>
#include <QCryptographicHash>
#include <QFileInfoList>
#include <QFile>
#include <QDateTime>
const unsigned int ThumbnailCache::_maxCachedFiles = 1000;
ThumbnailCache::ThumbnailCache(const QString& cacheFolder) : _cacheFolder(cacheFolder + "/thumbnails"), _nrCached... |
0fc21a4ee913009e75f57036ed3f7d47b8637088bc08b7268f595a4d5c780246 | C++ | 2,524 | 86 | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/program_options.hpp>
using namespace boost;
namespace po = boost::program_options;
#include <iostream>
#inc... |
b7b09af6c0acd63693e9499024ef0503d17c37cabbc064d8c6fb070e4d0b4907 | C++ | 2,547 | 78 | #include "OpenJP2Image.h"
#include "core/PathologyEnums.h"
#include <boost/thread.hpp>
#include "JPEG2000Codec.h"
using namespace pathology;
OpenJP2Image::OpenJP2Image() : MultiResolutionImage(), _stream(NULL) {
}
OpenJP2Image::~OpenJP2Image() {
boost::unique_lock<boost::shared_mutex> l(*_openCloseMutex... |
e2ca04b2c631e8882f788779316cb28d11eafdb4bb169daca493c2582f6cdc84 | C++ | 2,550 | 61 | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(... |
02d8406d1bf9e4d26c2255f3677eba3d285484c10acd07f82e0567fc891286ae | C++ | 2,556 | 97 | #include "TemporaryDirectoryTracker.h"
#include <map>
#include <stdexcept>
namespace ASAP
{
TemporaryDirectoryTracker::TemporaryDirectoryTracker(const fs::path directory, const TemporaryDirectoryConfiguration configuration) : m_configuration(configuration), m_continue(true), m_directory(directory)
{
if... |
1b95d73453fd4037a6f2b3c0d29f48420e4be7f7305298f34ea4a20d8b5fb6f5 | C++ | 2,638 | 127 | #include "log.hh"
string Logger::_log_fname = "mmsb.log";
string Logger::_prefix = "";
FILE *Logger::_logfd = 0;
bool Logger::_initialized = false;
Logger::Level Logger::_level = DEBUG;
int
Logger::initialize(string prefix, string name, bool force,
Level level)
{
if (!_initialized) {
_prefix = prefix;
... |
42bf8756a27ccf3fa9be00ae2f969e524aa761ebfc28dafa6259b2e96e7d64b7 | C++ | 2,677 | 101 | #include "ExternalSourceDialog.h"
#include <QLabel>
#include <QPushButton>
#include <QDialogButtonBox>
#include <QLineEdit>
#include <QGridLayout>
#include <QCheckBox>
namespace ASAP
{
ExternalSourceDialog::ExternalSourceDialog(QWidget* parent) : QDialog(parent), m_valid(false)
{
setWindowTitle(tr("O... |
bc25660fad4fa54fe28a716d7e697cb5d0a2ec8efd20595a0569fc4c35c99496 | C++ | 2,693 | 116 | #include "mmsborig.hh"
MMSBOrig::MMSBOrig(Env &env, Network &network)
:_env(env), _network(network),
_n(env.n), _k(env.k), _t(_env.t),
_gen_y(_n, _n), _gen_ones(0),
_alpha(_k), _eta(_k,_t),
_pi(_n,_k),
_beta(_k,_k), _gamma(_n,_k), _lambda(_k,_t),
_curr_id(0)
{
// random number generation
gsl_r... |
6eba45b440a264d3f058e32a1c6deb233208ef603e8733077059bc4a4e5046c0 | C++ | 2,762 | 121 | /* Interface for sending periodic pulses over a single digital pin
* ---------------------------------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#include "TriggerInterface.h"
#include "send.h"
unsigned long maxUnsignedLong = 0UL - 1UL;
TriggerInterface::TriggerInterface(JsonVar... |
9893f7e2ed329790c10ef01c9933bb3275fc810dca34cc2846424460f6ccf100 | C++ | 2,817 | 91 | // Copyright Vladimir Prus 2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/program_options/positional_options.hpp>
#include <boost/program_options/options_description.hpp>
#include <boost/p... |
f30c9c1fb5ca5313c7ee353c62f016bfd9ec2135f97838c65b4c3469a37a9b7f | C++ | 2,865 | 94 | /**********************************************************************************
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... |
571ce07bdd5b28b5b33653e1fa683fa10d1b80646d17f8547952b180bd7c278a | C++ | 2,883 | 93 | #include <string>
#include <vector>
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "imgproc/wholeslide/ThresholdWholeSlideFilter.h"
#include "core/filetools.h"
#include "core/CmdLineProgressMonitor.h"
#include "conf... |
53ee1501b1a5d85d60704f8a1cf4816ce81234e8fdf7c06d8a69603f7500b5d5 | C++ | 2,896 | 90 | #include <fstream>
#include <sstream>
#include <stdexcept>
#include <algorithm>
#include <iterator>
#include "survival_forest_data.h"
#include "survival_forest_utility.h"
namespace ranger {
Data::Data() :
num_rows(0), num_rows_rounded(0), num_cols(0), snp_data(0), num_cols_no_snp(0), externalData(true), inde... |
fc406fec81614229f24b629e09457ebe7a04df7952971366b4ee7cdbc43caafd | C++ | 2,904 | 87 | /*
* BSD 3-Clause License
*
* Copyright (c) 2016-2021, UniFrac development team.
* All rights reserved.
*
* See LICENSE file for more details
*/
#include <iostream>
#include <vector>
#include <Rcpp.h>
#include "assay.h"
#include "tree.h"
#include "propmap.h"
#include "stripemap.h"
#include "unifrac.h"
// Ca... |
6aa4592dbbec7fab349378dfe29ea7b43fa0a43432a8eb9bc756d195b8ee277e | C++ | 2,939 | 108 | #include "CompositeWindow.h"
#include <QDebug>
#include <qshortcut.h>
namespace ASAP
{
CompositeWindow::CompositeWindow(QWidget* parent) : QMainWindow(parent), m_ui_(new Ui::CompositeWindowLayout), m_current_child_(-1)
{
m_ui_->setupUi(this);
m_settings = new QSettings(QSettings::IniFormat, QSettings::U... |
a252667f571b6f53d960ef9ba88eb4b498e0974c63340f2882b1b69d7203a527 | C++ | 2,949 | 101 | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
// This example shows how a user-defined class can be parsed using
// specific mechanism -- not the iostream operations used ... |
504d18c9ec1dd15a225a1bc4136be143d8e614e6fd89f640989de73290cee14a | C++ | 2,971 | 84 | #include <Rcpp.h>
using namespace Rcpp;
// Helper for difference
void calculate_difference(
const NumericMatrix& mat, int i, int j, int k, int pair_idx,
std::vector<int>& i_vec, std::vector<int>& j_vec,
std::vector<double>& x_vec) {
double diff = mat(k, i) - mat(k, j);
if( diff != 0.0 )... |
452e5d6247d78373d0d5f345bc2e94ab1dfaed032e8af71c713a16b8bc482207 | C++ | 3,008 | 94 | /*
* BSD 3-Clause License
*
* Copyright (c) 2016-2021, UniFrac development team.
* All rights reserved.
*
* See LICENSE file for more details
*/
#include <iostream>
#include <vector>
#include <Rcpp.h>
#include "assay.h"
#include "tree.h"
#include "propmap.h"
// Calculate Faith's PD
//
// This function calculates Fa... |
f98389fabcd7473bdfc781588e62abaca543cb98e5833c012538d1dac6f35112 | C++ | 3,013 | 84 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
22c15c03129a9bd5b72cba67c1ea66b107cf1a2fb5765660a6f953ed1ad53a87 | C++ | 3,057 | 65 | /* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... |
12f3c433a55df566a9e0a30b7a37db1895d261955f7480ef88bedc93054a30cd | C++ | 3,058 | 121 | /**********************************************************************************
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... |
e0ed6eaa835f284a3b6171776712e358428beffa14560e6b5c1667298e244e8c | C++ | 3,066 | 97 | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
/** This example shows how to handle options groups.
For a test, run:
option_groups --help
option_groups --num-... |
1746d8daeacca576aea6746227e2799d2ce0993d1d39d65b98188a8737fcaccc | C++ | 3,083 | 151 | #include <cassert>
#include "orbit.hh"
/*
Copyright (c) 2003-2021 Tommi Junttila
Released under the GNU Lesser General Public License version 3.
This file is part of bliss.
bliss is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published... |
7c073c25a7862fec70268711c318631bda7d9b74c777e1d9a86237a0d2537c21 | C++ | 3,100 | 102 | /**
* 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... |
c5e28699e1260fe17d259b3a08190d8b85ad98188f79d504fbd4757bd54a098f | C++ | 3,107 | 111 | #include "PrefetchThread.h"
#include <QPixmap>
#include <QElapsedTimer>
#include <QDebug>
#include "multiresolutionimageinterface/MultiResolutionImage.h"
PrefetchThread::PrefetchThread(QObject *parent) :
QThread(parent),
_restart(false),
_abort(false),
_FOV(QRectF()),
_level(0),
_img(NULL)... |
1a9fad6a81d3b185a0eac46cc6274823824ff9d76b7974264f7897bdcefa3a2d | C++ | 3,109 | 94 | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
/** This example shows how to handle response file.
For a test, build and run:
response_file -I foo @response_fil... |
b7f8bbbfe070a95e74b035419bc0f830cacf7cdacd1db8068f3c380166f5a89f | C++ | 3,114 | 117 | /*
*
* 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.
... |
d6c5b33aa1702f8df576f6fe5c0afb56bfe38c22ff91ddd114f523ca0d6f2ea5 | C++ | 3,125 | 100 | /*
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... |
7a8d492056a3285af58fc1be05f9407c46043ee90c5327c09b1769ed9b354920 | C++ | 3,128 | 96 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
6b3385e5c517d132bde6e53d11cdb5a03f8305ef2d4267691298e4131f2ebf04 | C++ | 3,134 | 80 | /*
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 ... |
bb041f84b04265e63f0c20434f190661b14a21591ed5bb2b9d03fe71ee995927 | C++ | 3,166 | 95 | /**
* 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... |
e90e950ea884207dd6911ab5d78445a796daf4e8ba196bf3866283e412888d14 | C++ | 3,240 | 119 | #pragma hdrstop
#include "stringconversion.h"
#include <codecvt>
#include <regex>
namespace core {
std::wstring stringToWideString(const std::string& string)
{
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> converter;
return converter.from_bytes(string);
}
std::vector<std::wstring> ... |
e02d878f5d85819b0543071519951aecbea5b6ed5d96d2ace3e4f0dec51c4b80 | C++ | 3,274 | 125 | /**********************************************************************************
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... |
d3a60a2da55c7004915ee07c3e470b092de8c420a1b4afae0c22ca1849bf4723 | C++ | 3,360 | 91 | // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
bbc66b1ce012b21992feafa453e750f5adbf316277d401b2d9cffd9989bda9b5 | C++ | 3,366 | 96 | #include "NDPARepository.h"
#include "Annotation.h"
#include "AnnotationGroup.h"
#include "AnnotationList.h"
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "core/Point.h"
#include "core/stringconversion.h"
#include "... |
beddba31ae7cb70c69a5faaa6053027a480f4723fa0c61d21a1b1c054a02fd1f | C++ | 3,373 | 100 | #include "DirectorySource.h"
#include "multiresolutionimageinterface/MultiResolutionImageFactory.h"
namespace ASAP
{
DirectorySource::DirectorySource(const std::string directory_path) : m_images(getImageFilelist(directory_path))
{
}
WorklistSourceInterface::SourceType DirectorySource::getSourceType(voi... |
c6f276a54428d43144047d5d937d67014d478849a0447132812e526f9c8a47ac | C++ | 3,380 | 104 | #include "LabelStatisticsWholeSlideFilter.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "multiresolutionimageinterface/MultiResolutionImageWriter.h"
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "core/PathologyEnums.h"
#include "core/filetools.h"
#inc... |
0c792926019f0d02019bbbe65ec401a53210d5e05101909da05607a22dbfea01 | C++ | 3,409 | 95 | // 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... |
a87fa04861f2cb2b30f22add6ce1562dc0e13e80e2485044f497ec583d86b1b5 | C++ | 3,459 | 102 | #include "relabel_cpu.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 bipartite) {
AT_ASSE... |
0f54688ee2745855ed1c8f2cc3542cfc116263054682650aa96d01fa5990aac8 | C++ | 3,494 | 140 | /* Interface for controlling a multiplexer such as CD74HC4067 as an output
* -----------------------------------------------------------------------
* @author Tal Eisenberg <eisental@gmail.com>
*/
#include "MuxInterface.h"
#include "send.h"
MuxInterface::MuxInterface(JsonVariant conf)
: ToggleInterface("mux", st... |
6e911062e34e16e00cfcd98ad8c128986709c9d29f1284f89bc1f153abdcc12d | C++ | 3,544 | 112 | #include "FilelistSource.h"
#include <functional>
#include <fstream>
#include <stdexcept>
#include <filesystem>
#include "multiresolutionimageinterface/MultiResolutionImageFactory.h"
namespace ASAP
{
FilelistSource::FilelistSource(const std::string filepath) : m_images(getImageFilelist(filepath))
{
}... |
a3736bd7744f9cc21c427dce4ec413006cb42c01b9ad74101051fbf4c10ede18 | C++ | 3,546 | 96 | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/program_options.hpp>
using namespace boost::program_options;
#include <iostream>
using namespace std;
/* A... |
f72d1b1c2167b0f0d2788b30b139365548956344b22bbce7b1a344af9899696d | C++ | 3,583 | 121 | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
/* Shows how to use both command line and config file. */
#include <boost/program_options.hpp>
namespace po = boost::program... |
e041fe82824749b8ac30a5e87a033e95ac9ebc42435224c8c6d518357581e857 | C++ | 3,612 | 107 | /*
igraph library.
Copyright (C) 2024 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ver... |
5107077178f84671d525ede22ea32fae365b5ab23d79c64f0f179831d85e8853 | C++ | 3,678 | 140 | /*
*
* 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... |
740d3a35c6733e1e08b7c3fedcf3632dfda8a4d73f68f126211d715676faa56b | C++ | 3,687 | 179 | /*
*
* 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.
... |
51d27c157dab5fffc23584c4f3058c641b32b8930e8d6ce0755a467d23d6b856 | C++ | 3,689 | 141 | #include "IOThread.h"
#include "IOWorker.h"
#include <limits>
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "interfaces/interfaces.h"
#include "WSITileGraphicsItem.h"
using namespace pathology;
IOThread::IOThread(QObject *parent, unsigned int nrThreads) :
QObject(parent),
... |
f97ece906b4eb3c17d327de915bfc1908a4b34204a8acacd576cfe9f3f5cb84f | C++ | 3,729 | 182 | /**********************************************************************************
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... |
03b97b38a8f10ea0c474813e70d302213012769142a72512392b3cdc261dd984 | C++ | 3,731 | 110 | #include "ArithmeticWholeSlideFilter.h"
#include "multiresolutionimageinterface/MultiResolutionImage.h"
#include "multiresolutionimageinterface/MultiResolutionImageWriter.h"
#include "multiresolutionimageinterface/MultiResolutionImageReader.h"
#include "core/PathologyEnums.h"
#include "core/filetools.h"
#include ... |
fe76a1adf731885616e050b48101bae612575de78352d6e228bdf3bd0d076fd9 | C++ | 3,742 | 131 | /**********************************************************************************
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... |
f09b1ae3c63af710d64a29ce499abb2a7d29bddf16eaaae289f46b44da8425d3 | C++ | 3,788 | 119 | #include "AnnotationGroup.h"
#include <iostream>
#include <limits>
AnnotationGroup::AnnotationGroup() :
AnnotationBase(),
_attributes()
{
}
AnnotationGroup::~AnnotationGroup() {
}
std::vector<Point> AnnotationGroup::getImageBoundingBox() const {
std::vector<Point> bbox;
Point topLeft(std::nume... |
5e235e64b7aabd351dcbc731b4bb50c4d5baa8a9ab93b1bc77512b54afffcbae | C++ | 3,839 | 109 | #include "PolyAnnotationTool.h"
#include "QtAnnotation.h"
#include "AnnotationWorkstationExtensionPlugin.h"
#include <QAction>
#include <QPen>
#include <QGraphicsLineItem>
#include <QApplication>
#include <QStyleHints>
#include <QGraphicsItem>
#include "PolyQtAnnotation.h"
#include "annotation/Annotation.h"
... |
241c80788b6d76492a268948b72b851ff5c5c9f9236e651ff05e7e93b5e5f2e1 | C++ | 3,858 | 107 | /*
igraph library.
Copyright (C) 2021-2024 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any late... |
4e1f81ffa3db76daf2735c07b6f6f55bf8419f165c72b44b073c16914cd36606 | C++ | 3,868 | 116 | /*
igraph library.
Copyright (C) 2024 The igraph development team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later ver... |
79ac1fe8aa13395dcbbe03c341e1f553d1b92208c2b070f7e8a0aa833ef5a8c5 | C++ | 3,884 | 102 | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#define BOOST_PROGRAM_OPTIONS_SOURCE
#include <boost/program_options/parsers.hpp>
#include <cctype>
using std::size_t;
#ifd... |
76c7d206aabe8d4e1ee71efa1c4973081749af6281047c286f2e1be83b9b24e8 | C++ | 3,956 | 97 | #include "PointSetQtAnnotation.h"
#include "annotation/Annotation.h"
#include <QPainter>
#include <QPainterPath>
#include <QPainterPathStroker>
#include <QStyleOptionGraphicsItem>
#include <iostream>
#include <cmath>
PointSetQtAnnotation::PointSetQtAnnotation(const std::shared_ptr<Annotation>& annotation, QOb... |
24cd99b7f50d9561d9c1348d72d160f8e54346c492d20863799de77147ab5364 | C++ | 3,974 | 123 | /**
* 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... |
3bd9d75c3381e7ec52be5f778d7c9dc0a716269096e6fe502bf9528c349e9c71 | C++ | 3,978 | 101 | /*
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 ... |
09bc9e590669ae495d26a01c1c5dd3b81e88bf92c2dea3bb81073d4bb08ebe58 | C++ | 3,982 | 133 | /*
* BSD 3-Clause License
*
* Copyright (c) 2016-2021, UniFrac development team.
* All rights reserved.
*
* See LICENSE file for more details
*/
#include "tree.h"
#include "assay.h"
#include "propmap.h"
#include <Rcpp.h>
using namespace su;
PropMap::PropMap(uint32_t vecsize)
: prop_map()
, defaultsize(vecsi... |
3d2936b7621647e07b6edb35f226aaa085f9771cf296ed46fdc94e75d1bef38d | C++ | 4,101 | 146 | // Copyright Vladimir Prus 2002-2004.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <cstring>
#include <cassert>
#include <string>
#include <fstream>
#include <sstream>
#include <iostream>
#include <b... |
645122219fdeb52759a5fb2b244733d50cdfc0d3b12ffc8d70e8d996309a2ab4 | C++ | 4,108 | 120 | #include "prpack_preprocessed_schur_graph.h"
#include <algorithm>
#include <cstring>
using namespace prpack;
using namespace std;
void prpack_preprocessed_schur_graph::initialize() {
heads = NULL;
tails = NULL;
vals = NULL;
ii = NULL;
d = NULL;
num_outlinks = NULL;
encoding = NULL;
deco... |
db0a0c7c6d76fa3a84b6d629e3c03f840b14e3e37754a0ec2e84138ba4d672ef | C++ | 4,233 | 111 |
// Written by Szabolcs Horvát <szhorvat@gmail.com>
// This program demonstrates how to verify that a stochastic graph generator
// samples *uniformly*. We generate random graphs with some method, convert them
// to their adjacency matrices, and count how many times each matrix occurs.
// The frequencies should be the... |
699b61661bba14d8b3ebd92c240cfcd486eefed5466f77bfd2d772dd53f2b571 | C++ | 4,238 | 152 | #include "AnnotationList.h"
#include "Annotation.h"
#include "AnnotationGroup.h"
AnnotationList::AnnotationList() {
}
AnnotationList::~AnnotationList() {
removeAllAnnotations();
removeAllGroups();
}
bool AnnotationList::isModified() {
for (std::vector<std::shared_ptr<Annotation> >::iterator it = _... |
b32e0a2955f64d9c65685fb0c526f39c4d4709dff29bee263c5f13f3e3f95e57 | C++ | 4,281 | 123 | #include "FRST.h"
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
FRST::FRST() :
_S(NULL),
_transform(OrientationAndMagnitude),
_symmetry(DarkAndLight)
{
_S = new Mat();
}
FRST::~FRST() {
if (_S) {
de... |
52f513d2bb256d2275ea7d5b9218dc0e7f03d51af5ce56423ef6eb32d2acf67a | C++ | 4,287 | 129 | #include "MiniMap.h"
#include <QPixmap>
#include <QPainter>
#include <QSizePolicy>
#include <QMouseEvent>
#include <QPainterPath>
#include "TileManager.h"
const char* const MiniMap::coverageColors[] = { "red", "green", "yellow", "black", "purple", "orange" };
MiniMap::MiniMap(const QPixmap& overview, QW... |
861111f6998f64a3216ebde19baf1e9d969e203bd3c1c321c4d8ef8ddf06f3be | C++ | 4,310 | 128 | // Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
b8890b5efa48d413ff2b8e9c12e2297b624db3130942af541827819a18b9ce06 | C++ | 4,318 | 141 | /*
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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.