text
stringlengths
54
60.6k
<commit_before>#ifndef VIENNADATA_CONTAINER_MAP_HPP #define VIENNADATA_CONTAINER_MAP_HPP /* ======================================================================= Copyright (c) 2011-2013, Institute for Microelectronics, Institute for Analysis and Scientific Computing, ...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>#include "monte_carlo/util.h" #include "linalg/util.h" #include "linalg/ray.h" #include "linalg/vector.h" #include "geometry/geometry.h" #include "geometry/cylinder.h" Cylinder::Cylinder(float radius, float height) : radius(radius), height(height){} bool Cylinder::intersect(Ray &ray, DifferentialGeometr...
<commit_before>/*===================================================================== QGroundControl Open Source Ground Control Station (c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> This file is part of the QGROUNDCONTROL project QGROUNDCONTROL is free software: you can redistribute it ...
<commit_before>/* * Ubitrack - Library for Ubiquitous Tracking * Copyright 2006, Technische Universitaet Muenchen, and individual * contributors as indicated by the @authors tag. See the * copyright.txt in the distribution for a full listing of individual * contributors. * * This is free software; you can redist...
<commit_before><commit_msg>Fix web contents drag corner case.<commit_after><|endoftext|>
<commit_before>#include "movement_core.h" moveNode::moveNode(std::shared_ptr<ros::NodeHandle> n, int inputRate) : RamNode(n) { thrust_pub = n->advertise<std_msgs::Int64MultiArray>("/qubo/thruster_input", inputRate); next_state_sub = n->subscribe< nav_msgs::Odometry>("/qubo/next_state", inputRate, &moveNode::messag...
<commit_before><commit_msg>Fix web contents drag corner case.<commit_after><|endoftext|>
<commit_before>#include "fdsb/test.hpp" #include "fdsb/nid.hpp" #include "fdsb/harc.hpp" #include "fdsb/fabric.hpp" using namespace fdsb; /* Symetric Tail Test: * The order of tail nodes should be irrelevant, so lookup a Harc using both * orders and check the result is the same. */ void test_harc_symetric() { get...
<commit_before>#include "variant/platform.hpp" #include "hal.h" #include "drivers/l3gd20.hpp" #include "drivers/lsm303dlhc.hpp" #include "drivers/lsm303dlhc_mag.hpp" #include "sensor/accelerometer.hpp" #include "sensor/gyroscope.hpp" #include "sensor/magnetometer.hpp" #include "variant/i2c_platform.hpp" #include "var...
<commit_before>#include <cstdio> #include <cstddef> #include <cstring> #include <string> #include <iostream> #include <system_error> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include <pwd.h> #include "control-cmds.h" #include "service-constants.h" #include "cpbuffer.h" /...
<commit_before>// // Copyright (C) 2015 Greg Landrum // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // // derived from Dave Cosgrove's MolDr...
<commit_before>#include "picross.h" //constructeur Picross::Picross(size_t nbl, size_t nbc):mat(nbl, nbc),lignes(nbl),colonnes(nbc) {} void Picross::remplirTabListe(std::ifstream& f) { size_t val,i=0; while(i<lignes.getTaille()) { while(f.peek()!='\n') { f>>val; //je lit l'indice lignes[i].pu...
<commit_before> #include <limits> #include <random> #include <vector> #include <iostream> #include "nd_array.hpp" #include "timer/timer.hpp" class PFunctor { public: PFunctor() : _time(){}; virtual const char *name() const = 0; void time_functor(int num_runs = 1000) { _run_functor(); _time.startTime...
<commit_before>#include "dbmanager.h" #include <QSqlQuery> #include <QSqlError> #include <QVariant> #include <QDateTime> const QString database_path = "database.db"; const QString create_exercise_query = "CREATE TABLE IF NOT EXISTS ExerciseInfo " "(id INTEGER NOT NULL PRIMARY KEY...
<commit_before>#include "Dict.h" #include <iostream> #include <algorithm> using namespace std; Dict::Dict() { } Dict::Dict(string filename) { mFilename = filename; } //------------------------------------------------------------------------------ Dict::Dict(std::string filename, int bonus, bool enabled) : mF...
<commit_before><commit_msg>Tweak the First Run Search Engine dialog to improve look of text label views, by making text labels bold, and a little bit larger.<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see http...
<commit_before>// Basic include files needed for the mesh functionality. #include "libmesh/libmesh.h" #include "libmesh/mesh.h" #include "libmesh/mesh_generation.h" #include "libmesh/explicit_system.h" #include "libmesh/equation_systems.h" #include "libmesh/exodusII_io.h" #include "libmesh/libmesh_config.h" #ifdef LIB...
<commit_before>#include "contrib/rocketmq_proxy/filters/network/source/conn_manager.h" #include "envoy/buffer/buffer.h" #include "envoy/network/connection.h" #include "source/common/common/enum_to_int.h" #include "source/common/protobuf/utility.h" namespace Envoy { namespace Extensions { namespace NetworkFilters { n...
<commit_before>/* * OSPRayPKDGeometry.cpp * Copyright (C) 2009-2017 by MegaMol Team * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "OSPRayPKDGeometry.h" #include "mmcore/Call.h" #include "mmcore/moldyn/MultiParticleDataCall.h" #include "mmcore/param/EnumParam.h" #include "mmcore/param/FloatParam.h" #in...
<commit_before>//===--- LSLocationPrinter.cpp - Dump all memory locations in program -----===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>#include "cnn/training.h" // #include "cnn/gpu-ops.h" #include "cnn/param-nodes.h" #include "cnn/weight-decay.h" // Macros for defining parameter update functions #ifdef __CUDACC__ #define CNN_TRAINER_INST_DEV_IMPL(MyTrainer) \ template void MyTrainer::update_rule_dev<Device_GPU>(const Device_GPU & d...
<commit_before>// Copyright 2015, Chris Blume. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef MAX_COMPILING_NODEFAULT_HPP #define MAX_COMPILING_NODEFAULT_HPP #include <max/Compiling/Configuration/Compiler.hpp> #include <max/Compil...
<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 "content/browser/service_worker/service_worker_url_request_job.h" #include <map> #include <string> #include <vector> #include "b...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // cli.hpp // // Copyright (c) 2011-2014 Eric Lombrozo // // 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>/*************************************************************************** kmsystemtray.cpp - description ------------------- begin : Fri Aug 31 22:38:44 EDT 2001 copyright : (C) 2001 by Ryan Breen email ...
<commit_before> #include <QMenu> #include <QMenuBar> #include "wd.h" #include "menus.h" #include "cmd.h" #include "form.h" #include "pane.h" // --------------------------------------------------------------------- Menus::Menus(string n, string s, Form *f, Pane *p) : Child(n,s,f,p) { type="menu"; curMenu=0; id="...
<commit_before>//------------------------------------------------------------------------ #include <iostream> #include <fstream> #include <random> #include <algorithm> #include <assert.h> #include "systemparam.hpp" #include "variables.hpp" //------------------------------------------------------------------------ void ...
<commit_before>/* * Copyright (c) 2006, Ondrej Danek (www.ondrej-danek.net) * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright *...
<commit_before>#include <cstdlib> #include <iostream> extern "C" { #include "lua/lualib.h" } #include "lualite/lualite.hpp" struct point { int x; int y; }; inline void set_result(lua_State* const L, point && p) { lua_createtable(L, 2, 0); lua_pushliteral(L, "x"); ::lualite::detail::set_result(L, p.x);...
<commit_before>/* This file is part of the KDE project Copyright (C) 2007 Matthias Kretz <kretz@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1...
<commit_before>#include <franka_hw/service_server.h> #include <franka/robot.h> #include <ros/ros.h> #include <array> #include <functional> namespace { template <typename T1, typename T2> const boost::function<bool(T1&, T2&)> createErrorFunction( std::function<void(T1&, T2&)> handler) { return [handler](T1& req...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: overlaybitmapex.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2007-07-18 10:54:37 $ * * The Contents of this file a...
<commit_before>#include <QApplication> #include <QLineEdit> #include <QCheckBox> #include <QDebug> #include <QTabFormWidget> int main(int argc, char *argv[]) { QApplication a(argc, argv); QTabFormWidget* settingsWidget = new QTabFormWidget(0); settingsWidget->addWidget("Menu A\\/B/A/Field A1",new QLineEdit(),La...
<commit_before>// Copyright 2010 Google Inc. All Rights Reserved. // Author: jacobsa@google.com (Aaron Jacobs) // // 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....
<commit_before>#include <bts/blockchain/balance_record.hpp> namespace bts { namespace blockchain { balance_record::balance_record( const address& owner, const asset& balance_arg, slate_id_type delegate_id ) { balance = balance_arg.amount; condition = withdraw_condition( withdraw_with_signature( own...
<commit_before>#ifndef COAPY_HPP #define COAPY_HPP #include <boost/config/warning_disable.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/karma.hpp> #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/phoenix_operator.hpp> #include <boost/spirit/include/phoenix_st...
<commit_before>// Copyright (c) 2015 The Brick Authors. #include "brick/external_interface/app_message_delegate.h" #include <string> #include "include/cef_app.h" #include "third-party/json/json.h" #include "brick/window/accounts_window.h" #include "brick/window/edit_account_window.h" #include "brick/client_handler.h...
<commit_before>// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <signal.h> #include <iostream> #include "Vtop_earlgrey_verilator.h" #include "verilated_toplevel.h" #include "verilator_sim_ctrl.h" VERILATED_...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is dis...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: overlaytriangle.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2006-12-05 12:11:29 $ * * The Contents of this file ar...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>#include "appevents.h" #include <QDebug> #include <QCoreApplication> #include <QProcess> #include <QList> #include <QMutex> #ifdef Q_OS_WIN static QList<QString> PROCESSES; static QMutex PROCESSES_MUTEX; #endif // On Linux, child processes are not killed by default, when the parent is done. // This is...
<commit_before>#line 2 "togo/game/resource/resource_package.cpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. */ #include <togo/game/config.hpp> #include <togo/core/error/assert.hpp> #include <togo/core/utility/utility.hpp> #include <togo/core/log/log.hpp> #include <togo/core/collection...
<commit_before>/* * Copyright (c) 2014, webvariants GmbH, http://www.webvariants.de * * This file is released under the terms of the MIT license. You can find the * complete text in the attached LICENSE file or online at: * * http://www.opensource.org/licenses/mit-license.php * * @author: Thomas Krause (thomas...
<commit_before>/** * @file */ #include "libbirch/Map.hpp" bi::Map::Map() : entries(nullptr), nentries(0), nreserved(0) { // } bi::Map::~Map() { joint_entry_type* entries1 = (joint_entry_type*)entries; for (size_t i = 0; i < nentries; ++i) { joint_entry_type entry = entries1[i]; if (entry.k...
<commit_before>/* +---------------------------------------------------------------------------+ | The Mobile Robot Programming Toolkit (MRPT) C++ library | | | | http://www.mrpt.org/ ...
<commit_before>/* * Copyright (C) 2008-2010 The QXmpp developers * * Author: * Manjeet Dahiya * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/** * C S O U N D V S T * * A VST plugin version of Csound, with Python scripting. * * L I C E N S E * * This software 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 ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE...
<commit_before>// rabidRabbit.cpp : Defines the entry point for the DLL application. #include "bzfsAPI.h" #include <string> #include <vector> #include <map> #include <cmath> #include <cstdlib> class RabidRabbitHandler : public bz_CustomMapObjectHandler { public: virtual bool MapObject(bz_ApiString object, bz_Custom...
<commit_before>#define DEBUG 0 /** * File : H.cpp * Author : Kazune Takahashi * Created : 2019/12/30 18:11:35 * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack> ...
<commit_before><commit_msg>scaled the bg to KeepAspectRatioByExpanding[654128]<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2012-2015 Dano Pernis // See LICENSE for details #include <gtk/gtk.h> #include <glib.h> #include <fstream> #include <iostream> #include <stdexcept> #include <cassert> #include "CPU.h" namespace hcc { struct ROM : public IROM { unsigned short *data; static const unsigned int si...
<commit_before>#define __STDC_LIMIT_MACROS #include <stdint.h> #include "simulator.h" #include "core_manager.h" #include "config.h" #include "queue_model_history_list.h" #include "fxsupport.h" #include "log.h" QueueModelHistoryList::QueueModelHistoryList(UInt64 min_processing_time): m_min_processing_time(min_proce...
<commit_before>/*********************************************************************** filename: Shaders.inl created: Sun, 6th April 2014 author: Lukas E Meindl *************************************************************************/ /********************************************************...
<commit_before>#ifndef STAN_MATH_OPENCL_OPENCL_CONTEXT_HPP #define STAN_MATH_OPENCL_OPENCL_CONTEXT_HPP #ifdef STAN_OPENCL #define __CL_ENABLE_EXCEPTIONS #define DEVICE_FILTER CL_DEVICE_TYPE_ALL #ifndef OPENCL_DEVICE_ID #error OPENCL_DEVICE_ID_NOT_SET #endif #ifndef OPENCL_PLATFORM_ID #error OPENCL_PLATFORM_ID_NOT_SET ...
<commit_before>#define cimg_use_jpeg #define cimg_use_png #define cimg_verbosity 1 #include <CImg.h> extern "C" { #include "nnedi.h" } using namespace cimg_library; static void turnleft(CImg<uint8_t> &src) { CImg<uint8_t> dst(src._height, src._width, 1, src._spectrum); cimg_forXYC(dst,x,y,c) dst(x,y,0,...
<commit_before>// The MIT License (MIT) // // Copyright (c) 2015 Jason Shipman // // 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 // ...
<commit_before>/* Copyright (c) 2014, Madd Games. 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 conditio...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <atomic> #include <cassert> #include <condition_variable> #include <functional> #include <memory> #include <mutex> #include <thread> #include <type_traits> #include <utility> #include "../make_generator.h" ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: indexentrysupplier_asian.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: ihi $ $Date: 2007-08-17 14:59:24 $ * * The Contents of t...
<commit_before>/* * Author(s): * - Cedric Gestes <gestes@aldebaran-robotics.com> * - Chris Kilner <ckilner@aldebaran-robotics.com> * * Copyright (C) 2010 Aldebaran Robotics */ #include <qi/log.hpp> #include <qi/messaging/src/master_client.hpp> #include <qi/serialization.hpp> #include <qi/messaging/src/network/mas...
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/infobars/infobar_view.h" #include "base/message_loop.h" #include "base/utf_string_conversions.h" #in...
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/webui/ntp/bookmarks_handler.h" #include "base/auto_reset.h" #include "base/string_number_conversions.h" #i...
<commit_before>#include "gridstar.h" GridStarLayout::GridStarLayout(GridDefinition &gridDefinition, QWidget *parent) : QLayout(parent), _gridDefinition(gridDefinition) { } GridStarLayout::~GridStarLayout() { QLayoutItem *item; while((item = takeAt(0))) { delete item; } } void...
<commit_before>// Copyright 2020 The XLS 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 applicable ...
<commit_before>#include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <stdio.h> #include <iostream> #include <fstream> #include <boost/lexical_cast.hpp> #include "packet.h" #define USAGE "Usage:\r\nc [tux machine number] [probability of packet corruption in int form] [prob...
<commit_before>#include <SDL2/SDL.h> #include "client.h" client::client() : m_mouseLat(0.0f), m_mouseLon(0.0f), m_origin(0.0f, 150.0f, 0.0f), m_velocity(0.0f, 0.0f, 0.0f), m_isOnGround(false) { } u::map<int, int> &getKeyState(int key = 0, bool keyDown = false, bool keyUp = false); void getMouseDe...
<commit_before>/* Copyright 2016 Carnegie Mellon University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
<commit_before>#include <iostream> #include "literal.h" #include "tree.h" using namespace std; struct Node : public TreeNode<Node>, public SimpleKey<int> { static int count; Node(int n) : SimpleKey<int>(n) { cout << "Created " << id() << ", total " << ++count << endl; } Node(const Node ...
<commit_before>#include<iostream> #include<string> #include<vector> #include<sstream> #include<algorithm> #include<limits.h> #include<stack> #include<queue> using namespace std; vector<vector<int> > res; void dfs(vector<int> &candidates, vector<int> &path, int start, int target){ if(target==0){ re...
<commit_before>/****************************************************************************** This source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software ...
<commit_before>/* Copyright 2015 Google 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law o...
<commit_before>/************************************************* * FIPS-140 Self Tests Source File * * (C) 1999-2006 The Botan Project * *************************************************/ #include <botan/fips140.h> #include <botan/lookup.h> namespace Botan { namespace FIPS140 { namesp...
<commit_before>/* * Copyright (C) 2012 David Edmundson <kde@davidedmundson.co.uk> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your ...
<commit_before> /* @doc \file Object to generate a file following AMELIF format. Copyright (c) 2010 @author Olivier Stasse JRL-Japan, CNRS/AIST All rights reserved. Please refers to file License.txt for details on the license. */ #include "GenerateRobotForAMELIF.h" using namespace std; namespace dy...
<commit_before>#ifndef _WIN32 //===--- TerminalDisplayUnix.cpp - Output To UNIX Terminal ------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------...
<commit_before>#include "dbdriver/dbdriver.h" #include "dbdriver/constants.h" #include "mongo/client/dbclient.h" #include <vector> #include <string> #include <cstdlib> #include <sstream> #include "mongo/db/jsobj.h" #include <iostream> namespace dbdriver { status_t str2uint(const std::string & str, uint64_t & uintval...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_SPACE_RAVIARTTHOMAS_FEM_LOCALFUNCTIONS_HH #define DUNE_GDT_SPACE_RAVIART...
<commit_before>#include <iostream> #include <stdio.h> #include <stdlib.h> #include <fstream> #include <sys/stat.h> #include <math.h> #include <algorithm> #include <string.h> #include <stdint.h> #include <sstream> #include <iomanip> #include <gdal_priv.h> #include <cpl_conv.h> #include <ogr_spatialref.h> using namespace...
<commit_before>#include "ride/wx.h" #include "ride/settingsdlg.h" #include "ride/mainwindow.h" #include <functional> ////////////////////////////////////////////////////////////////////////// template<typename T> T* Allocate(const T& t) { return new T(t); } /////////////////////////////////////////////////////////...
<commit_before>// This is a regression test on debug info to make sure that we can get a // meaningful stack trace from a C++ program. // RUN: %llvmgcc -S -O0 -g %s -o - | \ // RUN: llc --disable-fp-elim -o %t.s -O0 -relocation-model=pic // RUN: %compile_c %t.s -o %t.o // RUN: %link %t.o -o %t.exe // RUN: echo {brea...
<commit_before>//******************************************************************* // Copyright (C) 2005 David Burken, all rights reserved. // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // // Author: David Burken //******************************************************...
<commit_before>// Copyright (c) 2008, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this ...
<commit_before>/* The MIT License (MIT) * * Copyright (c) 2014-2018 David Medina and Tim Warburton * * 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 witho...
<commit_before>#include "DateTime.h" #include <iostream> #include <cstdlib> #include <string> #include <list> using namespace std; using namespace std; using namespace NP_DATETIME; int main(void) { // Declarations string stringInstance = "this is a string"; const char* charArray = "a c-type string"; // Pointer De...
<commit_before>/* * Copyright (C) 2014-2015 Pavel Dolgov * * See the LICENSE file for terms of use. */ #ifndef CONSTANTS_HPP_ #define CONSTANTS_HPP_ namespace Gui { /** Waiting time (msec). Before calling resizeBoardsContent_deferred(). */ const int WAIT_TIME = 1; /** The proportion of a number in a cell */ con...
<commit_before>/* * Player - One Hell of a Robot Server * Copyright (C) 2000 * Brian Gerkey, Kasper Stoy, Richard Vaughan, & Andrew Howard * * * 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 Softwar...
<commit_before>#include "SceneMainMenu.hpp" #include <iostream> //-------------------------------------------------------------------- using namespace cocos2d; //-------------------------------------------------------------------- Scene * SceneMainMenu::createScene(){ auto scene = Scene::create(); auto root ...
<commit_before>#include "stdafx.h" #include "EventQueue.h" EventQueue::EventQueue() { pending_pop = CreateEvent( NULL, FALSE, FALSE, NULL ); InitializeCriticalSection(&sec); } QueueEvent * EventQueue::Pop() { QueueEvent *evt = nullptr; EnterCriticalSection(&sec); if (!q.empty()) { evt = q.back(); ...
<commit_before>/*========================================================================= Program: Monteverdi2 Language: C++ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See Copyright.txt for details. Monteverdi2 is distributed under the CeCILL licence version 2. See Licenc...
<commit_before>/* * Copyright 2004-2015 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 L...
<commit_before>#include "servercontroller.hpp" #include "serversocket.hpp" #include "qhttpserver.h" #include "qhttprequest.h" #include "qhttpresponse.h" #include <QBuffer> #include <QTcpSocket> namespace mirrors { ServerController::ServerController(QObject *parent) : QObject(parent), sock(new ServerSocke...
<commit_before>#include "iotsa.h" #include "iotsaCapabilities.h" #include "iotsaConfigFile.h" #include <ArduinoJWT.h> #include <ArduinoJson.h> #define IFDEBUGX if(1) // Static method to check whether a string exactly matches a Json object, // or is included in the Json object if it is an array. static bool stringCont...
<commit_before>/****************************************************************************** * Copyright (c) 2000-2017 Ericsson Telecom AB * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distributio...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS * * ...