sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
599f2699babc15fe557b6b3462c71f75d79aff826613fe22d9f734f55e63c51b
C++
2,287
67
#include <hex/plugin.hpp> #include <hex/api/content_registry/settings.hpp> #include <hex/api/content_registry/views.hpp> #include <hex/api/theme_manager.hpp> #include <hex/helpers/logger.hpp> #include <hex/api/events/events_gui.hpp> #include <hex/api/events/requests_gui.hpp> #include <romfs/romfs.hpp> #include <nlohm...
7c9b4d7970f104bb6efd8875ff45af7ff19d177701728fb64aa3d954af6080a5
C++
2,287
89
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #include "parameters/parameterColor.h" #include "parameters/parameterFactory.h" namespace OpenViBE { namespace Parameters { ParameterColor::ParameterColor(void) : ParameterBase<std::string, ParameterColor>() { }...
95352bfc2d8593f1b832a012c73949a8a898d1aa0602782654fed2dee903fd45
C++
2,287
67
#include "ovpCEBMLBaseDecoder.h" namespace OpenViBE { namespace Plugins { namespace StreamCodecs { CEBMLBaseDecoder::CEBMLBaseDecoder() : m_callbackProxy(*this, &CEBMLBaseDecoder::isMasterChild, &CEBMLBaseDecoder::openChild, &CEBMLBaseDecoder::processChildData, &CEBMLBaseDecoder::closeChild)...
432d5c6c384b436d25cdaa824013000720f2b8789c92806bba6dfd8c732197d4
C++
2,293
91
/* * PackedMatrix.cpp * * Created on: Feb 15, 2011 * Author: tomasoni */ #include "PackedMatrix.h" PackedMatrix PackedMatrix::packedTranspose(const PackedMatrix& mat) { PackedMatrix res = PackedMatrix(mat.numCols(), mat.numRows()); int i, j; for (i = 0; i < mat.numRows(); ++i) { for (j = 0; j < m...
1908148e53b6498deaa4479fd2e090cd274ce04dc1d9e59f4fbf6925ad4f935f
C++
2,302
86
//----------------------------------------------- // Copyright 2011 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // ClusterReader - Read in a file of read clusters. // This class conforms to the interface n...
c50bf10f7d6d40a8c5275c4021331e1dcb3c0787134994c95ef1e0b0caa519ad
C++
2,303
69
/** * * @fixme This class could benefit from a serious overhaul, e.g. using randomness from some established library or C11. * * - Here Linear Congruential Generator is re-implemented to avoid third-party dependencies messing the up the rand() state. * This happened before when we used the global srand() / rand(...
6da74599b62026c3b34664c20df6a1d0ed5901d2f82fc8947bae9969ab115526
C++
2,305
76
#include <hex.hpp> #include <clocale> #include <hex/helpers/logger.hpp> #include <window.hpp> #include <messaging.hpp> #include "crash_handlers.hpp" #include <hex/api/task_manager.hpp> #include <hex/api/plugin_manager.hpp> #include <hex/helpers/utils.hpp> #include <hex/trace/exceptions.hpp> namespace hex::init { ...
77899c45ba9fb93b112811a4f3af91a2f26a09e5564ede52d9d548a61d5891fa
C++
2,315
62
#include <memory> // shared_ptr #include "TrackerPluginCountStimulations.h" #include "Stream.h" #include "TypeStimulation.h" namespace OpenViBE { namespace Tracker { bool TrackerPluginCountStimulations::process(StreamBundle& track) { log() << Kernel::LogLevel_Info << "TrackerPluginCountStimulation: Counting sti...
2469860e8ffe51ce562744f8b6450deb2e7c2a10e729a253e6c6f257b2a1524d
C++
2,318
61
///------------------------------------------------------------------------------------------------- /// /// \file CRenameDialog.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 pu...
c77fcaa9d00890699849dfa7b9f6e726974efe2c0bbd7ed915f92d924b69c624
C++
2,326
128
//----------------------------------------------- // Copyright 2009 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // DNAString // #include <iostream> #include "DNAString.h" #include "Util.h" DNAString::DNA...
a11e1422eeecd7e258efe9853f163c28690c1f72278ab073dc121f4494aaefe0
C++
2,332
75
/** * SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #include "ScenarioParameterConnectionObject.h" namespace OpenViBE { namespace Designer { ScenarioParameterConnectionObject::ScenarioParameterConnectionObject(Kernel::IKernelContext* context, const QString...
02dfb5398c10ca626b62378a6d31f184d6711fa6ca0cc9b26555a9cb5eb22d5c
C++
2,333
68
#include "ovasCDriverGenericRawFileReader.h" #include "ovasCConfigurationGenericRawReader.h" namespace OpenViBE { namespace AcquisitionServer { CDriverGenericRawFileReader::CDriverGenericRawFileReader(IDriverContext& ctx) : CDriverGenericRawReader(ctx), m_settings("AcquisitionServer_Driver_GenericRawFileReader", ...
c7b9c1faba9359b3983232b969c405cae6ccc774139820a6cc55f0d9fd513c6d
C++
2,333
112
// //----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // ReadInfoTable - A 0-indexed table of ID, length pairs // Used to convert suffix array h...
97c3807e7df7158e0993f7d39bb30f2f9b2094d5d6c1fb838c0b4def45a5cc74
C++
2,340
63
///------------------------------------------------------------------------------------------------- /// /// \file ovtAssert.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 publis...
39e66ae6eda355f07d8a7465f62506ea11820d9ad35e265c781dff27b186485a
C++
2,346
48
///------------------------------------------------------------------------------------------------- /// /// \file main.cpp /// \brief Main file for Tools plugin, registering the boxes to OpenViBE /// \copyright Copyright (C) 2022 Inria /// /// This program is free software: you can redistribute it and/or modify /// i...
a31a7ddde7b1ff1acaa59a8073d17a5b230821b9237628d6f92a4d6ca1306729
C++
2,357
71
#include "ovasCDriverGenericRawTelnetReader.h" #include "ovasParameterHelper.h" namespace OpenViBE { namespace AcquisitionServer { CDriverGenericRawTelnetReader::CDriverGenericRawTelnetReader(IDriverContext& ctx) : CDriverGenericRawReader(ctx), m_hostName("HostName", "The name of the host to connect to", "loc...
872e54696d939c973efd294f63dbb08ea4660a23b255b2c7968241bfa5555514
C++
2,359
73
//===-- Demangle.cpp - Common demangling functions ------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
70c31f025a926e49ba3604cbe7e0a253515cd76b6182c5343bbea524352c9242
C++
2,376
70
#include <content/providers/base64_provider.hpp> #include <hex/helpers/crypto.hpp> #include <hex/helpers/utils.hpp> namespace hex::plugin::builtin { void Base64Provider::readRaw(u64 offset, void *buffer, size_t size) { const u64 base64Offset = 4 * (offset / 3); const u64 base64Size = std::min<u64...
0589c449631e3eb837d3ef398517ef9a3bd6c9eea9d3f55a94eaa6bae0eee3b4
C++
2,379
98
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTWriterAscii - Write a BWT file to disk // #include "BWTWriterAscii.h" #include "SBWT.h...
88b85db02e76d57f6e414103ce893b2c5b54267e3d11957e401b79fc15f3c425
C++
2,379
79
#include <algorithm> #include <hex/test/tests.hpp> #include <hex/test/test_provider.hpp> #include <hex/helpers/crypto.hpp> #include <vector> TEST_SEQUENCE("TestSucceeding") { TEST_SUCCESS(); }; TEST_SEQUENCE("TestFailing", FAILING) { TEST_FAIL(); }; TEST_SEQUENCE("TestProvider_read") { std::vector<u8> ...
0f116a167548c0da0b015be26b7ef293030faf505ad7492d931c41ef8dfd1a00
C++
2,383
56
#include "algorithms/decoders/ovpCAcquisitionDecoder.h" #include "algorithms/decoders/ovpCStreamStructureDecoder.h" #include "algorithms/decoders/ovpCExperimentInfoDecoder.h" #include "algorithms/decoders/ovpCChannelLocalisationDecoder.h" #include "algorithms/decoders/ovpCChannelUnitsDecoder.h" #include "algorithms/dec...
bdadb395026d8cde03dd8e03f26ddee70d551832cdb9d6d79cc50157a395fe63
C++
2,392
87
// // OpenViBE Tracker // // @author J.T. Lindgren // #include <openvibe/ov_all.h> #include <toolkit/ovtk_all.h> #include <iostream> #include "Testclass.h" // #include "Source.h" #include "Stream.h" #include "Encoder.h" namespace OpenViBE { namespace Tracker { TestClass::TestClass(Kernel::IKernelContext& ctx) : m_...
01e5a2e58c1bb12d0b525b77899177d614bb5c2f17f994a0e020e6aef5e6be80
C++
2,398
76
/******************** 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...
6a4dbabce002cee42de59c34c2628c6bdef538307a3aed61953dbed7ca2ada29
C++
2,398
95
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #include "parameterObject.h" namespace OpenViBE { namespace Parameters { ParameterObject::ParameterObject(ParameterTraits *param) { m_param = param; m_destroyId = param->onDestroy([this]() { m_pa...
c1898f96a514b136e4ca01d238afb9eb950ac1e12bec8da7ee7ef1f6e745c5b7
C++
2,402
64
#include <hex/helpers/fmt.hpp> #include <hex/api/localization_manager.hpp> #include <imgui.h> #include <hex/ui/imgui_imhex_extensions.h> namespace hex::plugin::builtin { void drawPermissionsCalculator() { static bool setuid, setgid, sticky; static bool r[3], w[3], x[3]; ImGuiExt::Header(...
6c0ce3354d168ed6e88b8a198b123d8e0a84069377f7c451a910e9f8537306b5
C++
2,406
82
/******************************************************************************* 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...
1c89f1bf77c6aa30c292a1937a87e30542bca57e56d527ab9e99a47dc31fe287
C++
2,415
81
// // OpenViBE Tracker // // @author J.T. Lindgren // #include <openvibe/ov_all.h> #include <toolkit/ovtk_all.h> #include <iostream> #include <system/ovCTime.h> #include "StreamRendererLabel.h" namespace OpenViBE { namespace Tracker { bool StreamRendererLabel::initialize() { m_main = gtk_frame_new(""); m...
b4fa448a4c7f8fcd444c2763bea972f318fb49a873246bb7fd9078a05fa4def7
C++
2,415
64
/******************************************************************************* "A Collection of Useful C++ Classes for Digital Signal Processing" By Vinnie Falco Official project location: https://github.com/vinniefalco/DSPFilters See Documentation.cpp for contact information, notes, and bibliography. ----------...
fc1aed7f469e446848137b38f0d071050ea912214c3985b12ff945011f9de00e
C++
2,419
74
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # ============================================================================= */ #include <cstring> #include <cstdlib> #include <iostream>...
6a8188cf1af2ab8bed4562868337d7010c94b75d80a7e631923fd375cf55f6c2
C++
2,422
77
///------------------------------------------------------------------------------------------------- /// /// \file ovtKernelContext.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...
b25e18f1da17c1b3f9aaaeef23d1014dbbba3c6eef11dd77e12404b35ae18a00
C++
2,429
82
#include <hex/test/tests.hpp> #include <ui/line_comment.hpp> #include <string> #include <vector> using hex::ui::toggleLineComments; namespace { using Lines = std::vector<std::string>; Lines toggle(const Lines &lines, std::string_view commentToken = "//") { return toggleLineComments(lines, commentT...
e2caba6a61f03c49b8ea0d391240490b8631298e17b11804487d5877a26f042a
C++
2,447
72
#include <hex/helpers/http_requests.hpp> #include <wolv/math_eval/math_evaluator.hpp> #include <array> #include <imgui.h> #include <implot.h> #include <hex/ui/imgui_imhex_extensions.h> #include <fonts/vscode_icons.hpp> namespace hex::plugin::builtin { void drawGraphingCalculator() { static std::array<...
d2452a22839670e9872c95bd6b43679090c53eebfa5ec4f9a71f8c68d12aa027
C++
2,462
81
#pragma once #include <string> #include <windows.h> #include <stdio.h> #include <stdlib.h> #include "ftd2xx.h" #include "QtGuiApplication4.h" #include <QtWidgets/QApplication> #include "Exceptions.h" #include "Constants.h" using namespace std; char START_COMMAND[2] = "G"; int check_ftStatus(int ftStatus, int FTDIErr...
feb34207ca4548f23fe84934737da9884f7a88bec793570d7d95027804c72c30
C++
2,465
87
/* -*- mode: C++; indent-tabs-mode: nil; -*- * * This file is a part of LEMON, a generic C++ optimization library. * * Copyright (C) 2003-2009 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). * * Permission to use, modify and distribut...
6c3ecd4be6e30643c8c571d01728a16134688fb86c5636eaa2a65d38c9f42e2a
C++
2,478
87
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # =============================================================================. */ #include "coreneuron/coreneuron.hpp" #include "coreneuro...
f25020e0e06e905ec5e936da002a6c46b5f177bba6847374cdf8aff70b40a8f0
C++
2,481
65
#include <openvibe/ov_all.h> #include <toolkit/ovtk_all.h> #include "TypeExperimentInfo.h" #include "Decoder.h" #include "Encoder.h" namespace OpenViBE { namespace Tracker { template <> bool DecoderAdapter<TypeExperimentInfo, Toolkit::TExperimentInfoDecoder<BoxAlgorithmProxy>>::getHeaderImpl(TypeExperimentInfo::Head...
59e76fe8a3bc7da704ad73605f637f31b701400a0e95934bef15e105c3b56062
C++
2,488
74
#include <content/helpers/encoding_chooser.hpp> #include <hex/helpers/utils.hpp> #include <wolv/utils/string.hpp> namespace hex::plugin::builtin { EncodingChoices readEncodingChoices(const std::vector<std::fs::path> &paths) { std::map<std::fs::path, EncodingHeader> headers; std::map<std::fs::pat...
f8b7266591b3ff8eea109b3d642d7e8b4c9925fceaccfed16c281016f068d044
C++
2,490
54
#if defined TARGET_HAS_ThirdPartyEmotivAPI #include "ovasCConfigurationEmotivEPOC.h" namespace OpenViBE { namespace AcquisitionServer { CConfigurationEmotivEPOC::CConfigurationEmotivEPOC(IDriverContext& ctx, const char* gtkBuilderFilename, bool& rUseGyroscope, CString& rPathToEmotivResearchSDK, uint32_t& rUserID) ...
7dbf6e786503a1917c4cb98491867d8a60ac6658a44c918776cf08ccf7b4fbe3
C++
2,498
88
#include "ovtkCSignalTrial.hpp" namespace OpenViBE { namespace Toolkit { bool CSignalTrial::setSamplingRate(const size_t sampling) { m_sampling = sampling; return m_sampling != 0; } bool CSignalTrial::setChannelCount(const size_t count) { size_t i; for (i = 0; i < count; ++i) { if (m_channelSamples.f...
f2936ee4dc7d1af8ba81c015df7cd3d03f99cbd1defe9301656a20e5def22ec4
C++
2,518
87
#if defined(OS_LINUX) #include <fcntl.h> #include <sys/file.h> #include <unistd.h> #include <hex/helpers/logger.hpp> #include <hex/api/events/events_lifecycle.hpp> #include "messaging.hpp" #include <jthread.hpp> namespace hex::messaging { constexpr static auto CommunicationPipePath = "/tmp/imhex.fifo"; con...
4b5e09da9a7b8bb287d133b1acefb974c0415a3d784eb546da4a264da2ad92ec
C++
2,525
97
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-License-Identifier: LGPL-3.0-only */ #include <stdexcept> #include <nlohmann/json.hpp> #include "parameters/parameterFactory.h" #include "parameters/parameterTraits.h" namespace OpenViBE { namespace Parameters { std::map<std::string, std::funct...
8dcadc38413683366df77a6d5a158315ebcdb99bf96cfdd77323a73a6e4ca68f
C++
2,530
77
// SPDX-FileCopyrightText: Inria <florent.leray@inria.fr> // SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> // SPDX-License-Identifier: AGPL-3.0-only #include <QGuiApplication> #include <QIcon> #include <QSettings> #include <QQuickStyle> #include <QLoggingCategory> #include <QQmlApplicationEngine> #include <...
d80889d76f62792266c81ae18cb317931533469e4043b1ce817d5e54105083d3
C++
2,534
83
#include "ovpCMouseControl.h" #include <iostream> #if defined TARGET_OS_Linux || defined TARGET_OS_MacOS #include <unistd.h> #endif namespace OpenViBE { namespace Plugins { namespace Tools { //Ambiguous without OpenViBEPlugins bool CMouseControl::initialize() { m_decoder = new Toolkit::TStreamedMatrixDeco...
b870d7f41758677584185498f29538af9be39d24739463f55ea84954e13a75aa
C++
2,542
43
#include "defines.hpp" #include "box-algorithms/CBoxAlgorithmClockStimulator.hpp" #include "box-algorithms/CBoxAlgorithmPlayerController.hpp" #include "box-algorithms/CBoxAlgorithmStimulationVoter.hpp" #include "box-algorithms/CBoxAlgorithmStreamEndDetector.hpp" #include "box-algorithms/CBoxAlgorithmTimeout.hpp" #incl...
74f9ebdad96abb19a1229edcd21fd653bced61bdef063e1ce81da27f12c373d0
C++
2,550
79
#include "ovpCStreamedMatrixEncoder.h" namespace OpenViBE { namespace Plugins { namespace StreamCodecs { bool CStreamedMatrixEncoder::initialize() { CEBMLBaseEncoder::initialize(); ip_pMatrix.initialize(getInputParameter(OVP_Algorithm_StreamedMatrixEncoder_InputParameterId_Matrix)); m_size = 0; return...
79d46d01f63d444685d98141823e04bf5045e60493ea79e089e425b63c86e090
C++
2,554
89
/** * SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #include "parameterStringVectorObject.h" #include <stdexcept> namespace OpenViBE { namespace Parameters { void parameterStringVectorObject::connectSignals() { if (!m_stringVector) return; m_connecti...
aba91cb1f9e8fa3c1b5c6ccb19b5e7894c5d3d33a74144ed8d6047ce8fd90ad5
C++
2,555
58
///------------------------------------------------------------------------------------------------- /// /// \file main.cpp /// \brief main file for box plugin. /// \author Thibaut Monseigne (Inria). /// \version 1.0. /// \date 12/03/2020. /// \copyright Copyright (C) 2022 Inria /// /// This program is free software: ...
a0b9e530646b301d800c0159d11faaae0e49ff59f7ad5509790dbbd1f1c1b9eb
C++
2,556
78
///------------------------------------------------------------------------------------------------- /// /// \file windowFunctions.cpp /// \brief Implementation of Windowing functions /// \author Alison Cellard /// \version 1.0 /// \date 13/11/2013 /// /// \copyright Copyright (C) 2022 Inria /// /// This program is fre...
26c3fc8282d19f73dcd628074c2b10c80bd6bb5b8bb4213d6df0c6bdedb43086
C++
2,558
109
#include "Contig.h" // // Statics // static const char* IDFIELD = "ID"; static const char* LENFIELD = "LN"; static const char* COVFIELD = "CV"; static const char* SEQFIELD = "SQ"; static const char* UNQFIELD = "UN"; static const char* ANTFIELD = "AN"; Contig::Contig() : m_length(0), m_coverage...
f63a09a3bc08996e32aea5d25f08e5d839c7e837e1dfdae6408aee5054100c88
C++
2,564
83
#include "ovbt_sg_defines.h" #include <iostream> #include <fstream> #include <string> #include <vector> enum class EGenerationTypes { CPP, MATLAB, PYTHON, LUA, UNKNOWN }; EGenerationTypes parse_argument(std::string option) { if (option == "--cpp") { return EGenerationTypes::CPP; } if (option == "--matlab") {...
5ac29d0a2991c025c5aadb16e6602b4db6383f96a8bcd3af3e1f892ec397dac7
C++
2,574
82
///------------------------------------------------------------------------------------------------- /// /// \file ovtTestFixtureCommon.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...
c5bc7c73190d0533d5add160d0d1f14712a0abddaa99926bab0ff2341aa385a9
C++
2,579
87
/* # ============================================================================= # Copyright (c) 2016 - 2022 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # ============================================================================= */ #include <iostream> #include <vector> #include <algorithm...
398837ea278a7b646de7bc3c8ca0dbf70d4480c2a5fc5c38850971a2dd1fe8b8
C++
2,584
110
/* * 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...
fe39e4c32575e5baa35f8f42469160c34afb3d55a92f112707664a48fd1f2c1b
C++
2,594
76
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #include "ParameterHelper.h" namespace OpenViBE { namespace Designer { bool setUIParameters(const Kernel::IKernelContext* context, Kernel::IBox *box, ...
1fbfa051e9a5e573bab1789905b18d06812d044c9e0a02ec3bd8460a1258e673
C++
2,604
81
#include "ovpCChannelUnitsDecoder.h" namespace OpenViBE { namespace Plugins { namespace StreamCodecs { // ________________________________________________________________________________________________________________ // bool CChannelUnitsDecoder::initialize() { CStreamedMatrixDecoder::initialize(); op_bDyn...
2a7eb06b5e498a4f3e6589cd0d95a44a03bc623d62d1c4f654b346cff29befd9
C++
2,605
84
/******************** 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...
cd9bd69292b0ac860a7d93f171c97a18edb2eca183f7703ae54e4629ab7da720
C++
2,613
90
//----------------------------------------------- // Copyright 2012 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTCARopebwt - Construct the BWT for a set of reads // using Heng Li's ropebwt implementat...
0036801ad828210e851e27f465f7a94b677214415194e5b34f3afcd65c4762f6
C++
2,620
69
/******************** 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...
a4f0fb6f121349d354765b6f65aab57a0ebbcc4d26605401103a1b8ab2717355
C++
2,621
117
#include <iostream> #include <cmath> // This just shows that it has a fairly low upper limit in 'n', the // size of the input tree. Depends on beta, but seems to be perhaps // only 150 or so. Can this be loggified? // Answer 26 March 2015. Yes it can. Now it does not have that limit. // Build using g++, then run ...
9dfa854a9095180485edcc9919ae6e5cca2d278bd66d0866b3cb03d7a115b2e9
C++
2,627
117
#include <stdlib.h> #include "johnsonRyanTV.h" using namespace std; // Dynamic programming algorithm for the 1d fused lasso problem // (Ryan's implementation of Nick Johnson's algorithm) void dp(int n, double *y, double lam, double *beta) { // Take care of a few trivial cases if (n==0) return; if (n==1 || lam=...
977991ec9373bedae60e1f53a371fd638d72ab5c55ab62ad8a714bd702928ede
C++
2,635
72
#if defined(WIN32) #include "ovasCConfigurationCognionics.h" namespace OpenViBE { namespace AcquisitionServer { /*_________________________________________________ Insert callback to specific widget here Example with a button that launch a calibration of the device: //Callback connected to a dedicated gtk button: ...
4e5a1b7ed79d17d44cee9d8e238b34c19ffc0a084aa1e727c814dfa1db44c516
C++
2,646
92
#include "ovtkString.h" #include <cstring> #include <string> #include <algorithm> #include <functional> #include <cctype> #include <cstring> namespace OpenViBE { namespace Toolkit { namespace String { static bool isSeparator(const uint8_t value, const uint8_t* separator, const size_t nSeparator) { for (size_t ...
0c17ab222049ce29867536ea1825922616d2aa2e8641861cdcc29919d6264f5b
C++
2,647
84
#include "ovpCEBMLBaseEncoder.h" namespace OpenViBE { namespace Plugins { namespace StreamCodecs { // ________________________________________________________________________________________________________________ // bool CEBMLBaseEncoder::initialize() { op_buffer.initialize(getOutputParameter(OVP_Algorithm_EBM...
7988de3283742f210aa04e7389f527878e6291c568df67324ebd5fd36b80928a
C++
2,659
108
//----------------------------------------------- // Copyright 2009 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // Occurrence.cpp - Data structure holding the number of times // the letter b appears in the...
d07ec1527f9cdd54bf2fab9d3bef2f7d974c6bb9feafcfcbb06ff10ee3eedada
C++
2,660
103
//----------------------------------------------- // Copyright 2012 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- #include "BloomFilter.h" #include <cstdlib> #include <assert.h> #include <stdio.h> #include "Mur...
3e846f06b5309cfeb7404beee8ce9b52320cbf18cdcf632ceb9241780d216969
C++
2,664
84
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # =============================================================================. */ #include "coreneuron/nrnconf.h" #include "coreneuron/per...
ce784b35865dfdcc6e4e9f814328d70e99df5f2c3aaa3342003f30033705bcb2
C++
2,669
69
#include <hex/api/content_registry/settings.hpp> #include <hex/helpers/fmt.hpp> #include <imgui.h> #include <nlohmann/json.hpp> #include <windows.h> namespace hex::plugin::windows { namespace { constexpr auto ImHexContextMenuKey = R"(Software\Classes\*\shell\ImHex)"; void addImHexContextMenuE...
88f0780f07efc0c5348f8bb6366dfd41a1f242813dda63f036b5cad9705ef786
C++
2,675
80
#include "CIdentifier.hpp" #include <cstdio> #include <random> #include <sstream> #include <iomanip> namespace OpenViBE { //-------------------------------------------------------------------------------- CIdentifier& CIdentifier::operator=(const CIdentifier& id) { m_id = id.m_id; return *this; } //---------...
6513090c95e8f033fb65ff25f5debae5aff808e815ad9c0772796936aa80442d
C++
2,679
74
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # ============================================================================= */ #include <iostream> #include <vector> #include "coreneur...
78e5158965aa87fbaa0e22f0101de11851cc06ac6084fa1606d4e33734c4f468
C++
2,687
101
#include "system/ovCChrono.h" #include "system/ovCTime.h" namespace System { CChrono::~CChrono() { delete [] m_stepInTime; delete [] m_stepOutTime; } bool CChrono::reset(const size_t nStep) { if (!nStep) { return false; } uint64_t* stepInTime = new uint64_t[nStep + 1]; uint64_t* stepOutTime = n...
91abcd852f4ead689c0e8996c01069ba5112e8d35e4e81c8dee251ee880e4a69
C++
2,689
75
///------------------------------------------------------------------------------------------------- /// /// \file CErrorManager.cpp /// \brief Error manager kernel default implementation /// /// This manager is reponsible for handling errors in the framework. /// Errors in the framework are considered as not acceptab...
bb8a0ecb0a52495598040c183923ece86d78e172e028164412667d0569f4560d
C++
2,695
79
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # ============================================================================= */ #include "coreneuron/nrnconf.h" #include "coreneuron/sim/...
b8e6d19a2237bad9b5431d64280596fa369b3ba4fb0b187a6d67f140401d6581
C++
2,699
107
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # =============================================================================. */ #include <iostream> #include "coreneuron/io/nrn_filehand...
4e2b63406c5911ae81d97d06aa7611982f537405e0261ac77c298761f3e7efe5
C++
2,705
78
///------------------------------------------------------------------------------------------------- /// /// \file CAlgorithmLDADiscriminantFunction.cpp /// \brief Classes implementation for the Algorithm LDA Discriminant Function. /// \copyright Copyright (C) 2022 Inria /// /// This program is free software: you can ...
845fdaf69bdca082eb6e81926f4d8cbbfae391386b3e110491d47f9dfff08e0d
C++
2,714
106
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #include "parameterIntObject.h" namespace OpenViBE { namespace Parameters { ParameterIntObject::ParameterIntObject(const std::string& name, const std::string& description, int value): ParameterObject() { m_i...
f80a4e7f0c82c3dcf4dc8f97a464a1ae30abff65b7c0f7e55648a41e6c6eec53
C++
2,734
98
// SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> // SPDX-License-Identifier: AGPL-3.0-only #include "IOPort.h" namespace OpenViBE { namespace Designer { IOPort::IOPort(Kernel::IKernelContext* context, Kernel::IBox* box, PortType portType, int portIndex) : m_context(context), m_box(box), m...
c5ee0e3083b738e538a783b3304bd0c99f0474aca09fbf9709b9b53c54ad4605
C++
2,741
118
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // SAReader.h - Read a suffix array file from disk // #include "SAReader.h" #include "Suffix...
bf9945f4bc6349ae50af229af6c531d349d086810ee969ca5502a841db7f4e7e
C++
2,748
127
/******************************************************************************* 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:...
6801e6e28ccec7031c0b81ff11a3281bf6c06f1462bd26005f8489c9eb07583c
C++
2,752
34
#include <hex/api/content_registry/pattern_language.hpp> #include <pl/patterns/pattern.hpp> namespace hex::plugin::visualizers { void drawLinePlotVisualizer(pl::ptrn::Pattern &, bool, std::span<const pl::core::Token::Literal> arguments); void drawScatterPlotVisualizer(pl::ptrn::Pattern &, bool, std::span<co...
b98555d4d94b5b49d32df5d2838d21624d52a420d34e322d2d76827382626ccb
C++
2,754
96
// // OpenViBE Tracker // // @author J.T. Lindgren // // n.b. having this as a separate file so EBML/Demuxer dependencies do not get pulled into StreamBundle #include <iostream> #include <algorithm> #include "StreamBundleImportExport.h" #include "EBMLSourceFile.h" #include "Demuxer.h" #include "BoxAdapterGenericSt...
0bc447618ca366999eb9057bb5d21200b03123b52f352ffd4ee6130762491116
C++
2,758
68
///------------------------------------------------------------------------------------------------- /// /// \file main.cpp /// \brief Main file for artifact plugin, registering the boxes to OpenViBE /// \author Thibaut Monseigne (Inria). /// \version 1.0. /// \date 08/12/2020. /// \copyright Copyright (C) 2022 Inria ...
542b4b761868f255f674896b8d6917b667968713e72ffe55c81cd8c70bff4939
C++
2,759
94
///------------------------------------------------------------------------------------------------- /// /// \file threadPool.cpp /// \brief Thread Pools implementation /// \author Arthur Desbois /// \version 1.0 /// /// \copyright Copyright (C) 2022 Inria /// /// This program is free software: you can redistribute it ...
d05592d774e90d82bbcb6c273e8efd2b2d3dc2bc001aae0b1a9baa5cb854302f
C++
2,781
133
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTReaderAsciiAscii - Read a BWT file from disk // #include "BWTReaderAscii.h" #include "...
ed365f89e8f60a423141a76b8aef4efcb73c42aa866ee3512486dfbe9d70f5b3
C++
2,802
107
/* * This is a C++ wrapper around tabix project which abstracts some of the details of opening and jumping in tabix-indexed files. * Author: Erik Garrison erik.garrison@gmail.com */ #include "tabix.hpp" Tabix::Tabix(void) { } Tabix::Tabix(string& file) { filename = file; const char* cfilename = file.c_str...
72b4e0422ad5fd7e587fd6169b0350046474030c492bf1632ea496eb53819a07
C++
2,818
114
/******************** 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...
7988c54d1a34041936fc64aabfe6a7bcb95bb1a5d84ce6bf96503ea42cfa3529
C++
2,828
84
#include "ovasCDriverGenericRawTelnetReader.h" #include "ovasCConfigurationGenericRawReader.h" namespace OpenViBE { namespace AcquisitionServer { CDriverGenericRawTelnetReader::CDriverGenericRawTelnetReader(IDriverContext& ctx) : CDriverGenericRawReader(ctx), m_settings("AcquisitionServer_Driver_GenericRawTelnetR...
0111a1aaacbebf6977308217d8ea31b4bce562e2c61ac8d0aa06765d5989070a
C++
2,833
93
#if defined(OS_WINDOWS) #include "messaging.hpp" #include <hex/helpers/logger.hpp> #include <windows.h> namespace hex::messaging { std::optional<HWND> getImHexWindow() { HWND imhexWindow = nullptr; ::EnumWindows([](HWND hWnd, LPARAM ret) -> BOOL { // Get the window name ...
0e557661c2c3165ce5d4456b048b4dd0bf004b633b3f3782f9cfdfc0dd4dc336
C++
2,836
97
/******************** 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...
b989a63398b6c2fdaa0b2e997985ffc32bd16436bf3cdedc276860ca28ae6db3
C++
2,850
109
/******************** 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...
b547b4d664fddf4f76338a69221eea979fe781ae981e9471796d408eefcf53ec
C++
2,852
67
// // OpenViBE Tracker // // @author J.T. Lindgren // #include "Stream.h" #include "StimulationStreamFilter.h" #include "TypeStimulation.h" namespace OpenViBE { namespace Tracker { // @note At some point I thought to make a derived class of stimulation stream that simply wouldn't pass through // the filtered stimu...
8062723d0010d9e55cd7f4100c4fb5c1a1ae0a75b6587501c1804b27d4995c3e
C++
2,857
72
#include <content/helpers/capstone.hpp> #include <hex/api/localization_manager.hpp> #include <hex/ui/imgui_imhex_extensions.h> #include <hex/helpers/scaling.hpp> #include <pl/pattern_language.hpp> #include <pl/patterns/pattern.hpp> #include <imgui.h> #include <capstone/capstone.h> namespace hex::plugin::disasm { ...
dbd6859d0412a96fc022ec86b2d42703dc8cff1b2dad1be37e6558beb82197fd
C++
2,858
84
#include <hex/api/event_manager.hpp> #include "messaging.hpp" #include <hex/subcommands/subcommands.hpp> #include <hex/api/plugin_manager.hpp> #include <hex/helpers/fs.hpp> #include <hex/helpers/logger.hpp> #include <hex/helpers/default_paths.hpp> #include <wolv/utils/guards.hpp> #include <wolv/utils/string.hpp> ...
ec813a5c45316f8835614ee8ac0d79bed276f5776b482354172f185dffd90660
C++
2,862
77
#include "ovasCConfigurationMBTSmarting.h" #include <string.h> #include <iostream> namespace OpenViBE { namespace AcquisitionServer { /*_________________________________________________ Insert callback to specific widget here Example with a button that launch a calibration of the device: //Callback connected to a ...
753e6a2a88391ec6951ffc04a8c736c6fbdfb31c8f570b4068c8a6c23abe4b1d
C++
2,873
123
/******************** 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...
2b012371d08dfcdb718f3fcd497de679bf9f0c741b062240495ef91d3ece30cb
C++
2,876
112
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BitChar - Fixed-size bitset of 8 bits // #include <iostream> #include <assert.h> #include...
9ca495f10f072de218f08114741ef1a356ea6d57d54f9db2b5fc26fab7b5193b
C++
2,889
63
#include <hex/api/content_registry/pattern_language.hpp> #include <imgui.h> #include <fonts/vscode_icons.hpp> #include <pl/patterns/pattern.hpp> namespace hex::plugin::visualizers { namespace { void drawColorInlineVisualizer(pl::ptrn::Pattern &, bool, std::span<const pl::core::Token::Literal> arguments...
d0d7ac51ec9ed85599b55a65cbba402a9eb0465fe5d2179afe3c861fcdaff1ad
C++
2,889
87
#include <hex/api/localization_manager.hpp> #include <imgui.h> #include <hex/ui/imgui_imhex_extensions.h> #include <fonts/vscode_icons.hpp> #include <numeric> namespace hex::plugin::builtin { void drawEuclidianAlgorithm() { static i64 gcdResult = 0; static i64 lcmResult = 0; static i64 p...
a916183aadb92ce7e36400a7806d47abba0200d5c50f16efb424a0f5967a3413
C++
2,890
88
///----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // ConnectProcess - Algorithm to resolve the sequence // connecting two ends of a paired end...
66c4306c8962776e13609c56868911edbb53d1828412a93a456e6846acecd8c3
C++
2,895
94
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTWriterBinary - Write a run-length encoded BWT to a binary file // #include "BWTWriterB...
f1ee0a392fcda716a3bf62a364fc6abe9e2951317de6945fb126085980dcc039
C++
2,898
106
/* * 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...