text
stringlengths
54
60.6k
<commit_before>#ifndef MP_INTRUSIVEPTR_HPP #define MP_INTRUSIVEPTR_HPP #include <boost/atomic.hpp> // boost::intrusive_ptr but safe/atomic template<typename T> struct IntrusivePtr { boost::atomic<T*> ptr; IntrusivePtr(T* _p = NULL) : ptr(NULL) { if(_p) { intrusive_ptr_add_ref(_p); ptr = _p; } } Intru...
<commit_before>#include <algorithm> #include <gtest/gtest.h> #include <autocheck/check.hpp> #include <autocheck/sequence.hpp> namespace ac = autocheck; struct reverse_prop_t { template <typename T> bool operator() (const std::vector<T>& xs) const { std::vector<T> ys(xs); std::reverse(ys.begin(), ys.end())...
<commit_before>#include <Kernel/Scheduler.hh> #include <Kernel/Thread.hh> #include <X86/ThreadContext.hh> #include <Parameters.hh> #include <Debug.hh> #include <spinlock.h> #include <list> #include <cstdio> using namespace Kernel; namespace { spinlock_softirq_t threadLock = SPINLOCK_SOFTIRQ_STATIC_INITIALIZER; ...
<commit_before>#include "Pong.h" #include "ConsoleGaming.h" #include "Vector2D.h" #include "Paddle.h" using namespace std; HANDLE consoleHandle; typedef vector<GameObject>::iterator randomAccess_iterator; typedef vector<GameObject>::const_iterator const_iterator; // Window constants const int WindowWidth = 70; cons...
<commit_before>#include<cstdlib> class Solution { public: int compareVersion(string version1, string version2) { int pos1 = 0, pos2 = 0; int val1 = 0, val2 = 0; while(!version1.empty() || !version2.empty()) { val1 = val2 = 0; pos1 = version1.find("."); ...
<commit_before>/* open source routing machine Copyright (C) Dennis Luxen, 2010 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 Free Software Foundation; either version 3 of the License, or any later version. T...
<commit_before>/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ /// \ingroup macros /// \file rootlogon.C /// \brief Macro which is run when starting Root in MUON /// /// It loads the MUON libraries need...
<commit_before><commit_msg>Q_FOREACH to support no_keywords<commit_after><|endoftext|>
<commit_before>// Best-first Utility-Guided Search Yes! From: // "Best-first Utility-Guided Search," Wheeler Ruml and Minh B. Do, // Proceedings of the Twentieth International Joint Conference on // Artificial Intelligence (IJCAI-07), 2007 #include "../search/search.hpp" #include "../structs/binheap.hpp" #include "../...
<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/. /** @file * Estimate the best AR(p) model given data on standard input. */ #include "burg.hpp" #in...
<commit_before>#include <iostream> #include <vector> using namespace std; int dp(vector<vector<int> > mat, int n) { for(int i = 2; i <= n; i++) { for(int j = 1; j <= i; j++) { if( 1 == j)//左边界线上的元素 mat[i][j] = mat[i-1][j] + mat[i][j]; if( i == j)//右边界线上的元素 mat[i][j] = mat[i-1][j-1] + mat[i][j];...
<commit_before>/* util.cpp Copyright (c) 2014, tuxuser. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bs...
<commit_before>// Copyright (c) 2020 The Orbit 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 <absl/flags/flag.h> #include <absl/flags/parse.h> #include <absl/flags/usage.h> #include <absl/flags/usage_config.h> #include <Q...
<commit_before>#include <atomic> #include <chrono> #include <list> #include <mutex> #include <thread> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <mpi.h> #include "rma-buffer/rma_buff.hpp" #include "async.hpp" #define REQUIRE_CB_MUTEX #define ASYNC_A...
<commit_before>/* * Copyright 2016 Adam Chyła, adam@chyla.org * All rights reserved. Distributed under the terms of the MIT License. */ #include "send_command.h" #include <cstdio> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> #include "slas_parser.hpp" extern "C" { void...
<commit_before>/** \file * * \brief Implementation of \a QBrowseButton * * This file provides the implementation of the \a QBrowseButton class. * * \author Peter 'png' Hille <peter@das-system-networks.de> * * \version 1.0 */ #include <QHBoxLayout> #include <QDebug> #include "nullptr.h" #include "QBrowseButton...
<commit_before>#include "URIBeacon.h" #ifdef defined(NRF51) || defined(__RFduino__) #define MAX_SERVICE_DATA_SIZE 18 #else #define MAX_SERVICE_DATA_SIZE 15 // only 15 bytes (instead of 18), because flags (3 bytes) are in advertisement data #endif static const char* URI_BEACON_PREFIX_SUBSTITUTIONS[] = { "http://...
<commit_before>/*8921005 303677512 maxim vainshtein*/ #include <iostream> #include <stdlib.h> #include "Client.h" #include "Player.h" #define NAME_INPUT "TreeBots" #define NAME_INPUT_OPPONENT "Opponent" int main(int argc, const char * argv[]) { //First create a client for all the players Client *udpClie...
<commit_before>/* SevenSegment.h - Arduino Library for SM41056 7 Segment Led Display Copyright (c) 2014 Salvatore Gentile 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, ...
<commit_before>#include "ride/project.h" #include <wx/utils.h> #include <wx/process.h> #include <wx/txtstrm.h> Project::Project(wxTextCtrl* output, const wxString& root_folder) : output_(output), root_folder_(root_folder) { } const wxString& Project::root_folder() const { return root_folder_; } void Project::Setti...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbdocutl.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-08 18:18:30 $ * * The Contents of this file are made ...
<commit_before><commit_msg>Related: #i91494# same for CTL as CJK<commit_after><|endoftext|>
<commit_before>#ifndef PB_FAST_RAND #define PB_FAST_RAND #include <chrono> #include <cstdint> #include <cmath> /* 16 Random 64-bit unsigned ints from Random.org * https://xkcd.com/221/ */ #define RAND_SEED \ 0x3defc96632ef02b9, \ 0x8e90363c0e17b94f, \ 0xa475bebf725d5637, \ 0x0a730a049bf3226e, \ 0xf4ae35c08c925568, ...
<commit_before>#include "breedSFC.h" #include "TApplication.h" #include "TCanvas.h" #include "TPaveText.h" #include "TPolyLine3D.h" #include "TPad.h" #include "TView.h" #include "TPolyMarker3D.h" int main(int argc, char **argv) { int N = 3; SFCCube c = SFCCube(N); c.print(); TApplication theApp("App", &...
<commit_before>/** * Copyright 2016, Quickstep Research Group, Computer Sciences Department, * University of Wisconsin—Madison. * * 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><commit_msg>restore original comment<commit_after><|endoftext|>
<commit_before>/** * Copyright 2016, Quickstep Research Group, Computer Sciences Department, * University of Wisconsin—Madison. * * 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>#ifndef ITER_ZIP_LONGEST_HPP_ #define ITER_ZIP_LONGEST_HPP_ #include "internal/iterbase.hpp" #include <boost/optional.hpp> #include <iterator> #include <tuple> #include <utility> namespace iter { namespace impl { template <typename... RestContainers> class ZippedLongest; template <typen...
<commit_before>/************************************************************************* * * $RCSfile: xlconst.hxx,v $ * * $Revision: 1.14 $ * * last change: $Author: obo $ $Date: 2004-06-04 11:00:38 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include<cstdio> #include<iostream> #include<cmath> #include<algorithm> #include<cstring> #include<vector> #include<map> #include<set> #include<queue> #include<stack> #include<bitset> using namespace std; typedef long long ll; typedef unsigned long long ull; const int MAXN=100010; const int MAXM=200010; ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * Version: MPL 1.1 / GPLv3+ / LGPLv3+ * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License or as spec...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: masterpasscrtdlg.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-09 10:22:50 $ * * The Contents of this file a...
<commit_before>/************************************************************************* * * $RCSfile: mutex.hxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2003-04-04 17:10:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>#ifndef VIENNAGRID_DOMAIN_HPP #define VIENNAGRID_DOMAIN_HPP /* ======================================================================= Copyright (c) 2011-2012, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU W...
<commit_before>/* * Copyright 2017-present Facebook, 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 appl...
<commit_before>/* IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software constitutes acceptance of these terms. If you do not agree with these t...
<commit_before>// Copyright (C) 2012, Chris J. Foster and the other authors and contributors // 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 ...
<commit_before>/******************************************************************************* The MIT License (MIT) Copyright (c) 2013, 2014 JCube001 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 Soft...
<commit_before>#pragma once #include <bts/blockchain/asset.hpp> #include <bts/blockchain/config.hpp> #include <bts/blockchain/types.hpp> #include <fc/exception/exception.hpp> #include <fc/io/enum_type.hpp> #include <fc/time.hpp> #include <tuple> namespace bts { namespace blockchain { struct market_index_key ...
<commit_before>#pragma once #include <bts/blockchain/asset.hpp> #include <bts/blockchain/types.hpp> #include <fc/time.hpp> namespace bts { namespace blockchain { struct market_index_key { market_index_key( const price& price_arg = price(), const address& owner_arg = address() ) ...
<commit_before>/************************************************************************* * * $RCSfile: SlsBitmapCompressor.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-10-24 07:39:39 $ * * The Contents of this file are made available subject to the terms of * either of the foll...
<commit_before>// $Id$ // // Copyright (C) 2008 Greg Landrum // All Rights Reserved // #include <RDGeneral/Invariant.h> #include <GraphMol/RDKitBase.h> #include <GraphMol/SmilesParse/SmilesParse.h> #include <GraphMol/SmilesParse/SmilesWrite.h> #include <GraphMol/Substruct/SubstructMatch.h> #include <GraphMol/Depict...
<commit_before>#include "common.h" #include <Audiopolicy.h> #include <Mmdeviceapi.h> #include <Appmodel.h> #include <ShlObj.h> #include <propkey.h> #include <PathCch.h> #include "AudioSessionService.h" #include "ShellProperties.h" #include "MrtResourceManager.h" using namespace std; using namespace std::tr...
<commit_before>#include <assert.h> #include "ScheduleActualizer.h" #include "Extensions/ScheduleActualizationAlgorithm.h" namespace Scheduler { ScheduleActualizer::ScheduleActualizer(Schedule *schedule): schedule(schedule), algorithms_factory(nullptr), is_actualizing(false) { } void Schedule...
<commit_before>/* Copyright 2007-2015 QReal Research Group * * 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 ap...
<commit_before>/* * Copyright (C) 2015-2016 Alex Spataru <alex_spataru@outlook> * * 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 "xchainer/array_repr.h" #include <gtest/gtest.h> #include <algorithm> #include <cmath> #include <limits> #include <sstream> #include <string> #include <vector> #include "xchainer/device_id.h" #include "xchainer/native_backend.h" namespace xchainer { namespace { template <typename T> void Ch...
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/testapp.h> #include <vespa/searchlib/queryeval/dot_product_search.h> #include <vespa/searchlib/fef/fef.h> #include <vespa/searchlib/query/tree/simplequery.h>...
<commit_before>// FRAGMENT(includes) #include <iostream> #include <seqan/store.h> #include <seqan/misc/misc_svg.h> using namespace seqan; int main () { FragmentStore<> store; loadContigs(store, "ex1.fa"); std::ifstream file("ex1.sam"); read(file, store, Sam()); // FRAGMENT(ascii) AlignedReadLayou...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <st...
<commit_before>// Time: O(max(m, n)) // Space: O(1) class Solution { // TLE public: /** * @param A: An integer matrix * @return: The index of the peak */ vector<int> findPeakII(vector<vector<int> > A) { int upper = 0; int down = A.size() - 1; int left = 0; int ri...
<commit_before>/* To use .lib file, go to Project > References... > Configuration Properties > Linker > > General > Additional Library directories | add the directory the .lib is in. Then go to Project > References... > Configuration Properties > Linker > Input > Additional dependencies | add the na...
<commit_before>#include <pex/PexOptimizer.h> #include <unordered_map> #include <vector> namespace caprica { namespace pex { struct OptInstruction final { size_t id{ 0 }; size_t instructionNum{ 0 }; PexInstruction* instr{ nullptr }; std::vector<OptInstruction*> instructionsReferencingLabel{ }; OptInstructi...
<commit_before>//===-- ClangUtilityFunction.cpp ---------------------------------*- C++-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* Copyright (c) 2012, Oscar Esteban - oesteban@dionte.upm.es with Biomedical Image Technology, UPM (BIT-UPM) 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 sou...
<commit_before>#include "CommonImport.h" #include "CommonUtilities.h" #include "CommonMeshUtilities.h" #include "CommonAlembic.h" #include <boost/algorithm/string.hpp> #include <sstream> bool parseBool(std::string value){ //std::istringstream(valuePair[1]) >> bExportSelected; if( value.find("true") != std::strin...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AccessibilityHints.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: kz $ $Date: 2006-07-21 12:59:51 $ * * The Contents of this file...
<commit_before>// Copyright (c) 2009-2012 Bitcoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <iostream> #include <fstream> #include "init.h" // for pwalletMain #include "bitcoinrpc.h" #include "ui_i...
<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/chromeos/login/screen_lock_view.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "base...
<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_install_ui.h" #include <map> #include "app/l10n_util.h" #include "app/resource_bundle.h...
<commit_before>// StdLib.cpp // This file is part of the EScript programming language (http://escript.berlios.de) // // Copyright (C) 2011-2013 Claudius Jähn <claudius@uni-paderborn.de> // Copyright (C) 2012 Benjamin Eikel <benjamin@eikel.org> // // Licensed under the MIT License. See LICENSE file for details. // -----...
<commit_before>//===-- PPCHazardRecognizers.cpp - PowerPC Hazard Recognizer Impls --------===// // // The LLVM Compiler Infrastructure // // This file was developed by Chris Lattner and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===-----...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ConfigurationAccess.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2006-09-17 13:06:36 $ * * The Contents of this fi...
<commit_before>//===-- SparcV9TargetMachine.cpp - SparcV9 Target Machine Implementation --===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<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 "build/build_config.h" #include "chrome/browser/search_engines/template_url_fetcher.h" #include "chrome/browser/profile...
<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/sync/glue/password_change_processor.h" #include <string> #include "base/string_util.h" #include "base/utf_st...
<commit_before>#include "EnvimetReader.h" #include <vtkObjectFactory.h> #include <vtkStreamingDemandDrivenPipeline.h> #include <vtkInformationVector.h> #include <vtkInformation.h> #include <vtkSmartPointer.h> #include <vtkPointData.h> #include <vtkDataArray.h> #include <vtkFloatArray.h> #include <vtkDataArraySelection...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File Monodomain.cpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronautics, Im...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * MPIAggregator.cpp * * Created on: Feb 20, 2018 * Author: William F Godoy godoywf@ornl.gov */ #include "MPIAggregator.h" #include "adios2/helper/adiosFunctions.h" n...
<commit_before>#include <QFile> #include <QString> #include <QStack> #include <core/logger/Logging.h> #include "AdvancedTemplateProcessor.h" namespace Quartz { const QString ADV_TOKEN_FIRST = QString{ "$" }; const QString ADV_TOKEN_SEC = QString{ "[" }; const QString ADV_FOREACH_DELEM = QString{ ":>" }; const QStri...
<commit_before>/* * Copyright (C) 2008-2011, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #include <io...
<commit_before>/* * Copyright (C) 2008-2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #include <io...
<commit_before>#include "shaders.h" #define INVALID_SHADER 0 #define DEBUG_SHADER_ERRORS true // // AnyShader // AnyShader::AnyShader() { //empty } AnyShader::~AnyShader() { //empty } /** * Create the shader program. */ bool AnyShader::create() { if (failed) { return false; } if (pr...
<commit_before>/* * Shared memory for sharing data between worker processes. * * author: Max Kellermann <mk@cm4all.com> */ #include "shm.hxx" #include "system/Error.hxx" #include "util/RefCount.hxx" #include <inline/poison.h> #include <inline/list.h> #include <daemon/log.h> #include <boost/interprocess/sync/inte...
<commit_before>#include <GL/glew.h> #include "Surface.hpp" #include "SimpleWindow.hpp" #include <QApplication> #include <GL/glx.h> namespace fast { void Surface::create( std::vector<Float<3> > vertices, std::vector<Float<3> > normals, std::vector<Uint<3> > triangles) { if(mIsInitialized) {...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, ...
<commit_before>/* * FILE: 1A.cpp * * @author: Arafat Hasan Jenin <arafathasanjenin[at]gmail[dot]com> * * LINK: * * DATE CREATED: 03-09-17 21:47:10 (BST) * LAST MODIFIED: 03-09-17 23:53:47 (BST) * * DESCRIPTION: * * DEVELOPMENT HISTORY: * Date Version Description * -----------------------------...
<commit_before> #include <tree.hpp> #include <catch.hpp> SCENARIO("null") { Tree<int> a; REQUIRE(a.tree_one()==NULL); } SCENARIO("add") { Tree <int> a; bool b=a.add(5); REQUIRE(b == 1); } SCENARIO("find") { Tree<int> a; a.add(5); bool b = a.find(5); REQUIRE(b == 1); } SCENARIO("del1") { Tree<int> a; a.add...
<commit_before>#include "taichi_grid.h" #include <taichi/common/meta.h> #include <tuple> TC_NAMESPACE_BEGIN namespace stencilang { template <int _i, int _j, int _k> struct Offset { static constexpr int i = _i; static constexpr int j = _j; static constexpr int k = _k; }; template <typename _a, typename _b> str...
<commit_before>// This file is part of the AliceVision project. // Copyright (c) 2016 AliceVision contributors. // Copyright (c) 2012 openMVG 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 obtai...
<commit_before>#include <binary_search_tree.hpp> #include <catch.hpp> SCENARIO("default constructor") { BinarySearchTree<int> bst; REQUIRE(bst.root() == nullptr); } SCENARIO("insertElement") { BinarySearchTree<int> bst; bst.insert(7); REQUIRE(bst.value_() == 7); REQUIRE(bst.leftNode_() == nullptr); REQUIRE(bs...
<commit_before><commit_msg>~SdUnoPageBackground() gets a SolarMutexGuard<commit_after><|endoftext|>
<commit_before>/*ckwg +5 * Copyright 2012-2013 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 <python/helpers/python_exceptions.h> #include <vistk/pipeline/c...
<commit_before>#include "BVSConfig.h" #include<iostream> #include<fstream> BVSConfig::BVSConfig(std::string name, int argc, char** argv) : name(name) , mutex() , optionStore() { if (argc!=0 && argv!=nullptr) { loadCommandLine(argc, argv); } } BVSConfig& BVSConfig::getName(std::str...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before><commit_msg>Create 1078 - Multiplication Table.cpp<commit_after><|endoftext|>
<commit_before>/**************************************************************************** * * Copyright (c) 2016 Henry Zhang. All rights reserved. * ****************************************************************************/ /** * @file ex12_11.cpp * Explain whether the following call to the process funct...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p10/procedures/hwp/lib/pstates_pgpe.H $ ...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKC...
<commit_before>#include "mitkDataTreeNode.h" #include "mitkMapperFactory.h" #include <vtkTransform.h> #include "mitkProperties.h" #include "mitkFloatProperty.h" #include "mitkStringProperty.h" #include "mitkBoolProperty.h" #include "mitkColorProperty.h" #include "mitkLevelWindowProperty.h" #include "mitkGeometry3D.h" ...
<commit_before>// // C++ Interface: BuiltinFuncs // // Description: // // // Author: Carmelo Piccione <carmelo.piccione@gmail.com>, (C) 2007 // // Copyright: See COPYING file that comes with this distribution // // #ifndef _BUILTIN_FUNCS_HPP #define _BUILTIN_FUNCS_HPP #include "Common.hpp" #include "Func.hpp" #inclu...
<commit_before>/* * Copyright (c) 2013, Christian Loose * 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>#include <cstdio> #include <algorithm> #include <string> #include <map> #include <cstdlib> #include <iostream> #include <cstring> using namespace std; map <string ,int> Dict; bool end=false; //debug #ifdef LOCAL #define fp stdin #else FILE *fp; #endif char last=0; char ch; string getword(){ string ...
<commit_before>#include <stdio.h> #include <queue> #include <vector> #include <utility> #include <iostream> #include <string> #include <stack> #include <queue> using namespace std; queue<string> lv1; queue<string> lv2; queue<string> lv3; string temp; int templv; int temptime=0; int usernum; int users=0; int read(int...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>#include <iostream> #include <aruco/aruco.h> #include <aruco/cvdrawingutils.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/calib3d/calib3d.hpp> #include "ros/ros.h" #include "std_msgs/String.h" #include "std_msgs/Int32.h" //TODO viki needs to be changed when using Rpi #include </home/viki/RO...
<commit_before>// Copyright 2018 The Amber Authors. // // 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 applicabl...
<commit_before>// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name //...