text
stringlengths
54
60.6k
<commit_before>/** * Madhav Datt - 14CS30015 * * Software Engineering Lab - Assignment 3 * Contains implementation of the Date Computations Functions * */ #include <iostream> #include <cstdio> #include <cstring> #include <cstdint> #include <exception> #include "date_comp.h" #include "date.h" /** * Check valid...
<commit_before>// Copyright (c) 2011, Christian Rorvik // Distributed under the Simplified BSD License (See accompanying file LICENSE.txt) #ifndef CRUNCH_BASE_DURATION_HPP #define CRUNCH_BASE_DURATION_HPP #include "crunch/base/stdint.hpp" namespace Crunch { /// Duration of time /// Range: +/- 292 years /// Resoluti...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / ...
<commit_before>/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "EventDispatcher.h" #include <react/core/StateUpdate.h> #include "BatchedEventQueue.h" #include "RawEven...
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #define __STDC_FORMAT_MACROS #include <inttypes.h> #include "db/builder.h" #include "d...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/* * FakeObject.hpp * Copyright (c) 2014 Eran Pe'er. * * This program is made available under the terms of the MIT License. * * Created on Jun 8, 2014 */ #pragma once #include <new> #include "mockutils/VirtualTable.hpp" namespace fakeit { // silent GCC compiler warning: iso c++ forbids zero-siz...
<commit_before>/// (c) Koheron #include "tests.hpp" #include <cmath> #include <random> #include <thread> Tests::Tests(Klib::DevMem& dvm_unused_) : data(0) { waveform_size = 0; mean = 0; std_dev = 0; status = CLOSED; } Tests::~Tests() { Close(); } int Tests::Open(uint32_t waveform_size_) { ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: autoregisterhelper.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: hr $ $Date: 2006-06-20 02:27:37 $ * * The Contents of this file...
<commit_before>/* * Copyright (C) 2009-2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ #ifndef SCHE...
<commit_before>#include <cstdio> #include <cstdlib> #include <list> #include <vector> #include <algorithm> #include <cmath> using namespace std; /* D := Tamanho do quadrado. d := tamanho das subdivisões n := Tamanho da matriz; */ typedef struct ponto{ int x; int y; int i; // INDICE NO VETOR DE VERTICES ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkContextScene.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) 2016-2017 Los Alamos National Security, LLC * 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 ...
<commit_before>//===-- BuildSystemFrontend.cpp -------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>#include "MinTorqueError.h" #include <algorithm> using std::begin; using std::end; using std::find; #include <vector> using std::vector; namespace CEINMS { void MinTorqueError::setDofsToCalibrate(const std::vector<std::string>& dofsToCalibrate) { dofsToCalibrate_ = dofsToCalibrate; ...
<commit_before>//===- InlineFunction.cpp - Code to perform function inlining -------------===// // // 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>/* ----------------------------------------------------------------------------- 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-2014 To...
<commit_before>/* Copyright 2020 Sergei Bastrakov * * This file is part of alpaka. * * 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 #if defined...
<commit_before>#ifndef GNR_SWAP_HPP # define GNR_SWAP_HPP # pragma once #include <cstdint> #include <cstring> #include <type_traits> #if defined(_MSC_VER) # include <stdlib.h> #endif // _MSC_VER namespace gnr { template <class Dst, class Src> inline Dst bit_cast(Src const& src) noexcept { Dst dst; std::memcp...
<commit_before>// ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> #include <sstream> #if BOOST_VERSION >= 104100 // Boost Property Tree #include <boost/property_tree/ptree.hpp> #i...
<commit_before> #include "storage/Devices/SwapImpl.h" #include "storage/Devicegraph.h" #include "storage/Action.h" #include "storage/Utils/StorageDefines.h" #include "storage/Utils/SystemCmd.h" namespace storage { using namespace std; Swap::Impl::Impl(const xmlNode* node) : Filesystem::Impl(node) { ...
<commit_before>#include <iostream> #include <cassert> #include <type_traits> #include <typeinfo> //Get the total size in bytes of the arguments template<typename T, typename... Args> struct SizeOf { static const size_t value = sizeof(T) + SizeOf<Args...>::value; }; template<typename T> struct SizeOf<T> { static cons...
<commit_before>#include <stdio.h> int main() { printf("Hello World"); }<commit_msg>test 2<commit_after>#include <stdio.h> int main() { printf("Hello World"); printf("Joe So Cute"); }<|endoftext|>
<commit_before>#include <clunk/context.h> #include <clunk/backend/sdl/backend.h> #include <clunk/source.h> #include <clunk/wav_file.h> #include <stdlib.h> #ifdef _WINDOWS # include <Windows.h> # define usleep(us) ::Sleep(((us) + 999) / 1000) #else # include <unistd.h> #endif #define WINDOW_BITS 9 typedef clunk::mdct_...
<commit_before>/************************************************************************* * * $RCSfile: olmenu.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: tl $ $Date: 2001-05-08 13:19:39 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: swlbox.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: kz $ $Date: 2007-10-02 10:19:36 $ * * The Contents of this file are made av...
<commit_before>/* Generated from orogen/lib/orogen/templates/typekit/Plugin.cpp */ // First load all RTT interfaces so that we get all "extern template" // declarations in the TypekitImpl files #include "Plugin.hpp" #include <iostream> #include <boost/cstdint.hpp> #include <boost/lexical_cast.hpp> #include <rtt/type...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>/* kopeteviewmanager.cpp - View Manager Copyright (c) 2003 by Jason Keirstead <jason@keirstead.org> Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before>/* Sirikata Graphical Object Host * MonoPlugin.cpp * * Copyright (c) 2009, Daniel Reiter Horn * 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 ...
<commit_before> // STL includes #include <cassert> // Hyperion includes #include "MultiColorTransform.h" MultiColorTransform::MultiColorTransform(const unsigned ledCnt) : _ledTransforms(ledCnt, nullptr) { } MultiColorTransform::~MultiColorTransform() { // Clean up all the transforms for (ColorTransform * transfor...
<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 "base/ref_counted.h" #include "chrome/browser/browser.h" #include "chrome/browser/browser_list.h" #include "chrome/browser/ren...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: transliteration_OneToOne.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: obo $ $Date: 2006-09-17 09:32:33 $ * * The Contents of t...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2014 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>// Time: O(n) // Space: O(logn) /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this->val = val; * this->left = this->right = NULL; * } * } */ class Solution { public: /** * @para...
<commit_before>// Copyright (c) 2018 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 // // ...
<commit_before>/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) European Southern Observatory, 2011 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as pu...
<commit_before>#define DEBUG 1 /** * File : A.cpp * Author : Kazune Takahashi * Created : 8/24/2019, 8:50:03 PM * Powered by Visual Studio Code */ #include <iostream> #include <iomanip> #include <algorithm> #include <vector> #include <string> #include <complex> #include <tuple> #include <queue> #include <stack...
<commit_before>//===----- GDBRegistrationListener.cpp - Registers objects with GDB -------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/** @file bts/blockchain/fork_blocks.hpp * @brief Defines global block number constants for when hardforks take effect */ #pragma once #include <stdint.h> #include <vector> #define BTS_EXPECTED_CHAIN_ID digest_type( "6ae7455c7af731c05698dae7100345ba0e4e229b99672d025201a80909cb8092" ) #define ...
<commit_before>/***************************************************************************** * This file is part of the Gluon Development Platform * Copyright (c) 2011 Laszlo Papp <djszapi@archlinux.us> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Genera...
<commit_before>#include <iostream> using namespace std; int main() { int numEntries = 0; cin >> numEntries; cin.ignore(); while (numEntries--) { } return 0; } <commit_msg>Oplossing voor D: Collatz.<commit_after>#include <iostream> #include <vector> #include <utility> using namespace std; int main() { int ...
<commit_before>/* * Copyright 2008-2009 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> #include "itkImage.h" #include "itkTranslationTransform.h" #include "itkAffineTransform.h" #include "itkRigid2DTransform.h" #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "itkLinearInterpolateImageFunction.h" #include "itkMeanSquaresImageToImageMetric.h" #include "itkMattesMu...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WITHOUT AN...
<commit_before>// Time: O(k^n) // Space: O(k^n) // https://en.wikipedia.org/wiki/De_Bruijn_sequence class Solution { public: string crackSafe(int n, int k) { const int M = pow(k, n - 1); vector<int> P; for (int i = 0; i < k; ++i) { for (int q = 0; q < M; ++q) { ...
<commit_before>// Time: O(1) // Space: O(1) class Solution { public: int mirrorReflection(int p, int q) { return (p & -p) > (q & -q) ? 2 : (p & -p) < (q & -q) ? 0 : 1; } }; // Time: O(log(max(p, q))) = O(1) due to 32-bit integer // Space: O(1) class Solution2 { public: int mirrorReflection(int ...
<commit_before>// Time: O(n * k) // Space: O(n + k) // DP solution. (596ms) class Solution2 { public: int nthSuperUglyNumber(int n, vector<int>& primes) { vector<int> uglies(n), ugly_by_prime(primes), idx(primes.size()); uglies[0] = 1; for (int i = 1; i < n; ++i) { int min_val...
<commit_before>#include "DateTime.h" #include "ArraySort.h" #include <iostream> #include <string> #include <list> using namespace std; using namespace NP_DATETIME; using namespace NP_ARRAYSORT; // .h int main(); void sortCTimesShow(); void sortDatesShow(); void sortDateTimesShow(); // .cpp void sortCTimesShow() { ...
<commit_before>#include <iostream> #include <sstream> #include <string> #include <regex> #include "Calculator.h" #include "ExpressionMaker.h" #include "ExpressionUtil.h" const std::string Calculator::m_validCommand("?REPITVQ"); const std::string Calculator::m_numberedCommand("EPIT"); Calculator::Calculator() : m_ex...
<commit_before>#include "PathVisibleSimple.h" #include <easyshape.h> namespace lr { namespace preview { PathVisibleSimple::PathVisibleSimple(const d2d::Rect& region) : m_region(region) , m_visited(this) , m_node_id(0) { } void PathVisibleSimple::DisableRegion(const d2d::ISprite* spr, bool disable) { std::map<co...
<commit_before>#define DEBUG 1 /** * File : C.cpp * Author : Kazune Takahashi * Created : 2020/3/9 12:28:02 * Powered by Visual Studio Code */ #include <algorithm> #include <bitset> #include <cassert> #include <cctype> #include <chrono> #include <cmath> #include <complex> #include <cstdint> #include <cstdio> #...
<commit_before>/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. ==...
<commit_before><commit_msg>Delete a.cpp<commit_after><|endoftext|>
<commit_before>#include <BeaconTile.h> BeaconTile::BeaconTile(int id) : Tile(id, &Material::metal) { tex = getTextureUVCoordinateSet("glass", 0); secondary_tex = getTextureUVCoordinateSet("obsidian", 0); terciary_tex = getTextureUVCoordinateSet("beacon", 0); //fourth_tex = getTextureUVCoordinateSet("beacon_beam", ...
<commit_before>#include "mmapFile.h" #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include <errno.h> #include <sys/mman.h> #ifdef ENABLE_UDC extern "C" { #include "common.h" #include "udc.h" } #endif /* constants for header */ static const std::string FORMAT_...
<commit_before>/* Copyright 2018 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 appli...
<commit_before>/* Copyright (C) 2014 Alexandr Akulich <akulichalexander@gmail.com> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SH...
<commit_before>#include "master.hpp" namespace factor { factor_vm *vm; void init_globals() { init_platform_globals(); } void factor_vm::default_parameters(vm_parameters *p) { p->image_path = NULL; /* We make a wild guess here that if we're running on ARM, we don't have a lot of memory. */ #ifdef FACTOR_ARM p-...
<commit_before>#include "master.hpp" namespace factor { void init_globals() { init_mvm(); } void factor_vm::default_parameters(vm_parameters *p) { p->image_path = NULL; p->datastack_size = 32 * sizeof(cell); p->retainstack_size = 32 * sizeof(cell); #if defined(__OpenBSD__) && defined(FACTOR_X86) p->callstack_...
<commit_before>#include "config.h" #include "release.h" #include "vm.hpp" #include "call_frame.hpp" #include "environment.hpp" #include "signal.hpp" #include "configuration.hpp" #include "builtin/module.hpp" #include "builtin/array.hpp" #include "builtin/array.hpp" #include "builtin/class.hpp" #include "builtin/const...
<commit_before>//===-- BitWriter.cpp -----------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by Gordon Henriksen and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===--...
<commit_before>//===--- DerivedConformances.cpp - Derived conformance utilities ----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/*- * Copyright (c) 2016 Frederic Culot <culot@FreeBSD.org> * 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 copyri...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>#include "CLSHPlasticMaterial.h" #include "SymmIsotropicElasticityTensor.h" #include <cmath> template<> InputParameters validParams<CLSHPlasticMaterial>() { InputParameters params = validParams<SolidModel>(); params.addRequiredParam<Real>("yield_stress", "The point at which plastic strain begins ...
<commit_before>/* * ModSecurity, http://www.modsecurity.org/ * Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/) * * 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 * * If any of...
<commit_before>// Richards standard SUPG // /* here i use a formula for "tau" presented in Appendix A of TJR Hughes, M Mallet and A Mizukami ``A new finite element formulation for computational fluid dynamics:: II. Behond SUPG'' Computer Methods in Applied Mechanics and Engineering 54 (1986) 341--355 */ #incl...
<commit_before>#include <sofa/simulation/common/MechanicalOperations.h> #include <sofa/simulation/common/MechanicalVisitor.h> #include <sofa/simulation/common/MechanicalMatrixVisitor.h> #include <sofa/core/MultiVecId.h> #include <sofa/core/VecId.h> #include <sofa/core/behavior/LinearSolver.h> #include <sofa/defaulttype...
<commit_before>/* * Copyright (C) 2017 ScyllaDB * * Modified by ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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...
<commit_before>#include <stdio.h> #include "Halide.h" using namespace Halide; #ifdef _WIN32 #define DLLEXPORT __declspec(dllexport) #else #define DLLEXPORT #endif int count = 0; extern "C" DLLEXPORT int call_counter(int x, int y) { count++; return 0; } HalideExtern_2(int, call_counter, int, int); extern "C"...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 MGH, INRIA, USTL, UJF, CNRS * * ...
<commit_before>#include <bits/stdc++.h> using namespace std; template<typename T> vector<T> read_vector(int n, char const* cstr) { vector<T> A; A.reserve(n); for (int i = 0; i < n; i++) { int z; scanf(cstr, &z); A.push_back(z); } return A; } int main() { int N; scanf("%d", &N); vector<int> A = read_vec...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_STUFF_TEST_MAIN_ENABLE_INFO_LOGGING # define DUNE_STUFF_TEST_MAIN_ENABLE_IN...
<commit_before>#include "Sketch.h" #include "gl/draw/Texture.h" using namespace std; using namespace chr; using namespace gl; void Sketch::setup() { initTextures(); // --- textureBatches[0].setShader(textureShader); textureBatches[0].setShaderColor(1, 1, 1, 1); textureBatches[0].setTexture(textures[0]); ...
<commit_before>/****************************************************************************** This source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software ...
<commit_before>#include "Iop_Sysclib.h" using namespace Iop; using namespace std; CSysclib::CSysclib(uint8* ram, CStdio& stdio) : m_ram(ram), m_stdio(stdio) { } CSysclib::~CSysclib() { } string CSysclib::GetId() const { return "sysclib"; } string CSysclib::GetFunctionName(unsigned int f...
<commit_before>/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<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>/* * Copyright (C) 2013 Google 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, this l...
<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 "config.h" #include "core/rendering/style/GridResolvedPosition.h" #include "core/rendering/RenderBox.h" #include "core/rendering/...
<commit_before>// BulletPhysicsSystem.cpp - Copyright 2013-2016 Will Cassella, All Rights Reserved #include <BulletCollision/CollisionDispatch/btGhostObject.h> #include <Engine/World.h> #include "../include/BulletPhysics/BulletPhysicsSystem.h" #include "DebugDrawer.h" #include "PhysicsWorld.h" #include "RigidBody.h" #...
<commit_before>// ---------------------------------------------------------------------------------------------------------- /// @file runtime_converter.hpp /// @brief Header file for the runtime_converter metaclass which can return runtime containers (like /// std::vector) from nano containers (mainly lists...
<commit_before>/* * MWMService.cpp * * Created on: May 11, 2012 * Author: siarheirachytski */ #include "Framework.hpp" #include "../core/jni_helper.hpp" #include "../platform/Platform.hpp" #include "../../../../../map/information_display.hpp" #include "../../../../../map/location_state.hpp" #include "../...
<commit_before>/* Copyright (C) 2000 by Jorrit Tyberghein With additions by Samuel Humphreys 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 Li...
<commit_before>/** @file @brief Implementation of the "multiserver" plugin that offers the stock VRPN devices. @date 2014 @author Ryan Pavlik <ryan@sensics.com> <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed u...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>#include <benchmark/benchmark.h> #include <blackhole/attributes.hpp> #include <blackhole/cpp17/string_view.hpp> #include <blackhole/extensions/writer.hpp> #include <blackhole/formatter/string.hpp> #include <blackhole/record.hpp> namespace blackhole { namespace benchmark { static void format_literal(::...
<commit_before>#include "uuidxx.h" #include <random> #include <stdio.h> #include <inttypes.h> using namespace std; using namespace uuidxx; #ifdef _WIN32 #define sscanf sscanf_s #endif bool uuid::operator == (const uuid & guid2) const { return memcmp(&guid2, this, sizeof(uuid)) == 0; } bool uuid::operator != (const...
<commit_before>// // Copyright (c) 2014 CNRS // Authors: Florent Lamiraux // // This file is part of hpp-core // hpp-core 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 Lic...
<commit_before><commit_msg>fix newlines<commit_after><|endoftext|>
<commit_before>/** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this fi...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2013 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, to any pe...
<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>/* 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>#ifndef K3_UNIQPOLYBUF #define K3_UNIQPOLYBUF #include <unordered_set> #if HAS_LIBDYNAMIC #include <boost/serialization/array.hpp> #include <boost/serialization/string.hpp> #include <boost/functional/hash.hpp> #include <yaml-cpp/yaml.h> #include <rapidjson/document.h> #include <csvpp/csv.h> #include ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/ffdc/ffdc_includes.H $ ...
<commit_before>//===--- HTMLDiagnostics.cpp - HTML Diagnostics for Paths ----*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------...
<commit_before>#include <iostream> #include <iomanip> int main(int argc, char *argv[]) { std::cout << " |"; for (int x = 1; x<=12; ++x) { std:: cout <<std::setw(5)<< x <<"|"; } std:: cout <<std::endl; for(int x = 0; x<=12; ++x) { std::cout << "-----+"; } ...
<commit_before>#pragma once #include "internal/opengl.hpp" #include "color.hpp" #include "managed_texture.hpp" #include "../geometry/point2d.hpp" #include "../geometry/rect2d.hpp" #include "../std/vector.hpp" #include "../3party/boost/boost/gil/gil_all.hpp" #include "../3party/boost/boost/mpl/vector_c.hpp" #include "....