text
stringlengths
54
60.6k
<commit_before>#include "Controller.hh" #include <time.h> #include <cmath> #include <map> #include <set> #include <string> #include "Exception.hh" namespace aegir { /* * Controller */ Controller *Controller::c_instance(0); Controller::Controller(): PINTracker(), c_mq_io(ZMQ::SocketType::SUB), c_ps(Pr...
<commit_before>/* * Copyright Copyright 2012, System Insights, 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 * * ...
<commit_before>#ifndef VFRAME_NO_3D #ifndef NO_GLEW #include <GL/glew.h> #endif #endif #include "VGame.h" #include "VCamera.h" #include "VGlobal.h" #include "VTimer.h" #include "VPostEffect.h" #include "VState.h" #include <SFML/System/Clock.hpp> VGame::~VGame() { if (!cleaned) { Cleanup(); } } int VGame::In...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <boost/program_options.hpp> #include "configuration.h" using namespace std; namespace Gps2EventDb { using namespace boost::program_options; boost::program_options::variables_map &getConfig() { static boost::program...
<commit_before>#include "omnicore/notifications.h" #include "omnicore/log.h" #include "omnicore/omnicore.h" #include "omnicore/rules.h" #include "omnicore/utilsbitcoin.h" #include "omnicore/version.h" #include "main.h" #include "util.h" #include "ui_interface.h" #include <boost/algorithm/string.hpp> #include <boost/...
<commit_before>#ifndef __NOD_UTIL_HPP__ #define __NOD_UTIL_HPP__ #if _WIN32 && UNICODE #include <wctype.h> #include <direct.h> #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN 1 #include <windows.h> #endif #else #include <ctype.h> #endif #include <sys/stat.h> #include <string> #include <algorithm> #include <Lo...
<commit_before> // Copyright (c) 2014 niXman (i dotty nixman doggy gmail dotty com) // All rights reserved. // // This file is part of aescrypt(https://github.com/niXman/aescrypt) project. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following...
<commit_before>/* * Copyright (C) 2015-2016 Nagisa Sekiguchi * * 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>// Copyright (c) 2009-2019 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. #include "Variant.h" /// Method to enable unit testing of C++ variant calls from pytest Scalar testVariantCall(std::shared_ptr<Variant> t, uint64...
<commit_before>#include "OGLESGPGPUTest.h" #include "ogles_gpgpu/common/gl/memtransfer_optimized.h" #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #define INITIAL_PROC_TYPE 1 _GATHERER_GRAPHICS_BEGIN class MemTransferScopeLock { public: MemTransferScopeLock(ogles_gpgpu::MemTransferOptimized *transf...
<commit_before>#pragma once #include <tuple> #include <type_traits> #include <limits> #include <algorithm> #include <initializer_list> namespace kl { using std::index_sequence; using std::make_index_sequence; template <typename T> using make_tuple_indices = make_index_sequence<std::tuple_size_v<std::remove_refe...
<commit_before>// Copyright 2011 Google 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 License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
<commit_before>/************************************************************************* * * REALM CONFIDENTIAL * __________________ * * [2011] - [2015] Realm Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Realm Incorporated and its suppliers, * i...
<commit_before>/************************************************************************* * * REALM CONFIDENTIAL * __________________ * * [2011] - [2012] Realm Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Realm Incorporated and its suppliers, * i...
<commit_before> #define DRAW_TRIANGLE_TEXELP(TARGET, X, Y) (&((DRAW_TRIANGLE_TEXEL_TYPE *) TARGET->pixels)[(Y) * TARGET->width + (X)]) #ifndef DRAW_TRIANGLE_COLOR_TO_TEXEL #define DRAW_TRIANGLE_COLOR_TO_TEXEL(V) (V) #endif #ifndef DRAW_TRIANGLE_TEXEL_TO_COLOR #define DRAW_TRIANGLE_TEXEL_TO_COLOR(V) (V) #endif #i...
<commit_before>#include "thriftlink_client.h" boost::shared_ptr<TTransport> _socket; boost::shared_ptr<TTransport> _transport; boost::shared_ptr<TProtocol> _protocol; boost::shared_ptr<ApiForwardClient> _api; static bool connect_internal(); bool thrift_connect(const char* ipaddr, int port) { boost::shared_ptr<...
<commit_before>// Copyright (C) 2010 Tim Moore ([email protected]) // // 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) any lat...
<commit_before>/* Copyright (c) 2010, The Mineserver Project 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>/* * Copyright (c) 2010-2011 OTClient <https://github.com/edubart/otclient> * * 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 limita...
<commit_before>/* * Copyright (c) 2022, The PurpleI2P Project * * This file is part of Purple i2pd project and licensed under BSD3 * * See full license text in LICENSE file at top of project tree */ #include <map> #include <vector> #include <string> #include <memory> #include "I18N.h" // English localization file // ...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before>/******************************************************************************/ /* Copyright 2015 Lucas Dário and Renato Cordeiro Ferreira */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licen...
<commit_before>#pragma once #define AUSS_HPP #include <sstream> #ifdef AUSS_USE_OWN_NAMESPACE #ifndef AUSS_OWN_NAMESPACE_NAME #define AUSS_OWN_NAMESPACE_NAME auss #endif namespace AUSS_OWN_NAMESPACE_NAME { #endif class AutoStringStream { public: AutoStringStream() : m_stream() {} virtual ~AutoStringStream() {}...
<commit_before>#ifndef __JCONER_JSON_HPP__ #define __JCONER_JSON_HPP__ #include "token.hpp" #include "value.hpp" #include "stream.hpp" #include "parser.hpp" #include "dump.hpp" #endif <commit_msg>Add error.hpp in json.hpp<commit_after>#ifndef __JCONER_JSON_HPP__ #define __JCONER_JSON_HPP__ #include "token.hpp" #incl...
<commit_before>#ifndef _PITO_INTERCEPTOR_LIB_C_ #define _PITO_INTERCEPTOR_LIB_C_ #include <pito/interceptor/lib/c_traits.hpp> #include <pito/interceptor/SystemCall.hpp> #include <sys/types.h> #include <sys/time.h> #include <dirent.h> #include <stdlib.h> #include <stdarg.h> #include <fcntl.h> #include "config.hpp" ...
<commit_before>#include "PathShortener.h" #include "simulation/World.h" #include "RRT.h" #include "collision/CollisionDetector.h" #include "dynamics/Skeleton.h" using namespace std; using namespace Eigen; using namespace dart; using namespace simulation; #define RAND12(N1,N2) N1 + ((N2-N1) * ((double)rand() / ((doubl...
<commit_before>#include <fstream> #include <iostream> using namespace std; template <class T> class Tree { private: struct Node { T value_; Node *left; Node *right; Node() {}; Node(const T value) : value_(value) { }; ~Node() {}; void show(ostream &out, int level) const; }; Node *root; void null_...
<commit_before>#include "Viewer.hpp" #include "Physics/Env.hpp" #include "Config.hpp" #include <QApplication> #include <NxPhysics.h> #include <stdio.h> using namespace std; void usage(const char* prog) { fprintf(stderr, "usage: %s -c <config file> [--ui] [--sv]\n", prog); fprintf(stderr, "\t--ui Show GUI\n"); ...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2009 Torus Knot Software Ltd Permission is hereby granted, free of charge,...
<commit_before>#ifndef STACK_HPP #define STACK_HPP #include <iostream> template <class T> class Stack { public: Stack ( ) : capacity (13), size (0), stack ( stack = new T*[capacity]) { } Stack (int c) : capacity (c), size (0), stack (nullptr) { if (c < 0) { capacity = 0; } stack = new T*[capacity]; } Stack...
<commit_before>#ifndef AUTOCHECK_GENERATOR_HPP #define AUTOCHECK_GENERATOR_HPP #include <random> #include <vector> #include <iterator> #include <limits> #include <algorithm> #include "is_one_of.hpp" #include "function.hpp" #include "generator_combinators.hpp" #include "apply.hpp" namespace autocheck { /* Reusable...
<commit_before>#pragma once #include "blackhole/sink.hpp" namespace blackhole { class config_t; template<typename> struct factory; } // namespace blackhole namespace blackhole { namespace sink { /// Null sink implementation that drops all incoming events. class null_t : public sink_t { public: auto filter(c...
<commit_before>#ifndef CAFFE_VISION_LAYERS_HPP_ #define CAFFE_VISION_LAYERS_HPP_ #include <string> #include <utility> #include <vector> #include "caffe/blob.hpp" #include "caffe/common.hpp" #include "caffe/common_layers.hpp" #include "caffe/data_layers.hpp" #include "caffe/layer.hpp" #include "caffe/loss_layers.hpp" ...
<commit_before>/* DLL export definitions for LASzip */ #ifndef LASZIPEXPORT_H #define LASZIPEXPORT_H #ifndef LASZIP_DLL #if (defined(_MSC_VER) || defined __CYGWIN__) && !defined(LAS_DISABLE_DLL) #if defined(LASZIP_DLL_EXPORT) # define LASZIP_DLL __declspec(dllexport) #elif defined(LASZIP_DLL_IMPORT) ...
<commit_before>/* Copyright (c) 2008-2014, 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 ...
<commit_before>/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, Jeffrey Carpenter <[email protected]> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted...
<commit_before>#include "SpaceDefiner.h" #include <cstdlib> #include <ctime> SpaceDefiner::SpaceDefiner() { //yes } SpaceDefiner::~SpaceDefiner() { } //equation must be in terms of X std::vector<vector3d*>* SpaceDefiner::SpaceDefine(std::string str, float start, float end, float num){ std::vector<vector3d*>* vec...
<commit_before><commit_msg>Crash fix<commit_after><|endoftext|>
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/workarounds/adr3...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>/* T0 DA for online calibration Contact: [email protected] Run Type: AMPLITUDE_CALIBRATION DA Type: MON Number of events needed: 5000 Input Files: inLaser.dat, external parameters Output Files: daLaser.root, to be exported to the DAQ FXS Trigger types used: CALIBRATION_EVENT */ #define FILE_OUT...
<commit_before>/*----------------------------------------------------------------------------- This source file is part of Hopsan NG Copyright (c) 2011 Mikael Axin, Robert Braun, Alessandro Dell'Amico, Björn Eriksson, Peter Nordin, Karl Pettersson, Petter Krus, Ingo Staack This file is provided "as is", w...
<commit_before>/* * VapourSynth D2V Plugin * * Copyright (c) 2012 Derek Buitenhuis * * This file is part of d2vsource. * * d2vsource 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 * ve...
<commit_before>/* * author: Max Kellermann <[email protected]> */ #include "NamespaceOptions.hxx" #include "Config.hxx" #include "mount_list.hxx" #include "pool.hxx" #include "system/pivot_root.h" #include "system/bind_mount.h" #include "pexpand.hxx" #include <assert.h> #include <sched.h> #include <unistd.h> #include <...
<commit_before>#pragma once //=====================================================================// /*! @file @brief PicoJPEG 画像クラス @author 平松邦仁 ([email protected]) @copyright Copyright (C) 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/glfw3_app/blob/master/L...
<commit_before>// Copyright (c) 2014-2021 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_IFMT_HPP #define TAO_PEGTL_SRC_TEST_PEGTL_VERIFY_IFMT_HPP #include <tao/pegtl.hpp> #include "verify_meta.hpp" #include "verify...
<commit_before>#line 2 "togo/debug_constraints.hpp" /** @copyright MIT license; see @ref index or the accompanying LICENSE file. @file debug_constraints.hpp @brief Definitions for constraints. */ #pragma once #include <togo/config.hpp> #if defined(TOGO_USE_CONSTRAINTS) #include <type_traits> #define TOGO_CONSTRA...
<commit_before>/** * @file * * @brief * * @copyright BSD License (see doc/COPYING or http://www.libelektra.org) */ #ifndef ELEKTRA_KDB_IO_HPP #define ELEKTRA_KDB_IO_HPP /* * @brief See examples/cpp_example_userio.cpp for how to use * USER_DEFINED_IO */ #define USER_DEFINED_IO #include <key.hpp> #include <i...
<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>//************************************************************************************************** // // OSSIM Open Source Geospatial Data Processing Library // See top level LICENSE.txt file for license information // //**************************************************************************...
<commit_before>#include "gunsystem.hpp" #include "../component/transformcomponent.hpp" #include "../component/guncomponent.hpp" #include "../component/lifecomponent.hpp" #include "../component/physicscomponent.hpp" #include "../component/modelcomponent.hpp" #include "../component/rigidbodycomponent.hpp" #include "../s...
<commit_before>// Copyright (c) 2015-2020 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 <chain.h> #include <chainparams.h> #include <streams.h> #include <zmq/zmqpublishnotifier.h> #include ...
<commit_before>// Copyright (c) 2015 The Bitcoin Core developers // Copyright (c) 2015-2018 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "zmqpublishnotifier.h" #include "chainparams.h...
<commit_before>// Copyright (c) 2015-2018 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 <chain.h> #include <chainparams.h> #include <streams.h> #include <zmq/zmqpublishnotifier.h> #include ...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2009-2012, Willow Garage, Inc. * Copyright (c) 2006, Michael Kazhdan and Matthew Bolitho, * Johns Hopkins University * * All rights reserved. * * Redistrib...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: wizdlg.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: kz $ $Date: 2008-03-06 19:23:09 $ * * The Contents of this file are made av...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: measctrl.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: hr $ $Date: 2007-06-27 17:20:49 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * $RCSfile: pagectrl.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: dr $ $Date: 2001-06-22 16:15:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: svdtxhdl.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: ihi $ $Date: 2006-11-14 13:50:29 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: prtopt.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-09-09 06:46:15 $ * * The Contents of this file are made av...
<commit_before>/************************************************************************* * * $RCSfile: envprt.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2004-08-23 08:50:51 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>createTriggerDescriptor_pp() { // create Trigger Descriptor for p-p interactions AliTriggerDescriptor descrip( "p-p", "Default p-p Descriptor" ); // Define a Cluster Detector //descrip.AddDetectorCluster( "ALL" ); descrip.AddDetectorCluster( "ITS START VZERO TOF" ); // no CRT yet de...
<commit_before>// // MFMDiskController.hpp // Clock Signal // // Created by Thomas Harte on 05/08/2017. // Copyright © 2017 Thomas Harte. All rights reserved. // #ifndef MFMDiskController_hpp #define MFMDiskController_hpp #include "DiskController.hpp" #include "../../NumberTheory/CRC.hpp" #include "../../ClockRec...
<commit_before>// // lexer_stage.cpp // Parse // // Created by Andrew Hunter on 21/08/2011. // Copyright 2011 __MyCompanyName__. All rights reserved. // // TODO: it'd be nice to have a way of designing this so it's not dependent on the language_stage stage // (we don't do this at the moment to keep things re...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 (a...
<commit_before>#include "unit_tests.h" #include "universal_crc.h" //------------- tests for CRC_Type_helper ------------- int test_crc_type_helper_uint8(struct test_info_t *test_info) { TEST_INIT; if( sizeof(CRC_Type_helper< (1-1)/8 >::value_type) != sizeof(uint8_t) || sizeof(CRC_Type...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <math.h> int main(int argc, char* argv[]) { int sum = 0; int i = 0; for (i; i < 1000; i++) { if (i % 3 == 0 || i % 5 == 0) { sum += i; } } printf("%d\n", sum); return 0; } <commit_msg>Fix warnings<commit_after>#include <stdio.h> #inclu...
<commit_before>#include <unistd.h> #include <sys/time.h> #include <cstring> #include "sess.h" IUINT32 iclock(); int main() { struct timeval time; gettimeofday(&time, NULL); srand((time.tv_sec * 1000) + (time.tv_usec / 1000)); UDPSession *sess = UDPSession::DialWithOptions("127.0.0.1", 9999, 2,2); ...
<commit_before>/* This file is part of KOrganizer. Copyright (c) 2000 Cornelius Schumacher <[email protected]> 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 o...
<commit_before>// A work-in-progress llvm backend #include <taichi/common/util.h> #include <taichi/io/io.h> #include <set> #include "cuda_context.h" #include "../util.h" #include "codegen_cuda.h" #include "../program.h" #include "../ir.h" #if defined(TLANG_WITH_LLVM) #include "codegen_llvm.h" #endif TLANG_NAMESPA...
<commit_before>//===--- FixItRewriter.cpp - Fix-It Rewriter Diagnostic Client --*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- LCSSA.cpp - Convert loops into loop-closed SSA form ---------------===// // // The LLVM Compiler Infrastructure // // This file was developed by Owen Anderson and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===-----...
<commit_before>#include <vector> #include <QHBoxLayout> #include <QVBoxLayout> #include <QString> #include <QStandardItemModel> #include <QAction> #include <QMenu> #include <QHeaderView> #include <QTimer> #include "common.h" #include "event.h" #include "task_board.h" namespace Plow { namespace Gui { QStringList Tas...
<commit_before>// Copyright (c) 2014-2015 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/ #ifndef PEGTL_TRACE_HH #define PEGTL_TRACE_HH #include <iostream> #include "parse.hh" #include "normal.hh" #include "nothing.hh" #include "position_info.hh" #include...
<commit_before>/****************************************************************************** * Copyright (C) 2016 Felix Rohrbach <[email protected]> * * 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...
<commit_before>#include "pgxconsole.h" #include "queryview.h" #include "explainview.h" #include <QSqlQueryModel> #include <QSqlQuery> PgxConsole::PgxConsole(QWidget *parent) : QPlainTextEdit(parent) { setViewportMargins(10, 0, 0, 0); setTabStopWidth(40); setUndoRedoEnabled(false); setCaption...
<commit_before>#include <cthun-client/connector/connector.hpp> #include <cthun-client/connector/uuid.hpp> #include <cthun-client/protocol/message.hpp> #include <cthun-client/protocol/schemas.hpp> #define LEATHERMAN_LOGGING_NAMESPACE CTHUN_CLIENT_LOGGING_PREFIX".connector" #include <leatherman/logging/logging.hpp> #i...
<commit_before>// ModelNeurons Class C++ // ModelNeurons.cpp // // Author: Nasir Ahmad // Date: 7/12/2015 // // Adapted from NeuronPopulations by Nasir Ahmad and James Isbister // Date: 6/4/2016 #include "ModelNeurons.h" #include <stdlib.h> #include <stdio.h> // ModelNeurons Constructor ModelNeurons::ModelNeurons() ...
<commit_before>#include "Server.h" /*******************************************************************************/ int my_send(SOCKET& client_socket, string& message) { int result = 0; result = send(client_socket, message.c_str(), message.size(), 0); return result; } /******************************************...
<commit_before>// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <absl/flags/flag.h> #include <absl/flags/parse.h> #include <absl/flags/usage.h> #include <QApplication> #include <QDir> #include...
<commit_before>/// \file PasskeyEntry.cpp //----------------------------------------------------------------------------- /* Passkey? That's Russian for 'pass'. You know, passkey down the streetsky. [Groucho Marx] */ #include "PasswordSafe.h" #include "corelib/PwsPlatform.h" #include "ThisMfcApp.h" #if define...
<commit_before> #include <fstream> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> using std::pair; using std::make_pair; using std::vector; using std::string; using std::cout; using std::ifstream; using std::istringstream; using std::basic_istringstream; /* Dado un cara...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX24T グループ MTU3 制御 @author 平松邦仁 ([email protected]) @copyright Copyright (C) 2017 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/mast...
<commit_before>#include "SecureSocket.hpp" #include <stdio.h> #include <openssl/ssl.h> #include <openssl/err.h> #include <sstream> #include <iostream> #include "Timer.hpp" using namespace Kite; //#define debugprintf(...) fprintf(stderr, __VA_ARGS__) #define debugprintf(...) //TODO: not thread safe static std::map<S...
<commit_before>/* Cycript - Optimizing JavaScript Compiler/Runtime * Copyright (C) 2009-2013 Jay Freeman (saurik) */ /* GNU General Public License, Version 3 {{{ */ /* * Cycript is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Fre...
<commit_before>#include <PCU.h> #include "phBC.h" #include <apf.h> #include <apfMesh.h> #include <fstream> #include <sstream> #include <gmi.h> namespace ph { BC::BC() { values = 0; } BC::~BC() { delete [] values; } bool BC::operator<(const BC& other) const { if (dim != other.dim) return dim < other.dim; ...
<commit_before>#include "geom.hpp" #include "plat2d.hpp" #include "../utils/utils.hpp" #include <SDL/SDL.h> #include <unistd.h> // sleep() #include <vector> #include <cstdlib> #include <cerrno> enum { Width = 640, Height = 480, }; static unsigned int frametime = 20; static unsigned int echo = false; static int next...
<commit_before>//--------------------------------------------------------------------------- // // kPPP: A pppd front end for the KDE project // //--------------------------------------------------------------------------- // // (c) 1997-1998 Bernd Johannes Wuebben <[email protected]> // (c) 1997-1999 Mario W...
<commit_before>#pragma once #include <string> #include <unordered_map> namespace AnyODE { template<class T> void ignore( const T& ) { } // ignore compiler warnings about unused parameter enum class Status : int {success = 0, recoverable_error = 1, unrecoverable_error = -1}; struct OdeSysBase { v...
<commit_before>/********************************************************************* * The MIT License (MIT) * * * * Copyright (c) 2015 Viktor Richter * * ...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ #ifndef _Stroika_Foundation_Containers_Concrete_SparseDataHyperRectangle_stdmap_inl_ #define _Stroika_Foundation_Containers_Concrete_SparseDataHyperRectangle_stdmap_inl_ /* ***************************************************...
<commit_before>// Copyright 2013 Sean McKenna // // 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 ...
<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 "app/l10n_util.h" #include "base/file_util.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" #include ...
<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 "app/l10n_util.h" #include "base/file_util.h" #include "base/rand_util.h" #include "base/string_util.h" #include "chrome/brows...
<commit_before>#include "WindowDX.h" vector<bool> WindowDX::keys; int WindowDX::mouseDeltaX; int WindowDX::mouseDeltaY; HWND WindowDX::hWnd; WindowDX::WindowDX(HINSTANCE hInstance, int cmdShow) { this->hInstance = hInstance; this->cmdShow = cmdShow; this->active = true; keys.resize(NUM_KEYS, false); SetCursor...
<commit_before>/* This file is part of HadesMem. Copyright (C) 2010 Joshua Boyce (aka RaptorFactor, Cypherjb, Cypher, Chazwazza). <http://www.raptorfactor.com/> <[email protected]> HadesMem is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as...
<commit_before>// // Created by Ulrich Eck on 20/07/16. // #ifdef WIN32 #include <utUtil/CleanWindows.h> #endif #include <utVision/TextureUpdate.h> #include <utVision/OpenCLManager.h> #include <utUtil/Exception.h> #include <GL/glut.h> #include <log4cpp/Category.hh> // get a logger static log4cpp::Category& logge...
<commit_before>#include "vast/util/configuration.h" #include <algorithm> #include <cstring> #include <iostream> #include <fstream> namespace vast { namespace util { // TODO: Implement this function. void configuration::load(std::string const& filename) { std::ifstream ifs(filename); if (! ifs) throw error::c...