text
stringlengths
54
60.6k
<commit_before>#define GLX_GLXEXT_PROTOTYPES /* * Copyright (C) 2013-2014 Nick Guletskii * * 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 th...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief upload request handler /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Ver...
<commit_before>/* open source routing machine Copyright (C) Dennis Luxen, 2010 This program is free software; you can redistribute it and/or modify it under the terms of the GNU AFFERO General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. T...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>/* * Redox - A modern, asynchronous, and wicked fast C++11 client for Redis * * https://github.com/hmartiro/redox * * Copyright 2015 - Hayk Martirosyan <hayk.mart at gmail dot com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: viewcontactofunocontrol.hxx,v $ ...
<commit_before>/************************************************************************* * * $RCSfile: AccessibleGraphicShape.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: thb $ $Date: 2002-11-29 17:56:47 $ * * The Contents of this file are made available subject to the terms of * either of the...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: customshapeproperties.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-09 00:11:38 $ * * The Contents of this f...
<commit_before>// $Id: kelly_error_estimator.C,v 1.8 2005-03-10 22:05:48 jwpeterson Exp $ // The libMesh Finite Element Library. // Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Publ...
<commit_before>#include "qca.hpp" #include "utilities.hpp" #include <map> #include "version.hpp" #include <ctime> /* * TODO * ---- * * * P-P for three plaquets (bond system) * * P-P with dead cell (bond and qf) * * energies with dead cell? -- shouldn't make much difference * * grand canonical * * number of...
<commit_before>#ifndef __PROCESS_TIMEOUT_HPP__ #define __PROCESS_TIMEOUT_HPP__ #include <process/process.hpp> #include <process/time.hpp> #include <stout/duration.hpp> namespace process { class Timeout { public: Timeout() : timeout(Clock::now()) {} explicit Timeout(const Time& time) : timeout(time) {} Tim...
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/android/voice_search_tab_helper.h" #include "base/command_line.h" #include "components/google/core/browser/google...
<commit_before>// Copyright (c) 2013 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/command_line.h" #include "base/path_service.h" #include "chrome/browser/chrome_browser_main.h" #include "chrome/browser/...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestExecutionTimer.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>/********************************************************************** Copyright (c) 2018 Advanced Micro Devices, Inc. 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 t...
<commit_before>/* This file is part of Strigi Desktop Search * * Copyright (C) 2007 Jos van den Oever <jos@vandenoever.info> * * 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; eithe...
<commit_before>#include "stdafx.h" #include "Writer.h" Writer::Writer() { Filing* file = new Filing(); file->Startup(); string path; //setup converter using convert_type = codecvt_utf8<wchar_t>; wstring_convert<convert_type, wchar_t> converter; //use converter (.to_bytes: wstr->str, .from_bytes: str->wstr) ...
<commit_before>// $Id$ /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-11 Bradley M. Bell CppAD is distributed under multiple licenses. This distribution is under the terms of the Common Public License Version...
<commit_before>/* * * Copyright 2016 gRPC authors. * * 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 applicab...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: edtspell.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2006-10-12 11:40:35 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * $RCSfile: xmleohlp.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ * * The Contents of this file are made available subject to the terms of * either of the following licenses * * - GNU Lesse...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: printdata.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2006-08-14 15:29:41 $ * * The Contents of this file are made...
<commit_before>/* SWARM Copyright (C) 2012-2021 Torbjorn Rognes and Frederic Mahe This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (...
<commit_before>#ifndef CELL_AUTOMATA_ISING_SPIN_BASE #define CELL_AUTOMATA_ISING_SPIN_BASE #include <array> template<typename value_T, std::size_t partner_Num> class Spin_base { public: using state_type = value_T; using base_pointer = Spin_base*; using const_base_pointer = const Spin_base*; ...
<commit_before>// Copyright (c) 2008 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. // Performs basic inspection of the disk cache files with minimal disruption // to the actual files (they still may change if an error ...
<commit_before>/** This is a tool shipped by 'Aleph - A Library for Exploring Persistent Homology'. Given a set of patches from a database of images, this tool performs the pre-processing steps of the corresponding point cloud. Mainly, a procedure from the paper *On the Local Behavior of Spaces of Natural ...
<commit_before>#include "Math/Cartesian3D.h" #include "Math/Math_vectypes.hxx" #include "RandomNumberEngine.h" #include "benchmark/benchmark.h" #include <sstream> // FIXME: Reduce the boilerplate code of each benchmark. Maybe setting up a Benchmark Fixture will help. static void BM_Cartesian3D_Sanity(benchmark::S...
<commit_before><commit_msg>initialize the OpenGL context as soon as possible<commit_after><|endoftext|>
<commit_before>#ifndef STUFF_GRID_HH_INCLUDED #define STUFF_GRID_HH_INCLUDED #include "math.hh" #include "misc.hh" #include "static_assert.hh" #include <dune/common/fvector.hh> #include <dune/grid/common/geometry.hh> #include <vector> #include <boost/format.hpp> namespace Stuff { /** * \brief calculates length of...
<commit_before>/* flappy.cc --- ncurses flappy bird clone * This is free and unencumbered software released into the public domain. * c++ -std=c++11 flappy.cc -lncurses -lm -o flappy */ #include <algorithm> #include <thread> #include <deque> #include <ctime> #include <cmath> #include <ncurses.h> struct Display { ...
<commit_before>/* Copyright 2015 Stanford University * * 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 applicab...
<commit_before>#include "msl/msl.h" #define BOOST_RESULT_OF_USE_DECLTYPE #define BOOST_SPIRIT_USE_PHOENIX_V3 #include <boost/config/warning_disable.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/phoenix_operator.hpp> #include <boost/spirit/in...
<commit_before>#include "TetrisDrawer.h" #include <vector> TetrisDrawer::TetrisDrawer(sf::RenderWindow & window, Board & board) { this->window = &window; this->board = &board; blockScaleFactor = 1.0f; //backgroundScaleFactor = blockScaleFactor / 2.0f; if (!tetrominoTexture.loadFromFile(TEXTURE_DIR)) { ...
<commit_before>//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2016 Ryo Suzuki // Copyright (c) 2016 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Fwd.hpp" # ...
<commit_before>#include <algorithm> #include "yaml-cpp/node/convert.h" namespace { // we're not gonna mess with the mess that is all the isupper/etc. functions bool IsLower(char ch) { return 'a' <= ch && ch <= 'z'; } bool IsUpper(char ch) { return 'A' <= ch && ch <= 'Z'; } char ToLower(char ch) { return IsUpper(ch) ?...
<commit_before>#include "MainMenuScene.h" #include "NNInputSystem.h" #include "NNSceneDirector.h" #include "NNApplication.h" #include "StoryScene.h" MainMenuScene::MainMenuScene() : m_MainMenuImage(nullptr) { m_MenuSellction = 0; float width = (float)NNApplication::GetInstance()->GetScreenWidth(); float height =...
<commit_before> #include "NNApplication.h" #include "NNInputSystem.h" #include "NNAudioSystem.h" #include "NNResourceManager.h" #include <stdio.h> NNApplication* NNApplication::m_pInstance = nullptr; NNApplication::NNApplication() : m_Hwnd(nullptr), m_hInstance(nullptr), m_ScreenHeight(0), m_ScreenWidth(0), m_...
<commit_before>#ifndef MJOLNIR_POTENTIAL_LOCAL_GAUSSIAN_POTENTIAL_HPP #define MJOLNIR_POTENTIAL_LOCAL_GAUSSIAN_POTENTIAL_HPP #include <mjolnir/math/constants.hpp> #include <cmath> namespace mjolnir { template<typename T> class System; // well-known gaussian-shape potential. // V(r) = k * exp(-(r-r0)^2 / 2sigma^2) //...
<commit_before>#include <iostream> #include <vector> #include <string> using namespace std; class data { //Ϣ public: string name; bool male; }; class person { // public: data info; person* father; person* mother; person* spouse; vector<person*> children; person(data info, person* father, person* m...
<commit_before>/*----------------------------------------------------------------------------- Copyright 2017 Hopsan Group 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...
<commit_before>#ifndef SORTED__HPP__ #define SORTED__HPP__ #include "iterbase.hpp" #include <iterator> #include <algorithm> #include <vector> namespace iter { template <typename Container, typename CompareFunc> class Sorted; template <typename Container, typename CompareFunc> Sorted<Container, Compa...
<commit_before>/// HEADER #include "render_histogram.h" /// PROJECT #include <csapex/model/connector_in.h> #include <csapex/model/connector_out.h> #include <csapex_vision/cv_mat_message.h> #include <csapex_core_plugins/vector_message.h> #include <csapex/utility/register_apex_plugin.h> #include <csapex_core_plugins/ros...
<commit_before>#pragma once #include <Zmey/Scripting/Binding.h> #include <Zmey/Modules.h> #include <Zmey/Memory/MemoryManagement.h> #include "ChakraScriptEngine.h" namespace Zmey { namespace Chakra { namespace Binding { uint32_t GCurrentPendingClassProjectionIndex = 0u; std::array<AutoNativeClassProje...
<commit_before>#include <gtest/gtest.h> #include "utils.hpp" using aoc2019::run_intcode; auto run_program(std::vector<int> program, std::deque<int> input) { return run_intcode(program, std::move(input)); } TEST(Intcode, TestPositionEquality) { const std::vector<int> program = {3, 9, 8, 9, 10, 9, 4, 9, 99, -1...
<commit_before>#ifndef RBX_VM_H #define RBX_VM_H #include "missing/time.h" #include "vm_jit.hpp" #include "globals.hpp" #include "memory/object_mark.hpp" #include "memory/managed.hpp" #include "vm_thread_state.hpp" #include "thread_nexus.hpp" #include "metrics.hpp" #include "util/thread.hpp" #include "memory/variab...
<commit_before>/* * Copyright (c) 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>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: AntiAliasBinaryImageFilter.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. S...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: DeformableRegistration1.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ...
<commit_before>/* The MIT License (MIT) Copyright (c) 2015 Martin Richter 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, cop...
<commit_before>#ifndef UNIT_CONFIG_HPP_ #define UNIT_CONFIG_HPP_ namespace unit_config { const float DT = 0.001; // Maximum angular position in the roll and pitch axes (deg) const float MAX_PITCH_ROLL_POS = 30.0; // Maximum angular velocity in the roll and pitch axes (deg/s) const float MAX_PITCH_ROLL_VEL = 100.0; ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkGenericInterpolatedVelocityField.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.ht...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // FILE: narrayiterator.hpp // DATE: 2014-07-30 // AUTH: Trevor Wilson <kmdreko@gmail.com> // DESC: Defines an N-dimensional templated matrix iterator class //////////////////////////////////////////////////////////////////...
<commit_before>#include "event_handler.h" #include <string> #include <vector> #include <utility> #include <memory> #include <iostream> #include <iomanip> #include <errno.h> #include <sys/stat.h> #include <CoreServices/CoreServices.h> #include "flags.h" #include "recent_file_cache.h" #include "rename_buffer.h" #includ...
<commit_before><commit_msg>Isolated reading and writing of images from main loop (CIFAR)<commit_after><|endoftext|>
<commit_before>/*** Copyright (C) 2013 Aniket Deole <aniket.deole@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 version 2.1, as published by the Free Software Foundation. This program is distributed in the hope that it will b...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>#include <QTime> #include <QTimer> #include <QMouseEvent> #include <QMenu> #include <QAction> #include <QSettings> #include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); setAttribute(Q...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistr...
<commit_before> #include <plexum/graph.h> int main(int argc, char** argv) { return 0; } <commit_msg>remove sandbox.cc<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: vclxaccessiblecomponent.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: pb $ $Date: 2002-03-05 08:22:34 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>// // Copyright Renga Software LLC, 2016. All rights reserved. // // Renga Software LLC PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS. // Renga Software LLC DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE // UNINTERRUPTED OR ERROR FREE. // #include "stdafx.h" #include "EntityPropertyVi...
<commit_before>#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup() { ofSetLogLevel(OF_LOG_VERBOSE); ofSetLogLevel("ofThread", OF_LOG_ERROR); ofEnableAlphaBlending(); doDrawInfo = true; targetWidth = 640; targetHeight = 480; #if defined(TARGET_O...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: TestLinearExtractor3D.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>/* * Software License Agreement (BSD License) * * Copyright (c) 2010, Willow Garage, 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: * * * Redistributions of...
<commit_before> #include <boost/asio.hpp> #include "vtrc-common/vtrc-mutex-typedefs.h" #include "vtrc-bind.h" #include "vtrc-function.h" #include "vtrc-protocol-layer-s.h" #include "vtrc-monotonic-timer.h" #include "vtrc-data-queue.h" #include "vtrc-hash-iface.h" #include "vtrc-transformer-iface.h" #include "vtrc-t...
<commit_before>#ifndef _SMP_SYSTEM_SINGLE_INTEGRATOR_HPP_ #define _SMP_SYSTEM_SINGLE_INTEGRATOR_HPP_ #include <smp/components/extenders/single_integrator.h> #include <smp/components/extenders/state_array_double.hpp> #include <smp/components/extenders/input_array_double.hpp> #include <smp/components/extenders/base.hp...
<commit_before>/* * deinvert - a voice inversion descrambler * Copyright (c) Oona Räisänen * * 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. * *...
<commit_before>#include "df_font.h" #include "df_bitmap.h" #include "df_common.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <limits.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> // **************************************************************************** // Glyph ...
<commit_before>/** * * \file dsp3000.cpp * \brief KVH DSP-3000 Fiber optic gyro controller. * Parses data from DSP-3000 and publishes to dsp3000. * Serial interface handled by cereal_port * \author Jeff Schmidt <jschmidt@clearpathrobotics.com> * \copyright Copyright (c) 2013, Clearpat...
<commit_before>/* Calf DSP Library utility application. * DSSI GUI application. * Copyright (C) 2007 Krzysztof Foltman * * 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 Software Foundation; either * ve...
<commit_before> /* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <GLES/gl.h> #include "GLWindowContext_android.h" #include <android/native_window_jni.h> namespace sk_app { // Most of the following 3 functions (...
<commit_before>/* 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/. */ #pragma once #include <iostream> #include <sstream> #include <SFNUL/Config.hpp> #if defined( ERRO...
<commit_before>#ifndef STAN_MATH_PRIM_SCAL_FUN_DIVIDE_HPP #define STAN_MATH_PRIM_SCAL_FUN_DIVIDE_HPP #include <stan/math/prim/scal/err/domain_error.hpp> #include <stan/math/prim/scal/meta/likely.hpp> #include <stan/math/prim/scal/meta/return_type.hpp> #include <cstddef> #include <cstdlib> namespace stan { namespace...
<commit_before>#ifndef ATL_GC_GC_HPP #define ATL_GC_GC_HPP // @file /home/ryan/programming/atl/gc.hpp // @author Ryan Domigan <ryan_domigan@sutdents@uml.edu> // Created on Jan 08, 2014 // // A garbage collected environment. #include <limits> #include <algorithm> #include <functional> #include <list> #include <memory>...
<commit_before>#ifndef STAN_MATH_REV_FUN_INC_BETA_INV_HPP #define STAN_MATH_REV_FUN_INC_BETA_INV_HPP #include <stan/math/rev/meta.hpp> #include <stan/math/rev/core.hpp> #include <stan/math/prim/fun/constants.hpp> #include <stan/math/prim/fun/inc_beta_inv.hpp> #include <stan/math/prim/fun/inc_beta.hpp> #include <stan/m...
<commit_before>#ifndef STAN_MATH_REV_SCAL_FUN_GAMMA_P_HPP #define STAN_MATH_REV_SCAL_FUN_GAMMA_P_HPP #include <stan/math/rev/core.hpp> #include <stan/math/prim/scal/fun/is_inf.hpp> #include <stan/math/prim/scal/err/domain_error.hpp> #include <stan/math/prim/scal/fun/digamma.hpp> #include <stan/math/prim/scal/fun/gamma...
<commit_before>#ifndef AST_LIST_NODE_HPP #define AST_LIST_NODE_HPP #include <memory> #include <vector> namespace ast { template <typename wrapped> class list_node; class expression; class index_expression; class statement; template<typename wrapped> class list_node : public node { public: typedef std::share...
<commit_before>#pragma once #include <string> #include <vector> #include <boost/container/small_vector.hpp> #include <boost/range/adaptor/transformed.hpp> #include <boost/range/any_range.hpp> #include <boost/range/join.hpp> #include <boost/variant/variant.hpp> #include <boost/variant/apply_visitor.hpp> #include <boos...
<commit_before>#pragma once #include "common.hpp" #include "components/ipc.hpp" #include "components/parser.hpp" #include "components/types.hpp" #include "utils/functional.hpp" POLYBAR_NS // fwd enum class mousebtn; enum class syntaxtag; enum class alignment; enum class attribute; namespace signals { namespace d...
<commit_before>#ifndef NAMELESSGUI_WIDGET_HPP #define NAMELESSGUI_WIDGET_HPP #include <SFML/Window/Window.hpp> #include <SFML/Window/Event.hpp> #include <SFML/Graphics/Drawable.hpp> #include "gui/ng/signal.hpp" #include "gui/ng/singleparametersignal.hpp" namespace namelessgui { class Widget : public sf::Drawable...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / ...
<commit_before>#include "stdafx.h" #include "AutowiringBenchmarkTest.h" #include "TestFixtures/SimpleObject.h" #include <boost/chrono/system_clocks.hpp> TEST_F(AutowiringBenchmarkTest, VerifySimplePerformance) { const size_t n = 10000; // Insert the object: AutoRequired<SimpleObject>(); // Time n hash map hi...
<commit_before>#include "precompiled.hpp" #include "ui/Uniforms.hpp" #include "util/Logging.hpp" #include <QtCore/QEvent> #include <QtGui/QMouseEvent> #include <QtGui/QResizeEvent> #include <QtGui/QWheelEvent> #include "util/Trackball.hpp" #include "util/TypeInfo.hpp" #include "util/Util.hpp" // TODO Should implemen...
<commit_before>#include "feStats.h" const feStats feStats::ZERO = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; bool feStats::operator==(const feStats &rhs) const { return (hp == rhs.hp && str == rhs.str && mag == rhs.mag && skl == rhs.skl && spd == rhs.spd && lck == rhs.lck && def == rhs.def && res == rhs....
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. /** * @namespace nix::util ...
<commit_before>/* * PFASST controller. */ #ifndef _PFASST_PFASST_HPP_ #define _PFASST_PFASST_HPP_ #include "mlsdc.hpp" using namespace std; namespace pfasst { template<typename time = pfasst::time_precision> class PFASST : public MLSDC<time> { ICommunicator* comm; typedef typename pfasst::...
<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>#include <cstdio> #include <cstring> #include <iostream> #include <map> #include <improbable/standard_library.h> #include <improbable/view.h> #include <improbable/worker.h> #include <shoveler.h> extern "C" { #include <glib.h> #include <shoveler/spatialos/log.h> #include <shoveler/spatialos/worker/view...
<commit_before>#ifndef SHEAR__GRAMMAR_HPP #define SHEAR__GRAMMAR_HPP #include <map> #include <set> #include <queue> #include <boost/mpl/for_each.hpp> #include <boost/mpl/assert.hpp> #include <boost/mpl/has_key.hpp> #include <boost/foreach.hpp> #include <boost/spirit/home/phoenix/core/reference.hpp> #include <boost/sp...
<commit_before>#include "PressureNeumannBC.h" template<> InputParameters validParams<PressureNeumannBC>() { InputParameters params = validParams<IntegratedBC>(); params.addCoupledVar("p", ""); params.addCoupledVar("pe", ""); params.addCoupledVar("pu", ""); params.addCoupledVar("pv", ""); params.set<Real>("...
<commit_before>#include "sipp/internals/speed_fwd.hpp" #include "internals/speed_fwd.hpp" <commit_msg>Fixed wrong path in fwd header<commit_after>#pragma once #include "internals/distance_fwd.hpp" #include "internals/speed_fwd.hpp" <|endoftext|>
<commit_before> // (c) COPYRIGHT URI/MIT 1996 // Please read the full copyright statement in the file COPYRIGH. // // Authors: // jhrg,jimg James Gallagher (jgallagher@gso.uri.edu) // This is the source to `geturl'; a simple tool to exercise the Connect // class. It can be used to get naked URLs as well as the DODS ...
<commit_before>// // FilteringSpeaker.h // Clock Signal // // Created by Thomas Harte on 15/12/2017. // Copyright 2017 Thomas Harte. All rights reserved. // #ifndef FilteringSpeaker_h #define FilteringSpeaker_h #include "../Speaker.hpp" #include "../../../SignalProcessing/Stepper.hpp" #include "../../../SignalPro...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>//---------------------------------------------------------------------------- /// \file typeinfo.hpp //---------------------------------------------------------------------------- /// \brief This file contains run-time type information inspection functions. //-------------------------------------------...
<commit_before>#include "gridmap.hpp" #include "gui.hpp" #include "oddlib/lvlarchive.hpp" #include "renderer.hpp" #include "oddlib/path.hpp" #include "oddlib/bits_factory.hpp" #include "logger.hpp" #include <cassert> #include "sdl_raii.hpp" #include <algorithm> // min/max #include <cmath> Level::Level(GameData& gameDa...
<commit_before>/* * * * * * * * * * * * *\ |* ╔═╗ v0.3 *| |* ╔═╦═╦═══╦═══╣ ╚═╦═╦═╗ *| |* ║ ╔═╣ '╔╬═╗╚╣ ║ ║ '║ *| |* ╚═╝ ╚═══╩═══╩═╩═╣ ╔═╝ *| |* * * * * * * * * ╚═╝ * *| |* Manipulation tool for *| |* ESRI Shapefiles *| |* * * * * * * * * * * * *| |* http://www.npolar.no/ *| \* * * * * * * * * * * * ...
<commit_before>#include "../include/ChebyshevSolver.h" #include <math.h> #include "../include/HALinkedList.h" using namespace std; const complex<double> i(0, 1); ChebyshevSolver::ChebyshevSolver(){ generatingFunctionLookupTable = NULL; generatingFunctionLookupTable_device = NULL; lookupTableNumCoefficients = 0; ...
<commit_before>#include <iostream> using namespace std; a int main(int argc, char const *argv[]) { int n; int s=0,a; while(cin >>n;){ s=(n+1)*n/2; cout<<s; } return 0; } <commit_msg>update hdu1001<commit_after>#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int n; int s...
<commit_before>#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int n; cin >>n; int s=0,a; while(n--){ cin>>a; s+=a; } cout<<a; return 0; } <commit_msg>update hdu1001<commit_after>#include <iostream> using namespace std; int main(int argc, char const *argv[]) { int n; cin...