text stringlengths 54 60.6k |
|---|
<commit_before>/*
Persons Model Item
Represents one person in the model
Copyright (C) 2012 Martin Klapetek <martin.klapetek@gmail.com>
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 Softw... |
<commit_before>#ifndef VG_PICTOGRAPHS_HPP_INCLUDED
#define VG_PICTOGRAPHS_HPP_INCLUDED
#include <vector>
#include <random>
#include <functional>
namespace vg {
using namespace std;
class Pictographs {
mt19937 rng;
public:
const string symbols = "🌀🌁🌂🌃🌄🌅🌆🌇🌈🌉🌊🌋🌌🌍🌎🌏🌐🌑🌒🌓🌔🌕🌖🌗🌘🌙🌚🌛🌜🌝🌞... |
<commit_before>/// \file
/// \ingroup tutorial_v7
///
/// \macro_code
///
/// \date 2015-08-08
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/// \author Axel Naumann <axel@cern.ch>
/**********************************************... |
<commit_before>#include "glm/gtc/matrix_transform.hpp"
#include "pixelboost/graphics/camera/camera.h"
#include "pixelboost/graphics/camera/viewport.h"
#include "pixelboost/graphics/device/device.h"
#include "pixelboost/graphics/helper/screenHelpers.h"
using namespace pb;
Camera::Camera(glm::vec3 position, glm::vec3 ... |
<commit_before>#ifndef PIXELBOOST_DISABLE_GWEN
#include "glm/glm.hpp"
#include "gwen/Controls/Canvas.h"
#include "pixelboost/framework/game.h"
#include "pixelboost/input/keyboardManager.h"
#include "pixelboost/input/mouseManager.h"
#include "pixelboost/misc/gwen/inputHandler.h"
using namespace pb;
class pb::GwenKe... |
<commit_before>//===--- ClangdMain.cpp - clangd server loop ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
<samplecode>
<abstract>
Utility class to manage DSP parameters which can change value smoothly (be ramped) while rendering, without introducing clicks or other distortion into the signal.
</abstract>
</samplecode>
*/
#ifndef ParameterRamper_h
#define ParameterRamper_h
// N.B. This is C++.
#im... |
<commit_before>/*
This file is part of the Rendering library.
Copyright (C) 2007-2013 Benjamin Eikel <benjamin@eikel.org>
Copyright (C) 2007-2013 Claudius Jähn <claudius@uni-paderborn.de>
Copyright (C) 2007-2013 Ralf Petring <ralf@petring.net>
This library is subject to the terms of the Mozilla Public License, v... |
<commit_before>#include "testing/testing.hpp"
#include "indexer/classificator.hpp"
#include "indexer/classificator_loader.hpp"
#include "indexer/feature_visibility.hpp"
#include "indexer/feature_data.hpp"
#include "base/logging.hpp"
namespace
{
class DoCheckConsistency
{
Classificator const & m_c;
public:... |
<commit_before>/*******************************************************************************
Copyright (c) 2014, Jan Koester jan.koester@gmx.net
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* R... |
<commit_before>#include <iostream>
#include <tr1/memory>
#include <queue>
#include <boost/multi_array.hpp>
#include <boost/program_options.hpp>
#include <boost/program_options/variables_map.hpp>
#include "array2d.h"
#include "base_measures.h"
#include "monotonic_pseg.h"
#include "conditional_pseg.h"
#include "trule.h... |
<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>// Copyright 2010-2013 RethinkDB, all rights reserved.
#ifndef SERIALIZER_MERGER_HPP_
#define SERIALIZER_MERGER_HPP_
#include <vector>
#include <map>
#include <memory>
#include "buffer_cache/types.hpp"
#include "containers/scoped.hpp"
#include "serializer/serializer.hpp"
/*
* The merger serializer is... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <cmath>
#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
#include <vector>
#include <algorithm>
#ifndef M_PI
#define M_PI 3.14159265359
#endif
typedef unsigned char uchar;
// Load Hipparcos catalog
cv::Mat load_catalog(cons... |
<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>#include "drake/systems/plants/RigidBodySystem.h"
#include <iostream>
#include <gtest/gtest.h>
#include "drake/systems/plants/RigidBodyFrame.h"
#include "drake/util/eigen_matrix_compare.h"
#include "drake/util/testUtil.h"
using std::make_shared;
using Drake::RigidBodySystem;
using Eigen::VectorXd;
us... |
<commit_before>// Copyright (C) 2013 Robert Giseburt <giseburt@gmail.com>
// serialport_poller.cpp Written as a part of https://github.com/voodootikigod/node-serialport
// License to use this is the same as that of node-serialport.
#include <nan.h>
#include "./serialport_poller.h"
using namespace v8;
static Nan::Per... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: taskcreatorsrv.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: kz $ $Date: 2008-03-05 17:21:23 $
*
* The Contents of this file are... |
<commit_before>#include "stdafx.h"
#include "Messages.h"
Messages::Messages()
{
}
Messages::~Messages()
{
}
/**
* \brief remove all the completed on screen messages.
*/
void Messages::ClearUnused()
{
while (_collection.size() > 0)
{
// protected the vector for a short while.
myodd::threads::Lock guard... |
<commit_before>
// Standard C++ includes
#include <stdlib.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <assert.h>
#include <float.h>
#include <math.h>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
//return 9 cameras
// Public interfac... |
<commit_before>#include "CameraManager.h"
#include "Utility.h"
using namespace Rendering;
using namespace Rendering::Light;
using namespace Core;
using namespace Rendering::Manager;
using namespace Rendering::Camera;
using namespace Structure;
CameraManager::CameraManager(){}
CameraManager::~CameraManager(){}
void ... |
<commit_before>/* Copyright 2017 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>/* 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>/***********************************
Copyright 2020 Ravishankar Mathur
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
... |
<commit_before>
#include "EffekseerTool.Renderer.h"
#include "EffekseerTool.Culling.h"
#include "EffekseerTool.Grid.h"
#include "EffekseerTool.Guide.h"
#include "EffekseerTool.Paste.h"
#include "../EffekseerRendererCommon/EffekseerRenderer.PngTextureLoader.h"
#include "../RenderedEffectGenerator.h"
#include <spdlog/s... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <osmesa.h>
#include <conio.h> // For kbhit, getch, textmode (console access)
#include <dpmi.h> // For __dpmi_int (mouse access)
#include <go32.h> // For _dos_ds (VRAM access)
#include <sys/movedata.h> // For movedata (VRAM access)
#i... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef CLUSTERING_ADMINISTRATION_METADATA_HPP_
#define CLUSTERING_ADMINISTRATION_METADATA_HPP_
#include <list>
#include <map>
#include <string>
#include <vector>
#include <utility>
// TODO: Probably some of these headers could be moved to the .cc.... |
<commit_before>#include <cmd_quest_pass_handler.h>
#include <runtasks.h>
#include <log.h>
#include <utils.h>
#include <QJsonArray>
#include <QCryptographicHash>
CmdQuestPassHandler::CmdQuestPassHandler(){
m_vInputs.push_back(CmdInputDef("questid").integer_().required().description("Quest ID"));
m_vInputs.push_ba... |
<commit_before>#include <iostream>
#include <boost/signals2.hpp>
#include <map>
#include <memory>
#include "basewrapper.h"
using FuncSig = void();
class MySig : BaseWrapper, public boost::signals2::signal<FuncSig> {
// This class is just a boost::signals2::signal<FuncSig>
// with a bit of extra-stuff for monitor... |
<commit_before>/*
* Copyright (c) 2003 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 copyri... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 2013-2015, 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>/*=========================================================================
Programme : OTB (ORFEO ToolBox)
Auteurs : CS - T.Feuvrier
Language : C++
Date : 11 janvier 2005
Version :
Role : Test l'extraction d'une ROI dans une image mono ou multi canal, dont les va... |
<commit_before>
/*
********************************************************************************
***************************** Implementation Details ***************************
********************************************************************************
*/
#ifndef _Stroika_Foundation_Cache_TimedCache_inl_
#... |
<commit_before>/*------------------------------------------------------------------------
* (The MIT License)
*
* Copyright (c) 2008-2011 Rhomobile, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* i... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#ifndef _Stroika_Foundation_Execution_Thread_inl_
#define _Stroika_Foundation_Execution_Thread_inl_ 1
/*
********************************************************************************
***************************** Impl... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p10/procedures/hwp/pm/p10_update_ec_state.C $... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_switch_rec_attn.C $... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_block_wakeup_intr.H $... |
<commit_before>#ifndef ElastixFilter_hxx
#define ElastixFilter_hxx
namespace selx {
template< typename TFixedImage, typename TMovingImage >
ElastixFilter< TFixedImage, TMovingImage >
::ElastixFilter( void )
{
this->AddRequiredInputName( "FixedImage" );
this->AddRequiredInputName( "MovingImage" );
this->AddRequi... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2010-05-13 17:32:17 +0200 (Do, 13 Mai 2010) $
Version: $Revision: 18029 $
Copyright (c) German Cancer Research Center, Division of Medic... |
<commit_before>#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <pthread.h>
#include <set>
#include <queue>
#include "PipeBuffer.h"
#include "dcloudgahp_commands.h"
#include "dcloudgahp_common.h"
#define DCLOUD_GAHP_VERSION "0.0.1"
#define GAHP_COMMAND_ASYNC_M... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#define MAX 10004
using namespace std;
int rick[MAX],morty[MAX];
int main(int argc, char const *argv[]) {
int n,m;
cin>>n>>m;
for(int i=1;i<=m;i++){
int x;
cin>>x;
bool flg=0;
for(int j=0;j<x;j++){
int a;
cin>>a... |
<commit_before><commit_msg>make output directory separately<commit_after><|endoftext|> |
<commit_before>/* __ __ *\
** __ /_// / ___ lila API **
** / / __ / / / _ | (c) 2016, Christian Krause **
** / /__ / // /__/ __ | **
** /... |
<commit_before>/*
* Copyright (c) 2012, Prevas A/S
* 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, ... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmllib_export.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ab $ $Date: 2001-11-07 18:21:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>#include "util.cpp"
void placeServers(Input &input) {
//fill me
}
<commit_msg>placeservers temporary result<commit_after>#include "util.cpp"
/*
//util classes
struct Server {
//input
int capacity, size;
//output
int row = -1, slot = -1, pool = -1;
};
struct Input {
int r, s, u, p, m;
vector<vec... |
<commit_before>/*
mvxxx 2017
https://github.com/mvxxx
*/
#pragma once
#include <SFML/System/Vector2.hpp>
class Math
{
/* ===Objects=== */
public:
protected:
private:
/* ===Methods=== */
public:
static sf::Vector2i convertToUnitPosition( const sf::Vector2f& pxPos, const sf::Vector2f& cellDim )
{
return sf::Vect... |
<commit_before>// Copyright (C) 2010-2012 Joshua Boyce.
// See the file COPYING for copying permission.
#include "hadesmem/module.hpp"
#include <utility>
#include "hadesmem/detail/warning_disable_prefix.hpp"
#include <boost/assert.hpp>
#include <boost/filesystem.hpp>
#include <boost/scope_exit.hpp>
#inclu... |
<commit_before>/*
Copyright (C) 1998 by Jorrit Tyberghein
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 ve... |
<commit_before>#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <winsock.h>
#define WSVERS MAKEWORD(2,0)
#define BUFFESIZE 200
#define SEGMENTSIZE 70
WSADATA wsadata;
int main(int argc, char *argv[])
{
//*******************************************************************
// Initializati... |
<commit_before>// hashtbl.cc see license.txt for copyright and terms of use
// code for hashtbl.h
#include "hashtbl.h" // this module
#include "xassert.h" // xassert
#include <string.h> // memset
unsigned HashTable::hashFunction(void const *key) const
{
return coreHashFn(key) % (unsigned)t... |
<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/.
//
// Copyright 2016 [bk]door.maus
#ifndef LIBGLURG_COMMON_SNAPPY_ADAPTER_HPP
#define LIBGLURG_COMMON_... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/*
* Copyright 2014-present Facebook, 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "streamed_value_index.h"
#include "streamed_value_utils.h"
#include <vespa/vespalib/objects/nbostream.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespalib/util/vis... |
<commit_before>/*
* Stateplex - A server-side actor model library.
*
* net/hbdpconnection.cpp
*
* (c) 2013 Henrik Hedberg <henrik.hedberg@innologies.fi>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as publis... |
<commit_before>#include <stdio.h>
#include <unistd.h>
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <fstream>
#include <streambuf>
#include "const.hpp"
#include "util.hpp"
#include "printer.hpp"
#include "ram.hpp"
#include "cpu.hpp"
#include "renderer.hpp"
usi... |
<commit_before>#include <gui/cursesui.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#define CMD_PROMPT "cmd: "
cursesui::cursesui(){
/* init ncurses */
setlocale(LC_ALL, "");
initscr();
noecho();
/* init class members */
nwin = 0;
max_win = 2;
windows = (window_t**)malloc(sizeof(window_t*... |
<commit_before>#include <nds.h>
#include <maxmod9.h>
#include <stdio.h>
#include "ball.h"
#include "geometry.h"
#include "player.h"
#include "stats.h"
// Sprites
#include "spriteBall.h"
// Audio
#include "soundbank.h"
#include "soundbank_bin.h"
// Methods
void initBall(ball *b) {
b->speed = 1.5;
b->box.po... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2016 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>/*
* Copyright 2001 - 2009 Todd Richmond
*
* This file is part of Blister - a light weight, scalable, high performance
* C++ server infrastructure.
*
* Blister 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 ... |
<commit_before>#include "codec.h"
#include <muduo/base/Logging.h>
#include <muduo/base/Mutex.h>
#include <muduo/base/ThreadLocalSingleton.h>
#include <muduo/net/EventLoop.h>
#include <muduo/net/TcpServer.h>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <set>
#include <stdio.h>
using namespace m... |
<commit_before>//=======================================================================
// Copyright 2014-2015 David Simmons-Duffin.
// Distributed under the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//=============================================================... |
<commit_before>/**
* Compile-time sieve of Eratosthenes.
*
* See it in action at:
*
* Presently, this will only build with gcc-7.0.0 (experimental version) or later. To build, invoke g++ with the -std=c++17 flag.
*
* Copyright Dr Robert H Crowston, 2017, all rights reserved.
* Use and redistribution is permitt... |
<commit_before>#include "RoadRoller.h"
RoadRoller::RoadRoller()
{
}
void RoadRoller::build()
{
Vector nullVec = Vector(0.0f, 0.0f, 0.0f);
Circle* wheelSide = new Circle(0.0f, 0.0f, 0.3f, 1.0f);
Cylinder* wheel = new Cylinder(0.0f, 0.0f, 1.0f, 2.0f, 1.0f);
Cylinder* exhaust = new Cylinder(0.0f, 0.0f, 0.16f, 2.0f,... |
<commit_before>//
// peglint.cc
//
// Copyright (c) 2015 Yuji Hirose. All rights reserved.
// MIT License
//
#include <peglib.h>
#include <fstream>
using namespace std;
bool read_file(const char* path, vector<char>& buff)
{
ifstream ifs(path, ios::in | ios::binary);
if (ifs.fail()) {
return false;... |
<commit_before>/*
* event_server.cpp
* PHD Guiding
*
* Created by Andy Galasso.
* Copyright (c) 2013 Andy Galasso.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification,... |
<commit_before>// Copyright (c) 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.
// Performs basic inspection of the disk cache files with minimal disruption
// to the actual files (they still may change if an error ... |
<commit_before>/*
* MaxClique.cpp
*
* Created on: 08.12.2014
* Author: Henning
*/
#include "MaxClique.h"
namespace NetworKit {
MaxClique::MaxClique(const Graph& G): G(G), maxi(0) {
}
void MaxClique::clique(std::set<node>& U, count size) {
if (U.empty()) {
if (size > maxi) {
maxi = size;
}
}
w... |
<commit_before>#include"core.hpp"
#include<stdexcept>
#include<fcntl.h> // for open FLAGS
#include<unistd.h> // for tty checks
#include<cstring> // for memset
ics::Core::~Core() noexcept {
tcsetattr(fd, TCSANOW, &oldTio);
close(fd);
}
const ics::Core& ics::Core::getReference(const char* path, speed_t baudrate = ... |
<commit_before>/******************************************************************************
*
* Copyright (C) 1990-2018, 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 co... |
<commit_before>#include "pc6001v.h"
#include "config.h"
#include "cpum.h"
#include "p6vm.h"
////////////////////////////////////////////////////////////////
// コンストラクタ
////////////////////////////////////////////////////////////////
CPU6::CPU6( VM6 *vm, const ID& id ) : Device(vm,id) {}
///////////////////////////... |
<commit_before>//---------------------------------------------------------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2005, 2006 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please refer
// ... |
<commit_before>#include <memory>
#include "draw.hh"
#include "chart.hh"
#include "acmacs-draw/surface-cairo.hh"
// ----------------------------------------------------------------------
void ChartDraw::prepare()
{
std::unique_ptr<BoundingBall> bb(mChart.projection(mProjectionNo).layout().minimum_bounding_ball()... |
<commit_before>/****************************************************************
*
* Copyright (c) 2011
* All rights reserved.
*
* Hochschule Bonn-Rhein-Sieg
* University of Applied Sciences
* Computer Science Department
*
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Author:
* Jan P... |
<commit_before><commit_msg>keep only those macros compiled that really need to<commit_after><|endoftext|> |
<commit_before>#include "HUDobject_Animated.h"
#include <cstring>
#include <GLFW/glfw3.h>
void HUDobject_Animated::graphicsUpdate(GLuint program, const GraphicsObjectManager& graphicsObjectManager)
{
if (!m_isAnimating)
return;
double currentTime = glfwGetTime();
if (currentTime < m_animationEndTime)
{
float... |
<commit_before>/**
* Copyright (c) 2016 zScale Technology GmbH <legal@zscale.io>
* Authors:
* - Paul Asmuth <paul@zscale.io>
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License ("the license") as
* published by the Free Software... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
//
// CoinQ_peer_io.cpp
//
// Copyright (c) 2012-2013 Eric Lombrozo
//
// All Rights Reserved.
#include "CoinQ_peer_io.h"
#include <logger/logger.h>
#include <sstream>
using namespace CoinQ;
using namespace std;
const un... |
<commit_before>#include <iostream>
#include <stdio.h>
#include <stdio.h>
#include <ctype.h>
#include <cstring>
#include <vector>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
using namespace std;
bool conntest(string x){
int i = x.size() - 1;
if(x == "&&" || x == ";" || x == "||"){
/... |
<commit_before>#include "utils/PVLog.hpp"
//#include "utils/conversions.h"
#include <cmath>
#include <cstring>
namespace PV {
template <class T>
Buffer<T>::Buffer(int width, int height, int features) {
resize(width, height, features);
}
template <class T>
Buffer<T>::Buffer() {
resize(1, 1, 1);
}
template <cl... |
<commit_before>/*
* Copyright 2015-2018 Kacper Kasper <kacperkasper@gmail.com>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Languages.h"
#include <algorithm>
#include <functional>
#include <map>
#include <string>
#include <Catalog.h>
#include <Directory.h>
#include <FindDire... |
<commit_before>#include <ctrcommon/app.hpp>
#include <ctrcommon/input.hpp>
#include <ctrcommon/platform.hpp>
#include <ctrcommon/ui.hpp>
#include <stdio.h>
#include <sstream>
#include <iomanip>
#include <sys/dirent.h>
typedef enum {
INSTALL_CIA,
DELETE_CIA,
DELETE_TITLE,
LAUNCH_TITLE... |
<commit_before>/* Nom: main.cpp
* Description: module sous-système de contrôle: gestion du dialogue avec l'utilisateur et interface graphique
* Date: 08.02.2014
* version : 1.0
* responsable du module : Pauline Maury Laribière
* groupe : Alexandre Devienne, Pauline Maury Laribière
*/
extern "C"
{
#include <stdio... |
<commit_before>#include <ctrcommon/app.hpp>
#include <ctrcommon/input.hpp>
#include <ctrcommon/platform.hpp>
#include <ctrcommon/ui.hpp>
#include <sys/dirent.h>
#include <sys/errno.h>
#include <stdio.h>
#include <string.h>
#include <sstream>
#include <iomanip>
typedef enum {
INSTALL_CIA,
DELET... |
<commit_before>#include <math.h>
#include <fstream>
#include <string>
#include <time.h>
#include <sstream>
#include "Game.h"
#include "SpotLight.h"
#include "Light/LightPost.h"
#include "Model/Texture/TextureManager.h"
#include "AntTweakHelper.h"
#ifdef __APPLE__
#include <Glut/glut.h>
#else
#define ... |
<commit_before>#include "FreeListAllocator.h"
#include "Utils.h" /* CalculatePaddingWithHeader */
#include <stdlib.h> /* malloc, free */
#include <cassert> /* assert */
#include <limits> /* limits_max */
#ifdef _DEBUG
#include <iostream>
#endif
FreeListAllocator::FreeListAllocator(const std::size_t totalSize... |
<commit_before>//
// Copyright (c) 2015 CNRS
//
// This file is part of Pinocchio
// 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 License, or (at your option) a... |
<commit_before>
/*
* Copyright (c) 2014, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): Michael X. Grey <mxgrey@gatech.edu>
*
* Georgia Tech Graphics Lab and Humanoid Robotics Lab
*
* Directed by Prof. C. Karen Liu and Prof. Mike Stilman
* <karenliu@cc.gatech.edu> <mstilman@cc.gatech.e... |
<commit_before>#include <Eigen/Sparse>
#include <Eigen/SPQRSupport>
#include <Eigen/OrderingMethods>
#include <Eigen/SparseQR>
#include <Eigen/Dense>
#include <iostream>
#include <fstream>
#include <vector>
// declares a column-major sparse matrix type of double
typedef Eigen::SparseMatrix<float> SparseMatrix;
typedef... |
<commit_before>
#include "numerics/unbounded_arrays.hpp"
#include "gtest/gtest.h"
namespace principia {
namespace numerics {
class UnboundedArraysTest : public ::testing::Test {
protected:
UnboundedArraysTest()
: v3_({10, 31, -47}),
v4_({-3, -3, 1, 4}),
l4_({1, 2, 3, 5, 8, 13, 21, 34, 55, 89... |
<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/chromeos/dbus/power_manager_client.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/format... |
<commit_before>//===--- Errors.cpp - Error reporting utilities ---------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>/******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted... |
<commit_before>/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkRandomScalerContext.h"
#include "SkGlyph.h"
#include "SkPath.h"
#include "SkCanvas.h"
#include "SkRasterizer.h"
class SkRandomScalerContext : publi... |
<commit_before>/*
* SessionConsole.cpp
*
* Copyright (C) 2009-11 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABI... |
<commit_before>/*
* Copyright (c) 2007 MIPS Technologies, 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 source code must retain the above copyright
* notice, thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.