text
stringlengths
54
60.6k
<commit_before>// Copyright 2016-2019 Envoy Project Authors // Copyright 2020 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-...
<commit_before> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2015 Francois Beaune, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any...
<commit_before>/* author: Nathan Turner date:3/27/16 ussage: ./waf --run scratch/udpchain.cc */ #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/csma-module.h" #include "ns3/internet-module.h" #include "ns3/point-to-point-module.h" #include "ns3/applications-module.h" #include "ns3/ipv4-globa...
<commit_before>#include "System.h" System::System() { this->m_inputHandler = NULL; this->m_window = NULL; } System::~System() { } int System::Shutdown() { int result = 0; //Destroy the display window SDL_DestroyWindow(m_window); //Quit SDL subsystems SDL_Quit(); this->m_graphicsHandler->Shutdown(); delete t...
<commit_before>#include "stdafx.h" #include "ViewDistanceCalc.h" #include "GL3DProgram.h" ViewDistanceCalc::ViewDistanceCalc() { viewDistance = 0.0; framesDrawn = 0; } //Should be called every draw cycle //calculates the view distance //applies to fog distance automatically void ViewDistanceCalc::CalculateAndApply...
<commit_before>#pragma once #include "Renderer.hpp" #include "exprs.hpp" namespace DS { namespace CAS { namespace Expressions { namespace Visitors { namespace Render { template<typename T> class Infix : public DS::CAS::Expressions::Visitors::Renderer<T> { public: Infix(std::shared_ptr<Nu...
<commit_before>/** For conditions of distribution and use, see copyright notice in LICENSE @file ConsoleAPI.cpp @brief Console core API. */ #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "ConsoleAPI.h" #include "ConsoleWidget.h" #include "ShellInputThread.h" #include "Application.h"...
<commit_before>// Powiter // /* 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/. */ /* *Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012. *contact: immarespond at gmai...
<commit_before>#pragma once #include "Renderer.h" #include "Camera.h" #include "View.h" #include "Renderables/Renderable.h" #include "Math/Vector3.h" #include "GLBlaat/GL.h" #include "GLBlaat/GLTexture.h" #include "GLBlaat/GLTextureManager.h" #include "GLBlaat/GLFramebuffer.h" #include "GLBlaat/GLUtility....
<commit_before>#include "BinaryTree.h" template<class Node> Tree<Node>::Tree() { root->x = 0; root->left = root->right = NULL; } template<class Node> Tree<Node>::Tree(Node* node) { root->x = node->x; root->left = node->left; root->right = node->right; } template<class Node> Tree<Node>::Tree(const Tre...
<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><commit_msg>Sketcher: [skip ci] fix computing of hotspot of sketcher icons on macOS<commit_after><|endoftext|>
<commit_before>#include "Railfence.h" /** * Sets the key to use * @param key - the key to use * @return - True if the key is valid and False otherwise */ bool Railfence::setKey(const string& mykey) { // validate the key, check if its empty if ((!mykey.empty())) { key = atoi(mykey.c_str()); return true; } ...
<commit_before>{ TProof::Open("pod://"); if (!gProof) return; TDSet *manual_dset = new TDSet("TTree", "deuterons"); TString user[3] = {"m/mpuccio","m/masera","s/sbufalin"}; for (int i = 0; i < 3; ++i) { TString ddset = Form("Find;BasePath=/alice/cern.ch/user/%s/NucleiPbPb2011test/output;FileName=*/root...
<commit_before>// File: SalomeApp_PreferencesDlg.cxx // Author: Sergey TELKOV #include "SalomeApp_PreferencesDlg.h" #include "SalomeApp_Preferences.h" #include <qvbox.h> #include <qlayout.h> /*! Constructor. */ SalomeApp_PreferencesDlg::SalomeApp_PreferencesDlg( SalomeApp_Preferences* prefs, QWidget* pare...
<commit_before>/******************************************************************** * Copyright © 2016 Computational Molecular Biology Group, * * Freie Universität Berlin (GER) * * * * This file is part of R...
<commit_before>#pragma once //std #include <algorithm> //glm #include <glm\glm.hpp> #include <glm\ext.hpp> //mandala #include "collision.hpp" #include "input_event.hpp" #include "gui_node.hpp" #include "gpu.hpp" #if defined(DEBUG) #include "line_renderer.hpp" #endif namespace mandala { void gui_node_t::orphan(...
<commit_before>//===- TraceValues.cpp - Value Tracing for debugging -------------*- C++ -*--=// // // Support for inserting LLVM code to print values at basic block and method // exits. // //===----------------------------------------------------------------------===// #include "llvm/Transforms/Instrumentation/TraceVa...
<commit_before>#include "clientmodel.h" #include "guiconstants.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include "transactiontablemodel.h" #include "alert.h" #include "main.h" #include "ui_interface.h" #include <QDateTime> #include <QTimer> static const int64 nClientStartupTime = GetTime(); Clien...
<commit_before>// Copyright (c) 2011-2018 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <clientmodel.h> #include <bantablemodel.h> #incl...
<commit_before>// Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file license.txt or http://www.opensource.org/licenses/mit-license.php. #include <boost/algorithm/string.hpp> #include <boost/interprocess/ipc/message_queue.hpp> #include <boost/t...
<commit_before>// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletframe.h" #include "bitcoingui.h" #include "walletview.h" #include <cstdio> #include <QHBoxLa...
<commit_before>/* Copyright (C) 2014 Marcus Soll All rights reserved. You may use this file under the terms of BSD license as follows: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of sourc...
<commit_before>/* Copyright (C) 2017 Alexandr Akulich <akulichalexander@gmail.com> This file is a part of TelegramQt library. 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; ei...
<commit_before>/* * Copyright 2012 BrewPi/Elco Jacobs. * * This file is part of BrewPi. * * BrewPi 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...
<commit_before>#include "MacauPrior.h" #include <SmurffCpp/IO/MatrixIO.h> #include <SmurffCpp/IO/GenericIO.h> #include <SmurffCpp/Utils/Distribution.h> #include <SmurffCpp/Utils/Error.h> #include <SmurffCpp/Utils/counters.h> #include <SmurffCpp/Utils/linop.h> #include <ios> using namespace smurff; MacauPrior::Mac...
<commit_before>/* * Assorted commonly used Vulkan helper functions * * Copyright (C) 2016 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) */ #include "VulkanTools.h" namespace vks { namespace tools { std::string errorString(VkResu...
<commit_before> // g++-4.4 bench_gemm.cpp -I .. -O2 -DNDEBUG -lrt -fopenmp && OMP_NUM_THREADS=2 ./a.out // icpc bench_gemm.cpp -I .. -O3 -DNDEBUG -lrt -openmp && OMP_NUM_THREADS=2 ./a.out #include <iostream> #include <Eigen/Core> #include <bench/BenchTimer.h> using namespace std; using namespace Eigen; #ifndef SC...
<commit_before>#pragma once #include <cstdio> // declaration of ::fileno #include <fstream> // for basic_filebuf template #include <cerrno> #if defined(__GLIBCXX__) || (defined(__GLIBCPP__) && __GLIBCPP__>=20020514) // GCC >= 3.1.0 # include <ext/stdio_filebuf.h> #endif #if defined(__GLIBCXX__) // GCC >= 3.4.0 # i...
<commit_before>#ifndef SOLAIRE_CONTAINER_HPP #define SOLAIRE_CONTAINER_HPP //Copyright 2015 Adam Smith // //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/license...
<commit_before>/************************************************************************* * * $RCSfile: formatclipboard.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2004-08-05 11:03:14 $ * * The Contents of this file are made available subject to the terms of * either of the followin...
<commit_before>/************************************************************************* * * $RCSfile: XMLExportDDELinks.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2004-03-08 11:53:09 $ * * The Contents of this file are made available subject to the terms of * either of the follow...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLExportDDELinks.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-08 19:53:56 $ * * The Contents of this file ...
<commit_before>// /$$$$$$$ /$$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$$ /$$$$$$ /$$$$$$$ // | $$__ $$| $$_____/ /$$__ $$|_ $$_/ /$$__ $$|__ $$__//$$__ $$| $$__ $$ // | $$ \ $$| $$ | $$ \__/ | $$ | $$ \__/ | $$ | $$ \ $$| $$ \ $$ // | $$$$$$$/| $$$$$ | $$$$$$ | $$ | $$$$$$ | $$...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFIWS.h // @Author : Stone.xin // @Date : 2016-12-22 // @Module : NFIWS // ------------------------------------------------------------------------- #include "NFCWS.h" #include <string.h>...
<commit_before>// // Name: Contours.cpp // Purpose: Contour-related code, which interfaces vtlib to the // QuikGrid library. // // Copyright (c) 2004-2008 Virtual Terrain Project // Free for all uses, see license.txt for details. // #include "vtlib/vtlib.h" #if SUPPORT_QUIKGRID #include "vtdata/QuikGrid.h" #include...
<commit_before><commit_msg>fix typo<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <thread> #include <chrono> #include <random> #include <time.h> #include <assert.h> #include "IntervalTree.h" using namespace std; typedef Interval<bool> interval; typedef vector<interval> intervalVector; typedef IntervalTree<bool> intervalTree; template<typename K> K randK...
<commit_before>#include <iostream> #include <thread> #include <chrono> #include <random> #include <time.h> #include <assert.h> #include "IntervalTree.h" using namespace std; typedef Interval<bool,int> interval; typedef vector<interval> intervalVector; typedef IntervalTree<bool,int> intervalTree; template<typename K>...
<commit_before>#include "utils.h" #include "crypto/sha2.h" #include "flaggedarrayset.h" #include "relayprocess.h" #include <stdio.h> #include <sys/time.h> #include <algorithm> #include <random> #include <string.h> #include <unistd.h> void do_nothing(...) {} #ifdef BENCH #define PRINT_TIME do_nothing #else #define PR...
<commit_before>// Copyright (c) 2010 - 2013 Leap Motion. All rights reserved. Proprietary and confidential. #include "stdafx.h" #include "ScopeTest.h" #include "GlobalCoreContext.h" #include "Autowired.h" TEST_F(ScopeTest, VerifyGlobalExists) { // Verify that we at least get a global scope AutoGlobalContext global...
<commit_before>//System includes #include <fstream> #include <iostream> #include <ctime> #include <string> #include <cstdlib> #include <iomanip> // Point #include "point.h" // Ugly fixes #include <assert.h> // Kratos Independent #define KRATOS_INDEPENDENT #ifndef KRATOS_INDEPENDENT #define KRATOS_ERROR std::cout ...
<commit_before>/* * Polyphase channelizer * * Copyright (C) 2012-2014 Tom Tsou <tom@tsou.cc> * Copyright (C) 2015 Ettus Research LLC * * SPDX-License-Identifier: AGPL-3.0+ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as p...
<commit_before>/** * \file scheme.cpp * \date 2015 */ #include <string> #include <iostream> #include <uscheme/defs.hpp> void usage(void) { std::cout << "\n" "usage: scheme [-h]\n" "\n" "Scheme interpreter using libuscheme.\n" "\n" "libuscheme version: " << uscheme::version() << "\n" <<...
<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 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>/** @file @brief Implementation @date 2014 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2014 Sensics, 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 ...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * LXQt - a lightweight, Qt based, desktop toolset * https://lxqt.org/ * * Copyright: 2018 LXQt team * * This program or library is free software; you can redistribute it * and/or modify it under the terms of the GNU Lesser General Public * License ...
<commit_before>/** @file @brief Implementation @date 2014 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2014 Sensics, 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 ...
<commit_before>//===- IndexBody.cpp - Indexing statements --------------------------------===// // // 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-2015, 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.apac...
<commit_before>// Copyright (C) 1999-2018 // Smithsonian Astrophysical Observatory, Cambridge, MA, USA // For conditions of distribution and use, see copyright notice in "copyright" #include <tk.h> #include "basepolygon.h" #include "fitsimage.h" BasePolygon::BasePolygon(Base* p, const Vector& ctr, const Vector&...
<commit_before>#include "musicsoundkmicrowidget.h" #include "ui_musicsoundkmicrowidget.h" #include "musicsoundkmicrosearchwidget.h" #include "musicfunctionuiobject.h" #include "musiccoremplayer.h" #include "musicsettingmanager.h" #include "musiclrcanalysis.h" #include "musiclrcmanagerforinline.h" #include "musicstringu...
<commit_before>/** * Copyright 2008 Matthew Graham * 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>#include "stel.h" #include "log.h" namespace steg { lua_State* L = NULL; static int cLuaLoadLibs(lua_State* L) { luaL_openlibs(L); return 0; } DBG_Status LuaInit() { DBG_Status status = DBG_OK; ENG_LogInfo("Lua module initializing..."); L = luaL_newstate(); if(L == NULL) { ENG_LogEr...
<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-2012 Torus Knot Software Ltd Permission is hereby granted, free of cha...
<commit_before>/* Copyright (C) 2013 Martin Klapetek <mklapetek@kde.org> Copyright (C) 2014 David Edmundson <davidedmundson@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 ...
<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 <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 corruption in int form] \r\n[probability ...
<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. // // Extension port manager takes care of managing the state of // connecting and connected ports. #include "ceee/ie/plugin/bho/extensi...
<commit_before>#include <silicium/tcp_acceptor.hpp> #include <silicium/coroutine.hpp> #include <silicium/total_consumer.hpp> #include <silicium/flatten.hpp> #include <silicium/socket_observable.hpp> #include <silicium/sending_observable.hpp> #include <silicium/received_from_socket_source.hpp> #include <silicium/observa...
<commit_before>#include "stdafx.h" #include "CrashDump.h" #include <atltime.h> #include <dbghelp.h> #pragma comment(lib, "dbghelp.lib") #include "../../Common/Helpers/zip.h" #include "../../Common/Helpers/RapidHelper.hpp" namespace GameServer { namespace Fixes { using UnhandledExceptionFilterPtr_t = ...
<commit_before>// Copyright (c) 2012 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/autofill/autofill_download.h" #include <algorithm> #include <ostream> #include <vector> #include "base/loggi...
<commit_before>// Time: O(nlogn) // Space: O(n) class Solution { public: class BSTreeNode { public: int val, count; BSTreeNode *left, *right; BSTreeNode(int val, int count) { this->val = val; this->count = count; this->left = this->right = nullptr; ...
<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 "app/surface/transport_dib.h" #include "base/basictypes.h" #include "base/file_path.h" #include "base/file_util.h" #include "b...
<commit_before><commit_msg>using function pointer for better code readability<commit_after><|endoftext|>
<commit_before>#include <babylon/sprites/sprite_renderer.h> #include <babylon/buffers/buffer.h> #include <babylon/buffers/vertex_buffer.h> #include <babylon/engines/constants.h> #include <babylon/engines/engine.h> #include <babylon/engines/scene.h> #include <babylon/engines/thin_engine.h> #include <babylon/materials/d...
<commit_before>/*! @file @author Albert Semenov @date 11/2009 @module */ #include "ResourceW32Pointer.h" #include <windows.h> namespace input { ResourceW32Pointer::ResourceW32Pointer() : mHandle(0) { } void ResourceW32Pointer::deserialization(MyGUI::xml::ElementPtr _node, MyGUI::Version _version) { B...
<commit_before>/** * VariableRegistry.cpp * * History: * David Cox on Tue Dec 10 2002 - Created. * Paul Jankunas on 4/29/05 - Added the experiment package codec to package. * Also added the constant code to codec package. * Paul Jankunas on 5/17/05 - Removed codec code, it now is stored i...
<commit_before>#include "susi/cluster/ClusterComponent.h" void Susi::ClusterComponent::addToBlacklist(std::string & id){ eventBlacklist.push_front(id); while(eventBlacklist.size() > 64){ eventBlacklist.pop_back(); } } bool Susi::ClusterComponent::checkIfInBlacklist(std::string & id){ for(auto & entry : eventBla...
<commit_before>#include "TailGenerator.h" TailGenerator::TailGenerator(Context* context) : Drawable(context, DRAWABLE_GEOMETRY) { matchNode_ = false; geometry_ = SharedPtr<Geometry>(new Geometry(context)); vertexBuffer_ = SharedPtr<VertexBuffer>(new VertexBuffer(context)); indexBuffer...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2020. All rights reserved */ // TEST Foundation::Containers::Mapping // STATUS Alpha-Late #include "Stroika/Foundation/StroikaPreComp.h" #include <iostream> #include <sstream> #include "Stroika/Foundation/Containers/Collection.h" #include "St...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2020. All rights reserved */ // TEST Foundation::Execution::Exceptions #include "Stroika/Foundation/StroikaPreComp.h" #include <iostream> #include <sstream> #if qPlatform_Windows #include <Windows.h> #include <winerror.h> #include <wininet.h> // fo...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved */ // TEST Foundation::Execution::Exceptions #include "Stroika/Foundation/StroikaPreComp.h" #include <iostream> #include <sstream> #if qPlatform_Windows #include <Windows.h> #include <winerror.h> #include <wininet.h> // fo...
<commit_before>#include "Payment.h" #include <string.h> void PrintUsage(char *name) { cout << name << " <rate> <nper> <pmt> [pv] [type]" << endl; } int main(int argc, char *argv[]) { if (argc >= 4) { double rate = atof(argv[1]); int nper = atoi(argv[2]); double pv = atof(argv[3]); double fv = 0; int type...
<commit_before>#include "clunk_ex.h" #include <errno.h> #include <stdio.h> #include <string.h> void clunk::Exception::add_message(const char *file, int line) { char buf[1024]; snprintf(buf, sizeof(buf), "[%s:%d] ", file, line); message += buf; } void clunk::Exception::add_message(const std::string &msg) { message...
<commit_before>#include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/visualization/pcl_visualizer.h> #include <pcl/surface/on_nurbs/fitting_surface_tdm.h> #include <pcl/surface/on_nurbs/fitting_curve_2d_asdm.h> #include <pcl/surface/on_nurbs/triangulation.h> typedef pcl::P...
<commit_before>/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * _______ _ * * ( ____ \ ( \ |\ /| * * | ( \/ | ( ( \ / ) * * ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief batch request handler /// /// @file /// /// DISCLAIMER /// /// Copyright 2004-2012 triagens GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this f...
<commit_before>// Filename: decompressor.cxx // Created by: mike (09Jan97) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Softw...
<commit_before>/* * Copyright (c) 2015, Nagoya University * 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, t...
<commit_before>#pragma once #include "stdafx.h" #include "cJSON/cJSON.h" CLANG_DIAGNOSTIC_PUSH; CLANG_DIAGNOSTIC_IGNORE("-Wunused-macros"); // I dont think namespace matters for macros but whatever namespace asdf { #define CJSON_OBJ(node_name, obj_name) cJSON_GetObjectItem(node_name, #obj_name) #define CJSON...
<commit_before>/*========================================================================= Library: CTK Copyright (c) 2010 Kitware 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 a...
<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 "views/touchui/touch_factory.h" #include <gtk/gtk.h> #include <gdk/gdkx.h> #include <X11/cursorfont.h> #include <X11/extensio...
<commit_before><commit_msg>[booking] android build fix<commit_after><|endoftext|>
<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 following conditions * are met: * * * Redistributions of...
<commit_before> // todo: // -Ir // -Iz // -zr // -zt // -f #include "i2_options.h" #include "posix_fe.h" #include <netdb.h> class i2_program { i2_options opts; bool _ok; pxfe_tcp_stream_socket * net_fd; uint64_t bytes_sent; uint64_t bytes_received; pxfe_timeval start_time; pxfe...
<commit_before>/*----------------------------------------------------------------------------- This source file is a part of Hopsan Copyright (c) 2009 to present year, Hopsan Group This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as pu...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved */ #ifndef _Stroika_Foundation_DataExchange_OptionsFile_inl_ #define _Stroika_Foundation_DataExchange_OptionsFile_inl_ 1 /* ******************************************************************************** *******************...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/phy/adr32s.C $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_memdiag.C $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H $ ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: adc_cmds.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: vg $ $Date: 2007-09-18 14:05:27 $ * * The Contents of this file are made ...
<commit_before>// __BEGIN_LICENSE__ // Copyright (C) 2006-2010 United States Government as represented by // the Administrator of the National Aeronautics and Space Administration. // All Rights Reserved. // __END_LICENSE__ #include <gtest/gtest.h> #include <test/Helpers.h> #include <vw/Core/Settings.h> #include <bo...
<commit_before>#include "c24/communication/stream.h" #include <chrono> #include <string> #include <thread> #include <glog/logging.h> namespace c24 { namespace communication { Stream::Stream(std::unique_ptr<StreamBackendInterface> stream_backend) : stream_backend_(std::move(stream_backend)) {} bool Stream::Conne...
<commit_before>#include "stdafx.h" #include "texturebutton.h" #include <QPushButton> #include <QImage> #include <QFileDialog> #include <QSettings> #include <QStandardPaths> #include <QPainter> #include <QFileInfo> #include <QMessageBox> #include "OgreTexture.h" #include "OgreImage.h" #include "OgreHlmsPbsDatablock.h"...
<commit_before>// Copyright (c) 2016 Mirants Lu. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "voyager/core/tcp_connection.h" #include <unistd.h> #include <errno.h> #include "voyager/core/dispatch.h" #include "voyager/core/event...
<commit_before>#include <string> using std::string; class Sales_data{ public: Sales_data() = default; ~Sales_data() = default; Sales_data(int i):a(i){} Sales_data(const Sales_data &rhs):a(rhs.a){} Sales_data& operator=(const Sales_data&rhs){ a = rhs.a; return *this; } private: ...
<commit_before>/* * #%L * %% * Copyright (C) 2011 - 2017 BMW Car IT GmbH * %% * 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> // INCLUDES #include <unistd.h> #include <string.h> #include <netdb.h> #include <fcntl.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/param.h> #include <sys/select.h> #include "atTCPNetworkInterface.h++" atTCPNetworkInterface::atTCPNetworkInterface(char * address, s...