text
stringlengths
54
60.6k
<commit_before>/* * httpserver2-threads.cc: Multithreaded HTTP server example * * Copyright (C) 2003-2017 by Thomas Dreibholz * * 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 vers...
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved. #include "extproc/http_runner.hpp" #include "extproc/http_job.hpp" #include "containers/archive/stl_types.hpp" #include "arch/timing.hpp" RDB_IMPL_ME_SERIALIZABLE_3(http_opts_t::http_auth_t, 0, type, username, password); RDB_IMPL_ME_SERIALIZABLE_14...
<commit_before>/* * Copyright (c) 2002-2004 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>// Copyright (c) 2009-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. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <cstddef> #include <cstdint> #...
<commit_before>#include "StdAfx.h" #include "Rw2Decoder.h" /* RawSpeed - RAW file decoder. Copyright (C) 2009 Klaus Post 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 Fou...
<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>#ifdef STAN_OPENCL #include <stan/math/prim/mat.hpp> #include <stan/math/prim/arr.hpp> #include <gtest/gtest.h> TEST(ErrorHandlingOpenCL, checkThrows) { const char* function = "test_func"; const char* msg = "test"; EXPECT_THROW(stan::math::throw_openCL(function, msg), std::domain_error); } #else #...
<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 "base/message_loop.h" #include "base/scoped_ptr.h" #include "base/utf_string_conversions.h" #include "testing/gtest/include/gt...
<commit_before> /********************************************************************* * * * ConfigFemtoAnalysis.C - configuration macro for the femtoscopic * * analysis, meant as a QA process for two-particle effects * * ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>/*! * \file remove.cpp * \author Nathan Eloe * \brief tests find and findOne functionality of the mongo cxx driver */ #include "../connection/mongoclient.h" #include "../connection/cursor.h" #include "gtest/gtest.h" #include "fixture.h" #include <iostream> #include <ctime> #include <cstdlib> TEST_F...
<commit_before>/* * diagonalize.cc */ #include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/Constants.h" #include "llvm/Instructions.h" #include "llvm/Analysis/LoopPass.h" #include "llvm/ADT/ValueMap.h" #include "llvm/Support/PatternMatch.h" #include <Eigen/Core> #include <Eigen/Eigenvalues> #include <i...
<commit_before>#include "filesystem/PathExt.h" #include <algorithm> namespace PathExt { //REFACTOR: Move to StringExt std::string Replace(const std::string & source, const std::string & toReplace, const std::string & replacement) { std::size_t index = 0; std::string src = source; while (true) { index = ...
<commit_before>/* * Copyright (c) 2013 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ #include <iostream> #include <math.h> #include <stdexcept> #include <string> #include <time.h> #include <ve...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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. #inclu...
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * CONDOR Copyright Notice * * See LICENSE.TXT for additional notices and disclaimers. * * Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, Madison, WI. All Rights Reserved. * No ...
<commit_before>#include "S_Temporal_Boss_Room.h" #include "j1Input.h" #include "SDL\include\SDL.h" #include "j1Scene.h" #include "p2Log.h" #include "j1App.h" #include "j1Map.h" #include "j1Render.h" #include "j1Textures.h" #include "j1Pathfinding.h" #include "j1App.h" #include "j1Player.h" #include "j1Camera.h" #includ...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team: http://bohrium.bitbucket.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,...
<commit_before>#pragma once #include "../Includes/Includes.hpp" namespace NE { class NE_DLL NamedUnitTagger : public NEModule { public: typedef NamedUnitTagger ThisClass; typedef NEModule SuperClass; public: NETArgument<NEBooleanKey> arg_enable; NETArgument<NECodeSetKey> arg_codes; protected: virtual...
<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) 2008 Renato Araujo Oliveira Filho <renatox@gmail.com> Copyright (c) 2000-2009 To...
<commit_before>#include<iostream> using namespace std; int main() { cout<<"hello world!"<<endl; cout<<"hello world!"<<endl; cout<<"hello world!"<<endl; return 0; }<commit_msg>add branch<commit_after>#include<iostream> using namespace std; int main() { cout<<"hello world!"<<endl; cout<<"hello world!"<<en...
<commit_before>/* * Copyright © 2010 Intel Corporation * * 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>/* * Copyright (C) 2016 deipi.com LLC and contributors. 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 limit...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/* * Copyright 2007-2014 Adrian Thurston <thurston@complang.org> */ /* This file is part of Colm. * * Colm 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 Lic...
<commit_before>/* Copyright (c) 2010-2016, Delft University of Technology * All rigths reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under the terms of the Modified BSD license. You should h...
<commit_before>#pragma once #include "AppEngine.hpp" namespace s_engine { namespace app { class Context {}; class Event { private: const Context* context = nullptr; public: const Context* GetContext() const; }; } }<commit_msg>Remove ambigious Context class<commit_after>#pragma once #include "AppEngine.hp...
<commit_before>/* # Copyright 2013 Andrew Punch # # 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 ...
<commit_before>/* * Copyright 2007-2017 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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) any later version. cpp-ethereum is distr...
<commit_before>#include "webinforetriever.h" #include <curl/curl.h> #include <sstream> #include <string> #include "logger.h" #include "stringutils.h" namespace { static size_t curlWriteCallBack(void *contents, size_t size, size_t nmemb, void *userp) { ((std::stringstream*)userp)->write((char*)contents, size * n...
<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>/* * Widget declarations. * * author: Max Kellermann <mk@cm4all.com> */ #include "widget_class.hxx" #include <string.h> static bool widget_check_untrusted_host(const WidgetClass &cls, const char *host) { if (cls.untrusted_host == nullptr) /* trusted widget is only allowed on a trusted ...
<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>#include <bts/chain/asset.hpp> #include <fc/uint128.hpp> namespace bts { namespace chain { bool operator < ( const asset& a, const asset& b ) { return std::tie( a.asset_id, a.amount ) < std::tie( b.asset_id, b.amount); } bool operator <= ( const asset& a, const asset& b ...
<commit_before>/******************************************************************************* * * MIT License * * Copyright 2019-2021 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
<commit_before>/* Sirikata Transfer -- Content Transfer mediation * TransferMediator.hpp * * Copyright (c) 2010, Jeff Terrace * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * *...
<commit_before>#pragma once #include <bts/blockchain/types.hpp> #include <map> const static std::map<uint32_t, bts::blockchain::block_id_type> CHECKPOINT_BLOCKS { { 1, bts::blockchain::block_id_type( "8abcfb93c52f999e3ef5288c4f837f4f15af5521" ) }, { 100000, bts::blockchain::block_id_type( "96f98d49722848a...
<commit_before>#pragma once #include <bts/blockchain/types.hpp> #include <map> const static std::map<uint32_t, bts::blockchain::block_id_type> CHECKPOINT_BLOCKS { { 1, bts::blockchain::block_id_type( "8abcfb93c52f999e3ef5288c4f837f4f15af5521" ) }, { 100000, bts::blockchain::block_id_type( "96f98d49722848a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cfgmerge.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-03-29 13:24:57 $ * * The Contents of this file are made...
<commit_before>#include "multiverso/server.h" #include <algorithm> #include <sstream> #include <string> #include <vector> #include "multiverso/actor.h" #include "multiverso/dashboard.h" #include "multiverso/multiverso.h" #include "multiverso/table_interface.h" #include "multiverso/io/io.h" #include "multiverso/util/c...
<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>// Copyright (c) 2010 Chris Pickel <sfiera@gmail.com> // // This file is part of libsfz, a free software project. You can redistribute it and/or modify it // under the terms of the MIT License. #include "sfz/Os.hpp" #include <fcntl.h> #include <fts.h> #include "sfz/Encoding.hpp" #include "sfz/Exceptio...
<commit_before>/* * PrimeSieveGUI.cpp -- This file is part of primesieve * * Copyright (C) 2011 Kim Walisch, <kim.walisch@gmail.com> * * 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, eith...
<commit_before>#ifndef SPECIFIC_H #define SPECIFIC_H #include <stdio.h> #include "STYPES.H" #if PSXPC_VERSION #define UNIMPLEMENTED() __asm("nop"); #else #ifdef _MSC_VER #define FUNCNAME __FUNCTION__ #else #define FUNCNAME __func__ #endif #if defined(__EMSCRIPTEN__) #define UNIMPLEMENTED() #else #define UNIMPLEMEN...
<commit_before>#include "Sampler.hpp" #include <cstdlib> #include <cstring> #include <iostream> #include <sstream> #include <iterator> #include <complex> #ifdef PAPI_ENABLED #include <papi.h> #endif #include CFG_H #include "sample.h" using namespace std; void Sampler::set_counters(const vector<string> &tokens) { #...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #include <map> #include <qi/atomic.hpp> #include <boost/thread/recursive_mutex.hpp> #include <boost/make_shared.hpp> #include <qitype/signal.hpp> #include <qitype/anyvalue.hpp> #include <qitype/anyobject.hpp> #include "any...
<commit_before>#include <configure/bind.hpp> #include <configure/lua/State.hpp> #include <configure/lua/Type.hpp> #include <boost/filesystem/path.hpp> namespace fs = boost::filesystem; namespace configure { static int Path_new(lua_State* state) { if (lua_isnil(state, -1)) lua::Converter<fs::path>::push(stat...
<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> #include <stanza.h> JID Stanza::from() { return JID( tag->getAttribute("from", "") ); } JID Stanza::to() { return JID( tag->getAttribute("to", "") ); } std::string Stanza::type() { return tag->getAttribute("type", ""); } std::string Stanza::id() { return tag->getAttribute("id", ""); } void Stan...
<commit_before>/* Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PR...
<commit_before>//===------------------------- string.cpp ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
<commit_before>/* sybase.cpp Sybase DB layer for QORE uses Sybase OpenClient C library Qore Programming language Copyright (C) 2003 - 2018 Qore Technologies, s.r.o. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public ...
<commit_before><commit_msg>Core: gdb detection<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2013-2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <utility> #include <vector> #include <limits> #include "kernel/environment.h" #include "kernel/kernel_exception.h" namespace l...
<commit_before>/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <algorithm> #include <limits> #include "kernel/free_vars.h" #include "kernel/replace_fn.h" #include "kernel/declaration.h" #include ...
<commit_before>// REQUIRES: asan-64-bits // RUN: %clangxx_asan -O3 %s -o %t // RUN: ASAN_OPTIONS=poison_array_cookie=1 not %run %t 2>&1 | FileCheck %s --check-prefix=COOKIE // RUN: ASAN_OPTIONS=poison_array_cookie=0 not %run %t 2>&1 | FileCheck %s --check-prefix=NO_COOKIE #include <stdio.h> #include <stdlib.h> #inclu...
<commit_before>/************************************************************************* * * $RCSfile: pview.hxx,v $ * * $Revision: 1.17 $ * * last change: $Author: rt $ $Date: 2004-08-23 09:01:09 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#include <iostream> #include <cassert> #include <pthread.h> #include <semaphore.h> #include <time.h> // incluye "time(....)" #include <unistd.h> // incluye "usleep(...)" #include <stdlib.h> // incluye "rand(...)" y "srand" using namespace std; //////////////////////////////////////////////...
<commit_before> #include "uiTags.h" #include <iostream> uiTags::uiTags() { } uiTags::~uiTags() {} std::vector<Glib::ustring> uiTags::tags() { return m_tags; } void uiTags::tags(std::vector<Glib::ustring> tags) { m_tags = tags; for(unsigned int i = 0; i < m_tag_widgets.size(); i++) delete m_tag_widgets[i]...
<commit_before>#include <iostream> #include <complex> #include <vector> #include <htool/cluster.hpp> #include <htool/lrmat.hpp> #include <htool/partialACA.hpp> using namespace std; using namespace htool; class MyMatrix: public IMatrix<double>{ const vector<R3>& p1; const vector<R3>& p2; public: MyMatrix(const ...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2014-2017 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkTubeSpatialObjectTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See...
<commit_before>#include <gtest/gtest.h> #include <stan/math/rev.hpp> #include <test/unit/util.hpp> #include <limits> TEST(AgradRevErrorHandlingMatrix, checkPosSemiDefiniteMatrix_nan) { using Eigen::Dynamic; using Eigen::Matrix; using stan::math::var; Matrix<var, Dynamic, Dynamic> y; double nan = std::numeri...
<commit_before>#include "visual.h" #include <array> #include <ctime> #include <iostream> #include <list> #include <random> #include <stdlib.h> #include <stdio.h> #include <vector> #include <AntTweakBar.h> #define GLEW_STATIC #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #includ...
<commit_before>#include "internal.hpp" #include "macros.hpp" #include "message.hpp" namespace CaDiCaL { // Vivification is a special case of asymmetric tautology elimination. It // strengthens and removes irredundant clauses proven redundant through unit // propagation. The original algorithm is due to a paper by P...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2007 Inge Wallin <ingwa@kde.org> // Copyright 2008 Jens-Michae...
<commit_before>#include "ServicesHandler.h" #include "Status.h" #include<windows.h> #include <tchar.h> #include <urlmon.h> #pragma comment(lib, "urlmon.lib") #pragma comment(lib,"wininet.lib") extern Status *status; ServicesHandler::ServicesHandler(){ hr = ERROR_SUCCESS; error = NULL; heap = NULL; proxy = NULL; ...
<commit_before>/* * Copyright (C) 2006 Apple Computer, 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: * 1. Redistributions of source code must retain the above copyright * notice,...
<commit_before>// // yas_audio_device_io_node_impl.cpp // Copyright (c) 2015 Yuki Yasoshima. // #include "yas_audio_device_io_node.h" #if (TARGET_OS_MAC && !TARGET_OS_IPHONE) #include "yas_audio_device_io.h" #include "yas_audio_tap_node.h" #include "yas_audio_time.h" #include "yas_audio_graph.h" using namespace y...
<commit_before>/****************************************************************************** ** Copyright (c) 2014-2015, Intel Corporation ** ** All rights reserved. ** ** ...
<commit_before>//---------------------------------------------------------------------------------------- // // Copyright (C) 2008-2016 Ryo Suzuki // Copyright (C) 2016 OpenSiv3D Project // // Licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this ...
<commit_before><commit_msg>bugfix initial road rotation found by @TQwan<commit_after><|endoftext|>
<commit_before>/********************************************************************** * $Id$ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * Copyright (C) 2005 Refractions Research Inc. * * This is free software; you can redistribute and/...
<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. #include <memory> #include "atom/browser/api/atom_api_user_prefs.h" #include "atom/common/native_mate_converters/v8_value_converter.h" #include "atom/common/native_mat...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: d_token.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: vg $ $Date: 2007-09-18 13:49:36 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: hfi_enum.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-07 17:40:15 $ * * The Contents of this file are made ...
<commit_before>// doosabin_regression.cpp // Includes #include <algorithm> #include <fstream> #include <iostream> #include <memory> #include <string> #include <utility> #include "ceres/ceres.h" #include "gflags/gflags.h" #include "glog/logging.h" #include <Eigen/Dense> #include "Math/linalg.h" #inc...
<commit_before><commit_msg>planning: keep in pull-over scenario when fail to find pull-over position<commit_after><|endoftext|>
<commit_before>#ifndef ENTT_CORE_TYPE_INFO_HPP #define ENTT_CORE_TYPE_INFO_HPP #include "../config/config.h" #include "../core/attribute.h" #include "hashed_string.hpp" #include "fwd.hpp" namespace entt { /** * @cond TURN_OFF_DOXYGEN * Internal details not to be documented. */ namespace internal { struct E...
<commit_before>/** * Copyright (c) 2016-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...
<commit_before>/* * 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 3 of the License, or * (at your option) any later version. * * Written (W) 2011 Evgeniy Andreev (gsomix) *...
<commit_before>#include "varcheck.hpp" #include "severity.hpp" #include "issue.hpp" #include <iostream> using namespace std; using namespace clang; // Implementation of the ASTConsumer interface for reading an AST produced // by the Clang parser. class MyASTConsumer : public ASTConsumer { public: MyASTConsumer(vect...
<commit_before>#include "VPLProcessor.h" #include <random> #include <numeric> #include <glm/vec3.hpp> #include <glm/mat4x4.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glbinding/gl/enum.h> #include <globjects/Program.h> #include <globjects/Buffer.h> #include <globjects/Shader.h> #include <gloperate/paint...
<commit_before>#pragma once #include <unordered_map> #include <algorithm> #include <spsparse/spsparse.hpp> namespace spsparse { /** Translates between a sparse set (say, the set of indices used in a SparseVector) and a dense set numbered [0...n) */ template<class SparseT, class DenseT> class SparseSet { std::unorde...
<commit_before>#include "tests.h" #include <vector> // Example from http://www.codeplay.com/portal/sycl-tutorial-1-the-vector-addition // (slightly modified) #define TOL (0.001) // Tolerance used in floating point comparisons #define LENGTH (1024) // Length of vectors a, b and c bool test1() { using namespace cl:...
<commit_before>#ifdef WIN32 #define UNICODE #define _UNICODE #include "win32bindings.h" #include "javasigar.h" #ifdef __cplusplus extern "C" { #endif #define STRING_SIG "Ljava/lang/String;" #define SERVICE_SetStringField(field, str) \ id = env->GetFieldID(cls, field, STRING_SIG); \ value = env->NewString((c...
<commit_before>// Copyright 2016 Chirstopher Torres (Raven), L3nn0x // // 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) 2012, 2013 Pierre MOULON. // 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/. #ifndef OPENMVG_SFM_IO_H #define OPENMVG_SFM_IO_H #inclu...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2016. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //==================================================...
<commit_before>// Copyright 2015 Open Source Robotics Foundation, 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 re...
<commit_before>/**************************************************kernel_size_w***************************** * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (...
<commit_before><commit_msg>fixup!<commit_after><|endoftext|>
<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>/*************************************************************************** copyright : (C) 2002 - 2008 by Scott Wheeler email : wheeler@kde.org ***************************************************************************/ /*********************************************...
<commit_before>#ifndef STAN_OPTIMIZATION_NEWTON_HPP #define STAN_OPTIMIZATION_NEWTON_HPP #include <stan/model/util.hpp> #include <Eigen/Dense> #include <Eigen/Cholesky> #include <Eigen/Eigenvalues> #include <vector> namespace stan { namespace optimization { typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen:...
<commit_before>void rootgeom() { //Definition of a simple geometry (the 4 ROOT characters) //Author: Andrei Gheata // gStyle->SetCanvasPreferGL(true); gSystem->Load("libGeom"); TGeoManager *geom = new TGeoManager("simple1", "Simple geometry"); //--- define some materials TGeoMaterial *matVacuum =...
<commit_before>/********************************************************************************** Infomap software package for multi-level network clustering Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall For more information, see <http://www.mapequation.org> This file is part of Infomap software packa...