text
stringlengths
54
60.6k
<commit_before>#include <iostream> #include <set> #include <sstream> #include <algorithm> #include "Lower.h" #include "AddImageChecks.h" #include "AddParameterChecks.h" #include "AllocationBoundsInference.h" #include "Bounds.h" #include "BoundsInference.h" #include "CSE.h" #include "Debug.h" #include "DebugToFile.h" ...
<commit_before>#include "Parse.h" #include <iostream> #include <string> #include <sstream> #include <sys/stat.h> #include <dirent.h> #include <stdio.h> #include <string.h> #include <stack> #include <sys/types.h> #include <unistd.h> //#define delimitor ";#" // token separators using namespace std...
<commit_before>// (C) 2014 Arek Olek #include <functional> #include <iostream> #include <vector> #include <boost/graph/adjacency_list.hpp> #include "bfs.hpp" #include "dfs.hpp" #include "lost.hpp" #include "rdfs.hpp" #include "test_suite.hpp" #include "debug.hpp" #include "options.hpp" #include "range.hpp" #includ...
<commit_before>#include "Tiler.h" #include "cinder/gl/gl.h" #include "cinder/app/App.h" #include "cinder/Rand.h" #include <algorithm> #include <sstream> using namespace reza::tiler; using namespace cinder; using namespace glm; using namespace std; Tiler::Tiler( int32_t imageWidth, int32_t imageHeight, int32_t tileWi...
<commit_before>#ifndef OBJSDL_EVENT_HH #define OBJSDL_EVENT_HH #include <exception> #include <boost/exception/all.hpp> #include <boost/any.hpp> #include <boost/variant.hpp> #include <typeinfo> #include <SDL.h> #include <chrono> #include <unordered_map> #include <functional> struct Window { // TODO: Remove in favour ...
<commit_before>#include "fileIndex.h" #include "utils/logger.h" #include <locale> #include <algorithm> #include <physfs.h> #include <cstring> #include "../lib/physfs/extras/ignorecase.h" using namespace VDFS; FileIndex::FileIndex() { } FileIndex::~FileIndex() { if (PHYSFS_isInit()) PHYSFS_deinit(); } void FileI...
<commit_before>#pragma once #include <cstdint> #include <string> #include <boost/asio.hpp> #include "backend.hpp" #include "blackhole/utils/unique.hpp" #include "connect.hpp" namespace blackhole { namespace sink { namespace socket { template<> class boost_backend_t<boost::asio::ip::udp> { typedef boost::asio...
<commit_before>/********************************************************************* * * Condor ClassAd library * Copyright (C) 1990-2001, CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, WI, and Rajesh Raman. * * This library is free software; you can redistribute it and/or * modif...
<commit_before>/* ** Copyright 1993 by Miron Livny, and Mike Litzkow ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, ** provided that the above copyright notice appear in all copies and that ** both that copyright notice a...
<commit_before>#include <libgen.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <algorithm> #include <iostream> #include "configurator.hpp" #include "common/foreach.hpp" #include "common/params.hpp" #include "common/string_utils.hpp" using namespace mesos::internal; const char* Configura...
<commit_before>#include <controller/pid_controller.hpp> PIDController::PIDController(float kp, float ki, float kd) : kp(kp), ki(ki), kd(kd), currError(0.0), prevError(0.0), accumError(0.0) { } float PIDController::calculate(float sp, float pv, float dt) { this->prevError = this->currError; this->currErr...
<commit_before>/* * Copyright (c) 2016-2017, The OpenThread Authors. * 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. Redistributions of source code must retain the above copyright ...
<commit_before>/* * Copyright 2017 deepstreamHub GmbH * * 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 applic...
<commit_before>#include "doofit/plotting/Plot/Plot.h" // STL #include <string> #include <sstream> #include <vector> // boost #include <boost/regex.hpp> // ROOT #include "TIterator.h" // from RooFit #include "RooArgList.h" #include "RooAbsRealLValue.h" #include "RooAbsData.h" #include "RooAbsPdf.h" #include "RooPlo...
<commit_before>/************************************************************************** The MIT License (MIT) Copyright (c) 2015 Dmitry Sovetov https://github.com/dmsovetov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
<commit_before>#include "btcwif.h" #include <cassert> #include <ecdsa/base58.h> #include "utils.h" namespace btc { namespace wif { std::string PrivateKeyToWif(const std::vector<uint8_t> &priv_key) { // 0. Preparing... std::vector<uint8_t> pk2(priv_key.size() + 1); // 1. 0x80 to front. pk2[0] = 0x80; mem...
<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, softwa...
<commit_before>#include <rleahylib/rleahylib.hpp> #include <world/world.hpp> #include <mod.hpp> #include <cstring> #include <limits> #include <utility> static const String name("Super Flat World Generator"); static const Word priority=2; static const SByte dimensions []={0}; // Key used in the backing store for the /...
<commit_before><commit_msg>Bin dead and commented-out code<commit_after><|endoftext|>
<commit_before>/////////////////////////////////////////////////////////////////////////////// // BSD 3-Clause License // // Copyright (c) 2019, OpenROAD // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions...
<commit_before>// Copyright 2015 PDFium 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 <limits> #include <string> #include "../../public/fpdfview.h" #include "../../testing/embedder_test.h" #include "fpdfview_c_api_test.h"...
<commit_before>//////////////////////////////////////////////////////////////////////////// // // Copyright 2017 Realm 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://ww...
<commit_before>#include "skin_generator.hpp" #include <QtCore/QFile> #include <QtGui/QApplication> #include <QtXml/QXmlSimpleReader> #include <QtXml/QXmlInputSource> #include "../3party/gflags/src/gflags/gflags.h" DEFINE_string(fontFileName, "../../data/01_dejavusans.ttf", "path to TrueType font file"); DEFINE_stri...
<commit_before>#ifndef INC_OBJDETECT_HPP__ #define INC_OBJDETECT_HPP__ #include <opencv2/core/core.hpp> #include <opencv2/gpu/gpu.hpp> #include <vector> // Base class for detector. Doesn't really do much - all of the heavy lifting is // in the derived classes class ObjDetect { public : ObjDetect() : init_(f...
<commit_before>/* * Copyright 2011 Esrille 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 applicable l...
<commit_before> // Event.cpp // Implements the cEvent object representing an OS-specific synchronization primitive that can be waited-for // Implemented as an Event on Win and as a 1-semaphore on *nix #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "Event.h" #i...
<commit_before>#include "petriproperties.h" #include "ui_petriproperties.h" #include "diagram/arcs/ipetriarc.h" PetriProperties::PetriProperties(QWidget *parent) : QWidget(parent), ui(new Ui::PetriProperties) { ui->setupUi(this); this->itemDataID = ""; this->netData = nullptr; this->currentPet...
<commit_before>// // PlaylistChooser.cpp // Kepler // // Created by Tom Carden on 7/10/11. // Copyright 2011 __MyCompanyName__. All rights reserved. // #include <string> #include "cinder/Vector.h" #include "cinder/PolyLine.h" #include "cinder/ImageIo.h" #include "cinder/Rand.h" #include "cinder/Path2d.h" #include ...
<commit_before>/* Copyright (C) 2010 George Kiagiadakis <kiagiadakis.george@gmail.com> 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; either version 2.1 of the License, or ...
<commit_before>//-------------------------------------------------- // file: RPN+UnitTests.cpp //------------------------------------------------- #define CATCH_CONFIG_MAIN #include "catch.hpp" #include "RPNCalc.h" #include "RPNTestHelper.h" using namespace P4_RPNCALC; TEST_CASE("Operation Methods") { RPNTestHelp...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkChooserPainter.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>#include <cerrno> #include <cstring> #include <linux/input.h> #include <sys/ioctl.h> #include <fcntl.h> #include <ros/ros.h> #include <sensor_msgs/JoyFeedbackArray.h> class RumbleEventNode { public: RumbleEventNode() : rumble_fd(-1), device("/usr/input/gamepads/event_dft"), duration...
<commit_before>/* * Copyright (c) 2015, 2016, Intel Corporation * * 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 lis...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AccessibleTreeNode.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 05:01:13 $ * * The Contents of this file...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2015-2017 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>#include "xmlui/LocationXmlHandler.h" #include "xmlui/XmlLocationDeserializer.h" #include "xmlui/Serializing.h" #include "model/Location.h" #include "model/Place.h" using namespace std; using namespace Poco; using namespace Poco::Net; using namespace Poco::XML; using namespace BeeeOn; using namespace Be...
<commit_before>/* * Copyright 2009-2015 The VOTCA Development Team (http://www.votca.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/LICENS...
<commit_before>/* * The MIT License * * Copyright (c) 2010 Sam Day * * 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 ...
<commit_before>/* * Copyright (C) 2013 midnightBITS * * 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><commit_msg>Remove redundant const_cast (#5705)<commit_after><|endoftext|>
<commit_before>/***************************************************************************** * Copyright © 2014 Sergey Radionov <rsatom_gmail.com> * * This program 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 Softw...
<commit_before>/* Copyright (C) 2019 European Spallation Source, ERIC. See LICENSE file */ //===----------------------------------------------------------------------===// /// /// \file /// /// \brief using nlohmann json parser to read calibrations from file //===--------------------------------------------------------...
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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 // //...
<commit_before>/* * Copyright (c) 2003-2005 The Regents of The University of Michigan * Copyright (c) 2007 MIPS Technologies, 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: redistri...
<commit_before>/***************************************************************************** * Internal.hpp: Wraps an internal vlc type. ***************************************************************************** * Copyright © 2014 VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr> * * This program ...
<commit_before>#ifndef RBX_CAPI_HANDLE_HPP #define RBX_CAPI_HANDLE_HPP #include "detection.hpp" #ifdef OS_X_10_5 #ifndef RBX_HAVE_TR1_HASH #include "missing/leopard_hashtable.hpp" #endif #endif #include "vm.hpp" #include "gc/root.hpp" #include "capi/value.hpp" #include <tr1/unordered_set> #ifndef RIO #define RIO ...
<commit_before>/* An Environment is the toplevel class for Rubinius. It manages multiple * VMs, as well as imports C data from the process into Rubyland. */ #include "prelude.hpp" #include "environment.hpp" #include "config_parser.hpp" #include "compiled_file.hpp" #include "vm/exception.hpp" #include "builtin/array....
<commit_before>#pragma once #include <cstdint> #include <array> #include <vector> #include <functional> #include "vm/utils.hpp" namespace yagbe { class palette_entry { public: palette_entry(uint8_t entry) : _entry(entry) { } uint8_t color_index(int i) const { return (_entry >> i*2) & 0b11; } yag...
<commit_before>/* ============================================================================ DELLY: Structural variant discovery by integrated PE mapping and SR analysis ============================================================================ This program is free software: you can redistribute it and/or modify it...
<commit_before>#include <opencv2/objdetect/objdetect.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> #include <stdio.h> using namespace std; using namespace cv; void help() { cout << "\nThis program demonstrates the haar cascade recognizer\n" "this cla...
<commit_before>// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. // Most code came from: chrome/browser/chrome_browser_main_posix.cc. #include "atom/browser/atom_browser_main_parts.h" #include <errno.h> #include <limits.h> #include ...
<commit_before>/* * This file is part of Poedit (http://www.poedit.net) * * Copyright (C) 1999-2010 Vaclav Slavik * * 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 restric...
<commit_before>/* * Copyright (c) 2015 The Jackson Laboratory * * This software was developed by Gary Churchill's Lab at The Jackson * Laboratory (see http://research.jax.org/faculty/churchill). * * This is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Licens...
<commit_before>/* * engine.cc * * Author: Lunatic */ #include "engine.h" #include "alarm.h" #include <cstdlib> namespace Script { static void assert(bool cond, const std::string& msg, const Position& pos) { if (!cond) error(msg, pos); } static long long str2int(const std::string& val) { //char *err = N...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2013 Ahmed H. Ismail * * 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...
<commit_before>/* Copyright (c) 2003, 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 "event.hpp" #include "widget/Widget.hpp" namespace rack { namespace event { void State::setHovered(widget::Widget *w) { if (w == hoveredWidget) return; if (hoveredWidget) { // Leave Leave eLeave; hoveredWidget->onLeave(eLeave); hoveredWidget = NULL; } if (w) { // Enter Co...
<commit_before>// just one implementation for now #include "field_5x52.cpp" extern "C" { static const unsigned char secp256k1_fe_consts_p[] = { 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF, 0xFF,0xFF,0xFF,0xFE,0xFF,0xFF,0xFC,...
<commit_before>#include "LogHandler.hpp" INITIALIZE_EASYLOGGINGPP namespace et { el::Configurations LogHandler::setupLogHandler(int *argc, char ***argv) { // easylogging parse verbose arguments, see [Application Arguments] // in https://github.com/muflihun/easyloggingpp/blob/master/README.md START_EASYLOGGINGPP...
<commit_before>// Formatting library for C++ // // Copyright (c) 2012 - 2016, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #include "fmt/format-inl.h" FMT_BEGIN_NAMESPACE namespace detail { template <typename T> int format_float(char* buf, std::size_t size, const char...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/* * fMBT, free Model Based Testing tool * Copyright (c) 2011, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * *...
<commit_before>// if s1 starts with s2 returns true, else false // len is the length of s1 // s2 should be null-terminated static bool starts_with(const char *s1, int len, const char *s2) { int n = 0; while (*s2 && n < len) { if (*s1++ != *s2++) return false; n++; } return *s2 == 0; } static int parse_mouse...
<commit_before>/************************************************************************* * * $RCSfile: animatedsprite.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2004-11-26 19:12:10 $ * * The Contents of this file are made available subject to the terms of * either of the following...
<commit_before>#include <stdexcept> #include <iostream> #include <string.h> #include <libshm.hpp> namespace shm{ template <key_t KEY, typename T> int Shm<KEY, T>::shmid_ = -1; template <key_t KEY, typename T> Shm<KEY, T>::Shm():shm_(0){ get(); attach(); } template <key_t KEY, typename T> Sh...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: wrap_ITKAlgorithms.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See I...
<commit_before>/*********************************************************/ //SISTEMA DE ENSAYO DE CAJA Y CUBOS AUTOMATIZADO (ABBT)// //Luis Ángel García Astudillo// //Grado en Ingeniería en Tecnologías Industriales// //Universidad Carlos III de Madrid// /*******************************************...
<commit_before><commit_msg>Add support for serializing a FormData structure that has no elements. This is important for supporting cached form submissions of empty data, which occurs with some sites like Gmail.<commit_after><|endoftext|>
<commit_before>#include "cnn/conv.h" #include <sstream> #include <limits> #include <cmath> #include <stdexcept> #include "cnn/functors.h" #if HAVE_CUDA #include "cnn/cuda.h" #include "cnn/gpu-ops.h" #endif using namespace std; namespace cnn { string AddVectorToAllColumns::as_string(const vector<string>& arg_names)...
<commit_before>#include <iostream> #include "cnn/cnn.h" #include "cnn/cuda.h" #include <cudnn.h> #include <curand.h> #pragma comment(lib,"cublas.lib") #pragma comment(lib,"cudart_static.lib") /// need to include library C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v7.5\lib\x64 that has cublas.lib to project #pra...
<commit_before>#include "cnn/init.h" #include "cnn/aligned-mem-pool.h" #include "cnn/cnn.h" #include <iostream> #include <random> #include <cmath> #if HAVE_CUDA #include "cnn/cuda.h" #include <device_launch_parameters.h> #endif using namespace std; namespace cnn { const unsigned ALIGN = 6; AlignedMemoryPool<ALIGN>...
<commit_before>//===- Symbols.cpp --------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>#include <gtest/gtest.h> #include <mixpanel/mixpanel.hpp> #include <mixpanel/detail/worker.hpp> #include "../../source/dependencies/nano/include/nanowww/nanowww.h" #include "test_config.hpp" // // Ensure "Retry-After" HTTP header is respected // TEST(MixpanelNetwork, RetryAfter) { mixpanel::Mixpanel...
<commit_before><commit_msg>Linux: Fallback to SSL if server closes early during TLS handshake. BUG=http://crbug.com/14092 TEST=See bug for example TLS-intolerant server.<commit_after><|endoftext|>
<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>// Copyright (c) 2017 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>#include "nodes.hpp" namespace lang { Variable* resolveNameFrom(ASTNode* localNode, std::string identifier) { if (localNode == nullptr) return nullptr; // Reached tree root and didn't find anything. try { return localNode->getScope()->at(identifier); } catch(std::out_of_range& oor) {...
<commit_before>/****************************************************************************** This source file is part of the Avogadro project. Copyright 2013 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, so...
<commit_before>#ifndef NEU_LAYER_READY_MADE_DEEPCNET_HPP #define NEU_LAYER_READY_MADE_DEEPCNET_HPP //20160129 #include <neu/layer/any_layer.hpp> #include <neu/layer/any_layer_vector.hpp> #include <neu/layer/convolution.hpp> #include <neu/layer/convolution_optimized.hpp> #include <neu/layer/max_pooling.hpp> #include <ne...
<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 //...
<commit_before>#include "cnn/devices.h" #include <boost/algorithm/string.hpp> #include <iostream> #include <unsupported/Eigen/CXX11/Tensor> #include "cnn/cuda.h" #include "cnn/cnn.h" using namespace std; namespace cnn { DeviceMempoolSizes::DeviceMempoolSizes(size_t total_size) { used[0] = total_size/3; used[1]...
<commit_before>#include "Pid.hpp" #include <cstring> #include <stdio.h> #include <iostream> #include <math.h> using namespace std; Pid::Pid(float p, float i, float d, unsigned int windup) { _windupLoc = 0; _errSum = 0; _oldErr = 0; _lastErr = 0; kp = p; ki = i; kd = d; _windup = 0; setWindup(windup); ...
<commit_before>#include "complex.hpp" #include <QStringList> #include "debug.hpp" const Complex Complex::Zero = Complex::fromReal(Real::Zero); const Complex Complex::One = Complex::fromReal(Real::One); const Complex Complex::I = Complex::fromReal(Real::Zero, Real::One); QString Complex::toString(int p) const { ...
<commit_before>#ifndef _PNMC_PN_NET_HH_ #define _PNMC_PN_NET_HH_ #pragma GCC diagnostic push #if defined(__GNUC__) && !defined(__clang__) # pragma GCC diagnostic ignored "-Wunused-local-typedefs" #endif #include <boost/multi_index_container.hpp> #include <boost/multi_index/ordered_index.hpp> #include <boost/multi_inde...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkInteractorStyleSwitch.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2000 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. ...
<commit_before>// bdls_memoryutil.t.cpp -*-C++-*- // ---------------------------------------------------------------------------- // NOTICE // // This component is not up to date with current BDE coding standards, and // should not be used ...
<commit_before>#include "DELSTUFF.H" #include "SPECIFIC.H" #include "LARA.H" #include "SETUP.H" #include "DRAW.H" #include "CALCLARA.H" #include "COLLIDE.H" #if PC_VERSION #include "SETUP.H" #elif PSX_VERSION || PSXPC_VERSION || SAT_VERSION || PS2_VERSION #include "MATHS.H" #endif struct MATRIX3D lara_joint_matrices[...
<commit_before>// Copyright (C) 2009, Vaclav Haisman. All rights reserved. // // Redistribution and use in source and binary forms, with or without modifica- // tion, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright no...
<commit_before>#include <v8.h> #include <node.h> #include <node_buffer.h> #include <string.h> #include <assert.h> #include "reader.h" using namespace hiredis; static void *tryParentize(const redisReadTask *task, const Local<Value> &v) { Reader *r = reinterpret_cast<Reader*>(task->privdata); size_t pidx, vidx;...
<commit_before>#ifndef CLOCK_UNORDERED_MAP #define CLOCK_UNORDERED_MAP #include<functional> //equal_to, hash #include<memory> //allocator #include<mutex> #include<shared_mutex> #include<tuple> #include<unordered_map> #include<utility> //forward, move namespace nThread { template<class Key,class T,class Ha...
<commit_before>/* * Copyright (C) 2009 Toni Gundogdu. * * This file is part of cclive. * * cclive is free software: you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation, either version 3 of the License, or (at your option) an...
<commit_before>#include <iostream> #include <string> #include <boost/tokenizer.hpp> #include <vector> using namespace std; using namespace boost; class Connectors { private: string a[100]; bool state = 1; public: void setbool(bool b) { state = b; ...
<commit_before>#include "./scene.h" #include <QCursor> #include <Eigen/Core> #include <Eigen/Geometry> #include <string> #include <vector> #include "./graphics/gl.h" #include "./input/invoke_manager.h" #include "./graphics/render_data.h" #include "./camera_controller.h" #include "./camera_rotation_controller.h" #includ...
<commit_before>/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file gamepadB...
<commit_before>// Copyright (c) 2014-2016 The Dash developers // Copyright (c) 2016-2018 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "main.h" #include "masternode-budget.h" #include "messages...
<commit_before>// Copyright (C) 2015 Jack Maloney. All Rights Reserved. // // This Source Code Form is subject to the terms of the Mozilla Public License, // v. 2.0. If a copy of the MPL was not distributed with this file, You can // obtain one at http://mozilla.org/MPL/2.0/. #include "voltz-internal.h" #include <stdl...
<commit_before>#ifdef HAVE_CONFIG_H #include <config.h> #endif #if defined(USE_GETOPT_LONG) && !defined(_GNU_SOURCE) #define _GNU_SOURCE 1 #endif #include <iostream> #include <fstream> #include <clocale> #include <locale> #include <exception> #include <stdexcept> #ifdef HAVE_GETOPT_H #include <getopt.h> #endif #incl...
<commit_before>/* * ipop-tincan * Copyright 2015, University of Florida * * 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 ...