text
stringlengths
54
60.6k
<commit_before>#include "output_ts_base.h" #include <mist/bitfields.h> namespace Mist{ TSOutput::TSOutput(Socket::Connection &conn) : TS_BASECLASS(conn){ packCounter = 0; ts_from = 0; setBlocking(true); sendRepeatingHeaders = 0; lastHeaderTime = 0; } void TSOutput::fillPacket(char const *dat...
<commit_before>#include "output_ts_base.h" #include <mist/bitfields.h> namespace Mist{ TSOutput::TSOutput(Socket::Connection &conn) : TS_BASECLASS(conn){ packCounter = 0; ts_from = 0; setBlocking(true); sendRepeatingHeaders = 0; lastHeaderTime = 0; } void TSOutput::fillPacket(char const *dat...
<commit_before>/** * @file pendingcontactrequest.cpp * @brief Class for manipulating pending contact requests * * (c) 2013-2014 by Mega Limited, Wellsford, 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...
<commit_before><commit_msg>distance joint spring enabled by default<commit_after><|endoftext|>
<commit_before>#include <os> #include <info> #include <smp> #include <statman> #include <kernel/timers.hpp> #include <kernel/solo5_manager.hpp> extern "C" { #include <solo5.h> } // sleep statistics static uint64_t os_cycles_hlt = 0; extern "C" void* get_cpu_esp(); extern uintptr_t _start; extern uintptr_t _end; ext...
<commit_before> /*! \file \author Igor Mironchik (igor.mironchik at gmail dot com). Copyright (c) 2014 Igor Mironchik 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 re...
<commit_before>// Copyright (c) 2011-2015 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 <wallet/wallet.h> #include <qt/receivecoinsdialog.h> #include <qt/forms/ui_receivecoinsdialog.h> #i...
<commit_before>#include "Utility/String.h" #include <string> #include <vector> #include <stdexcept> #include <algorithm> #include <cctype> namespace String { namespace { const auto whitespace = " \t\n"; } } std::vector<std::string> String::split(std::string s, std::string delim, size_t count) { ...
<commit_before>/* * Tetromino4.cpp * * Created on: 28.04.2014 * Author: nicola */ #include <iostream> #include "Libraries.hpp" #include "Tetromino4.hpp" #include <sstream> std::string itos(int i){ std::stringstream ss; ss<<i; return ss.str(); } /* Definition of static const, Tick time in ms */ const Po...
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* libmspub * Version: MPL 1.1 / GPLv2+ / LGPLv2+ * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License o...
<commit_before>#ifndef __STAN__PROB__DIST__UNI__CONTINUOUS__INV_CHI_SQUARE_HPP__ #define __STAN__PROB__DIST__UNI__CONTINUOUS__INV_CHI_SQUARE_HPP__ #include <stan/agrad.hpp> #include <stan/math/error_handling.hpp> #include <stan/math/special_functions.hpp> #include <stan/meta/traits.hpp> #include <stan/prob/cons...
<commit_before>// // Copyright Silvin Lubecki 2010 // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef OPENCLAM_CL_HPP_INCLUDED #define OPENCLAM_CL_HPP_INCLUDED #include <CL/cl.h> #inc...
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "rpc_target.h" #include "shared_rpc_resources.h" #include <vespa/fastos/thread.h> #include <vespa/fnet/frt/supervisor.h> #include <vespa/fnet/frt/target.h> #include <vespa/fnet/transport.h> #...
<commit_before>/* Copyright 2021 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>/* * Copyright (c) 2007 The Hewlett-Packard Development Company * All rights reserved. * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating ...
<commit_before>namespace mant { class StandardParticleSwarmOptimisation2011 : public PopulationBasedOptimisationAlgorithm<double> { public: inline explicit StandardParticleSwarmOptimisation2011( const std::shared_ptr<OptimisationProblem<double>> optimisationProblem, const unsigned int po...
<commit_before>/* * Copyright (C) 2018 The Android Open Source Project * * 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 ...
<commit_before>#include <iostream> #include <ipc_msgque.hh> #include <string.h> #include <stdlib.h> #include <string> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <imque/queue.hh> const int CHILD_NUM = 200; const int LOOP_COUNT = 400; void sigsegv_handler(int sig) { std::cerr << "#" <<...
<commit_before>// Copyright (c) 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 "blockencodings.h" #include "chainparams.h" #include "consensus/consensus.h" #include "consensus/validatio...
<commit_before>#include <array> #include <iterator> #include <vector> #include <functional> #include <algorithm> #include <numeric> #include "builtin.hh" #include "util.hh" #include "number.hh" #include "procedure.hh" #include "lisp_ptr.hh" #include "eval.hh" #include "builtin_util.hh" #include "printer.hh" using nam...
<commit_before>/* Copyright (c) 2010, The Barbarian Group 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 co...
<commit_before>/* * (C) 2014,2015 Jack Lloyd * 2016 Matthias Gierlings * * Botan is released under the Simplified BSD License (see license.txt) */ #include "cli.h" #if defined(BOTAN_HAS_TLS) && defined(BOTAN_TARGET_OS_HAS_SOCKETS) #include <botan/tls_client.h> #include <botan/hex.h> #if defined(BOTAN_HAS_TLS_SQ...
<commit_before>#include "command_manager.hh" #include "utils.hh" #include "assert.hh" #include <algorithm> namespace Kakoune { void CommandManager::register_command(const std::string& command_name, Command command, const CommandCompleter& completer) { m_commands[command_nam...
<commit_before>#include "io_utar.h" #include "logger.h" #include <fstream> #include <cmath> #include <cstdint> #include <boost/iostreams/device/file.hpp> #include <boost/iostreams/filtering_stream.hpp> #include <boost/iostreams/filter/gzip.hpp> #include <boost/iostreams/filter/bzip2.hpp> #include <boost/iostreams/strea...
<commit_before>#include <node.h> #include <node_buffer.h> #include <string.h> #include <v8.h> #include <math.h> #include <stdlib.h> #include <assert.h> #ifdef __APPLE__ #include <malloc/malloc.h> #endif #include <zlib.h> // zlib magic something #define WBITS 16+MAX_WBITS #define WBITS_RAW -15 #define CHUNK 1024*100 #...
<commit_before>#pragma once #include <iostream> #define PI 3.1415926535897932 #define TWOPI 2.0*PI #define HPI 0.5*PI #define RPI 1.0/PI #define RTWOPI 1.0/TWOPI #define FPI 4.0*PI #define RFPI 1.0/(FPI) namespace mocc { // Surface and direction indexing enum Surface { EAST = 0, NORTH = 1, ...
<commit_before>/* * Convert GError to a HTTP response. * * author: Max Kellermann <[email protected]> */ #include "request.hxx" #include "bp_instance.hxx" #include "http_client.hxx" #include "nfs/Quark.hxx" #include "ajp/ajp_client.hxx" #include "memcached/memcached_client.hxx" #include "cgi/cgi_quark.h" #include "fcg...
<commit_before>// RSHELL.CPP // Main source code for rshell #include "unistd.h" #include "sys/wait.h" #include "stdio.h" #include "errno.h" #include <iostream> #include <string> #include <vector> #include <boost/algorithm/string.hpp> #include <boost/algorithm/string/regex.hpp> #include <boost/regex.hpp> #include "r...
<commit_before>#include <iostream> #include <string.h> #include <boost/tokenizer.hpp> #include <vector> #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <algorithm> #include <ctype.h> #include <sys/types.h> #include <sys/stat.h> #include <time.h> #include ...
<commit_before>/************************************************************************* * * $RCSfile: MABResultSet.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: hr $ $Date: 2001-10-17 18:18:52 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkTextMapper.cxx Language: C++ Date: $Date$ Version: $Revision$ Thanks: Thanks to Matt Turek who developed this class. Copyright (c) 1993-1995 Ken Martin, Will...
<commit_before>/* Copyright (c) 2008-2019 the MRtrix3 contributors. * * 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/. * * Covered Software is provided under this L...
<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 "atom/browser/browser.h" #include <stdlib.h> #include "atom/browser/native_window.h" #include "atom/browser/window_list.h" #include "atom/common/atom_version....
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ /* ******************************************************************************** ***************************** Implementation Details *************************** *********************************************************...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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 ...
<commit_before><commit_msg>Answer to question 5.5 is complete and close issue #46<commit_after><|endoftext|>
<commit_before>//===- fpcmp.cpp - A fuzzy "cmp" that permits floating point noise --------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. //...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ik_ce.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-06-19 11:48:55 $ * * The Contents of this file are made ava...
<commit_before>//---------------------------- vertex_as_face_05.cc --------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer // to the...
<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>#include <stdio.h> #include <sys/time.h> #include <iostream> #include <sstream> #include <fstream> #include <vector> #include <deque> #include <unordered_map> #include <algorithm> #include <omp.h> // Typedef for our primary data types typedef std::vector<std::string> pages_t; typedef std::unordered_map<...
<commit_before>#include <stdio.h> #include <unistd.h> #include <libgen.h> #include <sys/time.h> #include <omp.h> #include <iostream> #include <sstream> #include <fstream> #include <vector> #include <deque> #include <unordered_map> #include <algorithm> // Typedef for our primary data types typedef std::vector<std::str...
<commit_before>/* Copyright (C) 2015 Marcus Soll All rights reserved. You may use this file under the terms of BSD license as follows: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of sourc...
<commit_before>/* Copyright (c) 2021 PaddlePaddle 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>//===--- XPCService.cpp ---------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>#include <sender.hpp> #include <serialization.hpp> #include <boost/asio/io_service.hpp> using boost::asio::ip::tcp; NetworkSender::NetworkSender(std::shared_ptr<ReplicaSet> replicaset_) : io_service_(), socket_(io_service_), replicaset(replicaset_) { } NetworkSender::NetworkSender(...
<commit_before>#include "zonotope_halfspaces.hpp" #include <gmpxx.h> #include <iostream> int main() { using namespace std; typedef mpz_class NT; int n_tests; cin >> n_tests; for ( int t = 0; t < n_tests; ++t ) { int n, d; cin >> n >> d; vector<vector<NT> > generators ( n, vector<NT> ( d ) );...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Aki "lethalbit" Van Ness <[email protected]> <[email protected]> * * 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 not...
<commit_before>/* Copyright 2002-2013 CEA LIST This file is part of LIMA. LIMA 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 option) ...
<commit_before>#include "server.h" #include "unique_fd.h" #include <iostream> #include <cstdlib> #include <iomanip> #include <cstring> #include <sstream> #include <fstream> #include <thread> #include <sys/time.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <u...
<commit_before>#ifndef SAVE_STATE_H # define SAVE_STATE_H # pragma once struct statebuf { void* sp; void* label; }; #if defined(__GNUC__) inline bool __attribute__((always_inline)) savestate(statebuf& ssb) noexcept { bool r; #if defined(i386) || defined(__i386) || defined(__i386__) asm volatile ( "movl %%esp...
<commit_before>#ifdef SHRINK #include "internal.hpp" #include "macros.hpp" #include <algorithm> namespace CaDiCaL { // This is an extended minimization which goes over all alternative reasons // as first explored in PrecoSAT and discussed by Allen Van Gelder later. // The most important observation in PrecoSAT was ...
<commit_before>/****************************************************************************** * This file is part of the Gluon Development Platform * Copyright (c) 2010 Arjen Hiemstra <[email protected]> * Copyright (c) 2011 Laszlo Papp <[email protected]> * * This library is free software; you can redistribu...
<commit_before>#ifndef SAVE_STATE_H # define SAVE_STATE_H # pragma once struct statebuf { void* sp; void* label; }; #if defined(__GNUC__) inline bool __attribute__((always_inline)) savestate(statebuf& ssb) noexcept { bool volatile r; #if defined(i386) || defined(__i386) || defined(__i386__) asm volatile ( "m...
<commit_before>//------------------------------------------------------------------------------ /// \file string.cpp //------------------------------------------------------------------------------ /// \brief Implementation of general purpose functions for string processing //------------------------------------------...
<commit_before>#include "subcommand.hpp" #include "../vg.hpp" #include "../utility.hpp" #include "../counter.hpp" #include "../stream.hpp" #include <unistd.h> #include <getopt.h> using namespace vg; using namespace vg::subcommand; void help_count(char** argv) { cerr << "usage: " << argv[0] << " count [options]" ...
<commit_before>//------------------------------------------------------------------------------ // File: cmnserver.hpp // // Desc: Common HTTP server - HTTP server for all application // // Copyright (c) 2014-2018 opencvr.com. All rights reserved. //----------------------------------------------------------------------...
<commit_before>// Prints the tag of a audio file // mp3, m4a ogg and flac supported // Bilal Hussain // install: // g++ `taglib-config --cflags --libs` taginfo.cpp -o taginfo // or // g++ -ltag -I/usr/local/include/taglib -L/usr/local/lib taginfo.cpp -o taginfo // if no taglib-config #include <stdio.h> #incl...
<commit_before>/* * Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE...
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * 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 c...
<commit_before>/* Siconos-Kernel version 3.0.0, Copyright INRIA 2005-2008. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published b...
<commit_before>/* * Licensed under Apache License v2. See LICENSE for more information. */ #include <CppUTest/TestHarness.h> #include "CppUTest/CommandLineTestRunner.h" ...
<commit_before>/* * Copyright 2008-2011 NVIDIA Corporation * * 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 require...
<commit_before>#ifndef __FUTURE_HPP__ #define __FUTURE_HPP__ #include "SoftXMT.hpp" #include "Delegate.hpp" #include "Cache.hpp" //TODO: special ArgsCache acquire, which //uses args pointer field as a global address //to the future and either //1. flip the started bit //2. or simply acquire RW instead of RO (and Cach...
<commit_before>#include "pch.h" #include "aiMeshOps.h" namespace impl { template<class Indices, class Counts> inline void BuildConnection( MeshConnectionInfo& connection, const Indices& indices, const Counts& counts, const IArray<float3>& vertices) { size_t num_points = vertices....
<commit_before>/*************************************************************************/ /* audio_driver_ao.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>{ // //This macro produces the flowchart of TFormula::Analyze //Author: Rene Brun gROOT->Reset(); c1 = new TCanvas("c1","Analyze.mac",620,790); c1->Range(-1,0,19,30); TPaveLabel pl1(0,27,3.5,29,"Analyze"); pl1.SetFillColor(42); pl1.Draw(); TPaveText pt1(0,22.8,4,25.2); ...
<commit_before>/// \file /// \ingroup tutorial_math /// Demo for quantiles (with highlight mode) /// /// \macro_image /// \macro_code /// /// \authors Rene Brun, Eddy Offermann TList *lq = 0; TGraph *gr = 0; void hlquantiles() { const Int_t nq = 100; const Int_t nshots = 10; Double_t xq[nq]; // position whe...
<commit_before>#include "updaterbody.hpp" #include "usbshell.hpp" using namespace Updater; using namespace UpdaterAPI; UpdaterBody *GetBody(bool flag, UPDATER_ACTION_MODE mode, firmware_information_t::information *info) { return new UpdaterBodyImpl; } void ReleaseBody(UpdaterBody *body) { delete body; } boo...
<commit_before>#include <fstream> #include <cstring> #include <iostream> #include <vector> #include <unordered_map> #include <algorithm> #include "detectJumps.h" #include "utils.h" using namespace std; uint64_t transformRegionInReadToHash(regionInRead region){ hash<int> regionHash; return regionHash(region.read ...
<commit_before>#include "combat/combat.h" #include "random.h" #include "logconsole.h" #include "dataconsts.h" #include "entity_system.h" #include "srv_attack.h" #include "srv_damage.h" #include "srv_hp_reply.h" #include "components/basic_info.h" #include "components/destination.h" #include "components/life.h" #inclu...
<commit_before>/* Resembla: Word-based Japanese similar sentence search library https://github.com/tuem/resembla Copyright 2017 Takashi Uemura 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 h...
<commit_before>#include <aikido/statespace/RealVectorStateSpace.hpp> #include <aikido/statespace/SO2StateSpace.hpp> #include <aikido/statespace/SO3StateSpace.hpp> #include <aikido/statespace/SE2StateSpace.hpp> #include <aikido/statespace/SE3StateSpace.hpp> #include <aikido/statespace/CompoundStateSpace.hpp> #include <a...
<commit_before>#include "mem/cache/tags/utillru.hh" #include "base/intmath.hh" #include "debug/CacheRepl.hh" #include "mem/cache/tags/cacheset.hh" #include "mem/cache/tags/lru.hh" #include "mem/cache/base.hh" #include "sim/core.hh" #include "mem/cache/blk.hh" #include <typeinfo> UTILLRU::UTILLRU( unsigned _numSets, ...
<commit_before>#ifndef VIENNAMETA_TYPELIST_HPP #define VIENNAMETA_TYPELIST_HPP #include "utils.hpp" #include "typelist_macros.hpp" namespace viennameta { template <class head_, class tail_> struct typelist_t { typedef head_ head; typedef tail_ tail; }; namespace typel...
<commit_before>#ifndef VIENNAGRID_STORAGE_RANGE_HPP #define VIENNAGRID_STORAGE_RANGE_HPP namespace viennagrid { namespace storage { template<typename container_type> class container_range_wrapper { friend class container_range_wrapper<const container...
<commit_before>/** * @file gmm_test.cpp * @author Ryan Curtin * * Test for the Gaussian Mixture Model class. */ #include <mlpack/core.h> #include <mlpack/methods/gmm/gmm.hpp> #include <mlpack/methods/gmm/phi.hpp> #include <boost/test/unit_test.hpp> using namespace mlpack; using namespace mlpack::gmm; BOOST_AUT...
<commit_before>/**************************************************************************** * * Copyright (c) 2013-2014 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are me...
<commit_before>/// // // LibSourcey // Copyright (c) 2005, Sourcey <http://sourcey.com> // // SPDX-License-Identifier: LGPL-2.1+ // /// @addtogroup net /// @{ #include "scy/net/socketadapter.h" #include "scy/net/socket.h" #include <iterator> using std::endl; namespace scy { namespace net { SocketAdapter::Socke...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2010, Rice University * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the follo...
<commit_before>#include <float.h> #include <math.h> #include <stdio.h> #include "simple_label.h" #include "cache.h" #include "rand48.h" #include "vw.h" using namespace std; char* bufread_simple_label(shared_data* sd, label_data* ld, char* c) { ld->label = *(float *)c; c += sizeof(ld->label); if (sd->binary_lab...
<commit_before>/* * This file is part of m-keyboard * * * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * Contact: Nokia Corporation ([email protected]) * * If you have questions regarding the use of this file, please contact * Nokia at [email protected]. * * This l...
<commit_before>// @(#)root/tree:$Id$ // Author: Marek Biskup 07/06/2005 /************************************************************************* * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>// ======================================================================== // // Copyright 2009-2014 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>// $Id$ // The libMesh Finite Element Library. // Copyright (C) 2002-2008 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // This library is free software; you can redistribute and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundat...
<commit_before><commit_msg>Rename ImplGetGradientColorValue<commit_after><|endoftext|>
<commit_before><commit_msg>help coverity out wrt coverity#1267682 String not null terminated<commit_after><|endoftext|>
<commit_before>#include <QApplication> #include <QMainWindow> #include <QToolBar> #include <QDebug> #include "../core/folder.h" #include "../foldermodel.h" #include "../folderview.h" #include "../cachedfoldermodel.h" #include "../proxyfoldermodel.h" #include "../pathedit.h" #include "libfmqt.h" int main(int argc, char...
<commit_before>#include <taichi/visual/gui.h> #include "../tlang.h" TLANG_NAMESPACE_BEGIN auto volume_renderer = [] { CoreState::set_trigger_gdb_when_crash(true); int n = 512; int grid_resolution = 256; auto f = fopen("snow_density_256.bin", "rb"); TC_ASSERT_INFO(f, "./snow_density_256.bin not found"); ...
<commit_before> #include "vtrc-transport-tcp.h" #include "vtrc-protocol-layer.h" #include "vtrc-transport-stream-impl.h" namespace vtrc { namespace common { namespace basio = boost::asio; namespace bip = boost::asio::ip; namespace bsys = boost::system; namespace { typedef transport_tcp::s...
<commit_before>#ifndef MJOLNIR_UTIL_ALIGNED_STORAGE_HPP #define MJOLNIR_UTIL_ALIGNED_STORAGE_HPP #include <type_traits> #include <array> #include <cstdint> namespace mjolnir { template<typename T, std::size_t Align = 64> struct alignas(Align) aligned_storage { public: using type = T; static_assert(Align != ...
<commit_before>/**************************************************************************************/ /* */ /* Visualization Library */ /* http://www.visualizationlibrary...
<commit_before>#ifndef STAN_MATH_REV_FUN_SOFTMAX_HPP #define STAN_MATH_REV_FUN_SOFTMAX_HPP #include <stan/math/rev/meta.hpp> #include <stan/math/rev/fun/value_of.hpp> #include <stan/math/rev/functor/reverse_pass_callback.hpp> #include <stan/math/rev/functor/arena_matrix.hpp> #include <stan/math/prim/fun/Eigen.hpp> #in...
<commit_before>/* Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto 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,...
<commit_before>#include <Refal2.h> namespace Refal2 { //----------------------------------------------------------------------------- // CError void CError::Reset() { ResetSeverity(); ResetFileName(); ResetToken(); ResetMessage(); } bool CError::IsSet() const { return ( Severity() != ES_None && !Message().empt...
<commit_before>/* The MIT License (MIT) Copyright (c) 2013 rajendrauppal 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,...
<commit_before>#include "GrsApi.h" #include "amount.h" #include "chainparams.h" #include "main.h" #include "util.h" #include <iostream> #include <sstream> #include <curlpp/cURLpp.hpp> #include <curlpp/Easy.hpp> #include <curlpp/Options.hpp> #include <curlpp/Infos.hpp> #include "json/json_spirit_value.h" #include "js...
<commit_before>#include "InGame.h" #include <sstream> InGame::InGame(Configuration& newConfig, std::unique_ptr<StartInfo> startInfo) : config(newConfig) { loadGame(startInfo); } InGame::~InGame() { delete interfacePtr; delete networkPtr; delete systemPtr; } void InGame::run() { sf::RenderWindow& window = confi...
<commit_before>// Copyright (C) 2014 Matteo Agostini <[email protected]> // This 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 // (at your option) any ...