text
stringlengths
54
60.6k
<commit_before>#define DEBUG 1 /** * File : D2.cpp * Author : Kazune Takahashi * Created : 6/23/2019, 5:37:29 AM * Powered by Visual Studio Code */ #include <iostream> #include <memory> #include <algorithm> template <typename T, typename A = std::allocator<T>> struct vector_base { // vector のためのメモリ構造 A all...
<commit_before>#define DEBUG 1 /** * File : D2.cpp * Author : Kazune Takahashi * Created : 11/13/2019, 7:24:07 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <sta...
<commit_before>#include "texture.h" #include "stb_image.h" #include <iostream> #include <cassert> std::map<std::string, TextureData*> Texture::s_resourceMap; TextureData::TextureData(GLenum textureTarget, int width, int height, int numTextures, unsigned char** data, GLfloat* filters, GLenum* attachments) { m_texture...
<commit_before>/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) ...
<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 distr...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistri...
<commit_before>/* * Servo.cpp * * Created: 07/05/2012 12:46:20 PM * Author: teastman */ #include "Servo.h" Servo::Servo(){ m_minPulseWidth = 600; m_maxPulseWidth = 2400; m_maxVelocity = 500; m_limitVelocity = 100; m_pulseVelocity = pulseVelocity(100); m_currentPulse = 1500; m_destinationPulse = 1500; m...
<commit_before> /****************************************************************************** * * file: CmdLine.cpp * * Copyright (c) 2003, Michael E. Smoot . * All rights reverved. * * See the file COPYING in the top directory of this distribution for * more information. * * THE SOFTWARE IS PR...
<commit_before>#include <Context.h> #include <cmath> #include <iostream> using namespace std; using namespace canvas; void Context::resize(unsigned int _width, unsigned int _height) { getDefaultSurface().resize(_width, _height, (unsigned int)(_width * getDisplayScale()), (unsigned int)(_height * getDisplayScale())...
<commit_before>#include "CryFuse.h" #include <sys/types.h> #include <sys/time.h> #include <dirent.h> #include <cassert> #include "cryfs_lib/CryNode.h" #include "cryfs_lib/CryErrnoException.h" #define UNUSED(expr) (void)(expr) using fusepp::path; namespace cryfs { CryFuse::CryFuse(CryDevice *device) :_device(dev...
<commit_before>// // EigenJS.cpp // ~~~~~~~~~~~ // // Copyright (c) 2014 Rick Yang (rick68 at gmail dot 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 this file, You can obtain one at http://mozilla.org/MPL/2.0/. // #in...
<commit_before>/// @file /// @author Boris Mikic /// @version 2.1 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php #include <hltypes/hmap.h> #include <hltypes/hstring.h>...
<commit_before>// SciTE - Scintilla based Text Editor // Copyright 1998-2001 by Neil Hodgson <[email protected]> // // NAME // LexConf.cxx - lexer for Apache Configuration Files // AUTHOR // first working version contributed by Ahmad Zawawi <[email protected]> on October 28, 2000 // DESCRIPTION // i created th...
<commit_before>#include <gtest/gtest.h> #include <stan/model/model_base.hpp> #include <stan/model/model_base_crtp.hpp> #include <ostream> #include <stdexcept> #include <string> #include <type_traits> #include <utility> #include <vector> struct mock_model : public stan::model::model_base_crtp<mock_model> { mock_model...
<commit_before>#include "LDLTSolver.h" #include <sofa/core/ObjectFactory.h> #include <Eigen/Sparse> #include <Eigen/SparseCholesky> #include <Eigen/LU> #include <Eigen/Cholesky> #include <Eigen/SVD> namespace sofa { namespace component { namespace linearsolver { SOFA_DECL_CLASS(LDLTSolver); int LDLTSolverClass = c...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the...
<commit_before>// Scintilla source code edit control /** @file LexLisp.cxx ** Lexer for Lisp. ** Written by Alexey Yutkin. **/ // Copyright 1998-2001 by Neil Hodgson <[email protected]> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <str...
<commit_before>/*========================================================================= Program: Visualization Library Module: MergePts.cc Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reprod...
<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>/************************************************************************* * * $RCSfile: resourceprovider.cxx,v $ * * $Revision: 1.1 $ * * last change: $Author: tra $ $Date: 2001-06-26 18:36:36 $ * * The Contents of this file are made available subject to the terms of * either of the follow...
<commit_before>#include "DynamicPacker.h" #include "ShaderMgr.h" #include "common/Exception.h" #include "common/Vector.h" #include "common/config.h" #include "common/SettingData.h" #include "dataset/TPNode.h" #include "render/PrimitiveDraw.h" #include "render/style_config.h" #include <gl/glew.h> #include <wx/wx.h> /...
<commit_before>/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2017 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: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_SPACES_CONTINUOUSLAGRANGE_BASE_HH #define DUNE_GDT_SPACES_CONTINUOUSLAG...
<commit_before>// Copyright 2016 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 "escher/shaders/material/material_shader.h" #include "escher/shaders/glsl_generator.h" namespace escher { namespace { constexpr...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // // Contributors: Kirsten Weber #ifndef DUNE_GDT_DISCRETEFUNCTION_DEFAULT_HH #define DU...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // // Contributors: Kirsten Weber #ifndef DUNE_GDT_DISCRETEFUNCTION_DEFAULT_HH #define D...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_LOCALOPERATOR_INTERFACES_HH #define DUNE_GDT_LOCALOPERATOR_INTERFACES_H...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_MAPPER_DEFAULT_PRODUCTFV_HH #define DUNE_GDT_MAPPER_DEFAULT_PRODUCTFV_H...
<commit_before>#include <config.h> #include "error_calc.hh" #include <assert.h> #include <boost/filesystem/fstream.hpp> #include <iostream> #include <map> #include <memory> #include <string> #include <utility> #include <dune/gdt/assembler/system.hh> #include <dune/gdt/discretefunction/default.hh> #include <dune/gdt/...
<commit_before> #include "Object.h" namespace Atlas { void Object::walkTree(int nest, string name, const Object& list) { } void Object::dump(const Object& msg) { } /** (List) insert an Object at this index */ bool Object::insert(size_t ndx, const Object& val) { if (obj->rt != List) return false; ((VVec*)obj)...
<commit_before>#include "Halide.h" #include "copy_2_wrapper.h" #include "tiramisu/utils.h" #include <cstdlib> #include <iostream> #include <chrono> #define NN 10 using namespace std; using namespace std::chrono; int main(int, char **) { // Declare vector input and initialize it with 3 Halide::Buffer<uin...
<commit_before>#include <tiramisu/tiramisu.h> using namespace tiramisu; #define N 1024 #define M 1024 /** * Implementation of SYMM Benchmark in Tiramisu : * * result = alpha*A*B + beta*C * or result = alpha*B*A + beta*C with A is symetric * * A : a symmetric N by N matrix * B, C : a N by M m...
<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>/** * @author : xiaozhuai * @date : 17/1/3 */ #include "../include/Request.h" namespace CXXUrl { Request::Request() : followLocation(true), contentOutput(NULL), headerOutput(NULL), maxRedirs(-1), form(NULL), referer(""), header(NULL) { ...
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include <list> #include <a...
<commit_before>#include "../header/int/Texture.h" #include "../header/ext/EasyBMP.h" Texture::Texture(){ fileName = ""; this->pixelData = NULL; } Texture::Texture(int _width, int _height){ fileName = ""; width = _width; height = _height; textureTarget = GL_TEXTURE_2D; pixelData = new RGBApixel[width*height]; ...
<commit_before>/** * @file attrmap.cpp * @brief Class for manipulating node attributes * * (c) 2013-2014 by Mega Limited, Auckland, New Zealand * * This file is part of the MEGA SDK - Client Access Engine. * * Applications using the MEGA API must present a valid application key * and comply with the the rules ...
<commit_before>// Copyright 2010, Camilo Aguilar. Cloudescape, LLC. #include "bindings.h" /* size of the event structure, not counting name */ #define EVENT_SIZE (sizeof (struct inotify_event)) /* reasonable guess as to size of 1024 events */ #define BUF_LEN (1024 * (EVENT_SIZE + 16)) namespace NodeInotify {...
<commit_before>#ifndef _C4_LIST_HPP_ #define _C4_LIST_HPP_ #include "c4/config.hpp" #include "c4/error.hpp" #include "c4/storage/raw.hpp" #include <iterator> C4_BEGIN_NAMESPACE(c4) template< class T, class I=C4_SIZE_TYPE > using default_list_storage = stg::raw_paged_rt< T, I >; template< class T, class I=C4_SIZE_T...
<commit_before>#include "canread.h" #include <stdlib.h> float decodeCanSignal(CanSignal* signal, uint64_t data) { uint64_t rawValue = getBitField(data, signal->bitPosition, signal->bitSize); return rawValue * signal->factor + signal->offset; } float passthroughHandler(CanSignal* signal, CanSignal*...
<commit_before>/************************************************* * CAST-128 Source File * * (C) 1999-2006 The Botan Project * *************************************************/ #include <botan/cast128.h> #include <botan/bit_ops.h> namespace Botan { namespace { /************...
<commit_before><commit_msg>Fix confusion about filetype of auto-corrected POTs<commit_after><|endoftext|>
<commit_before>/* cclive * Copyright (C) 2010-2013 Toni Gundogdu <[email protected]> * * This file is part of cclive <http://cclive.sourceforge.net/>. * * 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...
<commit_before>#include <stdio.h> #include <string> #include <regex> #include <iostream> #include <fstream> #include <sstream> #include <astar\AStar.h> namespace han { namespace ap { namespace cli { enum arg_options { output_file, pretty_output }; ...
<commit_before>#include "internal.hpp" namespace CaDiCaL { /*------------------------------------------------------------------------*/ // Returns positive number 1 ( > 0) if the given clause is root level // satisfied or the negative number -1 ( < 0) if it is not root level // satisfied but contains a root level fa...
<commit_before>#include <string> #include <vector> #include <iostream> #include <stdlib.h> #include <cstdio> #include <sys/wait.h> #include <sys/stat.h> using namespace std; class command{ protected: vector<string> commandlist; bool commandPass; bool prevCommandPass; string commandType; bool allCount; bo...
<commit_before>/* * Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved. * * 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 limitatio...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief arango benchmark tool /// /// @file /// /// DISCLAIMER /// /// Copyright 2004-2013 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this f...
<commit_before>/* * Copyright 2010-2011 Fabric Technologies Inc. All rights reserved. */ #include "FunctionBuilder.h" #include "ModuleBuilder.h" #include "Manager.h" #include <Fabric/Core/CG/OverloadNames.h> #include <Fabric/Core/RT/Manager.h> #include <llvm/Module.h> #include <llvm/Function.h> #include <llvm/Ana...
<commit_before>// Time: O(nlogn) // Space: O(n) class Solution { public: /** * @param A an integer array * @param start an integer * @param end an integer * @return the number of possible answer */ int subarraySumII(vector<int>& A, int start, int end) { // sum_from_start[i] de...
<commit_before>#include "ScalarType.h" #include "Utils.h" #include <cassert> ScalarType::ScalarType() { } ScalarType::ScalarType(double value) :value(value) { } ScalarType::ScalarType(double value, double tb) :value(value) ,tiebreaker(tiebreaker) { assert(tiebreaker > 0. && tiebreaker < 1.); } void ScalarType::fro...
<commit_before>// Copyright (c) 2012 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/enrollment/enterprise_enrollment_screen.h" #include "base/bind.h" #include "base/logging.h" #i...
<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 "media/base/filter_host.h" #include "media/filters/null_audio_renderer.h" namespace media { // The number of reads to perfor...
<commit_before>/************************************************************************ filename: CEGuiSample.cpp created: 24/9/2004 author: Paul D Turner *************************************************************************/ /*******************************************************************...
<commit_before>#define SOL_CHECK_ARGUMENTS 1 #include <sol.hpp> #include <string> #include <memory> #include <iostream> int main(int, char**) { std::cout << "=== optional and iteration example ===" << std::endl; struct thing { int a = 20; thing() = default; thing(int a) : a(a) {} }; struct super_thing : ...
<commit_before>/* OpenSceneGraph example, osganimate. * * 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...
<commit_before>/* * @file opencog/embodiment/Control/OperationalAvatarController/PatternMiningAgent.cc * * @author Shujing Ke <[email protected]> * @date 2014-04-11 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as ...
<commit_before><commit_msg>CUDA/CPU test for NegativeLogLikelihoodLoss(12) function based loss operator. (#3793)<commit_after><|endoftext|>
<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>/* Copyright (c) 2011 Cody Miller, Daniel Norris, Brett Hitchcock. * * 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 ...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before><commit_msg>patch accessing_xhr.response_as_arraybuffer_from_node_context<commit_after><|endoftext|>
<commit_before>/* Copyright 2020 The TensorFlow Quantum Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include <stdio.h> #include <fstream> #include <ctype.h> #include <metaObject.h> #include <metaUtils.h> int testMetaObject(int , char *[]) { MetaObject tObj; tObj.InitializeEssential(3); tObj.FileName("testObject.txt"); tObj.Comment("TestObject"); tObj.ObjectTypeName("Object"); tObj.Obje...
<commit_before>#include <stdio.h> #include <stdexcept> #include <QMutexLocker> #include <Utils.hpp> #include "USBRadio.hpp" #include "Geometry2d/Util.hpp" // Include this file for base station usb vendor/product ids #include "firmware-common/base2015/usb-interface.hpp" // included for kicer status enum #include "fir...
<commit_before>#include "NFComm/NFPluginModule/NFPlatform.h" #if NF_PLATFORM == NF_PLATFORM_WIN #endif #pragma comment( lib, "Dbghelp.lib" ) #ifdef NF_DEBUG_MODE #if NF_PLATFORM == NF_PLATFORM_WIN #ifdef NF_DYNAMIC_PLUGIN #pragma comment( lib, "NFCore_d.lib" ) #pragma comment( lib, "Theron_d.lib" ...
<commit_before>#include "NFComm/NFPluginModule/NFPlatform.h" #if NF_PLATFORM == NF_PLATFORM_WIN #endif #pragma comment( lib, "Dbghelp.lib" ) #ifdef NF_DEBUG_MODE #if NF_PLATFORM == NF_PLATFORM_WIN #ifdef NF_DYNAMIC_PLUGIN #pragma comment( lib, "NFCore_d.lib" ) #pragma comment( lib, "Theron_d.lib" ...
<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 required by app...
<commit_before><commit_msg>Use better web app icons.<commit_after><|endoftext|>
<commit_before>#include "stdafx.h" #include "AutoFilterTest.h" #include "AutoPacket.h" #include "AutoPacketFactory.h" #include "TestFixtures/Decoration.h" TEST_F(AutoFilterTest, VerifyDescendentAwareness) { AutoCurrentContext()->Initiate(); // Create a packet while the factory has no subscribers: AutoRequired<A...
<commit_before><commit_msg>Implement "indent_size = tab" support.<commit_after><|endoftext|>
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENS...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: abpfinalpage.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: obo $ $Date: 2006-10-12 10:37:12 $ * * The Contents of this file are ...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2014 Paul Asmuth, Google Inc. * * Licensed under the MIT license (see LICENSE). */ #include <stdlib.h> #include <stdint.h> #include <inttypes.h> #include <algorithm> #include "log.h" #include "../fnv.h" namespace fnordmetric { n...
<commit_before>// // main.cpp // NetworksProject // // Created by Patrick Dang-Ho on 2017-03-12. // Copyright © 2017 Patrick Dang-Ho. All rights reserved. // #include <iostream> int main(int argc, const char * argv[]) { // insert code here... std::cout << "Hello, World!\n"; return 0; } <commit_msg>del...
<commit_before>#include "scope.h" #include <yuni/core/noncopyable.h> #include "details/utils/check-for-valid-identifier-name.h" #include "details/grammar/nany.h" #include "details/ast/ast.h" using namespace Yuni; namespace ny { namespace ir { namespace Producer { namespace { struct AttributeContext final { Attr...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2011, Alexandru-Eugen Ichim * Willow Garage, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
<commit_before>// // BackCurl.cpp // Created by Taymindis Woon on 23/5/17. // Copyright © 2017 Taymindis Woon. All rights reserved. // #include "BackCurl.h" namespace bcl { /** If you activate mainLoopCallBack, please make sure bcl::LoopBackFire on the loop thread, for e.g. UI thread **/ void init() { curl_g...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved. #include "errors.hpp" #include <boost/bind.hpp> #include "arch/arch.hpp" #include "serializer/log/log_serializer.hpp" namespace stress { #include "../stress-client/utils.hpp" #include "../stress-client/utils.cc" #include "../stress-clie...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2016-2018 Morwenn * * 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 ri...
<commit_before>/************************************************************************* * * $RCSfile: framework.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: as $ $Date: 2001-05-21 06:12:47 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>//===- tools/seec-trace-print/OnlinePythonTutor.cpp -----------------------===// // // SeeC // // This file is distributed under The MIT License (MIT). See LICENSE.TXT for // details. // //===----------------------------------------------------------------------===// //...
<commit_before> #include <SFML/Config.hpp> #include <SFML/Graphics.hpp> #include <sfeMovie/Movie.hpp> #include <iostream> #include <algorithm> /* * Here is a little use sample for sfeMovie. * It'll open and display the movie specified by MOVIE_FILE above. * * This sample implements basic controls as follow: * - ...
<commit_before>#include "CommandRegistry.h" void megamol::frontend_resources::CommandRegistry::add_command(const megamol::frontend_resources::Command& c) { const bool command_is_new = command_index.find(c.name) == command_index.end(); const bool key_code_unused = key_to_command.find(c.key) == key_to_command.en...
<commit_before>#pragma once #include <eosio/chain/wasm_interface.hpp> #include <eosio/chain/webassembly/wavm.hpp> #include <eosio/chain/webassembly/wabt.hpp> #include <eosio/chain/webassembly/eos-vm.hpp> #include <eosio/chain/webassembly/runtime_interface.hpp> #include <eosio/chain/wasm_eosio_injection.hpp> #include <...
<commit_before>#include "bittorrent/ui/platforms/IOS.h" #if BT_IOS #import <UIKit/UIAlertView.h> #import <UIKit/UIApplication.h> @interface AlertViewHelper : NSObject<UIAlertViewDelegate> typedef void(^CompletionHandler)(NSInteger buttonIndex); @property (strong,nonatomic) CompletionHandler completionHandler...
<commit_before> /************************************************************************* * Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * F...
<commit_before>#include "Card.h" #include "Deck.h" int main() { // Instantiate deck of cards Deck *d = new Deck(); // Pick a card from the deck string noCards; // 1 or 2 character number const regex reg("\\d{1,2}"); while (true) { cout << "How many cards (1-52): " << flush; getline(cin, noCards); ...
<commit_before>/// \file ROOT/RHistBufferedFill.h /// \ingroup Hist ROOT7 /// \author Axel Naumann <[email protected]> /// \date 2015-07-03 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! /**********************************************...
<commit_before>#include <SofaTest/Python_test.h> #include <sofa/helper/system/FileSystem.h> namespace sofa { static bool ends_with(const std::string& suffix, const std::string& full){ const std::size_t lf = full.length(); const std::size_t ls = suffix.length(); if(lf < ls) return false; ret...
<commit_before>#ifndef VFRENDERING_ISOSURFACE_RENDERER_H #define VFRENDERING_ISOSURFACE_RENDERER_H #include <functional> #include <VFRendering/RendererBase.hxx> namespace VFRendering { class IsosurfaceRenderer : public RendererBase { public: enum Option { ISOVALUE = 700, VALUEFUNCTION }; ...
<commit_before>#ifndef CLOTHO_ITERATOR_HELPER_HPP_ #define CLOTHO_ITERATOR_HELPER_HPP_ #include "clotho/utility/element_iterator.hpp" namespace clotho { namespace utility { template < class Container > struct iterator_helper { typedef clotho::utility::element_iterator< Container > type; static type make_fir...
<commit_before>// // Copyright (c) 2013 Christoph Malek // See LICENSE for more information. // #ifndef RJ_GLOBAL_CONFIG_PARSER_HPP #define RJ_GLOBAL_CONFIG_PARSER_HPP #include <string> #include <utility> #include <vector> namespace rj { using config_entry = std::pair<std::string, std::string>; using config_entr...
<commit_before>/* * This file is part of qpOASES. * * qpOASES -- An Implementation of the Online Active Set Strategy. * Copyright (C) 2007-2015 by Hans Joachim Ferreau, Andreas Potschka, * Christian Kirches et al. All rights reserved. * * qpOASES is free software; you can redistribute it and/or * modify...
<commit_before>#include "arduino_serial.hpp" #include <UartInterface.hpp> #define ARDUINO_DEFAULT_SERIAL 1 #include <stdio.h> #include <stdlib.h> ::uart::ConcreteUart UartCommand(ARDUINO_DEFAULT_SERIAL, &::arduino::serial::uart_callback); namespace arduino { namespace serial { ArduinoSerial Serial; ...
<commit_before>#ifndef MANIFOLDS_FUNCTIONS_COMPLEX_SIMPLIFICATIONS_HH #define MANIFOLDS_FUNCTIONS_COMPLEX_SIMPLIFICATIONS_HH #include "simplify.hh" #include "complex.hh" #include "variables.hh" #include "zero.hh" #include "multiplication.hh" #include "integral_polynomial.hh" namespace manifolds { template <class T> s...
<commit_before>/* @ 0xCCCCCCCC */ #include "tcp_connection.h" #include <WS2tcpip.h> #include "kbase/basic_types.h" #include "kbase/error_exception_util.h" #include "kbase/logging.h" #include "winsock_ctx.h" TcpConnection::TcpConnection() : state_(State::WaitConnect) { Internal = 0; InternalHigh = 0; ...