text
stringlengths
54
60.6k
<commit_before>/* This file is part of kdepim. Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of th...
<commit_before>#include <iostream> int main(int argc, char* argv[]) { std::cout << "Hello World!" << std::endl; return 0; }<commit_msg>feat: make it work<commit_after>#include <iostream> int main(int argc, char* argv[]) { std::cout << "Hello World!" << std::endl; std::system("PAUSE"); return 0; }<...
<commit_before>/************************************************************************************ * Copyright (C) 2017, Copyright Holders of the ALICE Collaboration * * All rights reserved. * * ...
<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 <fb/xplat_init.h> #include <fbjni/fbjni.h> #include "Binding.h" #include "EventBeatManager.h" #include "Ev...
<commit_before>#include <iostream> // std::cout #include <stdlib.h> // rand() #include <time.h> // time() #include "gtest/gtest.h" #include "sorting.h" #include "printarray.h" #include "verifyarrays.h" #define quiet // ********************************************************************* TEST(Efficien...
<commit_before>#include <iostream> // std::cout #include <stdlib.h> // rand() #include <time.h> // time() #include "gtest/gtest.h" #include "sorting.h" #include "printarray.h" #include "verifyarrays.h" #include "verifysortedarrays.h" #define quiet // ***************************************************...
<commit_before>//===-- TargetData.cpp - Data size & alignment routines --------------------==// // // This file defines target properties related to datatype size/offset/alignment // information. It uses lazy annotations to cache information about how // structure types are laid out and used. // // This structure sho...
<commit_before>//===-- TargetData.cpp - Data size & alignment routines --------------------==// // // 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>#include <sstream> #include <iostream> #include <cstring> #include "datafeeder.h" void DataFeeder::init() { m_pLevel2Api->RegisterSpi(this); m_pLevel2Api->RegisterFront(const_cast<char*>(this->front_address.c_str())); // 使客户端开始与后台服务建立连接 m_pLevel2Api->Init(); } void DataFeeder::OnFrontCo...
<commit_before>#include <iostream> #include <sstream> #include <string> using namespace std; class Rational { int a, b; int gcd(int a, int b); void simplify(); bool check(const Rational& f); public: Rational(int a=0, int b=1) : a(a) , b(b) { if (b == 0) return; simplif...
<commit_before>/* ircprotocol - IRC Protocol Copyright (c) 2002 by Nick Betcher <nbetcher@kde.org> Kopete (c) 2002 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before>/* * Copyright (c) 2016 Jason White * * 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, modify,...
<commit_before>#include <mettle.hpp> using namespace mettle; #include "run_counter.hpp" template<typename F, typename Tuple, std::size_t ...I> decltype(auto) apply_impl(F &&f, Tuple &&t, std::index_sequence<I...>) { return std::forward<F>(f)(std::get<I>(std::forward<Tuple>(t))...); } template<typename F, typename ...
<commit_before>#include "bs_mesh_stdafx.h" #include "py_rs_mesh.h" #include "bs_mesh_grdecl.h" #include "export_python_wrapper.h" #include "py_pair_converter.h" #include <boost/python/tuple.hpp> #ifdef BSPY_EXPORTING_PLUGIN using namespace boost::python; namespace blue_sky { namespace python { void init_props1(bs_...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkDummyImageToListAdaptorTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved....
<commit_before>#ifndef _BME280_IMPL_ #define _BME280_IMPL_ #include "SensorInterface.hpp" #include <Wire.h> #include <Adafruit_BME280.h> class BME280_Impl : public SensorInterface { public: BME280_Impl(uint8_t i2caddr); virtual ~BME280_Impl(); virtual float temperature(); virtual float humidity(); ...
<commit_before>#include <iostream> #include "convexHull.h" #include "testUtil.h" using namespace Eigen; void testConvexHull() { Matrix<double, 2, Dynamic> pts(2, 4); pts << 1.0, 2.0, 3.0, 2.0, 2.0, 1.0, 2.0, 3.0; valuecheck(inConvexHull(pts, Vector2d(2.0, 2.0)), true); valuecheck(inConvexHull(pts, V...
<commit_before>//=========================================== // Lumina-DE source code // Copyright (c) 2016, Ken Moore // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #ifdef __linux__ #include <QDebug> #include "LuminaOS.h" #include ...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #include "cling/Ut...
<commit_before>/* Basic Server code for CMPT 276, Spring 2016. */ #include <exception> #include <iostream> #include <memory> #include <string> #include <unordered_map> #include <utility> #include <vector> #include <cpprest/base_uri.h> #include <cpprest/http_listener.h> #include <cpprest/json.h> #include <pplx/pplx...
<commit_before>#include <stan/math/prim/scal.hpp> #include <boost/math/special_functions/fpclassify.hpp> #include <gtest/gtest.h> #include <limits> template <typename T_N, typename T_n> void test_binom_coefficient(const T_N& N, const T_n& n) { using stan::math::binomial_coefficient_log; EXPECT_FLOAT_EQ(lgamma(N + ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: transliteration_Numeric.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2006-09-17 09:32:20 $ * * The Contents of thi...
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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>//=========================================== // Lumina-DE source code // Copyright (c) 2014, Ken Moore // Available under the 3-clause BSD license // See the LICENSE file for full details //=========================================== #include "FODialog.h" #include "ui_FODialog.h" #include <QApplica...
<commit_before>#include <algorithm> #include <iterator> #include <vector> // Algorithm to be tested std::vector<int> product_except_impl(std::vector<int> data) { // [i] = product data[0..i[ std::vector<int> prod_upto = {1}; std::copy(data.begin(), data.end() -1, std::back_inserter(prod_upto)); std::transform(...
<commit_before>/* * Copyright 2014 Blistud:io */ #include "blieng/path.h" #include <algorithm> #include <iostream> #include <string> #include <vector> #include <cmath> #ifndef M_PI #define M_PI 3.14159 #endif using blieng::Path; Path::Path() { } Path::~Path() { } std::string Path::toString() const { std::s...
<commit_before>#include "test_utils.h" // Test configuration constants (to be loaded from an INI file) bool FTP_TEST_ENABLED; bool SFTP_TEST_ENABLED; bool HTTP_PROXY_TEST_ENABLED; std::string CURL_LOG_FOLDER; std::string SSL_CERT_FILE; std::string SSL_KEY_FILE; std::string SSL_KEY_PWD; std::string FTP_SERVER; unsig...
<commit_before>// // DynamicVoiceManager.cpp // C700 // // Created by osoumen on 2014/11/30. // // #include "DynamicVoiceManager.h" //----------------------------------------------------------------------------- DynamicVoiceManager::DynamicVoiceManager() : mVoiceLimit(8) { } //-------------------------------...
<commit_before>#include <stdlib.h> #include "geocsv.hpp" #include "mvt.hpp" #include "serial.hpp" #include "projection.hpp" #include "main.hpp" #include "text.hpp" #include "csv.hpp" #include "milo/dtoa_milo.h" void parse_geocsv(std::vector<struct serialization_state> &sst, std::string fname, int layer, std::string la...
<commit_before><commit_msg>replace use of data member fStack by direct access to stack pointer via instance call, this should solve the failing tests<commit_after><|endoftext|>
<commit_before>//===- LoopAnalysis.cpp - Misc loop analysis routines //-------------------===// // // Copyright 2019 The MLIR 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 // /...
<commit_before>#include <htool/point.hpp> #include <htool/wrapper_hpddm.hpp> #include <htool/fullACA.hpp> #include <htool/hmatrix.hpp> #include <htool/geometry.hpp> using namespace std; using namespace htool; int main(int argc, char const *argv[]){ // Input file if ( argc < 5 ){ // argc should be 5 or more for ...
<commit_before>#include <rai/node/openclwork.hpp> #include <dlfcn.h> namespace { class opencl_initializer { public: opencl_initializer () { opencl_library = dlopen ("libOpenCL.so", RTLD_NOW); if (opencl_library != nullptr) { clGetPlatformIDs = reinterpret_cast <decltype (clGetPlatformIDs)> (dlsym (opencl_l...
<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 distribut...
<commit_before>/* * This file is part of ATLAS. It is subject to the license terms in * the LICENSE file found in the top-level directory of this distribution. * (Also avialable at http://www.apache.org/licenses/LICENSE-2.0.txt) * You may not use this file except in compliance with the License. */ #include <iostream> #...
<commit_before>/** * @file llimage_libtest.cpp * @author Merov Linden * @brief Integration test for the llimage library * * $LicenseInfo:firstyear=2011&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2011, Linden Research, Inc. * * This library is free software; you can redistribute it a...
<commit_before>//============================================================================================================= /** * @file frequencyspectrumdelegate.cpp * @author Christoph Dinh <chdinh@nmr.mgh.harvard.edu>; * Matti Hamalainen <msh@nmr.mgh.harvard.edu> * @version 1.0 * @date May, 20...
<commit_before>/** * @file * * Define a class that abstracts Linux threads. */ /****************************************************************************** * Copyright (c) 2009-2013, AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * p...
<commit_before>//============================================================================== // CellML annotation view metadata details widget //============================================================================== #include "borderedwidget.h" #include "cellmlannotationviewmetadatadetailswidget.h" #in...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #include "cling/In...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source Licens...
<commit_before>////////////////////////////////////////////////////////////////////////// #pragma once #include "Graphics/BlendStateDesc.hpp" #include "Graphics/RasterizerStateDesc.hpp" #include "Graphics/DepthStencilStateDesc.hpp" #include "Graphics/InputLayoutDesc.hpp" #include "Graphics/SampleDesc.hpp" #include "Gra...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved */ #include "../../StroikaPreComp.h" #include "../../Streams/iostream/BinaryOutputStreamFromOStreamAdapter.h" #include "../../Streams/TextOutputStreamBinaryAdapter.h" #include "Writer.h" using namespace Stroik...
<commit_before>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve. * * 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> // // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2011 Francois Beaune // // Permission is hereby granted, free of charge, to any person obtaining a copy ...
<commit_before>#pragma once #include <functional> #include <vector> #include <string> namespace GUI { /// A window where a hymn can be selected. class SelectHymnWindow { public: /// Constructor. SelectHymnWindow(); /// Scan the save directory for hymns. ...
<commit_before>//===--- SemaPseudoObject.cpp - Semantic Analysis for Pseudo-Objects ------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* HardwareSerial.cpp - Hardware serial library for Wiring Copyright (c) 2006 Nicholas Zambetti. All right reserved. 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 Foundation; e...
<commit_before>#include <cassert> #include <iostream> #include <map> #include <random> #include <GLFW/glfw3.h> #include <glbinding/Binding.h> #include <glbinding/callbacks.h> #include <glbinding/gl/gl.h> #include <globjects/globjects.h> #include <glm/gtc/matrix_transform.hpp> #include <openll/GlyphRenderer.h> #incl...
<commit_before>#include "fileoperations/coperationperformer.h" #include "cfolderenumeratorrecursive.h" #include "ctestfoldergenerator.h" #include "container/set_operations.hpp" #include "system/processfilepath.hpp" #include "system/ctimeelapsed.h" #include "filecomparator/cfilecomparator.h" // test_utils #inc...
<commit_before>/****************************************************************************** * This file is part of the Gluon Development Platform * Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
<commit_before>// Copyright (c) 2012 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/component_updater/swiftshader_component_installer.h" #include "base/base_paths.h" #include "base/bind.h" #inc...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: confeventhelpers.hxx,v $ * * $Revision: 1.11 $ * * last change: $Author: ihi $ $Date: 2007-11-23 14:01:04 $ * * The Contents of this file...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2011, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // ...
<commit_before>/************************************************************************* * * $RCSfile: elementformatter.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: ssmith $ $Date: 2002-10-21 13:17:59 $ * * The Contents of this file are made available subject to the terms of * either of the fol...
<commit_before>/* * CardDeck.cpp * * Created on: 2014年10月25日 * Author: nemo */ #include "CardDeck.h" #include <iostream> CardDeck::CardDeck() { LOG_TRACE("Construct CardDeck.") } CardDeck::~CardDeck() { // TODO Auto-generated destructor stub } /// Insert card into card deck. /** * @brief Insert card...
<commit_before>/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ #include <assert.h> #include <cstddef> #include <string.h> #include <stdlib.h> extern "C" { #include <ovsdb_wrapper.h> }; #include <oper/agent_sandesh.h> #include <ovsdb_types.h> #include <ovsdb_client_idl.h> #include <ovsdb_clien...
<commit_before>#include "Genes/Pawn_Advancement_Gene.h" #include <string> #include <memory> #include "Genes/Gene.h" #include "Game/Board.h" #include "Pieces/Piece.h" double Pawn_Advancement_Gene::score_board(const Board& board) const { double score = 0.0; auto perspective = board.whose_turn(); int home_r...
<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) 2014-2017 Michael J. Sullivan // Use of this source code is governed by an MIT-style license that can be // found in the LICENSE file. #ifndef QSPINLOCK_SC_H #define QSPINLOCK_SC_H #include <rmc++.h> #include <utility> #include "tagged_ptr.hpp" #define CLEAR_RMW 1 namespace rmclib { ...
<commit_before>// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #include "targetver.hpp" #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers // Windows Hea...
<commit_before>//===-- DynamicLinker.cpp - Implement DynamicLinker interface -------------===// // // 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>#include <QApplication> #include <QWidget> #include <QLabel> #include <QPushButton> #include <QGridLayout> #include <QPointer> #include <QBackingStore> #include <QList> #include <QBasicTimer> #include <QImage> #include <QPixmap> #include <QTime> #include <QDebug> class WidgetMonitor : public QObject { ...
<commit_before>//===- lib/Support/ErrorHandling.cpp - Callbacks for errors ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===- DCE.cpp - Code to perform dead code elimination --------------------===// // // This file implements dead code elimination and basic block merging. // // Specifically, this: // * removes definitions with no uses (including unused constants) // * removes basic blocks with no predecessors // *...
<commit_before>#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <SDL_opengl.h> #include <SDL.h> #include <algorithm> #include <cmath> #include "game.hxx" #include "player.hxx" #include "globals.hxx" #include "music_player.hxx" #define ACCEL -0.015f #define MIN_CONV 0.5f #define MAX_CONV 2.5f using namespac...
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "rpcnetwork.h" #include "rpcservicepool.h" #include "rpcsendv2.h" #include "rpctargetpool.h" #include "rpcnetworkparams.h" #include <vespa/fnet/frt/supervisor.h> #include <vespa/fnet/schedule...
<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 <vector> #include <glog/logging.h> #include <gtest/gtest.h> #include <react/renderer/components/root/Root...
<commit_before>#include "navstack_module.h" #include <ros/ros.h> #include <nav_msgs/GetPlan.h> #include <geometry_msgs/PoseStamped.h> #include <map> using std::map; #include <utility> using std::pair; using std::make_pair; #include <boost/foreach.hpp> #ifdef __CDT_PARSER__ #define forEach(a, b) for(a : b) #else #define...
<commit_before>#include <iostream> // Include before boost::log headers #include "restc-cpp/logging.h" #include "restc-cpp/restc-cpp.h" #include "restc-cpp/RequestBuilder.h" #include "restc-cpp/test_helper.h" #include "lest/lest.hpp" using namespace std; using namespace restc_cpp; static const string defunct_prox...
<commit_before>/*------------------------------------------------------------------------- * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2018 Advanced Micro Devices, Inc. * Copyright (c) 2018 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
<commit_before>/*------------------------------------------------------------------------- * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2018 Advanced Micro Devices, Inc. * Copyright (c) 2018 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n...
<commit_before>#include <bits/stdc++.h> #define dbug(x) cout << '>' << #x << ':' << x << endl #define pline cout << "_________________________" << endl #define mem(x, v) memset(x, v, sizeof(x)) #define eef else if #define sf scanf #define pf printf #define i64 long long #define ll long long #define ui64 unsigned ...
<commit_before>/* Copyright 2014 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 req...
<commit_before>/*---------------------------------------------------------------------------*\ * OpenSG NURBS Library * * * * ...
<commit_before>#ifdef JOYSMOOTH_H_INC #define JOYSMOOTH_H_INC #include <bitset> #include <GenericHID.h> #include "612.h" #include "update.h" #include "joysmooth.h" //provide definition of constants: const int joysmooth::HOLDBACK; const int joysmooth::NUMBUTTONS; const int joysmooth::NUMAXES; void register_callback(v...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before>/** * KeybdInput 1.0.3 * * @author Roger Lima (rogerlima@outlook.com) * @date 31/aug/2014 * @update 11/feb/2016 * @desc Reads the keyboard input them according to the format specified (only works on Windows) * @example int day, month, year; KeybdInput< int > userin; userin.solicit( "Type a d...
<commit_before>#include "DoubleIntegrator.h" #include "InterpolatorHelpers.h" #include "ParabolicRamp.h" #include "KinodynamicPath.h" #include "CSetHelpers.h" #include <sstream> using namespace std; void Convert(const ParabolicRamp::ParabolicRamp1D& ramp,Spline::PiecewisePolynomial& res) { res.segments.resize(3); ...
<commit_before>/* Authors: Lutong Wang and Bangqi Xu */ /* * Copyright (c) 2019, The Regents of the University of California * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistrib...
<commit_before>#include <sch/S_Polyhedron/Polyhedron_algorithms.h> #include <sch/File_Parsing/SimplestParsing.h> #include <fstream> #include <stdexcept> #include <string> #include <algorithm> #include <set> //#define CD_POLYHEDRON_ALGORITHM_VERBOSE_MODE //VERBOSE mode (slows down the algorithm) default is commented ...
<commit_before>// bsls_assert.cpp -*-C++-*- #include <bsls_assert.h> #include <bsls_ident.h> BSLS_IDENT("$Id$ $CSID$") #include <bsls_asserttestexception.h> #include <bsls_pointercastutil.h> #include <bsls_types.h> #include <bsls_log.h> #include <bsls_logseverity.h> ...
<commit_before>/* +---------------------------------------------------------------------------+ | The Mobile Robot Programming Toolkit (MRPT) C++ library | | | | http://www.mrpt.org/ ...
<commit_before>#define INSANITY_BUILDING_LIBRARY #include "CWindowsWin32Window.hpp" #if defined(PLATFORM_MSWINDOWS) #include <IThread.hpp> #include <IGarbageCollector.hpp> #include <IApplication.hpp> #include <IString.hpp> #include <TRectangle.hpp> #include <IConfigObject.hpp> #include <windowsx.h> #include <CommCt...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: chips/p9/procedures/hwp/memory/p9_mss_draminit_mc.C $ ...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2002 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. Red...
<commit_before>/* * XMLLoadHandler.cpp * * Created on: 29.05.2017 * Author: Alexander */ #include "persistence/xml/XMLLoadHandler.hpp" #include <sstream> // used for getLevel() #include <boost/algorithm/string.hpp> // used for string splitting #include "boost/exception/to_string.hpp" #include "ecore/EOb...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rig...
<commit_before>#pragma once #include <cstdint> #include <limits> #include "type.hpp" namespace spn { //! 表現に何ビット使うか計算 /*! +1すればMSBの取得にもつかえる */ template <unsigned int N> struct NBits { enum { result=1+NBits<((N)>>1)>::result }; }; template <> struct NBits<0> { enum { result=1 }; }; template <> struct NBit...
<commit_before>/* * storeBCDvalueOfVxInsrtruction.cpp * * Created on: Jul 23, 2016 * Author: Tomas Stibrany */ #include "storeBCDvalueOfVxInstruction.hpp" #include "../cpu.hpp" using namespace chip8::core::cpu::instructions; using namespace chip8::core::cpu; StoreBCDvalueOfVxInstruction::StoreBCDvalueOfVxI...
<commit_before>#include "Timer.h" namespace fse { Timer::Timer(Scene* scene) : FSEObject(scene) { } Timer::~Timer() { } void Timer::update(float deltaTime) { if (active_) { elapsed_time_ += deltaTime; while (elapsed_time_ * 1000 >= interval_) { elapsed_time_ -= interval_*0.001f; time...
<commit_before>#include "physics.h" #include "GLDebugDrawer.h" #include "../state/state.h" #include <iostream> using namespace Physics; Simulation::Simulation() { m_broadphase = new btDbvtBroadphase(); m_collisionConfiguration = new btDefaultCollisionConfiguration(); m_dispatcher = new btCollisionDispatcher(m_coll...
<commit_before>//===- FileCheck.cpp - Check that File's Contents match what is expected --===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/*========================================================================= Library : Image Registration Toolkit (IRTK) Module : $Id$ Copyright : Imperial College, Department of Computing Visual Information Processing (VIP), 2009 onwards Date : $Date$ Version : $Revis...
<commit_before>// 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 file // to you under the Apache License, Version 2.0 (the // "Lic...
<commit_before>/* Copyright 2016-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "WatchmanConnection.h" #include <folly/ExceptionWrapper.h> #include <folly/SocketAddress.h> #include <folly/Subprocess.h> #include <folly/experimental/bser/Bser.h> #include <folly/futures/InlineExecut...
<commit_before>/** * Multiplicative hashing * ====================== * * Based on the golden ratio, so A.K.A. Fibonacci hashing. Simple, fast, but * frequent to collide. */ #include <iostream> uint32_t mulhash32(uint32_t h, int shift) { return (h * 2654435769u) >> shift; } uint64_t mulhash64(uint64_t h, ...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sddll.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: rt $ $Date: 2006-05-02 15:03:04 $ * * The Contents of this file are made av...