text
stringlengths
54
60.6k
<commit_before>// JSON private #include "json/input.h" // public #include <disir/disir.h> // standard #include <iostream> #include <stdarg.h> using namespace dio; //! Contructor MoldReader::MoldReader (struct disir_instance *disir) : JsonIO (disir) {} //! PUBLIC enum dplugin_status MoldReader::unmarshal (const ch...
<commit_before>#pragma once /** * \file sal/concurrent_queue.hpp * Intrusive concurrent queue (FIFO) */ #include <sal/config.hpp> #include <sal/spinlock.hpp> #include <atomic> #include <mutex> namespace sal { __sal_begin /// Opaque intrusive data to hook class into concurrent_queue using concurrent_queue_hook ...
<commit_before>/* Copyright (c) 2008, 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 "fly/logger/styler.hpp" #include "fly/types/string/string.hpp" //clang-format off // Due to a missing #include in catch_reporter_registrars.hpp, this must be included first. #include "catch2/interfaces/catch_interfaces_reporter.hpp" //clang-format on #include "catch2/catch_reporter_registrars....
<commit_before>/* Copyright (c) 2008, 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 <cstdlib> #include <iostream> #include "sslpkix/sslpkix.h" #define CATCH_CONFIG_RUNNER #include "catch.hpp" static int prime_generation_callback(int p, int n, BN_GENCB *arg) { (void)n; (void)arg; char c; switch (p) { default: c = 'B'; break; case 0: c = '.'; break; case 1: c = '+'; ...
<commit_before>/* * Author: doe300 * * See the file "LICENSE" for the full license governing this code. */ #include <cstdlib> #include <fstream> #include "cpptest.h" #include "cpptest-main.h" #include "TestArithmetic.h" #include "TestEmulator.h" #include "TestGraph.h" #include "TestInstructions.h" #include "TestO...
<commit_before>// Copyright (c) 2005 Daniel Wallin, Arvid Norberg // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, c...
<commit_before>#include "renderer.hpp" #include "renderer_types.hpp" #include "../src/estd.hpp" FrameSeriesResource makeFrameSeries() { return estd::make_unique<FrameSeries>(); } void drawOne(FrameSeries& output, Program programDef, ProgramInputs inputs, GeometryDef ge...
<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 * "...
<commit_before>#ifndef _X_CLIENT_HPP #define _X_CLIENT_HPP #include <list> #include <xcb/xcb.h> #include <xcb/damage.h> #include "data_types.hpp" #include "x_connection.hpp" class x_client { public: friend std::ostream & operator<<(std::ostream &, const x_client &); friend bool operator==(const x_client &,...
<commit_before>#include "cache.h" #include "disk_read_thread.h" #include "parameters.h" #include "aio_private.h" const int AIO_HIGH_PRIO_SLOTS = 7; const int NUM_DIRTY_PAGES_TO_FETCH = 16 * 18; disk_read_thread::disk_read_thread(const logical_file_partition &_partition, int node_id, page_cache *cache, int _disk_id)...
<commit_before>/* -*- c-basic-offset: 2 -*- */ /* Copyright(C) 2010 Tetsuro IKEDA Copyright(C) 2011-2013 Kentoku SHIBA Copyright(C) 2011-2015 Kouhei Sutou <kou@clear-code.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as...
<commit_before>#include <qpdf/QPDFCrypto_openssl.hh> #include <cstring> #include <stdexcept> #include <qpdf/QIntC.hh> static void bad_bits(int bits) { throw std::logic_error( std::string("unsupported key length: ") + std::to_string(bits)); } static void check_openssl(int status) { if (status != 1) ...
<commit_before>/*ckwg +5 * Copyright 2012 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include "gaussian_smooth.h" #include <boost/make_shared.hpp> #include "cl_m...
<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>#include <array> #if (defined(__GNUC__) || _MSC_VER > 1600) // No <thread> in VS2010 #include <thread> #endif #include "GoTools/lrsplines2D/LRBSpline2D.h" #include "GoTools/utils/checks.h" #include "GoTools/utils/StreamUtils.h" // The following is a workaround since 'thread_local' is not well supported ...
<commit_before>// Copyright (c) 2003 Daniel Wallin and Arvid Norberg // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use...
<commit_before><commit_msg>adding 2sat with path retrieval<commit_after><|endoftext|>
<commit_before>/** * HandleIterator.cc * * * Copyright(c) 2001 Thiago Maia, Andre Senna * All rights reserved. */ #include <platform.h> #include "HandleIterator.h" #include "AtomTable.h" #include "classes.h" #include "ClassServer.h" #include "TLB.h" #include "AtomSpaceDefinitions.h" HandleIterator::HandleIterato...
<commit_before>//===-- ExpressionSourceCode.cpp --------------------------------*- 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 <iostream> #include <sstream> #include <list> #include <vector> #include <assert.h> using namespace std; // Serialize/deserialize binary tree struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class binary_tr...
<commit_before>// PluginHelpers.cpp : Defines the exported functions for the DLL application. // #include "stdafx.h" #include "pluginhelpers.h" #include "UIExtension.h" #include "..\..\ToDoList_Dev\Interfaces\UITheme.h" #include "..\..\ToDoList_Dev\Interfaces\IUIExtension.h" #include "..\..\ToDoList_Dev\Interfaces\IT...
<commit_before>#include "llvm/IR/Function.h" #include "llvm/IR/Constants.h" #include "llvm/Pass.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/IRBuilder.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/raw_ostream.h" //#include "llvm/Transforms/Scalar.h" #include "llvm/Transforms/IPO.h" #i...
<commit_before>#include "stdafx.h" #include "PolymorphicTypeForestTest.h" #include SHARED_PTR_HEADER class ObjA: public Object { }; class ObjB: public Object { }; class ObjB1: public ObjB { }; class ObjB2: public ObjB { }; TEST_F(PolymorphicTypeForestTest, SimpleInsertion) { std::shared_ptr<ObjA> pA(new ...
<commit_before>/* Copyright 2017-2020 Intel Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pu...
<commit_before>#include "SocketsReader.h" #include "InodeIpHelper.h" #include "ProcNet.h" #include "ProcFd.h" #include "HexToIp.h" NetDataAll SocketsReader::Read() { unordered_map<string, NetData> tcpInodeIp; unordered_map<string, NetData> udpInodeIp; unordered_map<string, NetData> tcp6InodeIp; unorder...
<commit_before>#include <vtkSmartPointer.h> #include <vtkVRMLImporter.h> #include <vtkActor.h> #include <vtkActorCollection.h> #include <vtkCamera.h> #include <vtkMapper.h> #include <vtkPointData.h> #include <vtkPolyData.h> #include <vtkPolyDataMapper.h> #include <vtkPolyDataNormals.h> #include <vtkProperty.h> #includ...
<commit_before>// Copyright (C) 2003 CEA/DEN, EDF R&D // // // // File : VISU_DatConvertor.hxx // Author : Alexey PETROV // Module : VISU #ifndef MED_Utilities_HeaderFile #define MED_Utilities_HeaderFile #include <iostream> #include <sstream> #include <string> #include <stdexcept> namespace UNV{ using na...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkCellDataToPointData.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details...
<commit_before>/*************************************************************************** * Copyright (c) 2009 Werner Mayer <wmayer[at]users.sourceforge.net> * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before>#include "CAM_Module.h" #include "CAM_DataModel.h" #include "CAM_Application.h" #include "CAM_Study.h" #include <QtxAction.h> #include <QtxActionMenuMgr.h> #include <QtxActionToolMgr.h> static const char* ModuleIcon[] = { "20 20 2 1", " c None", ". c #000000", " ", " ...
<commit_before>// // Instruction.hpp // Clock Signal // // Created by Thomas Harte on 1/15/21. // Copyright © 2021 Thomas Harte. All rights reserved. // #ifndef InstructionSets_x86_Instruction_h #define InstructionSets_x86_Instruction_h #include <cstdint> namespace CPU { namespace Decoder { namespace x86 { /* ...
<commit_before>// Copyright 2016 The SwiftShader 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 // // Un...
<commit_before>#include <seqan/basic.h> using namespace seqan; //An arbitrary class struct MyClass { }; int main() { ///The following code creates 100 instances of $MyClass$ on the heap. ///The allocator object used is a temporary $Default$. MyClass * my_class_arr; allocate(Default(), my_class_arr, 100...
<commit_before>/* Copyright (C) 2003 MySQL AB 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 License, or (at your option) any later version. This program is d...
<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 "net/flip/flip_session_pool.h" #include "base/logging.h" #include "net/flip/flip_session.h" namespace net { // The maximum ...
<commit_before>/** * Class definition for a MicroBit Device Firmware Update loader. * * This is actually just a frontend to a memory resident nordic DFU loader. * * We rely on the BLE standard pairing processes to provide encryption and authentication. * We assume any device that is paied with the micro:bit is au...
<commit_before>#include <common/SFLogger.h> #include "QMCommonFunc.h" #include "QueryParser.h" #include <glog/logging.h> #include <fstream> namespace sf1r { boost::shared_ptr<izenelib::am::rde_hash<izenelib::util::UString,bool> > QueryUtility::restrictTermDicPtr_; boost::shared_ptr<izenelib::am::rde_hash<termid_t,b...
<commit_before>/********************************************************************** * $Id$ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * Copyright (C) 2005 Refractions Research Inc. * * This is free software; you can redistribute and/...
<commit_before>// $Id$ AliAnalysisTaskSE* AddTaskJetPreparation( const char* dataType = "ESD", const char* periodstr = "LHC11h", const char* usedTracks = "PicoTracks", const char* usedMCParticles = "MCParticlesSelected", const char* usedClusters = "CaloClust...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2013, 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>#include <IO/TinyPlyLoader/TinyPlyFileLoader.hpp> #include <Core/Asset/FileData.hpp> #include <tinyply.h> #include <fstream> #include <iostream> #include <string> const std::string plyExt( "ply" ); namespace Ra { namespace IO { using namespace Core::Utils; // log using namespace Core::Asset; // Fil...
<commit_before>#include <IO/TinyPlyLoader/TinyPlyFileLoader.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> #include <tinyply/tinyply.h> #include <string> #include <iostream> #include <fstream> const std::string plyExt ("ply"); namespace Ra { namespace IO { TinyPlyFileLoader::TinyPlyFil...
<commit_before>// IFC SDK : IFC2X3 C++ Early Classes // Copyright (C) 2009 CSTB // // 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 o...
<commit_before>// Copyright 2016 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>// @(#)root/mathcore:$Id$ // Author: L. Moneta Fri Dec 22 14:43:33 2006 /********************************************************************** * * * Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT * * ...
<commit_before>// following example from: // http://www.boost.org/doc/libs/1_58_0/libs/spirit/example/qi/employee.cpp // std includes #include <iostream> #include <string> // boost includes #include <boost/spirit/include/qi.hpp> namespace frontend { namespace spirit = boost::spirit; namespace qi = spirit::qi; namespa...
<commit_before>#include "Evaluator.h" #include "Globals.h" #include "SquareHelpers.h" Evaluator::Evaluator() { _params = EvalParams(); } Evaluator::Evaluator(const EvalParams& params) { _params = params; } int Evaluator::operator()(const Board& board) const { int terminalScore = 0; return TerminalSco...
<commit_before>#include "../include/parlex/detail/abstract_syntax_tree.hpp" #include "graphviz_dot.hpp" #include "parlex/builder.hpp" #include "parlex/detail/grammar.hpp" parlex::detail::ast_node::ast_node(match const & m, std::vector<ast_node> const & children, leaf const * l) : match(m), children(children), l(l) {...
<commit_before>//////////////////////////////////////////////////////////////////////////// /// /// WraithOne tech Engine /// /// https://github.com/WraithOne/WOtech /// by https://twitter.com/WraithOne /// /// File: Gametimer.cpp /// /// Description: /// /// Created: 12.05.2014 /// Edited: 06.11.2016 //...
<commit_before>/* * Detect_Breapoints.cpp * * Created on: Jun 19, 2015 * Author: fsedlaze */ #include "Detect_Breakpoints.h" #include "../tree/IntervallTree.h" #include "../tree/TNode.h" long get_ref_lengths(int id, RefVector ref) { long length = 0; for (size_t i = 0; i < (size_t) id && i < ref.size(); ...
<commit_before>// Licensed under the Apache License, Version 2.0 (the "License"); // you may not use these files 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 agreed to in writing, software...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2013, 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 // ...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>#include <sm/BoostPropertyTree.hpp> #include <boost/property_tree/xml_parser.hpp> #include <boost/property_tree/json_parser.hpp> #include <boost/property_tree/ini_parser.hpp> #include <boost/property_tree/info_parser.hpp> #include <sm/BoostPropertyTreeImplementation.hpp> namespace sm { BoostPropert...
<commit_before>/* kopetestdaction.cpp - Kopete Standard Actionds Copyright (c) 2001-2002 by Ryan Cumming. <bodnar42@phalynx.dhs.org> Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before>/* kopetestdaction.cpp - Kopete Standard Actionds Copyright (c) 2001-2002 by Ryan Cumming <ryan@kde.org> Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org> Kopete (c) 2001-2003 by the Kopete developers <kopete-devel@kde.org> **************************...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>// This file is part of the dune-hdd project: // http://users.dune-project.org/projects/dune-hdd // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_HDD_LINEARELLIPTIC_PROBLEMS_SPE10_HH #define DUNE_HDD_LINEARELLIPTIC_PROBLE...
<commit_before>// Created on: 2012-07-18 // Created by: Kirill GAVRILOV // Copyright (c) 2012 OPEN CASCADE SAS // // The content of this file is subject to the Open CASCADE Technology Public // License Version 6.5 (the "License"). You may not use the content of this file // except in compliance with the License. Please...
<commit_before>// MatDataTable class #include <iostream> #include <stdlib.h> #include <sstream> #include "MatDataTable.h" #include "SqliteDb.h" #include "Env.h" #include "CycException.h" using namespace std; //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MatDataTable::MatDataTable() : ...
<commit_before>#include <iostream> #include <CL/cl.hpp> #include <string> #include <vector> using namespace std; int main (int argc, char* argv[]) { //read input commandline arguments for (int i = 1; i < argc; ++i) { if (std::string(argv[i]) == "-a") { //initialise de...
<commit_before>/* * opencog/atoms/core/PutLink.cc * * Copyright (C) 2015 Linas Vepstas * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation and including the ...
<commit_before>// AMX profiler for SA-MP server: http://sa-mp.com // // Copyright (C) 2011-2012 Sergey Zolotarev // // 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://w...
<commit_before>/* * Copyright (C) Sometrik oy 2015 * */ #include <string.h> #include <android/log.h> #include "Menu.h" #include <jni.h> #include <android/asset_manager.h> #include <android/asset_manager_jni.h> #include <iostream> #include <android/bitmap.h> #include <ContextAndroid.h> #include <AndroidClient.h> #in...
<commit_before>/* * Copyright (C) Sometrik oy 2015 * */ #include <string.h> #include <android/log.h> #include "Menu.h" #include <jni.h> #include <android/asset_manager.h> #include <android/asset_manager_jni.h> #include <iostream> #include <android/bitmap.h> #include <ContextAndroid.h> #include <AndroidClient.h> #in...
<commit_before>// Transaction.cpp #include "Transaction.h" #include "Model.h" #include "MarketModel.h" #include <string> //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Transaction::Transaction(Model* creator, TransType type) { minfrac = 0; price_ = 0; supplier_ = NULL; reque...
<commit_before>// Compilation using GCC compiler under Linux. // g++ -std=c++0x program.cpp -pthread -o program.out // ./program.out #include <iostream> #include <thread> // Thread function. void threadFun() { std::cout << "Hello from thread!\n"; } int main (int argc, char **argv) { // This is worker thread that...
<commit_before>/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<commit_before>/* * mp3stream - encode /dev/dsp and send it to a shoutcast server * 2005 - bl0rg.net - public domain * * mp3stream.cc - main file, contains command-line option decoding and * mainloop. */ #include <assert.h> #include <unistd.h> #include <iostream> #include <list> #include <string> #include <map>...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/** * Copyright (C) 2003-2006 Funambol * * 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 License, or * (at your option) any later version. * * This...
<commit_before>#include "commodconverter_facility.h" namespace commodconverter { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CommodconverterFacility::CommodconverterFacility(cyclus::Context* ctx) : cyclus::Facility(ctx) {}; // - - - - - - - - - - - - - - - - - - - - - - - - -...
<commit_before>/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<commit_before><commit_msg>- More robust checking for ruby install paths on unix systems.<commit_after><|endoftext|>
<commit_before>// Very simple pool. It can only allocate memory. And all of the memory it // allocates must be freed at the same time. #ifndef UTIL_POOL_H #define UTIL_POOL_H #include <vector> #include <stdint.h> namespace util { class Pool { public: Pool(); ~Pool(); void *Allocate(std::size_t siz...
<commit_before>#include "DTIDEBuildAPI.h" DTIDEBuildAPI::DTIDEBuildAPI() { } DTIDEBuildAPI::~DTIDEBuildAPI() { std::list<std::string>::iterator it; // Clean up. for(it = m_OutputFiles.begin(); it != m_OutputFiles.end(); it++) unlink((*it).c_str()); for(it = m_SymbolFiles.begin(); it != m_Sym...
<commit_before>/******************************* Copyright (c) 2016-2019 Grégoire Angerand 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 righ...
<commit_before>/* Copyright (C) 2001-present by Serge Lamikhov-Center Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
<commit_before>/** * @file matriz_operaciones.cpp * @brief Implementación de operaciones con MatrizBit, independientes de la representación * */ #include <iosfwd> // istream,ostream #include <cstring> // strlen, strcat #include <fstream> #include "matriz_operaciones.h" using namespace std; void EliminarBlanco...
<commit_before>#include "S_Campaign.h" #include "j1Player.h" #include "Gui.h" #include "j1GameStartMenuBack.h" #include "j1Render.h" #include "ParticleManager.h" #include "j1Window.h" S_Campaign::S_Campaign() { scene_str = "Campaign"; } S_Campaign::~S_Campaign() { } bool S_Campaign::Awake(pugi::xml_node& conf) { i...
<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-2009 Torus Knot Software Ltd Permission is hereby granted, free of charge,...
<commit_before>#ifndef CUBE_CONTROL_SIGNAL #define CUBE_CONTROL_SIGNAL /* A private signal, currently shared by idle & cube * * It is used to rotate the cube from the idle plugin as a screensaver. */ /* Rotate cube to given angle and zoom level */ struct cube_control_signal : public wf::signal_data_t { double ...
<commit_before>/******************************************************************************* * c7a/communication/select.cpp * * Lightweight wrapper around select() * * Part of Project c7a. * * Copyright (C) 2015 Timo Bingmann <tb@panthema.net> * * This file has no license. Only Chuck Norris can compile it. ...
<commit_before>#include <QDebug> #include <QSettings> #include <QFileInfo> #include <QDir> #include <QThread> #include <coreplugin/messagemanager.h> #include <coreplugin/progressmanager/progressmanager.h> #include <coreplugin/progressmanager/futureprogress.h> #include "CppcheckRunner.h" #include "Constants.h" #includ...
<commit_before>#include "messagelayoutcontainer.hpp" #include "messagelayoutelement.hpp" #include "messages/selection.hpp" #include "singletons/settingsmanager.hpp" #include <QDebug> #include <QPainter> #define COMPACT_EMOTES_OFFSET 6 namespace chatterino { namespace messages { namespace layouts { i...
<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 * ...
<commit_before><commit_msg>Injected quick-http needs into latest SWS codebase<commit_after><|endoftext|>
<commit_before>#include "selfdrive/loggerd/loggerd.h" ExitHandler do_exit; // Handle initial encoder syncing by waiting for all encoders to reach the same frame id bool sync_encoders(LoggerdState *s, CameraType cam_type, uint32_t frame_id) { if (s->camera_synced[cam_type]) return true; if (s->max_waiting > 1 && ...
<commit_before>/* * This file is part of telepathy-accounts-kcm * * Copyright (C) 2009 Collabora Ltd. <info@collabora.com> * * 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 ...
<commit_before>/* ** ** Author(s): ** - Laurent LEC <llec@aldebaran-robotics.com> ** ** Copyright (C) 2012 Aldebaran Robotics */ #include <string.h> #include <qimessaging/c/qi_c.h> #include <qimessaging/c/error_c.h> #include <qimessaging/c/session_c.h> #include <qimessaging/session.hpp> #include <qimessaging/servicei...
<commit_before>/************************************************************************* * Copyright (C) 2011-2016 by Paul-Louis Ageneau * * paul-louis (at) ageneau (dot) org * * * * ...
<commit_before>/* * Copyright (c) 2012, The University of Oxford * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, ...
<commit_before>#include <string> #ifdef _LIBCPP_INLINE_VISIBILITY #undef _LIBCPP_INLINE_VISIBILITY #endif #define _LIBCPP_INLINE_VISIBILITY #include <vector> int main() { std::vector<bool> vBool; vBool.push_back(false); vBool.push_back(true); vBool.push_back(false); vBool.push_back(true); vBo...
<commit_before>/* * This code is based off Adam Nielsen's cfgpath C header found at * https://github.com/Malvineous/cfgpath * * Following his code being public domain I have licensed this using the * unlicense http://unlicense.org/. Full license text is available in * the LICENSE file */ #include "cfgpath.hpp" ...
<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: core.cxx,v $ * * $Revision: 1.3.34...
<commit_before>/************************************************************************* * * $RCSfile: astenum.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: jsc $ $Date: 2001-08-30 07:22:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#include "ScaledImageFactory.h" #include <memory> #define STB_IMAGE_RESIZE_IMPLEMENTATION #include <stb/stb_image_resize.h> using namespace std; void GetScaledSubrect( wxImage& dst, const wxImage& src, const double scale, const wxPoint& pos ) { #if 0 const size_t srcW = static_cast<...