text
stringlengths
54
60.6k
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCTileModule.cpp // @Author : LvSheng.Huang // @Date : 2017-02-25 // @Module : NFCTileModule // // -------------------------------------------------------...
<commit_before>//////////////////////////////////////////////////////////////////////// // DESCRIPTION: // // Produces the MEL command "scanDag". // // This plug-in demonstrates walking the DAG using the DAG iterator class. // // To use it: // (1) Create a number of objects anywhere in the scene. // (2) Execute the c...
<commit_before>#include "queueloader.h" #include <cerrno> #include <cstdlib> #include <cstdio> #include <cstring> #include <fstream> #include <iostream> #include <libgen.h> #include <unistd.h> #include "config.h" #include "configcontainer.h" #include "logger.h" #include "stflpp.h" #include "strprintf.h" #include "uti...
<commit_before>/* * Copyright (c) 2014 liblcf authors * This file is released under the MIT License * http://opensource.org/licenses/MIT */ #include "reader_options.h" #ifdef LCF_SUPPORT_ICU # include "unicode/ucsdet.h" # include "unicode/ucnv.h" #else # ifdef _WIN32 # include <cstdio> # define WIN32_LEAN...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: CRowSetDataColumn.hxx,v $ * * $Revision: 1.16 $ * * last change: $Author: hr $ $Date: 2006-06-20 02:34:16 $ * * The Contents of this file...
<commit_before>#include "UNIFAQLibrary.h" namespace UNIFAQLibrary{ void UNIFAQParameterLibrary::jsonize(std::string &s, rapidjson::Document &d) { d.Parse<0>(s.c_str()); if (d.HasParseError()) { throw -1; } else { return; } } void UNIFAQPa...
<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "CompassModel.h" #include "EnvironmentFlatteningService.h" #include "IAppCameraController.h" #include "CameraHelpers.h" #include "RenderCamera.h" #include "VectorMath.h" #include "NavigationService.h" #include "ILocationService.h" #include...
<commit_before>/************************************************ Scanner This file which operate scanning represents one node of the entire demonstrator ************************************************/ // Standard headers #include <string> #include <iostream> // ROS headers #include <ros/ros.h> #include <ros/service...
<commit_before>#include "Messaging/RpcHandler.hpp" #include "Transports/AddressFactory.hpp" #include "Connection.hpp" #include "ConnectionManager.hpp" using Dissent::Transports::AddressFactory; namespace Dissent { namespace Connections { ConnectionManager::ConnectionManager(const Id &local_id, RpcHandler &rpc) : ...
<commit_before>#ifndef ALGORITHM #define ALGORITHM #include<algorithm> //move #include<cstddef> #include<functional> #include<iterator> #include<type_traits> //make_unsigned #include<utility> //move #include"../thread/CSmartThread.hpp" namespace nAlgorithm { template<class T,class UnaryPred> bool all_of_val(T begin,...
<commit_before>#include "QuantityDefinitionsTest.h" #include "QuantityTestMain.h" #include "odr_test/QDummyTranslationUnit1.h" #include "odr_test/QDummyTranslationUnit2.h" #include <src/quantity/Quantity.h> #include <src/quantity/quantityDefinitionsSI.h> #include <src/quantity/quantityMath.h> #include <src/quantity/q...
<commit_before>#include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> #include <signal.h> #include <curl/curl.h> #include "fcgiapp.h" #include "common/ceph_argparse.h" #include "global/global_init.h" #include "...
<commit_before>#include "PhysicsManager.hpp" #include <btBulletDynamicsCommon.h> #include <glm/gtx/quaternion.hpp> #include "../Component/RigidBody.hpp" #include "../Component/Shape.hpp" #include "../Entity/Entity.hpp" #include "../Physics/GlmConversion.hpp" #include "../Physics/Shape.hpp" #include "../Physics/Trigger...
<commit_before>#include <Engine/Renderer/Camera/Camera.hpp> #include <Core/Math/Math.hpp> #include <Engine/Renderer/Mesh/Mesh.hpp> #include <Engine/Renderer/RenderObject/RenderObject.hpp> #include <Engine/Renderer/RenderTechnique/ShaderConfigFactory.hpp> namespace Ra { using Core::Math::Pi; using Core::Math::PiDiv2...
<commit_before>#include <Engine/Renderer/Camera/Camera.hpp> namespace Ra { namespace Engine { inline Core::Transform Camera::getFrame() const { return m_frame; } inline void Camera::setFrame( const Core::Transform& frame ) { m_frame = frame; } inline Core::Vector3 Camera::getPosition() const { return ( ...
<commit_before>/* * Logging infrastructure that aims to support multi-threading, * and ansi colors. */ #include "rust_internal.h" #include "util/array_list.h" #include <stdarg.h> #include <stdlib.h> #include <string.h> static const char * _foreground_colors[] = { "[37m", ...
<commit_before>#include <iostream> #include <fstream> #include <sstream> #include <string> #include <map> #include <vector> #include <algorithm> #include <cstring> using namespace std; int main(int argc, char *argv[]) { ifstream inFile; map<string, int> wordCount; map<int, vector<string>> b...
<commit_before>// Copyright Sergey Anisimov 2016-2017 // MIT License // // Gluino // https://github.com/anisimovsergey/gluino #ifndef MESSAGING_QUEUE_RESOURCE_CLIENT_HPP #define MESSAGING_QUEUE_RESOURCE_CLIENT_HPP #include "QueueClient.hpp" #include "ResourceResponseHandler.hpp" #include "ResourceEventHandler.hpp" #...
<commit_before><commit_msg>Sketcher: Trigger elements widget update on toggle/set construction geometry<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>/* * Copyright (C) 2015 deipi.com LLC and contributors. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limit...
<commit_before>// Copyright (c) 2002-2010, Boyce Griffith // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // ...
<commit_before>//===-- IncludeFixer.cpp - Include inserter based on sema callbacks -------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* Copyright 2019 Benjamin Worpitz * * This file is part of Alpaka. * * 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/. */ #pragma once #ifdef ALPA...
<commit_before>// Copyright 2018 Global Phasing Ltd. // // Reading coordinates from chemical component or Refmac monomer library files. #ifndef GEMMI_CHEMCOMP_XYZ_HPP_ #define GEMMI_CHEMCOMP_XYZ_HPP_ #include <array> #include "cifdoc.hpp" // for Block, etc #include "numb.hpp" // for as_number #include "model.hpp" ...
<commit_before>//===- examples/Tooling/ClangCheck.cpp - Clang check tool -----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* * Copyright (c) 2015-2016, Technische Universität Dresden, Germany * 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 ab...
<commit_before>#pragma once #include <utility> #include "reflection_info.hpp" namespace shadow { //////////////////////////////////////////////////////////////////////////////// // user facing API types carrying information and functionality for the // reflection system class reflection_manager; // holds one value...
<commit_before>/* A general purpose stripifier, based on NvTriStrip (http://developer.nvidia.com/) Credit for porting NvTriStrip to Python goes to the RuneBlade Foundation library: http://techgame.net/projects/Runeblade/browser/trunk/RBRapier/RBRapier/Tools/Geometry/Analysis/TriangleStripifier.py?rev=760 The algorit...
<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 "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/browser.h" #include "chrome/browser/prefs/pref_servi...
<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/sync_promo/sync_promo_ui.h" #include "base/command_line.h" #include "base/utf_string_conversions.h" ...
<commit_before><commit_msg>Modifies the toast to append "--system-level" if a system-level install is attempting to relaunch setup.<commit_after><|endoftext|>
<commit_before><commit_msg>Adding ..\ClientState\<ChromeGuid>\client key to the uninstall metrics for Google Chrome build.<commit_after><|endoftext|>
<commit_before>#include "omp.h" inline kth_cv_omp::kth_cv_omp(const std::string in_path, const std::string in_actionNames, const field<std::string> in_all_people, const int in_scale_factor, const int in_shift, const int in_scene, //only for kth const int in_segment_length, const int in_dim ):path(...
<commit_before><commit_msg>Fixed crash at FStatement disposing stage.<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: FPreparedStatement.hxx,v $ * * $Revision: 1.16 $ * * last change: $Author: rt $ $Date: 2005-09-08 07:08:33 $ * * The Contents of this fil...
<commit_before>/////////////////////////////////////////////////////////////////////// // File: combine_tessdata // Description: Creates a unified traineddata file from several // data files produced by the training process. // Author: Daria Antonova // Created: Wed Jun 03 11:26:43 PST 2009...
<commit_before>// @(#)root/treeviewer:$Name: $:$Id: HelpTextTV.cxx,v 1.8 2001/02/22 15:15:52 brun Exp $ // Author: Andrei Gheata 02/10/00 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>// Example macro to show unuran capabilities // The results are compared with what is obtained using TRandom or TF1::GetRandom // The macro is divided in 3 parts: // - testStringAPI : show how to use string API of UNURAN to generate Gaussian random numbers // - testDistr1D : s...
<commit_before>#include "S_World.h" #include "j1Input.h" #include "SDL\include\SDL.h" #include "j1Scene.h" #include "p2Log.h" #include "j1App.h" #include "j1Map.h" #include "j1Render.h" #include "j1Textures.h" #include "j1Pathfinding.h" #include "j1App.h" #include "j1Player.h" #include "j1Camera.h" #include "j1HUD.h" #...
<commit_before>#ifndef MTL_STREAM_CHANNEL_NETLINKsocketManager #define MTL_STREAM_CHANNEL_NETLINKsocketManager #include <utility> #include <functional> #include <vector> #include <memory> #include <thread> #include <array> #include "netLink/netLink.h" namespace mtl { namespace netLink { template<typename Stream>...
<commit_before>#include "FanCalculatorScene.h" #include "../mahjong-algorithm/stringify.h" #include "../mahjong-algorithm/fan_calculator.h" #include "../widget/TilePickWidget.h" #include "../widget/ExtraInfoWidget.h" #include "../widget/AlertView.h" #include "../widget/TilesKeyboard.h" USING_NS_CC; Scene *FanCalcula...
<commit_before>// Example of analysis class for the H1 data using code generated by MakeProxy. // =========================================================================== // // This file uses 4 large data sets from the H1 collaboration at DESY Hamburg. // One can access these data sets (277 MBytes) from the standard...
<commit_before>#include <iostream> #include "http.h" using namespace native::http; int main() { http server([](request& req, response& res){ res.set_status(200); res.set_header("Content-Type", "text/plain"); res.end("C++ FTW!\n", [=](int status) {}); }); std::cout << "Server running at http://0.0.0.0:80...
<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>// Copyright 2017 Henrik Steffen Gaßmann // // Licensed under the MIT License. // See LICENSE file in the project root for full license information. // //#include "precompiled.hpp" #include <sexpr-cpp/data.hpp> #include "data-helpers.hpp" #include "boost-unit-test.hpp" BOOST_TEST_DONT_PRINT_LOG_VALUE(s...
<commit_before>// Copyright 2019 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-2.0 // // Unless required by applicable law o...
<commit_before>#include <string> #include <queue> #include <iostream> #include "tpunit++.hpp" #include "fakeit.h" #include "fakeit/Exceptions.h" using namespace fakeit; using namespace std; struct DemoTests : tpunit::TestFixture { DemoTests() : tpunit::TestFixture( // // TEST(DemoTests::calling_an_unstubbed_meth...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <time.h> #include <opencv2/opencv.hpp> #include <opencv2/highgui/highgui.hpp> #include "camera.hpp" #pragma comment(lib,"opencv_world320.lib") static const int N = 256;//文字列の長さ static const int AOV = 62.2;//ANGLE OF VIEW //明度について static const int MAX_VALU...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: Image5.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCopyright.txt ...
<commit_before>/* openDCM, dimensional constraint manager Copyright (C) 2012 Stefan Troeger <stefantroeger@gmx.net> 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...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: ImageRegistration4.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITKCo...
<commit_before>#include "fluidsystem.h" #include "camera.h" #include "vertexrecorder.h" #include <iostream> #include <math.h> #include <algorithm> // std::max #include "particle.h" #include "wall.h" using namespace std; // your system should at least contain 8x8 particles. const int N = 5; const fl...
<commit_before>#include "../../src/utki/debug.hpp" #include "../../src/utki/math.hpp" #include "tests.hpp" namespace TestBasicMathStuff{ void Run(){ ASSERT_ALWAYS(sin((long double)(0)) == 0) ASSERT_ALWAYS(abs(sin(utki::pi<long double>() / 2) - 1) < 0.00001) ASSERT_ALWAYS(abs(sin(utki::pi<long double>())) < 0....
<commit_before>#include <stdlib.h> #include <sys/socket.h> #include <string.h> #include <netinet/in.h> #include <cstring> #include <stdio.h> #include <string> #include <iostream> #include <list> #include <map> #include <set> #include "server.h" #include "duckchat.h" // TODO Handle domain // Server can accept connecti...
<commit_before>#include <stdlib.h> #include <sys/socket.h> #include <string.h> #include <netinet/in.h> #include <cstring> #include <stdio.h> #include <string> #include <iostream> #include <list> #include <map> #include "server.h" #include "duckchat.h" // TODO Server can accept connections. // TODO Server handles Log...
<commit_before>// Copyright [2014] <lgb (LiuGuangBao)> //===================================================================================== // // Filename: server.hpp // // Description: 服务器框架 // // Version: 1.0 // Created: 2013年03月05日 17时15分56秒 // Revision: none // Compiler: gcc ...
<commit_before>#include <stdexcept> #include "helpers.h" #include "device-interface.h" #include "input-driver-test.h" #include <xorg/gtest/xorg-gtest.h> #include <X11/extensions/XInput.h> #include <X11/extensions/XInput2.h> /** * A test fixture for testing the XInput 2.x extension. * * @tparam The XInput 2.x min...
<commit_before>// Comprehensive stress test for socket-like API #include <stdio.h> #include <unistd.h> #include <sys/socket.h> #include <arpa/inet.h> #include <string.h> #include <netdb.h> #include "libzt.h" #define NETWORK_ID "8056c2e21c000001" #define PORT 7878 #define BUF_SIZE 2000 void attach(int from_fd, int...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xpathapi.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: ihi $ $Date: 2006-12-20 14:18:02 $ * * The Contents of this file are made...
<commit_before>#pragma once #include <Arduino.h> #include <SPI.h> class serprog { Stream& in; Print& out; SPISettings cfg; int cs; void (serprog::* cmds[32])() { &serprog::ack, /* 0x00 */ &serprog::version, /* 0x01 */ &serprog::map, /* 0x02 */ &serprog::name, /* 0x03 */ &serprog::size, ...
<commit_before>#ifndef _DATA_STRUCTURES_HPP #define _DATA_STRUCTURES_HPP /** * Includes any data structures required for ray-tracing. * Currently supports points, rays, and vectors */ /** * Represents a color in RGBA format */ class Color{ public: float red, green, blue; /** * Constructor for o...
<commit_before>#include <iostream> #include "opencv2/core.hpp" #include "opencv2/imgcodecs.hpp" #include "opencv2/imgcodecs/imgcodecs_c.h" using namespace cv; #include "Reddit.hpp" #include "../constants.hpp" #include "../util/math.hpp" #include "../util/file.hpp" #include "../features/feature.hpp" #include "../featu...
<commit_before>#include <limits> #include <stdio.h> #include <stdexcept> #include <cassert> #include <boost/shared_ptr.hpp> #include <geneial/algorithm/BaseGeneticAlgorithm.h> #include <geneial/core/fitness/Fitness.h> #include <geneial/core/fitness/FitnessEvaluator.h> #include <geneial/core/population/PopulationSett...
<commit_before>/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * _______ _ * * ( ____ \ ( \ |\ /| * * | ( \/ | ( ( \ / ) * * ...
<commit_before>struct State { }; {{ GENERATED_CODE }} void evaluate(Context ctx) { if (!isInputDirty<input_IN>(ctx)) return; auto line = getValue<input_IN>(ctx); TimeMs tNow = transactionTime(); XOD_DEBUG_SERIAL.print(F("+XOD:")); XOD_DEBUG_SERIAL.print(tNow); XOD_DEBUG_SERIAL.print(':'); XOD_DE...
<commit_before>/* bzflag * Copyright (c) 1993 - 2005 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 LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<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) 2010-2013 Francois Beaune, Jupiter Jazz Limited // // Permission is hereby granted, free of charge, to any pe...
<commit_before>#include <agency/future.hpp> #include <agency/new_executor_traits.hpp> #include <agency/coordinate.hpp> #include <iostream> #include <cassert> #include "test_executors.hpp" template<class Executor> void test() { using executor_type = Executor; { executor_type exec; size_t n = 100; int...
<commit_before><commit_msg>Fix build.<commit_after><|endoftext|>
<commit_before>#include <opencv/cv.h> #include <opencv/highgui.h> #include <iostream> using namespace std; using namespace cv; #define VIDEO_DEVICE_NO 1 #define AREA_LIMIT 1500 #define ARC_LENGTH_LIMIT 30000 #define TRACE_LENGTH_LIMIT_LOW 50 #define TRACE_LENGTH_LIMIT_HIGH 300 #define PACE_THRESHOLD 30 #define START_D...
<commit_before>#include "llvm/Pass.h" #include "llvm/IR/Function.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/Module.h" #include "llvm/IR/InstIterator.h" #include "llvm/IR/IRBuilder.h" #include "llvm/Support/raw_ostream.h" #include <unordered_set> #include <vector> using namespace llvm; namespace { struct ...
<commit_before>/* This file is part of Zanshin Todo. Copyright 2008-2009 Kevin Ottens <ervin@kde.org> 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 o...
<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) 2017, 2018 Dennis Wölfing * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" A...
<commit_before>/* Copyright (c) 2017 InversePalindrome Memento Mori - AnimationComponent.cpp InversePalindrome.com */ #include "AnimationComponent.hpp" #include <Thor/Animations/FrameAnimation.hpp> #include <fstream> AnimationComponent::AnimationComponent() : Component(Component::ID::Animation), ...
<commit_before>#include "EntityLoggerSystem.h" #include "AntTweakBarWrapper.h" #include <ToString.h> EntityLoggerSystem::EntityLoggerSystem() : EntitySystem(SystemType::EntityLoggerSystem) { } EntityLoggerSystem::~EntityLoggerSystem() { } void EntityLoggerSystem::added( Entity* p_entity ) { AntTweakBarWrapper::get...
<commit_before>#include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> //using namespace pcl; int main (int argc, char** argv) { pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>); if (pcl::io::loadPCDFile<pcl::PointXYZ> ("test_pcd.pcd", *cloud) == -1) //* load the...
<commit_before>#ifndef GDE_CORE_TYPES_HPP #define GDE_CORE_TYPES_HPP #include <map> #include <string> namespace GDE { // Fowards Declarations class App; class Scene; class SceneManager; class ConfigReader; class ConfigCreate; // Tipos de Log enum LogType { infoLevel = 0, debugLevel = 1, errorLevel = 2, warnin...
<commit_before>// Copyright (C) 2014 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/Core/Debug.hpp> namespace std { template<> struct hash<NzString> { public: size_t operator()(co...
<commit_before>#pragma once #ifndef DEBUG_H #define DEBUG_H #include <UtH\Platform\OpenGL.hpp> #include <assert.h> #include <iostream> #include <AL\al.h> #include <AL\alc.h> #if defined(UTH_SYSTEM_ANDROID) #include <android/log.h> #ifndef LOG_TAG #define LOG_TAG "uth-engine" #endif #ifndef LOGI #define LOGI...
<commit_before>#ifndef GP_PROBLEM_PROBLEM #define GP_PROBLEM_PROBLEM #include <any> #include <algorithm> #include <gp/utility/type.hpp> #include <gp/utility/variable.hpp> #include <gp/utility/result.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/xml_parser.hpp> #include <climits> #include...
<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>/* * Portability.hh * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Bastiaan Bakker. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #ifndef _LOG4CPP_PORTABILITY_HH #define _LOG4CPP_PORTABILITY_HH #if de...
<commit_before>/* 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/.*/ #ifndef MYSQL_BASIC_ENGINE_HPP #define MYSQL_BASIC_ENGINE_HPP #include "impl/basic_engine_impl.hpp" ...
<commit_before>/* * Copyright (c) 2015-2016, Technische Universität Dresden, Germany * 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 ab...
<commit_before>// This file is a part of Simdee, see homepage at http://github.com/tufak/simdee // This file is distributed under the MIT license. #ifndef SIMDEE_COMMON_EXPR_HPP #define SIMDEE_COMMON_EXPR_HPP #include "../common/casts.hpp" #include <limits> namespace sd { namespace expr { template <typen...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2020 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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; eit...
<commit_before>#include "texturetile.h" #include <QtCore/QDebug> #include "katlasdirs.h" #include "TileLoader.h" static uint **jumpTableFromQImage32( QImage &img ) { const int height = img.height(); const int bpl = img.bytesPerLine() / 4; uint *data = (QRgb*)(img.scanLine(0)); uint **j...
<commit_before><commit_msg>Fixing crash with dereferencing front() and back() of an empty vector<commit_after><|endoftext|>
<commit_before><commit_msg>Related: fdo#58819 VML import: shape types not starting with a hashmark are OK<commit_after><|endoftext|>
<commit_before> #include "vio/timegrabber.h" #include <sstream> #include "vio/eigen_utils.h" #include "vio/utils.h" using namespace std; namespace vio { TimeGrabber::TimeGrabber() : last_line_index(-1), last_line_time(-1), isTimeFormatSet(false) {} TimeGrabber::TimeGrabber(const string time_file_name) : time...
<commit_before>/* * opencog/atomspace/Handle.cc * * Copyright (C) 2002-2007 Novamente LLC * Copyright (C) 2013 Linas Vepstas <linas@linas.org> * All Rights Reserved * * Written by Thiago Maia <thiago@vettatech.com> * Andre Senna <senna@vettalabs.com> * * This program is free software; you can redis...
<commit_before>#line 2 "togo/traits.hpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. @file @brief Type traits. @ingroup utility */ #pragma once #include <togo/config.hpp> namespace togo { /** @addtogroup utility @{ */ /** @name Type traits */ /// @{ /// Type with static constex...
<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 "images.h" #include "util/filesystem.h" #include <Magick++.h> #include <iostream> using Magick::Color; using std::cerr; using std::endl; #if FEATURE_IMAGE_LOADING Color to_magick(const spectrum& c) { scalar s = ((1 << QuantumDepth) - 1); spectrum clamped = c.clamp(0, 1); Color color; ...
<commit_before>// Copyright (c) 2015 Sze Howe Koh // This code is licensed under the MIT license (see LICENSE.MIT for details) #include "wikiquerier.h" #include <QNetworkAccessManager> #include <QNetworkCookieJar> #include <QNetworkCookie> #include <QNetworkReply> #include <QJsonDocument> #include <QJsonObject> #incl...
<commit_before>/* Copyright (C) 2011-2013 Yubico AB. 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, this list of cond...
<commit_before>#include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/Module.h" #include "llvm/Instructions.h" #include "llvm/Support/CallSite.h" #include "llvm/Constants.h" #include "llvm/LLVMContext.h" #include "llvm/GlobalVariable.h" #include "llvm/Support/IRBuilder.h" #include "llvm/Analysis/LoopInfo.h" #...