text stringlengths 54 60.6k |
|---|
<commit_before>/*
Copyright (C) 2002 by Norman Kraemer
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later ver... |
<commit_before>#include "RFProtocolVhome.h"
//
static range_type g_timing_pause[7] =
{
{ 12000, 18000 }, //
{ 250, 550 }, //
{ 1200, 1500 }, //
{ 0,0 }
};
static range_type g_timing_pulse[8] =
{
{ 3500, 3500 },
{ 250, 550 }, //
{ 1200, 1500 }, //
{ 0,0 }
};
CRFProtocolVhome::CRFProtocolVhome()
:CRFP... |
<commit_before>/***************************************************************************
class.cpp - class Class
-------------------
begin : mar avr 15 2003
copyright : (C) 2003 by Michael CATANZARITI
email ... |
<commit_before>#include <node.h>
#include <node_buffer.h>
#include <mysql/mysql.h>
using namespace node;
using namespace v8;
static Persistent<FunctionTemplate> Client_constructor;
static Persistent<String> emit_symbol;
const int
STATE_CLOSE = -3,
STATE_CLOSING = -2,
STATE_CLOSED = -1,... |
<commit_before>/*
* VectorT.cpp
*
* Created on: Nov 19, 2015
* Author: ebke
*/
#ifndef BMPOSTFIX
#error "Do not compile directly."
#endif
#include <type_traits>
#define ASSEMBLE_(POSTFIX, PREFIX) PREFIX ## POSTFIX
#define ASSEMBLE(POSTFIX, PREFIX) ASSEMBLE_(POSTFIX, PREFIX)
#define MYBENCHMARK(NAME) BENCH... |
<commit_before>#include <iostream>
#include <iterator>
#include <algorithm>
#include <signal.h>
#include "headings.h"
#include "libaps2.h"
#include "constants.h"
#include "concol.h"
#include "helpers.h"
#include "optionparser.h"
enum optionIndex { UNKNOWN, HELP, WFA_FILE, WFB_FILE, TRIG_MODE, TRIG_INTERVAL, LOG_LEV... |
<commit_before>// C++ General Utility Library (mailto:cgul@zethes.com)
// Copyright (C) 2012-2014, Joshua Brookover and Amber Thrall
// All rights reserved.
/** @file Vector3.hpp
*/
#pragma once
#include <CGUL/Config.hpp>
#include "../External/Defines.hpp"
// Without this here you would need a human sacrifice each ... |
<commit_before>/**
* @file FTAddMyTask.C
* @author Freja Thoresen <freja.thoresen@cern.ch>
*
* @brief Add Q-cummulant forward task to train
*
*
* @ingroup pwglf_forward_scripts_tasks
*/
/**
* @defgroup pwglf_forward_flow Flow
*
* Code to deal with flow
*
* @ingroup pwglf_forward_topical
*/
/**
* Add F... |
<commit_before>// HeeksCNCInterface.cpp
#include "stdafx.h"
#include "HeeksCNCInterface.h"
#include "Program.h"
#include "Operations.h"
#include "CTool.h"
#include "Tools.h"
#include "interface/HDialogs.h"
#include <wx/aui/aui.h>
CProgram* CHeeksCNCInterface::GetProgram()
{
return theApp.m_program;
}
... |
<commit_before>
#include <Hord/IO/Datastore.hpp>
#include <utility>
#include <Hord/detail/gr_core.hpp>
namespace Hord {
namespace IO {
// class Datastore implementation
#define HORD_SCOPE_CLASS IO::Datastore
Datastore::Datastore(
String root_path
) noexcept
: m_root_path(std::move(root_path))
{}
Datastore::~Da... |
<commit_before>#include "lodmaker.h"
struct QVertex {
aten::vertex v;
uint32_t idx;
uint32_t grid[3];
uint64_t hash;
QVertex() {}
QVertex(
aten::vertex _v,
uint32_t i,
uint64_t h,
uint32_t gx, uint32_t gy, uint32_t gz)
: v(_v), idx(i), hash(h)
{
grid[0] = gx;
grid[1] = gy;
grid[2] = gz;
}
... |
<commit_before>/* Copyright (c) 2010-2012 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" ... |
<commit_before>#include "crc32.h"
/* Crc - 32 BIT ANSI X3.66 CRC checksum files */
#include <stdio.h>
/**********************************************************************\
|* Demonstration program to compute the 32-bit CRC used as the frame *|
|* check sequence in ADCCP (ANSI X3.66, also known as FIPS PUB 71 ... |
<commit_before>//
// Copyright (c) 2016 CNRS
// Author: NMansard
//
//
// This file is part of hpp-pinocchio
// hpp-pinocchio 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
// 3 of the... |
<commit_before>#ifndef _SMRH_
#define _SMRH_
#include <list>
#include <vector>
#include <algorithm>
#include <atomic>
#include <boost/thread/tss.hpp>
namespace DNFC
{
template <typename T>
class HazardPointer
{
public:
void subscribe()
{
// First try to reuse a retire HP record
boost::thread_specific_ptr<... |
<commit_before>/*
* Copyright 2017 deepstreamHub GmbH
*
* 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 applic... |
<commit_before>#include "UnixSocketHandler.hpp"
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <unistd.h>
namespace et {
UnixSocketHandler::UnixSocketHandler() {}
bool UnixSocketHandler::hasData(int fd) {
fd_set input;
FD_ZERO(&input);
FD... |
<commit_before>// MassTable class
#define DB_SELECT 1 // 0 for sqlite, 1 for hdf5
#include "MassTable.h"
#include "CycException.h"
#include <iostream>
#include <stdlib.h>
#include "Env.h"
using namespace std;
MassTable* MassTable::instance_ = 0;
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -... |
<commit_before>#include "input.h"
InputHandler::InputHandler(sf::Window* Window, Player* Player) : app(Window), player(Player) {
app->ShowMouseCursor(false);
}
void InputHandler::handleEvent(sf::Event Event) {
// Close window : exit
if (Event.Type == sf::Event::Closed)
app->Close();
// Escape... |
<commit_before>/*
Copyright 2015-2020 Igor Petrovic
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 agreed to i... |
<commit_before>#include <iostream>
#include <sstream>
#include <map>
#include <unordered_map>
#include <vector>
#include <string>
#include "dict.h"
#include "dictglobal.h"
using Dict = std::unordered_map<std::string, std::string>;
using IdentifierType = unsigned long;
namespace {
#ifdef NDEBUG
const bool ... |
<commit_before>/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
*
* This program 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.
*
* This program i... |
<commit_before>/**helloWorld.cpp*/
//Std
#include <iostream>
#include <math.h>
#include <cstdlib>
//eigen
#include <eigen3/Eigen/Dense>
#include <eigen3/Eigen/Geometry>
// import most common Eigen types
using namespace std;
using namespace Eigen;
int main(int argc, char *argv[])
{
// Let's print it pretty
c... |
<commit_before>/*
* ClusteringAlgoGTest.cpp
*
* Created on: 10.01.2013
* Author: Christian Staudt (christian.staudt@kit.edu)
*/
#include "ClusteringAlgoGTest.h"
#include "../PLP.h"
#include "../PLM.h"
#include "../CNM.h"
#include "../ParallelAgglomerativeClusterer.h"
#include "../../clustering/Modularity.h... |
<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, ... |
<commit_before>#include "musiclrcmanager.h"
#include <QFile>
#include <QFontDatabase>
MusicLRCManager::MusicLRCManager(QWidget *parent)
: QLabel(parent)
{
m_intervalCount = 0.0f;
m_linearGradient.setStart(0, 10);//The starting point coordinates filled
m_linearGradient.setFinalStop(0, 40);//The coordi... |
<commit_before>/*********************************************************************
*
* Condor ClassAd library
* Copyright (C) 1990-2001, CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI, and Rajesh Raman.
*
* This library is free software; you can redistribute it and/or
* modif... |
<commit_before>// This file is part of playd.
// playd is licenced under the MIT license: see LICENSE.txt.
/**
* @file
* Tests for the Tokeniser class.
*/
#include "catch.hpp"
#include "../io/tokeniser.hpp"
SCENARIO("Tokenisers can handle complete, unquoted commands", "[tokeniser]") {
GIVEN("A fresh Tokeniser") ... |
<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>/******************************************************************************\
* ___ __ *
* /\_ \ __/\ \ *
* \//\ \ /\_\ \ \____ ___ _____ _____ __ ... |
<commit_before>/**
* \file py_event_manager.cpp
* \brief Python wrapper for event_manager,
* see event_manager.h
* \author Morozov Andrey
* \date 07.06.2008
* \copyright This source code is released under the terms of
* the BSD License. See LICENSE for more ... |
<commit_before>/********************************************************************* *\
* INTEL CORPORATION PROPRIETARY INFORMATION
* This software is supplied under the terms of a license agreement or
* nondisclosure agreement with Intel Corporation and may not be copied
* or disclo... |
<commit_before>#include "ComboBox.h"
#define _CRT_SECURE_NO_WARNINGS
int coloredLine;
int backgroundLine;
DWORD regularAttr;
ComboBox::ComboBox(int x, int y, char* options[], int size) {
handle = GetStdHandle(STD_OUTPUT_HANDLE);
//defualt text width
width = 15;
coloredLine = -1;
backgroundLine = -1;
//set in t... |
<commit_before>/*
Binderoo
Copyright (c) 2016, Remedy Entertainment
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... |
<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>#include "RuleScope.h"
#include "moses/StaticData.h"
#include "moses/Word.h"
namespace Moses
{
RuleAmbiguity::RuleAmbiguity(const std::string &line)
:StatelessFeatureFunction(1, line)
,m_sourceSyntax(true)
{
}
bool IsAmbiguous(const Word &word, bool sourceSyntax)
{
const Word &inputDefaultNonTerminal... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff/
// Copyright Holders: Felix Albrecht, Rene Milk
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_LA_SOLVER_HH
#define DUNE_STUFF_LA_SOLVER_HH
#includ... |
<commit_before>
#include "Math/RMinimizer.h"
#include "Math/IFunction.h"
#include <TVectorD.h>
#include "Math/BasicMinimizer.h"
//#include "Math/MultiNumGradFunction.h"
namespace ROOT {
namespace Math{
const ROOT::Math::IMultiGenFunction *gFunction;
const ROOT::Math::IMultiGradFunction *gGradFunction;... |
<commit_before>// @(#)root/meta:$Name: $:$Id: TGenericClassInfo.cxx,v 1.17 2007/01/31 19:59:53 pcanal Exp $
// Author: Philippe Canal 08/05/2002
/*************************************************************************
* Copyright (C) 1995-2002, Rene Brun, Fons Rademakers and al. *
* All rights reserved.... |
<commit_before>#ifndef ENUMERABLE__H__
#define ENUMERABLE__H__
#include <iterbase.hpp>
#include <utility>
#include <iterator>
#include <functional>
// enumerate functionality for python-style for-each enumerate loops
// for (auto e : enumerate(vec)) {
// std::cout << e.index
// << ": "
// ... |
<commit_before>// Copyright (c) 2010 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 "net/base/dnsrr_resolver.h"
#if defined(OS_POSIX)
#include <resolv.h>
#endif
#include "base/string_piece.h"
#include "base/t... |
<commit_before>// Time: O(n * n!)
// Space: O(n)
// Time: O(n * n!)
// Space: O(n)
class Solution {
public:
vector<string> generatePalindromes(string s) {
if (s.empty()) {
return {};
}
unordered_map<char, int> cnt;
for (const auto& c : s) {
++cnt[c];
... |
<commit_before>#include <ctime>
#include <sstream>
#include <filesystem>
namespace filesystem = std::experimental::filesystem::v1;
#include <fmt/format.h>
#include <GLFW/glfw3.h>
#include "Common/Platform.hpp"
#include "Debug/Log.hpp"
#include "xdCore.hpp"
#include "XMLResource.hpp"
XDAY_API xdCore Core;
static voi... |
<commit_before>/*=========================================================================
Program: Monteverdi2
Language: C++
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See Copyright.txt for details.
Monteverdi2 is distributed under the CeCILL licence version 2. See
Licenc... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#include "config.h"
#ifndef DUNE_STUFF_TEST_MAIN_CATCH_EXCEPTIONS
# define DUNE_... |
<commit_before>// Copyright 2015-2019 Elviss Strazdins. All rights reserved.
#include <stdexcept>
#include "VorbisClip.hpp"
#include "Audio.hpp"
#include "mixer/Data.hpp"
#include "mixer/Stream.hpp"
#include "utils/Utils.hpp"
#if defined(_MSC_VER)
# pragma warning( push )
# pragma warning( disable : 4100 )
# pragm... |
<commit_before>// Copyright 2014 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 "content/renderer/renderer_font_platform_win.h"
#include <dwrite.h>
#include <string>
#include <vector>
#include <wrl/implements.... |
<commit_before>// Copyright (c) 2012 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 "content/shell/shell_content_renderer_client.h"
#include "base/callback.h"
#include "base/command_line.h"
#include "base/debu... |
<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.
This program is distributed in the hope that it will be ... |
<commit_before>#ifndef HASHEROBJ
#define HASHEROBJ
#include "header.h"
#include "iotools.h"
//#include "path_manager.hpp"
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <fstream>
using namespace std;
using namespace cv;
class HasherObject {
public:
// What should the parameters be here?
... |
<commit_before>/*
* Copyright (c) 2003-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>#include <iostream>
#include "Compiler.h"
#include "ErrorCode.h"
namespace lyrics
{
const u16string Scanner::BREAK = u"break";
const u16string Scanner::CASE = u"case";
const u16string Scanner::CLASS = u"class";
const u16string Scanner::DO = u"do";
const u16string Scanner::END = u"end";
const u16s... |
<commit_before>//
// Created by joe on 10/21/16.
//
#include "calcc/asttools/compiler.h"
#include "calcc/global_llvm.h"
using namespace calcc::ast;
using namespace calcc;
using namespace std;
using namespace llvm;
static llvm::BasicBlock* BB;
Type *toType(VAL_TYPE vt) {
switch (vt) {
case VAL_INT: return Type... |
<commit_before>// This file is part of playd.
// playd is licensed under the MIT licence: see LICENSE.txt.
/**
* @file
* Implementation of the Mp3AudioSource class.
* @see audio/sources/mp3.hpp
*/
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <map>
#include <memory>
#includ... |
<commit_before>#ifndef EFFOLKRONIUM_RANDOM_HPP
#define EFFOLKRONIUM_RANDOM_HPP
#include <random>
#include <type_traits>
#include <cassert>
#include <initializer_list>
#include <iterator> // std::next
#include <utility> // std::declval
namespace effolkronium {
namespace details {
/// Key type for getting... |
<commit_before>// Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include "bench.h"
#include "bloom.h"
#include "hash.h"
#include "uint256.h"
#include "utiltim... |
<commit_before>// Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include "bench.h"
#include "bloom.h"
#include "utiltime.h"
#include "crypto/ripemd160.h"
#inc... |
<commit_before>#include <ncurses.h>
#include <iostream>
#include <unistd.h>
#include "display/Screen.h"
#include "display/Window.h"
#include "display/WindowManager.h"
#include "map/Level.h"
#include "map/filters/DrunkardsWalkFilter.h"
#include "actor/Actor.h"
#include "core/Rand.h"
void pause_curses(Screen& screen)
{... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#ifdef LEAN_USE_LUA
#include <lua.hpp>
#include "util/debug.h"
#include "util/name.h"
namespace lean {
static int name_gc(lua_State * L);
st... |
<commit_before>/*
* 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 list of conditions and the
* following disclaimer.
*
... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QGraphicsItem>
#include <QDebug>
#include <QGraphicsItemAnimation>
#include <QTimeLine>
#include <QGraphicsOpacityEffect>
#include <QPropertyAnimation>
#include <QMediaPlayer>
#include "qgameitem.h"
class CustomItem : public QGraphicsPixmapIte... |
<commit_before>/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTypes.h"
#ifdef SK_HAS_HEIF_LIBRARY
#include "SkCodec.h"
#include "SkCodecPriv.h"
#include "SkColorPriv.h"
#include "SkColorSpace_Base.h"
#include ... |
<commit_before>#include <signal.h>
#include <stdlib.h>
#include <errno.h>
#include "l7vsd.h"
static void sig_exit_handler(int sig);
static int set_sighandler(int sig, void (*handler)(int));
static int set_sighandlers();
static void usage(FILE* p);
static bool exit_requested = false;
static int received_sig = 0;
name... |
<commit_before>/* Copyright 2012 Dietrich Epp <depp@zdome.net> */
#include "level.hpp"
#include "gamescreen.hpp"
using namespace LD24;
Level::~Level()
{ }
void Level::nextLevel()
{
screen.nextLevel();
}
void Level::setTipFlags(unsigned flags)
{
if (flags == m_tipflag)
return;
levelTips.clear();
... |
<commit_before>/*
** Copyright 2011 Merethis
**
** This file is part of Centreon Clib.
**
** Centreon Clib 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 Foundation, either version
** 3 of the License, or (at yo... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>/*
* Copyright 2010 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkRasterClip.h"
SkRasterClip::SkRasterClip() {
fIsBW = true;
}
SkRasterClip::SkRasterClip(const SkIRect& bounds) : fBW(bounds) {
fIsBW = tr... |
<commit_before>/*
* Copyright (c) 2012 Fredrik Mellbin
*
* This file is part of VapourSynth.
*
* VapourSynth 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 (at y... |
<commit_before>/***********************************************************************
filename: TabControlDemo.cpp
created: 27/6/2006
author: Andrew Zabolotny
*************************************************************************/
/**************************************************************... |
<commit_before>
#include "axis.h"
#include <stdlib.h>
#include "legacy_commands.h"
//TODO: goal of refactor is to kick this out completely
extern "C" {
#include "low_level.h"
}
// C interface
extern "C" {
void axis_thread_entry(void const* temp_motor_ptr) {
Motor_t* motor = (Motor_t*)temp_motor_ptr;
//TODO: ... |
<commit_before>// GridMatch.cpp : Defines the entry point for the console application.
//#define USE_GPU
#include "Header.h"
#include "GMS.h"
#include "VideoMatch.h"
#include "ORBextractor.h"
void GridMatch(Mat &img1, Mat &img2);
void runImagePair(){
Mat img1 = imread("./data/nn_left.jpg");
Mat img2 = imread("./... |
<commit_before>/// HEADER
#include <csapex.h>
/// PROJECT
#include <csapex/core/csapex_core.h>
#include <csapex/core/settings/settings_local.h>
#include <csapex/msg/generic_vector_message.hpp>
#include <csapex/param/parameter_factory.h>
#include <csapex/utility/error_handling.h>
#include <csapex/utility/exceptions.h>
... |
<commit_before>#include <string>
#include <functional>
#include <fstream>
#include <set>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/optional.hpp>
#include <boost/filesystem.hpp>
#include <json/json.h>
#include <json_help.hpp>
#include "raftrpc.hpp"
#include "raftstate.hpp"
#inclu... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "SoundStream.h"
// Debug prints only
#include "OpenALAudioModule.h"
#include <QFile>
namespace OpenALAudio
{
SoundStream::SoundStream(std::string stream_name, uint frequenc... |
<commit_before>#include "C3DFileAdapter.h"
#include "btkAcquisitionFileReader.h"
#include "btkAcquisition.h"
#include "btkForcePlatformsExtractor.h"
#include "btkGroundReactionWrenchFilter.h"
namespace {
// Function to convert Eigen matrix to SimTK matrix. This can become a lambda
// funciton inside extendRead in fu... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 Couchbase, Inc
*
* 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 a... |
<commit_before>//
// Macro to run performance QA train
// locally. The TPC performance task is attached.
//
//
//13.10.2009 - J.Otwinowski@gsi.de
//
//
/*
Quick Start:
1. Start train macro (real data from GSI::SE). Source your own Alien environment.
source /u/jacek/alien/set_alien_env.sh
aliroot -b -q 'RunPerforma... |
<commit_before>//
// PROJECT CHRONO - http://projectchrono.org
//
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://projectchrono.org/license-chrono.txt.
//
////////////////////////////... |
<commit_before>#include "lua_tile.h"
extern "C"
{
# include <lua/src/lua.h>
# include <lua/src/lauxlib.h>
# include <lua/src/lualib.h>
}
#include <lua/lua_state.h>
using namespace am::lua;
#include <game/tile.h>
#include <game/tile_type.h>
#include <game/engine.h>
using namespace am::game;
#include <util/json_val... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2012-2013, SimQuest Solutions Inc.
//
// 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.apac... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distribu... |
<commit_before><commit_msg>Prediction: implement main procedures in pedestrian interaction<commit_after><|endoftext|> |
<commit_before>/**
* \file postprocessing.hh
* \brief postprocessing.hh
**/
#ifndef POSTPROCESSING_HH
#define POSTPROCESSING_HH
#include <dune/fem/operator/projection/l2projection.hh>
#include <dune/fem/io/file/vtkio.hh>
#include <dune/fem/io/file/datawriter.hh>
#include "logging.hh"
#include "misc.hh"
#inc... |
<commit_before>#if defined(_WIN32) || defined(__APPLE__)
#include "generic_fsnotifier.h"
/**
* Attaches JNI to the current thread.
*/
extern JNIEnv* attach_jni(JavaVM* jvm, const char* name, bool daemon);
/**
* Detaches JNI from the current thread.
*/
extern int detach_jni(JavaVM* jvm);
AbstractServer::Abstract... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestConeLayoutStrategy.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details... |
<commit_before>#include "EagleLib/Logging.h"
#include "MetaObject/Logging/Log.hpp"
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/sinks.hpp>
#include <boost/log/attributes.hpp>
#include <boost/log/common.hpp>
#include <boost/log/exceptions.hpp>
#i... |
<commit_before>// Copyright (c) 2006-2008 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 "webkit/glue/plugins/webplugin_delegate_impl.h"
#include <string>
#include <vector>
#include "base/file_util.h"
#includ... |
<commit_before>
#include "RMinimizer.h"
#include "Math/IFunction.h"
#include <TVectorD.h>
#include "Math/BasicMinimizer.h"
#include "Math/MultiNumGradFunction.h"
const ROOT::Math::IMultiGenFunction *gFunction;
double minfunction(TVectorD x){
return (*gFunction)(x.GetMatrixArray());
}
RMinimizer::RMinimizer(Optio... |
<commit_before>/*
* DefaultForwardChainerCB.cc
*
* Copyright (C) 2015 Misgana Bayetta
*
* Author: Misgana Bayetta <misgana.bayetta@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 v3 as
* published by the Free Soft... |
<commit_before>/**
* @file deBruijnGraphGen.hpp
* @ingroup graphGen
* @author Chirag Jain <cjain7@gatech.edu>
* @brief Builds the edgelist for de bruijn graph using BLISS library.
*
* Copyright (c) 2015 Georgia Institute of Technology. All Rights Reserved.
*/
#ifndef DE_BRUIJN_GEN_HPP
#define DE_BRUIJN_G... |
<commit_before>
#include "relay.h"
#ifdef RELAY
bool relayEnabled = RELAY_ENABLED;
uint8_t relayChannel = RELAY_CHANNEL; // Channel to switch between PXX and PPM control; Allowed only channels CH5..CH8;
uint8_t gpsModeChannel = GPS_MODE_CHANNEL; // Set it to channel to enable GPS HOLD mode; Allowed only channels... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libdui.
**
** If you have questions regarding the use ... |
<commit_before><commit_msg>Bug 45563 - incorrect IMPORT of Zotero RTF, regression<commit_after><|endoftext|> |
<commit_before><commit_msg>Related: fdo#43380 fix parsing of the \cf RTF token<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) Facebook, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
#include "FlipperConnectionManagerImpl.h"
#include <folly/String.h>
#include <folly/futures/Future.h>
#include <folly/io/async/Asyn... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DragSource.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2008-02-18 14:47:00 $
*
* The Contents of this file are mad... |
<commit_before>// Copyright 2016 Frog Chen
//
// 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 ... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_FUNCTIONAL_INTERFACES_HH
#define DUNE_GDT_FUNCTIONAL_INTERFACES_HH
#inc... |
<commit_before>#include <cap/mp_values.h>
#include <deal.II/base/types.h>
#include <deal.II/grid/grid_generator.h>
#include <deal.II/dofs/dof_handler.h>
#include <iostream>
namespace cap {
// reads database for finite element model and write database for equivalent
// circuit model
void compute_equivalent_circuit(std... |
<commit_before>/*
Copyright (C) 2002 by John Harger
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.