text
stringlengths
54
60.6k
<commit_before>/************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * ALICE Experiment at CERN, All rights reserved. * * * ...
<commit_before>/* The Halfling Project - A Graphics Engine and Projects * * The Halfling Project is the legal property of Adrian Astley * Copyright Adrian Astley 2013 */ #include "common/texture_manager.h" #include "common/halfling_sys.h" #include "common/d3d_util.h" #include "DDSTextureLoader.h" namespace Comm...
<commit_before>#include "scheduler_pinned_base.h" #include "simulator.h" #include "core_manager.h" #include "performance_model.h" #include "os_compat.h" #include <sstream> // Pinned scheduler. // Each thread has is pinned to a specific core (m_thread_affinity). // Cores are handed out to new threads in round-robin fa...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: interaction.hxx,v $ * $Revision:...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> // // 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 th...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com> // // 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 th...
<commit_before>#include "StableHeaders.h" #include "PluginAPI.h" #include "LoggingFunctions.h" #include "Framework.h" #include <QtXml> #include <iostream> #include <vector> std::string WStringToString(const std::wstring &str) { std::vector<char> c((str.length()+1)*4); wcstombs(&c[0], str.c_str(), c.size()-1);...
<commit_before>#pragma once /// This class prevents its inheritors from being copied. class NonCopyable { protected: NonCopyable() noexcept = default; ~NonCopyable() = default; NonCopyable(NonCopyable&&) noexcept = default; NonCopyable& operator=(NonCopyable&&) noexcept = default; private: NonCopyable(const Non...
<commit_before>/* * Copyright (c) 2008-2016, Integrity Project Ltd. 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>#include "Audio.h" #include <limits.h> #include <FMOD\fmod.hpp> struct AudioObject { FMOD::Channel* sound; }; FMOD::System* system; void Audio_Init() { FMOD::System_Create(&system); if (system) { system->init(32, FMOD_INIT_NORMAL, 0); } } void Audio_Destroy() { ...
<commit_before>#pragma once #include <barcode/filetree.hpp> #include <fstream> #include <hydra/component/roomcomponent.hpp> class PathingMapMenu{ public: PathingMapMenu(); ~PathingMapMenu(); void render(bool &closeBool, float delta, int sizeX, int sizeY); //bool selected[32][32] = {false}; private: }; <commit_ms...
<commit_before>// This file is part of Tasks. // // Tasks 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, either version 3 of the License, or // (at your option) any later version. // // Tasks is dist...
<commit_before>/* * Universe * * Copyright 2015 Lubosz Sarnecki <lubosz@gmail.com> * */ #include "Renderer.h" #include "util.h" #include <gli/gli.hpp> Renderer::Renderer(int width, int height) { translate_z = -0.1f; rotate_x = 0.0; rotate_y = 0.0; if (gl3wInit()) { fprintf(stderr, "fail...
<commit_before>#include "Renderer.hpp" static GLfloat vertices[] = { 1, 1,0, 1,-1,0, -1,1,0, 1,-1,0, -1,-1,0, -1,1,0 }; static GLfloat uvs[] = { 1,0, 1,1, 0,0, 1,1, 0,1, 0,0 }; const char * Renderer::defaultVertexShader = "#version 330 core\n" "\n" "in vec3 position;\n" ...
<commit_before>#include "paxos/parliament.hpp" Parliament::Parliament( Replica legislator, std::string location, DecreeHandler decree_handler) : signal(std::make_shared<Signal>()), legislator(legislator), legislators(LoadReplicaSet( std::ifstream( (fs::path(location...
<commit_before>// Copyright (c) 2016, LAAS-CNRS // Authors: Joseph Mirabel (joseph.mirabel@laas.fr) // // This file is part of hpp-pinocchio. // hpp-pinocchio 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 Found...
<commit_before>/** * @file PathPlanner.cpp * * @author <a href="mailto:akcayyig@hu-berlin.de">Yigit Can Akcay</a> * Implementation of class PathPlanner */ #include "PathPlanner.h" PathPlanner::PathPlanner() : step_buffer({}), foot_to_use(Foot::RIGHT), last_stepRequestID(getMotionStatus().stepControl.stepRequestI...
<commit_before>// --------------------------------------------------------------------- // $Id: tria.cc 32807 2014-04-22 15:01:57Z heister $ // // Copyright (C) 2015 - 2017 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // ...
<commit_before>// @(#)root/tree:$Id$ // Author: Rene Brun 14/04/97 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<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. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
<commit_before>#include "clustering/reactor/reactor.hpp" #include "clustering/immediate_consistency/branch/broadcaster.hpp" #include "clustering/immediate_consistency/branch/replier.hpp" #include "clustering/immediate_consistency/query/master.hpp" #include "clustering/immediate_consistency/branch/multistore.hpp" #incl...
<commit_before><commit_msg>coverity#738566 Uninitialized pointer field<commit_after><|endoftext|>
<commit_before>/*====================================================================== This file is part of the elastix software. Copyright (c) University Medical Center Utrecht. All rights reserved. See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for details. This software is distri...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distribu...
<commit_before>#include "Resolver.h" #include "Requirement.h" #include <cassert> #include <exception> #include <map> #include <set> #include <stdexcept> using namespace Arbiter; using namespace Resolver; namespace { struct DependencyNode final { public: const ArbiterProjectIdentifier _project; const Arbi...
<commit_before>#ifndef CV_ADAPTERS_ROWRANGE_HPP #define CV_ADAPTERS_ROWRANGE_HPP #include <iterator> #include <opencv2/core/core.hpp> template <typename T> class RowRangeConstIterator : public std::iterator<std::forward_iterator_tag, T> { public: RowRangeConstIterator() : data() , row(...
<commit_before>#include "server/connection_handler_impl.h" #include "envoy/event/dispatcher.h" #include "envoy/event/timer.h" #include "envoy/network/filter.h" #include "envoy/stats/scope.h" #include "envoy/stats/timespan.h" #include "common/network/connection_impl.h" #include "common/network/utility.h" #include "ex...
<commit_before>//===- SymbolTable.cpp ----------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>/* Copyright (c) 2016 Xavier Leclercq 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, ...
<commit_before>// // Created by david on 2019-03-09. // #include <algorithms/class_algorithm_status.h> #include <config/nmspc_settings.h> #include <h5pp/h5pp.h> #include <regex> #include <tensors/model/class_model_finite.h> #include <tensors/model/class_mpo_site.h> #include <tensors/state/class_mps_site.h> #include <t...
<commit_before>/* * W.J. van der Laan 2011-2012 * The PPCoin Developers 2013 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox...
<commit_before>/************************************************************************* * * $RCSfile: PColumn.hxx,v $ * * $Revision: 1.10 $ * * last change: $Author: vg $ $Date: 2003-12-16 12:26:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>// ------------------------------------------------------------------------- // @FileName NFCEctypeModule.cpp // @Author LvSheng.Huang // @Date 2012-12-15 // @Module NFCEctypeModule // // -------------------------------------------------...
<commit_before>#include "CustomSimulation.h" #include <Visualization/IRenderer.h> #include <Simulation/Dynamics/Connection/ConnectorFactory.h> #include <Simulation/Integration/Implementations/ExplicitEuler.h> #include <Simulation/Integration/Implementations/ImplicitEuler.h> #include <Simulation/Integration/Imple...
<commit_before>#ifndef JOEDB_PORTABLE #include "joedb/concurrency/Local_Connection.h" #include "joedb/journal/File.h" #include "joedb/concurrency/Interpreted_Client.h" #include "joedb/journal/Memory_File.h" #include "gtest/gtest.h" using namespace joedb; static const char * const file_name = "local_connection.joedb"...
<commit_before>#pragma ident "$Id: //depot/msn/main/wonky/gpstkplot/lib/plot/Splitter.cpp#4 $" /// @file Splitter.cpp Used to help with splitting sets of points. Class /// definitions. //============================================================================ // // This file is part of GPSTk, the GPS Toolkit. /...
<commit_before><commit_msg>modify XeXe Cuts<commit_after><|endoftext|>
<commit_before>// Catch #include <catch.hpp> // C++ Standard Library #include <cstdlib> #include <string> // Armadillo #include <armadillo> // Mantella #include <mantella> extern std::string testDirectory; TEST_CASE("bbob::AttractiveSectorFunction", "") { for (const auto& numberOfDimensions : {2, 40}) { mant...
<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 "base/command_line.h" #include "chrome/app/chrome_dll_resource.h" #include "chrome/common/chrome_switches.h" #include "chrome/...
<commit_before><commit_msg>Disabling a couple of UI tests while I investigate.<commit_after><|endoftext|>
<commit_before><commit_msg>Don't reload whole chrome://extensions page when interacting with single extension (disable/enable...).<commit_after><|endoftext|>
<commit_before><commit_msg>Small "fix" to make window deallocation similar to window allocation.<commit_after><|endoftext|>
<commit_before> #include <stdio.h> #include <ctype.h> #include <assert.h> #include <iostream> #include "tokenan.h" #include "ident.h" TokenAn::TokenAn( const char *filename) { read_file_contents( filename); } void TokenAn::init_file_length( const char *filename) { FILE *f = fopen( filename, "r"); fseek( ...
<commit_before>/** * Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com> * All Rights Reserved. * * This file is CONFIDENTIAL -- Distribution or duplication of this material or * the information contained herein is strictly forbidden unless prior written * permission is obtained. */ #include <stdlib.h...
<commit_before>/* * Copyright (c) 2010 Digital Bazaar, Inc. All rights reserved. */ #define __STDC_CONSTANT_MACROS #include <cstdlib> #include <cstdio> #include "monarch/app/App.h" #include "monarch/app/AppPluginFactory.h" #include "monarch/app/ConfigPlugin.h" #include "monarch/app/LoggingPlugin.h" #include "monarc...
<commit_before>#include <QColorDialog> #include <qlayout/qeffectdescription.h> #include <qlayout/qeffectdescriptionedit.h> QEffectDescriptionEdit::QEffectDescriptionEdit(QWidget* parent, Qt::WindowFlags f) : QWidget(parent, f) { setupUi(this); } QEffectDescriptionEdit::~QEffectDescriptionEdit() { } void setColo...
<commit_before>/*------------------------------------------------------------------------------ Copyright (c) 2004 Media Development Loan Fund This file is part of the LiveSupport project. http://livesupport.campware.org/ To report bugs, send an e-mail to bugs@campware.org LiveSupport is free s...
<commit_before>/* * TLS echo server using BSD sockets * (C) 2014 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "apps.h" #if defined(BOTAN_HAS_TLS) \ && defined(BOTAN_HAS_DSA) \ && !defined(BOTAN_TARGET_OS_IS_WINDOWS) #include <botan/tls_server.h> #include <botan/...
<commit_before>//=====================================================================// /*! @file @brief R8C MAX7219 メイン @n P1_0: DIN @n P1_1: /CS @n P1_2: CLK @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2017 Kunihito Hiramatsu @n Released under the MIT license @n https://github.co...
<commit_before>#include "cpu_generic.h" ////////////////////////////////////////////////////////////////////// // GENERIC: register access ////////////////////////////////////////////////////////////////////// static Value ** ptr_r(cpu_t *cpu) { switch (cpu->reg_size) { case 8: return cpu->ptr_r8; case 16: ...
<commit_before>#include <netdb.h> #include <unistd.h> #include <sys/fcntl.h> #include "client.h" #include "duckchat.h" #include "raw.h" // Client connects, logs in, and joins “Common”. // Client reads lines from the user and parses commands. // Client correctly sends Say message. // Client uses select() to wait for ...
<commit_before><commit_msg>This change is patched from http://codereview.chromium.org/276071 by randy.posynick@gmail.com<commit_after><|endoftext|>
<commit_before> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <string.h> #include <stdio.h> #include <iostream> #include <fstream> #include <boost/lexical_cast.hpp> #include "packet.h" #define BUFSIZE 121 #define FILENAME "Testfile" #define TEST_FILENAME "Testfile2" #define PORT 10038...
<commit_before><commit_msg>Fix a leak in newly added sync channel unit tests.<commit_after><|endoftext|>
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * Libmemcached library * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ * Copyright (C) 2006-2009 Brian Aker All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification,...
<commit_before>#include "CppUnitTest.h" #include <algorithm> #include <sstream> #include <cctype> #include <string> #include <vector> using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace std; namespace algo { struct token { enum toktype { root_node, named_node, edge_name, hor...
<commit_before>/** \copyright * Copyright (c) 2012, Stuart W Baker * 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 not...
<commit_before>/************************************************************************* * * $RCSfile: salframe.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: pluby $ $Date: 2000-11-14 00:18:56 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>// Copyright 2014 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 "config.h" #include "bindings/core/v8/ScriptStreamer.h" #include "bindings/core/v8/ScriptStreamerThread.h" #include "bindings/co...
<commit_before>/* Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "util/sstream.h" #include "kernel/instantiate.h" #include "kernel/inductive/inductive.h" #include "library/util.h" #include "library...
<commit_before> #include <gmock/gmock.h> #include <fiblib/Fibonacci.h> class fibonacci_test: public testing::Test { public: }; TEST_F(fibonacci_test, CheckSomeResults) { fiblib::Fibonacci fib; EXPECT_EQ( 0, fib( 0)); EXPECT_EQ( 1, fib( 1)); EXPECT_EQ( 1, fib( 2)); EXPECT_EQ(21, fib( 8)); //...
<commit_before>/*! \file named_condition_variable.cpp \brief Named condition variable synchronization primitive implementation \author Ivan Shynkarenka \date 04.10.2016 \copyright MIT License */ #include "threads/named_condition_variable.h" #include "errors/exceptions.h" #include "errors/fatal.h" ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkBrains2MaskImageIOTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. ...
<commit_before>// Copyright 2015-2019 Elviss Strazdins. All rights reserved. #include <algorithm> #include "core/Setup.h" #include "Audio.hpp" #include "AudioDevice.hpp" #include "Listener.hpp" #include "alsa/ALSAAudioDevice.hpp" #include "core/Engine.hpp" #include "coreaudio/CAAudioDevice.hpp" #include "dsound/DSAudi...
<commit_before>// Copyright (c) 2018 ASMlover. 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 o...
<commit_before>/* ********************************************************************************************** Homework: #7 Author: Dak Washbrook Due: Sun. March 20, 2016 Title: Complex Number Assignment: Create a class called Complex for performing arithmetic with complex numbers. Write a program to test your class...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: implementationentry.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-06-19 10:33:53 $ * * The Contents of this fil...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>/** \brief A MARC-21 filter utility that can remove characters from a set of subfields. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2016 Universitätsbiblothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it a...
<commit_before>#include <iostream> #include <string> #include <ctime> #include <cstdio> #include <boost/filesystem.hpp> #include "gflags/gflags.h" #include "jsoncons/json.hpp" #include "utils/protocol.h" #include "utils/connection.h" #include "bots/bot_interface.h" #include "bots/raw_bot.h" #include "bots/basic/bot.h"...
<commit_before>#include <string> #pragma GCC diagnostic push #include "acmacs-base/boost-diagnostics.hh" #include "boost/program_options.hpp" #include <boost/filesystem.hpp> #pragma GCC diagnostic pop #include "acmacs-chart/ace.hh" namespace fs = boost::filesystem; // -----------------------------------------------...
<commit_before>#include "app.hpp" #include "config.h" #include <windows.h> #include <iostream> #include <stdexcept> #include <memory> #include <getopt.h> #include "cmd/register.hpp" #include "cmd/exec.hpp" #include "cmd/list.hpp" #include "util/winerror.hpp" #include "util/elevated.hpp" #include "util/strconv.hpp" #inc...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <algorithm> #include <cctype> #include <cstddef> #include <sstream> #include <vector> #include "inifile.h" namespace visionaray { //------------------------------------------------------------------------...
<commit_before>#ifndef VIENNAGRID_MESH_OPERATIONS_HPP #define VIENNAGRID_MESH_OPERATIONS_HPP /* ======================================================================= Copyright (c) 2011-2013, Institute for Microelectronics, Institute for Analysis and Scientific Computing, ...
<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 l...
<commit_before>// Copyright (c) 2009 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 "views/widget/tooltip_manager_gtk.h" #include "app/gfx/font.h" #include "base/logging.h" #include "base/string_util.h" #inclu...
<commit_before>//=====================================================================// /*! @file @brief RX65N/RX72N Envision Kit デジタル・ストレージ・オシロスコープ @n マイコン内臓12ビットA/D変換を使って、波形を観測するガジェット @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2018, 2020 Kunihito Hiramatsu @n Released under the MIT li...
<commit_before>//-- SystemZMachineScheduler.cpp - SystemZ Scheduler Interface -*- C++ -*---==// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before> // // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2018 Francois Beaune, The appleseedhq ...
<commit_before>#include "CGUITitleLabelsWidget.h" #include "CProgramContext.h" #include "SciDataManager.h" #include "CMainMenuState.h" #include <iomanip> CGUITitleLabelsWidget::CGUITitleLabelsWidget(SciDataManager * DataManager) { static Range ValueRange = DataManager->GridValues.getValueRange("Avg Oxy"...
<commit_before>//@author A0114171W #include "stdafx.h" #include "operation.h" #include "operations/post_operation.h" #include "operations/put_operation.h" #include "operations/erase_operation.h" #include "operations/branch_operation.h" #include "internal_transaction.h" #include "../exception.h" #include "internal_datas...
<commit_before>// Copyright (c) 2011 - 2019, GS Group, https://github.com/GSGroup // 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 PRO...
<commit_before>#include "condor_common.h" #include "condor_config.h" #include "condor_debug.h" #include "condor_string.h" #include "condor_classad.h" #include "condor_attributes.h" #include "condor_adtypes.h" #include "condor_qmgr.h" /* gshadow is a wrapper around globusrun, meant to be a scheduler universe * sched...
<commit_before>// -*- c-style: gnu -*- #include "act-types.h" #include "act-config.h" #include "act-format.h" #include "act-util.h" #include <xlocale.h> namespace act { field_id lookup_field_id(const char *str) { switch (tolower_l(str[0], nullptr)) { case 'a': if (strcasecmp(str, "activity") == 0) ...
<commit_before>#include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include <pcl_ros/point_cloud.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/visualization/pcl_visualizer.h> #include <boost/thread/thread.hpp> #include "mongodb_store/SetParam.h" #include <actionlib/server/simple_action...
<commit_before>#ifndef __REPLICASET_HPP_INCLUDED__ #define __REPLICASET_HPP_INCLUDED__ #include <iterator> #include <memory> #include <set> #include <string> struct Replica { std::string hostname; short port; Replica() : hostname(), port() { } Replica(std::string h, short...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include "YMain.h" /** YDA **/ #include "YSpriteSheetManager.h" #include "YPoint.h" #include "YVector.h" #include "YFileSystem.h" /** Penguin **/ #include "Penguin.h" #include "Fish.h" #include "Crab.h" /** C++ **/ #include <functional> #include <vector> #undef main YSpriteSheetManager::kError loadRe...
<commit_before>#include <bits/stdc++.h> using namespace std; class Node { public: int data; Node *left; Node *right; Node(int d) { data = d; left = NULL; right = NULL; } }; class Solution { public: Node* insert(Node* root, int da...
<commit_before>// MenuTools.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "MenuTools.h" #include "Startup.h" #include "MenuCommon/Defines.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance TCHAR szTitle[MAX_LOADSTRING]; ...
<commit_before>/* * Copyright (c) 2015-2019 Dubalu LLC * * 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, mod...
<commit_before>/*------------------------------------------------------------------------- * * nested_loop_join.cpp * file description * * Copyright(c) 2015, CMU * * /peloton/src/executor/nested_loop_join_executor.cpp * *------------------------------------------------------------------------- */ #include "b...
<commit_before>#include <iostream> #include <vector> using namespace std; // // The goal of the program is to verify Burnside's lemma. // Burnside's lemma is useful for counting things with symmetry. // // This program uses the lemma to compute the number of necklaces // that can be formed by n = 5 beads with c = 10 c...
<commit_before>// Time: O(max(r, c) * wlogw) // Space: O(w^2) class Solution { public: int shortestDistance(vector<vector<int>>& maze, vector<int>& start, vector<int>& destination) { static const vector<vector<int>> dirs = {{-1, 0}, {0, 1}, {0, -1}, {1, 0}}; priority_queue<node, vector<node>, grea...
<commit_before>// Time: O(logn) // Space: O(1) class Solution { public: /** * @param num an integer * @return true if num is an ugly number or false */ bool isUgly(int num) { if (num == 0) { return false; } for (const auto& i : {2, 3, 5}) { while ...
<commit_before>#include "mat4.h" #include <memory.h> #include <string.h> namespace fd { namespace core { namespace math { void mat4::LoadRows(__m128* rows) const { rows[0] = _mm_set_ps(m[0 + 3 * 4], m[0 + 2 * 4], m[0 + 1 * 4], m[0 + 0 * 4]); rows[1] = _mm_set_ps(m[1 + 3 * 4], m[1 + 2 * 4], m[1 + 1 * 4], m...
<commit_before><commit_msg>coverity#708715 unused member variable<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ActionMapTypesOOo.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-09-09 15:35:10 $ * * The Contents of this file ...
<commit_before>/* Copyright (c) 2012 Carsten Burstedde, Donna Calhoun 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 ...