sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
e7fe8638e8a58a6a73de63e3b164bea8d82ec8d83d5662a84791109d0aab8365
C/C++
1,031
41
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTReaderAsciiAscii.h - Read a plain-text BWT file from disk // #ifndef BWTREADERASCII_H ...
cfc10ae893dc07a8982fd184928289eb2bf3ce7b1d30816c215d44638a44d891
C/C++
1,036
35
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # =============================================================================. */ /** * @file memory_utils.h * @date 25th Oct 2014 * @b...
9034458665288f627896f2682369d0cc09dbeb68e1fb725bbc3d0db25ba71850
C/C++
1,041
47
#pragma once #include <string> #include <fstream> struct SStimulation { std::string name; std::string id; std::string hexa; }; class CFileGeneratorBase { public: virtual ~CFileGeneratorBase() = default; virtual bool openFile(const char* filename) = 0; virtual bool appendStimulation(SStimulati...
974be89e9e139e96da24fa6c30261cf13eb0154871a7367a8745b37876ee6f2b
C/C++
1,043
32
#pragma once #include <boost/asio.hpp> #include "IStimulusSender.h" namespace TCPTagging { /* * \class CStimulusSender * \author Jussi T. Lindgren / Inria * \brief Simple client to send stimuli to Acquisition Server's TCP Tagging */ class CStimulusSender : public IStimulusSender { public: CStimulusSender() : m_o...
8b4476472392efdad6da2c5ecc5401ebcd714f5a450477a556a6db96daba1e17
C/C++
1,044
32
#pragma once #include "CodecImpl.h" #include "TypeChannelLocalization.h" #include "TypeChannelUnits.h" #include "TypeExperimentInfo.h" #include "TypeFeatureVector.h" #include "TypeMatrix.h" #include "TypeSignal.h" #include "TypeSpectrum.h" #include "TypeStimulation.h" namespace OpenViBE { namespace Tracker { CODEC_I...
24d21ba658070e2191915013d604996e28d797df856c43494065d7dbb0a8ea33
C/C++
1,046
37
// // OpenViBE Tracker // #pragma once #include "StreamRendererLabel.h" #include "TypeExperimentInfo.h" namespace OpenViBE { namespace Tracker { /** * \class StreamRendererExperimentInfo * \brief Renderer for Experiment Information streams * \author J. T. Lindgren * * @ fixme this class inherits a lot of junk...
b437009ab5a9909645eb5ae5536411076bee9f2953250bd0187f8b335a6dfa96
C/C++
1,047
37
// *************************************************************************** // bamtools_filter.h (c) 2010 Derek Barnett, Erik Garrison // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 28 August 2010 // ---------------...
8c8450ce9bbff7a8ab5008578d44a0c7fa102e588be0ea1e74ddd0b9a5789124
C/C++
1,052
35
//----------------------------------------------- // Copyright 2009-2013 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // SGAStats - Common statistics functions used // throughout the program // #ifndef SG...
b094f8e38a13d59ae375b565d97bb61266012848c0c70797a0f4e962a3ed7752
C/C++
1,052
35
//----------------------------------------------- // Copyright 2009 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // OverlapCommon - Common functions used in overlap methods // #ifndef OVERLAPCOMMON_H #defin...
94d0d64c0277408e46d75324dd1715e3418da3b9ea868c5139860245bee08117
C/C++
1,053
22
p4_node *p4_newNode(int nodeNum, p4_tree *aTree, int seqNum, int isLeaf, int inTree); void p4_freeNode(p4_node *aNode); void p4_calculateBigPDecks(p4_node *aNode); void p4_calculateBigPDecksPart(p4_node *aNode, int pNum); void p4_calculateBigPDecks_1stD(p4_node *aNode); void p4_calculateBigPDecks_2ndD(p4_node *aNode); ...
c4a5649aa043b9be8822ca246e7845524ff24522d77d78348b6237c85a1cc41a
C/C++
1,053
41
#pragma once #if defined TARGET_HAS_ThirdPartyGUSBampCAPI #include "../ovasCConfigurationBuilder.h" #include <gtk/gtk.h> namespace OpenViBE { namespace AcquisitionServer { class CConfigurationGTecGUSBampLegacy final : public CConfigurationBuilder { public: CConfigurationGTecGUSBampLegacy(const char* gtkBuilderF...
20634edec3585a5daa85c923e9b2efaa8282684724351d25095f84f9334ceb47
C/C++
1,056
49
// Written by Oliver Serang 2009 // see license for more information #ifndef _Numerical_H #define _Numerical_H #include <iostream> #include <cmath> #include <limits> using namespace std; const double Pi = 3.14159; class Numerical { public: Numerical() { epsilon = 1e-9; } Numerical(double eps) : epsilon(eps) {...
702dcec21d684ed3a418f08fae2113b02fff36aa1dc876954c43933b1c112cfd
C/C++
1,059
34
#pragma once #include "../../ovasCConfigurationBuilder.h" #include "ovasIDriver.h" namespace OpenViBE { namespace AcquisitionServer { /** * \class CConfigurationMKSNVXDriver * \author mkochetkov (MKS) * \date Tue Jan 21 23:21:03 2014 * \brief The CConfigurationMKSNVXDriver handles the configuration dialog specifi...
d542afba16bec04d523d132d92d4138435ed38471a1aac56a5bd273499946c10
C/C++
1,064
36
#pragma once #include <QObject> #include <QString> namespace OpenViBE { namespace PluginInspector { /** * @brief One input or output port handed to Box.qml when rendering a snapshot. * * Box.qml's port delegates declare `required property string name` / `dataType`, * which only resolve against QObject properties...
9d4e304d6da00a580efedcbdd4c744e681437680088aeb16622ef3ee0fa2af59
C/C++
1,065
39
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #pragma once #include "../ov_defines.h" #include "parameterTraits.h" namespace OpenViBE { namespace Parameters { class OV_API ParameterColor : public ParameterBase<std::string, ParameterColor> { public: Par...
068d31be3b1923b5d4b90a33499c6c386134412a10730b86cb567fbb3e71c1dc
C/C++
1,067
26
#ifndef RWRAPPER_H #define RWRAPPER_H #include "utils.h" #include "cs.h" double get_control_value(SEXP sControlList, const char * param_name); cs * dgTMatrix_to_cs (SEXP input); SEXP thin_R (SEXP sX, SEXP sY, SEXP sW, SEXP sN, SEXP sK, SEXP sControl); SEXP tf_R (SEXP sX, SEXP sY, SEXP sW, SEXP sN, SEXP sK, SEXP sFam...
7250cd32668db074c2b5243bd252d926ee866062c67d6cd1cc86d5ea4dbcc44a
C/C++
1,068
28
#pragma once #include "ovp_global_defines.h" //___________________________________________________________________// // // // Basic includes // //_______________________________________________________...
80b25f4af98d165e3fa56b6469d647cf4cb099618ec745f2ad662e00819766c2
C/C++
1,070
44
#pragma once #if defined TARGET_HAS_ThirdPartyEmotivAPI #include "../ovasCConfigurationBuilder.h" #include "ovasIDriver.h" #include "../ovasCHeader.h" #include <gtk/gtk.h> #if defined TARGET_OS_Windows #include <windows.h> #endif namespace OpenViBE { namespace AcquisitionServer { /** * \class CConfigurationEmotiv...
f6c4cab8e155a860709ccaf5dc98ff264c6b5f265070510f11973b9440dce1d7
C/C++
1,072
37
/******************** 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...
ed2c57a843e0dc7d8627c0cf7bc86913ff9a371814919f8b461cd14e08f3c902
C/C++
1,075
38
// // OpenViBE Tracker // #pragma once #include "StreamRendererLabel.h" #include "TypeChannelLocalization.h" namespace OpenViBE { namespace Tracker { /** * \class StreamRendererChannelLocalization * \brief Renderer for Channel Localization streams * \author J. T. Lindgren * * @ fixme this class inherits a lo...
36a64e899a2c2fed937c19548779d40b2425a0fde9046b40514bad52c2d31ce5
C/C++
1,076
43
#ifndef READ2CONTIG_H #define READ2CONTIG_H #include <string> #include <vector> #include "api/BamReader.h" #include "api/BamWriter.h" #include <sstream> struct Read2Contig { // Constructors Read2Contig(std::string tcname, std::string trname, unsigned tpos, std::string tseq) : cname(tcname), rname(trname), pos(tp...
638d3aca82408890a8a3c1be9fde3feb279cec98607a8a09043e63b438fd19c3
C/C++
1,078
28
#pragma once #include "../ovkTKernelObject.h" namespace OpenViBE { namespace Kernel { class CAlgorithmProxy; class CAlgorithmProto final : public TKernelObject<IAlgorithmProto> { public: CAlgorithmProto(const IKernelContext& ctx, CAlgorithmProxy& rAlgorithmProxy); bool addInputParameter(const CIdentifier& i...
65fbceb5cc038595c48b6ef72ec9538a80fb2e2b4cbaf1168b0f705ca9fa94da
C/C++
1,078
32
#pragma once #include "windows.h" #include "ov_defines.h" #include "ovCString.h" //___________________________________________________________________// // // // Get Cpu Time // //___________________...
f5953e044e5cb1d00ee5db585db4655181c27141a79fcddda20fb3fa6e5e51c0
C/C++
1,078
38
// *************************************************************************** // bamtools_split.h (c) 2010 Derek Barnett, Erik Garrison // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 7 April 2011 (DB) // -------------...
f1421d10d64cd61cb1c99e7cf416f0854a64ef7f71ee912be09ab0fc066a3ceb
C/C++
1,081
28
// Not GPL'd pcomplex Complex(double a, double b); pcomplex Cadd(pcomplex a, pcomplex b); pcomplex Csub(pcomplex a, pcomplex b); pcomplex Cmul(pcomplex a, pcomplex b); pcomplex Conj(pcomplex a); // Note that DLS has a CDiv function in linalg. // (With the slightly different spelling.) pcomplex Cdiv(pcomplex a, pcomp...
0ebf904b046c2f11aded1d3bbf1319a5ba8ece38af9fd7dfa6c27b786d6bb0c4
C/C++
1,083
34
/******************************************************************************* 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:...
6b04e5b41a537a5be653d0c12daa1e57e21a3726a42284a561299412425dd103
C/C++
1,083
60
#ifndef __SNPTAB_H__ #define __SNPTAB_H__ #include <hdf5.h> #include "snp.h" #define SNPTAB_N_FIELDS 4 /* chunk size affects performance a lot * small chunks = much faster writing of tables, but * worse compression */ #define SNPTAB_CHUNK_SIZE 12 /* SNPTab holds information about SNP table * and datatypes...
2ffc4a17184582a4a447a193f34fb7a8f7e83eb9e457b6e8a67689b26e424587
C/C++
1,090
30
/* # ============================================================================= # Copyright (c) 2016 - 2021 Blue Brain Project/EPFL # # See top-level LICENSE file for details. # ============================================================================= */ /** * @file string_utils.h * @brief Utility functions f...
c1d153ca10297d075fde5901e4e3a91b7b82d409167b94c3e6bbb919727fea9d
C/C++
1,090
46
#ifndef __SEQ_H__ #define __SEQ_H__ #include <stdio.h> #include <zlib.h> #define SEQ_MAX_NAME_SZ 127 #define SEQ_NAME_BUF_SZ 128 #define SEQ_DEFAULT_BUF_SZ 65535 #define SEQ_FASTA_LINE_LEN 70 /* * A DNA, RNA, or amino acid sequence */ typedef struct { char name[SEQ_NAME_BUF_SZ]; /* name of the sequence ...
892b562e726181a0218cec0327f7085b04f7ce15fb46106b987f718d08812a70
C/C++
1,092
35
// SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> // SPDX-License-Identifier: AGPL-3.0-only #pragma once #include <openvibe/ov_all.h> #include <QByteArray> namespace OpenViBE { namespace Designer { /** * @brief In-memory XML round-trip of a kernel scenario. * * Drives the kernel's XML scenario importer...
568570c3e030d3429c48b6309fe7fb8dad8aa9ec41c8b4abdddf2cd78761e1dd
C/C++
1,096
50
/* * HID driver for OpenViBE * * \authors (NeuroServo, NeuroTechX) * \developer (Innocent Aguie) * \date Wed Nov 23 00:24:00 2016 * */ #pragma once #if defined TARGET_OS_Windows #if defined TARGET_HAS_ThirdPartyNeuroServo #include <Windows.h> #include <functional> class HidDeviceNotifier { public: HidDeviceNotif...
d598afff3b0afb8b74c911ca127326a89c4baef234e8c7ddd34982f69eaf709a
C/C++
1,097
36
#pragma once #include "../ovtk_base.h" namespace OpenViBE { namespace Toolkit { namespace String { class OVTK_API ISplitCallback { public: virtual ~ISplitCallback() { } virtual void beginSplit() const { } virtual void endSplit() const { } virtual void setToken(const char* token) const = 0; }; templat...
e36db2348c07f69e3b0d3f0c78f4583fc7aa5d77ae73f0cceab927b73ab7f73d
C/C++
1,100
56
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTReader - Abstract class for reading a BWT file // #ifndef BWTREADER_H #define BWTREADE...
c88cdb6de8490896cd1aa14118b3c0b95d3cef68ac695f1eae06259616c37d1a
C/C++
1,101
38
//----------------------------------------------- // Copyright 2012 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTIndexSet.h - Struct holding the different // types of index for a set of sequences. Use...
c527d50c0156fda0f12fc7dddff96dcad7eb8d6552291aa7450a0dba844a57cf
C/C++
1,104
57
#ifndef __VCF_H__ #define __VCF_H__ #include <zlib.h> #include "snp.h" #define VCF_MAX_QUAL 1024 #define VCF_MAX_FILTER 1024 #define VCF_MAX_FORMAT 1024 typedef struct { int n_sample; long n_header_line; /* records true length of ref / alt alleles, which can be * truncated by limited buffer size of SNP d...
ce12a36422a1165c7efa18773db441a5880b1baec3d01370e6b14519d26a7b75
C/C++
1,111
38
/******************************************************************************* 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://www...
0d6ad6578663fddb49c5c4808e576611c1419c440b1e85e732cb547470351572
C/C++
1,117
44
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTWriterBinary - Read a run length encoded binary BWT file from disk // #ifndef BWTREADE...
c215a8fb725bff3e0ff578ac2b849d1530968158baae6098cafb79e34f1aebb9
C/C++
1,117
13
#include <Python.h> #include <numpy/arrayobject.h> p4_model *p4_newModel(int nParts, int doRelRates, int relRatesAreFree, int nFreePrams, int isHet, int *rMatrixNormalizeTo1, double *PINVAR_MIN, double *PINVAR_MAX, double *KAPPA_MIN, double *KAPPA_MAX, double *GAMMA_SHAPE_MIN, double *GAMMA_SHAPE_MAX, double *PIVEC_MI...
4cd0ff49187646a9a49f595cbd536617712b63efb04923d27a768a616cd80052
C/C++
1,119
44
/* -*- 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...
5a6d680d474c05308340b73f388b05767477a70bb87b48e18bf5445d4dd82bda
C/C++
1,119
49
//----------------------------------------------- // Copyright 2012 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL license //----------------------------------------------- // // QualityTable - A 0-indexed table of quality scores // #ifndef QUALITYTABLE_H #defi...
3f93e6689dc595cddbdb8ce22045802191416517547c79de2297614a70ac5843
C/C++
1,126
46
#pragma once #include "ovasIDriver.h" namespace OpenViBE { namespace AcquisitionServer { /** * \class CDriverGenericOscillator * \author Yann Renard (INRIA) */ class CDriverGenericOscillator final : public IDriver { public: explicit CDriverGenericOscillator(IDriverContext& ctx); void release(); const ...
3c2878b8014b9dfe4c777dc60a4a8fa4eaa431649e86d1aed2a4c3b830d1d5ca
C/C++
1,136
34
#pragma once #include "TConnectionDelegate.h" #include "IConnectionSerial.h" namespace Socket { struct Socket_API SConnectionSerialDelegate { SConnectionDelegate connectionDelegate; bool (*fpConnect)(void*, const char*, const size_t); size_t (*fpGetPendingByteCount)(void*); bool (*fpFlush)(void*); ...
81cb930f63095143d9acbef16ba355c242bc68a4d2b00ba248afcfb471ee8e18
C/C++
1,137
36
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // CorrectionThresholds.h - Singeleton class containing // cutoff values for determining whet...
838a01fadaf1a0e4c115f58d70bcef8c6d3f9499be8b15615dd2a8ccb8312190
C/C++
1,148
34
/******************************************************************************* 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:...
99d9b05d58ab6bcd0ff9aa635b635e05a44e4b2e44b23337705074015fd058a7
C/C++
1,149
33
//----------------------------------------------- // Copyright 2009 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL license //----------------------------------------------- // // SGUtils - Data structures/Functions related // to building and manipulating string...
6e1436ad6bc0c87dd3c5e7e8adfaf374c867e02cd8e3ec7447b54e78090cd033
C/C++
1,150
29
#pragma once #include "defines.h" #if defined TARGET_OS_Windows #include <windows.h> #include <string> namespace System { class System_API WindowsUtilities { public: static void* utf16CompliantLoadLibrary(const char* path, HANDLE file = nullptr, DWORD flags = LOAD_LIBRARY_SEARCH_USER_DIRS | LOAD_LIBRARY_SEARCH_DE...
69fe43b6bbe466d70d75d1cb7cd5122dd135c99c5fac30954e29447987c40927
C/C++
1,154
46
#ifndef KDTREE_H #define KDTREE_H /* Szymon Rusinkiewicz Princeton University KDtree.h A K-D tree for points, with limited capabilities (find nearest point to a given point, or to a ray). */ #include <vector> class KDtree { private: class Node; Node *root; void build(const float *ptlist, int n); public: // Co...
acb1b5f66b313dd219ec1233e432498c8b2575d810e21461323a22c9b99e94fc
C/C++
1,154
35
#pragma once #include <vector> #include "Chunk.h" namespace OpenViBE { namespace Tracker { /** * \class EncodedChunk * \brief Data class for encoded chunks * \details * Stream content in OpenViBE is carried as encoded chunks. Although this inherits from Chunk, * this type is a bit special since its not expli...
68fe046be8d5c86cc8ac2a69b8dc70e5a5eaf6d32bb2170c16122b174b846605
C/C++
1,157
32
/******************************************************************************* 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:...
303360b718f5dc6676d1580154987e44039c7bb68dd1a3396e41aac43e06253f
C/C++
1,161
43
// SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> // SPDX-License-Identifier: AGPL-3.0-only #pragma once #include <QObject> #include <QString> #include <qqml.h> namespace OpenViBE { namespace DesignSystem { class FontManager : public QObject { Q_OBJECT QML_ELEMENT QML_SINGLETON Q_PROPE...
33a13054d241a8bdc1c05d8fc9d38d5daedc72b10d81fd9243d038afda0468a5
C/C++
1,161
34
#pragma once #include "../ovkTKernelObject.h" #include <map> #include <mutex> namespace OpenViBE { namespace Kernel { class CAlgorithmProxy; class CAlgorithmManager final : public TKernelObject<IAlgorithmManager> { public: explicit CAlgorithmManager(const IKernelContext& ctx) : TKernelObject<IAlgorithmManager>...
6bcf6bfcd9de715b756f2ef2bccfde240f64da0787d3d54d2ba42972996782e5
C/C++
1,163
41
#pragma once #include "IConnection.h" #include <string> #if defined TARGET_OS_Windows #include <windows.h> #endif namespace Socket { /** * \brief The IConnectionParallel class provides the possibility to communicate with a parallel port. * On Windows, you must have TVicPort library installed (available for free: h...
e88f86cda75b9eda94db6c21ed290a94324320e97ba7607687120b36bf74a831
C/C++
1,166
44
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BWTWriterAsciiAscii - Write a BWT to a plain text file // #ifndef BWTWRITERASCII_H #defin...
32124d52f7f723c9e5a44ca820d57922c4f39563a1f8a3153c5eae0571ddf1e8
C/C++
1,167
46
#pragma once /** * SPDX-FileCopyrightText: Inria <florent.leray@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ /** * @file DummyDriver.h * @brief Header file for DummyDriver class. * * Declares the DummyDriver class, a stub implementation of AbstractDriver for testing. */ #include "AbstractDriver.h" #i...
776d76cfae870315fd6cc4f468b4640b9fe05eb5bccbf1f6bdb84537f92fc70a
C/C++
1,176
35
/******************** 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...
ec86ebaa59eb1e54865b7b6d421f6abeae801f9241802a21662a12d233d7f5de
C/C++
1,176
46
#pragma once #include "ovasIDriver.h" #include "../ovasCHeader.h" #include "../ovasCSettingsHelper.h" namespace OpenViBE { namespace AcquisitionServer { /** * \class CDriverGenericTimeSignal * \author Jussi Lindgren (Inria) * * This driver may have some utility in debugging. For each sample, it returns the * ...
a3dfa5e2c0d85e83e961d1f3504ec1e24bb27c74277789c359273b567ae10f30
C/C++
1,184
50
#pragma once /** * @file OSAL.h * @brief Operating System Abstraction Layer for dynamic library loading. * @details Cross-platform interface for dlopen/dlsym/dlclose (Unix) and * LoadLibraryExW/GetProcAddress/FreeLibrary (Windows). * * SPDX-FileCopyrightText: Inria <florent.leray@inria.fr> * SPDX-Licen...
d5cd6609d9a626b712a86e43c0717f3ab2f44e8ba5006f4ee0a168fd9b039560
C/C++
1,188
53
#pragma once #include <openvibe/ov_all.h> #include "Chunk.h" namespace OpenViBE { namespace Tracker { /** * \class TypeMatrix * \brief Abstact class defining chunk types for Matrix streams * \author J. T. Lindgren * */ class TypeMatrix { public: static CIdentifier getTypeIdentifier() { return OV_TypeId_Str...
60e78569a506dede79f892c86be9714bbd81243ab58abcffd84828166499bd8d
C/C++
1,189
46
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #pragma once #include <QtCore> class ImpedanceItem : public QObject { Q_OBJECT Q_PROPERTY(QString name READ name NOTIFY nameChanged) Q_PROPERTY(double value READ value NOTIFY valueChanged) Q_PROP...
7b6e1e6d208b3cade3bb5936b335f3e18862b69730d3bdbfae39009ecff289f7
C/C++
1,190
35
#pragma once #include "../ovkTKernelObject.h" #include "ovkCPlayerContext.h" namespace OpenViBE { namespace Kernel { class CSimulatedBox; class CBoxAlgorithmCtx final : public TKernelObject<IBoxAlgorithmContext> { public: CBoxAlgorithmCtx(const IKernelContext& ctx, CSimulatedBox* simulatedBox, const IBox* box);...
904efad9fa39dbfd54258888d7440875e37f86c149a38875c08af0d019e2f189
C/C++
1,194
40
/******************** 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...
0467900398fdd349b019ea8ef495fd30aac37e615206f74e3d34fb8631382c1f
C/C++
1,197
38
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #pragma once #include <openvibe/ov_all.h> #include <QMetaMethod> #include <QObject> #include <parametersObject.h> namespace OpenViBE { namespace Des...
bd540964d395e2b12ff2b8e6a2bf0fb3a9a2999411f11aab8599a39b519a2aca
C/C++
1,198
31
#ifndef WELCH_H #define WELCH_H #include <iostream> #include <math.h> #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wredundant-decls" #include <mkl.h> #pragma GCC diagnostic pop #ifndef M_PI #define M_PI 3.14159265358979323846 #endif // MKL API Wrappers To Allow For Templating template <typename T> i...
5af3c0fac271393fd131b4fdbdc83fc9a074fe24b7badf60884aa40f8ee0c15e
C/C++
1,205
51
#pragma once #include <openvibe/ov_all.h> #include "Chunk.h" namespace OpenViBE { namespace Tracker { /** * \class TypeExperimentInfo * \brief Abstact class defining chunk types for Experiment Information streams * \author J. T. Lindgren * */ class TypeExperimentInfo { public: static CIdentifier getTypeIde...
d109bddd4859f6e11bb5d93e72bd8c022d7e5909b86705d12b35923535f86ed3
C/C++
1,208
40
#pragma once #include <openvibe/ov_all.h> #include "ITrackerPlugin.h" #include "Contexted.h" namespace OpenViBE { namespace Tracker { /** * \class TrackerPlugins * \author J. T. Lindgren * \brief Container class for currently registered Tracker plugins. These plugins get direct access to StreamBundles (i.e. ful...
bfd073ec00954742c42b662e62f3e1d935f06de52d465927f435fd77d3cf0422
C/C++
1,209
39
#pragma once #include <openvibe/kernel/scenario/ovIMetadata.h> #include "../ovkTKernelObject.h" namespace OpenViBE { namespace Kernel { class CScenario; class CMetadata final : public TKernelObject<IMetadata> { public: CMetadata(const IKernelContext& ctx, CScenario& ownerScenario) : TKernelObject<IMetadata>(ctx...
595511257503b304bd90acb7a9c2a4f62115c4fc46218603faa1f1deaaaa6782
C/C++
1,210
45
#pragma once #include <fstream> #include <iostream> #include <mutex> #include <sstream> #include <string> class SvabaOptions; /// A simple thread safe logger that writes to a file and (optionally) stderr. class SvabaLogger { public: SvabaLogger() = default; ~SvabaLogger(); /// Must be called once at program st...
84afdeeed4ddd15a92a9527a5917db0e2e3b4c6ff4ec40e82cd6b1c8501a0520
C/C++
1,212
43
#pragma once #include "../ovasCConfigurationBuilder.h" #include "ovasIDriver.h" namespace OpenViBE { namespace AcquisitionServer { /** * \class CConfigurationCognionics * \author Mike Chi (Cognionics, Inc.) * \copyright AGPL3 * \date Thu Apr 18 21:19:49 2013 * \brief The CConfigurationCognionics handles the conf...
e972e899591b56e1ab0990569a73b9c113f2a415e4139ef73d6361a8b081f031
C/C++
1,212
50
// SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> // SPDX-License-Identifier: AGPL-3.0-only #pragma once #include <QtCore> #include <QQuickView> #include <openvibe/ov_all.h> #include <functional> #include <string> #include <vector> namespace OpenViBE { namespace Plugins { namespace SimpleVisualization { ...
10794bd176900c4e8e6bcc395a30cdf0d604df9273505e7fdfb2648bb9bede79
C/C++
1,214
27
//----------------------------------------------- // Copyright 2009 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL license //----------------------------------------------- // // SACAInducedCopying - Implementation of the // induced copying algorithm as descri...
778e2ea9ce2f4a09ea8cad0481ebd32908dfe317725054ea8fd3b079566ddc86
C/C++
1,215
19
#pragma once void Cal_I_NK_pump_hori_cell(double Vm[N_t][Nthe + 3], double Tem, int t, double c_K_i_old[Nthe + 1], double c_K_o_old[Nthe + 1], double c_Na_i_old[Nthe + 1], double c_Na_o_old[Nthe + 1], double pH, double I_NK_pump[Nthe + 1]); void Cal_I_NK_pump_Ventri_Myocy_cell(double Vm[N_t][Nthe + 3], double Tem...
b6ba09a8e2c23a0fc2a17989799d9a163eecbc6932b468b372f580e91f469915
C/C++
1,221
45
//----------------------------------------------- // 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 // #ifndef BWTWRITERBIN...
4c66f8d63eadfb4bae6d55ad4b4ff55ec8f0e87058c27790b3c34ab30a38a043
C/C++
1,226
38
#pragma once #include "../ovasCConfigurationBuilder.h" namespace OpenViBE { namespace AcquisitionServer { class CConfigurationEGIAmpServer final : public CConfigurationBuilder { public: explicit CConfigurationEGIAmpServer(const char* gtkBuilderFilename) : CConfigurationBuilder(gtkBuilderFilename) { } ~CConfig...
d14bd9453489061d9b45d59f10bbf30026804e7c9e18971ed8fd1b9c1fedf83a
C/C++
1,226
44
#pragma once #include "ovIPluginObjectDesc.h" #include "../kernel/algorithm/ovIAlgorithmProto.h" namespace OpenViBE { namespace Plugins { /** * \class IAlgorithmDesc * \author Yann Renard (INRIA/IRISA) * \date 2007-11-06 * \brief Algorithm plugin descriptor * \ingroup Group_Extend * * This class should be deri...
d321e3bb962f68ff9d48a8ab448abd6f52c0d294aa24e0c1b4c0470d5348faf7
C/C++
1,226
15
#pragma once // Boxes //--------------------------------------------------------------------------------------------------- #define OVP_ClassId_BoxAlgorithm_EDFFileWriter OpenViBE::CIdentifier(0x0D454DCE, 0x470A4C02) #define OVP_ClassId_BoxAlgorithm_EDFFileWriterDesc OpenViBE::CIdentifier...
04832aa44022e805986a8242fe7365771c95eb69c378cd76a06ccc040961c872
C/C++
1,230
49
#ifndef DRAWWIDGET_H #define DRAWWIDGET_H #include <QWidget> #include <QPainter> #include <QPaintEvent> #include <QMouseEvent> #include <QPoint> #include <QVector> #include "datadef.h" #include <QEvent> class DrawWidget : public QWidget { Q_OBJECT public: explicit DrawWidget(QWidget *parent = 0); void pai...
084faa6d7fab5abc7abef356aa1a2d906dabfc6cabd8e9b0c3d4574bde4f1fc5
C/C++
1,235
47
// SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> // SPDX-License-Identifier: AGPL-3.0-only #pragma once #include <openvibe/ov_all.h> #include <QtCore> namespace OpenViBE { namespace Designer { class CommentObject : public QObject { Q_OBJECT Q_PROPERTY(QString identifier READ identifier CONSTANT) ...
f7487cef183149b2a2c12d4a59464a1cfae228ab3b0859940562368d9656bfb2
C/C++
1,236
52
#pragma once #include "ovasIDriver.h" #include "../ovasCHeader.h" #include "../ovasCSettingsHelper.h" namespace OpenViBE { namespace AcquisitionServer { /** * \class CDriverGenericOscillator * \author Yann Renard (INRIA) */ class CDriverGenericOscillator final : public IDriver { public: explicit CDriverGeneri...
00947d0e4eac723ed4b2408d6897d9943f02af7a72afc52595662f662ac4e9e9
C/C++
1,241
44
#ifndef UTILS_H #define UTILS_H #include <iostream> /****************************************************************************** * Matrix Operators * ******************************************************************************/ /* Computes y = D*x, whe...
3cf01714836e44f542cfbf15639ab69802a911135be1a6647d635441941f5bc6
C/C++
1,241
47
// SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> // SPDX-License-Identifier: AGPL-3.0-only #pragma once #include <openvibe/ov_all.h> #include <QtCore> #include <QPointF> #include <QJSValue> namespace OpenViBE { namespace Designer { class BoxObject; class LinkObject : public QObject { Q_OBJECT Q_...
2a42032b30446682cfe34162b9f3839dc8e8a05c7ebb2dee374185c344089962
C/C++
1,243
21
#pragma once // Boxes //--------------------------------------------------------------------------------------------------- #define OVP_ClassId_BoxAlgorithm_Clock OpenViBE::CIdentifier(0x14CB4CFC, 0x6D064CB3) #define OVP_ClassId_BoxAlgorithm_ClockDesc OpenViBE::CIdentifier(0x754C233D, 0x37DF04A3) #defin...
8393921d1469b4af374b3ced1ff1c73df82e91a37d6c6074d54fee88ac915cc9
C/C++
1,243
46
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #pragma once #include "parameterObject.h" #include <openvibe/parameters/parameterInt.h> namespace OpenViBE { namespace Parameters { class OV_PARAMETERS_OBJECT_EXPORT ParameterIntObject: public ParameterObject {...
7bbf7bc462ea8e17c574137cc4a62f146f7c6bf4aa25563df001feca5d8e235c
C/C++
1,250
38
//===--- StringViewExtras.h ----------*- mode:c++;eval:(read-only-mode) -*-===// // Do not edit! See README.txt. // 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 ...
65c34c9ebd81693454e6ed1195f766afa2e8145f503be14c362101551e6bc90a
C/C++
1,251
40
#pragma once #include "../ovasCConfigurationBuilder.h" #include "ovasIDriver.h" namespace OpenViBE { namespace AcquisitionServer { /** * \class CConfigurationDriverSimulatedDeviator * \author Jussi T. Lindgren (Inria) * \brief The CConfigurationDriverSimulatedDeviator handles the configuration dialog specific to t...
f4c7c76088ed271115fa6a42ddf9a89beaa4ac7712c218c560eb82ec68af5854
C/C++
1,254
48
/** * SPDX-FileCopyrightText: Inria <tristan.cabel@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #pragma once #include <QtCore> #include <QtQml> class QmlHelper : public QObject { Q_OBJECT QML_ELEMENT QML_SINGLETON public: static QmlHelper *instance(); static QmlHelper *create(QQmlEngi...
74d59065cb5c2bb6281b954eb72bb5216b625fe9fae2c6083aa916af3cb6f973
C/C++
1,255
54
#pragma once #include "defines.h" #include <cinttypes> #include <cstdlib> // size_t for unix namespace FS { class IEntryEnumeratorCallBack; class FS_API IEntryEnumerator { public: class FS_API IAttributes { public: virtual bool isFile() = 0; virtual bool isDirectory() = 0; virtu...
b8ef2913910fee93cf6b8fb3309eec988fa9926a01ee57d0a60cc88e06a6f99f
C/C++
1,258
59
#ifndef __SAMPLETAB_H__ #define __SAMPLETAB_H__ #include <hdf5.h> #include "sample.h" #define SAMPLETAB_N_FIELDS 1 /* chunk size affects performance a lot * small chunks = much faster writing of tables, but * worse compression */ #define SAMPLETAB_CHUNK_SIZE 100 /* SampleTab holds information about Samples ...
11f76c0265edeeb3c7c9f0116f1a135ccb4b2f44906ae0de4e51d43f804fc7c8
C/C++
1,262
23
double **psdmatrix(int dim); // mallocs a square double matrix void free_psdmatrix(double **m); // frees the square double matrix void dump_psdmatrix(double **m, int dim); // prints a square double matrix void copy_psdmatrix(double **from, double **to, int dim); // copies double **pdmatrix(int rows, int cols); // mall...
62dbb1254cd9bf005f4bf9b09fe6496012ad48e539e2f9ba85dc379b4fccae19
C/C++
1,264
41
/******************************************************************************* 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:...
1424a6471cfe3a402037c991b7242fc5c4d8b3ddc27a8266be02504c9565cd0c
C/C++
1,265
43
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL license //----------------------------------------------- // // BitChar - Fixed-size bitset of 8 bits // #ifndef BITCHAR_H #define BITCHAR_H #inc...
46673ed81084a02bfe40df96a03d5337c209d1545e6e5fd11b01742ecd96b178
C/C++
1,267
52
/******************** 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...
e06c9ae7ee5d5cc58b26642346751fbc9737a0de1e624148fb152ee91d6c4c59
C/C++
1,271
44
// // OpenViBE Tracker // #pragma once #include "StreamRendererBase.h" namespace OpenViBE { namespace Tracker { /** * \class StreamRendererLabel * \brief Renderer for any stream that is simply visualized as a labeled widget * \author J. T. Lindgren * * @ fixme this class inherits a lot of junk from the base c...
3f783535ac8851e64a55ac810b3ff6da6c55a4b3761bc19ce8016f9d10259ac1
C/C++
1,273
50
#ifndef LINEFILEUTILITIES_H #define LINEFILEUTILITIES_H #include <vector> #include <string> #include <cstring> #include <cstdlib> #include <sstream> #include <iostream> using namespace std; // templated function to convert objects to strings template <typename T> inline std::string ToString(const T & value) { st...
2e0191e779fc1bdb72dced7e27c1325a358f906350235710bbd8f8d3d30fa7fb
C/C++
1,280
46
#pragma once #include "../ovasCConfigurationBuilder.h" #include "ovasIDriver.h" namespace OpenViBE { namespace AcquisitionServer { /** * \class CConfigurationMBTSmarting * \author mBrainTrain dev team (mBrainTrain) * \date Tue Oct 14 16:09:43 2014 * \brief The CConfigurationMBTSmarting handles the configuration d...
609da6e0b326b65de53c7f995785ebcc417cc9ad44f3c9c8696cb019f318dd3f
C/C++
1,280
49
//----------------------------------------------- // Copyright 2010 Wellcome Trust Sanger Institute // Written by Jared Simpson (js18@sanger.ac.uk) // Released under the GPL //----------------------------------------------- // // BitVector - Vector of bits. The structure // can be locked by a mutex to guarentee atomic ...
ba4cef12c5cf3307ed2c1ae9335551ab7f0668e92954825d088d9dd1e42631fe
C/C++
1,280
39
/** * SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #pragma once #include <cstdint> #include <memory> #include <queue> #include <utility> #include <vector> #include <ProtocolMsgHandler.h> namespace OpenViBE { namespace Services { namespace TcpTagging { // Cu...
03c7c4878b00e6423a60853144ed40e3d3e72ce715f82166326b5f92ef8bf284
C/C++
1,298
43
#pragma once #include <cstddef> // for size_t #include "SvabaThreadUnit.h" // for svabaThreadUnit #include "SvabaUtils.h" #include "SeqLib/GenomicRegionCollection.h" // for GRC return type class SvabaLogger; class SvabaOptions; class SvabaOutputWriter; /// Encapsulates e...
c6224baeae8ace89f2529e7c79044c8605d3d2239a56493443744c93ea387767
C/C++
1,300
56
#pragma once #include <memory> #include <unordered_map> #include <vector> #include <cstdint> #include <vector> #include <cassert> #include <iostream> #include <memory> #include "htslib/hts.h" #include "htslib/sam.h" #include "htslib/bgzf.h" #include "htslib/kstring.h" #include "SeqLib/GenomicRegion.h" #include "Seq...
d3dd6c36276c3ca343baf5492b0806cb43f1b61fba7d7ee27b603470d0961dad
C/C++
1,300
48
#pragma once namespace SeqLib { class BWAAligner; } #include "SvabaRead.h" // object that holds functions for re-aligning a discordant read // and checking if it is a true discordant read class DiscordantRealigner { public: DiscordantRealigner() {} ~DiscordantRealigner() {} // check if a read should be r...
e978b5b6578c1ae3480afaa1cfebe4a0117e62322b34aaf84543799393722429
C/C++
1,300
36
/** * SPDX-FileCopyrightText: Inria <thomas.prampart@inria.fr> * SPDX-License-Identifier: AGPL-3.0-only */ #pragma once #include <cstdint> namespace OpenViBE { namespace Services { namespace TcpTagging { // Wire-compatible, byte-for-byte identical to the legacy tcp-tagging plugin's // Tag struct (extras/contrib/p...