sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
f713a2803f62cc6c13af0b6e1e44b6aa66372d7d9c485b0ed42c3943cd6355dc | C++ | 3,637 | 88 | #include <hex/api/content_registry/communication_interface.hpp>
#include <hex/api/content_registry/settings.hpp>
#include <hex/api/content_registry/background_services.hpp>
#include <hex/api/events/events_lifecycle.hpp>
#include <hex/helpers/logger.hpp>
#include <wolv/net/socket_server.hpp>
#include <nlohmann/json.h... |
f21b1b9b8a52c3cd715703d5a2dfa5043869bdfc92e93fa0ee8eaf0ae4fd90df | C++ | 3,643 | 135 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "parameters/parameterPath.h"
#include "parameters/parameterFactory.h"
namespace OpenViBE {
namespace Parameters {
ParameterPath::ParameterPath(void) : ParameterBase<std::string, ParameterPath>()
{
}
Pa... |
54ac8ac24a60d9ba592e81ae12e09a7ce8bce62d39e68c800785a40697a83a22 | C++ | 3,650 | 99 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmClockStimulator.cpp
/// \brief Classes implementation for the Box Clock stimulator.
/// \author Yann Renard (Inria).
/// \version 1.0.
/// \copyright Copyright (C) 2022 Inria
///
/// This pro... |
e0fdd4ff10134ec5d9ea1eef839e47e2e16317b1edc3412984ac33ea4b6f86fa | C++ | 3,653 | 112 | /**
* SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "LSLOutputWriter.h"
#include <random>
#include <sstream>
#include <iomanip>
static std::string generateStreamID()
{
std::random_device rd;
std::mt19937_64 gen(rd());
std::uniform_int_dist... |
4dc58378966af638918da4170d55e8ff7f2ed69ee3309f64af977f3f962c3a7e | C++ | 3,661 | 63 | #include "ovasCConfigurationGenericRawReader.h"
namespace OpenViBE {
namespace AcquisitionServer {
CConfigurationGenericRawReader::CConfigurationGenericRawReader(const char* gtkBuilderFilename, bool& limitSpeed, uint32_t& sampleFormat, uint32_t& sampleEndian,
... |
2d60f3698d5dfb98456b36c5431dce67d5a55d54c18aaaca7bb6b7efef3b5734 | C++ | 3,675 | 69 | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
#include "../nrnmpi.h"
namespace coreneuron {
/* from... |
28a4dd41ca5b8085fdbd6a1af07725eaf35aa3c0e66c49cead71410de93ec71e | C++ | 3,686 | 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... |
7a262ac4e4bd565bd392385bfa67acf80519d263d032a4e05bec59a396c8c2cf | C++ | 3,688 | 118 | /****************************************************************************
** Meta object code from reading C++ file 'QtGuiApplication4.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.8.0)
**
** WARNING! All changes made in this file will be lost!
***************************************************... |
3bc365974326038027f69842ee31835aad979f0a6057c451984dd5397b522a2b | C++ | 3,693 | 92 | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================
*/
#include "sonata_report_handler.hpp"
#include "coreneuron... |
961cc40f179d53ca0ef0b28e11b8b873d45f9a294dae8aec7ca1999aa10c8b6b | C++ | 3,698 | 117 | /*
* 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... |
1a9229001de158c6053ff3974efd7808b5e45420ff799f7f74cef370356f13de | C++ | 3,700 | 94 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBitMaskSettingView.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... |
744221728481fb09a37f7a42757d2d9c5d344dd3ad2b3d2902c5f2907bc98ee7 | C++ | 3,703 | 129 | #include "IWriter.h"
#include <stack>
#include <string>
namespace XML {
class CWriter final : public IWriter
{
public:
explicit CWriter(IWriterCallback& callback) : m_callback(callback) {}
bool openChild(const char* name) override;
bool setChildData(const char* data) override;
bool setAttribute(const ... |
675d9b04cd78fda4bc76b89e81cf46542ed6559b0a5dca9f5d8913ec71c6ea5f | C++ | 3,706 | 112 | /* -*- mode: C++; indent-tabs-mode: nil; -*-
*
* This file is a part of LEMON, a generic C++ optimization library.
*
* Copyright (C) 2003-2010
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
* (Egervary Research Group on Combinatorial Optimization, EGRES).
*
* Permission to use, modify and distribut... |
6e65fe4c82864f6cfcc0333b5533071db346aaec0c02fe639fb7b43574e4d1ca | C++ | 3,718 | 146 | //-----------------------------------------------
// Copyright 2009 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// Pileup - An array of strings containing all the seen
// bases for a given region/read
//
#... |
56608e3880de430953d3ec280da2a605c2c9ac9ca907720be8df3ef29c4e5d51 | C++ | 3,732 | 105 | #include <ui/widgets.hpp>
#include <imgui.h>
#include <fonts/vscode_icons.hpp>
#include <hex/ui/imgui_imhex_extensions.h>
#include <hex/helpers/scaling.hpp>
#include <hex/api/imhex_api/hex_editor.hpp>
namespace hex::ui {
void regionSelectionPicker(Region *region, prv::Provider *provider, RegionType *type, bool ... |
1a09b29853fb3fb0d9f61edb656fa67bdbaaaff28bfc07ff217464dada9d602c | C++ | 3,733 | 144 | // SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
// SPDX-License-Identifier: AGPL-3.0-only
#include "CGrazVisuWindow.h"
#include <QQmlContext>
#include <QQmlEngine>
#include <QQuickItem>
#include <QQuickView>
#include <QQmlComponent>
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
namespace Open... |
43db5970113e194e6039c0844973e49133bc3d39bde0ccd5eac6f088a7d1bafd | C++ | 3,741 | 86 | ///-------------------------------------------------------------------------------------------------
///
/// \file CInputDialog.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 pub... |
facdff82db6679f6fd18feb3c4e8d140215a1ce1497983a3a1a03f7d34f0dfa7 | C++ | 3,741 | 108 | #if defined(TARGET_HAS_ThirdPartyEnobioAPI)
#include "ovasCConfigurationEnobio3G.h"
#include <gtk/gtk.h>
#include <stdlib.h>
#include <string>
#include <sstream>
#include <vector>
#include <iterator>
#include <iostream>
#include <algorithm>
namespace OpenViBE {
namespace AcquisitionServer {
/*_______________________... |
3730db71f420bcfd56f44c14d5a09b8372e1223cdcd8f7a5804290f03e8915bb | C++ | 3,750 | 107 | /*
* \author Jussi T. Lindgren / Inria
*
* This is currently rather a simple benchmark than a test. It can be used to see how Eigen loads the cores,
* simulating spatial filter (matrix multiplication use) with large matrices. Basically the core load should be
* smaller during the stream simulation test than the bu... |
6347ec35788adae6a3e2642d12175e8d0250134538ec15eee5143dbd580d691d | C++ | 3,750 | 148 | //-----------------------------------------------
// Copyright 2009 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// Base bidirectional edge class
//
#include "Edge.h"
#include "Vertex.h"
//
EdgeDesc Edge... |
dc558a5a806369400c07af4dca47e7cdc5ce77592a45f6693e76fd6193187f81 | C++ | 3,754 | 88 | //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... |
b362f294c1b602b61323c23c2c44fa7ea24790b3d81f485253f7374222f2b1b7 | C++ | 3,756 | 125 | #include "ovasCTagStream.h"
#include <system/ovCTime.h>
#include <boost/bind.hpp>
#include <iostream>
#include <thread>
#include <mutex>
namespace OpenViBE {
namespace AcquisitionServer {
namespace Plugins {
void CTagQueue::push(const Tag& tag)
{
std::lock_guard<std::mutex> guard(m_mutex);
m_queue.push(tag... |
9667c483a25137f6496ca6a82997e3ca1dca3379becbf5c79ae9f580a04d0d53 | C++ | 3,767 | 126 | #include <imgui.h>
#include <content/providers/udp_provider.hpp>
#include <hex/helpers/utils.hpp>
#include <hex/ui/imgui_imhex_extensions.h>
#include <fmt/chrono.h>
namespace hex::plugin::builtin {
prv::Provider::OpenResult UDPProvider::open() {
m_udpServer = UDPServer(m_port, [this](std::span<const u8> ... |
ad94d9779398b73ca5b28b42c231f5881d5f8cfd6f33b7e6134f59561194305c | C++ | 3,769 | 93 | #include <hex/api/content_registry/settings.hpp>
#include <hex/helpers/http_requests.hpp>
#include <hex/api/localization_manager.hpp>
#include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h>
#include <fonts/vscode_icons.hpp>
#include <nlohmann/json.hpp>
namespace hex::plugin::builtin {
using namespace st... |
aa6c09e44d9818d3c2b0aed6638ddbe8992652ea93b5130b1e8391287e530d0c | C++ | 3,777 | 147 | /* -*- 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... |
a6b29ab46a39ed25608af618096b01fcca19b4bcd20e4c60bfc42cccc25ad6e3 | C++ | 3,806 | 136 | //-----------------------------------------------
// Copyright 2009 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// SeqReader - Reads fasta or fastq sequence files
//
#include <iostream>
#include <algorithm... |
5de576ad6c1db684bac2a208309341057f6c28bc50d26b4d339b652b5326df2d | C++ | 3,813 | 95 | namespace hex::plugin::builtin {
/*void drawFileUploader() {
struct UploadedFile {
std::string fileName, link, size;
};
static HttpRequest request("POST", "https://api.anonfiles.com/upload");
static std::future<HttpRequest::Result<std::string>> uploadProcess;
st... |
738f6aaf83a006445e6dd2d008ff5c309b3d5c5075c1d7b19504d4fad985081c | C++ | 3,815 | 85 |
/********************
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... |
e5909bd6705dc28b57578e87232d1205b1649d644019c9b8812141526d1e35a4 | C++ | 3,830 | 150 | #include <hex/providers/undo_redo/stack.hpp>
#include <hex/providers/undo_redo/operations/operation_group.hpp>
#include <hex/api/events/events_interaction.hpp>
#include <hex/providers/provider.hpp>
#include <wolv/utils/guards.hpp>
#include <atomic>
namespace hex::prv::undo {
namespace {
std::recursive... |
89353f4c3193ee753174cc9a89bc3f0f7692013cbd25e423a7a96c49d4ffd82b | C++ | 3,831 | 113 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include <QApplication>
#include <QStyleHints>
#include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QQuickWindow>
#include <QSGRendererInterface>
#include <QtQml/qqmlextensionplugin.h>
#include <QLo... |
2251d48f7640894fb08488f852fb90b343b9f2cc3a15d3b70cf840a88a5d9f9b | C++ | 3,843 | 108 | #include <fs/Files.h>
#include <boost/filesystem.hpp>
#include <boost/version.hpp>
#include <gtest/gtest.h>
#define TEMP_OUTPUT_DIR TMP_DIR "/オッペンヴィベ"
#define TEMP_OUTPUT_DIR_COPY TMP_DIR "/オッペンヴィベ_Copy"
#define TEMP_OUTPUT_ASCII_FILE_PATH TEMP_OUTPUT_DIR "/file.txt"
#define TEMP_OUTPUT_UTF_FILE_PATH_COPY TEMP_OUTPUT... |
b4fa66cd9417906ae2a86bbad6599a0f41e1e722f5bb1a09e5f8074409f870b1 | C++ | 3,853 | 155 | // SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
// SPDX-License-Identifier: AGPL-3.0-only
#include "CGrazMultiVisuWindow.h"
#include <QQmlContext>
#include <QQmlEngine>
#include <QQuickItem>
#include <QQuickView>
#include <QQmlComponent>
#include <openvibe/ov_all.h>
#include <toolkit/ovtk_all.h>
namespace... |
c7bbe71e4b8633f5a1b55d6af2410133ecb8a6a7cd42e37e356b6eb23582e3b8 | C++ | 3,866 | 84 | /**-------------------------------------------------------------------------------------------------
* \file main.cpp
* \brief Main file for simple visualization plugin, registering the boxes to OpenViBE
* \copyright Copyright (C) 2022 Inria
*
* This program is free software: you can redistribute it and/or modify
... |
85eaa72c486eedb9bd9696fda626762c05fe8fc86878b2921a0c7eebc151ca89 | C++ | 3,867 | 106 | // SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr>
// SPDX-License-Identifier: AGPL-3.0-only
#include "CImageDisplayObject.h"
#include <QQuickItem>
#include <QQuickWindow>
#include <QQmlEngine>
#include <QQmlComponent>
#include <QQmlContext>
namespace OpenViBE {
namespace Plugins {
namespace SimpleVisualiz... |
97efd4c75c944439fe47589312dbf07ca232b1b3797b1ea288bab5932ff8e331 | C++ | 3,868 | 162 | /* -*- 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... |
e980c48e6ba375b1bb12809d54d03659492c8c1ddad355877e0b7647d284975c | C++ | 3,876 | 155 | // SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
// SPDX-License-Identifier: AGPL-3.0-only
#include "LevelMeasureWindow.h"
#include <QQuickView>
#include <QQmlContext>
namespace OpenViBE {
namespace Plugins {
namespace SimpleVisualization {
LevelMeasureWindow::LevelMeasureWindow(QQmlEngine *engine, Kernel:... |
81c081d4196280dc33e4f114be02545a343bd930ad4660e9113fe8549d186446 | C++ | 3,880 | 122 | /*****************************************************************************
genomeFile.cpp
(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.
**************... |
7592943b265018f7cd0c85e435e45b981724c3e3e288bc7619e03af90f2dd4e5 | C++ | 3,881 | 151 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include <iterator>
#include <algorithm>
#include "parameters/parameterTraits.h"
namespace OpenViBE {
namespace Parameters {
ParameterTraits::ParameterTraits() {}
ParameterTraits::ParameterTraits(const std::str... |
275d799ff4e207c0806a2bae614ff468bc8dec3ca0a5f91ac1ced676174a3c8f | C++ | 3,888 | 125 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "parameterMultiSelectObject.h"
namespace OpenViBE {
namespace Parameters {
ParameterMultiSelectObject::ParameterMultiSelectObject(std::vector<std::string> availableValues): ParameterObject()
{
m_mul... |
12c918c2ab396c06072fd9338b296e2c826ba6da84fbd5145c41197c39ffcdfb | C++ | 3,896 | 99 | #include <content/visualizer_helpers.hpp>
#include <hex/helpers/scaling.hpp>
#include <implot.h>
#include <imgui.h>
#include <hex/ui/imgui_imhex_extensions.h>
#include <pl/patterns/pattern_bitfield.hpp>
namespace hex::plugin::visualizers {
void drawDigitalSignalVisualizer(pl::ptrn::Pattern &, bool shouldReset,... |
fabb2388aeeeb6c16e3246a1bc1384186fca38ac85a9230371d0fecd74120b4c | C++ | 3,899 | 148 | /* -*- 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... |
48a3f09b464e74f8e2067352b91d2a8aaeb1a32d12de6a9e83a9514c0c0ad572 | C++ | 3,902 | 115 | #if defined TARGET_HAS_ThirdPartyITPP
#include "ovpCWindowingFunctions.h"
#include <iostream>
#include <itpp/itcomm.h>
namespace OpenViBE {
namespace Plugins {
namespace SignalProcessing {
void CWindowingFunctions::setSampleBuffer(const double* buffer) const
{
itpp::vec windows = itpp::ones(int(m_SamplesPerBuf... |
9c8a792b0d13b369ebae9234635a646de45e0c4645ff6a3a0a70e6f70b15d055 | C++ | 3,905 | 139 | ///-------------------------------------------------------------------------------------------------
///
/// \file CRendererCube.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... |
8a8cff019427370ef87bb362d0f9e2ff736f36fb4bcfdf9ef1290034d412f3e8 | C++ | 3,928 | 130 | #include "ovpCInputChannel.h"
#include <iostream>
namespace OpenViBE {
namespace Plugins {
namespace SignalProcessing {
bool CInputChannel::initialize(Toolkit::TBoxAlgorithm<IBoxAlgorithm>* boxAlgorithm)
{
m_isWorking = false;
m_startTimestamp = 0;
m_endTimestamp = 0;
m_stimulationSet = nullptr;
... |
1f706d6a36058dd83c640e05f452145b77cbe2ced9fa8b95910d8e665c476750 | C++ | 3,937 | 105 | ///-------------------------------------------------------------------------------------------------
///
/// \file CCommentProxy.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... |
b15a74709df45f4c9a3a80e4ddd51601002eed2d8677bec3a9510254c8125164 | C++ | 3,949 | 105 | ///-------------------------------------------------------------------------------------------------
///
/// \file CAlgorithmPairwiseStrategyPKPD.cpp
/// \brief Classes implementation for the Algorithm Pairwise Strategy PKPD.
/// \author Guillaume Serrière (Inria).
/// \version 0.1.
/// \copyright Copyright (C) 2022 I... |
574b8ef7fed3fbe9a91338f8d65906c550bacf064112692cff30825d1dcc7478 | C++ | 3,952 | 111 | #include "ovasCDriverGenericTimeSignal.h"
#include "ovasParameterHelper.h"
#include <toolkit/ovtk_all.h>
#include <system/ovCTime.h>
namespace OpenViBE {
namespace AcquisitionServer {
CDriverGenericTimeSignal::CDriverGenericTimeSignal(IDriverContext& ctx)
: IDriver(ctx)
{
m_driverCtx.getLogManager() << Ker... |
6f8674e14bf09f8fe4cce79f34c4c1f62ef9302730a4c84fddd4e739d21146c5 | C++ | 3,957 | 115 | /*******************************************************************************
"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.
----------... |
6d0c29c4bdf9689f097543568c44ec0d5e98ee8887e2d97edc4c0911690dc884 | C++ | 3,959 | 181 |
/********************
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... |
a6a6fb8a2de3f2308fcea39770f0cfd1f23ba636723e8cfea7734fee01d8e95a | C++ | 3,966 | 139 | #include "json/json.h"
#include "json/json-forwards.h"
#include "SeqLib/MiniRules2.h"
#include <cstdio>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
const std::vector<std::string> m_propertyNames = {"reference", "mapQuality", "isReverseStrand"};
... |
43c9e7bbea02575106400b88b0694516ea32509fca896309082be94acc9c1ea3 | C++ | 3,979 | 111 | #include "ovpCBoxAlgorithmMatrixTranspose.h"
namespace OpenViBE {
namespace Plugins {
namespace SignalProcessing {
bool CBoxAlgorithmMatrixTranspose::initialize()
{
m_decoder.initialize(*this, 0);
m_encoder.initialize(*this, 0);
return true;
}
bool CBoxAlgorithmMatrixTranspose::uninitialize()
{
m_enc... |
dafdb6ec213a50ff19e8d61d5cd82b0c71357afe671596c3cd08939f668c35d2 | C++ | 3,981 | 193 | //-----------------------------------------------
// Copyright 2009 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// ReadTable - A 0-indexed table of reads
//
#include <iostream>
#include <algorithm>
#includ... |
22ad5c6c608073f2513b5518e53247e9fbe944859bec10a0b7d6205d7ab61d9b | C++ | 3,994 | 168 | #include "drawwidget.h"
#include <QDebug>
#include <QMessageBox>
#include <QCursor>
#include <QImage>
#define MARGIN 10
#define THRESHOLD 125
int min(int x, int y){
return x > y? y : x;
}
int max(int x, int y){
return x > y? x: y;
}
DrawWidget::DrawWidget(QWidget *parent) : QWidget(parent)
{
this->setMax... |
ad753cbc97eca6b033c89b1c1f5db65a79ee11db508c8b7c5a42feb4813fa1e2 | C++ | 3,994 | 85 | #include "ovpCAcquisitionEncoder.h"
namespace OpenViBE {
namespace Plugins {
namespace StreamCodecs {
bool CAcquisitionEncoder::initialize()
{
CEBMLBaseEncoder::initialize();
ip_bufferDuration.initialize(getInputParameter(OVP_Algorithm_AcquisitionEncoder_InputParameterId_BufferDuration));
ip_experimentIn... |
f62937eea52bc0ab294d0af3197c8b4b68a275aaf8590fcca24b6e95b22048a7 | C++ | 4,020 | 168 | /*
* PackedVector.cpp
*
* Created on: Feb 15, 2011
* Author: tomasoni
*/
#include "Numerical.h"
#include "PackedVector.h"
#include "assert.h"
PackedVector PackedVector::packedProd(double val) {
for (int k = 0; k<size(); k++)
packedReplace(k, values[k]*val);
return *this;
}
PackedVector PackedVecto... |
e1e681bc6bb6f26eeac310ba53c632bfd96d11c6cc8c2ef1a111d9e2d8d96620 | C++ | 4,022 | 102 | #include "ovpCStimulationDecoder.h"
namespace OpenViBE {
namespace Plugins {
namespace StreamCodecs {
// ________________________________________________________________________________________________________________
//
bool CStimulationDecoder::initialize()
{
CEBMLBaseDecoder::initialize();
op_stimulationS... |
d2d3d7de68c7497e9aba744430cdd2dbbe6f698a51628d8ac503402fc06505e6 | C++ | 4,024 | 128 | //
// OpenViBE Tracker
//
// @author J.T. Lindgren
//
#include "Selection.h"
#include <sstream>
#include <iomanip>
namespace OpenViBE {
namespace Tracker {
bool Selection::reset(const bool state) const
{
for (auto& t : m_tracks) { for (auto& s : t->getAllStreams()) { s->setSelected(state); } }
return true;... |
71fcb8db97e51fff6d3a56327623307c1b0a1989302d81b6ea1d5addb7f9352f | C++ | 4,038 | 71 | ///-------------------------------------------------------------------------------------------------
///
/// \file ovICSV.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... |
88054a794be9e144c4b29972b9f94d9e991f149522dbf5479e709257609045a2 | C++ | 4,038 | 102 | #include "ovpCOutputChannel.h"
namespace OpenViBE {
namespace Plugins {
namespace SignalProcessing {
bool COutputChannel::initialize(Toolkit::TBoxAlgorithm<IBoxAlgorithm>* boxAlgorithm)
{
m_boxAlgorithm = boxAlgorithm;
m_signalEncoder = &m_boxAlgorithm->getAlgorithmManager().getAlgorithm(
m_boxAlgo... |
4e0219f8cd3c5d4bb46e4cc433b8f92cc880a675ad5d8255b160874be4861253 | C++ | 4,041 | 116 | #include <script_api.hpp>
#include <hex/api/content_registry/provider.hpp>
#include <hex/api/imhex_api/provider.hpp>
#include <hex/api/imhex_api/hex_editor.hpp>
#include <hex/providers/provider.hpp>
#define VERSION V1
SCRIPT_API(void readMemory, u64 address, size_t size, void *buffer) {
auto provider = hex::ImHe... |
674b3442e7422856e7e5f702929dbc928e8c8cc18a518c1b64f171d772fe6204 | C++ | 4,044 | 93 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmStimulationListener.cpp
/// \brief Classes implementation for the Box Stimulation listener.
/// \author Yann Renard (Inria).
/// \version 1.0.
/// \copyright Copyright (C) 2022 Inria
///
/// ... |
537f5b19d812f1ff01b197fdef2d7f26e06e13abb68e4ce8c02af4f262781770 | C++ | 4,045 | 112 | #include "IConnection.h"
#include "IConnectionServer.h"
#include "IConnection.inl"
#include <cstring>
#include <iostream>
#if defined TARGET_OS_Linux || defined TARGET_OS_MacOS
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <cerrno>
#elif defined TARGET_OS_Windows
#else
#endif
names... |
3770f4c53914d31bee0ede010e43bc1b1d580a3576df175f2829ea60845e96c8 | C++ | 4,047 | 122 | #include "content/providers/memory_file_provider.hpp"
#include "content/providers/file_provider.hpp"
#include <popups/popup_text_input.hpp>
#include <cstring>
#include <hex/api/imhex_api/provider.hpp>
#include <hex/api/localization_manager.hpp>
#include <hex/api/events/events_provider.hpp>
#include <hex/api/events/re... |
79351f96317f1a410cb14d939f3d25d1d2096e3ae11ecffe33ae680a0ea44fac | C++ | 4,059 | 164 | /* -*- 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... |
f60ae5f754fb717b63b5d6a3eee74c821588e3109c2406db7ac0ea3577c16ae0 | C++ | 4,060 | 127 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "parameterListStringObject.h"
namespace OpenViBE {
namespace Parameters {
ParameterListStringObject::ParameterListStringObject(std::vector<std::string> available_values): ParameterObject()
{
m_listS... |
1ce54421f613bd29b99fd14f591afde3abadaeba11f2e99dabce5a50c60e51a9 | C++ | 4,066 | 153 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "parameterPathObject.h"
namespace OpenViBE {
namespace Parameters {
ParameterPathObject::ParameterPathObject(const std::string& name, const std::string& description, const QString& value, const OpenMode... |
a040c37958689884ac2a553c0fbbabeb17c1f558ec3e7fb3087244f775903e77 | C++ | 4,066 | 126 | ///-------------------------------------------------------------------------------------------------
///
/// \file uoEBMLWriterTest.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... |
0974375de5df63e87a92568470cda7dd08fcab42fad5fbbf5240661170eab3a6 | C++ | 4,067 | 176 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "parameters/parameterInt.h"
#include "parameters/parameterFactory.h"
namespace OpenViBE {
namespace Parameters {
ParameterInt::ParameterInt(void) : ParameterBase<int, ParameterInt>()
{
}
ParameterInt::... |
f8bae9c3d2dc8c5f13c9b9f0deca035aea7745857218762b21766faf4e733c86 | C++ | 4,069 | 175 |
/********************
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... |
b6443d3d1352305d6289d8fa9824865750ef3adcf34099025fbbd6a8f529fae3 | C++ | 4,074 | 108 | #include <content/providers/memory_file_provider.hpp>
#include <hex/api/shortcut_manager.hpp>
#include <hex/api/tutorial_manager.hpp>
#include <hex/ui/view.hpp>
#include <hex/api/events/requests_interaction.hpp>
#include <hex/api/events/events_gui.hpp>
namespace hex::plugin::builtin {
void registerIntroductionTut... |
a04992e20b8d7a0a93a4fe9ff40316d44175777afac8d7751e1fad5a272d3fb0 | C++ | 4,080 | 166 | /* -*- 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... |
a7973d9a9ff131ca19d3553da2a627c2e12d20a2857264b9100a7053b40cf1d3 | C++ | 4,082 | 95 | //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... |
8a980a06cbb3fd32216ccb122219a96bbb862cc1f145f347820046c829e8df55 | C++ | 4,086 | 115 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmSignalAverage.cpp
/// \brief Classes implementation for the Box Signal average.
/// \author Bruno Renier (Inria).
/// \version 0.5.
/// \copyright Copyright (C) 2022 Inria
///
/// This progra... |
a1a52295a7827e4676949fd3250081cd005213c72adf9725004b5055511f7e14 | C++ | 4,092 | 93 | /*
* NeuroServo driver for OpenViBE
*
* \author (NeuroServo)
* \date Wed Nov 23 00:24:00 2016
*
*/
#if defined TARGET_OS_Windows
#if defined TARGET_HAS_ThirdPartyNeuroServo
#include "ovasCConfigurationNeuroServoHid.h"
namespace OpenViBE {
namespace AcquisitionServer {
// Automatic Shutdown callback
static void Auto... |
989e8aa800ceea7f5cb221f28f3d2063a5b988cd17d3657c6dcfa20748384fba | C++ | 4,102 | 131 | //-----------------------------------------------
// Copyright 2012 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// PopulationIndex - A structure mapping a read
// index to a member of a population
//
#incl... |
98e80d86daeadebca9f5bd3a09e824f6f43e6e621daab585636f8eaefa27799b | C++ | 4,109 | 104 | #include <content/providers/file_provider.hpp>
#include <hex/api/content_registry/communication_interface.hpp>
#include <hex/api/imhex_api/provider.hpp>
#include <hex/helpers/crypto.hpp>
#include <romfs/romfs.hpp>
#include <wolv/literals.hpp>
namespace hex::plugin::builtin {
using namespace wolv::literals;
v... |
ffa92fa838599c87d11e03b3b17fe837f3f6c1c60e928273cbaf6606c5e27d41 | C++ | 4,113 | 140 | // SPDX - License - Identifier: AGPL - 3.0 - only
// SPDX-FileCopyrightText: Inria <florent.leray@inria.fr>
#include "ApplicationPathHandling.h"
// Standard Library
#include <iostream>
#include <algorithm>
#include <cstdlib> // For std::getenv
/**
* @brief Custom string start check (Utility).
*/
bool startsWith(c... |
a2c5f909ccd6cd0f5133ea7f64195f4334e09fe824be16008196e77a02dc71f3 | C++ | 4,120 | 113 | #include "ovasCDriverGenericTimeSignal.h"
#include "../ovasCConfigurationBuilder.h"
#include "ovasCConfigurationGenericTimeSignal.h"
#include <toolkit/ovtk_all.h>
#include <system/ovCTime.h>
namespace OpenViBE {
namespace AcquisitionServer {
CDriverGenericTimeSignal::CDriverGenericTimeSignal(IDriverContext& ctx)
... |
a8df7bb528f5282be16eaf3dced2bf384c2347578b0f185df7a7a5fff3e23912 | C++ | 4,120 | 163 | // SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
// SPDX-License-Identifier: AGPL-3.0-only
#include "matrixDisplayWindow.h"
#include <QQmlContext>
#include <QQmlComponent>
#include <QQuickView>
#include <QQmlEngine>
namespace OpenViBE {
namespace Plugins {
namespace SimpleVisualization {
MatrixDisplayWindow... |
200b8ff4857ef6cf3f309ddc66fca9c579898110e0665ced71430b0fe7c5fe57 | C++ | 4,122 | 129 | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
/**
* @file memory_utils.cpp
* @date 25th Oct 2014
*
... |
154303cac264dd4ff5120063ed3c9e97875fc0e1d5aff91c7636e37bb88f0cb0 | C++ | 4,134 | 72 | ///-------------------------------------------------------------------------------------------------
///
/// \file CAboutPluginDialog.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 ... |
9f4094733a498918bd66ad40f183a9f44b104ab0c3dd34cbcc3921618ab80117 | C++ | 4,135 | 98 | ///-------------------------------------------------------------------------------------------------
///
/// \file CBoxAlgorithmStimulationValidator.cpp
/// \author Thibaut Monseigne (Inria).
/// \version 1.0.
/// \date 17/02/2020.
/// \copyright Copyright (C) 2022 Inria
///
/// This program is free software: you can ... |
6a6a04daa42ac27be379ce98b770225dd7791da7143cad15f54aeb7c8e4284af | C++ | 4,136 | 137 | /*
# =============================================================================
# Copyright (c) 2016 - 2022 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
#include "coreneuron/utils/memory.h"
#include <boost/mpl... |
ef75bc0bd9f94ed3b1de0f82dba897492a6f58450792a2248958b14d1fd3408e | C++ | 4,162 | 76 | ///-------------------------------------------------------------------------------------------------
///
/// \file uoSocketClientServerBaseTest.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... |
f13f88cb7e89ac046cf39c313a69820bd08916de2f5ca3e7d036e34f58e56b66 | C++ | 4,163 | 121 | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================.
*/
#include "coreneuron/nrnconf.h"
#include "coreneuron/net... |
bb5d4c992374e7e03064e92dd0b2aef0a43f69a0d0ad7fb446e9e1b0503cd94c | C++ | 4,221 | 125 | /**
* SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "OVQmlLogListener.h"
#include "OVLogController.h"
OVQmlLogListener::OVQmlLogListener()
{
OVLogController::instance();
}
OVQmlLogListener::~OVQmlLogListener()
{
}
bool OVQmlLogListener::isActive(... |
ebe778c6a26214b4ab591bddf83b45caf249e18eadc189d8eabe00c081aa6705 | C++ | 4,226 | 136 |
/********************
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... |
d679f5150bb00607a96f7c71d7e6a9d28e26fa29970a8c9991dc44458ec3886d | C++ | 4,236 | 135 | #include "ovvizColorGradient.h"
#include <cstdio>
#include <string>
#include <map>
namespace OpenViBE {
namespace VisualizationToolkit {
namespace {
typedef struct
{
double percent, red, green, blue;
} SColor;
} // namespace
bool ColorGradient::parse(CMatrix& colorGradient, const CString& string)
{
const st... |
d0be1bce53444402c2606a5bfc1208d9f1fd149988bc8adc94f7a1a47345e942 | C++ | 4,237 | 120 | /*
# =============================================================================
# Copyright (c) 2016 - 2021 Blue Brain Project/EPFL
#
# See top-level LICENSE file for details.
# =============================================================================
*/
#include <cassert>
#include <mutex>
#include "coreneuron... |
bc52620005c08e942505f141581fcedca3b3c4c076dd780a5ebd5362c0365fc6 | C++ | 4,239 | 142 | /**
* SPDX-FileCopyrightText: Inria <florent.leray@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
/**
* @file DummyDriver.cpp
* @brief Implementation file for the DummyDriver class.
*
* Implements the DummyDriver class, a "stub" implementation of AbstractDriver.
*/
#include "DummyDriver.h" // Includes ... |
884841d8e6ed147ddc7beb04fa9eb4788e79957326a6b9e80c46ccab4067c04b | C++ | 4,247 | 125 | // SvabaFileLoader.cpp
#include <filesystem>
#include <memory> // for std::unique_ptr
#include <sstream> // for std::istringstream
#include <string> // for std::string
#include <vector> // if you use any std::vector i... |
344eb0a2e0c74b314f1490ded5b3e3b12504a17889ad643dea98d8857006ae3e | C++ | 4,251 | 92 | #include "ovpCExperimentInfoEncoder.h"
namespace OpenViBE {
namespace Plugins {
namespace StreamCodecs {
bool CExperimentInfoEncoder::initialize()
{
CEBMLBaseEncoder::initialize();
ip_ExperimentID.initialize(getInputParameter(OVP_Algorithm_ExperimentInfoEncoder_InputParameterId_ExperimentID));
ip_experim... |
b725b18828f28fbcce9afb1b7b004924f1bdf95fc469d68b4e880de2f39b9813 | C++ | 4,256 | 142 | /**
* SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr>
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include <algorithm>
#include "parameters/parameterListInt.h"
#include "parameters/parameterFactory.h"
namespace OpenViBE {
namespace Parameters {
ParameterListInt::ParameterListInt(void) : ParameterBase<int, ... |
8a37d7611dce43f3ccdd32366e3f7601639e76ed2c8c6aeee1e4a247b0eb5c78 | C++ | 4,259 | 121 | #include "ovasCDriverGenericSawTooth.h"
#include <toolkit/ovtk_all.h>
#include <system/ovCTime.h>
namespace OpenViBE {
namespace AcquisitionServer {
CDriverGenericSawTooth::CDriverGenericSawTooth(IDriverContext& ctx)
: IDriver(ctx)
{
m_driverCtx.getLogManager() << Kernel::LogLevel_Trace << "CDriverGenericSa... |
508b683057f7456af9ddfea2575a0609a0655c3b351f3a6fd68a744a9c6bc631 | C++ | 4,275 | 123 | #include "ovasCDriverGenericSawTooth.h"
#include <toolkit/ovtk_all.h>
#include <system/ovCTime.h>
namespace OpenViBE {
namespace AcquisitionServer {
CDriverGenericSawTooth::CDriverGenericSawTooth(IDriverContext& ctx)
: IDriver(ctx)
{
m_driverCtx.getLogManager() << Kernel::LogLevel_Trace << "CDriverGenericSa... |
9cb161ba12ed78408bf7aecc7491a63b57a9a301f5484525055f6a80e2c06427 | C++ | 4,287 | 169 | /* -*- 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... |
10f073bc86a961d9590344c1fa599f61e568d32f908c02493977ffe7c00f4695 | C++ | 4,310 | 182 | #include <iostream>
#include <system/ovCTime.h>
#include "ParallelExecutor.h"
#include <array>
namespace OpenViBE {
namespace Tracker {
bool ParallelExecutor::initialize(const uint32_t nThreads)
{
m_quit = false;
m_nJobsRunning = 0;
m_jobList.clear();
// ExecutorView passes the working thre... |
f2d7483352830c66da689728caf0096d2ca7ef6a8e16421159a3e3e67b95fbef | C++ | 4,314 | 112 | #include "content/popups/hex_editor/popup_hex_editor_base_address.hpp"
#include "content/views/view_hex_editor.hpp"
#include <fonts/tabler_icons.hpp>
namespace hex::plugin::builtin {
PopupBaseAddress::PopupBaseAddress(const ImHexApi::HexEditor::ProviderRegion &selection)
: m_selection(selection), m_... |
da536bf65c9a58094dd288d8e3c3069d20d51763b10ec3fc36ed48d6ffafc3dc | C++ | 4,317 | 108 | #include "gtest/gtest.h"
#include "Eikonal.h"
TEST(Improve2D, DecreaseRMSError) {
std::vector<float> rmsError;
std::vector< float > solution;
float sum = 0.f;
float radius = 100.f; //we know the radius of these spheres.
//lowest granularity
Eikonal* data = new Eikonal(true);
data->filename_ = TEST_DATA_DI... |
f6fa786930095b0a809ad94909bb583010e71e84baa1feec3bbb7eecf25c4f20 | C++ | 4,326 | 136 | ///-------------------------------------------------------------------------------------------------
///
/// \file CRendererBars.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.