text
stringlengths
54
60.6k
<commit_before>/**************************************************************************** This file is part of the QtMediaHub project on http://www.gitorious.org. Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).* All rights reserved. Contact: Nokia Corporation (qt-info@nokia.com)** You may use ...
<commit_before>/* * Copyright (c) 2015, Christian Menard * Copyright (c) 2015, Nils Asmussen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following ...
<commit_before>// $Id$ // The libMesh Finite Element Library. // Copyright (C) 2002-2008 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 Foun...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <qi/anyobject.hpp> #include "transportserver.hpp" #include <qi/messaging/serviceinfo.hpp> #include <qi/type/objecttypebuilder.hpp> #include "objectregistrar.hpp" #include "serverresult.hpp" #include <qi/os.hpp> #incl...
<commit_before>#include "gcoder_gantry.h" #include "gcoder.h" #include <cmath> #include <iostream> #include <sstream> namespace mgl { using std::ostream; using std::endl; using std::string; using std::stringstream; using libthing::LineSegment2; using libthing::Vector2; Gantry::Gantry(const GantryConfig& gCfg) : gant...
<commit_before>/* * SOPMQ - Scalable optionally persistent message queue * Copyright 2014 InWorldz, 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/li...
<commit_before>#ifndef MUTEXES_H #define MUTEXES_H #ifndef single_threaded #include<boost/thread/mutex.hpp> #include<boost/scoped_ptr.hpp> #endif #include<boost/noncopyable.hpp> class AppLock; class AppTryLock; class AppMutex : boost::noncopyable { private: #ifndef single_threaded boost::scoped_ptr<boost::try_m...
<commit_before>#include "ElementComparator.h" #include "catch.hpp" #include "refract/Element.h" using namespace drafter; using S = refract::StringElement; using N = refract::NumberElement; SCENARIO("Compare equality of elements", "[Element][comparate][equal]") { GIVEN("Two empty primitive elements of same type")...
<commit_before>#pragma once #include <vector> #include <tuple> #include <utility> namespace helene { namespace soa_detail { template <class MemberPointerType> struct deduce_member_pointer; template <class MemberType, class ObjectType> struct deduce_member_pointer<MemberType ObjectType::*> { typedef MemberType ...
<commit_before>/* * Copyright 2007-2015 The OpenMx 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 requi...
<commit_before>/** * This file is part of the CernVM File System. */ #include "gtest/gtest.h" #include "../../cvmfs/compression.h" #include "../../cvmfs/util.h" // TODO(jblomer): typed tests namespace zlib { // Test fixture that creates data structures necessary to test Compressor class T_Compressor : public ::...
<commit_before>#ifndef MJOLNIR_TEST_MAKE_EMPTY_INPUT_HPP #define MJOLNIR_TEST_MAKE_EMPTY_INPUT_HPP #include <extlib/toml/toml.hpp> #include <mjolnir/util/string.hpp> namespace mjolnir { namespace test { // make a minimal input file that contains no particle, no forcefield. // It contains only parameters that are need...
<commit_before>#include "vm_manager.h" #include "simulator.h" #include <boost/lexical_cast.hpp> #include "log.h" VMManager *VMManager::m_singleton = NULL; void VMManager::allocate() { assert (m_singleton == NULL); m_singleton = new VMManager(); } void VMManager::release() { delete m_singleton; m_singlet...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2010, 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>/* ** ** Copyright (C) 2012 Aldebaran Robotics */ #pragma once #ifndef _QIMESSAGING_SIGNAL_HPP_ #define _QIMESSAGING_SIGNAL_HPP_ #include <qimessaging/metafunction.hpp> #include <qimessaging/event_loop.hpp> #include <qimessaging/signature.hpp> namespace qi { class GenericObject; class SignalBaseP...
<commit_before>/* * Copyright (c) 2018 oxarbitrage, and contributors. * * The MIT License * * 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>/******************************************************************************** LibVideoGfx - video processing library Copyright (C) 2002 Dirk Farin 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>// The MIT License (MIT) // Copyright (c) 2013 lailongwei<lailongwei@126.com> // // 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 l...
<commit_before> #include <iostream> #include <string> #include <cstring> #include <algorithm> #include <stdexcept> #include <thread> #include <netdb.h> #include <unistd.h> #include <arpa/inet.h> using std::cerr; using std::endl; using std::string; using std::to_string; using std::memset; using std::fill_n; using std::...
<commit_before>#include <polar/core/polar.h> #include <random> namespace polar::core { polar::polar(std::vector<std::string> args) { srand((unsigned int)time(nullptr)); std::mt19937_64 rng(time(nullptr)); for(auto &arg : args) { if(arg == "-console") { #if defined(_WIN32) AllocConsole(); freopen("CO...
<commit_before>#ifndef SRC_PORTS_NODE_AWARE_HPP_ #define SRC_PORTS_NODE_AWARE_HPP_ #include <ports/detail/port_traits.hpp> #include <ports/connection_util.hpp> #include <core/connection.hpp> #include <threading/parallelregion.hpp> #include "connection_buffer.hpp" #include <nodes/base_node.hpp> namespace fc { template...
<commit_before>// @(#)root/gui:$Name: $:$Id: TRootEmbeddedCanvas.cxx,v 1.4 2001/04/04 13:38:38 rdm Exp $ // Author: Fons Rademakers 15/07/98 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>#include "tag-api.h" #include <QDomDocument> #include "models/site.h" #include "models/api.h" #include "vendor/json.h" #include "logger.h" #include "functions.h" TagApi::TagApi(Profile *profile, Site *site, Api *api, int page, int limit, QObject *parent) : QObject(parent), m_profile(profile), m_site(s...
<commit_before>#include "charitydialog.h" #include "ui_charitydialog.h" #include "walletmodel.h" #include "addressbookpage.h" #include "init.h" #include "base58.h" #include <QLineEdit> #include <QFile> // #include <QStringList> #include <QtNetwork> #include <QJsonDocument> StakeForCharityDialog::StakeForCharityDialog(...
<commit_before>// Copyright (c) 2011-2018 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <qt/qrimagewidget.h> #include <qt/guiutil.h> #include <QApplication> #include <QClipboard> #include...
<commit_before>// Copyright (c) 2018-2020 Daniel Kraft // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <rpc/auxpow_miner.h> #include <arith_uint256.h> #include <auxpow.h> #include <chainparams.h> #include <net.h> #incl...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>#include "capacitor.h" #include "time_ordered_set.h" #include "utils.h" #include "timeutil.h" #include <cassert> #include <algorithm> #include <list> #include <map> #include <limits> #include <utility> #include <mutex> using namespace dariadb; using namespace dariadb::storage; class Capacitor::Private ...
<commit_before>#include "rust_internal.h" #include "memory_region.h" // NB: please do not commit code with this uncommented. It's // hugely expensive and should only be used as a last resort. // // #define TRACK_ALLOCATIONS memory_region::memory_region(rust_srv *srv, bool synchronized) : _srv(srv), _parent(NULL),...
<commit_before>/* * Copyright (c) 2017 Axel Isouard <axel@isouard.fr> * * 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 re...
<commit_before>#include "runner/at_handler.hh" #include <iostream> #include <list> #include "scheduler/tag.hh" namespace runner { struct AtJob { AtJob(rObject condition, rObject clause, rObject on_leave, scheduler::tags_type tags) : condition_(condition), clause_(clause), on_leave_(on_l...
<commit_before>#ifdef COMPILING_HALIDE_RUNTIME #include "HalideRuntime.h" #define HALIDE_BUFFER_HELPER_ATTRS __attribute__((always_inline, weak)) #else #define HALIDE_BUFFER_HELPER_ATTRS inline #endif // Structs are annoying to deal with from within Halide Stmts. These // utility functions are for dealing with buffer_...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 The Apache Software Foundation. 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. Redi...
<commit_before>#include <pqxx/compiler.h> #include <iostream> #include <pqxx/binarystring> #include <pqxx/connection> #include <pqxx/transaction> #include <pqxx/result> using namespace PGSTD; using namespace pqxx; // Example program for libpqxx. Test binarystring functionality. // // Usage: test062 [connect-string...
<commit_before>/* This file is part of Ingen. Copyright 2007-2012 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>// =============================== // PC-BSD REST API Server // Available under the 3-clause BSD License // Written by: Ken Moore <ken@pcbsd.org> July 2015 // ================================= #include "WebServer.h" #include <QCoreApplication> #include <QUrl> #include <QFile> #include <QTextStream> #in...
<commit_before>/* Copyright (C) 1998 by Jorrit Tyberghein This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later ve...
<commit_before>/* Crystal Space utility library: string class Copyright (C) 1999,2000 by Andrew Zabolotny <bit@eltech.ru> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; e...
<commit_before>#ifndef IMAGE_MODEL_HPP #define IMAGE_MODEL_HPP #include <boost/thread.hpp> #include <boost/math/special_functions/sinc.hpp> #include "gqi_process.hpp" #include "image/image.hpp" struct ImageModel { public: Voxel voxel; unsigned int thread_count; std::string file_name,error_msg; gz_mat_...
<commit_before><commit_msg>make "Styles & Formatting" preview HiDPI aware<commit_after><|endoftext|>
<commit_before><commit_msg>Change order of "New folder" entry in move menu.<commit_after><|endoftext|>
<commit_before>#ifndef CATOMIC_STACK #define CATOMIC_STACK #include<atomic> #include<memory> //shared_ptr, make_shared #include<utility> //forward, move namespace nThread { //use std::shared_ptr to implement template<class T> class CAtomic_stack { public: using value_type=T; private: struct Node { value...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
<commit_before>/**************************************************************************** * * Copyright (c) 2015 Estimation and Control Library (ECL). All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
<commit_before>/* vim:ts=2 sw=2 sts=2 */ /* * EspEspWiFi - William Durand <will@drnd.me> - MIT License */ #include <Arduino.h> #include <SoftwareSerial.h> #include "EspWiFi.h" EspWiFi::EspWiFi( HardwareSerial & serial, const unsigned int resetPin, const unsigned long baud ) : serial_(& serial), resetPin_(rese...
<commit_before> /* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Test.h" #include "SkBitmap.h" #include "SkImage.h" #include "SkImageFilter.h" #include "SkImageFilterCacheKey.h" #include "SkMatrix.h" #include...
<commit_before>/* Queue World is copyright (c) 2014 Ross Bencina 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 t...
<commit_before>/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Test.h" #include "SkHalf.h" #include "SkRasterPipeline.h" DEF_TEST(SkRasterPipeline, r) { // Build and run a simple pipeline to exercise SkRaster...
<commit_before>// $Id$ //************************************************************************** //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * Copyright 2012 LibreOffice contributors. * * 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 ht...
<commit_before>// Copyright (c) 2009 OpenDNS Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "stdafx.h" #include "wbem.h" #include "StrUtil.h" #include "MiscUtil.h" static void SafeArrayDestroyAll(SAFEARRAY **arr) ...
<commit_before>/* Copyright 2017 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>#include "S25FL208K.h" #include <SPI.h> S25FL208K::S25FL208K(uint8_t csPin){ SPI.begin(); mCsPin = csPin; pinMode(mCsPin, OUTPUT); digitalWrite(mCsPin, 1); // active low, start disabled } // returns dynamic memory // therefore needs a delete[] call on the pointer when done uint8_t* S25FL208K::s...
<commit_before>#include "NotificationLoader.h" CNotificationLoader::CNotificationLoader() { m_hNotificationDLL = NULL; lpfn_Notify_FindClose = NULL; lpfn_Notify_FindFirst = NULL; lpfn_Notify_FindNext = NULL; lpfn_Notify_SetCycleInfo = NULL; lpfn_Notify_GetCycleInfo = NULL; lpfn_Notify_SetState ...
<commit_before>#include <pcl/filters/voxel_grid.h> #include <pcl/io/pcd_io.h> #include <pcl/octree/octree_search.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/registration/icp.h> #include <pcl_ros/point_cloud.h> #include <pcl_ros/transforms.h> #include <ros/publisher.h> #include <ros/ros.h>...
<commit_before>/* * Copyright 2011 Esrille 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
<commit_before>/* Copyright 2019 Andrei Khodko * * 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...
<commit_before>#include <stdlib.h> #include <stdio.h> #include <string> #include <unistd.h> #include <iostream> #include <gflags/gflags.h> #include <set> #include <boost/algorithm/string.hpp> #include "sort_file.h" #include "logging.h" #include "filesystem.h" #include "common/tools_util.h" DEFINE_int32(total, 0, "tota...
<commit_before>#include <QApplication> #include <QSettings> #include <QIcon> #include <QDebug> #include "appcontroller.h" #include "appwindow.h" #include "secondarywindow.h" #include "widgets/librarywidget.h" #include "widgets/secondary/loginwidget.h" #include "widgets/secondary/settingswidget.h" AppController::AppC...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the ...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>#include "SceneRace.hpp" #include "Game.hpp" SceneRace::SceneRace(Game* g, sf::RenderWindow* w) : Scene(g,w) { sf::Vector2u targetResolution(640,360); initView(sf::Vector2i(targetResolution)); sf::Vector2u displayResolution(_view.getSize()); _speed = 0; _nPlayers = 4; _rotation = 0; _players = s...
<commit_before>#include "catch.hpp" #include <member_iterator.hpp> #include <vector> #include <forward_list> #include <string> TEST_CASE("member_iterator to member of a mock struct in std::vector", "[member_iterator]") { struct mock { int something; double the_member; }; ...
<commit_before>#include "Simulation.h" #include "Buffer.h" #include "FrameBufferCache.h" #include "Kernel.h" #include "log.h" #include "StopWatch.h" #include "Vectors.h" #include "VertexArray.h" namespace ca { Simulation::Simulation(const Size& world_size) : world_size_(world_size), ...
<commit_before>#ifndef SILICIUM_DELEGATOR_GENERATE_HPP #define SILICIUM_DELEGATOR_GENERATE_HPP // enclosing namespace struct: #define DELEGATOR_TEMPLATE(...) template <__VA_ARGS__> #define DELEGATOR_NAME(name) \ struct name ...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-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 // ...
<commit_before>// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Mathematics module" // For conditions of distribution and use, see copyright notice in Config.hpp #pragma once #ifndef NAZARA_FRUSTUM_HPP #define NAZARA_FRUSTUM_HPP #include <Nazara/Core/String.hpp> #include <Nazara/Mat...
<commit_before>/** * \file * \brief Semaphore class header * * \author Copyright (C) 2014 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 with...
<commit_before>#include "visitors.hpp" #include "skeletons.hpp" #include <iostream> #include <functional> #include <algorithm> #include <tuple> #include <cmath> using namespace std; /////////////////////////////////////////////////////////////////////////////// template <typename Visitor, typename BinaryOp> double c...
<commit_before>#include "player.hpp" #include <SFML/System/Time.hpp> #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Window/Keyboard.hpp> #include <fstream> #include <sstream> //#define NDEBUG #include <assert.h> namespace aw { void Player::upate(const sf::Time &frameTime) { //let the gravitation do hi...
<commit_before>/// /// @file primecount-internal.hpp /// @brief primecount internal functions /// /// Copyright (C) 2019 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PRIMECOUNT_INTERNAL_HPP #define PRIMECO...
<commit_before>/// /// @file primecount-internal.hpp /// @brief primecount internal function definitions. /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef PRIMECOUNT_INTERNAL_HPP #...
<commit_before>/**************************************************************************** * * Copyright (c) 2013, 2014 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
<commit_before>// Filename: INSStaggeredVelocityBcCoef.C // Last modified: <03.Oct.2008 17:39:55 griffith@box230.cims.nyu.edu> // Created on 22 Jul 2008 by Boyce Griffith (griffith@box230.cims.nyu.edu) #include "INSStaggeredVelocityBcCoef.h" /////////////////////////////// INCLUDES ///////////////////////////////////...
<commit_before>#ifndef _TOOLBOX_ARGV_PARSER_HPP_ #define _TOOLBOX_ARGV_PARSER_HPP_ #include <tuple> #include <sstream> #include <iomanip> #include <algorithm> #include <getopt.h> #include <toolbox/cpp/tuple_for_each.hpp> #include <toolbox/cpp/make_ref_tuple.hpp> #include <toolbox/cpp/for_each_param.hpp> #include <tool...
<commit_before>#pragma once #include <charconv> #include <vili/parser/grammar.hpp> #include <vili/parser/parser_state.hpp> namespace vili::parser { template <typename Rule> struct action { }; template <> struct action<rules::string_content> { template <class ParseInput> st...
<commit_before>/** Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Roland Olbricht et al. * * This file is part of Overpass_API. * * Overpass_API 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 F...
<commit_before>/* This file is part of the ORK library. Full copyright and license terms can be found in the LICENSE.txt file. */ #pragma once #include "ork/memory.hpp" #include "ork/private/text_includes.hpp" #include "ork/string_utils.hpp" #include "ork/type_traits.hpp" #include "glm/fwd.hpp" namespace ork { // ...
<commit_before>/* Author : David Barnett Date : 03-10-2013 License: MIT License */ #include "Settings.h" #include <iosfwd> #include <iostream> using namespace IO; #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sstream> #include <algorithm> #include <iterator> #include "../etc/stri...
<commit_before>#include <windows.h> #include <tchar.h> #include "resource.h" #include "MyMsgProc.h" #include "server\LowDbAccess.h" #include "server\VarController.h" int GetMsgWidth(HWND WndHndl, TCHAR* Msg); int GetMsgHeight(HWND WndHndl, TCHAR* Msg); HWND HttpHdDelHttp = NULL; bool HttpHdDelHttpFlag = false; HWND H...
<commit_before>#ifndef RABENDALIB_STL_ALGOBASE #define RABENDALIB_STL_ALGOBASE #include "stl_config.hpp" #include "stl_iterator_base.hpp" #include "stl_pair.hpp" #include "type_traits.hpp" NAMESPACE_BEGIN(stl) template<class InputIterator1, class InputIterator2> inline bool equal(InputIterator1 first1, InputIterator1...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: acc_pipe.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-09-07 18:27:19 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * $RCSfile: acceptor.cxx,v $ * * $Revision: 1.15 $ * * last change: $Author: hr $ $Date: 2004-02-02 20:23:23 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#pragma once #include "../../../../include/cpp/ListNode.hxx" /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) { ...
<commit_before>/* * Copyright (C) 2018 ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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 * (at your op...
<commit_before>/* * measure_tool.cpp * * Created on: Aug 8, 2012 * Author: gossow */ #include "measure_tool.h" #include "rviz/ogre_helpers/shape.h" #include "rviz/viewport_mouse_event.h" #include "rviz/display_context.h" #include "rviz/selection/selection_manager.h" #include <OgreSceneNode.h> namespace r...
<commit_before>#include "SqliteConnector.h" #include <CDebug.h> namespace metacpp { namespace sql { namespace connectors { namespace sqlite { SqliteConnector::SqliteConnector(const String &databaseName) : m_databaseName(databaseName), m_dbHandle(nullptr) { } SqliteConnector::~SqliteConnector() { if (m_dbHan...
<commit_before>#include "halley/tools/assets/import_tool.h" #include "halley/tools/codegen/codegen.h" #include <iostream> #include "halley/tools/project/project.h" #include "halley/tools/tasks/editor_task_set.h" #include "halley/tools/assets/check_assets_task.h" #include <thread> #include <chrono> #include "halley/tool...
<commit_before>#pragma once #include "boost_defs.hpp" #include "apple_hid_usage_tables.hpp" #include "userspace_types.hpp" #include <IOKit/hid/IOHIDDevice.h> #include <IOKit/hid/IOHIDElement.h> #include <IOKit/hid/IOHIDQueue.h> #include <IOKit/hid/IOHIDUsageTables.h> #include <IOKit/hid/IOHIDValue.h> #include <boost/...
<commit_before>#include <Arduino.h> #include "SoftwareSerial.h" #include "A6lib.h" #ifdef DEBUG #define log(msg) Serial.print(msg) #define logln(msg) Serial.println(msg) #else #define log(msg) #define logln(msg) #endif #define countof(a) (sizeof(a) / sizeof(a[0])) #define OK 1 #define NOTOK 2 #define TIMEOUT 3 #def...
<commit_before>#include <iostream> #include <stdlib.h> #include <string.h> using namespace std; struct edge { char* start; char* end; int pathCost; // int directPath; }; class graph { private: int** path; int** directPath; char** names; char** shortNames; int noOfNodes; public: gr...
<commit_before>#define WIN32_LEAN_AND_MEAN #include <iostream> #include <map> #include <memory> #include <sstream> #include <string> #include <utility> #include <uv.h> #include <vector> #include <windows.h> #include "../../helper/windows/helper.h" #include "../../lock.h" #include "../../log.h" #include "../../message...
<commit_before>#include "queryview.h" ulong QueryView::queryViewObjectId = 0; QueryView::QueryView(QWidget *parent, QSqlQueryModel* model, QString const name, int const time, int const rows, int const cols, Qt::WidgetAttribute f) { //Identify this object with thisTableViewId for constr...
<commit_before>// // Aspia Project // Copyright (C) 2019 Dmitry Chapyshev <dmitry@aspia.ru> // // 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 3 of the License, or // (at your ...
<commit_before>#include <iostream> #include <immintrin.h> #include <new> #include <cassert> #include <sstream> #include "simd_util.h" #include "pauli_string.h" #include <cstring> #include <cstdlib> #include <bit> PauliStringPtr::PauliStringPtr( size_t init_size, BitPtr init_sign, ui...
<commit_before>// Copyright (c) 2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <chainparams.h> #include <compressor.h> #include <core_io.h> #include <core_memusage.h> #include <policy/p...
<commit_before>#include "include/rados/librados.h" #include "test/rados-api/test.h" #include <errno.h> #include "gtest/gtest.h" TEST(LibRadosIo, SimpleWrite) { char buf[128]; rados_t cluster; rados_ioctx_t ioctx; std::string pool_name = get_temp_pool_name(); ASSERT_EQ(0, create_one_pool(pool_name, &cluster)...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved */ #include "../StroikaPreComp.h" #include "../Characters/Format.h" #include "../Characters/String_Constant.h" #include "../Characters/ToString.h" #include "../Containers/Bijection.h" #include "../DataExchange/Variant/CharacterD...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved */ #ifndef _Stroika_Foundation_DataExchangeFormat_ObjectVariantMapper_inl_ #define _Stroika_Foundation_DataExchangeFormat_ObjectVariantMapper_inl_ 1 /* *************************************************************************...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved */ #include "../../StroikaPreComp.h" #include "../../Characters/Format.h" #include "../BadFormatException.h" #include "SAXObjectReader.h" using namespace Stroika; using namespace Stroika::Foundation; using...