text stringlengths 54 60.6k |
|---|
<commit_before>#include "entity_description.h"
#include "entity_system/entity.h"
#include "../components/name_component.h"
#include "../components/gun_component.h"
#include "../components/damage_component.h"
#include "../components/container_component.h"
#include "../components/item_component.h"
#include "../detail/inv... |
<commit_before>// Copyright (c) 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 l... |
<commit_before>//!
//! @file PyDockWidget.cpp
//! @author Björn Eriksson <bjorn.eriksson@liu.se>
//! @date 2010-09-21
//!
//! @brief Contains a derived QDockWidget class that contain a Python console
//!
//$Id$
#include "PyDockWidget.h"
#include "PythonQt.h"
#include "PythonQt_QtAll.h"
#include "gui/PythonQtScrip... |
<commit_before>/*
Copyright (c) 2019-2022, Hossein Moein
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 conditions... |
<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: refvaluecomponent.hxx,v $
* $Rev... |
<commit_before>/**
* SDL widgets example for Guichan.
*
* @author Kevin Lynx
* @author Olof Naessn
*/
// Include all necessary headers.
#include <guichan.hpp>
#include <guichan/hge.hpp>
#include <hge.h>
/*
* Common stuff we need
*/
HGE *hge = NULL;
bool running = false;
/*
* Guichan HGE stuff we need
*/
HG... |
<commit_before>#include <algorithm>
#include <cassert>
#include <fstream>
#include <iostream>
#include <sys/time.h>
const int NX=1024, NY= 1024, N_TIME=1024;
const int X_MASK = NX-1, Y_MASK = NY-1;
const int NS=1;
const int NT=64;
const int NG=NT/NS/2; // 32
const int NTO=NX/NT; // 16
const int NF=NX/NT*NG; // 16*32... |
<commit_before>#include <iostream>
#include <sstream>
#include <Jatta.h>
using namespace Jatta;
/** @brief Loads a shader from a vertex file and a fragment file.
* @param vertexFile The file name of the vertex shader.
* @param fragmentFile The file name of the fragment shader.
* @return The compile program.
*/
... |
<commit_before>//===- lib/ReaderWriter/PECOFF/ReaderImportHeader.cpp ---------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>//===- TraceValues.cpp - Value Tracing for debugging -------------*- C++ -*--=//
//
// Support for inserting LLVM code to print values at basic block and function
// exits.
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Instrumentation.h"
#i... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#include "SkPathMeasure.h"
static void test_small_segment3(skiatest::Reporter* reporter) {
#ifdef SK_SCALAR_IS_FLOAT
SkPath path;
con... |
<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 "registerAddr.hpp"
#include "Gpu.hpp"
#include "OpenGLWindow.hpp"
#include "Memory.hpp"
#include "GpuControl.hpp"
Gpu::Gpu(Memory *memory) :
_clock(0),
_window(nullptr),
_memory(memory)
{
}
Gpu::~Gpu()
{
}
#define TILES0_ADDR 0x8000 // Go to 0x8FFF / 0->255
#define TILES1_ADDR 0x8800 ... |
<commit_before>/*************************************************************************
*
* $RCSfile: loaddispatcher.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2004-01-28 14:29:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/*
* nbody.cc
*/
#include <sys/types.h>
#include <sys/time.h>
#include "def.h"
void simulate_a_step(particle ** particles, int n_particles, t_real dt)
{
int t0, t1, t2, t3, t4;
space * tree;
t0 = current_real_time_milli();
#if BUILD_TREE_PARALLEL
// tree = build_tree(particles, n_particles... |
<commit_before>/* ****************************************************************
*
* Copyright 2018 Samsung Electronics 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 Licen... |
<commit_before>#include "toml.hpp"
#include <iostream>
#include <iomanip>
struct json_serializer
{
void operator()(toml::boolean v)
{
std::cout << "{\"type\":\"bool\",\"value\":\"" << toml::value(v) << "\"}";
return ;
}
void operator()(toml::integer v)
{
std::cout << "{\"typ... |
<commit_before>// Scintilla source code edit control
/** @file LexDMIS.cxx
** Lexer for DMIS.
**/
// Copyright 1998-2005 by Neil Hodgson <neilh@scintilla.org>
// Copyright 2013-2014 by Andreas Tscharner <andy@vis.ethz.ch>
// The License.txt file describes the conditions under which this software may be distributed.
... |
<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>// 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 "gfx/canvas_skia.h"
#include <cairo/cairo.h>
#include <gtk/gtk.h>
#include <pango/pango.h>
#include <pango/pangocairo.h>
#in... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/*
** Author(s):
** - Herve Cuche <hcuche@aldebaran-robotics.com>
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#include <iostream>
#include <cstring>
#include <map>
#include <stdint.h>
#include <event2/util.h>
#include <event2/event.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#incl... |
<commit_before>#include "JsonFile.hpp"
#include "Common/toJson.hpp"
using json = nlohmann::json;
namespace But
{
namespace Log
{
namespace Destination
{
void JsonFile::toStreamFormat(std::ostream& os, Backend::Entry const& entry)
{
auto tab = Common::toJson(entry);
os << tab << "\n";
}
void JsonFile::toStreamF... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robert Bosch LLC.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
<commit_before>/***************************************
CountMatrix_main.cpp
2013 - Kyle Hernandez
Juenger Laboratory
Section of Integrative Biology
The University of Texas at Austin
kmhernan84@gmail.com
Unlicensed, <http://unlicense.org/>
***************************************/
#include "CountMatrix.h... |
<commit_before>#include "ConfusionMatrix.hpp"
/**
*
*/
ConfusionMatrix::ConfusionMatrix() {
a_ = 0;
b_ = 0;
c_ = 0;
d_ = 0;
}
/**
*
*/
ConfusionMatrix::~ConfusionMatrix() {}
/**
* each ruby hash are pairs of {read_id => clust_id}
*/
ConfusionMatrix::ConfusionMatrix(Rice::Hash c1_hsh, Rice::Hash... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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
//
// ... |
<commit_before>#include <iostream>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <time.h>
#include <fstream>
#include <stdlib.h>
#include <string.h>
#include <sys/times.h>
using namespace std;
int main(int argc, char ** argv) {
if (argc < 3)
retur... |
<commit_before>#include "Intelligence.h"
#include <iostream>
#include <algorithm>
using namespace std;
Intelligence::Intelligence() {
state_ = new BoardState();
}
Intelligence::Intelligence(BoardState * state) {
state_ = state;
}
Intelligence::~Intelligence() {
delete state_;
}
void Intelligence::apply_move... |
<commit_before>#ifndef GENERIC_ANYFUNCTION_HPP
# define GENERIC_ANYFUNCTION_HPP
# pragma once
#include <cassert>
#include <cstdint>
#include <functional>
#include "many.hpp"
#include "some.hpp"
namespace generic
{
namespace
{
template <typename>
struct signature
{
};
//
template <typename>
struct class_ref;
/... |
<commit_before>#include "Simulation/BFER/Standard/BFER_std.hpp"
#include <thread>
#include <string>
#include <iostream>
#include "Factory/Module/Monitor/BFER/Monitor_BFER.hpp"
#include "Factory/Module/Interleaver/Interleaver.hpp"
#include "BFER_std.hpp"
using namespace aff3ct;
using namespace aff3ct::launcher;
tem... |
<commit_before>/* Main function definition for vecomp program */
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include "../headers/ErrorReporter.hpp"
#include "../headers/FileReader.hpp"
#include "../headers/Parser.hpp"
#include "../headers/main.hpp"
using namespace std;
int main(int... |
<commit_before>#include "stdsneezy.h"
void TBeing::doFish(const char *direction){
TRoom *rp;
roomDirData *exitp;
if(!(exitp = exitDir(getDirFromChar(direction))) || !direction){
rp=roomp;
} else {
if(!exitp->to_room || !(rp = real_roomp(exitp->to_room))){
rp=roomp;
}
}
if(rp->isUn... |
<commit_before>
#include "set.h"
#include <gtest/gtest.h>
using std::string;
TEST(SetTests, EmptySetToString) {
Set x;
EXPECT_EQ(string("{}"), x.toString());
}
TEST(SetTests, EmptySetContainsNothing) {
Set x;
EXPECT_EQ(false, x.contains(3));
}
TEST(SetTests, OneElementSet) {
Set x({5});
// Canonical repr... |
<commit_before>// illarionserver - server for the game Illarion
// Copyright 2011 Illarion e.V.
//
// This file is part of illarionserver.
//
// illarionserver 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 Softwar... |
<commit_before><commit_msg>UnsteadyLinearAdvectionDiffusion<commit_after><|endoftext|> |
<commit_before>// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser Genera... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// File: ParseUtils.hpp
//
// For more information, please see: http://www.nektar.info/
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aerona... |
<commit_before>#include <git2.h>
#include <uv.h>
#include <set>
#include <vector>
#include <map>
#include <algorithm>
#include "../include/lock_master.h"
// LockMaster implementation details
// implemented in a separate class to keep LockMaster opaque
class LockMasterImpl {
// STATIC variables / methods
// A map... |
<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 "config.h"
#include "core/inspector/inspector_backend_mojo.h"
#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#inc... |
<commit_before>#include "plan_request.hpp"
namespace planning {
void fill_obstacles(const PlanRequest& in, rj_geometry::ShapeSet* out_static,
std::vector<DynamicObstacle>* out_dynamic, bool avoid_ball,
Trajectory* out_ball_trajectory) {
out_static->clear();
out_static->... |
<commit_before>/*
* Copyright 2012 Michael Chen <omxcodec@gmail.com>
*
* 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 re... |
<commit_before>/* filter_streams.cc
Jeremy Barnes, 17 March 2005
Copyright (c) 2005 Jeremy Barnes. All rights reserved.
This file is part of "Jeremy's Machine Learning Library", copyright (c)
1999-2005 Jeremy Barnes.
This program is available under the GNU General Public License, the terms
of... |
<commit_before>#define CATCH_CONFIG_MAIN
#include "catch/catch.hpp"
#include "tangram.h"
#include "labels/label.h"
#include "labels/textLabel.h"
#include "glm/mat4x4.hpp"
#include "glm/gtc/matrix_transform.hpp"
#define EPSILON 0.00001
using namespace Tangram;
glm::vec2 screenSize(500.f, 500.f);
TextBuffer dummy(null... |
<commit_before>/*
* Copyright (c) 2016 Patrick P. Frey
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "testUtils.hpp"
#include "strus/analyzer/patte... |
<commit_before>// ------------------------------------------------------------------------
// Copyright (C) 2009 Kai Vehmanen
//
// 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... |
<commit_before>
#include <cstdio>
#include <iostream>
#include "utility.hpp"
// Includes common necessary includes for development using depthai library
#include "depthai/depthai.hpp"
int main() {
using namespace std;
using namespace std::chrono;
// Create pipeline
dai::Pipeline pipeline;
// De... |
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI Inc. 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
... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2011 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/* Copyright (c) 2018 PaddlePaddle 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 applic... |
<commit_before>//===--- Linker.cpp -------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#include <jni.h>
#include <android/log.h>
#include <android/bitmap.h>
#include <android/native_window_jni.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include "hello.h"
#include "HalideRuntime.h"
#include "HalideRuntimeOpenCL.h"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG... |
<commit_before>#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <exception>
#include <sys/time.h>
#include "modules/htmTree.h"
#include "modules/kdTree.h"
#include "misc.h"
#include ... |
<commit_before>#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <exception>
#include <sys/time.h>
#include "modules/htmTree.h"
#include "modules/kdTree.h"
#include "misc.h"
#include ... |
<commit_before>#include <map>
#include <iostream>
#include "globals.hh"
#include "normalise.hh"
#include "shared.hh"
typedef ATerm Expr;
typedef map<ATerm, ATerm> NormalForms;
typedef map<FSId, Hash> PkgHashes;
struct EvalState
{
Strings searchDirs;
NormalForms normalForms;
PkgHashes pkgHashes; /* nor... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: propertyinfo.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: vg $ $Date: 2006-03-14 11:30:56 $
*
* The Contents of this file are m... |
<commit_before>#include <iostream>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <vector>
#include "pin.H"
#include "AnalysisProcessor.h"
#include "IRBuilder.h"
#include "IRBuilderFactory.h"
#include "Inst.h"
#include "PINContextHandler.h"
#include "ProcessingPyConf.h"
#include "Trigger.h"
#inclu... |
<commit_before>
/**
* This file is part of the boostcache package.
*
* (c) Azat Khuzhin <a3at.mail@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#include "commands.h"
#include "util/log.h"
#include <boost/format.hpp>... |
<commit_before><commit_msg>Minor improvement to Vulkan robustness.<commit_after><|endoftext|> |
<commit_before>#include <stdio.h>
#include <string.h>
#include <iostream>
#include <signal.h>
#include "ArgParser.h"
#include "TcpSocket.h"
#include "TcpClient.h"
#include "Thread.h"
#include "Queue.h"
#include "ChatMsg.h"
#include "ChatMsgPacket.h"
#include "UpdateRequestPacket.h"
#include "UpdateResponsePacket.h"
bo... |
<commit_before>#include <cassert>
#include <exception>
#include <map>
#include "CardinalDirection.h"
#include "CardinalDirectionName.h"
// Wikipedia says the intermediate directions don't have a space, so that's the
// convention I'll use here.
const std::map<CardinalDirectionName, std::string> CardinalDir... |
<commit_before>#include "callbackHandler.h"
#include <maya/MMessage.h>
#include <maya/MUuid.h>
#include <maya/MFnDependencyNode.h>
#include <maya/MTimerMessage.h>
#include <maya/MDagMessage.h>
#include <maya/MDGMessage.h>
#include "hackprint.h"
#include "mayaUtils.h"
#include <ctime>
#include <string>
//////////////... |
<commit_before>#include <GLFW/glfw3.h>
#include <cstring>
#include <stdlib.h> // srand, rand
#include <thread> // std::this_thread::sleep_for
#include <chrono> // std::chrono::seconds
#include "shape.h"
using namespace std;
void icon::draw()
{
drawIcon(x0, y0, r, t, 1, 0, 0, 0, 0, 1, xp... |
<commit_before>// Implementation file for String functions, include this file in string.h
// DO NOT INCLUDE/COMPILE THIS FILE SEPARATELY.
#ifdef CODE_STRING_H
/*******************************
* 1. Constructors and operator =
*******************************/
// empty constructor.
String::String() {
_len = 0;
_data =... |
<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>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, ELM Library Project
// 3-clause BSD License
//
//M*/
#include "elm/layers/layerfactory.h"
#include "gtest/gtest.h"
#include "elm/core/exception.h"
#... |
<commit_before>#include "SiteInfo.h"
#include <unistd.h>
std::string get_pwd()
{
char pwd_char[512];
getcwd(pwd_char, 512);
std::string pwd = pwd_char;
return pwd;
}
void unrecognisedCommand(const std::string from, const std::string cmd)
{
std::cout << "error: " << from << " does not recognise th... |
<commit_before>/*
* Runtime CPU detection
* (C) 2009-2010,2013 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/cpuid.h>
#include <botan/types.h>
#include <botan/get_byte.h>
#include <botan/mem_ops.h>
#include <ostream>
#if defined(BOTAN_TARGET_CPU_IS_PPC_FAMILY)
... |
<commit_before>/*
This file is part of KAddressBook.
Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
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 Lice... |
<commit_before>
<commit_msg>Delete 1.cpp<commit_after><|endoftext|> |
<commit_before>/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include <stdio.h>
#include <cmath>
#include <cblas.h>
#include <random>
#include <lapacke.h>
const double PI = 3.141592... |
<commit_before>#include "disassembler.h"
#include "util.h"
#include "symtab.h"
#include <vector>
#include <cctype>
using namespace std;
enum ByteTypeGuess {
UNINITIALIZED,
UNKNOWN,
CHAR_DATA,
UNINITIALIZED_CHAR_DATA,
WORD_DATA,
UNINITIALIZED_WORD_DATA,
CODE,
};
struct program {
ByteTypeGuess byte_type_guess... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>/**
* Clever programming language
* Copyright (c) 2011-2012 Clever Team
*
* 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 limita... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to ... |
<commit_before>/*
sound_pool_item.cpp: To be used by the sound_pool.
* By 2MB Solutions: https//2mb.solutions
* Released under the MIT license. See license.txt for details.
* Billy: https://stormdragon.tk/
* Michael: https://michaeltaboada.me
* */
#include "sound_pool_item.h"
sound_pool_item::sound_pool_item(voi... |
<commit_before>#include "Layer.hpp"
#include "ClipperUtils.hpp"
#include "Print.hpp"
#include "Fill/Fill.hpp"
#include "ShortestPath.hpp"
#include "SVG.hpp"
#include <boost/log/trivial.hpp>
namespace Slic3r {
Layer::~Layer()
{
this->lower_layer = this->upper_layer = nullptr;
for (LayerRegion *region : m_regi... |
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit)
* Copyright (C) 2005 Artem Pavlenko
*
* Mapnik 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 an... |
<commit_before>// HeaterMeter Copyright 2011 Bryan Mayland <bmayland@capnbry.net>
#include "strings.h"
#include "rfmanager.h"
#include "hmcore.h"
void RFSource::setId(unsigned char id)
{
if (_id == id) return;
_id = id;
Value = 0;
}
void RFSource::update(rf12_packet_t *pkt)
{
_lastReceive = millis();
uns... |
<commit_before>/*
kopetedbusinterfaceprivate.h - Kopete D-Bus interface private class
Copyright (c) 2008 by Dennis Nienhüser <earthwings@gentoo.org>
Kopete (c) 2002-2008 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* ... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/debug_util.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#inclu... |
<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 "build/build_config.h"
#include "base/debug_util.h"
#if defined(OS_LINUX)
#include <unistd.h>
#include <execinfo.h>
#end... |
<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 "dbwrapper.h"
#include "util.h"
#include "random.h"
#include <boost/filesystem.hpp>
#include <leve... |
<commit_before>#ifndef BUW_COMPOSITE_HPP
#define BUW_COMPOSITE_HPP
#include <shape.hpp>
#include <memory>
#include <map>
#include <sphere.hpp>
#include <box.hpp>
#include <triangle.hpp>
class Composite : public Shape {
public:
Composite();
Composite(std::string const& name);
~Composition();
void add(std::sha... |
<commit_before>/*
threadedjobmixin.cpp
This file is part of qgpgme, the Qt API binding for gpgme
Copyright (c) 2008 Klarälvdalens Datakonsult AB
Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik
Software engineering by Intevation GmbH
QGpgME is free software; you can re... |
<commit_before>//===--- ExecuteCompilerInvocation.cpp ------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* Software License Agreement (BSD License)
*
* Copyright (c) 2014, Robotiq, 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 ... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2008 Sacha Schutz <istdasklar@free.fr>
* Copyright (C) 2008 Olivier Gueudelot <gueudelotolive@gmail.com>
* Copyright (C) 2008 Charles Huet <packadal@gm... |
<commit_before>#include "detection.h"
#define OBJECT_ITEM_LOCATION_ID "locationId"
#define OBJECT_ITEM_VENDOR_ID "vendorId"
#define OBJECT_ITEM_PRODUCT_ID "productId"
#define OBJECT_ITEM_DEVICE_NAME "deviceName"
#define OBJECT_ITEM_MANUFACTURER "manufacturer"
#define OBJECT_ITEM_SERIAL_NUMBER "serialNumber"
#define O... |
<commit_before>/*
* Copyright (c) 2001-2004 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>/******************************************************************************
This source file is part of the Avogadro project.
Copyright 2015 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, so... |
<commit_before>#include <algorithm>
#include <iostream>
#include <fstream>
#include <cstring>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <pwd.h>
#include <dirent.h>
#include "dinit-util.h"
#incl... |
<commit_before>/*
* Eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: include/eos/fitting/linear_shape_fitting.hpp
*
* Copyright 2014, 2015 Patrik Huber
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... |
<commit_before>// The MIT License (MIT)
//
// Copyright (c) 2014 Siyuan Ren (netheril96@gmail.com)
//
// 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... |
<commit_before>//ibnu.yahya@toroo.org
#include "ign.h"
#include "fs.h"
#include "cmath"
#include <QtCore/QVariant>
#include <qjson/parser.h>
#include <qjson/parserrunnable.h>
#include <qjson/serializer.h>
#include <qjson/serializerrunnable.h>
#include <qjson/qjson_export.h>
#include <qjson/qobjecthelper.h>
#include <i... |
<commit_before>// Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include <string>
namespace Pomdog {
struct GamepadCapabilities final {
std::string Name;
int ButtonCount = 0;
int ThumbStickCount = 0;
bool IsConnected = false;
bool HasLeftXThumbStick = fals... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.