sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
22555ac4a2ab1dcfbf84df5eca2a4a3b68c9c9785181ed3e6adfb4c07a48a40f | C++ | 4,363 | 91 | ///-------------------------------------------------------------------------------------------------
///
/// \file main.cpp
/// \brief Main file for riemannian plugin, registering the boxes to OpenViBE
/// \author Thibaut Monseigne (Inria).
/// \version 1.0.
/// \copyright Copyright (C) 2022 Inria
///
/// This program... |
af127ad247165194ee1989d2255b7a7f38d1d7e77cfcb0cad8e4c9e31687419d | C++ | 4,372 | 105 | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================
*/
#include "binary_report_handler.hpp"
#ifdef ENABLE_BIN_RE... |
ca459d6b4edb5b3b6acf0208b2a5ba728e221b2d8a9c9839595e4f0fccc55506 | C++ | 4,381 | 110 | ///-------------------------------------------------------------------------------------------------
///
/// \file ovasCConfigurationShimmerGSR.cpp
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Publi... |
fcebb60f28837b2fd97855ed41c216c8b1e9f51def8981f55129f54a9302c9f2 | C++ | 4,382 | 138 | ///-----------------------------------------------
// Copyright 2009 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// RankProcess - Compute a vector of BWT ranks for
// SequenceWorkItems
//
#include "RankPro... |
3dc6b8a038c559766e072ae140b1dcaf6c5fa124c144c2b287b91b36d723a85a | C++ | 4,383 | 126 | ///-------------------------------------------------------------------------------------------------
///
/// \file CRendererBitmap.cpp
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Public License as ... |
8fac0c99e5f3b75e19f1c311c49ee07e4d2f59990eecff06606e1aae9fd177c8 | C++ | 4,392 | 88 | ///-------------------------------------------------------------------------------------------------
///
/// \file Geodesic.cpp
/// \brief All functions implementation to estimate the Geodesic position of two Covariance Matrix.
/// \author Thibaut Monseigne (Inria).
/// \version 1.0.
/// \date 26/10/2018.
/// \copyrig... |
71938bf130f686229ffd015e1b3f5473ed37787e2a125e8ed42e7e4dc852fede | C++ | 4,405 | 110 | /* SvABA - Somatic Structural Variation Dectection
* Copyright 2014 Broad Institute
* Written by Jeremiah Wala (jeremiah.wala@gmail.com)
* Released under the included license detailed below.
*
* SvABA incorportes the core of String Graph Assembler,
* -- String Graph Assembler -- Copyright 2009 Wellcome Trust Sa... |
c7766b6b73b5a1604477f4b5f507abc5b017f3a0bb4717182e41974d6b161b7e | C++ | 4,409 | 99 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxStimulationConverter.cpp
/// \author Thibaut Monseigne (Inria).
/// \brief Classes implementation for the box Stimulation Converter.
/// \version 1.0.
/// \date 14/10/2020.
/// \copyright Copyright (C... |
80f04c1a25914780d476bad279abd237ae6623d3103b2312f1effd8332ce0db2 | C++ | 4,422 | 125 | #include "ovpCBoxAlgorithmElectrodeLocalizationFileReader.h"
#include "../algorithms/ovpCAlgorithmOVMatrixFileReader.h"
namespace OpenViBE {
namespace Plugins {
namespace FileIO {
uint64_t CBoxAlgorithmElectrodeLocalisationFileReader::getClockFrequency() { return uint64_t(1LL) << 32; }
bool CBoxAlgorithmElectrodeLo... |
7cbf57237325f56c4faea3fb44691c7bec1c88b3f5f304e0d6f653967dc9b03d | C++ | 4,434 | 111 | #include <hex/api/content_registry/data_information.hpp>
#include <imgui.h>
#include <hex/api/task_manager.hpp>
#include <hex/helpers/default_paths.hpp>
#include <hex/ui/imgui_imhex_extensions.h>
#include <content/yara_rule.hpp>
#include <romfs/romfs.hpp>
#include <wolv/io/file.hpp>
#include <set>
#include <fonts/vs... |
dca83193b1ad79a2c7da587911d31456f47d2d04438a201be4a9b5591eb8c7ff | C++ | 4,439 | 109 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmChannelRename.cpp
/// \brief Classes implementation for the Box Channel Rename.
/// \author Yann Renard (Inria).
/// \version 1.1.
/// \copyright Copyright (C) 2022 Inria
///
/// This program... |
a05b969f38f9d7b13141bbc2752a0ef6942b58d7a95315c2aa11dc6f41df57f3 | C++ | 4,463 | 122 | /*****************************************************************************
BlockedIntervals.h
(c) 2009 - Aaron Quinlan
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
aaronquinlan@gmail.com
Licensed under the GNU General Public License 2.0 license.
**********... |
faf2f9b8669e065e50094b018a059afa1449e18e1638399a8f37376defb15b33 | C++ | 4,465 | 132 | #include "ovpCBoxAlgorithmERSPAverage.h"
namespace OpenViBE {
namespace Plugins {
namespace SignalProcessing {
bool CBoxAlgorithmERSPAverage::initialize()
{
m_epochingStim = FSettingValueAutoCast(*this->getBoxAlgorithmContext(), 0);
m_computeStim = FSettingValueAutoCast(*this->getBoxAlgorithmContext(), 1);
... |
632bcbd22f5f7efb7e2b7c1454122a9f917fba1a504cb723c61c6fc69529fd2a | C++ | 4,466 | 129 | #include "ebml/IWriterHelper.h"
#include "ebml/IWriter.h"
#include <cstdlib>
#include <cstring>
namespace EBML {
namespace {
class CWriterHelper final : public IWriterHelper
{
public:
CWriterHelper() { }
bool connect(IWriter* writer) override;
bool disconnect() override;
bool openChild(const CIdentif... |
96612c5cbc4539f3de5e2c9fa1b5557750a10fab5ae2cccb8591d653e11b99ea | C++ | 4,468 | 173 | /**
* SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "TcpTaggingService.h"
#include "TagProtocolHandler.h"
#include <CNetwork.h>
#include <CServer.h>
#include <system/ovCTime.h>
#include <cstring>
#include <iostream>
#include <mutex>
#include <queue>... |
5ef3425dfa7bc0d28613c222addff882a7f907068adf2dbeb4e867977fd6caeb | C++ | 4,470 | 122 | #include "content/popups/hex_editor/popup_hex_editor_goto.hpp"
#include "content/views/view_hex_editor.hpp"
#include <hex/api/content_registry/settings.hpp>
#include <hex/api/content_registry/user_interface.hpp>
#include <content/differing_byte_searcher.hpp>
#include <toasts/toast_notification.hpp>
#include <fonts/... |
891f83b6d2a1c9c2bfdd6f5bded6919114de848f15c00623e5d2d4a99a46d220 | C++ | 4,485 | 153 | #include "SvabaRead.h"
#include <htslib/sam.h> // bam_get_seq, bam_seqi
svabaRead::svabaRead() = default;
void svabaRead::AddR2C(const std::string& contig_name, const r2c& r) {
auto it = m_r2c.find(contig_name);
if(it != m_r2c.end())
it->second = r;
else
m_r2c.insert({contig_name, r});
// add a... |
cac173476385663832fcc18cf55fda36766828a240f72432e6a597d3a129e192 | C++ | 4,490 | 102 | #include "ovpCSpectrumDecoder.h"
namespace OpenViBE {
namespace Plugins {
namespace StreamCodecs {
// ________________________________________________________________________________________________________________
//
bool CSpectrumDecoder::initialize()
{
CStreamedMatrixDecoder::initialize();
op_frequencyAbs... |
c563905cd6fd9f0c3ef586b1c8a737dae0c98bf9b60b14098c26a8310bd13409 | C++ | 4,491 | 172 | #include <stdio.h>
#include "smatch.h"
#include <iostream>
class supermatch
{
private:
smatch<double>* sm_;
int reference_size;
scitbx::af::shared< vec3<double> > reference_array;
scitbx::af::shared< vec3<double> > results;
///** @brief helper function that converts vec... |
7afdd65384b08bdfa67dda5485b2db9a0ec623f9a7b16714e5e1890c4cf32632 | C++ | 4,498 | 135 | #include <gtest/gtest.h>
#include "ISplineTRRRegressor.h"
#include "IsotonicPEP.h" // Your header file with IsplineRegression
class IsplineRegressionTest : public ::testing::Test {
protected:
ISplineTRRRegressor model;
void SetUp() override {
model = ISplineTRRRegressor(); // default degree=2
}
};... |
260a8d54c5e155ecb118291370a371a6b786cb193385ab4b46c35bf138e369a6 | C++ | 4,503 | 175 | #include "BamSplitter.h"
#include "htslib/khash.h"
#define PRINT_MOD 200000
void BamSplitter::splitBam() {
assert(m_writers.size() == m_frac.size());
std::vector<double> csum;
double cs = 0;
for (auto& i : m_frac) {
cs += i;
csum.push_back(cs);
}
SeqLib::BamRecord r;
std::cerr << "**Sta... |
d818ba8cbad9ea1e5fdd5fdfb0a97e06eb9b941e004aa5b7152ae2a0465787e4 | C++ | 4,511 | 116 | ///-------------------------------------------------------------------------------------------------
///
/// \file CEnumerationSettingView.cpp
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Public Lic... |
84962efd14de0b265b29b11cc792b03b94322089e0c30015a0e79babf57461cc | C++ | 4,521 | 116 | #include "Processor.h"
#include <iostream>
#include <fstream>
#include <chrono>
#include <ctime>
#include <fs/Files.h>
#include <system/ovCMath.h>
#include <thread>
namespace OpenViBE {
namespace Tracker {
void playerLaunch(const char* xmlFile, const char* args, bool playFast, bool noGUI, uint32_t identifier)
{
... |
f493793abb5991d8a2b688ebac01411e3d7852c2bf8e3f5bbaa2e2042382e1ac | C++ | 4,522 | 144 | #include <fonts/vscode_icons.hpp>
#include <hex/plugin.hpp>
#include <hex/api/content_registry/user_interface.hpp>
#include <hex/api/task_manager.hpp>
#include <hex/api/localization_manager.hpp>
#include <hex/helpers/logger.hpp>
#include <hex/helpers/menu_items.hpp>
#include <hex/ui/imgui_imhex_extensions.h>
#include... |
e2b2ee150254e5bd670e6fb5fe873bbab9d205cc8a44e5f7028ac98586c73195 | C++ | 4,524 | 151 | #include "ovCMessagingServer.h"
#include "ovCMessagingImpl.hpp"
#include <chrono>
namespace Communication {
MessagingServer::~MessagingServer()
{
this->close();
m_Server->release();
}
bool MessagingServer::accept()
{
this->reset();
if (this->isConnected())
{
// A connection is already d... |
16a4781043f3b5edfdfbc6ae8f2019049aaf2e904df0d8760c1abc6231bf3f85 | C++ | 4,538 | 86 | ///-------------------------------------------------------------------------------------------------
///
/// \file main.cpp
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Public License as published
/... |
cec16d0ef5e3dad251cdfa894d5156250cc3af8b9134ffd11954b1b36692091e | C++ | 4,551 | 106 | #include "CAlgorithmGlobalDefinesGen.hpp"
#include <iostream>
#include <functional>
namespace OpenViBE {
namespace PluginInspector {
CAlgorithmGlobalDefinesGen::CAlgorithmGlobalDefinesGen(const Kernel::IKernelContext& ctx, const std::string& filename)
: CPluginObjectDescEnum(ctx)
{
m_usedIDs.clear();
co... |
fd5914c8a3ab7c4b5f492356c2ede1ec6a5d5804ededb829981c6c4724028ffa | C++ | 4,554 | 141 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include <algorithm>
#include "parameters/parameterListString.h"
#include "parameters/parameterFactory.h"
namespace OpenViBE {
namespace Parameters {
ParameterListString::ParameterListString(void) : ParameterBas... |
4f3d416b6fad45043f017ce90df052908455814d8d2834e0ab503f0091aab724 | C++ | 4,568 | 125 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmTimeout.cpp
/// \brief Classes implementation for the Box Timeout.
/// \author Jozef Legeny (Inria).
/// \version 1.1.
/// \date 21/03/2013
/// \copyright Copyright (C) 2022 Inria
///
/// Thi... |
41dbe5ab35e185ea6dc90bc16bedd5c65bac7cd5785d680d3007023c4f3269b0 | C++ | 4,570 | 127 | #include "ovpCBoxAlgorithmGenericStreamWriter.h"
#include <fs/Files.h>
namespace OpenViBE {
namespace Plugins {
namespace FileIO {
CBoxAlgorithmGenericStreamWriter::CBoxAlgorithmGenericStreamWriter() : m_writer(*this) {}
bool CBoxAlgorithmGenericStreamWriter::initialize()
{
m_filename = FSettingValu... |
59d430e26ced6be17d2cfaef2bddc5606b154976242b7e82703d0a6eb4ead2fd | C++ | 4,578 | 136 | #include "ovasCDriverGenericOscillator.h"
#include "toolkit/ovtk_stimulations.h"
#include <cmath>
CDriverGenericOscillator::CDriverGenericOscillator()
: m_paramSendPeriodicStimulations("SendPeriodicStimulations", "Send periodic stimulations", false),
m_paramStimulationInterval("StimulationInterval", "Stim... |
e34e832eced6c48119e1b0962657546228b2368a7a9f2a06f8b9f11180541f89 | C++ | 4,586 | 206 | /*****************************************************
*** adapted from crux/src/c/PeptideConstraint.cpp ***
*****************************************************/
/*************************************************************************//**
* \file PeptideConstraint.cpp
* \brief Object for holding the peptide co... |
ab6a6cfae7d6d76c93c322484b52f4a569baaf2283e7d73487c46d77da570d3e | C++ | 4,589 | 150 | #include "hex/providers/cached_provider.hpp"
#include <algorithm>
#include <optional>
namespace hex::prv {
CachedProvider::CachedProvider(size_t cacheBlockSize, size_t maxBlocks)
: m_cacheBlockSize(cacheBlockSize), m_maxBlocks(maxBlocks), m_cache(maxBlocks), m_cacheSlotMutexes(maxBlocks) {}
CachedPro... |
3380c166f8407bfa3d5c502619d05adecffa9a91525868c4e41b917d3b9df254 | C++ | 4,600 | 114 | /*
* Linearly superposes a simple phase-locked template around 300ms after OVTK_StimulationId_Target
*
* Fiddler can be used to debug P300 scenarios. Note that the same effect could be
* achieved with a box that tampers the signal after specific stimulation markers.
* It can also be used as an example of how to m... |
f9afdeedaaa01d018eb1e5a5d4166bd72139521235847044a212655587634283 | C++ | 4,619 | 96 | #include "ovasCConfigurationDriverSimulatedDeviator.h"
namespace OpenViBE {
namespace AcquisitionServer {
CConfigurationDriverSimulatedDeviator::CConfigurationDriverSimulatedDeviator(IDriverContext& ctx, const char* gtkBuilderFilename, bool& sendPeriodicStims,
... |
e6dcf27f0638fd20c42eda4c8dae814eefa802eebf61cc05ab9fa571c0a3161c | C++ | 4,635 | 112 | ///-------------------------------------------------------------------------------------------------
///
/// \file CAbstractSettingView.cpp
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Public Licens... |
f4f8394e19ad28c5e9b13e42196c08ea30a47fb06fbe5a165fd56dcd63583110 | C++ | 4,635 | 114 | #include <content/views/fullscreen/view_fullscreen_file_info.hpp>
#include <fonts/fonts.hpp>
#include <hex/api/content_registry/pattern_language.hpp>
#include <hex/helpers/magic.hpp>
#include <hex/helpers/literals.hpp>
#include <pl/pattern_language.hpp>
#include <pl/core/evaluator.hpp>
#include <toasts/toast_notifica... |
d8348cdd75f3b3391f4ee01ff3b8d47d81b08902c00d7f92fc7118ccbe272b5c | C++ | 4,637 | 124 | /*
* Copyright 2020 Brian Raiter <breadbox@muppetlabs.com>
*
* 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 appli... |
823833cea003d9cf5dbe8a7368bad6c1a8cae95f598c6a893f1943bf6bd5ab5f | C++ | 4,641 | 92 | /* -------------------------------------------------------------------------- *
* Lepton *
* -------------------------------------------------------------------------- *
* This is part of the Lepton expression parser originating from *
... |
d713cf2dc78ebdec52acbcadf80e6adbaa3cdb9014db7a6106e69bc05cd20ce7 | C++ | 4,684 | 140 | //-----------------------------------------------
// Copyright 2009 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// SBWT.cpp - Burrows Wheeler transform of a generalized suffix array
//
#include "SBWT.h"
#i... |
ed2b8aedbf3c7ba7cf32086264297083e0e5d548acf8c78571501ccd30553507 | C++ | 4,692 | 135 | #include "Globals.h"
#include <vector>
#include <limits>
#include <algorithm>
#include <stdexcept>
#include <cmath>
#include <numeric> // for std::iota
#include <cassert>
#include <iostream>
#include <chrono>
using clock_type = std::chrono::high_resolution_clock;
#include <Eigen/Dense>
#include <Eigen/Sparse>
#in... |
89c75e1c6e29357b7a15a03d54e7f615ab39356914ed406beec31a226f4622e6 | C++ | 4,699 | 151 |
/********************
PhyloBayes MPI. Copyright 2010-2013 Nicolas Lartillot, Nicolas Rodrigue, Daniel Stubbs, Jacques Richer.
PhyloBayes 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 3 of the L... |
cfd2d3f3475b8e73c1d34ac8c72c496125429008d4b90b10ed108c4806759cbe | C++ | 4,711 | 189 | //
// OpenViBE Tracker
//
// @author J.T. Lindgren
//
#include <iostream>
#include <algorithm>
#include "StreamBundle.h"
#include "Stream.h"
#include "StreamFactory.h"
namespace OpenViBE {
namespace Tracker {
bool StreamBundle::deepCopy(const StreamBundle& other)
{
bool retVal = true;
// Clear streams
... |
e255ab06af9192c238a8bdc4d3e286c1c8d87964480dec6b1c4a2eb1c8a42236 | C++ | 4,714 | 88 | #include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <iostream>
#include <clocale> // std::setlocale
#include "CDriverSkeletonGenerator.hpp"
#include "CBoxAlgorithmSkeletonGenerator.hpp"
int main(int argc, char** argv)
{
OpenViBE::CKernelLoader loader;
std::cout << "[ INF ] Created kernel loader, trying to ... |
a4fc5ac3189e129036bde587dca616ac10c4604deec8e4572ef3148ef7c62088 | C++ | 4,728 | 129 | #include <content/visualizer_helpers.hpp>
#include <hex/helpers/scaling.hpp>
#include <hex/helpers/auto_reset.hpp>
#include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h>
namespace hex::plugin::visualizers {
std::vector<u32> getIndices(pl::ptrn::Pattern *colorTablePattern, u64 width, u64 height);
ImGui... |
2edf82f1d063fe72b1a4328bc06af5475103a4de9e9cda35768324563cad6389 | C++ | 4,729 | 156 | #include "SimGenome.h"
#include "SeqLib/GenomicRegionCollection.h"
SimGenome::SimGenome(const SeqLib::GenomicRegion& gr, int nbreaks, int ndels, faidx_t * findex, bool scramble, int viral_count) : m_gr(gr) {
std::vector<size_t> index = {0};
size_t ii = 1;
double viral_prob = viral_count ? (double)viral_coun... |
5c2884a94384ae23667314c10094237abf8b758963b76c74357cc4971282fd55 | C++ | 4,730 | 106 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmRunCommand.cpp
/// \author Yann Renard (Inria).
/// \version 1.0.
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it u... |
e0df1c872958ab038088a3f1dd5be860e108f7afff45bf49ee77f70f97b0d705 | C++ | 4,743 | 153 | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
#include <cstring>
#include <map>
#include <iostream>
#i... |
79928341a4e1250e453f40a117ac2b66244981c1a2775de56e523f4ee312588d | C++ | 4,748 | 173 |
/*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it wil... |
572f4d3d2e1c6f0edd8bb0c25e19e670f1ed8ee121bf3504602aa41173796676 | C++ | 4,751 | 126 | #include "content/popups/hex_editor/popup_hex_editor_fill.hpp"
#include "content/views/view_hex_editor.hpp"
#include <hex/api/content_registry/settings.hpp>
#include <hex/api/content_registry/user_interface.hpp>
#include <hex/api/content_registry/pattern_language.hpp>
#include <hex/api/achievement_manager.hpp>
#inclu... |
fdc190b1f1b9d4bbda4d68c9352a96612d5c06a468df3b5df7938c65e0ba53b6 | C++ | 4,755 | 125 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxStimulationMultiplexer.hpp
/// \brief Classes implementation for the Box Stimulation Multiplexer.
/// \author Yann Renard (INRIA/IRISA).
/// \version 1.1.
/// \date 19/07/2013
/// \copyright Copyright... |
30e5e48adbdf18d08f726843bf75af15078e98b8cc871ddd4903f30533a076e4 | C++ | 4,760 | 143 | /* -*- mode: C++; indent-tabs-mode: nil; -*-
*
* This file is a part of LEMON, a generic C++ optimization library.
*
* Copyright (C) 2003-2013
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
* (Egervary Research Group on Combinatorial Optimization, EGRES).
*
* Permission to use, modify and distribut... |
7f34503be5990119781c9f3cf9325ecf6cdfac93fd34ef5bfeee3e9fc24d4010 | C++ | 4,792 | 161 | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
#include <cstdio>
#include "coreneuron/nrnconf.h"
#incl... |
de90fda94f7772f54f401fbfcbefedf5861d7032aebd873cba20118cd02f805b | C++ | 4,803 | 147 | ///-------------------------------------------------------------------------------------------------
///
/// \file C3DMesh.cpp
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Public License as publishe... |
5f01236c2d4fab421d95163e12cb34c31ef898b022ba301f5d15f265fecc4170 | C++ | 4,818 | 225 | /*
Extracted from the source code in http://pub.ist.ac.at/~vnk/papers/TV_TREE.html
with the implementation of the method in the paper
Total Variation on a Tree
by Vladimir Kolmogorov, Thomas Pock and Michal Rolínek.
Minor modifications by Álvaro Barbero.
*/
#include <stdio.h>
#include <stdlib.h>
... |
cd4374559d657fa84914d1b8cb8bd5eb36f4ab8c660a34f397bf76d6117f56f9 | C++ | 4,818 | 167 | /*
* Copyright 2006 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
ca6d55385ea4362daa4e2a68f91fc86a8d13581d2b5300327bd7f1c9427e055b | C++ | 4,845 | 106 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmPlayerController.cpp
/// \brief Classes implementation for the Box Player Controller.
/// \author Yann Renard (Inria).
/// \version 1.0.
/// \copyright Copyright (C) 2022 Inria
///
/// This p... |
ea34fb558e4396b1e03f9b78da1d84857fa65f05520a548be296f1aab4be9a52 | C++ | 4,855 | 138 | /**
* SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include <cstdint>
#include <gtest/gtest.h>
#include "SampleBufferHandler.h"
namespace {
/**
* Chunks buffered are those needed to cover one 20 ms eye-refresh period, rounded up.
* maxSampleCount, which ... |
2767380493a9f87e4a797864056747b3cadd796dc47768763fdbdc30f70db484 | C++ | 4,857 | 146 | ///-------------------------------------------------------------------------------------------------
///
/// \file CRendererXYZPlot.cpp
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Public License as... |
ff9e03424a1332eb3ec452f87a4e130eecba042756ca585070585aadc5d5b838 | C++ | 4,860 | 150 | /*! \file hidden_state_inference.cpp
*
* \brief Hidden state inference for the HMM
*
* Hidden state inference for VB-solved HMM, using the forwards-backwards
* algorithm.
*
* This code is an implementation of Diego Vidaurre's nodecluster algorithm
* for C++.
*
* Giles Colclough
* 2 Feb 2016
*
*
* Cop... |
129549fa554c287a93d6ec9308f6cc30d7d41a078a29891b785b6e36e6e719d0 | C++ | 4,863 | 120 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmSpectrumAverage.cpp
/// \brief Classes implementation for the Box Spectrum Average.
/// \author Yann Renard (Inria).
/// \version 1.0.
/// \copyright Copyright (C) 2022 Inria
///
/// This pro... |
8ef6303b4be86c0a5dce9782ab22b474367f9f6fc120a33b9e2d6e7bf53ef880 | C++ | 4,865 | 158 | #include "ValidateTabFile.h"
std::string ValidateTabFile::concatenateMultiplePINs(std::vector<std::basic_string<char>> fileNames) {
// Validate multiple tab-files, and then concatenate them.
std::string inputFN;
std::ifstream pinFileStream;
/* Complete column position to header name */
std::map<int,std::str... |
860f6ec4108b1b65259bada340289ce081cbe87b8e9e8e130808ae949bee4826 | C++ | 4,868 | 274 | /*****************************************************************************
* SV_EvidenceReader.cpp
* (c) 2012 - Ryan M. Layer
* Hall Laboratory
* Quinlan Laboratory
* Department of Computer Science
* Department of Biochemistry and Molecular Genetics
* Department of Public Health Sciences and Center for Publi... |
2c5eba3e86eebe2de02192f05553911b6f36cf55a876577f71b2c7e4f8404411 | C++ | 4,881 | 147 | #include "decimation.h"
/*----------------------------------------------------------------------------*
*-------------------------- Downsampling Routines ---------------------------*
*----------------------------------------------------------------------------*/
/* Compute downsampled signal as average in each (ds,... |
e59d6bfbfa1b82f3597bd0ca52e8dff203c8b8f0673f56a348d79664559a65ac | C++ | 4,891 | 167 | #include "IXMLNode.h"
#include <string>
#include <cstring>
#include <stdexcept>
#include <vector>
#include <map>
#include <algorithm>
//This is to remove the warning on windows about strdup
#if defined TARGET_OS_Windows
#define strdup _strdup
#endif
namespace XML {
class IXMLNodeImpl final : public IXMLNode
{
public... |
e31ae39cb50eb7d9e9938cd06d8d2040e531aaab9dcefa5dd6bab77a601a1985 | C++ | 4,906 | 127 | #include "ovtkISignalTrial.h"
namespace OpenViBE {
namespace Toolkit {
ISignalTrial& copyHeader(ISignalTrial& trial, const ISignalTrial* srcTrial)
{
if (srcTrial == nullptr) { srcTrial = &trial; }
if (srcTrial != &trial)
{
const size_t nChannel = srcTrial->getChannelCount();
trial.setChan... |
b7d55bf2c542ee09b7baa4a0ee0f29397aaa40f368dcf0efebae1409d73995b3 | C++ | 4,911 | 108 | /*
# =============================================================================
# Copyright (c) 2016 - 2022 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
#include "coreneuron/io/lfp.hpp"
#include "coreneuron/mpi... |
fb8e13d1e36aceb5619db3d7c742c4b1929f317cbab60df06ef72a1b41678105 | C++ | 4,929 | 116 | #include "CBoxAlgorithmFeaturesSelector.hpp"
namespace OpenViBE {
namespace Plugins {
namespace FeaturesSelection {
///-------------------------------------------------------------------------------------------------
bool CBoxAlgorithmFeaturesSelector::initialize()
{
m_decoder.initialize(*this, 0);
m_iMatrix ... |
4aee5838465a51196d1c12bb211dc12a05a2e32d7af886e3df21bb052d973b3d | C++ | 4,938 | 170 |
/*
* 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 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it wil... |
a806f445bd78e1aa6bc0d31557eb57aa629149e9d3b10c30b89e91d66e9a81c5 | C++ | 4,949 | 111 |
/********************
PhyloBayes MPI. Copyright 2010-2013 Nicolas Lartillot, Nicolas Rodrigue, Daniel Stubbs, Jacques Richer.
PhyloBayes 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 3 of the L... |
3f1afe3a74e5c66094234fe20fadf13567999fa7406416cff9755533f39a77a6 | C++ | 4,962 | 119 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmCommonAverageReference.cpp
/// \brief Classes implementation for the Box Common Average Reference.
/// \author Yann Renard (Inria).
/// \version 1.0.
/// \copyright Copyright (C) 2022 Inria
/... |
211ac83a6157da89fb2fa515c64dcb9b3ae0c141d0d1c5078594e6115df76b7f | C++ | 4,964 | 165 | #include <hex/helpers/logger.hpp>
#include <hex/api/task_manager.hpp>
#include <hex/helpers/fs.hpp>
#include <hex/helpers/default_paths.hpp>
#include <hex/helpers/auto_reset.hpp>
#include <wolv/io/file.hpp>
#include <wolv/utils/string.hpp>
#include <mutex>
#include <chrono>
#include <fmt/chrono.h>
#if defined(OS_W... |
4b8c0f31bc002f04d80926efa61895bbae75c8c7c0405b86b004d1e1797876b1 | C++ | 4,970 | 171 | #include "IConnection.h"
#include "IConnectionClient.h"
#include "IConnection.inl"
#include <cstring>
#include <iostream>
#include <fcntl.h>
#include <cerrno>
#if defined TARGET_OS_Linux || defined TARGET_OS_MacOS
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <unistd.h>
#elif define... |
b891e585b1c0156b3c91d488be54026e746ba88a5af774f1588ad8b6df6bf7d6 | C++ | 4,985 | 105 | ///-------------------------------------------------------------------------------------------------
///
/// \file CMatrixClassifierMDMRebias.cpp
/// \brief Class implementation of Minimum Distance to Mean (MDM) Classifier with Rebias.
/// \author Thibaut Monseigne (Inria).
/// \version 1.0.
/// \date 10/12/2018.
/// ... |
1f601e0b6ade8ff9a417c271f7de985f99b011780b15237ed3bba66d9639787d | C++ | 4,987 | 126 | #include "ovpCEncoderAlgorithmTest.h"
#include "../algorithms/encoders/ovpCExperimentInfoEncoder.h"
#include "../algorithms/encoders/ovpCFeatureVectorEncoder.h"
#include "../algorithms/encoders/ovpCSignalEncoder.h"
#include "../algorithms/encoders/ovpCSpectrumEncoder.h"
#include "../algorithms/encoders/ovpCStimulation... |
b41ac32fdfc5bb6ed2c89f4278140c72f6661ec3b96425241ae1d86c582a266e | C++ | 4,987 | 118 | ///-------------------------------------------------------------------------------------------------
///
/// \file CompareXML.cpp
/// \author Thibaut Monseigne / Inria.
/// \version 2.0.
/// \date 19/04/2022.
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or ... |
dc8e87f6c1f83d54c6e2528f0189d3ce090f235383c76077d7d43979c3cab86a | C++ | 4,993 | 190 |
/********************
PhyloBayes MPI. Copyright 2010-2013 Nicolas Lartillot, Nicolas Rodrigue, Daniel Stubbs, Jacques Richer.
PhyloBayes 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 3 of the L... |
aa7806fda4b259c7aae0599df5c463c1af7c3111665de2ad4c6e4f43aefb9c6e | C++ | 4,998 | 104 | #include <hex/helpers/utils.hpp>
#include <content/visualizer_helpers.hpp>
#include <hex/helpers/scaling.hpp>
#include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h>
#include <numbers>
#include <chrono>
#include <fmt/chrono.h>
namespace hex::plugin::visualizers {
void drawTimestampVisualizer(pl::ptrn::P... |
0e0ac34b39de6e640047d2e027e4ae1425749425f4ec2da0791a35cf283254f3 | C++ | 5,027 | 140 | /**
* SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "SessionManager.h"
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QRegularExpression>
#include <QSaveFile>
#include <QTextStream>
namespace OpenViBE {
namespace Designer {
namespace... |
a12e673ff12aff7c34c143f9c0155a178ec71cdea40b4c08e49dcf3a6fb6ba1d | C++ | 5,030 | 95 | ///-------------------------------------------------------------------------------------------------
///
/// \file Distance.cpp
/// \brief All functions implementation to estimate the Distance between two Covariance Matrix.
/// \author Thibaut Monseigne (Inria).
/// \version 1.0.
/// \date 26/10/2018.
/// \copyright C... |
1f0db8be42a0468b66b2b5cc2e7576bd997aba2ff2042f9592fa2e5a428b5e74 | C++ | 5,041 | 121 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmStreamEndDetector.cpp
/// \brief Classes implementation for the Box Stream End Detector.
/// \author Jozef Legeny (Mensia Technologies).
/// \version 1.0.
/// \copyright Copyright (C) 2022 In... |
e3b288279110353ccd7e2073643b3445edac7b65aa3e0a7afc2ca23bcd422b4f | C++ | 5,043 | 117 | ///-------------------------------------------------------------------------------------------------
///
/// \file CCommandLineOptionParser.cpp
/// \author Charles Garraud.
/// \version 1.0.
/// \date 25/01/2016.
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and... |
0d998c7ba084fe59dd88ee44bfa71733a21d2e4655722af985ac042c83037481 | C++ | 5,051 | 207 |
/********************
PhyloBayes MPI. Copyright 2010-2013 Nicolas Lartillot, Nicolas Rodrigue, Daniel Stubbs, Jacques Richer.
PhyloBayes 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 3 of the L... |
f0dc574c8efa1fd42dbf2db217a6452c747947c6f003b323b6145d4955157151 | C++ | 5,058 | 226 | // Written by Oliver Serang 2009
// see license for more information
#include "Set.h"
void Set::add(int el) {
#ifdef SAFE_ARRAYS
if (!isEmpty() && el <= back()) {
throw UnsortedOrderException();
}
#endif
Array<int>::add(el);
}
const Set& Set::operator &=(const Set & rhs) {
Set result = (*this) & rhs;... |
3a5253fc0375051b508a4f23c6af3b8774a7f8daa5571431b129f5ac92f842cf | C++ | 5,065 | 111 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmAdditionTest.cpp
/// \author Yann Renard (Inria)
/// \version 1.0.
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it ... |
cefb755c0c17da4219c3424cb8dc5a7b87a422a7c85daa63f34c9354cbe9ac69 | C++ | 5,093 | 119 | //FastQTL: Fast and efficient QTL mapper for molecular phenotypes
//Copyright (C) 2015 Olivier DELANEAU, Alfonso BUIL, Emmanouil DERMITZAKIS & Olivier DELANEAU
//
//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 Soft... |
a7f0ff101fea75048514504476f991203ce5de1bf26caa7fcaa4d9c6480c7049 | C++ | 5,095 | 105 | #include <vector>
#include <tuple>
#include <ovp_global_defines.h>
#include "ovtAssert.h"
#include "ovtTestFixtureCommon.h"
int urImportScenarioFromFileTest(int argc, char* argv[]);
#define OVP_ClassId_BoxAlgorithm_ClockStimulator CIdentifier(0x4F756D3F, 0x29FF0B96)
#define OVP_ClassId_BoxAlgorithm_Stimulatio... |
0c0007c8f156e47506a7cc30b95af1875a887a87d92dd364346a4db87c4f555c | C++ | 5,098 | 129 | #include "CBoxAlgorithmTopographicMap2DDisplay.hpp"
#include "topographicMap2DDisplay/CTopographicMap2DView.hpp"
#include "../algorithms/CAlgorithmSphericalSplineInterpolation.hpp"
#include <visualization-toolkit/ovviz_all.h>
#include <cstdlib>
namespace OpenViBE {
namespace Plugins {
namespace SimpleVisualization {
... |
1ad3d9da88f450be8aa293ac33ec0e62a7523881f2f47fcf403083646a90b1be | C++ | 5,100 | 204 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include <sstream>
#include <iomanip>
#include "parameters/parameterDouble.h"
#include "parameters/parameterFactory.h"
namespace OpenViBE {
namespace Parameters {
ParameterDouble::ParameterDouble(void) : Para... |
411011a2c4169b7a46b47af4fcd7edabeb9b0f5262c9437ce1607b2ede280d3a | C++ | 5,106 | 228 | /**********************************************
*** adapted from crux/src/c/PeptideSrc.cpp ***
**********************************************/
/*************************************************************************//**
* \file PeptideSrc.cpp
* \brief Object for mapping a peptide to its parent protein.
********... |
ab9363a9b7fbfdffe9b0e7a5e84340a44bd6ab0e73e510498415a83f1ea91788 | C++ | 5,107 | 147 | ///-------------------------------------------------------------------------------------------------
///
/// \file ova_main.cpp
/// \brief Program to simulate VPRN interaction
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of ... |
4dd11a631f5d715e52970556ae351c44b9b2cf8c2099adc10b4ee2ab89ee93d7 | C++ | 5,122 | 115 | #include "content/views/view_tools.hpp"
#include <imgui_internal.h>
#include <hex/api/content_registry/tools.hpp>
#include <hex/api/layout_manager.hpp>
#include <fonts/vscode_icons.hpp>
namespace hex::plugin::builtin {
ViewTools::ViewTools() : View::Scrolling("hex.builtin.view.tools.name"_unlocalized, ICON_VS_T... |
17b71af2e228bf977e34d86576fcbf17a6eae29565ba7ff33d89def70dd5a907 | C++ | 5,127 | 174 | /**
* SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include <cstdint>
#include <vector>
#include <gtest/gtest.h>
#include "DriftCalculator.h"
namespace {
class DriftCalculatorTest : public ::testing::Test
{
protected:
static constexpr unsigned int samp... |
b4f02f48f7b9bc5b17fe017ed20e0f05057d86d2db2bf577f7ff7b76944fddaa | C++ | 5,127 | 191 | /*******************************************************************************
Copyright 2006-2012 Lukas Käll <lukas.kall@scilifelab.se>
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:... |
be71b2bc5bea4e8d1f7a2b4683c95735c4538124b323b155009f801891126049 | C++ | 5,127 | 173 | #include "ovCMessagingClient.h"
#include "ovCMessagingImpl.hpp"
#include <chrono>
namespace Communication {
MessagingClient::MessagingClient() : CMessaging(), m_Client(Socket::createConnectionClient()) {}
MessagingClient::~MessagingClient()
{
this->close();
m_Client->release();
}
bool MessagingClient::conne... |
676eb7adfb57d16949222e3de82ef3ef984ce9a5958fd9b439c25835a04e2d2b | C++ | 5,152 | 195 |
/********************
PhyloBayes MPI. Copyright 2010-2013 Nicolas Lartillot, Nicolas Rodrigue, Daniel Stubbs, Jacques Richer.
PhyloBayes 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 3 of the L... |
d8cee8f778ed3cbb093441d6dc130785bfd123da651647eceb12cfb54822dbbb | C++ | 5,161 | 131 | ///-------------------------------------------------------------------------------------------------
///
/// \file CFilenameSettingView.cpp
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or modify
/// it under the terms of the GNU Affero General Public Licens... |
55b0af5cf552807417352700cc24a1f95948b10ad1f044d9295bd2b569e8bfd4 | C++ | 5,165 | 205 |
/********************
PhyloBayes MPI. Copyright 2010-2013 Nicolas Lartillot, Nicolas Rodrigue, Daniel Stubbs, Jacques Richer.
PhyloBayes 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 3 of the L... |
708beecf8f19767d2d60692eb5eb66680b2ca26951da7758e7bb42a60b800b7b | C++ | 5,165 | 98 | ///-------------------------------------------------------------------------------------------------
///
/// \file main.cpp
/// \brief Main file for classification plugin, registering the boxes to OpenViBE
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can redistribute it and/or mod... |
d130b7d529a69f136257f1b964553cd7485d626d68b9f09c3cf1b4b27e9b19b0 | C++ | 5,166 | 166 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "PlayerBridge.h"
#include <system/ovCTime.h>
#include <openvibe/ov_all.h>
#include <clocale>
#include <thread>
#include <future>
namespace OpenViBE {
namespace Designer {
PlayerBridge::PlayerBridge(Ke... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.