text
stringlengths
54
60.6k
<commit_before>/******************************* Copyright (c) 2016-2021 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>#include "MqttClient.hpp" #include "Timer.hpp" #include <iostream> #define MQTT_PROTO_MAJOR 3 #define MQTT_PROTO_MINOR 1 #define MQTT_PROTOCOL_VERSION "MQTT/3.1" #define PROTOCOL_MAGIC "MQIsdp" #define FLAG_CLEANSESS(F, C)(F | ((C) << 1)) #define FLAG_WILL(F, W)(F | ((W) << 2)) #define FLAG_WILLQOS(F,...
<commit_before>// -*- Mode:C++; Coding:us-ascii-unix; fill-column:158 -*- /*******************************************************************************************************************************************************.H.S.**/ /** @file mandelbrot_period.cpp @author Mitch Richling <https://www.mitchr....
<commit_before>#include "derivations.hh" #include "globals.hh" #include "shared.hh" #include "store-api.hh" #include <sys/utsname.h> #include <algorithm> #include <iostream> #include <fstream> #include <sys/mman.h> #include <fcntl.h> #include <mach-o/loader.h> #include <mach-o/swap.h> #define DO_SWAP(x, y) ((x) ? OSSw...
<commit_before>#include <algorithm> #include <chrono> #include <cmath> #include <iostream> #include <string> #include <sys/time.h> #include <thread> #include <rclcpp/rclcpp.hpp> #include <simple_msgs/AllBuiltinTypes.h> #include <simple_msgs/AllDynamicArrayTypes.h> #include <simple_msgs/AllPrimitiveTypes.h> #include <...
<commit_before>//============================================================================== // CellML model runtime class //============================================================================== #include "cellmlmodelruntime.h" //=======================================================================...
<commit_before>/* Copyright (c) 2013 Quanta Research Cambridge, Inc * * 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 us...
<commit_before>#include "UniformRand.h" UniformRand::UniformRand(double minValue, double maxValue) { setBoundaries(minValue, maxValue); } std::string UniformRand::name() { return "Uniform(" + toStringWithPrecision(getMinValue()) + ", " + toStringWithPrecision(getMaxValue()) + ")"; } void UniformR...
<commit_before>#include "cexio.h" #include "parameters.h" #include "utils/restapi.h" #include "utils/base64.h" #include "unique_json.hpp" #include "hex_str.hpp" #include "openssl/sha.h" #include "openssl/hmac.h" #include <vector> #include <iomanip> #include <array> #include <chrono> #include <cmath> #inc...
<commit_before>/** * Run SDC for the van der Pol oscillator. * */ #include<pfasst.hpp> #include<pfasst/sdc.hpp> #include<pfasst/encap/vector.hpp> #include "vdp_sweeper.hpp" double run_vdp_sdc(const size_t nsteps, const double dt, const size_t nnodes, const size_t niters, const double nu, const ...
<commit_before>// File: gaussian.hh // Date: Sat May 04 01:33:12 2013 +0800 // Author: Yuxin Wu <[email protected]> #pragma once #include <memory> #include <vector> #include "lib/mat.h" #include "lib/utils.hh" #include "lib/timer.hh" #include "common/common.hh" namespace pano { class GaussCache { public: std::un...
<commit_before>#include "shape/solid.h" VALUE sr_cSolid; SR_SHAPE_GET(Solid, solid) SR_SHAPE_CHECK(Solid, solid) bool siren_solid_install() { SR_SHAPE_INIT(Solid) rb_define_method(sr_cSolid, "initialize", RUBY_METHOD_FUNC(siren_solid_init), -1); rb_define_singleton_method(sr_cSolid, "box", RUBY_METHOD_F...
<commit_before>#include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <comedilib.h> #include <getopt.h> int subdev = 0; int range = 0; int aref = AREF_GROUND; int chan[50]; int blink_msec = 300; static struct option longopts[] = { { "help", no_argument, 0, 'h' }, { "read", required_...
<commit_before>/* * Copyright (c) 2014-2016, imec * All rights reserved. */ #include <random> #include <memory> #include <cstdio> #include <iostream> #include <climits> #include <stdexcept> #include "error.h" #include "bpmf.h" #include "io.h" static const bool measure_perf = false; std::ostream *Sys::os; int Sy...
<commit_before>/* * Copyright (c) 2014-2016, imec * All rights reserved. */ #include "error.h" #include "bpmf.h" #include <random> #include <memory> #include <cstdio> #include <iostream> #include <climits> #include <stdexcept> #include "io.h" #if defined(_OPENMP) #include "omp.h" #pragma omp declare reduction (...
<commit_before>#include <iostream> #include <string> #include <algorithm> #include <numeric> #include <cstdlib> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/strong_components.hpp> #include <boost/graph/graphviz.hpp> #include <boost/program_options.hpp> #include "float-semiring.h" #include "semilinSet...
<commit_before>// From vmdconio.h #define VMDCON_WARN 2 #define VMDCON_ERROR 3 extern "C" { #include <vmdplugin.h> #include <molfile_plugin.h> } #include <cassert> #include <array> #include <string> #include <vector> #include <unordered_map> #include "chemfiles/File.hpp" #include "chemfiles/Format.h...
<commit_before>/****************************************************************** * * uHTTP for C++ * * Copyright (C) Satoshi Konno 2002 * * This is licensed under BSD-style license, see file COPYING. * ******************************************************************/ #include <stdlib.h> #include <uhttp/http/HTTP...
<commit_before>#include <stan/services/util/experimental_message.hpp> #include <gtest/gtest.h> #include <stan/callbacks/stream_writer.hpp> #include <sstream> TEST(ServicesUtil, experimental_message) { std::stringstream ss; stan::callbacks::stream_writer writer(ss); stan::services::util::experimental_message(wri...
<commit_before>/* Copyright 2009 SPARTA, Inc., dba Cobham Analytic Solutions * * This file is part of WATCHER. * * WATCHER 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, either vers...
<commit_before>#include "apt_source_manager_page.h" #include "ui_apt_source_manager_page.h" #include <QDebug> #include "utilities.h" #include "Managers/tool_manager.h" APTSourceManagerPage::~APTSourceManagerPage() { delete ui; } APTSourcePtr APTSourceManagerPage::selectedAptSource = nullptr; APTSourceManagerPage...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fuline.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-12-14 16:59:36 $ * * The Contents of this file are made av...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fuslhide.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 05:39:39 $ * * The Contents of this file are made ...
<commit_before>/* smoothmove.cpp * Smooth motion source file */ #include "smoothmove.h" // Constructor SmoothMove::SmoothMove(boost::shared_ptr<AL::ALBroker> broker, const std::string &name) : AL::ALModule(broker, name) { // Set description, and bind each function setModuleDescription("Smooth movement testin...
<commit_before>#include "gui/boardwidget.hpp" #include <cmath> #include <SFML/Graphics/Vertex.hpp> #include <SFML/Graphics/VertexArray.hpp> #include <SFML/Graphics/PrimitiveType.hpp> #include <SFML/Graphics/RenderTarget.hpp> #include <SFML/Graphics/Transform.hpp> #include <SFML/Graphics/CircleShape.hpp> #include <SF...
<commit_before>#include "gusanos/allegro.h" #include "gconsole.h" #include "resource_list.h" #include "sprite.h" #include "level.h" #include "gusgame.h" #include "part_type.h" #include "particle.h" #include "CWormHuman.h" #include "util/macros.h" #ifndef DEDICATED_ONLY #include "CViewport.h" #include "font.h" #inclu...
<commit_before>/* Copyright (c) 2007, 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>/* Copyright (c) 2007, 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>/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/* Copyright (c) 2003, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>/* Copyright (c) 2003, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>/* Copyright (c) 2003, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>/* * Copyright 2007-2017 Content Management AG * All rights reserved. * * author: Max Kellermann <[email protected]> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>#include "mystring.hpp" <commit_msg>Implemented my string type.<commit_after>#include "mystring.hpp" ///////////// // Imports // #include <iostream> #include <string.h> #include "array.hpp" ////////// // Code // // Constructing a string from a c string. String::String(char* word) : Array<char>() { i...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before>void runPluginProof ( const char *runMode = "full", Int_t nmix = 50, //const char *clusterName = "alice-caf.cern.ch", //const char *dataSet = "/alice/sim/LHC10d1_000117112", //const char *options = "esd_mc", //const char *dataSet = "/alice/sim/LHC11a...
<commit_before>/* * FrameAverage.cpp * * Created on: Apr 22, 2010 * Author: Nathan Clack <[email protected]> */ /* * Notes for change to resizable queue * ----------------------------------- * - need current buffer size for push/pop...just need to keep track * - what happens if the source buffer ch...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date: 2008-02-25 17:27:17 +0100 (Mo, 25 Feb 2008) $ Version: $Revision: 7837 $ Copyright (c) German Cancer Research Center, Division of Medical and B...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<commit_before>#include <FancyMeshComponent.hpp> #include <iostream> #include <Core/String/StringUtils.hpp> #include <Core/Mesh/MeshUtils.hpp> #include <Core/Containers/MakeShared.hpp> #include <Core/Geometry/Normal/Normal.hpp> #include <Core/File/FileData.hpp> #include <Core/File/GeometryData.hpp> #include <Engine/...
<commit_before>#include <cmath> #include <Eigen/Dense> #include <gtest/gtest.h> class ReferenceFilter { public: ReferenceFilter( unsigned inputCount, unsigned outputCount ) : mW( Eigen::MatrixXf::Random( outputCount, inputCount ) ) {} Eigen::VectorXf operator()( Eigen::VectorXf inputs ) { ...
<commit_before>#include "GameStateHandler.h" GameStateHandler::GameStateHandler() { } GameStateHandler::~GameStateHandler() { } int GameStateHandler::ShutDown() { //Delete the states while (this->m_stateStack.size()) { GameState* temp; temp = this->m_stateStack.back(); delete temp; temp = nullptr; thi...
<commit_before>// -*- mode:C++; tab-width:3; c-basic-offset:4; indent-tabs-mode:nil -*- //Copyright: Universidad Carlos III de Madrid (C) 2016 //Authors: jgvictores, raulfdzbis, smorante #include "CgdaPaintFitnessFunction.hpp" namespace teo { /************************************************************************...
<commit_before>/** * @file uart.cpp * * @brief Contains uart access functionality * * Example usage: * @code * * Uart uart0(&UBRR0, &UCSR0A, &UCSR0B, &UCSR0C, &UDR0); * uart0.Init(9600); * * @endcode */ #include <stdint.h> #include <avr/io.h> #include <avr/interrupt.h> #include "uart.h" #include "utils/r...
<commit_before> #include <string.h> #include <math.h> #include <winsock2.h> #include <ws2tcpip.h> #pragma comment(lib, "ws2_32.lib") #include <windows.h> #include "GUI.h" using namespace System; using namespace System::Runtime::InteropServices; using namespace Microsoft::Win32; using namespace ExtIO_...
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011-2014 Martin Raiber * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as p...
<commit_before>#include "stdafx.h" #include "Core/WindowsApplication.h" #include "Sources/External/IMGUI/imgui_impl_win32.h" #include <functional> #include <Strsafe.h> #include "Core/CoreTypes.h" #include "Core/Input/Input.h" #include "Render/RenderSettings.h" namespace Kioto { namespace KiotoCore { void Init(); ...
<commit_before>#include <iomanip> #include <Castro.H> #include <Castro_F.H> #include <Geometry.H> void Castro::sum_integrated_quantities () { int finest_level = parent->finestLevel(); Real time = state[State_Type].curTime(); Real mass = 0.0; Real momentum[3] = { 0.0 }; Real rho_E...
<commit_before>#include "fetchers.hh" #include "store-api.hh" #include <filesystem> #include "archive.hh" namespace nix::fetchers { struct PathInputScheme : InputScheme { std::optional<Input> inputFromURL(const ParsedURL & url) override { if (url.scheme != "path") return {}; if (url.authority...
<commit_before>// // src/macho/container.cc // tbd // // Created by inoahdev on 4/24/17. // Copyright © 2017 inoahdev. All rights reserved. // #include "header/symbol_table.h" #include "container.h" namespace macho { container::container(FILE *file, long base) : file_(file), base_(base) { const au...
<commit_before>#include "machine/machine.hpp" #include <pthread.h> #include <semaphore.h> #include <cpu/intel8080.hpp> #include <SDL2/SDL.h> void *doCpuWork(void *arg) { pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL); struct timespec sleeptime; sleeptime.tv_sec = 0; sleeptime.tv_nsec = 10; ...
<commit_before>#include <imp/bridge/opencv/image_cv.hpp> #include <iostream> #include <imp/core/exception.hpp> #include <imp/bridge/opencv/cv_connector_pixel_types.hpp> namespace imp { //----------------------------------------------------------------------------- template<typename Pixel, imp::PixelType pixel_type...
<commit_before>#include "camera.h" #include <math.h> #include <glew.h> using namespace GluonGraphics; Camera::Camera() { mFoV = 45.0f; mAspect = 1.0f; mDepthNear = 1.0f; mDepthFar = 100.0f; mPosition = Eigen::Vector3f(-10, 0, 10); mLookAt = Eigen::Vector3f(0, 0, 0); mUp = Eigen::Vector3f(...
<commit_before>#ifndef ___INANITY_GRAPHICS_OPENGL_HPP___ #define ___INANITY_GRAPHICS_OPENGL_HPP___ #include "../Object.hpp" #ifdef ___INANITY_WINDOWS #define GLEW_STATIC #include "../deps/glew/include/GL/glew.h" #include "../windows.hpp" #include "../deps/glew/include/GL/wglew.h" #endif #ifdef ___INANITY_LINUX #incl...
<commit_before>/** * \file * \brief MessageQueue class header * * \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 w...
<commit_before>/* This file is part of Ingen. Copyright 2007-2015 David Robillard <http://drobilla.net/> Ingen 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, either version 3 of the License, or ...
<commit_before>//======================================================================= // Copyright (c) 2014-2015 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>/* * The MIT License * * Copyright 2017-2018 Norwegian University of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without ...
<commit_before>/** * @file mmio.hxx * @author Muhammad Osama ([email protected]) * @brief Matrix-Market file format header file, see mmio.cpp for implementation * details. * @version 0.1 * @date 2020-10-12 * * @copyright Copyright (c) 2020 * */ #if defined(__cplusplus) extern "C" { #endif /* * Matrix Ma...
<commit_before>/* Copyright (c) 2007, 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 "main_window.h" #include "ui_main_window.h" #include <QtGlobal> #include <scene_detector.h> main_window::main_window(QWidget* parent, CutDetector* detector) : QMainWindow(parent), ui(new Ui::main_window), comparator_options_dialog_(new ComparatorOptionsDialog( this, ...
<commit_before>/// /// @file StorePrimes.hpp /// @brief Store primes in a vector. /// /// Copyright (C) 2022 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef STOREPRIMES_HPP #define STOREPRIMES_HPP #include...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2011, 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> #include <boost/asio.hpp> #include <google/protobuf/service.h> #include <google/protobuf/descriptor.h> #include "vtrc-bind.h" #include "vtrc-function.h" #include "vtrc-common/vtrc-data-queue.h" #include "vtrc-common/vtrc-hash-iface.h" #include "vtrc-common/vtrc-transformer-iface.h" #include "vtrc-comm...
<commit_before>#include "MazeFileUtilities.h" #include <fstream> #include <iostream> #include <iterator> #include <sstream> #include <vector> #ifdef _WIN32 #include <windows.h> #elif __linux #include <limits.h> #include <unistd.h> #endif namespace sim { std::string getProjectDirectory(){ // This ap...
<commit_before>// Copyright (c) 2016-2019 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_BUFFER_INPUT_HPP #define TAO_PEGTL_BUFFER_INPUT_HPP #include <algorithm> #include <cassert> #include <cstddef> #include <cstdint> #include <cstring> ...
<commit_before>#pragma once #include <array> #include <string> class GLFWwindow; /** * This class defines GLFW based OpenGL Context. * There are two use cases of such a context : * - headless rendering application. * - simple window with limited interaction */ class OpenGLContext { public: /** @defgrou...
<commit_before>#ifndef TWISTEDCPP_MIXED_RECEIVER #define TWISTEDCPP_MIXED_RECEIVER #include "protocol_core.hpp" #include "detail/line_receiver_parser.hpp" #include "detail/byte_receiver_parser.hpp" #include <boost/container/vector.hpp> namespace twisted { template <typename ChildProtocol> class mixed_receiver :...
<commit_before>#ifndef V_SMC_HELPER_SEQUENTIAL_HPP #define V_SMC_HELPER_SEQUENTIAL_HPP namespace vSMC { /// \brief Type of weight returned by MoveSeq::move_state /// /// \li No_ACTION The weight is discarded without further action /// \li SET_WEIGHT The weight is set directly as the new weight /// \li SET_LOG_WEIGHT ...
<commit_before>/*************************************************************************** * Copyright (C) 2006 by Ingo Kloecker <[email protected]> * * * * This program is free software; you can redistribute it and/or modify ...
<commit_before>#include <float.h> #include <functional> #include <iostream> // NOLINT(readability/streams) #include "geometry/grassmann.hpp" #include "geometry/r3_element.hpp" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "quantities/astronomy.hpp" #include "quantities/BIPM.hpp" #include "quantities/co...
<commit_before>/** * @file llpacketbuffer.cpp * @brief implementation of LLPacketBuffer class for a packet. * * $LicenseInfo:firstyear=2001&license=viewergpl$ * * Copyright (c) 2001-2009, Linden Research, Inc. * * Second Life Viewer Source Code * The source code in this file ("Source Code") is provided by L...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/net/url_request_slow_download_job.h" #include "base/message_loop.h" #include "base/string_util.h" #inclu...
<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/password_manager/password_store_x.h" #include <algorithm> #include <map> #include <vector> #include "base/lo...
<commit_before>/* * Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS) * * This file is part of libbitcoin. * * libbitcoin is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pyuno_loader.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: vg $ $Date: 2007-10-11 15:52:28 $ * * The Contents of this file are ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: pyuno_loader.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-09-08 16:50:38 $ * * The Contents of this file are m...
<commit_before>/** * @file llmessageconfig_tut.cpp * @date March 2007 * @brief LLMessageConfig unit tests * * $LicenseInfo:firstyear=2006&license=viewergpl$ * * Copyright (c) 2006-2007, Linden Research, Inc. * * Second Life Viewer Source Code * The source code in this file ("Source Code") is provided by ...
<commit_before>/************************************************************************* * * $RCSfile: pyuno_except.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hjs $ $Date: 2003-08-18 15:01:33 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>#pragma once #ifndef _QI_SOCK_CONNECTEDSTATE_HPP #define _QI_SOCK_CONNECTEDSTATE_HPP #include <memory> #include <utility> #include <boost/optional.hpp> #include <qi/atomic.hpp> #include <qi/functional.hpp> #include <qi/future.hpp> #include <qi/messaging/sock/common.hpp> #include <qi/messaging/sock/receiv...
<commit_before>#include <stdlib.h> #include <string> #include "LinkerEngine.h" #include "ModuleEngine.h" #include "ObjectCode.h" using std::cout; using std::cin; using std::advance; using std::string; int main(int argc, char *argv[]) { int pause; string fileA = "arquivoTesteA.o"; string fileB = "arquivoTesteB.o"; ...
<commit_before>// [WriteFile Name=ConfigureSubnetworkTrace, Category=Analysis] // [Legal] // Copyright 2020 Esri. // 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/li...
<commit_before>// Copyright (c) 2021 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 "quic/test_tools/quic_test_backend.h" #include <cstring> #include <memory> #include "absl/strings/str_cat.h" #include "absl/...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: global.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: vg $ $Date: 2007-09-20 15:03:42 $ * * The Contents of this file are made a...
<commit_before>#include "Global.h" #include <vector> #include <iostream> #include <thread> #include <unordered_map> #include <cmath> #include <chrono> #include "Controller.h" #include "Job.h" #include "JobHandler.h" #include "Sensor.h" #include "Controller/UDPClientController.h" #include "Controller/FakeMotorControl...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // TODO : Support NP_ASFILEONLY mode // TODO : Support NP_SEEK mode // TODO : Support SEEKABLE=true in NewStream #include "webkit...
<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 "webkit/plugins/ppapi/ppb_pdf_impl.h" #include "app/resource_bundle.h" #include "base/metrics/histogram.h" #include "base/utf...
<commit_before>#pragma once //=====================================================================// /*! @file @brief ツールス・クラス @author 平松邦仁 ([email protected]) @copyright Copyright (C) 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master/LICENSE */...
<commit_before>#include "whitted_integrator.h" #include "diff_geom.h" #include "light.h" #include "brdf.h" namespace pt { WhittedIntegrator::WhittedIntegrator(const glm::vec3 &background, Scene scene) : background(background), scene(std::move(scene)) {} IntersectionResult WhittedIntegrator::integrate(ActiveRay &ray)...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: recoveryui.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 23:25:54 $ * * The Contents of this file are mad...
<commit_before>/* * Copyright (c) 2004 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyri...
<commit_before>/* * Copyright (c) 2004-2005 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above c...
<commit_before>/************************************************************************* * * $RCSfile: linkmgr2.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2004-10-04 20:45:28 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#include <opencv2/imgcodecs/imgcodecs.hpp> #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "floatMul.h" #include "featureSupport.h" #include <string> #include <iostream> #include <iomanip> #ifdef HAVE_CUDA // CUDA includes #include <...
<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 "base/file_util.h" #include "base/memory/ref_counted.h" #include "base/path_service.h" #include "chrome/browser/download/downl...
<commit_before><commit_msg>SetFmtItemByAutoFmt/SetTxtFmtCollByAutoFmt called with SwTxtNode<commit_after><|endoftext|>
<commit_before>#include "lrate.h" #include "tensor/momentum.h" #include "text/json_writer.h" #include "solver_stoch_adam.h" using namespace nano; solver_state_t stoch_adam_t::minimize(const stoch_params_t& param, const function_t& function, const vector_t& x0) const { const auto beta1s = make_finite_space(sca...
<commit_before>/** * The Seeks proxy and plugin framework are part of the SEEKS project. * Copyright (C) 2011 Emmanuel Benazera <[email protected]> * * This program 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...
<commit_before>#include "Bullet.h" #include <math.h> using namespace tdr; void tdr::Bullet::update() { if (useRadial) { int32_t nxs, nxy; sincos(angle, nxs, nxy); xs = multiply1616By230(speed, nxs); ys = multiply1616By230(speed, nxs); } else { rectp(xs, ys, speed, angle); } hitbox.c.x += xs; hitbox.c....
<commit_before><commit_msg>coverity#984422 unused pointer value<commit_after><|endoftext|>