text stringlengths 54 60.6k |
|---|
<commit_before>/*
* 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.
*
* Written (W) 2011-2012 Heiko Strathmann
* Co... |
<commit_before>#include "clm.h"
void JelinekMercerFeature::set_interpolation(float lambda) {
this->_bigram_contribution = 1.0 - lambda;
this->_unigram_contribution = lambda;
}
float JelinekMercerFeature::interpolation() const {
return this->_unigram_contribution;
}
void JelinekMercerFeature::set_slop(int sl... |
<commit_before>/*
* Hamming Window Function Unit for Jamoma DSP
* Copyright © 2010 by Trond Lossius
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "HammingWindow.h"
#define thisTTClass HammingWindow
#define thisTTClassName "hamming"
#... |
<commit_before>
#include "journal/player.hpp"
#include <list>
#include <string>
#include <thread>
#include <vector>
#include "benchmark/benchmark.h"
#include "glog/logging.h"
#include "gtest/gtest.h"
#include "journal/method.hpp"
#include "journal/profiles.hpp"
#include "journal/recorder.hpp"
#include "ksp_plugin/in... |
<commit_before>#ifndef WIN32
#include "native.h"
#include "generic.h"
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <curses.h>
#include <term.h>
/*
* Marks the given result as failed, using the current value of errno
*/
void m... |
<commit_before>#include "cnn/init.h"
#include "cnn/aligned-mem-pool.h"
#include "cnn/cnn.h"
#include "cnn/model.h"
#include <iostream>
#include <random>
#include <cmath>
#if HAVE_CUDA
#include "cnn/cuda.h"
#include <device_launch_parameters.h>
#endif
using namespace std;
namespace cnn {
#define ALIGN 6
... |
<commit_before>#include "MediaSessionServiceHandler.h"
#include "log.h"
using namespace ::com::kurento::kms::api;
using ::com::kurento::log::Log;
static Log l("MediaSessionHandler");
#define i(...) aux_info(l, __VA_ARGS__);
namespace com { namespace kurento { namespace kms {
MediaSessionServiceHandler::MediaSessio... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: popupmenudispatcher.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2006-12-13 15:03:56 $
*
* The Contents of this fil... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: mailtodispatcher.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 01:20:36 $
*
* The Contents of this file a... |
<commit_before><commit_msg>Add DetPid in ConvertTRD<commit_after><|endoftext|> |
<commit_before>/*
* Rule.cpp
*
* Created on: 18 Feb 2014
* Author: s0565741
*/
#include <limits>
#include <cassert>
#include "Rule.h"
#include "Parameter.h"
#include "LatticeArc.h"
#include "ConsistentPhrases.h"
#include "AlignedSentence.h"
using namespace std;
Rule::Rule(const LatticeArc &arc)
:m_isValid... |
<commit_before>// $Id$
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* ALICE Experiment at CERN, All rights reserved. *
* ... |
<commit_before>#include "scantargetwidget.h"
#include <QDebug>
#include <QOpenGLContext>
#include <QTimer>
#include "../../ClockReceiver/TimeTypes.hpp"
ScanTargetWidget::ScanTargetWidget(QWidget *parent) : QOpenGLWidget(parent) {}
ScanTargetWidget::~ScanTargetWidget() {}
void ScanTargetWidget::initializeGL() {
glC... |
<commit_before>/*
* Copyright (c) 2013 Aldebaran Robotics. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#include <iostream>
#include <gtest/gtest.h>
#include <qi/clock.hpp>
#include <qi/os.hpp>
#include <boost/chrono/chrono_io.hpp>
... |
<commit_before>/*
qgvdial is a cross platform Google Voice Dialer
Copyright (C) 2009-2014 Yuvraaj Kelkar
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or ... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (testabilitydriver@nokia.com)
**
** This file is part of Testability Driver Qt Agent
**
** If y... |
<commit_before>#include <QtWidgets>
#include <QtConcurrent>
#include <random>
std::default_random_engine reng;
int ilog2(qint64 val) {
Q_ASSERT(val >= 0);
int ret = -1;
while (val != 0) { val >>= 1; ret++; }
return ret;
}
/// The value binned to contain at most \a binaryDigits significant digits.
/// The les... |
<commit_before>#ifndef MIMOSA_REF_COUNTABLE_HH
# define MIMOSA_REF_COUNTABLE_HH
# include <cassert>
# include "ref-counted-ptr.hh"
namespace mimosa
{
class RefCountableBase
{
public:
inline RefCountableBase()
: ref_count_(0)
{
}
inline RefCountableBase(const RefCountableBase & /*other*/... |
<commit_before>/******************************************************************************
* root_bind.cpp - bindings for Ogre::Root
******************************************************************************
* This file is part of
* __ __ _
* / // /_____ ____ (_)
* / // // ___// _... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/bindings/cpp_examples/example7/example7.cpp,v $
// $Revision: 1.2 $
// $Name: $
// $Author: gauges $
// $Date: 2009/08/31 18:36:12 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellec... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
<commit_before>#ifndef K3_RUNTIME_BUILTINS_H
#define K3_RUNTIME_BUILTINS_H
#ifdef CACHEPROFILE
#include <cpucounters.h>
#endif
#ifdef MEMPROFILE
#include "gperftools/heap-profiler.h"
#endif
#ifdef JEMALLOC
#include "jemalloc/jemalloc.h"
#endif
#include <ctime>
#include <chrono>
#include <climits>
#include <fstream>... |
<commit_before>#include "catch.hpp"
#include <toolbox/alloc/stack_allocator.hpp>
#include <iostream>
TEST_CASE("simple functionality", "[alloc][stack_allocator]")
{
toolbox::alloc::stack_allocator<int, 10> alloc;
int *p1 = alloc.allocate(1);
int *p2 = alloc.allocate(1);
int *p3 = alloc.allocate(8);
REQUIRE(p2 -... |
<commit_before>#ifndef DIMENTIONS_HPP
#define DIMENTIONS_HPP
struct Dimentions
{
int W;
int H;
Dimentions(int w, int h) : W(w), H(h) {}
};
#endif // DIMENTIONS_HPP
<commit_msg>Add comparison operators for Dimention class.<commit_after>#ifndef DIMENTIONS_HPP
#define DIMENTIONS_HPP
struct Dimentions
{
... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCEventProcessModule.cpp
// @Author : LvSheng.Huang
// @Date : 2012-12-15
// @Module : NFCEventProcessModule
//
// ------------------------------... |
<commit_before>#include "ROOT/RDataFrame.hxx"
#include "ROOT/RTrivialDS.hxx"
#include "TMemFile.h"
#include "TTree.h"
#include "gtest/gtest.h"
using namespace ROOT;
using namespace ROOT::RDF;
TEST(RDataFrameInterface, CreateFromCStrings)
{
RDataFrame tdf("t", "file");
}
TEST(RDataFrameInterface, CreateFromString... |
<commit_before>#include "command.h"
Command::Command() {
//nothing?
}
/*Command::Command(string n) {
commandName = n;
}
Command::Command(string n, vector<string> a) {
commandName = n;
args.resize(a.size());
for(int i = 0; i < a.size(); i++) {
args.at(i) = a.at(i);
}
}
Command::Command(const Command &c) {
com... |
<commit_before>#include "RConfigure.h"
#include "ROOT/RRawFile.hxx"
#include "ROOT/RMakeUnique.hxx"
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <memory>
#include <stdexcept>
#include <string>
#include <utility>
#include "gtest/gtest.h"
using RRawFile = ROOT::Internal::RRawFi... |
<commit_before>#include <string.h>
#include <fstream>
#include <iostream>
#include <string>
#include <complex>
#include <math.h>
#include <set>
#include <vector>
#include <map>
#include <queue>
#include <stdio.h>
#include <stack>
#include <algorithm>
#include <list>
#include <ctime>
#include <memory.h>
... |
<commit_before>#include "stdafx.h"
// Other crap
#include <SADXModLoader.h>
#include <limits.h>
#include "minmax.h"
// This namespace
#include "input.h"
#include "rumble.h"
#include "DreamPad.h"
// TODO: mouse buttons
// TODO: fix alt+f4
struct KeyboardStick : NJS_POINT2I
{
Uint32 directions;
void update()
{
... |
<commit_before>
#include <assert.h>
#include <thread>
#include "LinkedList.hpp"
void test0() {
LinkedList<int> l;
l._checkSanity();
auto item = l.push_back();
item->value = 42;
item = NULL;
l._checkSanity();
assert(l.size() == 1);
auto ret = l.pop_front();
assert(ret);
assert(ret->value == 42);
ret = NUL... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
#include "chrome/browser/ui/touch/frame/touch_browser_frame_v... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/* Rescorer.C
*
* Copyright (C) 2011 Marcel Schumann
*
* This program 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.
*
* T... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>//===-- ASTResultSynthesizer.cpp --------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/// \file
/// \ingroup tutorial_roostats
/// \notebook -js
/// 'Bernstein Correction' RooStats tutorial macro
///
/// This tutorial shows usage of a the BernsteinCorrection utility in RooStats.
/// The idea is that one has a distribution coming either from data or Monte Carlo
/// (called "reality" in the... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: opump.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: obo $ $Date: 2006-09-16 23:44:21 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: semaphor.hxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: rt $ $Date: 2005-09-08 14:32:32 $
*
* The Contents of this file are made ... |
<commit_before>/*
* msrSyncBlockCode.cpp
*
* Created on: 26 mars 2013
* Author: dom
*/
#include <iostream>
#include <sstream>
#include <boost/asio.hpp>
#include "scheduler.h"
#include "network.h"
#include "msrSyncBlockCode.h"
#include "msrSyncMessages.h"
#include "msrSyncEvents.h"
#include "configStat.h"
... |
<commit_before>/***************************************************************************
fbellini@cern.ch - last modified on 28/11/2013
//
//Lauches KStar analysis with rsn mini package
//Allows basic configuration of pile-up check and event cuts
//
*****************************************************... |
<commit_before><commit_msg>Handle missing SIZE_MAX<commit_after><|endoftext|> |
<commit_before>/*
* DensifyPointCloud.cpp
*
* Copyright (c) 2014-2015 SEACAVE
*
* Author(s):
*
* cDc <cdc.seacave@gmail.com>
*
*
* 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 by
* the Free Software Found... |
<commit_before>#include "bct.h"
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_vector.h>
bool bct::safe_mode = false;
/* M
* Returns a vector of indices of the elements in m that satisfy a condition
* given by a comparison with cmprVal. Presently, the comparsion operators are
* coded in the cmprFlag parameter, as f... |
<commit_before>#ifndef UTILITY_HPP
# define UTILITY_HPP
#include <cstddef>
#include <type_traits>
namespace generic
{
template <::std::size_t...> struct indices { };
namespace detail
{
// indices
template<class A, class B> struct catenate_indices;
template <::std::size_t ...Is, ::std::size_t ...Js>
struct catena... |
<commit_before>#ifndef UTILITY_HPP
# define UTILITY_HPP
#include <cstddef>
#include <type_traits>
namespace generic
{
template<typename T> constexpr inline T const& as_const(T& t) { return t; }
template <::std::size_t...> struct indices { };
namespace detail
{
// indices
template<class, class> struct catenate_in... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: wrap_IOBase.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ITKCopyright... |
<commit_before>#include <string>
#include "stdafx.h"
#include "MainScene.h"
#include "MCScene.h"
Scene* MCScene::createScene()
{
auto scene = Scene::create();
auto layer = MCScene::create();
scene->addChild(layer);
return scene;
}
bool MCScene::init()
{
if (!CCLayerColor::initWithColor(Color4B(0, 0, 0, 255)... |
<commit_before>/**
* @file prereqs.hpp
*
* The core includes that mlpack expects; standard C++ includes and Armadillo.
*/
#ifndef __MLPACK_PREREQS_HPP
#define __MLPACK_PREREQS_HPP
// First, check if Armadillo was included before, warning if so.
#ifdef ARMA_INCLUDES
#pragma message "Armadillo was included before ml... |
<commit_before>/*
Copyright (c) 2014, Nicolas Brown
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and t... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>#pragma once
/*
* Covariant Mozart Utility Library: Any
*
* 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
* any later version.
*
* This program... |
<commit_before>/******************************************************************************
* Main script for the 2017 RoboFishy Scripps AUV
******************************************************************************/
#include "Mapper.h"
// Multithreading
#include <pthread.h>
#include <sched.h>
#include <unistd... |
<commit_before>#pragma once
namespace stx {
struct handle_socket {
virtual void on_handle_destroyed() noexcept = 0;
};
class handle {
handle_socket* m_socket;
public:
handle() : m_socket(nullptr) {}
handle(handle_socket* s) : m_socket(s) {}
handle(handle&& h) : m_socket(h.m_socket) { h.m_socket = nullptr; }
~... |
<commit_before><commit_msg>bool improvements<commit_after><|endoftext|> |
<commit_before>//
// Created by cheyulin on 5/9/16.
//
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <iostream>
#include <unistd.h>
#include <semaphore.h>
#include <vector>
int thread_count;
pthread_mutex_t mutex;
pthread_cond_t cond_var;
int idle_count = 0;
using namespace std;
vector<int> glo... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkDecimate.hh
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by Ke... |
<commit_before>#include "stdsneezy.h"
#include "database.h"
#include "session.cgi.h"
#include <cgicc/Cgicc.h>
#include <cgicc/HTTPCookie.h>
#include <cgicc/CgiEnvironment.h>
#include <sys/types.h>
#include <md5.h>
cgicc::HTTPCookie TSession::getCookie()
{
cgicc::HTTPCookie cookie(cookiename, getSessionID());
if(... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkStructuredPointsGeometryFilter.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This softwa... |
<commit_before>//
//#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <ctime>
#include <algorithm>
#include <cmath>
#include "GPIOClass.h"
using namespace std;
void Pulse(GPIOClass* pin, double cycles);
void Wait(double seconds);
clock_t timer;
double time_to_complete;... |
<commit_before>#include <Sound.h>
#include <Display.h>
#include <SDL.h>
#include <SDL_mixer.h>
#include <hx/Thread.h>
namespace nme
{
bool gSDLIsInit = false;
class SDLSoundChannel;
bool sChannelsInit = false;
enum { sMaxChannels = 8 };
bool sUsedChannel[sMaxChannels];
bool sDoneChannel[sMaxCh... |
<commit_before>#include <julia.h>
#include "rvalue.h"
#include "Values.h"
using namespace std;
jl_value_t *rPrimitive(const nj::Primitive &prim)
{
jl_value_t *res = 0;
switch(prim.type()->getId())
{
case nj::null_type: res = (jl_value_t*)jl_null; break;
case nj::boolean_type:
{
co... |
<commit_before>//
// Copyright (c) 2008-2018 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, ... |
<commit_before>/*******************************************************************************
Yuri V. Krugloff. 2013-2015. http://www.tver-soft.org
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute... |
<commit_before>#include "NativeExample.h"
#include <iostream>
using namespace std;
JNIEXPORT void JNICALL Java_NativeExample_callMe
(JNIEnv *env, jobject jobj){
std::cout<<"Hello .."<<std::endl;
jclass classObject = env->FindClass("Abc");
if(classObject==0){
std::cout<<"couldn't find class"<<std::endl;
}... |
<commit_before>/*
* This file is part of Playslave-C++.
* Playslave-C++ is licenced under MIT License. See LICENSE.txt for more
* details.
*/
#define _POSIX_C_SOURCE 200809
#include <memory>
#include <sstream>
#include <vector>
#include <cstdarg> /* CurrentStateIn */
#include <cstdbool> /* bool */
#include <cst... |
<commit_before>#include "NegativeBinomialRand.h"
template< typename T >
NegativeBinomialRand<T>::NegativeBinomialRand(T number, double probability) :
G(probability)
{
setParameters(number, probability);
}
template< typename T >
std::string NegativeBinomialRand<T>::name()
{
return "Negative Binomial(" + to... |
<commit_before>/**
* \file dcs/math/curvefit/interpolation/base1d.hpp
*
* \brief Base class for one-dimensional interpolation.
*
* \author Marco Guazzone (marco.guazzone@gmail.com)
*
* <hr/>
*
* Copyright (C) 2013 Marco Guazzone (marco.guazzone@gmail.com)
* [Distributed Computin... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the... |
<commit_before>//=====================================================================//
/*! @file
@brief R8C PLUSE OUT/LCD メイン @n
for ST7567 SPI (128 x 32) @n
LCD: Aitendo M-G0812P7567 @n
ENCODER: A: P10, B: P11 Com: Vss
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=================================================... |
<commit_before>// Copyright 2017 Adam Smith
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... |
<commit_before>#include "fenetre.h"
#include "ui_fenetre.h"
#include "fileManagement.h"
//#include <QMessageBox>
Fenetre::Fenetre(QWidget *parent) : QMainWindow(parent), ui(new Ui::Fenetre)
{
ui->setupUi(this);
//on connecte les Qapplication
connect(ui->actionNouveau,SIGNAL(triggered()),this,SLOT(nouveauF... |
<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "nl_bond.h"
#include <cassert>
#include <glog/logging.h>
#include <linux/if_bridge.h>
#in... |
<commit_before>//============================================================================
// Name : ToolKitTest.cpp
// Author : xzl
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//==================================================================... |
<commit_before>#pragma once
#include <nlohmann/json.hpp>
namespace dai {
/// NodeIo informations such as name, type, ...
struct NodeIoInfo {
enum class Type { MSender, SSender, MReceiver, SReceiver };
std::string group;
std::string name;
Type type = Type::SReceiver;
bool blocking = true;
int... |
<commit_before>#include <iostream>
#include <string>
#include <sstream>
#include <Eigen/Dense>
#include "gtest/gtest.h"
#include "bicycle.h"
/*
* A and B expected state space matrices generated using dtk.bicycle:
*
* from dtk.bicycle import *
* np.set_printoptions(precision=16)
* A, B = benchmark_state_space(*ben... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>/** @addtogroup Simulation
* @{
* \copyright TU Dresden ZIH. All rights reserved.
* \authors Martin Flehmig, Marc Hartung, Marcus Walther
* \date Nov 2015
*/
#ifndef INCLUDE_SIMULATION_OPENMPSIMULATION_HPP_
#define INCLUDE_SIMULATION_OPENMPSIMULATION_HPP_
#include <fmi/AbstractFmu.hpp>
#includ... |
<commit_before>/******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across ... |
<commit_before>//============================================================================
//==== Titre: Standard_ErrorHandler.cxx
//==== Role : class "Standard_ErrorHandler" implementation.
//============================================================================
#include <Standard_ErrorHandler.hxx>
#include <... |
<commit_before>/*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| tha... |
<commit_before>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015
Vladimír Vondruš <mosra@centrum.cz>
Copyright © 2015
Jonathan Hale <squareys@googlemail.com>
Permission is hereby granted, free of charge, to any person obtaining a
copy of thi... |
<commit_before>#include <snn/network.h>
namespace snn {
network::network(int N)
: m_N(N)
, m_Ne(N * 0.8)
, m_Ni(m_N - m_Ne)
, m_a(N)
, m_b(N)
, m_c(N)
, m_d(N)
, m_s(N, N)
, m_v(N)
, m_u(N)
, m_I(N)
, m_fired(N)
{
... |
<commit_before>
#ifdef JASP_R_INTERFACE_LIBRARY
#include "jasprcpp.h"
#else
bool jaspRCPP_setColumnDataAsScale( std::string, Rcpp::RObject) { jaspPrint("jaspColumn does nothing in R stand-alone!"); return false; };
bool jaspRCPP_setColumnDataAsOrdinal( std::string, Rcpp::RObject) { jaspPrint("jaspColumn does nothing... |
<commit_before>// Copyright (c) 2010 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All... |
<commit_before>#include <cc1101.hpp>
template <typename cc1101>
class Radio : public cc1101 {
static void setup_common();
public:
static void setup_for_rx();
static void setup_for_tx();
};
template <typename cc1101>
inline void Radio<cc1101>::setup_common()
{
// reset
cc1101::select();
cc1101::template wcmd<CC1... |
<commit_before>#include <cc1101.hpp>
template <typename cc1101>
class Radio : public cc1101 {
static void setup_common();
public:
static void setup_for_rx();
static void setup_for_tx();
};
template <typename cc1101>
inline void Radio<cc1101>::setup_common()
{
// reset
cc1101::select();
cc1101::wcmd(CC1101::SRES... |
<commit_before>// Copyright (c) 2012, Sergey Zolotarev
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
// ... |
<commit_before>//
// HUDQuadWidget.cpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 12/17/13.
//
//
#include "HUDQuadWidget.hpp"
#include "Context.hpp"
#include "IDownloader.hpp"
#include "IImageDownloadListener.hpp"
#include "TexturesHandler.hpp"
#include "Camera.hpp"
#include "Vector3D.hpp"
#include "FloatB... |
<commit_before>#include "lm/enumerate_vocab.hh"
#include "lm/model.hh"
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <string>
#include <ctype.h>
#include <sys/resource.h>
#include <sys/time.h>
float FloatSec(const struct timeval &tv) {
return static_cast<float>(tv.tv_sec) + (static_cast<float... |
<commit_before>#include "pattern_search.h"
void findPattern(const string& pattern, const string& text,
vector<int> *ppositions) {
if (pattern.empty())
return;
auto& positions = *ppositions;
positions.clear();
for (size_t i = 0; i < text.size(); i++) {
bool found = true;
for (size_t j = 0; j ... |
<commit_before>/*
* Copyright (C) 2010 The Android Open Source Project
*
* 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 ... |
<commit_before>#include <iostream>
#include <vector>
struct Node
{
Node* left;
Node* right;
Node* p;
int v;
};
Node* search(Node* tree, int value)
{
Node* c = tree;
while (c != nullptr && c->v != value)
{
if (value < c->v)
{
c = c->left;
}
else
{
c = c->right;
}
}
return c;
}
Node* min(No... |
<commit_before>#include "phase_unfolder.hpp"
#include <iostream>
#include <map>
namespace vg {
PhaseUnfolder::PhaseUnfolder(const xg::XG& xg_index, const gbwt::GBWT& gbwt_index, vg::id_t next_node) :
xg_index(xg_index), gbwt_index(gbwt_index), mapping(next_node) {
}
void PhaseUnfolder::unfold(VG& graph, bool sh... |
<commit_before>#include <unordered_map>
#include <string>
#include "imgui.h"
#include "app_config.h"
#include "console_log.h"
typedef void(*PFN_EXECUTE_COMMAND)(const std::string &);
class CGuiConsole
{
public:
static inline CGuiConsole& singleton()
{
static CGuiConsole s_console;
return s_console;
}
void dr... |
<commit_before>/**
* Copyright (c) 2004 David Faure <faure@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License
*
* This program is distributed in the h... |
<commit_before>
// Player.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "afxwinappex.h"
#include "afxdialogex.h"
#include "Player.h"
#include "MainFrm.h"
#include "PlayerDoc.h"
#include "PlayerView.h"
#include "PlayerViewD2D.h"
#include "I420Effect.h"
#include "AsyncGetUrlUn... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2008 Ulrich von Zadow
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2 of the Li... |
<commit_before>//===-- NativeProcessProtocolTest.cpp ---------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.