text stringlengths 54 60.6k |
|---|
<commit_before>/****************************************************************************
* Copyright (c) 2012-2018 by the DataTransferKit authors *
* All rights reserved. *
* ... |
<commit_before>/*
* Copyright © 2012 Intel Corporation
*
* 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, copy, mod... |
<commit_before>#ifndef __MODEL_HPP_INCLUDED
#define __MODEL_HPP_INCLUDED
// Include GLEW
#ifndef __GL_GLEW_H_INCLUDED
#define __GL_GLEW_H_INCLUDED
#include <GL/glew.h>
#endif
// Include GLFW
#ifndef __GLFW3_H_INCLUDED
#define __GLFW3_H_INCLUDED
#include <glfw3.h>
#endif
// Include GLM
#ifndef __GLM_GLM_HPP_INCLUDED
... |
<commit_before>#pragma once
#include <port.hpp>
template <class USI_t, class CSn>
class CC1101 {
public:
typedef USI_t USI;
enum ConfReg {
IOCFG2 = 0x00,
IOCFG1 = 0x01,
IOCFG0 = 0x02,
FIFOTHR = 0x03,
SYNC1 = 0x04,
SYNC0 = 0x05,
PKTLEN = 0x06,
PKTCTRL1 = 0x07,
PKTCTRL0 = 0x08,
ADDR = 0x09,
CHA... |
<commit_before><commit_msg>Typo: constarined->constrained<commit_after><|endoftext|> |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkRungeKutta4.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
Redistrib... |
<commit_before>#include "HEALTH.H"
#include "DELTAPAK.H"
#include "DRAW.H"
#include "DRAWPHAS.H"
#include "GAMEFLOW.H"
#include "LARA.H"
#include "SPOTCAM.H"
#include <stdio.h>
#include "SPECIFIC.H"
#include "OBJECTS.H"
#include "NEWINV2.H"
int health_bar_timer = 0;
char PoisonFlag = 0;
struct DISPLAYPU pickups[8];
... |
<commit_before>#include "SPHERE.H"
#include "LARA.H"
#include "SPECIFIC.H"
#if PSX_VERSION || PSXPC_VERSION
#include "SPHERES.H"
#endif
char GotLaraSpheres;
int NumLaraSpheres;
struct SPHERE LaraSpheres[15];
struct SPHERE Slist[34];
int TestCollision(struct ITEM_INFO* item, struct ITEM_INFO* laraitem)//55C3C(<), 56... |
<commit_before>/*
* Copyright (c) 2007-2008 SlimDX Group
*
* 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, copy, ... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions app... |
<commit_before>// Copyright (c) 2009 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/chromeos/login_manager_view.h"
#include <signal.h>
#include <sys/types.h>
#include "app/l10n_util.h"
#includ... |
<commit_before>// Copyright (c) 2009 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/chromeos/usb_mount_observer.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list.h"
#... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2010-2011 Razor team
* Authors:
* Alexander Sokoloff <sokoloff.a@gmail.com>
*
* This program or library is free software; you can redistribute it
* and/or mo... |
<commit_before>class Solution {
public:
double findMaxAverage(vector<int>& nums, int k) {
double maxAvg = INT_MIN, tmp = 0;
for (int start = nums.size() - k; start >= 0; start--) {
tmp = 0;
for (int i = 0; i < k; i++) {
tmp += nums[start+i];
}
... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>
#include "util/thread.hpp"
#include "gc/managed.hpp"
namespace rubinius {
class WorldState {
thread::Mutex mutex_;
thread::Condition waiting_to_stop_;
thread::Condition waiting_to_run_;
int pending_threads_;
bool should_stop_;
atomic::integer time_waiting_;
public:
Wor... |
<commit_before>/******************************************************************************\
* File: util.cpp
* Purpose: Implementation of wxExtension report utility functions
* Author: Anton van Wezenbeek
* RCS-ID: $Id$
*
* Copyright (c) 1998-2009 Anton van Wezenbeek
* All rights are re... |
<commit_before>#include <sys/types.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <unistd.h>
//#include "atexit.h"
//#include "thread_private.h"
#include <iostream>
#include <vector>
#include <unordered_map>
#include <map>
#include <algorithm>
#include <sstream>
#include "xstring.h"
#define NO_ALLOC_MACRO_OVE... |
<commit_before>// $Id$
//
// Copyright (C) 2005-2008 Greg Landrum and Rational Discovery LLC
//
// @@ All Rights Reserved @@
//
#include "RDLog.h"
#if 1
#include <iomanip>
#include <string>
#include <time.h>
boost::logging::rdLogger *rdAppLog=0;
boost::logging::rdLogger *rdDebugLog=0;
boost::logging::rdLogger *rdIn... |
<commit_before>//===--- CodeGenTypes.cpp - Type translation for LLVM CodeGen -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is dis... |
<commit_before>#include "stdafx.h"
#include "EmbeddedPython.h"
#include "ModsLocation.h"
#include "ExceptionFetcher.h"
#include "ResourceLoader.h"
#include <iostream>
#include "resource.h"
#include "Logger.h"
#include "SQFReader.h"
#include "SQFWriter.h"
#define THROW_PYEXCEPTION(_msg_) throw std::runtime_error(_msg_ ... |
<commit_before>/**
* @file ExecuteProcess.cpp
* ExecuteProcess class implementation
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licens... |
<commit_before>#include "FTTextureGlyph.h"
#include "FTGL.h"
FTTextureGlyph::FTTextureGlyph( FT_Glyph glyph, int id, unsigned char* data, GLsizei stride, GLsizei height, float u, float v)
: FTGlyph(),
destWidth(0),
destHeight(0),
numGreys(0),
glTextureID(id)
{
// This function will always fail if the glyph's for... |
<commit_before>#include "midiplayer.h"
// Copyright 2017 by LE Ferguson, LLC, licensed under Apache 2.0
#define DELETE_LOG(X) if(X != NULL) { qDebug() << "Freeing " #X; delete X; }
midiPlayer::midiPlayer(QWidget *parent, QString midiFile) : QWidget(parent)
{
qDebug() << "Entered";
setWindowTitle("Midi Player"... |
<commit_before>// Copyright (C) 2014 The Regents of the University of California (Regents).
// 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 r... |
<commit_before>#include "dreal/util/box.h"
#include <iostream>
#include <limits>
#include <type_traits>
#include <vector>
#include <gtest/gtest.h>
#include "dreal/symbolic/symbolic.h"
using std::cout;
using std::endl;
using std::numeric_limits;
using std::vector;
namespace dreal {
// TODO(soonho): Add more tests.
... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include <BALL/DOCKING/COMMON/poseClustering.h>
#include <BALL/FORMAT/DCDFile.h>
#include <BALL/FORMAT/PDBFile.h>
#include <BALL/FORMAT/lineBasedFile.h>
#include <BALL/DOCKING/COMMON/conformationSet.h>
#include <BALL/FORMAT/commandlineParser.h>
#i... |
<commit_before>/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.
*/
#ifdef _WIN32
#include <winsock2.h>
#else
#include <netdb.h>
#endif
#include "reductions.h"
#include "simpl... |
<commit_before>#include "photoeffects.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/core/internal.hpp>
using namespace cv;
class VignetteInvoker
{
private:
const Mat& imgSrc;
Mat& imgDst;
float centerRow, centerCol, aSquare, bSquare, radiusMax;
VignetteInvoker& operator=(const VignetteInvok... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include "version.h"
// Name of client reported in the 'version' message. Report the same name
//... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>/*
* Copyright (C) 2013-2015 Daniel Nicoletti <dantti12@gmail.com>
*
* 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 o... |
<commit_before>/*
* Copyright (c) 2011 The WebRTC 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.... |
<commit_before>#include <ir/index_manager/store/FSIndexInput.h>
#include <ir/index_manager/utility/Utilities.h>
using namespace izenelib::ir::indexmanager;
FSIndexInput::FSIndexInput(const char* filename)
{
fileHandle_ = fopen(filename, "rb");
setbuf(fileHandle_,NULL);
if (fileHandle_ == NULL)
... |
<commit_before>#include <iostream>
#include <SFML/Graphics.hpp>
#include "game.h"
Game::Game():
playing(true),
screen(),
map(nullptr)
//map_camera(nullptr),
//unitRepository(nullptr)
{
sf::ContextSettings settings;
settings.antialiasingLevel = 8;
screen.create(sf::VideoMode(800, 600)... |
<commit_before>#ifndef GAME_HPP_INCLUDED
#define GAME_HPP_INCLUDED
#include <SFML/Graphics.hpp>
#include <TGUI/TGUI.hpp>
#include "config.hpp"
#include "eoclient.hpp"
#include "eodata.hpp"
#include <memory>
using std::shared_ptr;
class Game
{
public:
Config config;
EOClient eoclient;
... |
<commit_before>#include "mmsapt.h"
#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <boost/tokenizer.hpp>
#include <boost/shared_ptr.hpp>
#include <algorithm>
#include <iostream>
using namespace Moses;
using namespace bitext;
using namespace std;
using namespace boost;
vector<FactorType> fo(1,FactorT... |
<commit_before>/*!
\file named_condition_variable.cpp
\brief Named condition variable synchronization primitive implementation
\author Ivan Shynkarenka
\date 04.10.2016
\copyright MIT License
*/
#include "threads/named_condition_variable.h"
#include "errors/exceptions.h"
#include "errors/fatal.h"
... |
<commit_before>#include "functions.hpp"
///data base
#include <Socket/client/Client.hpp>
#define SERVER_HOST 1
#define SERVER_PORT 2
int main(int argc,char* argv[])
{
if(argc < SERVER_PORT+1)
{
std::cout<<"Usage are: "<<argv[0]<<" <server-host> <server-port>"<<std::endl;
return 1;
}
... |
<commit_before>#ifndef STAN_MATH_REV_CORE_SET_ZERO_ALL_ADJOINTS_NESTED_HPP
#define STAN_MATH_REV_CORE_SET_ZERO_ALL_ADJOINTS_NESTED_HPP
#include <stan/math/rev/core/vari.hpp>
#include <stan/math/rev/core/chainable_alloc.hpp>
#include <stan/math/rev/core/chainablestack.hpp>
namespace stan {
namespace math {
/**
... |
<commit_before>// $Header$
void alieve_init(const Text_t* path=".", Int_t event=0,
Bool_t use_runloader=kTRUE, Bool_t use_esd=kTRUE,
Bool_t avoid_exceptions_on_open=kTRUE)
{
// Set-up environment, load libraries.
Reve::SetupEnvironment();
// alieve executable linked against ALICE nad EVE shared libraries... |
<commit_before>/*
Copyright Eli Dupree and Isaac Dupree, 2011, 2012
This file is part of Lasercake.
Lasercake 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,... |
<commit_before>/**
* @file collision_check.cpp
* @brief This defines a cost function for collision checking.
*
* @author Jorge Nicho
* @date March 30, 2016
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2016, Southwest Research Institute
*
* @par License
* Software License Agreement (Apac... |
<commit_before><commit_msg>Cleanup SW stream backfill tests<commit_after><|endoftext|> |
<commit_before>#include "cuteengine.h"
#include "protocolhttp.h"
#include "tcpserver.h"
#include <Cutelyst/Context>
#include <Cutelyst/Response>
#include <Cutelyst/Request>
#include <Cutelyst/Application>
#include <QTcpServer>
#include <QTcpSocket>
#include <QLocalServer>
#include <QLocalSocket>
CuteEngine::CuteEng... |
<commit_before>//Simple wrapper file to conditionally include the real CATCH for if we're doing a build with tests enabled.
//in the future, replace CATCH macros with dummies if tests are to be disabled.
//#warning "including catch.hpp"
//#define CATCH_CONFIG_PREFIX_ALL
#ifndef PRINTIPI_CATCH_HPP
#define PRINTIPI_CATCH... |
<commit_before>/***************************************************************************
* Copyright (c) 2009 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>#include "3RVX.h"
#include "Controllers\Volume\IVolume.h"
#include "Controllers\Volume\CoreAudio.h"
#include "VolumeOSD.h"
#include <Wtsapi32.h>
#include "Logger.h"
int APIENTRY
wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPTSTR lpCmdLine, int nCmdShow) {
hInst = hInstance;
using na... |
<commit_before>#include <Windows.h>
#include <gdiplus.h>
#pragma comment(lib, "gdiplus.lib")
#include <iostream>
#include <string>
#include <unordered_map>
#include <Wtsapi32.h>
#include "3RVX.h"
#include "OSD\EjectOSD.h"
#include "OSD\VolumeOSD.h"
#include "HotkeyInfo.h"
#include "HotkeyManager.h"
#include "Logger.h... |
<commit_before>#include <map>
#include <string>
#include <utility>
#define PAM_SM_AUTH
#include <security/pam_modules.h>
#include <security/pam_ext.h>
#define LDAP_DEPRECATED 1
#include <ldap.h>
typedef std::map<std::string, std::string> ArgMap;
static bool verify(const char* host, const char* binddn, const char*... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include <Poco/Logger.h>
#include <Poco/LoggingFactory.h>
#include <Poco/FormattingChannel.h>
#include <Poco/SplitterChannel.h>
#include <Poco/LocalDateTime.h>
#include "Foundation.h"
... |
<commit_before>#include "VRManager.hpp"
#include "Utility/Log.hpp"
#include "../Component/VRDevice.hpp"
VRManager::VRManager() : scale(1.f) {
// Check if VR runtime is installed.
if (!vr::VR_IsRuntimeInstalled()) {
vrSystem = nullptr;
Log() << "VR runtime not installed. Playing without VR.\n"... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. 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. Redistri... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 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>//#include <cstdlib>
//#include <stdint.h> /* Standard types */
//#include <string.h> /* String function definitions */
#include <unistd.h> /* UNIX standard function definitions */
//#include <fcntl.h> /* File control definitions */
//#include <termios.h> /* POSIX terminal control definitions *... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, Inc.
* 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... |
<commit_before>// flagStay.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
#include <map>
#include <cmath>
class FlagStayZoneHandler : public bz_CustomMapObjectHandler
{
public:
virtual bool MapObject ( bz_ApiString object, bz_CustomMapObjectInfo *data );
};
FlagStayZoneHandler flagSt... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "KristalliProtocolModule.h"
#include "KristalliProtocolModuleEvents.h"
#include "Profiler.h"
#include "EventManager.h"
#include "CoreStringUtils.h"
#include... |
<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>#include <BALL/VIEW/DIALOGS/snapShotVisualisation.h>
#include <BALL/VIEW/WIDGETS/scene.h>
#include <BALL/VIEW/KERNEL/message.h>
#include <BALL/MOLMEC/COMMON/snapShotManager.h>
#include <BALL/FORMAT/trajectoryFile.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qslider.h>
#include <qpushbutton.... |
<commit_before>// Natron
/* 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/. *//*
*Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
*contact: immarespond at gmail dot... |
<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>#include <iostream>
#include <algorithm>
#include "DynamicArray.h"
DynamicArray::DynamicArray() {
}
DynamicArray::DynamicArray(DynamicArray const & other) {
}
DynamicArray& DynamicArray::operator=(DynamicArray const & other) {
}
DynamicArray::~DynamicArray() {
}
void DynamicArray::free() {
}
... |
<commit_before>//=======================================================================
// Copyright (c) 2014 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//========================================================... |
<commit_before>/* Copyright (c) 2012, 2013 BlackBerry Limited.
*
* 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 a... |
<commit_before>/*
* Copyright (c) 2007-2008 SlimDX Group
*
* 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, copy, ... |
<commit_before>#include "MoveDummy.h"
#include "ObjectDummy.h"
#include "BodyDummy.h"
#include "ShapeCapsule.h"
#include "Utils.h"
#include "Engine.h"
#include "Physics.h"
#include "Game.h"
#include "World.h"
#define MOVE_DUMMY_IFPS (1.0f/100.0f)
#define MOVE_DUMMY_CLAMP 89.9f
#define MOVE_DUMMY_COLLISI... |
<commit_before>///
/// @file S2LoadBalancer.cpp
/// @brief The S2LoadBalancer evenly distributes the work load between
/// the threads in the computation of the special leaves.
///
/// Simply parallelizing the computation of the special leaves in the
/// Lagarias-Miller-Odlyzko and Deleglise-Rivat algorithms by... |
<commit_before>#include "SSTNetworkImpl.h"
#define SERVICE_NAME "cbr"
#define SERVICE_DESC "Constant Bit Rate Service"
#define PROTOCOL_NAME "cbr1.0"
#define PROTOCOL_DESC "Constant Bit Rate Protocol 1.0"
namespace CBR {
SSTStatsListener::SSTStatsListener(const QTime& start)
: mStartTime(start)
{
}
void SSTStatsLi... |
<commit_before>/*
* Copyright (C) 2012 BMW Car IT 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 appl... |
<commit_before>#include "Runtime/Graphics/Shaders/CParticleSwooshShaders.hpp"
#include <iterator>
#include "Runtime/Particle/CParticleSwoosh.hpp"
#include "Runtime/Particle/CSwooshDescription.hpp"
#include <hecl/Pipeline.hpp>
namespace urde {
std::array<boo::ObjToken<boo::IShaderPipeline>, 2> CParticleSwooshShader... |
<commit_before>#include "EcController.h"
#include <mining-manager/ec-submanager/ec_manager.h>
#include <common/Keys.h>
#include <util/ustring/UString.h>
#include <vector>
#include <string>
#include <boost/unordered_set.hpp>
namespace sf1r
{
using driver::Keys;
using namespace izenelib::driver;
bool EcController::che... |
<commit_before>#include "proximitylist_api.h"
#include "type/pb_converter.h"
#include "utils/paginate.h"
namespace navitia { namespace proximitylist {
/**
* se charge de remplir l'objet protocolbuffer autocomplete passé en paramètre
*
*/
typedef std::tuple<nt::idx_t, nt::GeographicalCoord, nt::Type_e> t_result;
typ... |
<commit_before>// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Nazara Engine - Renderer module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#include <Nazara/Renderer/Renderer.hpp>
#include <Nazara/Core/CallOnExit.hpp>
#include <Nazara/Core/DynLib.hpp>
#include <Naza... |
<commit_before>/*
* OpenNI2Interface.cpp
*
* Created on: 20 May 2013
* Author: thomas
*/
#include "OpenNI2Interface.h"
OpenNI2Interface::OpenNI2Interface(int inWidth, int inHeight, int fps)
: width(inWidth),
height(inHeight),
fps(fps),
initSuccessful(true)
{
//Setup
openni::Status rc = op... |
<commit_before>#include "test.h"
#include <RobustWiFiServer.h>
void prepareState(ServerState state, RobustWiFiServer& rs) {
WiFiClient& c = rs._getClient();
WiFiServer& s = rs._getServer();
switch(state){
case DISCONNECTED:
WiFi.setStatus(WL_DISCONNECTED);
s.setAvailable(false);
s.setListening(... |
<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 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even t... |
<commit_before><commit_msg>planning: discard adc trajectory points out of range (+/-8s)<commit_after><|endoftext|> |
<commit_before>#include "ge/sdl_subsystem.hpp"
#include "ge/gl.hpp"
#include "SDL.h"
#include "ge/input_subsystem.hpp"
#include <chrono>
using namespace ge;
key sdl_to_ge_key(SDL_Keycode code)
{
switch (code) {
case SDLK_EXCLAIM: return key::e_1;
case SDLK_QUOTEDBL: return key::e_apostrophe;
ca... |
<commit_before>#include "ValueProcessor.h"
#include <sstream>
template <class T>
inline std::string to_string (const T& t)
{
std::stringstream ss;
ss << t;
return ss.str();
}
TokenList* ValueProcessor::processValue(TokenList* value) {
TokenList newvalue;
Value* v;
while (value->size() > 0) {
v = pro... |
<commit_before>//
// random.cpp
// yamcmc++
//
// Created by Dr. Brandon C. Kelly on 11/21/12.
// Source file for a class that generates pseudorandom numbers from common distributions.
// This is basically a wrapper for BOOST::RANDOM
//
// Standard includes
#include <iostream>
#include <fstream>
// Local include
... |
<commit_before>// Based on Fjellstad & Fossen 1994: Quaternion Feedback Regulation of Underwater Vehicles
#include "quaternion_pd_controller.h"
QuaternionPdController::QuaternionPdController()
{
stateSub = nh.subscribe("state_estimate", 10, &QuaternionPdController::stateCallback, this);
setpointSub = nh.su... |
<commit_before>// Copyright 2019 Intel Corporation.
#include "pmlc/dialect/tile/gradient.h"
// TODO: Clean includes
#include "llvm/ADT/SetVector.h"
#include "llvm/Support/FormatVariadic.h"
#include "mlir/Support/DebugStringHelper.h"
#include "base/util/logging.h"
#include "pmlc/dialect/tile/builder.h"
#include "pml... |
<commit_before>/*
openpnp test application
Niels Moseley
*/
#include <stdio.h>
#include <conio.h>
#include <windows.h> // for Sleep
#include <chrono>
#include "openpnp-capture.h"
#include "../common/context.h"
std::string FourCCToString(uint32_t fourcc)
{
std::string v;
for(uint32_t i=0; i<4; i... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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 S... |
<commit_before>/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
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 appl... |
<commit_before><commit_msg>Fix compile warning<commit_after><|endoftext|> |
<commit_before><commit_msg>Use simpler double unlink algo<commit_after><|endoftext|> |
<commit_before>// RUN: %clangxx_asan -std=c++11 -pthread %s -o %t && %run %t 2>&1
// Regression test for the versioned pthread_create interceptor on linux/i386.
// pthread_attr_init is not intercepted and binds to the new abi
// pthread_create is intercepted; dlsym always returns the oldest version.
// This results in ... |
<commit_before>// ConsoleRPG.cpp : Defines the entry point for the console application.
// Created by Nick Mullally a.k.a. thakyZ / Nire Inicana
//
#include "stdafx.h"
#include <iostream>
#include <cstdlib>
#include "time.h"
using namespace std;
// Roll the dice.
int diceRoll(int qty, int sides)
{
int s... |
<commit_before>#ifndef TCL_EXECUTE_HPP
#define TCL_EXECUTE_HPP
#include <typeinfo>
#include "CLInformation.hpp"
#include "CLSourceArray.hpp"
#include "CLExecuteProperty.hpp"
#include "CLDeviceInformation.hpp"
#include "CLWorkGroupSettings.hpp"
#include "CLBuffer.hpp"
namespace tcl
{
class CLExecute
{
private:
... |
<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 "ppapi/proxy/serialized_var.h"
#include "base/logging.h"
#include "ipc/ipc_message_utils.h"
#include "ppapi/proxy/dispatcher.... |
<commit_before>// Copyright (c) 2009 - Mozy, Inc.
#include "mordor/pch.h"
#include "log.h"
#include <iostream>
#include <boost/bind.hpp>
#include <boost/regex.hpp>
#include "assert.h"
#include "config.h"
#include "fiber.h"
#include "mordor/streams/file.h"
#include "mordor/string.h"
#include "timer.h"
namespace Mo... |
<commit_before>#include "Pong/Pong.hpp"
#include "Pong/Defs.hpp"
#include "Pong/State/GameState.hpp"
#include "Pong/State/GameReadyState.hpp"
using namespace sf;
namespace pong {
void Pong::create() {
int flags = sf::Style::Titlebar | sf::Style::Close;
window_.create(VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), ... |
<commit_before>#include <cassert>
#include "Processor.h"
using namespace Simulator;
using namespace std;
//
// Processor implementation
//
Processor::Processor(Object* parent, Kernel& kernel, PID pid, PSize numProcs, const std::string& name, IMemory& memory, const Config& config, MemAddr runAddress, bool legac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.