text
stringlengths
54
60.6k
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: configdlg.cpp // Purpose: Implementation of wxExtension config dialog class // Author: Anton van Wezenbeek // Copyright: (c) 2012 ///////////////////////////////////////////////////////////////////////////...
<commit_before>/********************************************************************** * File: serialis.h (Formerly serialmac.h) * Description: Inline routines and macros for serialisation functions * Author: Phil Cheatle * Created: Tue Oct 08 08:33:12 BST 1991 * * (C) Copyright 1990, Hewlett-Pac...
<commit_before>#include "gamelib/editor/editor/tools/BrushTool.hpp" #include "imgui.h" #include "imgui-SFML.h" #include "gamelib/utils/log.hpp" #include "gamelib/core/ecs/EntityFactory.hpp" #include "editor/components/BrushComponent.hpp" #include "gamelib/components/rendering/PolygonShape.hpp" #include "gamelib/editor/...
<commit_before>#include <shared_ptr.h> #include <move.h> #include "yatf/include/yatf.h" using namespace yacppl; TEST(shared_ptr, can_create_empty_pointer) { shared_ptr<int> ptr; REQUIRE(ptr.get() == nullptr); REQUIRE(ptr.get_ref_count() == 0); } TEST(shared_ptr, can_create_valid_pointer) { shared_pt...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2017 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<commit_before>#include "inferer.h" #include <functional> #include <unordered_map> namespace { using namespace grml; struct LiteralInferer : boost::static_visitor<Type> { Type operator()(int) const { return BasicType::INT; } Type operator()(bool) const { return BasicType::BOOL; } Type...
<commit_before>// testConfig.cpp : Derived from testPattern.cpp. // #include "log4cpp/Portability.hh" #ifdef WIN32 #include <windows.h> #endif #ifdef LOG4CPP_HAVE_UNISTD_H #include <unistd.h> #endif #include "log4cpp/Category.hh" #include "log4cpp/Appender.hh" #include "log4cpp/OstreamAppender.hh" #include "log4cpp/...
<commit_before><commit_msg>Improvement in the speed of general memory access. The idea was taken from patch written by LightCone<commit_after><|endoftext|>
<commit_before>/**************************************************************************** * * Copyright (c) 2018 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 met: *...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2014 Sanjiban Bairagya <sanjiban22393@gmail.com> // #include "PlaybackAn...
<commit_before>#include "des.h" #include "des_data.h" DES::DES(ui64 key) { keygen(key); } ui64 DES::encrypt(ui64 block) { return des(block, false); } ui64 DES::decrypt(ui64 block) { return des(block, true); } ui64 DES::encrypt(ui64 block, ui64 key) { DES des(key); return des.des(block, false); }...
<commit_before>/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkPath.h" #include "SkRandom.h" #define W 400 #define H 400 #define N 10 constexpr SkScalar SH = SkIntToScalar(H); static voi...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkBlurDrawLooper.h" namespace skiagm { /////////////////////////////////////////////////////////////////////////////// static void ...
<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/. */ #include "RequestHandlerDispatcher.h" #include "Optional.h" #include "RequestHandler.h" #include "...
<commit_before>/*ckwg +5 * Copyright 2011 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 "homography_reader_process.h" #include <vistk/utilities/homography.h...
<commit_before>#include "UnitTest++/UnitTestPP.h" #include "RecordingReporter.h" #include "UnitTest++/ReportAssert.h" #include "UnitTest++/TestList.h" #include "UnitTest++/TimeHelpers.h" #include "UnitTest++/TimeConstraint.h" #include "UnitTest++/ReportAssertImpl.h" using namespace UnitTest; namespace { stru...
<commit_before>/*********************************************************** * photuris_utilities.cpp * * For getting information from Photuris utility sensors. * * Author: Albert Gural * Email: ag@albertgural.com * Date: 2013/08/07 - 2013/09/04 **********************************************************/ #in...
<commit_before> #include <ros/ros.h> #include <gtest/gtest.h> #include <control_toolbox/pid.h> #include <boost/math/special_functions/fpclassify.hpp> using namespace control_toolbox; TEST(ParameterTest, zeroITermBadIBoundsTest) { RecordProperty("description","This test checks robustness against divide-by-zero er...
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see http...
<commit_before>/* -------------------------------------------------------------------------- * * OpenSim: testCMCGait10dof18musc.cpp * * -------------------------------------------------------------------------- * * The OpenSim API is a toolkit for musculoskeletal modeling and ...
<commit_before>//===-- BuildSystem.cpp ---------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>//===-- MachineCodeForMethod.cpp -------------------------------------------=// // // Purpose: // Collect native machine code information for a function. // This allows target-specific information about the generated code // to be stored with each function. //===-----------------------------------...
<commit_before>#pragma once #include <cstdint> #include <iostream> #include <iomanip> #include "instruction_procedures.h" #include "decoder.h" #include "memory.h" #include "global_registers.h" #include "register_procedures.h" using namespace std; void Format(AddressingMode addressingMode) { switch (addressingMode) ...
<commit_before>#pragma once #include <cstdint> #include <iostream> #include <iomanip> #include "instruction_procedures.h" #include "decoder.h" #include "memory.h" #include "global_registers.h" #include "register_procedures.h" using namespace std; void Format(AddressingMode addressingMode) { switch (addressingMode) ...
<commit_before>int DEBUG=1; TCPClient client; long SerialSpeed[] = {600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200}; void ipArrayFromString(byte ipArray[], String ipString) { int dot1 = ipString.indexOf('.'); ipArray[0] = ipString.substring(0, dot1).toInt(); int dot2 = ipString.indexOf(...
<commit_before>/**************************************************************************** * * Copyright (C) 2013 PX4 Development Team. All rights reserved. * Author: Pavel Kirienko <pavel.kirienko@gmail.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitte...
<commit_before>#include <pxp-agent/external_module.hpp> #define LEATHERMAN_LOGGING_NAMESPACE "puppetlabs.pxp_agent.external_module" #include <leatherman/logging/logging.hpp> #include <leatherman/execution/execution.hpp> #include <leatherman/file_util/file.hpp> #include <horsewhisperer/horsewhisperer.h> #include <boo...
<commit_before>#ifndef ITER_DROPWHILE_H_ #define ITER_DROPWHILE_H_ #include <iterbase.hpp> #include <utility> #include <iterator> #include <initializer_list> namespace iter { template <typename FilterFunc, typename Container> class DropWhile; template <typename FilterFunc, typename Container> DropW...
<commit_before>#include "bbmh.h" #include "hll.h" using namespace sketch; using namespace common; using namespace mh; #ifndef SIMPLE_HASH #define SIMPLE_HASH 1 #endif int main() { static_assert(sizeof(schism::Schismatic<int32_t>) == sizeof(schism::Schismatic<uint32_t>), "wrong size!"); { BBitMinHashe...
<commit_before><commit_msg>Not freeing the cached request data when we get OnHttpEquiv(done==TRUE) and the browser is tagged for CF navigation. I found that if I load a CF page, then go to the address bar and press enter, we will actually get both OnHttpEquiv(done==false) and then followed by OnHttpEquiv(done==TRUE) ev...
<commit_before>//===- IdentifierResolver.cpp - Lexical Scope Name lookup -------*- C++ -*-===// // // 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) 2016-2019, The C++ IPFS client library developers 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 "rencontre.h" #include "match.h" #include "equipe.h" #include "utils.h" //----------------------------------------------------------------- Constructeur Rencontre::Rencontre(Club* home, Club* away, std::string date) : _match(CreerMatch(home,away)), _dateDeRencontre(To_Date(date)) {} //--------...
<commit_before>/* Copyright (c) 2014 Argent77 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, publish, dis...
<commit_before>#include <cli/CommandLine.h> #include <stdio.h> #include <readline/readline.h> #include <readline/history.h> extern "C" char *xmalloc (size_t size); namespace cli { namespace { char * dupstr (const char * s) { char *r = xmalloc (strlen (s) + 1); strcpy (r, s); return r; } } Command...
<commit_before>#include "ruby.h" #include "grammar.hpp" #include "symbols.hpp" #ifdef __cplusplus extern "C" { #endif VALUE melbourne_string_to_ast(VALUE self, VALUE source, VALUE name, VALUE line) { bstring b_str = blk2bstr(RSTRING_PTR(source), RSTRING_LEN(source)); VALUE result = melbourne::string_to_ast(self, ...
<commit_before>#pragma once #include <tudocomp/Algorithm.hpp> #include <tudocomp/util/Hash.hpp> #include <tudocomp/compressors/lz78/LZ78Trie.hpp> namespace tdc { namespace lz78 { template< typename HashRoller = ZBackupRollingHash, typename HashProber = LinearProber, typename HashManager = SizeManagerPri...
<commit_before>#include <stdio.h> #include <fcntl.h> #include <errno.h> #include <termios.h> #include <sys/ioctl.h> #include <QtCore/QSocketNotifier> #include <QtCore/QTimer> #include <QtCore/QThread> #include <QtCore/QWaitCondition> #include "virtualserialdevice.h" namespace SymbianUtils { class VirtualSerialDeviceP...
<commit_before>// (C) 2014 Arek Olek #include <functional> #include <unordered_map> #include <boost/functional/hash.hpp> #include <boost/graph/adjacency_matrix.hpp> #include "debug.hpp" #include "range.hpp" namespace detail { boost::adjacency_matrix<boost::undirectedS> typedef graph; } namespace std { template...
<commit_before>#include "utilities.hpp" #include <stdio.h> #ifdef WINDOWS #include <direct.h> #define GetCurrentDir _getcwd #else #include <unistd.h> #define GetCurrentDir getcwd #endif using namespace cv; void clampRectangleToVideoDemensions(Rect &searchFrame,const Size &videoDimensions) { if(s...
<commit_before>#include <stan/mcmc/mcmc_output.hpp> #include <gtest/gtest.h> #include <cstdlib> #include <cstdio> #include <cmath> #include <boost/math/distributions/students_t.hpp> #include <stdio.h> class Models_BasicDistributions_Binormal : public ::testing::Test { protected: virtual void SetUp() { FILE *in; ...
<commit_before>// The MIT License (MIT) // // Copyright (c) 2015 Niek J. Bouman // // 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...
<commit_before>#include <algorithm> #include <iostream> #include <fstream> #include <vector> #include <stdio.h> #include <string.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/time.h> char buf[1024]; char tmp[256]; void sendWindow(int fd, unsigned baseSeqNo, const char *data, u...
<commit_before><commit_msg>Delete Mmseg.hpp<commit_after><|endoftext|>
<commit_before>#include "Model.h" #include <algorithm> #include "View.h" #include "Structure_factory.h" #include "Agent_factory.h" #include "Geometry.h" #include "Structure.h" #include "Agent.h" #include "Group.h" #include "Utility.h" #include <functional> using std::map; using std::bind; using std::pair; using std::s...
<commit_before>// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #include <stdio.h> #include <sstream> #include <string> #include <OpenColorIO/OpenColorIO.h> #include "GPUUnitTest.h" #include "GPUHelpers.h" namespace OCIO = OCIO_NAMESPACE; // TODO: Add ctf file unit ...
<commit_before>#include "hext/ResultTree.h" #include "hext/Rule.h" namespace hext { ResultTree::ResultTree(const Rule * rule) : children_(), values_(), matching_rule_(rule) { } ResultTree::ResultTree(const Rule * rule, std::vector<NameValuePair> values) : children_(), values_(values), matching_rule_(rule) ...
<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 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 <CGAL/Cartesian.h> #include <iostream> #ifndef CGAL_USE_GEOMVIEW int main() { std::cout << "Geomview doesn't work on Windows, so..." << std::endl; return 0; } #else #include <fstream> #include <unistd.h> // for sleep() #include <CGAL/Projection_traits_xy_3.h> #include <CGAL/Delaunay_triangul...
<commit_before>// This file is part of Parsito <http://github.com/ufal/parsito/>. // // Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of // Mathematics and Physics, Charles University in Prague, Czech Republic. // // This Source Code Form is subject to the terms of the Mozilla Public // License, v...
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE Main #include <boost/test/unit_test.hpp> #include <math/statistic.h> #include <storage/memstorage.h> class Moc_I1:public dariadb::statistic::BaseMethod { public: Moc_I1(){ _a=_b=dariadb::Meas::empty(); } void calc(const dariadb::M...
<commit_before>// // Created by Ivan Shynkarenka on 01.09.2016. // #include "catch.hpp" #include "math/math.h" using namespace CppCommon; TEST_CASE("Math", "[CppCommon][Math]") { REQUIRE(Math::MulDiv64(4984198405165151231, 6132198419878046132, 9156498145135109843) == 3337967539561099935); REQUIRE(Math::MulD...
<commit_before>#include <iostream> #include <vector> #include <cmath> #include <assert.h> #include <atomic> #include <algorithm> #include <gtest/gtest.h> #include "../algorithm.h" #include "../parallel.h" #include "../sequence.h" #include "../async.h" #include "../task.h" class Parallel2Test : testing::Test { }; TEST...
<commit_before>#include "gtest/gtest.h" #include <ten/json.hh> #include <array> #include "ten/logging.hh" #include "ten/jsonstream.hh" #include <map> using namespace std; using namespace ten; const char json_text[] = "{ \"store\": {" " \"book\": [" " { \"category\": \"reference\"," " \"author\": \"Nig...
<commit_before>#define BOOST_TEST_MODULE json test #include <boost/test/unit_test.hpp> #include "ten/json.hh" #include "ten/jserial.hh" using namespace ten; const char json_text[] = "{ \"store\": {" " \"book\": [" " { \"category\": \"reference\"," " \"author\": \"Nigel Rees\"," " \"title\": \"Sa...
<commit_before>#include "Rainback.hpp" #include <lua-cxx/LuaEnvironment.hpp> #include <lua-cxx/LuaValue.hpp> #include <QFile> int main(int argc, char* argv[]) { Lua lua; rainback::Rainback rainback(lua); std::string srcdir(getenv("srcdir")); QFile testRunner(QString(srcdir.c_str()) + "/test_lua.lua")...
<commit_before>#ifndef TRACE_HPP #define TRACE_HPP #define DO_TRACE #if defined(DO_TRACE) // essential macros #define TRACE_OPEN(filename) trace_open(filename) #define TRACE_FINISH() trace_finish() #define TRACE_PROP(name, value) trace_prop((name), (value)) #include <iostream> #include <fstream> static std::ofstr...
<commit_before>/* * Camera.cpp * Prueba Opengl iPad * * Created by Agustin Trujillo Pino on 24/01/11. * Copyright 2011 Universidad de Las Palmas. All rights reserved. * */ #include "Camera.hpp" #include <string> #include "Sphere.hpp" #include "Sector.hpp" void Camera::initialize(const G3MContext* context...
<commit_before>/*** For more information please refer to files in the COPYRIGHT directory ***/ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <time.h> #include <assert.h> #include "irodsFs.hpp" #include "iFuseLib.hpp" #include "iFuseOper.hpp" #include "hashtable.hpp" #include "list.hpp" #include "i...
<commit_before>//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2021 Ryo Suzuki // Copyright (c) 2016-2021 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/Color.hpp> # i...
<commit_before>#ifndef GP_NODE_BASIC_OPERATION_NODE #define GP_NODE_BASIC_OPERATION_NODE #include "node_base.hpp" #include <gp/utility/left_hand_value.hpp> namespace gp::node { template <typename T> class SubstitutionNode: public NodeBase<T(utility::LeftHandValue<T>, T)> { using ThisType = Substitutio...
<commit_before>/* * Copyright (C) 2014 Open Source Robotics Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
<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 (c) 2008-2022 the Urho3D project // License: MIT #include "../Precompiled.h" #include "../Core/Context.h" #include "../Graphics/DebugRenderer.h" #include "../Resource/ResourceCache.h" #include "../Scene/Node.h" #include "../Scene/Scene.h" #include "../Urho2D/TileMap2D.h" #include "../Urho2...
<commit_before>#include "ocu.h" #include <cuda.h> #include <nvrtc.h> #ifdef __USE_CUDA__ ocu_args_d_t& getOcu(void) { static bool bInit = false; static ocu_args_d_t ocu; if (bInit == true) return ocu; bInit = true; CUresult err = cuInit(0); LOG_CU_RESULT(err); CUdevice dev = 0; CUco...
<commit_before>/* * Copyright (C) 2010 Google 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 source code must retain the above copyright * notice, this ...
<commit_before>#pragma once #include "../message/MessageLoop.h" #include <thread> namespace hurricane { namespace base { template<typename TaskType> class Executor { public: enum class Status { Stopping, Running, }; Executor() : m_status(Status::Stopping) {} virtual ~Executor() {} //...
<commit_before>// ============================================================================ // SeqAn - The Library for Sequence Analysis // ============================================================================ // // Copyright (c) 2006-2017, Knut Reinert & Freie Universitaet Berlin // Copyright...
<commit_before>#ifndef SYSCALL_PROCESS_H_ #define SYSCALL_PROCESS_H_ #include <factory.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <signal.h> #include <linux/sched.h> #include <linux/limits.h> #include <sys/ptrace.h> #include <asm/ptrace.h> #include <sys/prctl.h> #include <sys/time.h>...
<commit_before>// See http://www.zaphoyd.com/websocketpp/manual/reference/cpp11-support // for prepocessor directives and choosing between boost and cpp11 // C++11 STL tokens #define _WEBSOCKETPP_CPP11_FUNCTIONAL_ #define _WEBSOCKETPP_CPP11_MEMORY_ #define _WEBSOCKETPP_CPP11_RANDOM_DEVICE_ #define _WEBSOCKETPP_CPP11_SY...
<commit_before> #include "bhget.h" #include <iostream> #include <list> #include <sstream> #include <utility> #include "buildconf.hpp" namespace asio = boost::asio; namespace po = boost::program_options; using namespace std; using namespace bithorde; const static size_t BLOCK_SIZE = (64*1024); const static size_t P...
<commit_before>#include "ScreamRx.h" #include "ScreamTx.h" #include <string.h> #include <climits> #include <algorithm> #include <iostream> using namespace std; ScreamRx::Stream::Stream(uint32_t ssrc_) { ssrc = ssrc_; ackVector = 0; receiveTimestamp = 0x0; highestSeqNr = 0x0; lastFeedbackT_us = 0; nRtpSinceLastR...
<commit_before>/** * \file dcs/testbed/traits.hpp * * \brief Type traits class. * * \author Marco Guazzone (marco.guazzone@gmail.com) * * <hr/> * * Copyright 2012 Marco Guazzone (marco.guazzone@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except ...
<commit_before>//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>/* * Copyright (C) 2016 Nagisa Sekiguchi * * 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 applicab...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/extensions/browser/xwalk_extension_process_host.h" #include <string> #include "base/command_line.h" #include "base/loggi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: enumrepresentation.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2006-03-14 11:22:01 $ * * The Contents of this file...
<commit_before>#include <iostream> #include <stdexcept> const bool BLACK = 1; const bool RED = 0; template<typename T> struct Node { T value; bool color; Node* leftNode; Node* rightNode; Node* parNode; }; template<typename T> class RedBlackTree { private: Node<T>* root; Node<T>* NIL; public: RedBlackTree()...
<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>#pragma once #include <xpp/core.hpp> #include <xpp/generic/factory.hpp> #include <xpp/proto/x.hpp> #include "common.hpp" #include "components/screen.hpp" #include "x11/events.hpp" #include "x11/extensions/all.hpp" #include "x11/registry.hpp" #include "x11/types.hpp" POLYBAR_NS namespace detail { te...
<commit_before>#pragma once #include <cstdlib> #include <xpp/core.hpp> #include <xpp/generic/factory.hpp> #include <xpp/proto/x.hpp> #include "common.hpp" #include "components/screen.hpp" #include "x11/events.hpp" #include "x11/extensions/all.hpp" #include "x11/registry.hpp" #include "x11/types.hpp" POLYBAR_NS name...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2009, 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-2020 Hans-Kristian Arntzen * * 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>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #include "TiAnalyticsObject.h" #include "NativeMapViewObject.h" #i...
<commit_before>#include "stdafx.h" #include "filter.h" #include "level_parser.h" typedef bool filter_apply_cb (void *context, const log4j_event<> *event); typedef void filter_destroy_cb (void *context); struct _filter { void *context; filter_apply_cb *apply; filter_destroy_cb *destroy; }; void filter_d...
<commit_before>#ifndef _TCUANDROIDINTERNALS_HPP #define _TCUANDROIDINTERNALS_HPP /*------------------------------------------------------------------------- * drawElements Quality Program Tester Core * ---------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under t...
<commit_before> #include <sofa/gui/qt/QVisitorControlPanel.h> #include <sofa/simulation/common/Visitor.h> #ifdef SOFA_QT4 #include <QPushButton> #include <QCheckBox> #include <QSpinBox> #include <QLabel> #include <QVBoxLayout> #include <QHBoxLayout> #else #include <qpushbutton.h> #include <qcheckbox.h> #include <qspin...
<commit_before>#include "Framework.hpp" #include "../core/jni_helper.hpp" #include "coding/internal/file_data.hpp" #include "platform/mwm_version.hpp" #include "storage/storage.hpp" #include "std/bind.hpp" #include "std/shared_ptr.hpp" namespace data { using namespace storage; enum ItemCategory : uint32_t { NEA...
<commit_before>//***************************************************************************** // Copyright 2017-2018 Intel Corporation // // 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 // ...
<commit_before>/* * Appcelerator Titanium Mobile * Copyright (c) 2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #include "ProxyFactory.h" #include <map> #include <stdio.h> #include <v...
<commit_before><commit_msg>Set snapshot in transaction and read options.<commit_after><|endoftext|>
<commit_before><commit_msg>remove unused lambda capture (#17503)<commit_after><|endoftext|>
<commit_before>#include "core/utf8.h" #include "tests/stringeq.h" #include "catch.hpp" #include <vector> #include <string> using namespace euphoria::core; namespace { using T = std::vector<unsigned int>; std::pair<bool, T> parse_to_codepoints(const std::string& str) { auto ret = T{}; ...
<commit_before>/** This is a tool shipped by 'Aleph - A Library for Exploring Persistent Homology'. Its purpose is to calculate zero-dimensional persistence diagrams of spectra. This is supposed to yield a simple feature descriptor which in turn might be used in machine learning pipepline. Input: filenam...
<commit_before>/* * Copyright 2001-2007 Adrian Thurston <thurston@complang.org> */ /* This file is part of Colm. * * Colm 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 Lic...