text
stringlengths
54
60.6k
<commit_before>/* Copyright (c) 2006, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>#include "drake/systems/plants/BotVisualizer.h" #include "drake/systems/plants/RigidBodySystem.h" #include "drake/systems/LCMSystem.h" #include "drake/systems/LinearSystem.h" #include "QuadrotorControl.h" #include "QuadrotorState.h" using namespace std; using namespace Drake; using namespace Eigen; in...
<commit_before>/************************************************************************* * * $RCSfile: lotform.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-11-26 13:48:13 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * $RCSfile: xmltabi.cxx,v $ * * $Revision: 1.33 $ * * last change: $Author: vg $ $Date: 2005-02-21 16:00:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2017 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; eit...
<commit_before>/************************************************************************* * * $RCSfile: plugcon.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: svesik $ $Date: 2001-11-12 12:41:28 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/* This file is part of libakonadi. Copyright (c) 2006 Till Adam <adam@kde.org> Copyright (c) 2007 Volker Krause <vkrause@kde.org> Copyright (c) 2007 Bruno Virlet <bruno.virlet@gmail.com> This library is free software; you can redistribute it and/or modify it under the terms of ...
<commit_before>#include "movegen.h" #include "board.h" #include "defs.h" #include <iostream> MoveGen::MoveGen(Board board) { setBoard(board); } MoveGen::MoveGen() { Board board; setBoard(board); } void MoveGen::setBoard(Board board) { _moves = MoveList(); _board = board; genMoves(); } MoveList MoveGen::...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <vector> #include <typeinfo> #include <cstdlib> #include <stdlib.h> #include "Persona.h" #include "Administrador.h" #include "Repartidor.h" #include "Baraja.h" #include "Carta.h" #include "Jugador.h" #include "Mesa.h" using namespace std;...
<commit_before><commit_msg>Create main.cpp<commit_after><|endoftext|>
<commit_before><commit_msg>-adapted to changes<commit_after><|endoftext|>
<commit_before>// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "tcp.h" /****************** * tcp crap */ /* inlined, see tcp.h bool tcp_read(int sd, char *buf, int len) { while (len > 0) { int got = ::recv( sd, buf, len, 0 ); if (got == 0) { ...
<commit_before>#include "ncurses.hh" #include <ncurses.h> #include <stdexcept> #include "utf8.hh" namespace curses { // get an array of bytes represents a UTF-8 character from window. std::string get_utf8_char(WINDOW* window) { std::array<uint8_t, 6> buf{0}; auto ch0 = static_cast<uint8_t>(::wgetch(window) & 0x...
<commit_before>/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: Giovanni De Toni * */ #include <shogun/lib/type_case.h> #include <shogun/lib/observers/ParameterObserverLogger.h> using namespace shogun; ParameterObserverLogger::ParameterObserverLogger() {} ParameterO...
<commit_before>/* Copyright libCellML Contributors 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 or agreed to in ...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before><commit_msg>Fixed an infinite loop when the paste destination has only one sheet.<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <cstdio> #include <algorithm> #include <utility> #include <string> #include <vector> #include <cmath> #include <set> #include <stack> #include <queue> #include <map> #include <sstream> #include <ctime> #include <numeric> #include <cstring> #include <functional> using namespa...
<commit_before><commit_msg>fdo#77806: Check the boundaries before accessing an array....<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: addonstoolboxfactory.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: ihi $ $Date: 2007-08-17 13:33:47 $ * * The Contents of this f...
<commit_before>/* Highly Optimized Object-Oriented Molecular Dynamics (HOOMD) Open Source Software License Copyright (c) 2008 Ames Laboratory Iowa State University All rights reserved. Redistribution and use of HOOMD, in source and binary forms, with or without modification, are permitted, provided that the following ...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt // Based on Mesmerizer.cs in libopenmetaverse /* * Copyright (c) 2008, openmetaverse.org * All rights reserved. * * - Redistribution and use in source and binary forms, with or without * modification, are perm...
<commit_before>#include "ros/ros.h" #include <math.h> #include "geometry_msgs/Twist.h" #include "std_msgs/String.h" #include "nav_msgs/Odometry.h" #include <math.h> #include <string.h> #include <time.h> #include <stdlib.h> //Parameters float v_max = 0.6; float a_max = 0.8; float a_max_p = 0.06; double wait_period = 2...
<commit_before>#include <cmath> #include <algorithm> #include "systems/movementsystem.h" #include "cli_mousecmd.h" #include "cli_stopmoving.h" #include "cmapserver.h" #include "packetfactory.h" #include "srv_mousecmd.h" #include "srv_stopmoving.h" #include "srv_adjustposition.h" #include "srv_switchserver.h" #include ...
<commit_before>/*! * \brief * * \author ddubois * \date 27-Sep-16. */ #include <algorithm> #include <easylogging++.h> #include <regex> #include "mesh_store.h" #include "../../../render/nova_renderer.h" #include "builders/chunk_builder.h" #include "../utils/io.h" namespace nova { std::vector<render_object>& mesh_s...
<commit_before>// // Copyright (c) 2014-2017 Ian Godin and Kimball Thurston // All rights reserved. // Copyrights licensed under the MIT License. // See the accompanying LICENSE.txt file for terms // #include <platform/platform.h> #include <platform/system.h> #include <platform/dispatcher.h> #include <gl/opengl.h> #in...
<commit_before>// Copyright (c) 2019 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #include <controller_manager/controller_manager.h> #include <franka_hw/franka_combined_hw.h> #include <ros/ros.h> #include <franka/control_tools.h> #include <sched.h> #include <string> ...
<commit_before>/* * This file is part of the UnTech Editor Suite. * Copyright (c) 2016 - 2021, Marcus Rowe <undisbeliever@gmail.com>. * Distributed under The MIT License: https://opensource.org/licenses/MIT */ #include "style.h" #include "imgui-drawing.h" #include "models/common/clamp.h" #include "models/common/it...
<commit_before>#ifndef _PNMC_MC_STATISTICS_SERIALIZE_HH_ #define _PNMC_MC_STATISTICS_SERIALIZE_HH_ #include <cereal/archives/json.hpp> #include <cereal/types/deque.hpp> #include "conf/configuration.hh" #include "mc/classic/statistics.hh" namespace pnmc { namespace mc { namespace classic { /*------------------------...
<commit_before>// Preprocessor directive for allowing us to do a post-initialization update. #if (BL_SPACEDIM==3) #ifndef do_problem_post_init #define do_problem_post_init #endif #endif // Preprocessor directive for allowing us to do a post-timestep update. #ifndef do_problem_post_timestep #define do_problem_post_ti...
<commit_before> #include "porting.hpp" #include "config.hpp" #include "hamsterdb.hpp" #include "endian.hpp" #include "os.hpp" #include "misc.hpp" static ham_u8_t aeskey[16]={ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f }; static int my_compare_...
<commit_before>#include "PortalGame.h" #include "PhysicsController.h" #include "Sphere.h" #include "PhysicsCamera.h" #include "Box.h" #include "Cylinder.h" #include "Steerable3DController.h" #include "Ground.h" #include "Content.h" #include <btBulletDynamicsCommon.h> #include <gtc/quaternion.hpp> #include <gtx/quaterni...
<commit_before>#include "IteratorAnalysis.h" #include "iterators/Dialect/Iterators/IR/Iterators.h" #include "iterators/Utils/NameAssigner.h" #include "mlir/Dialect/LLVMIR/LLVMTypes.h" #include "mlir/IR/BuiltinAttributes.h" #include "llvm/ADT/TypeSwitch.h" using namespace mlir; using namespace mlir::iterators; using ...
<commit_before>/************************************************************************* * * $RCSfile: ed_ioleobject.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: mav $ $Date: 2003-03-10 16:10:22 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before> /* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 req...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: elementexport.hxx,v $ * * $Revision: 1.17 $ * * last change: $Author: kz $ $Date: 2007-05-10 09:41:18 $ * * The Contents of this file are...
<commit_before><commit_msg>Move all functions in include/abaclade/io/binary.hxx to the end of the file to avoid forward declarations<commit_after><|endoftext|>
<commit_before>#include "diagnostic.h" #include "ui.h" #include "global.h" #include "robot.h" #include <FEHBuzzer.h> #include <new> namespace G8 { namespace Tasks { #define TASK_RESULT_QUIT 0x20000000 TASK_RESULT Quit(Robot * const pRob) { return TASK_RESULT_SUCCESS | TASK_RESULT_QUIT; } TASK_RESULT Redfine...
<commit_before>#include "yaml-cpp/value.h" #include <map> int main() { YAML::Value value(YAML::ValueType::Sequence); for(int i=0;i<5;i++) value.append(i); for(YAML::const_iterator it=value.begin();it!=value.end();++it) { std::cout << it->as<int>() << "\n"; } return 0; } <commit_msg>Map iterator works\!<co...
<commit_before>#include "parser.h" int priority[128]; bool rightassoc[128]; const std::vector<std::pair<token_type, std::string> > splitExpression(const std::string &expr) { priority[int('+')] = 0; priority[int('-')] = 0; priority[int('*')] = 1; priority[int('/')] = 1; priority[int('%')] = 1; ...
<commit_before>/* * Copyright 2020 Arduino SA * SPDX-License-Identifier: Apache-2.0 * * 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 ...
<commit_before><commit_msg>Overlapping rectangles area.<commit_after><|endoftext|>
<commit_before>/* FasTC * Copyright (c) 2013 University of North Carolina at Chapel Hill. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for educational, research, and non-profit purposes, without * fee, and without a written agreement is hereby gr...
<commit_before>#include "parser.hpp" ////////////// // Includes // #include <istream> #include <string> #include <vector> #include <tuple> #include <map> #include "parsestream.hpp" #include "streamutils.hpp" #include "json.hpp" ////////// // Code // // Creating a parse exception. ParseException::ParseException(std:...
<commit_before><commit_msg>lib: reset the DBus proxy when registration failed<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: excdefs.hxx,v $ * * $Revision: 1.41 $ * * last change: $Author: rt $ $Date: 2004-03-02 09:41:52 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/************************************************************************* * * $RCSfile: viewcontactofsdrmediaobj.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2004-10-12 10:04:42 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>/// \file player.cpp /// Holds all code for the MistPlayer application used for VoD streams. #include <iostream>//for std::cerr #include <stdio.h> //for fileno #include <stdlib.h> //for atoi #include <sys/time.h> #include <mist/dtsc.h> #include <mist/json.h> #include <mist/config.h> #include <mist/socke...
<commit_before>/* * * Copyright (c) 2020 Project CHIP Authors * Copyright (c) 2018 Nest Labs, Inc. * 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 Licens...
<commit_before>// // test-rtx-controller.cc // // Created by Peter Gusev on 23 August 2017. // Copyright 2013-2016 Regents of the University of California // #include <stdlib.h> #include <algorithm> #include <ctime> #include <ndn-cpp/interest.hpp> #include <ndn-cpp/name.hpp> #include <boost/shared_ptr.hpp> #inclu...
<commit_before>/* * Copyright 2017-2018 Baidu 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 applicabl...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: excimp8.hxx,v $ * * $Revision: 1.65 $ * * last change: $Author: rt $ $Date: 2006-05-05 09:40:31 $ * * The Contents of this file are made ...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2009 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 documenta...
<commit_before>#include "window_handle.hpp" WindowHandle::WindowHandle() : m_hasPendingUpdates(false), m_isUpdatesEnabled(true), m_needRedraw(true), m_stallsCount(0) { } void WindowHandle::setVideoTimer(VideoTimer * videoTimer) { m_videoTimer = videoTimer; m_frameFn = videoTimer->frameFn(); m_videoTimer...
<commit_before>void PHOSPbPbQA(const char* dataset="collection.xml") { gSystem->Load("libTree.so"); gSystem->Load("libGeom.so"); gSystem->Load("libVMC.so"); gSystem->Load("libPhysics.so"); //load analysis framework gSystem->Load("libANALYSIS"); gSystem->Load("libANALYSISalice"); //AliAnalysisTaskSE ...
<commit_before><commit_msg>Resolves tdf#72152: respect page orientation of Calc files in recent docs<commit_after><|endoftext|>
<commit_before>/** * \file * \brief SignalsReceiverControlBlock class header * * \author Copyright (C) 2015 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 ...
<commit_before>/* * Copyright (C) 2017 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>/* * (C) Copyright 2015 Kurento (http://kurento.org/) * * 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><commit_msg>this return value is always true<commit_after><|endoftext|>
<commit_before>#include <crow.h> #include <json.h> #include <mustache.h> #include <boost/program_options.hpp> #include <sstream> #include <iostream> #include <fstream> #include <map> #include <string> #include <thread> using namespace boost::program_options; std::map<std::string, std::string> name_pass_map; std::ma...
<commit_before>#ifndef SERVER_NETCOM_HPP #define SERVER_NETCOM_HPP #include <netcom_base.hpp> #include <SFML/Network.hpp> namespace server { class netcom : public netcom_base { public : netcom(); ~netcom(); /// Define the maximum number of simultaneously connected clients. /**...
<commit_before>#include <dbc/Builder.h> #include <dbc/ArgsControl.h> #define ArgError(Message, ...) \ fprintf(stderr, Message, ##__VA_ARGS__); \ exit(-1); int main(int argc, const char* argv[]) { using namespace dbc; #if _DEBUG || DEBUG gen::ASM6502CG Generator(false); Builder::Build("test/main.dbs", &Generator,...
<commit_before>/* The MIT License (MIT) Copyright (c) 2014 Antonio SJ Musumeci <trapexit@spawn.link> 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 ...
<commit_before>#include <stdio.h> #include <dirent.h> #include <sys/stat.h> #include <sys/param.h> #include <sys/mount.h> #include <fnmatch.h> #include <stdarg.h> #include "pen.h" #include "file_system.h" #include "memory.h" #include "pen_string.h" extern pen::user_info pen_user_info; #ifdef __linux__ #define get_mt...
<commit_before>#ifdef WIN32 ///////////////////////////////////////////////////////////////////////////// // Disable unavoidable warning messages: // 4103: used #pragma pack to change alignment // 4114: same type qualifier used more than once // 4201: nonstandard extension used : nameless struct/union // 4237: "ke...
<commit_before>//Abstract class for mutation operators. Lets us define any mutation operation we like. #include <random> #include <chrono> #include <string> #include <sstream> #include "nodes/EANode/MutationOperation.hpp" using namespace std; MutationOperation::MutationOperation() { seed = chrono::system_clock::now...
<commit_before>/* Copyright (c) 2008 Bruno Virlet <bvirlet@kdemail.net> 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...
<commit_before>// This code is based on Sabberstone project. // Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva // RosettaStone is hearthstone simulator using C++ with reinforcement learning. // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon #include <Rosetta/Actions/Choose.hpp> #include ...
<commit_before>// RUN: %clangxx_asan -O0 %s -o %t // RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t 2>&1 | FileCheck %s // RUN: %env_asan_opts=allocator_may_return_null=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NULL #include <stdio.h> #include <stdlib.h> extern void *aligned_alloc (size_t alignm...
<commit_before>// Copyright (c) 2018 Chris Ohk, Youngjoong Kim, SeungHyun Jeon // We are making my contributions/submissions to this project solely in our // personal capacity and are not conveying any rights to any intellectual // property of any third parties. #include <hspp/Models/Entity.hpp> #include <hspp/Models...
<commit_before>#include "gtest/gtest.h" #include "IFile.h" #include "IFolder.h" #include "IMediaLibrary.h" class Folders : public testing::Test { public: static std::unique_ptr<IMediaLibrary> ml; protected: virtual void SetUp() { ml.reset( MediaLibraryFactory::create() ); ...
<commit_before>// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <map> #include <string> #include "atom/common/crash_reporter/crash_reporter.h" #include "atom/common/native_mate_converters/file_path_converter.h" #include "ba...
<commit_before>AliAnalysisTaskHaHFECorrel *AddTaskHaHFECorrel(Double_t period, Double_t MinPtEvent, Double_t MaxPtEvent, Bool_t TRDQA, Bool_t TagEff, Bool_t RecEff, Bool_t OneTimeCheck, Bool_t CorrHadron, Bool_t CorrLP, Bool_t MCTruth, Bool_t IsMC, Bool_t IsAOD, Bool_t IsHFE, Bool_t UseTender, Double_t EtaMax, Int_t I...
<commit_before>#include <boost/python.hpp> #include "cimage.h" #include "cproc.h" using namespace boost::python; class CimageWrapper : public Cimage , public wrapper<Cimage> { public: CimageWrapper(size_t width, size_t height) : Cimage(width, height) { } public: void info() { ...
<commit_before>// RUN: %clangxx_asan -O0 %s -o %t // RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t 2>&1 | FileCheck %s // RUN: %env_asan_opts=allocator_may_return_null=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NULL #include <stdio.h> #include <stdlib.h> int main() { void *p = aligned_alloc(17...
<commit_before>// 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 or agreed to in writing, software ...
<commit_before>// RUN: %check_clang_tidy %s bugprone-too-small-loop-variable %t long size() { return 294967296l; } //////////////////////////////////////////////////////////////////////////////// /// Test cases correctly caught by bugprone-too-small-loop-variable. void voidBadForLoop() { for (int i = 0; i < size()...
<commit_before>/* This file is part of HadesMem. Copyright (C) 2011 Joshua Boyce (a.k.a. RaptorFactor). <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com> HadesMem 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 So...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 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 <random.h> #include <crypto/sha512.h> #include <support/...
<commit_before>#include <condition_variable> #include <functional> #include <list> #include <mutex> #include <string> #include <thread> #include <queue> #include <gmock/gmock.h> #include <gtest/gtest.h> #include "thread-capture.h" #include "thread-crosser.h" using testing::ElementsAre; namespace { class LogText : ...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 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 "random.h" #include "crypto/sha512.h" #include "support/c...
<commit_before>#include "MenuComponent.hpp" #include "GameEngine/GameEngine.h" #include "SpriteComponent.hpp" #include "FileSystem/ImagePreloadingMapper.hpp" #include "Events/UIChangeEvent.hpp" #include "Events/UISelectEvent.hpp" #include "GameEngine/Utilities.hpp" namespace ASSB { // Constructor MenuComponent::Me...
<commit_before>/* * convey's game of life */ #ifndef GOL_HPP #define GOL_HPP 1 #include <iostream> #include <fstream> #include <cstdlib> #define GOL_WIDTH 32 #define GOL_HEIGHT 32 using namespace std; class gameOfLife { public: gameOfLife(); void init_file (char*); void play(); private: bool life[GOL_WI...
<commit_before>#include <iostream> #include <vector> using namespace std; int main() { int s = 0, input = 0; vector<int> val; vector<int>::iterator ptr; cout<<"Please enter as many integers as you like."<<endl; do{ cin>>input; val.push_back(input); cout<<"Continue? (1 = Yes / 0 = No)"<<endl; cin>>input; ...
<commit_before>#include <vector> #include <iostream> using namespace std; int main() { vector<int> v(10, 0); vector<int>::iterator iter = v.begin(); int counter = 7; for (; iter != v.end(); ++iter) { if (counter % 5 == 3) { iter = v.insert(iter, -1); } ++counter; ...
<commit_before>/************************************************************************* * * $RCSfile: ZipPackageFolder.hxx,v $ * * $Revision: 1.16 $ * * last change: $Author: mtg $ $Date: 2001-03-16 17:11:40 $ * * The Contents of this file are made available subject to the terms of * either of the follo...
<commit_before> #include "stdafx.h" #include "dbg.h" #include <chrono> namespace common { namespace dbg { // Log Thread common::cWQSemaphore g_logThread; struct sLogData { int type; // 0:log, 1:error log, 2:log + error log, 3:others file Str256 str; }; StrPath g_logPath = "log.txt"; StrPath g_e...
<commit_before>#include <string> #include <vector> #include <memory> #include <algorithm> #include "Vec2i.h" #include "IMapElement.h" #include "CDoorway.h" #include "CActor.h" #include "CMap.h" #include "CBullKnight.h" #include "CFalconKnight.h" #include "CTurtleKnight.h" #include "CCuco.h" #include <iostream> namesp...
<commit_before>//---------------------------------------------------------------------------// /*! * \file tstMesh.cpp * \author Stuart R. Slattery * \brief Mesh unit tests. */ //---------------------------------------------------------------------------// #include <iostream> #include <vector> #include <cmath> #in...
<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>/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2021 Filipe Coelho <falktx@falktx.com> * * 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 ...
<commit_before>/* * Copyright (c) 2013-2015, Muhammad Shahzad Shafi <shahzad at voip-demos dot com> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted per Mozilla Public License v2.0. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER...
<commit_before>#include "BufferManager.h" #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <errno.h> #include <pthread.h> ostream& operator<< (ostream &out, handshake_container_t &hand) { out << "hand:" << " "; out << hand.valid; out << hand.mem_released; out << ha...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source Licens...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This application is open source and may be redistributed and/or modified * freely and without restriction, both in commercial and non commercial * applications, as long as this copyright notice is maintained. * * This applicat...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This application is open source and may be redistributed and/or modified * freely and without restriction, both in commercial and non commercial * applications, as long as this copyright notice is maintained. * * This app...
<commit_before>#include "MatrixTransform.h" #include "Group.h" #include <osg/Notify> #include <osgDB/FileNameUtils> #include <osgDB/Registry> using namespace osg; using namespace osgDB; class IVEReaderWriter : public ReaderWriter { public: virtual const char* className() { return "IVE Reader/Writer"; } ...
<commit_before>// The MIT License (MIT) // Copyright (c) 2013-2016 Rapptz, ThePhD and contributors // 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...