text stringlengths 54 60.6k |
|---|
<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 "skia/ext/vector_platform_device_skia.h"
#include "skia/ext/bitmap_platform_device.h"
#include "third_party/skia/include/core... |
<commit_before>//
// Created by dar on 1/23/16.
//
#include <window/MainMenu.h>
#include <window/Window.h>
#include "Application.h"
#include "window/Game.h"
#include "render/RenderManager.h"
#include "logging.h"
#include <ApplicationContext.h>
Application::Application() {
this->renderer = new RenderManager();
... |
<commit_before>/*
* Copyright (C) 2004-2015 ZNC, see the NOTICE file for details.
*
* 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>//===-- X86FloatingPoint.cpp - FP_REG_KILL inserter -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// @(#)root/srputils:$Name: $:$Id: SRPAuth.cxx,v 1.3 2000/12/19 14:37:14 rdm Exp $
// Author: Fons Rademakers 15/02/2000
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/*
* Copyright (c) 2009-2010, Piotr Korzuszek
* 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
* n... |
<commit_before>#include "magic.h"
using namespace cv;
int main(int argc, char* argv[]){
if(argc < 2){
printf("usage: Magic <Video_Path> [output_dir] [skip_frames] [background]\n");
}
std::string output;
if(argc >= 3) {
output = argv[2];
} else {
output = ".";
}
int skip_frames = 0;
if(ar... |
<commit_before>/*
* Copyright (C) 2015 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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 your op... |
<commit_before>/*
Copyright (c) 2006, 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>/*
** Anitomy
** Copyright (C) 2014-2015, Eren Okka
**
** 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 versio... |
<commit_before>#ifndef MOBS_HPP
#define MOBS_HPP
#include <iostream>
class Mob
<commit_msg>Update mobs.hpp<commit_after>#ifndef MOBS_HPP
#define MOBS_HPP
#include <iostream>
class Mob
{
public:
mob(std::string, std::string, std::string, int, int, int, int)
void setName(std::string);
void setArea(std:... |
<commit_before>//===- SLPVectorizer.cpp - A bottom up SLP Vectorizer ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/// @brief provides CORDIC for arccos function
/// @ref see H. Dawid, H. Meyr, "CORDIC Algorithms and Architectures"
#include "./../../fixed_point_lib/src/CORDIC/lut/lut.hpp"
namespace std {
template<typename T, size_t n, size_t f, class op, class up>
typename core::fixed_point<T, n, f, ... |
<commit_before>#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <unistd.h>
#include "snarkfront.hpp"
using namespace snarkfront;
using namespace std;
void printUsage(const char* exeName) {
cout << "usage: " << exeName
<< " -p BN128|Edwards"
... |
<commit_before>// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <logd/exceptions.h>
#include <logd/metrics.h>
#include <logd/rpc_forwarder.h>
#include <vespa/vespalib/gtest/gtest.h>
#include <vespa/vespalib/metrics/dummy_metrics_manager.h>
using... |
<commit_before>/*************************************************************************
*
* $RCSfile: inettbc.cxx,v $
*
* $Revision: 1.21 $
*
* last change: $Author: mba $ $Date: 2001-11-28 11:25:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include "show_result.hpp"
void save_result(const char* source_path, char const postFix[], char const outputFormat[], cv::Mat& image)
{
char* destination_path = (char*)calloc( strlen(source_path) + strlen(postFix) + strlen(outputFormat) + strlen("\0"), sizeof(char) );
const char* lastSlash ... |
<commit_before>
#include "mgsRileyDescending.h"
#include "appConstants.h"
int lineColor = 0;
int strokeColor = 0;
int fillColor = 0;
// vector<vector<float>> myLines;
// myLines = { x, y, columns, rows, speed, accel, wavePeriod, wavePhase, distance };
// void loadLine(x,y,cols,rows,speed,accel,wavePeriod,wavePhase,di... |
<commit_before>/*!
* \file Configurator.cpp
* \brief File containing definitions of Configurator class methods.
*
* \author tkornuta
* \date Apr 8, 2010
*/
#include "Configurator.hpp"
#include "DisCODeException.hpp"
#include "Logger.hpp"
#include "Component.hpp"
#include "Event.hpp"
#include "EventHandler.hpp"
... |
<commit_before>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef USE_LIBGSL
#include <gsl/gsl_randist.h>
#endif
#include "utils.hpp"
#include "string.h"
/* Really fast random function */
static unsigned long x=123456789, y=362436069, z=521288629;
unsigned long xorshf96(void) { //period 2^96-1
... |
<commit_before>/**************************************************************************
* newbucket.hxx -- new bucket routines for better world modeling
*
* Written by Curtis L. Olson, started February 1999.
*
* Copyright (C) 1999 Curtis L. Olson - http://www.flightgear.org/~curt/
*
* This library is free so... |
<commit_before>#ifndef __MAPNIK_BENCH_FRAMEWORK_HPP__
#define __MAPNIK_BENCH_FRAMEWORK_HPP__
// mapnik
#include <mapnik/debug.hpp>
#include <mapnik/params.hpp>
#include <mapnik/value_types.hpp>
#include <mapnik/safe_cast.hpp>
#include "../test/cleanup.hpp"
// stl
#include <chrono>
#include <cstdio> // snprintf
#inclu... |
<commit_before>/*
Copyright (c) 2016,
Dan Bethell, Johannes Saam, Vahan Sosoyan, Brian Scherbinski.
All rights reserved. See COPYING.txt for more details.
*/
#include <ai.h>
#include "Data.h"
#include "Client.h"
using boost::asio::ip::tcp;
AI_DRIVER_NODE_EXPORT_METHODS(AtonDriverMtd);
const char* getHost()
{
co... |
<commit_before>//#####################################################################
// Class Image
//#####################################################################
#include <other/core/geometry/Box.h>
#include <other/core/image/Image.h>
#include <other/core/image/JpgFile.h>
#include <other/core/image/PngFile.... |
<commit_before>//
// Name: SceneGraphDlg.cpp
//
// Copyright (c) 2001-2003 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#ifdef __GNUG__
#pragma implementation "SceneGraphDlg.cpp"
#endif
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifndef... |
<commit_before>#include "RobustNormalEstimator.hpp"
#include "PlaneFitter.hpp"
#include <pcl/search/kdtree.h>
#include "Types.hpp"
using namespace planeseg;
RobustNormalEstimator::
RobustNormalEstimator() {
setRadius(0.1);
setMaxEstimationError(0.01);
setMaxCenterError(0.02);
setMaxIterations(100);
comput... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: polysc3d.hxx,v $
* $Revision: 1.... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2013 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>
#ifndef _PFASST_ENCAP_AUTOMAGIC_HPP_
#define _PFASST_ENCAP_AUTOMAGIC_HPP_
#include <tuple>
#include "../quadrature.hpp"
#include "encap_sweeper.hpp"
using namespace std;
namespace pfasst
{
namespace encap
{
template<typename ScalarT, typename timeT>
using auto_build_tuple = tuple<pfasst... |
<commit_before>// Copyright (c) 2014-2017 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAOCPP_PEGTL_INCLUDE_MEMORY_INPUT_HPP
#define TAOCPP_PEGTL_INCLUDE_MEMORY_INPUT_HPP
#include <cstddef>
#include <cstring>
#include <string>
#include <utility>
... |
<commit_before>// Copyright (c) 2014-2018 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_MEMORY_INPUT_HPP
#define TAO_PEGTL_MEMORY_INPUT_HPP
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <string>
#include <type_traits>... |
<commit_before>/*******************************************************************************
* _ _ _ *
* | | | | (_) *
* | |_ __ _ ___| | ___ ... |
<commit_before>#ifndef TWISTEDCPP_SOCKETS_HPP
#define TWISTEDCPP_SOCKETS_HPP
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/asio/spawn.hpp>
#include <iostream>
namespace twisted {
namespace detail {
class socket_base {
public:
virtual void do_handshake(boost::asio::yield_context) ... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>#include <BALL/KERNEL/system.h>
#include <BALL/DATATYPE/string.h>
#include <BALL/FORMAT/PDBFile.h>
#include <BALL/FORMAT/DCDFile.h>
#include <BALL/MOLMEC/COMMON/snapShot.h>
using namespace BALL;
using namespace std;
int main(int argc, char** argv)
{
String filename;
SnapShot snapshot;
DCDFile dcd_f... |
<commit_before>/**************************************************************************
** This file is part of LiteIDE
**
** Copyright (c) 2011-2014 LiteIDE Team. All rights reserved.
**
** 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 <gloperate/base/Canvas.h>
#include <cppassist/logging/logging.h>
#include <cppassist/memory/make_unique.h>
#include <globjects/Framebuffer.h>
#include <gloperate/base/Environment.h>
#include <gloperate/base/TimeManager.h>
#include <gloperate/pipeline/Stage.h>
#include <gloperate/input/MouseD... |
<commit_before>/*******************************************************************************
* Copyright (c) 2013, Patrick P. Putnam (putnampp@gmail.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
<commit_before>/*
Copyright (c) 2021 Carsten Burstedde, Donna Calhoun, Scott Aiton, Grady Wright
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 th... |
<commit_before>/*
* plugin_factory.cpp
*
* Created on: Nov 20, 2012
* Author: partio
*/
#include "plugin_factory.h"
#include "logger_factory.h"
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <cstdlib>
#include <dlfcn.h>
#include "util.h"
using namespace himan;
using namespace himan::pl... |
<commit_before>#include <combinations_with_replacement.hpp>
#include <iterator>
#include <string>
#include <set>
#include <vector>
#include "helpers.hpp"
#include "catch.hpp"
using iter::combinations_with_replacement;
using itertest::BasicIterable;
using CharCombSet = std::multiset<std::vector<char>>;
TEST_CASE("co... |
<commit_before>//
// Created by Sam on 9/25/2017.
//
#include <utility>
#include <iostream>
#include "../../include/Game/Card.h"
#include "../../include/Game/Player.h"
#include "../../include/Game/Game.h"
#include "../../include/Game/Card/Creature.h"
#include "../../include/Game/Container/Deck.h"
#include "../../incl... |
<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/privacy_blacklist/blacklist_manager.h"
#include "base/message_loop.h"
#include "base/path_service.h"
#include... |
<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.
//
// This test performs a series false positive checks using a list of URLs
// against a known set of SafeBrowsing data.
//
// It uses ... |
<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 "chrome/browser/ui/webui/extensions/extension_loader_handler.h"
#include "base/bind.h"
#include "base/file_util.h"
#include "base... |
<commit_before>/*
* GridMapVisualization.cpp
*
* Created on: Nov 19, 2013
* Author: Péter Fankhauser
* Institute: ETH Zurich, Autonomous Systems Lab
*/
#include "grid_map_visualization/GridMapVisualization.hpp"
#include <grid_map_core/GridMap.hpp>
#include <grid_map/GridMapRosConverter.hpp>
using namespa... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: mergekeys.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: obo $ $Date: 2007-03-14 08:27:13 $
*
* The Contents of this file are mad... |
<commit_before>#include "Counter.h"
#include <iostream>
void Stack::push(int value) // adds elements to the stack
{
Stack *addEl = new Stack;
next = addEl->head;
addEl->value = value;
if (head != NULL)
{
tail->next = addEl;
tail = addEl;
}
else
{
head = tail = addEl;
}
}
void Stack::pop() // deletes th... |
<commit_before>/*
* MIT License
*
* Copyright (c) 2016-2019 xiongziliang <771730766@qq.com>
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (th... |
<commit_before>//=================================================================================================
// Copyright 2014-2015 Dirk Lemstra <https://graphicsmagick.codeplex.com/>
//
// Licensed under the ImageMagick License (the "License"); you may not use this file except in
// compliance with the Lice... |
<commit_before>#include "StdAfx.h"
#include "ThreadComponent.h"
thread_component::thread_component()
{
}
DWORD thread_component::GetExitCode()
{
return m_ExitCode;
}
bool thread_component::IsExecuting()
{
if (m_pThread == NULL)
return false;
return (WAIT_TIMEOUT == WaitForSingle... |
<commit_before>// **************************************************************************
// This file is property of and copyright by the ALICE HLT Project *
// ALICE Experiment at CERN, All rights reserved. *
// ... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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>// SciTE - Scintilla based Text Editor
/** @file MatchMarker.cxx
** Mark all the matches of a string.
**/
// Copyright 1998-2011 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <string>
#include <vector>
#in... |
<commit_before>/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* 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 require... |
<commit_before>/*
* PWM_Generator.cpp
*
* Created on: 11. 12. 2016
* Author: michp
*/
#include "PWM_Generator.h"
namespace flyhero
{
PWM_Generator &PWM_Generator::Instance()
{
static PWM_Generator instance;
return instance;
}
PWM_Generator::PWM_Generator()
{
gpio_confi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: shape.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2008-01-17 08:05:45 $
*
* The Contents of this file are made ava... |
<commit_before>/**
* lengthPrefixStrings.cpp
*
* Author: Patrick Rummage (patrickbrummage@gmail.com)
*
* Objective:
* Implement a string type that stores its length at location[0].
* Define functions to append, concatenate, create substrings, and
* retrieve characters from strings of this type.... |
<commit_before>#ifndef OPENGM_NEW_VISITOR_HXX
#define OPENGM_NEW_VISITOR_HXX
#include <iostream>
#include <map>
#include <opengm/opengm.hxx>
#include <opengm/utilities/timer.hxx>
namespace opengm{
namespace visitors{
struct VisitorReturnFlag{
const static size_t ContinueInf = 0;
const static size_t Sto... |
<commit_before>#include "Label.hpp"
namespace cstr
{
Label::Label(const sf::Vector2f& pos, const std::string& str, const sf::Font& font)
{
text.setFont(font);
text.setString(str);
text.setOrigin(text.getGlobalBounds().left + text.getGlobalBounds().width / 2, text.getGlobalBounds().top + text.getGlobalBounds().... |
<commit_before>#include "utils.h"
#if defined(Q_OS_WIN)
#include <windows.h>
#include <winsock2.h>
#include <winnt.h>
#include <shellapi.h>
#elif defined(Q_OS_LINUX)
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#define SOCKET_ERROR (-1)
#elif defined(Q_OS_DARWIN)
#include <CoreFoundation/CoreFoun... |
<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/automation/ui_controls.h"
#include <X11/keysym.h>
#include <X11/Xlib.h>
#include "base/callback.h"
#include ... |
<commit_before>// This file is part of the AliceVision project.
// Copyright (c) 2017 AliceVision contributors.
// 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 https://mozilla.org/MPL/2.0/.
#inc... |
<commit_before>/*
* Copyright (c) 2014 odan
* License: MIT License
*/
#include "Parameters5Gen.hpp"
namespace PokeRNG {
template<typename Constant>
Parameters5Gen<Constant>::Parameters5Gen() : nazo1(Constant::nazo1), nazo2(Constant::nazo2), nazo3(Constant::nazo3), nazo4(Constant::nazo4), nazo5(Constant::nazo5), vc... |
<commit_before>
#include <Hord/Error.hpp>
#include <Hord/IO/Datastore.hpp>
#include <utility>
namespace Hord {
namespace IO {
// class Datastore implementation
#define HORD_SCOPE_CLASS_IDENT__ IO::Datastore
Datastore::Datastore(
String root_path
) noexcept
: m_root_path(std::move(root_path))
{}
Datastore::~Data... |
<commit_before>#ifndef MJOLNIR_FORCE_FIELD
#define MJOLNIR_FORCE_FIELD
#include <mjolnir/core/LocalForceField.hpp>
#include <mjolnir/core/GlobalForceField.hpp>
#include <mjolnir/core/ExternalForceField.hpp>
namespace mjolnir
{
template<typename traitsT>
class ForceField
{
public:
typedef traitsT traits_type;
... |
<commit_before>// $Id$
// vim:tabstop=2
/***********************************************************************
***********************************************************************/
/**
* k-best Batch Mira, as described in:
*
* Colin Cherry and George Foster
* Batch Tuning Strategies for Statistical Machi... |
<commit_before>//===- TopDownClosure.cpp - Compute the top-down interprocedure closure ---===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>//===========================================
// Lumina-DE source code
// Copyright (c) 2016, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "session.h"
#include <QObject>
#include <QProcess>
#incl... |
<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.
// Tests the MetricsService stat recording to make sure that the numbers are
// what we expect.
#include <string>
#include "base/file... |
<commit_before><commit_msg>properly handle failure of loading a module<commit_after><|endoftext|> |
<commit_before>#include "globalfunction.h"
#include <stdlib.h>
#include <univ/log.h>
#include <univ/univ.h>
using namespace Sloong;
using namespace Sloong::Universal;
#include <boost/foreach.hpp>
#include "dbproc.h"
#include "utility.h"
#include "jpeg.h"
#define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
CGlobalFunction* C... |
<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.
// Tests the MetricsService stat recording to make sure that the numbers are
// what we expect.
#include <string>
#include "base/file... |
<commit_before>#include <gtest/gtest.h>
#include <stan/optimization/lbfgs_update.hpp>
TEST(OptimizationLbfgsUpdate, lbfgs_update_secant) {
typedef stan::optimization::LBFGSUpdate<> QNUpdateT;
typedef QNUpdateT::VectorT VectorT;
const unsigned int nDim = 10;
const unsigned int maxRank = 3;
VectorT yk(nDim), ... |
<commit_before>// Copyright (c) 2010 - Mozy, Inc.
#include <boost/bind.hpp>
#include "mordor/xml/dom_parser.h"
#include "mordor/test/test.h"
#include "mordor/string.h"
using namespace Mordor;
static void callback(std::string &value, int &called,
const std::string &string)
{
value.append(str... |
<commit_before>// $Id$
// vim:tabstop=2
/***********************************************************************
Moses - factored phrase-based language decoder
Copyright (C) 2006 University of Edinburgh
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General P... |
<commit_before><commit_msg>asio.cpp: review thread set name<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2013-2018 Anton Kozhevnikov, Thomas Schulthess
// 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 ... |
<commit_before>/*
* opencog/server/ConsoleSocket.cc
*
* Copyright (C) 2002-2007 Novamente LLC
* All Rights Reserved
*
* Written by Andre Senna <senna@vettalabs.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
* pu... |
<commit_before>#include "ProfilingManager.hpp"
#include <imgui.h>
#include <GLFW/glfw3.h>
ProfilingManager::ProfilingManager() {
}
ProfilingManager::~ProfilingManager() {
}
void ProfilingManager::BeginFrame() {
// Clear previous results.
first.children.clear();
first.name = "";
first.durat... |
<commit_before>#include "core.h"
#include "character.h"
#include "marge.h"
#include "margeIdleState.h"
#include "margeJumpAttackState.h"
MargeJumpAttackState::MargeJumpAttackState()
{
}
MargeJumpAttackState::~MargeJumpAttackState()
{
}
void MargeJumpAttackState::Update(Character& player)
{
if (player.position.y >= ... |
<commit_before>/*
* This file is part of SpeakEasy.
* Copyright (C) 2011-2013 Lambert Clara <lambert.clara@yahoo.fr>
*
* 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 Foundation, either version... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2000 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. Redistr... |
<commit_before>/*
* 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 licenses this file to You under the Apache License, Version 2.0
* (the "Lice... |
<commit_before>#include <GL/glut.h>
#include <cmath>
#include <iostream>
#define PI 3.14159265359
using namespace std;
double a = -17;
double v = 0;
double y = 0.0;
double x = 0.0;
double y00 = 0;
double t = 0;
void radioactive();
void time_pass();
void init();
void Mouse( int button, int state, int x, int y);
int... |
<commit_before>/*************************************************************************
*
* $RCSfile: X11_clipboard.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: hr $ $Date: 2004-09-08 15:52:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>#include "Behavior.hpp"
#include <boost/foreach.hpp>
Gameplay::Behavior::Behavior(GameplayModule *gameplay, size_t minRobots)
: _gameplay(gameplay), _minRobots(minRobots)
{
}
Gameplay::Behavior::~Behavior()
{
}
bool Gameplay::Behavior::run()
{
return false;
}
bool Gameplay::Behavior::allVisible() ... |
<commit_before>/*
openDCM, dimensional constraint manager
Copyright (C) 2012 Stefan Troeger <stefantroeger@gmx.net>
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 ... |
<commit_before>// Copyright (C) 2005 John Gibson. See ``LICENSE'' for the license to this
// software and for a DISCLAIMER OF ALL WARRANTIES.
#include <stdio.h>
#include <math.h>
#include <float.h>
#include <ugens.h> // for octpch and ampdb
#include <Ougens.h> // for Ooscil
#include "grainstream.h"
#include "grain... |
<commit_before>#include <algorithm>
#include <core_pins.h>
#include "StepControl.h"
#include "TeensyDelay/TeensyDelay.h"
//#include "HardwareSerial.h"
//
//void StepControl::move(Stepper& stepper1, Stepper& stepper2)
//{
// moveAsync(stepper1, stepper2);
// while (isRunning()) {
// delay(10);
// }
//}
//
//vo... |
<commit_before>inline void Density::generate_valence(K_point_set& ks__)
{
PROFILE("sirius::Density::generate_valence");
double wt{0};
double occ_val{0};
for (int ik = 0; ik < ks__.num_kpoints(); ik++) {
wt += ks__[ik]->weight();
for (int j = 0; j < ctx_.num_bands(); j++) {
o... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// \file single_threaded.hpp
/// -------------------------
///
/// (c) Copyright Domagoj Saric 2019.
///
/// Use, modification and distribution are subject to the
/// Boost Software License, Version 1.0. (See accompan... |
<commit_before>#ifndef DUNE_STUFF_COMMON_PARAMETER_TREE_HH
#define DUNE_STUFF_COMMON_PARAMETER_TREE_HH
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#else
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#include <cstring>
#include <sstream>
#include <vector>
#include <boost/algorithm/string/join.hpp>
... |
<commit_before>#ifndef AL_OMNIAPP_H
#define AL_OMNIAPP_H
#include "allocore/al_Allocore.hpp"
#include "allocore/io/al_Window.hpp"
#include "allocore/protocol/al_OSC.hpp"
#include "alloutil/al_FPS.hpp"
#include "alloutil/al_OmniStereo.hpp"
#define PORT_TO_DEVICE_SERVER (12000)
#define PORT_FROM_DEVICE_SERVER (PORT_TO_... |
<commit_before>#include <iostream>
#include <cmath>
using std::cin;
using std::cout;
using std::endl;
using std::string;
int menu();
int PowerDigitSum(int, int);
int AmicableNumbers(int);
void triangulo_pascal(int, int**);
void imprimir_matriz(int**,int);
void teorema_binomio(int**,int);
int main(int argc, char*argv[... |
<commit_before>#include"common/utils.h"
#include"common/mqtt_wrapper.h"
#include<chrono>
#include<getopt.h>
#include<iostream>
#include<fstream>
#include<string>
#include<exception>
#include<stdexcept>
#include<mosquittopp.h>
#include<ctime>
#include<stdio.h>
#include<unistd.h>
using namespace std;
class TLoggerConfi... |
<commit_before>/* This file is part of Strigi Desktop Search
*
* Copyright (C) 2006 Jos van den Oever <jos@vandenoever.info>
*
* 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; eithe... |
<commit_before>//
// created by : Timothée Feuillet
// date: 2022-2-18
//
//
// Copyright (c) 2022 Timothée Feuillet
//
// 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,... |
<commit_before>/*
* Copyright 2019 The Open GEE Contributors
*
* 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 b... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: toolbarcontrollerfactory.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2006-06-19 11:07:49 $
*
* The Contents of thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.