text stringlengths 54 60.6k |
|---|
<commit_before>#include "ExecutionEngine.h"
#include <chrono>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/ADT/Triple.h>
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/Sect... |
<commit_before>#include "replayState.h"
#include <deque>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#include "libwatcher/message.h"
#include "serverConnection.h"
#include "Assert.h"
#include "database.h"
#include "watcherd.h"
using namespace util;
using namespace watcher;
using namespace watcher::event;
... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// QUESO - a library to support the Quantification of Uncertainty
// for Estimation, Simulation and Optimization
//
// Copyright (C) 2008-2015 The P... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... |
<commit_before>#pragma once
// C++ Standard Library
#include <sstream>
// Cereal
#include <cereal/cereal.hpp>
#include <cereal/archives/json.hpp>
#include <cereal/types/polymorphic.hpp>
// MPI
#include <mpi.h>
// Mantella
#include <mantella_bits/optimisationAlgorithm/populationBasedAlgorithm.hpp>
#include <mantella... |
<commit_before>// This file is part of the "x0" project, http://github.com/christianparpart/x0>
// (c) 2009-2017 Christian Parpart <christian@parpart.family>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the Licens... |
<commit_before>// Copyright (c) 2019-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include "test.hpp"
#include "verify_analyze.hpp"
#include "verify_rule.hpp"
namespace TAO_PEGTL_NAMESPACE
{
void unit_test()
{
verify_rule< rematch< one< ... |
<commit_before>//-------------------------------------------------------------------------
//
// rewritersample.cpp: Source-to-source transformation sample with Clang,
// using Rewriter - the code rewriting interface.
//
// Eli Bendersky (eliben@gmail.com)
// This code is in the public domain
//
#include <cstdio>
#incl... |
<commit_before>#include "customizer.h"
#include <QtWidgets/QApplication>
#include <qrkernel/settingsManager.h>
using namespace interpreterCore;
QString Customizer::windowTitle() const
{
return QObject::tr("Trik Studio") + " " + productVersion();
}
QIcon Customizer::applicationIcon() const
{
return QIcon(":/icons... |
<commit_before>#include <main.h>
#include <pidData.h>
/* *** Circular buffer for PID samples queued for logging *** */
// Indexes into pidSamples; Marks index of next data point to transmit to audacy
volatile unsigned int pidSentDataPointer = 0;
// If sentDataPointer == dataPointer, buffer is empty
// If dataPointer =... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// main.cpp
// Sophia
// Blake Nelson
//
// Driver for the unit tests.
//
////////////////////////////////////////////////////////////////////////////////
#include <boost/test/unit_test.hpp>
#include <boost/test/test_t... |
<commit_before>#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <asio.hpp>
#include <ctime>
#include <cstring>
#include <vector>
#include <functional>
#include "common.hxx"
#include "auth.hxx"
#include "service.hxx"
#include "realm.hxx"
#include "client.hxx"
#include "packets.hxx"
using namespace std;
Clie... |
<commit_before>/*
* Code Copyright 2011 Robert Hodgin ( http://roberthodgin.com ) and Andrew Bell ( http://drawnline.net )
* Used with permission for the Cinder Project ( http://libcinder.org )
*/
#include "cinder/app/AppBasic.h"
#include "cinder/Rand.h"
#include "cinder/ImageIo.h"
#include "cinder/gl/gl.h"
#includ... |
<commit_before>#include <iostream> /* allows to perform standard input and output operations */
#include <fstream>
#include <stdio.h> /* Standard input/output definitions */
#include <stdint.h> /* St... |
<commit_before>#include <common.hpp>
int debugCount=0;
pair<float,float> HotspotPos[] = {
// TOP_LEFT,
{0.0,0.0},
// TOP,
{0.5,0.0},
// TOP_RIGHT,
{1.0,0.0},
// LEFT,
{0.0,0.5},
// CENTER,
{0.5,0.5},
// RIGHT,
{1.0,0.5},
// BOTTOM_LEFT,
{0.0,1.0},
// BOTTOM,
{0.5,1.0},
// BOTTOM_RIGHT
{1.0,1.0}
};
S... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_trai... |
<commit_before>//------------------------------------------------------------------------------
// File: mframework.hpp
//
// Desc: Data Mining Framework.
//
// Copyright (c) 2014-2018. veyesys.com All rights reserved.
//------------------------------------------------------------------------------
#ifndef __M_FRAME_WO... |
<commit_before>/************************************************************************************
**
* @copyright (c) 2013-2100, ChengDu Duyer Technology Co., LTD. All Right Reserved.
*
*************************************************************************************/
/**
* @GFile g_file.cpp
* @version
* ... |
<commit_before>/*
* SPDX-FileCopyrightText: 2016-2016 CSSlayer <wengxt@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
*/
#include "chttrans.h"
#include "config.h"
#include <fcitx-config/iniparser.h>
#include <fcitx-utils/i18n.h>
#include <fcitx-utils/standardpath.h>
#include <fcitx-utils/utf8.h>
#inc... |
<commit_before>/* Copyright (C) 2003 MySQL AB
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 d... |
<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 "base/basictypes.h"
#include "googleurl/src/gurl.h"
#include "net/base/data_url.h"
#include "testing/gtest/include/gtest/... |
<commit_before>// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2019 Intel Corporation
#include "pattern_matching.hpp"
#include "ade/util/zip_range.hpp"
... |
<commit_before>#include "WallFrictionChurchillMaterial.h"
#include "WallFrictionModels.h"
#include "Numerics.h"
template <>
InputParameters
validParams<WallFrictionChurchillMaterial>()
{
InputParameters params = validParams<WallFriction3EqnBaseMaterial>();
params.addRequiredCoupledVar("rhoA", "Mass equation variab... |
<commit_before>//
// OCTrace.cpp
// IPAPatch
//
// Created by wadahana on 01/06/2017.
// Copyright © 2017. All rights reserved.
//
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <dlfcn.h>
#include <assert.h>
#include <string.h>
#include <pthread.h... |
<commit_before>//----------------------------------------------------------------------------
//
// "Copyright Centre National d'Etudes Spatiales"
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
//---------------------------------------------------------------------------... |
<commit_before>#include <rclcpp/rclcpp.hpp>
#include <std_msgs/String.h>
#include "std_msgs/dds_impl/String_convert.h"
#include <std_msgs/Int32.h>
#include <rclcpp_examples/AddTwoIntsRequest.h>
#include <rclcpp_examples/AddTwoIntsResponse.h>
#include "std_msgs/dds_impl/Int32_convert.h"
#include "rclcpp_examples/dds_... |
<commit_before>/**
This file contains a sequence of tests to perform for different instances of a templatized fixture.
It is thus inlined several times in the .cpp test file.
*/
// ==============================
// Set/get value tests
TEST_F(TestMatrix, set_fullMat ) { ASSERT_TRUE( matrixMaxDiff(mat,fullMat) < 1... |
<commit_before>//===-- SymbolVendorMacOSX.cpp ----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#ifndef MJOLNIR_CORE_OBSERVER_CONTAINER_HPP
#define MJOLNIR_CORE_OBSERVER_CONTAINER_HPP
#include <mjolnir/util/io.hpp>
#include <mjolnir/util/progress_bar.hpp>
#include <mjolnir/core/ObserverBase.hpp>
#include <vector>
// This class manages several different XXXObservers to output
// positions, energies... |
<commit_before>#ifndef MJOLNIR_READ_INTERACTION
#define MJOLNIR_READ_INTERACTION
#include <extlib/toml/toml.hpp>
#include <mjolnir/core/LocalInteractionBase.hpp>
#include <mjolnir/core/BondLengthInteraction.hpp>
#include <mjolnir/core/BondAngleInteraction.hpp>
#include <mjolnir/core/DihedralAngleInteraction.hpp>
#inclu... |
<commit_before>/*
TLD's work well w/ features (keypts) low-level features
- DoT works well with textureless objects (contoures)
- Use both to bootstrap a contour and features based reconstruction
- Does going to 3D from contour make tracking possible ??
*/
#define WINDOW_NAME "TLD Segmenter"
#include <set>
#include... |
<commit_before>/***************************************************************************
irccontact.cpp - description
-------------------
begin : Wed Mar 6 2002
copyright : (C) 2002 by nbetcher
email : nbetc... |
<commit_before>//
// Copyright (c) 2018 Rokas Kupstys
//
// 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, modif... |
<commit_before>/*
* Copyright (C) 2005, 2008 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>// Copyright 2016 Alessio Sclocco <a.sclocco@vu.nl>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
<commit_before>/*
* Copyright (c) 2011, 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 source code must retain the above copyright
* ... |
<commit_before>#include "ImageWriter.h"
uint32 ImageWriter::GetChannelForPixel(uint32 x, uint32 y, uint32 ch) {
uint32 bytesPerRow = GetWidth() * 4;
uint32 byteLocation = y * bytesPerRow + x*4 + ch;
return m_PixelData[byteLocation];
}
<commit_msg>Make sure that we assume pixels are in block stream order when access... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: register.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2006-09-25 13:06:05 $
*
* The Contents of this file are made ... |
<commit_before>/// \file libport/assert.hh
/// \brief Provide nice assert like macros.
#ifndef LIBPORT_ASSERT_HH
# define LIBPORT_ASSERT_HH
# include <cassert>
# include <cstdlib>
// We have mysterious random aborts on OSX which is compiled with
// NDEBUG. Temporarily disable NDEBUG to have verbose paborts.
# if de... |
<commit_before>// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>
typedef websocketpp::server<websocketpp::config::asio> server;
#include <jsonipc/jsonipc.hh>
#include <bse/bse.hh>
#include <bse/platform.hh>
#includ... |
<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>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 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 2018 Google LLC
//
// 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>#ifndef NN_RELU_HPP
#define NN_RELU_HPP
#include <math.h>
#include "map.hpp"
namespace nnlib
{
/// Rectified linear activation function.
template <typename T = double>
class ReLU : public Map<T>
{
public:
ReLU(T leak = 0.1) :
m_leak(leak)
{}
ReLU(const ReLU &module) :
m_leak(module.m_leak)
{... |
<commit_before>/*
This file is part of BGSLibrary.
BGSLibrary 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.
BGSLibrary is distributed in ... |
<commit_before>//
// Copyright(c) 2015 Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
//
// bench.cpp : spdlog benchmarks
//
#include "spdlog/async.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/daily_file_sink.h"
#include "spdlog/sinks/null_sink.h"
#incl... |
<commit_before>
#include <gloperate/rendering/ColorGradientPreparation.h>
#include <cppexpose/reflection/AbstractProperty.h>
#include <gloperate/rendering/AbstractColorGradient.h>
#include <gloperate/rendering/ColorGradientList.h>
namespace gloperate
{
ColorGradientPreparation::ColorGradientPreparati... |
<commit_before>/*
* Copyright (c) 2015 - 2022, Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "config.h"
#include <string>
#include <cstdint>
#include "geopm/Exception.hpp"
#include "geopm/Agg.hpp"
#include "geopm/Helper.hpp"
#include "geopm_sched.h"
#include "LevelZeroDevicePoolImp.hpp"
... |
<commit_before>/**
* This file is part of libstreamswtich, which belongs to StreamSwitch
* project.
*
* Copyright (C) 2014 OpenSight (www.opensight.cn)
*
* StreamSwitch is an extensible and scalable media stream server for
* multi-protocol environment.
*
* This program is free software: you can redistrib... |
<commit_before>/**
* @project zqrpc
* @file include/zqrpc/ZSocket.hpp
* @author S Roychowdhury <sroycode @ gmail DOT com>
* @version 0.1
*
* @section LICENSE
*
* Copyright (c) 2014 S Roychowdhury
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associat... |
<commit_before>#include "types_mapping.hpp"
#include "classificator.hpp"
#include "../base/string_utils.hpp"
#include "../base/stl_add.hpp"
void IndexAndTypeMapping::Load(istream & s)
{
Classificator const & c = classif();
string v;
vector<string> path;
uint32_t ind = 0;
while (s.good())
{
v.clear(... |
<commit_before>/**
* @file lltoast.cpp
* @brief This class implements a placeholder for any notification panel.
*
* $LicenseInfo:firstyear=2000&license=viewergpl$
*
* Copyright (c) 2000-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided ... |
<commit_before>/*
* Copyright 2013-2016 Christian Lockley
*
* 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>/*=========================================================================
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 distr... |
<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.
//
// This file is based on the SMSLib library.
//
// SMSLib Sudden Motion Sensor Access Library
// Copyright (c) 2010 Suitable Systems
... |
<commit_before>#include "vtkCellDistanceSelector.h"
#include <vtkCell.h>
#include <vtkCellData.h>
#include <vtkIdList.h>
#include <vtkObjectFactory.h>
#include <vtkPointData.h>
#include <vtkDataSet.h>
#include <vtkUnstructuredGrid.h>
#include <vtkStructuredGrid.h>
#include <vtkPolyData.h>
#include <vtkCellLinks.h>
#in... |
<commit_before>//////////////////////////////////////////////////////////////////////////
#include "ExperimentalD3D12.hpp"
#include "Application/iWindowedApplication.hpp"
#include "Application/WindowFlags.hpp"
#include "Application/WindowDesc.hpp"
#include "Graphics/ImageFlags.hpp"
#include "Logging/Logging.hpp"
#inclu... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/ocmb/explorer/procedures/hwp/memory/exp_getid... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_cpu_special_wakeup_co... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 wit... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Karoliina T. Salminen <karoliina.t.salminen@nokia.com>
**
** This file is part of duicontrolpanel.
**
**
** This library... |
<commit_before>#include "fingerprint.h"
using namespace v8;
using v8::FunctionTemplate;
extern int initalized;
typedef struct __ENROLL_DATA__ {
uv_async_t async;
Nan::Persistent<Function> callback;
unsigned char *fingerprint_data;
size_t fingerprint_size;
int result;
} ENROLL_DATA;
typedef struc... |
<commit_before>/**
* Copyright (C) 2012 by INdT
*
* 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; either version 2
* of the License, or (at your option) any later version.
*
* Thi... |
<commit_before>// Copyright 2010-2013 RethinkDB, all rights reserved.
#ifndef ERRORS_HPP_
#define ERRORS_HPP_
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#ifndef DISABLE_BREAKPOINTS
#ifdef __linux__
#if defined __i386 || defined __x86_64
#define BREAKPOINT __asm__ volatile ("int3")
#else /* not x86/a... |
<commit_before>#include <iostream>
#include <vector>
#include <cmath>
#include <data.h>
#include <constants.h>
#include <mesh.h>
#include <initialconditions.h>
using namespace std;
extern vector<node> n;
extern vector<element> e;
extern vector<type1> tp1;
extern vector<type2> tp2;
extern vector<type3> tp3;
void W(... |
<commit_before>//*********************************************************
//GLFONT.CPP -- glFont routines
//Copyright (c) 1998 Brad Fish
//See glFont.txt for terms of use
//November 10, 1998
//*********************************************************
#include <stdio.h>
#include <malloc.h>
#include <string.h>... |
<commit_before>#include <ros/ros.h>
#include <serialport/serialport.h>
#define REPLY_SIZE 8
#define TIMEOUT 1000
char* itoa(int value, char* result, int base);
// This example opens the serial port and sends a request 'R' at 1Hz and waits for a reply.
int main(int argc, char** argv)
{
ros::init(argc, argv, "ex... |
<commit_before>/*
Copyright (c) 2015-2019, Robert J. Hansen <rjh@sixdemonbag.org>
Permission to use, copy, modify, and/or 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 "... |
<commit_before>// Copyright 2018 Google 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 applicable law ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/io/p9_io_xbus_image_build.C... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_sbe_chiplet_reset.H... |
<commit_before>/*
http://portaudio.com/docs/v19-doxydocs/api_overview.html
*/
/* BEGIN Setup */
#include "jsaudio.h"
#include "helpers.h"
#include "stream.h"
/* Initialize stream and jsStreamCb as global */
LocalFunction jsStreamCb;
/* BEGIN Initialization, termination, and utility */
// http://portaudio.com/docs... |
<commit_before>#include <node.h>
#include <v8.h>
#include "zmap-1.2.1/src/zopt.h"
#include "libzmap.h"
namespace libzmap {
using namespace node;
using namespace v8;
Handle<Value> LibZMAP(const Arguments& args) {
HandleScope scope;
Local<Function> callback;
Local<Object> obj;
if (args.Length() < 1) {
... |
<commit_before>#include <tinyxml2.h>
#include "mud.h"
#include "living.h"
#include "event.h"
#include "delayedEvent.h"
#include "world.h"
Living::Living()
{
events.RegisterEvent("HeartBeat", new DelayedEvent(LIVING_PULSE,0));
_position = POSITION_STANDING;
_gender = Gender::Neuter;
}
void Living::EnterGa... |
<commit_before>#include "parser.h"
int priority[128];
bool rightassoc[128];
const std::vector<std::pair<token_type, std::string> > splitExpression(const std::string &expr)
{
priority[int('+')] = 0;
priority[int('-')] = 0;
priority[int('*')] = 1;
priority[int('/')] = 1;
priority[int('%')] = 1;
... |
<commit_before>#include "parser.hpp"
//////////////
// Includes //
#include <istream>
#include <string>
#include <vector>
#include <tuple>
#include "parsestream.hpp"
#include "streamutils.hpp"
#include "json.hpp"
//////////
// Code //
// Creating a parse exception.
ParseException::ParseException(std::string type) {... |
<commit_before>/******************************
** Tsunagari Tile Engine **
** player.cpp **
** Copyright 2011 OmegaSDG **
******************************/
#include <Gosu/Audio.hpp>
#include <Gosu/Input.hpp>
#include "area.h"
#include "entity.h"
#include "player.h"
#include "world.h"
#include "wind... |
<commit_before>#include "player.h"
Player::Player()
{
}
Player::Player(Level* lev)
{
moveVector = sf::Vector2f(0,0);
position = lev->getPlayerStart();
// std::cout << "pos: " << position.x << "," << position.y << "\n";
// initPlayer();
movementSpeed = 8;
level = lev;
collectedScrews = 0;
// orientation = DIRE... |
<commit_before>// Copyright (c) 2011-2015 Zeex
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list o... |
<commit_before>#include <uv.h>
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <strsafe.h>
#include "pm.h"
#include "constants.h"
#define MAX_THREAD_WINDOW_NAME 64
HWND handle;
DWORD threadId;
HANDLE threadHandle;
HANDLE notifyEvent;
char *notify_msg;
bool isRunning = false;
DWORD WINAPI Lis... |
<commit_before>#include <bitcoin/poller.hpp>
#include <bitcoin/utility/logger.hpp>
namespace libbitcoin {
using std::placeholders::_1;
using std::placeholders::_2;
poller::poller(async_service& service, blockchain& chain)
: strand_(service.get_service()), chain_(chain)
{
}
void poller::query(channel_ptr node)
{
... |
<commit_before>/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/functional.h>
#include <vector>
PYBIND11_DECLARE_HOLDER_TYPE(T, std::shared_ptr<T>)
#include "client.h"
using namespace echolib;
namespace py = ... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2006-2007 Torsten Rahn <tackat@kde.org>
// Copyright 2007 Inge Walli... |
<commit_before>/*!
* \file report.cxx
* \brief Program entry and command line parsing for MP3Report.
*
* Copyright (c) 2013 Falko Schmidt <kaethorn@gmail.com>
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include <boost/progr... |
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "net.h"
#include "bitcoinrpc.h"
#include "alert.h"
#include "wallet.h"
#include "db.h"
#include "walletdb.... |
<commit_before>#include "scanner.hh"
#include <cctype>
using namespace std;
/*
Spidermonkey's tokenize function has the following control flow structure:
retry:
switch (c) {
case ...:
goto badchar
badchar:
default:
}
out:
error:
*/
boost::optional<boost::variant<Toke... |
<commit_before>#include <algorithm>
#include "base/common.h"
#include "base/task.h"
static double english_frequencies[26] = {
0.08167, 0.01492, 0.02782, 0.04253, 0.12702, 0.02228, 0.02015,
0.06094, 0.06966, 0.00153, 0.00772, 0.04025, 0.02406, 0.06749,
0.07507, 0.01929, 0.00095, 0.05987, 0.06327, 0.09056, ... |
<commit_before>//===------------------------- thread.cpp----------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>// Copyright (c) 2011 Zeex
//
// 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 a... |
<commit_before>#include "arc_utilities/timing.hpp"
#include <iostream>
#include <cassert>
#include <algorithm>
#include <cstdio>
using namespace arc_utilities;
double GlobalStopwatch(const StopwatchControl control)
{
static Stopwatch global_stopwatch;
return global_stopwatch(control);
}
Profiler* Profiler... |
<commit_before>#include "vision.hpp"
#include "operators.hpp"
#include <QTemporaryFile>
#include <iomanip>
#include <iostream>
#include <sstream>
vision::vision (QStatusBar& statusbar, augmentation_widget& augmentation, QObject* parent)
: QObject (parent)
, _movement3d_average (1)
, _failed_frames_counter (0)
, _debu... |
<commit_before>/*!
* @file window.cpp
*
* @brief Window class source file
*/
#include <algorithm>
#include "window.hpp"
#include "spoa/spoa.hpp"
namespace racon {
std::shared_ptr<Window> createWindow(uint64_t id, uint32_t rank, WindowType type,
const char* backbone, uint32_t backbone_length, const char* qu... |
<commit_before>/*********************************
** Tsunagari Tile Engine **
** window.cpp **
** Copyright 2011-2012 OmegaSDG **
*********************************/
#include <Gosu/Graphics.hpp> // for Gosu::Graphics
#include <Gosu/Timing.hpp>
#include <Gosu/Utility.hpp>
#include "config.h"
#i... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 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.apache.or... |
<commit_before>// This file is a part of the OpenSurgSim project.
// Copyright 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.apache.or... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.