text
stringlengths
54
60.6k
<commit_before>#include <kernel/userver.hh> #include <object/cxx-conversions.hh> #include <object/global.hh> #include <object/symbols.hh> #include <runner/raise.hh> #include <runner/runner.hh> #include <runner/sneaker.hh> #include <sched/scheduler.hh> static const char * not_loaded_yet = ("\n(this is typical of lookup...
<commit_before>// $Id$ // // Copyright (C) 2008 Greg Landrum // All Rights Reserved // #include <RDGeneral/Invariant.h> #include <GraphMol/RDKitBase.h> #include <GraphMol/SmilesParse/SmilesParse.h> #include <GraphMol/SmilesParse/SmilesWrite.h> #include <GraphMol/Substruct/SubstructMatch.h> #include <GraphMol/Depict...
<commit_before>#include <ESP8266WiFi.h> #include <WiFiClientSecure.h> #include <Arduino.h> #include <string.h> #include <sapiArduino.h> #include <EEPROM.h> static String createCred(const char* id, const char* pass); static String getJsessionid(String line); static String getValidationkey(String line); static int getS...
<commit_before>/* * Copyright (C) Shunya KIMURA <brmtrain@gmail.com> * Use and distribution of this program is licensed under the * BSD license. See the COPYING file for full text. * * Original version TinySegmenter was written by Taku Kudo <taku@chasen.org> * The license is below. * TinySegmenter 0.1 -- Super...
<commit_before>/*************************************************************************** ** ** ** Copyright (C) 2009-2010 Nokia Corporation. ** ** ...
<commit_before>/*************************************************************************** * Copyright (C) 2003 by Unai Garro * * ugarro@users.sourceforge.net * * ...
<commit_before>#include "game.hpp" #include "component_drawable.hpp" #include "component_position.hpp" #include "component_player.hpp" #include "entityx/entityx.h" #include <glm/vec2.hpp> #include <glm/glm.hpp> #include <glm/gtx/polar_coordinates.hpp> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <sstream...
<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>/* * * Copyright 2014 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker 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, ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>#include "tests.h" #include <QVector> #include <iostream> #include "callout_test.h" #include "clonecopy_test.h" #include "readwrite_test.h" #include "reverse_test.h" #include "changerandomoperation_test.h" #include "swaprandomvertexins_test.h" #include "random_remove_vertex_test.h" #include "random_add_v...
<commit_before>// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "Lic...
<commit_before>#ifndef PVLOG_HPP_ #define PVLOG_HPP_ #include <cstdarg> #include <iostream> #include <libgen.h> #include <string> #include <type_traits> #ifdef NDEBUG // Not DEBUG build #ifdef PV_DEBUG_OUTPUT // Release build, but logDebug output was requested #define _PV_DEBUG_OUTPUT 1 #else // Release build, no deb...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2009, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
<commit_before>#include <unistd.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/mman.h> #include <sys/select.h> #include <linux/limits.h> #include <linux/types.h> /* for videodev2.h */ #include <linux/videodev2.h> #include <iostream> #include <string> ...
<commit_before>/////////////// // Compilers // /////////////// #if defined(_MSC_VER) #define COMPILER_MSVC 1 #endif #if defined(__GNUC__) #define COMPILER_GCC 1 #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) #endif #if defined(__clang__) #define COMPILER_CLANG 1 #...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 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 <init.h> #include <interfaces/chain.h> #include <net.h> #...
<commit_before>/** * @file typedef.hpp * @author Ryan Curtin * * Simple typedefs describing template instantiations of the NeighborSearch * class which are commonly used. This is meant to be included by * neighbor_search.h but is a separate file for simplicity. */ #ifndef __MLPACK_NEIGHBOR_SEARCH_TYPEDEF_H #def...
<commit_before>//***************************************************************************** // Copyright 2017-2018 Intel Corporation // // 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>#include "bochs.h" #include "cpu/extdb.h" #ifdef WIN32 # include <windows.h> #else //# error "extdb.cc only supported in win32 environment" #endif TRegs regs; char debug_loaded = 0; void (*call_debugger)(TRegs *,Bit8u *, Bit32u); void bx_external_debugger(BX_CPU_C *cpu) { #if 0 //printf("Call...
<commit_before>#ifndef UTIL_RECT_H__ #define UTIL_RECT_H__ #include <sstream> #include <iostream> #include "point.hpp" namespace util { template <typename T> struct rect { /** * Default constructor. */ rect() {}; template <typename S> rect(const rect<S>& other) : minX(other.minX), minY(other.minY), ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICE...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fmtwrapinfluenceonobjpos.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2007-09-27 08:25:24 $ * * The Contents of thi...
<commit_before>#include "ObjectManager.h" #include "Object.h" #include "Engine.h" #include "ComponentSystem.hpp" #include "Transform.h" using namespace Core; Object& ObjectManager::Add(const std::string& name, ComponentSystem* compoSystem, TransformPool* tfPool) { ObjectID key = _objIDMgr.Acquire(); _idBookmark.Add...
<commit_before>#include <boost/numeric/odeint.hpp> #include <aikido/constraint/TestableIntersection.hpp> #include <aikido/constraint/dart/JointStateSpaceHelpers.hpp> #include <aikido/planner/vectorfield/MoveEndEffectorOffsetVectorField.hpp> #include <aikido/planner/vectorfield/MoveEndEffectorPoseVectorField.hpp> #inclu...
<commit_before>#include <pd_view.h> #include <pd_backend.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <list> /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// struct Breakpoint { char* filename; int line; }; /////...
<commit_before>#include <possumwood_sdk/node_implementation.h> #define EIGEN_STACK_ALLOCATION_LIMIT 0 #include <mutex> #include <opencv2/opencv.hpp> #include <Eigen/Sparse> #include <tbb/task_group.h> #include <actions/traits.h> #include "frame.h" namespace { class Triplets; class Row { public: Row() = def...
<commit_before>/* * Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin * * Permission to use, copy, modify, and 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...
<commit_before>#define NB_PROFILE \ (sizeof(video_profile_value_list)/sizeof(video_profile_value_list[0])) static const char *const video_profile_name_list[] = { "Video - H.264 + AAC (TS)", "Video - Dirac + AAC (TS)", "Video - Theora + Vorbis (OGG)", "Video - Theora + Flac (OGG)", "Video - MPEG...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/isteps/istep14/call_mss_thermal_init.C $ ...
<commit_before>// RUN: %clang_cc1 -O1 -std=c++11 -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s // Clang should not generate alias to available_externally definitions. // Check that the destructor of Foo is defined. // The destructors have different return type for different targets. // CHECK: define linkonce_o...
<commit_before>#include "Rendu.hpp" using namespace irr; using namespace core; using namespace video; using namespace scene; using namespace std; Rendu::Rendu(Plateau* plateauRendu) { m_plateauRendu = plateauRendu; //Device avec API = OPENGL, Fenêtre de taille 640 x 480p et 32bits par pixel m_device = createDevi...
<commit_before>/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * 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 ...
<commit_before><commit_msg>Leetcode P263<commit_after><|endoftext|>
<commit_before>// ========================================================================== // // This file is part of DO++, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2013 David Ok <david.ok8@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla Public // Lic...
<commit_before>#include "SingleSampleAnalysisDialog.h" #include <QInputDialog> #include <QMessageBox> #include <Settings.h> #include <QPlainTextEdit> #include <ProcessedSampleSelector.h> #include "GUIHelper.h" #include "ProcessedSampleWidget.h" #include "GlobalServiceProvider.h" SingleSampleAnalysisDialog::SingleSampl...
<commit_before>#include "Logger.hpp" #include <QString> #include <boost/foreach.hpp> using namespace std; using namespace Packet; Logger::Logger() { _history.resize(100000, 0); _nextFrameNumber = 0; _spaceUsed = sizeof(_history[0]) * _history.size(); } bool Logger::open(QString filename) { QMutexLocker locker(&...
<commit_before>// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #include <algorithm> #include <OpenColorIO/OpenColorIO.h> #include "GpuShaderUtils.h" #include "MathUtils.h" #include "ops/lut3d/Lut3DOpGPU.h" #include "utils/StringUtils.h" namespace OCIO_NAM...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sprophelp.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-07 19:57:33 $ * * The Contents of this file are made...
<commit_before>// // RemotePhotoTool - remote camera control software // Copyright (C) 2008-2014 Michael Fink // /// \file ConnectCameraDlg.hpp Camera connect dialog // #pragma once // includes #include "ViewManager.hpp" #include "Instance.hpp" #include "SourceDevice.hpp" /// connect to camera dialog class ConnectCam...
<commit_before>// -*- Mode: c++-mode; c-basic-offset: 2; indent-tabs-mode: t; tab-width: 2; -*- // // Copyright (C) 2003-2004 Grzegorz Jaskiewicz <gj at pointblue.com.pl> // // gadueditaccount.cpp // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public...
<commit_before>#define __UNSAFE__ #include "Socket.h" #include <stdio.h> #include "os.h" #include "Endian.h" #if defined( __WIN_API__ ) #pragma comment( lib, "Ws2_32.lib" ) #include <WinSock2.h> #include <WS2tcpip.h> namespace WinSock { uint32_t winsockReferenceCount = 0; WSADATA winSo...
<commit_before>#include "../common/dep.hpp" #include "../../src/container/native/NContainer.inl" #include <chrono> using namespace wrd; using namespace std; class MyNode : public Node { WRD_CLASS(MyNode, Node) public: MyNode(int num): number(num) {} int number; }; /* TEST(NArrFixture, instantiateTest) ...
<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 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) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. // /*++ Module Name: common.c Abstract: Implementation of the common mapping functions. --*/ #include "pal/palinternal.h" #include ...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <sstream> #include <algorithm> const int num_of_pages = 1500000; // >= 1483276 int relCount[num_of_pages]; int num_of_rels = 0; int main(int argc, char *argv[]) { std::ifstream ifs; ifs.open("rel.bin"); while(!ifs.eof()){ int fro...
<commit_before>// ========================================================================== // SeqAn - The Library for Sequence Analysis // ========================================================================== // Copyright (c) 2006-2010, Knut Reinert, FU Berlin // All rights reserved. // // Redist...
<commit_before>/************************************************************************* * * $RCSfile: popupmenucontrollerbase.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: kz $ $Date: 2005-03-01 19:24:35 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>/* * this file is part of the oxygen gtk engine * Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org> * Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General...
<commit_before>//===-- tsan_rtl_thread.cc ------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<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>// Copyright 2013 The Flutter 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 "flutter/lib/ui/painting/engine_layer.h" #include "flutter/flow/layers/container_layer.h" #include "third_party/tonic/converter/d...
<commit_before>// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include <backendsCommon/test/EndToEndTestImpl.hpp> #include <backendsCommon/test/ArithmeticTestImpl.hpp> #include <backendsCommon/test/ConcatTestImpl.hpp> #include <backendsCommon/test/DequantizeEndToEndTestImpl.hp...
<commit_before>#include "camera.h" #include "qtcamera.h" #include "qtcamdevice.h" #include "qtcammode.h" #include "qtcamimagemode.h" #include "qtcamvideomode.h" #include "qtcamgraphicsviewfinder.h" Camera::Camera(QDeclarativeItem *parent) : QDeclarativeItem(parent), m_cam(new QtCamera(this)), m_dev(0), m_vf(ne...
<commit_before>#include <sys/mount.h> #include <v8.h> #include <node.h> #include <errno.h> #include <string.h> #include <iostream> //Uses an example of kkaefer's node addon tutorials for an async worker // //Link for the used template: //https://github.com/kkaefer/node-cpp-modules/blob/master/05_threadpool/modulename....
<commit_before>/* * Copyright (c) 2018, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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>/* ************************************************ * GEANT4 VCGLIB/CAD INTERFACE * * File: CADMesh.hh * * Author: Christopher M Poole, * Email: mail@christopherpoole.net * * Date: 7th March, 2011 **************************************************/ #ifndef CADMesh_HH #define CA...
<commit_before>#ifndef WHAM_RANDOM_H_ #define WHAM_RANDOM_H_ #include<iostream> #include<iomanip> #include<limits> #include<cmath> #include<vector> #include<time.h> #ifdef USE_MPI #include<mpi.h> #endif // A basic 32-bit LinearCongruential random number generator class LinearCongruential32 { public: typedef unsi...
<commit_before>/// /// \author John Farrier /// /// \copyright Copyright 2014 John Farrier /// /// 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/LIC...
<commit_before>/* * This file is part of TelepathyQt4 * * Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright (C) 2008 Nokia Corporation * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published b...
<commit_before>/** * @file broker.hpp * @brief Component Broker * @author Byunghun Hwang<bhhwang@nsynapse.com> * @date 2015. 6. 21 * @details */ #ifndef _COSSB_BROKER_HPP_ #define _COSSB_BROKER_HPP_ #include <map> #include <string> #include "interface/icomponent.hpp" #include "arch/singleton.hpp" using na...
<commit_before>/** * @file broker.hpp * @brief Component Broker * @author Byunghun Hwang<bhhwang@nsynapse.com> * @date 2015. 6. 21 * @details */ #ifndef _COSSB_BROKER_HPP_ #define _COSSB_BROKER_HPP_ #include <map> #include <string> #include "interface/icomponent.hpp" #include "arch/singleton.hpp" #include ...
<commit_before>#include "cox.h" //Register addresses #define CSS811_void 0x00 #define CSS811_MEAS_MODE 0x01 #define CSS811_ALG_RESULT_DATA 0x02 #define CSS811_RAW_DATA 0x03 #define CSS811_ENV_DATA 0x05 #define CSS811_NTC 0x06 #define CSS811_THRESHOLDS 0x10 #define CSS811_BASELINE 0x11 #define CSS811_HW_ID 0x20 #define ...
<commit_before>/// /// @file int128.hpp /// @brief Additional integer types used in primecount: /// int128_t, uint128_t, intfast64_t, intfast128_t, maxint_t, /// maxuint_t. /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the ...
<commit_before>// Copyright 2014 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>#include "../Common.h" #include "F200.h" #include "Projection.h" #ifndef WIN32 using namespace rs; namespace f200 { F200Camera::F200Camera(uvc_context_t * ctx, uvc_device_t * device, int idx) : UVCCamera(ctx, device, idx) { } F200Camera::~F200Camera() { ...
<commit_before>#include <iostream> #include <fstream> #include <string> using namespace std; class Matrix { private: int Columns; int Strings; int **matrix; public: Matrix(); Matrix(int _Columns, int _Strings); Matrix(const Matrix& result); ~Matrix(); int Columns_() const; int Strings_() const; void s...
<commit_before>#include <iostream> #include <string> #include <fstream> using namespace std; template<typename T> struct Node { T x; Node<T> * left; Node<T> * right; Node(T const& value) : x{ value }, left{ nullptr }, right{ nullptr } {} }; template<typename T> class Tree { private: Node<T> ...
<commit_before>#pragma once /** @file @brief definition of Op @author MITSUNARI Shigeo(@herumi) @license modified new BSD license http://opensource.org/licenses/BSD-3-Clause */ #include <mcl/gmp_util.hpp> #include <memory.h> #include <mcl/array.hpp> #if defined(__EMSCRIPTEN__) || defined(__wasm__) #define MCL_DO...
<commit_before><?hh //strict /** * This file is part of hhpack\file package. * * (c) Noritaka Horio <holy.shared.design@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ namespace hhpack\file; use \Generator; final c...
<commit_before>/* Title: Multi-Threaded Garbage Collector - Check for weak references Copyright (c) 2010, 2012 David C. J. Matthews Based on the original garbage collector code Copyright 2000-2008 Cambridge University Technical Services Limited This library is free software; you ...
<commit_before>#include "Solver.h" #include "defines.h" namespace sqaod { /* name string for float/double */ template<class real> const char *typeString(); template<> const char *typeString<float>() { return "float"; } template<> const char *typeString<double>() { return "double"; } } using namespace sqaod; temp...
<commit_before><commit_msg>Fix signed/unsigned comparisons<commit_after><|endoftext|>
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkAxesTransformRepresentation.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for...
<commit_before>#include <iostream> #include <sstream> #include "IRPrinter.h" #include "IROperator.h" #include "IR.h" namespace Halide { using std::ostream; using std::vector; using std::string; using std::ostringstream; ostream &operator<<(ostream &out, const Type &type) { switch (type.code) { case Type::In...
<commit_before>#include "InputData.h" #include <stdio.h> InputData* InputData::instance = NULL; InputData::InputData(){ drivers_.clear(); trailers_.clear(); location_.clear(); bases_.clear(); customers_.clear(); time_ = NULL; distance_ = NULL; } InputData::~InputData(){ int i; in...
<commit_before> /* Copyright 2017 - 2022 R. Thomas * Copyright 2017 - 2022 Quarkslab * * 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>/******************************************************************************* GPU OPTIMIZED MONTE CARLO (GOMC) 2.70 Copyright (C) 2018 GOMC Group A copy of the GNU General Public License can be found in the COPYRIGHT.txt along with this program, also can be found at <http://www.gnu.org/licenses/>. **...
<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>#include "ClientConnection.hpp" namespace et { const int NULL_CLIENT_ID = -1; ClientConnection::ClientConnection( std::shared_ptr<SocketHandler> _socketHandler, // const std::string& _hostname, // int _port, // const string& _key) ...
<commit_before>#include <memory> #include "DAutomaton.hpp" namespace FACore { template<unsigned int ALPHABET_SIZE> class DRegularLanguage { public: typedef DAutomaton<ALPHABET_SIZE> Machine; typedef typename Machine::Label Character;...
<commit_before>// Copyright 2014 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>#include "../allocator.hpp" #include "../platform.hpp" namespace stx { static char*& _old_arena(char* arena) { return *((char**) arena); } static char* _create_arena(size_t size, char* old, char** top, char** end) { char* result = new char[size + sizeof(char*)]; _old_arena(result) = old; if(top !...
<commit_before>#pragma once #include <vector> #include <string> class TextureAsset; class ScriptFile; namespace Geometry { class Model; } namespace Audio { class SoundBuffer; } /// A list of all the resources in a hymn. class ResourceList { friend ResourceList& Resources(); public: /// S...
<commit_before>#include <UtH/Engine/Transform.hpp> #include <UtH/Engine/GameObject.hpp> #include <cmath> #include <array> using namespace uth; Transform::Transform(Object* p) : parent(p), m_position(0, 0), m_size(0, 0), m_scale(1, 1), m_origin(0, 0), m_angle(0), m_transformNeedsUpdate(true) { }...
<commit_before><commit_msg>quick spacing change, and test of git repo import<commit_after><|endoftext|>
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008, Image Engine Design 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:...
<commit_before>// // OCCAM // // Copyright (c) 2011-2018, SRI International // // 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 cop...
<commit_before><?hh //strict namespace hhpack\publisher; use ReflectionClass; use ReflectionMethod; final class MessageSubscriber implements Subscriber<Message> { private Map<string, Vector<Subscription<Message>>> $subscriptions = Map {}; public function __construct( private Subscribable<Message> $...
<commit_before>#include <WarManager.h> #include <Regions.h> #include <util.h> #include <UnitsGroup.h> #include "DefendChokeGoal.h" #include "BorderManager.h" using std::map; using std::set; using std::vector; using std::list; using namespace BWAPI; using namespace BWTA; WarManager::WarManager() : BaseObject("WarMan...
<commit_before>#include <QClipboard> #include <QDateTime> #include <QDebug> #include <QFile> #include <QFileDialog> #include <QKeyEvent> #include <QLineEdit> #include <QMessageBox> #include <QPoint> #include <QSettings> #include <QSize> #include <QTextStream> #include <algorithm> #include <stdexcept> #include <typeinf...
<commit_before>/* Copyright (c) 2018 - present Advanced Micro Devices, Inc. All rights reserved. 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 t...
<commit_before>#include "hanse_depthengine/depth_engine.h" DepthEngine::DepthEngine() : depth_target_(0), pressure_bias_(0), pressure_current_(0), pressure_init_(false), emergency_stop_(false), pids_enabled_(true), depth_pid_enabled_(true), motors_enabled_(true), depth_output_(0) { ...
<commit_before>// Filename: KrylovLinearSolver.C // Created on 09 Sep 2003 by Boyce Griffith // // Copyright (c) 2002-2010, Boyce Griffith // 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>#include <algorithm> #include <cassert> #include <string> #include "TimeWarpEventSet.hpp" #include "utility/warnings.hpp" namespace warped { void TimeWarpEventSet::initialize (unsigned int num_of_objects, unsigned int num_of_schedulers, ...
<commit_before>//****************************************************************** // // Copyright 2016 Intel Corporation All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
<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: vendorbase.hxx,v $ * $Revision: ...
<commit_before>/* * V1.cpp * * Created on: Jul 30, 2008 * Author: rasmussn */ #include "../include/pv_common.h" #include "../include/default_params.h" #include "../connections/PVConnection.h" #include "HyPerLayer.hpp" #include "V1.hpp" #include <assert.h> #include <float.h> #include <math.h> #include <stdi...
<commit_before>/******************************************************* * Copyright (c) 2014, ArrayFire * All rights reserved. * * This file is distributed under 3-clause BSD license. * The complete license agreement can be obtained at: * http://arrayfire.com/licenses/BSD-3-Clause *******************************...