text stringlengths 54 60.6k |
|---|
<commit_before>#include <stdexcept>
#include "gtest/gtest.h"
#include "map/Level.h"
#include "map/Tile.h"
TEST(LevelTest, DefaultLevelIsWalls)
{
Level l1(10, 10);
EXPECT_EQ(WallTile, l1.getTile(5, 5));
}
TEST(LevelTest, LevelGetTile)
{
Level l1(10, 10);
EXPECT_NO_THROW(l1.getTile(0, 0));
EXPECT_NO_THROW(l1.ge... |
<commit_before>#include <cstdio>
#include <iostream>
#include "Vcpu.h"
using namespace std;
#define MEMSIZE 65536
void tick(Vcpu *cpu);
void print_stats(Vcpu *cpu, int time);
int main(int argc, char **argv) {
Verilated::commandArgs(argc, argv);
if (argc < 2) {
cerr << "usage: " << argv[0] << " <6502 ... |
<commit_before>#include "thing/Portal.h"
#include "third-party/arduino-json-5.6.7/include/ArduinoJson.h"
namespace thing {
Portal::Portal()
: callback_([](const Config&){}),
debug_([](const char*){}) {}
void Portal::SetDebugHandler(std::function<void(const char* message)> handler) {
debug_ = std::move(ha... |
<commit_before>/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
**********************... |
<commit_before>//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// tuple_transformer.cpp
//
// Identification: src/backend/bridge/dml/tuple/tuple_transformer.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===-------... |
<commit_before>/*
MIT License
Copyright (c) 2017 Alan Tonks
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, modify, merg... |
<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/time.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define USAGE "U... |
<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/time.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define USAGE "Usage:\r\nc \r\n[tux machine number] \r\n[probability of packet... |
<commit_before>/* ----------------------------------------------------------------------- *//**
*
* @file dbconnector.hpp
*
* @brief This file should be included by user code (and nothing else)
*
*//* ----------------------------------------------------------------------- */
#ifndef MADLIB_POSTGRES_DBCONNECTOR_H... |
<commit_before>#ifndef BONEFISH_WAMP_TRACE_HPP
#define BONEFISH_WAMP_TRACE_HPP
#include <boost/format.hpp>
#include <boost/preprocessor/arithmetic/sub.hpp>
#include <boost/preprocessor/control/if.hpp>
#include <boost/preprocessor/variadic/size.hpp>
#include <iostream>
#include <string.h>
namespace bonefish {
namespac... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: MasterScriptProvider.hxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: rt $ $Date: 2005-09-09 02:29:28 $
*
* The Contents of this f... |
<commit_before>
#include "cocos-ext.h"
#include "HelloWorldScene.h"
#include "Render.h"
#include "FileInfo.h"
#include "TriggerCode/EventDef.h"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include <jni.h>
#include "../cocos2dx/platform/android/jni/JniHelper.h"
#include <android/log.h>
#endif
using namespace cocos... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 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. Redistributi... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: attr.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: ihi $ $Date: 2007-11-19 16:40:49 $
*
* The Contents of this file are made ava... |
<commit_before>#include "h5test.h"
#include "parallel_io.h"
#include "comm.h"
#include "cmdLineOptions.h"
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include "measure.h"
#include "t3pio.h"
struct Var_t
{
const char * name;
const char * descript;
};
Var_t varT[] =
{
{"T", "Temp in K"},
{... |
<commit_before>/*
* This file is part of yacas_kernel.
* Yacas is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesset General Public License as
* published by the Free Software Foundation, either version 2.1
* of the License, or (at your option) any later version.
*
* Yaca... |
<commit_before>// Copyright 2014 The Crashpad 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
//
// Unle... |
<commit_before>#ifndef SLICE_HPP
#define SLICE_HPP
#include "iterator_range.hpp"
#include "wrap_iter.hpp"
#include <iterator>
#include <cassert>
namespace iter {
template <typename Container>
auto slice(
Container && container,
typename std::iterator_traits<decltype(std::begin(contain... |
<commit_before>/* Chipdisk demo -- generate 8-bit PWM procedurally generated music
*
* Hook up a speaker or headphones between pins 0 and 1 -- this uses a bridge drive (push/pull) topology
*
* Touch pin 4 for "Previous Song"
* Touch pin 5 for "Next Song"
*/
#include "Arduino.h"
#include "ChibiOS.h"
#include "kl... |
<commit_before>/////////////////////////////////////////
//
// OpenLieroX
//
// code under LGPL, based on JasonBs work,
// enhanced by Dark Charlie and Albert Zeyer
//
//
/////////////////////////////////////////
// Profile system
// Created 13/8/02
// Jason Boettcher
#include <assert.h>
#include "Lier... |
<commit_before>#ifndef ORIGEN_HPP_INCLUDED
#define ORIGEN_HPP_INCLUDED
#define ORIGEN_VERSION "0.2.0"
#ifndef debugger
#define debugger __asm__("int $3");
#endif
#include "origen/utils.hpp"
#include "origen/helpers.hpp"
namespace Origen {
Utils::Version version();
}
#endif
<commit_msg>Wrote new version in C++ co... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>/*
* Copyright 2012 Scott MacDonald
*
* 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 la... |
<commit_before>#include "concurrency/semaphore.hpp"
#include "arch/runtime/runtime.hpp"
#include "concurrency/cond_var.hpp"
void semaphore_t::lock(semaphore_available_callback_t *cb, int count) {
rassert(!in_callback);
rassert(count <= capacity || capacity == SEMAPHORE_NO_LIMIT);
if (current + count <= c... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>//******************************************************************************
// AttrList.C
//
// Implementation of AttrList classes and AttrListList classes.
//
//******************************************************************************
# include <std.h>
# include <ctype.h>
# include <assert.h>... |
<commit_before>#include "BuildGraph.hpp"
#include "Graph.hpp"
#include "PropertyMap.hpp"
#include "error.hpp"
#include <boost/assert.hpp>
#include <unordered_map>
#include <map>
namespace configure {
struct BuildGraph::Impl
{
public:
typedef boost::property_map<Graph, boost::vertex_index_t>::type IndexMap;
t... |
<commit_before>//
// Copyright (c) 2014, 2015, 2016, 2017, 2018 CNRS
// Authors: Florent Lamiraux, Joseph Mirabel, Diane Bury
//
// This file is part of hpp-core
// hpp-core 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... |
<commit_before>/*
*
* Copyright 2015 gRPC authors.
*
* 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 applicab... |
<commit_before>/*
* Copyright (c) 2004-2006 The Regents of The University of Michigan
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retain the above c... |
<commit_before>// Copyright 2016-2020 Francesco Biscani (bluescarni@gmail.com)
//
// This file is part of the mp++ library.
//
// 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/MP... |
<commit_before>/*
* Copyright (C) 2004 Georgy Yunaev tim@krasnogorsk.ru
* Copyright (C) 2008 J-P Nurmi jpnurmi@gmail.com
*
* This example is free, and not covered by LGPL license. There is no
* restriction applied to their modification, redistribution, using and so on.
* You can study them, modify them, use them ... |
<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>/**
* @file Motion.cpp
*
* @author <a href="mailto:xu@informatik.hu-berlin.de">Xu, Yuan</a>
*
*/
#include "Motion.h"
#include <glib.h>
#include "MorphologyProcessor/ForwardKinematics.h"
#include "CameraMatrixCalculator/CameraMatrixCalculator.h"
Motion::Motion():theBlackBoard(MotionBlackBoard::g... |
<commit_before>// $Id$
//
// Test Suite for geos::io::ByteOrderValues
// TUT
#include <tut.h>
// GEOS
#include <geos/io/ByteOrderValues.h>
#include <geos/platform.h> // for int64
#include <sstream>
#include <memory>
namespace tut
{
//
// Test Group
//
// dummy data, not used
struct test_byteordervalues_data
... |
<commit_before>/* httpreply.cpp
Copyright (C) 2003-2005 Tommi Maekitalo
This file is part of tntnet.
Tntnet 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)... |
<commit_before>#include "LevelDirector.h"
#define SUCCESS 1
#define FAIL 0
LevelDirector::LevelDirector(){}
LevelDirector::~LevelDirector(){}
int LevelDirector::Shutdown()
{
return SUCCESS;
}
int LevelDirector::Initialize()
{
// Reset values
this->m_states.clear();
// temp reset values
this->m_currentState = NO... |
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/extensions/common/xwalk_external_extension.h"
#include <string>
#include <vector>
#include "base/files/file_path.h"
#incl... |
<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>/*
SWARM
Copyright (C) 2012-2017 Torbjorn Rognes and Frederic Mahe
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 3 of the
License, or (... |
<commit_before>// vim: set sts=2 sw=2 et:
// encoding: utf-8
//
// Copyleft 2011 RIME Developers
// License: GPLv3
//
// 2011-12-10 GONG Chen <chen.sst@gmail.com>
//
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid/uuid.hpp>
#include <... |
<commit_before>/******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>/* get_struct_from_inchi.cc
* Copyright 2014 Cubane Canada, Inc.
*
* Released under the MIT license -- see MIT-LICENSE for details
*/
#include <nan.h>
#include "./using_v8.h"
#include "./get_struct_from_inchi_data.h"
#include "./get_struct_from_inchi_worker.h"
#include "./inchi_stereo.h"
void a... |
<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 "GrDrawingManager.h"
#include "GrContext.h"
#include "GrDrawContext.h"
#include "GrDrawTarget.h"
#include "GrPathRenderingDrawContext.h"
#include "GrR... |
<commit_before>#include "../../base/SRC_FIRST.hpp"
#include "../../testing/testing.hpp"
#include "../../platform/platform.hpp"
#include "../../map/feature_vec_model.hpp"
#include "../../indexer/data_header.hpp"
#include "../../indexer/scales.hpp"
#include "../../indexer/feature_visibility.hpp"
#include "../../index... |
<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 "base/base_paths.h"
#include "base/file_util.h"
#include "media/base/yuv_convert.h"
#include "media/base/yuv_row.h"
#include "... |
<commit_before>#include<bits/stdc++.h>
#define token std::pair<std::string, std::string> // token type, token content
// The sg compiler
// Pascal Sommer, November 2016
// requires GCC >= 4.4
// some utility functions
bool is_whitespace(char c){
return isspace(c);
}
bool is_not_newline(char c){
return (... |
<commit_before>/*
* Copyright 2006-2012 Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Philippe Houdoin <philippe.houdoin@free.fr>
* Alexander von Gluck IV <kallisti5@unixzen.com>
*/
#include <driver_settings.h>
#include <image.h>
#include <kernel/image.h>
... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/include/arch/pirformat.H $ ... |
<commit_before>#include "itkMetaDataDictionary.h"
#include "itkMetaDataObject.h"
#include <iostream>
int itkMetaDataDictionaryTest(int argc, char * argv[])
{
//This is a demo program to show how to put data into a dictionary.
itk::MetaDataDictionary MyDictionary;
//------------------------Testing of native type... |
<commit_before>#include "catch.hpp"
#include "GaussianSmoothingFilter.hpp"
#include "DeviceManager.hpp"
namespace fast {
TEST_CASE("No input given to GaussianSmoothingFilter throws exception", "[fast][GaussianSmoothingFilter]") {
GaussianSmoothingFilter::pointer filter = GaussianSmoothingFilter::New();
CHECK_... |
<commit_before>/*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "istream_zero.hxx"
#include "istream_internal.hxx"
#include "pool.hxx"
#include "util/Cast.hxx"
#include <limits.h>
struct ZeroIstream {
struct istream stream;
};
static inline ZeroIstream *
istream_to_zero(struct istream *istream)
{
r... |
<commit_before>// Copyright (c) 2013 Joshua Beitler, Mirus contributors
// 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 ... |
<commit_before>// from lib/THC/THCTensorMasked.cu:
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/cl.h>
#else
#include <CL/cl.h>
#endif
#include <boost/compute/core.hpp>
#include <boost/compute/iterator/buffer_iterator.hpp>
#include <boost/compute/algorithm/reverse.hpp>
#include <boost/compute/algorithm... |
<commit_before>/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2011 Sergey Lisitsyn
* Copyrigh... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "fnord-ms... |
<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 (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>/**
* \ file GainMaxColoredExpanderFilter.cpp
*/
#include <ATK/Dynamic/GainMaxColoredExpanderFilter.h>
#include <ATK/Core/InPointerFilter.h>
#include <ATK/Core/OutPointerFilter.h>
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_NO_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/math/constan... |
<commit_before>#include "Chunk.h"
#include <iostream>
/*
Chunk::Chunk(ChunkMap* parent, const u32 cx, const u32 cz)
: parent(parent),
cx(cx),
cz(cz)
{
//ctor
}
Chunk::Chunk()
: parent(0),
cx(0),
cz(0) {
std::cout << "hello" << std::endl;
}
*/
Chunk::Chunk() {
}
void Chunk::printSomething() {
std::cout << "someth... |
<commit_before>/*
This file is part of the clazy static checker.
Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
Author: Sérgio Martins <sergio.martins@kdab.com>
Copyright (C) 2015-2016 Sergio Martins <smartins@kde.org>
This library is free software; you can redistribu... |
<commit_before>/**
* Notes.CC
*
* MIT/X11 License
* Copyright (c) 2014 Qball Cow <qball@gmpclient.org>
*
* 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, includin... |
<commit_before>#include "Graph.h"
#include <algorithm>
#include <iostream>
#include <numeric>
#include <set>
#include <vector>
#include <map>
#include <functional>
/////////////////////////////////////////////////////
// Node of Graph
/////////////////////////////////////////////////////
void GraphNode::removeNeig... |
<commit_before>#include "Guess.h"
Guess::Guess()
{
}
Guess::Guess(uint32_t uiPerson,
uint32_t uiPlace,
uint32_t uiWeapon,
const std::string &sGuesserName,
const std::string &sStopper)
:m_uiPerson(uiPerson)
,m_uiPlace(uiPlace)
,m_uiWeapon(uiWeapon)
,m_sGuesserName(sGuesserName)
,m_sStopper(sStoppe... |
<commit_before>#include "Lexer.hpp"
#define TAB_LENGTH 2
//utility func to parse escaped chars, e.g. 'n' -> '\n'
char getEscapedChar(char ident);
struct CodeStream
{
CodeStream(string& srcIn, vector<Token*>& toksIn) : src(srcIn), toks(toksIn)
{
iter = 0;
//no error can happen with iter at 0,
//so pre... |
<commit_before>#include "MFont.h"
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_GLYPH_H
char* readFile(const char* path,const char* mode,long& size)
{
FILE* f;
fopen_s(&f,path,mode);
fseek(f,0,SEEK_END);
size = ftell(f);
fseek(f,0,SEEK_SET);
char* data=new char[size];
... |
<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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ids.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2006-09-16 23:57:39 $
*
* The Contents of this file are made avai... |
<commit_before>#include "Scene.h"
#include "Mesh.h"
#include "Sound.h"
#include "Light.h"
#include "Material.h"
#include "kit/meta/meta.h"
using namespace std;
Scene :: Scene(const string& fn, Cache<Resource, std::string>* cache):
//Resource(fn),
m_pConfig(make_shared<Meta>(fn)),
m_Filename(fn),
m_pCac... |
<commit_before>#pragma once
#include <stdlib.h>
template<typename T>
class Stack {
public:
// Create empty stack
Stack();
// insert new item to stack
void insert(const T& item) {};
// remove and return most recently added item
T pop() {};
// check if stack is empty... |
<commit_before>// Copyright 2015 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>// ===================================================================
/**
* Implements robust overlap methods for convex bounding volumes.
* Also includes parser for processed trajectory files.
*/
// ===================================================================
/*
* Utils.cpp: Version 1.0
* C... |
<commit_before>/*
* Write.cpp
*
* Created on: Nov 13, 2015
* Author: Remo Diethelm
* Institute: ETH Zurich, Autonomous Systems Lab
*/
#include "point_cloud_io/Write.hpp"
//PCL
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/io/ply_io.h>
#include <pcl/io/pcd_io.h>
#include <pcl_co... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg, Daniel Wallin
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... |
<commit_before>#include "entitysystem.h"
#include "systems/movementsystem.h"
#include "systems/updatesystem.h"
#include "systems/chatsystem.h"
#include "systems/inventorysystem.h"
#include "systems/partysystem.h"
#include "systems/mapsystem.h"
#include "systems/luasystem.h"
#include "connection.h"
#include "cmapclient.... |
<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>#include "stdafx.h"
#include <wininet.h>
#include "IEBrowserEngine.h"
#include "common/RhoConf.h"
#include "MainWindow.h"
#if defined(_WIN32_WCE)
#include <webvw.h>
#endif
extern "C" int rho_wm_impl_CheckLicense();
CIEBrowserEngine::CIEBrowserEngine(HWND hParentWnd, HINSTANCE hInstance) :
m_spIWeb... |
<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
* ... |
<commit_before>/*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implie... |
<commit_before>// Copyright 2019, Intel Corporation
#include "mlir/ADT/TypeSwitch.h"
#include "mlir/Dialect/AffineOps/AffineOps.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/IR/AffineExprVisitor.h"
#include "mlir/Support/DebugStringHelper.h"
#include "llvm/ADT/Optional.h"
#include "pmlc/dialect/eltwi... |
<commit_before>/*
* Copyright (C) 2010 The Android Open Source Project
*
* 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 ... |
<commit_before>#ifndef CWRAPPER_HPP_INCLUDED
#define CWRAPPER_HPP_INCLUDED
#define HAS_STATIC_MEMBER_DETECTOR(member) \
template<typename T> \
class HAS_STATIC_MEMBER_DETECTOR_CLASS_ ## member \
{ ... |
<commit_before>#ifndef CWRAPPER_HPP_INCLUDED
#define CWRAPPER_HPP_INCLUDED
#define HAS_STATIC_MEMBER_DETECTOR(member) \
template<typename T> \
class HAS_STATIC_MEMBER_DETECTOR_CLASS_ ## member \
{ ... |
<commit_before>// Copyright (c) 2012-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "memusage.h"
#include "random.h"
#include <cassert>
/**
* calculate number of ... |
<commit_before>// Copyright (c) 2012-2014 The Bitcoin developers
// Copyright (c) 2015-2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "random.h"
#include <assert.h>
/**
*... |
<commit_before>/*
* Copyright (C) 2010 Telmo Menezes.
* telmo@telmomenezes.com
*/
#include "drmap.h"
#include "utils.h"
#include "emd_hat_signatures_interface.hpp"
#include <stdlib.h>
#include <strings.h>
#include <stdio.h>
namespace syn
{
DRMap::DRMap(unsigned int bin_number, double min_val_hor, double max_va... |
<commit_before>#include "QDMEwald.hpp"
#include <iostream>
#include <vector>
int main() {
Kokkos::initialize();
{
// testing system size
constexpr int cry_l = 16;
constexpr int N = cry_l * cry_l * cry_l;
constexpr double l = (double)cry_l / 2.0;
// testing particle positions
std::vector<... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>#include"all_defines.hpp"
#include"objects.hpp"
#include"heaps.hpp"
#include"types.hpp"
#include<cstdlib>
#include<stdint.h>
/*-----------------------------------------------------------------------------
Semispaces
-----------------------------------------------------------------------------*/
Semisp... |
<commit_before>/*
Copyright 2016 Nervana Systems 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 or agre... |
<commit_before>#ifndef RETRIEVER_CACHE_HPP
#define RETRIEVER_CACHE_HPP
#include "list.hpp"
#include <memory>
#include <shared_mutex>
#include <unordered_map>
template <typename K, typename V> class CacheItem : public Item {
public:
CacheItem(K k, V v) : key(k), value(v){};
K key;
V value;
};
template <typename... |
<commit_before>// Copyright (c) 2007-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2011-2017 The Litecoin Core developers
// Copyright (c) 2013-2018 The Goldcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://... |
<commit_before>/*
* Tyrion
* Copyright 2010, Silas Sewell
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditi... |
<commit_before>#ifndef client_hh_INCLUDED
#define client_hh_INCLUDED
#include "display_buffer.hh"
#include "env_vars.hh"
#include "input_handler.hh"
#include "safe_ptr.hh"
#include "utils.hh"
#include "option_manager.hh"
#include "enum.hh"
namespace Kakoune
{
class Window;
class UserInterface;
class String;
struct K... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>// Copyright (c) 2012-2015 The Bitcoin Core developers
// Copyright (c) 2015-2017 The Bitcoin Unlimited developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "memusage.h"
#include... |
<commit_before>//
// This file is part of the Marble Desktop 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 2008-2009 Patrick Spendrin <ps_ml@gmx.de>
//
#include "GeoRenderer... |
<commit_before>/*
This file is part of the ORK library.
Full copyright and license terms can be found in the LICENSE.txt file.
*/
#include"ork/color.hpp"
#include"ork/distribution.hpp"
#if ORK_USE_GLM
#include"glm/vec3.hpp"
namespace ork {
float to_hex_space(const color4&c, const float max, const float chroma) {
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.