text
stringlengths
54
60.6k
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// /// \file hardware_concurrency.hpp /// ------------------------------ /// /// (c) Copyright Domagoj Saric 2016 - 2019. /// /// Use, modification and distribution are subject to the /// Boost Software License, Version 1...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2017 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>/************************************************************************* * * $RCSfile: framelistanalyzer.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: kz $ $Date: 2005-03-01 19:35:00 $ * * The Contents of this file are made available subject to the terms of * either of the follow...
<commit_before>// Copyright (c) 2014-2016 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/ #ifndef PEGTL_INTERNAL_FILE_MAPPER_HH #define PEGTL_INTERNAL_FILE_MAPPER_HH #include <unistd.h> #include <sys/mman.h> #include "file_opener.hh" #include "../input_err...
<commit_before>#include "dialog.h" #include <Tempest/SystemAPI> #include <Tempest/Window> #include <Tempest/Layout> #include <Tempest/Application> using namespace Tempest; struct Dialog::LayShadow : Tempest::Layout { void applyLayout(){ for(Widget* w:widgets()){ Point pos = w->pos(); if(w->x()+w-...
<commit_before><commit_msg>ThirdParty: Fix quarternion to euler conversion bug (#6241)<commit_after><|endoftext|>
<commit_before>/****************************************************************************** * This file is part of the Gluon Development Platform * Copyright (C) 2010 Dan Leinir Turthra Jensen <admin@leinir.dk> * * This library is free software; you can redistribute it and/or * modify it under the terms of the ...
<commit_before>// Copyright 2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "elang/compiler/analysis/name_tree_builder.h" #include "base/logging.h" #include "elang/compiler/analysis/analysis_editor.h" #include "e...
<commit_before>/* ============================================================================== Copyright (c) 2016, Daniel Walz 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. Redistributi...
<commit_before>/* Copyright (c) 2007 Tobias Koenig <tokoe@kde.org> 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 License, or (at your option) any...
<commit_before>/* * %CopyrightBegin% * * Copyright Ericsson AB 2020-2020. 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/...
<commit_before>#ifndef ETS2_TELEMETRY_COMMON_HPP #define ETS2_TELEMETRY_COMMON_HPP // This file contains "Common definitions" for this ETS2 telemetry plug-in. // This includes: // - Debug logging detail options // - Shared memory map struct layout // - [..] #define ETS2_PLUGIN_REVID 1 #define ETS2_PLUGIN_LOGGING...
<commit_before>/* * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * 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>// GLAD will not include windows.h for APIENTRY if it was previously defined #ifdef _WIN32 #define APIENTRY __stdcall #endif #include <glad/glad.h> #include <GLFW/glfw3.h> // confirm that neither GLAD nor GLFW didn't include windows.h #ifdef _WINDOWS_ #error windows.h was included! #endif #include <gl...
<commit_before>#pragma once #include "physics/geopotential.hpp" #include <cmath> #include "numerics/legendre.hpp" #include "numerics/polynomial_evaluators.hpp" #include "quantities/elementary_functions.hpp" #include "quantities/quantities.hpp" #include "quantities/si.hpp" namespace principia { namespace physics { ...
<commit_before>// The MIT License (MIT) // // Copyright (c) 2015 Sergey Makeev, Vadim Slyusarev // // 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 withou...
<commit_before>#include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkQuadric.h" #include "vtkSampleFunction.h" #include "vtkContourFilter.h" #include "vtkOutlineFilter.h" #include "vtkPolyDataMapper.h" #include "vtkActor.h" #include "SaveImage.h" void main( int argc...
<commit_before>// Author: Sergey Linev, GSI 10/04/2017 /************************************************************************* * Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>/* * bin_hierarchical_clustering_index_test.cpp * * Created on: Sep 18, 2013 * Author: andresf */ #include <ctime> #include <limits.h> #include <gtest/gtest.h> #include <opencv2/core/core.hpp> #include <FileUtils.hpp> #include <VocabTree.h> TEST(VocabTree, Instantiation) { cv::Ptr<cvflann...
<commit_before>/* main.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2001,2002,2004 Klar�vdalens Datakonsult AB Kleopatra 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 Founda...
<commit_before>/* -*- c++ -*- callback.cpp This file is used by KMail's plugin interface. Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk> KMail 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 Founda...
<commit_before>#pragma once #include <iostream> #include <cmath> #include <vector> #include <array> #include <algorithm> #include "acmacs-base/string.hh" #include "acmacs-base/location.hh" #include "acmacs-base/line.hh" // ---------------------------------------------------------------------- namespace acmacs { ...
<commit_before>// KMail startup and initialize code // Author: Stefan Taferner <taferner@alpin.or.at> #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <sys/types.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <kuniqueapplication.h> #include <klocale.h> #include <kgl...
<commit_before>/* * Copyright (c) 2008 The Hewlett-Packard Development Company * 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 copyrigh...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use t...
<commit_before>/****************************************************************************** * This file is part of the Mula project * Copyright (c) Opera Wang <wangvisual AT sohu DOT com> * Copyright (c) 2011 Laszlo Papp <lpapp@kde.org> * * This library is free software; you can redistribute it and/or * modify...
<commit_before>#include "context.hpp" #include <SFML/Graphics.hpp> #include <iostream> #include <cstdlib> #include "../debug.hpp" static sf::Font font; static sf::Text debugText; static sf::RenderWindow window; static sf::Texture displayTexture; static sf::Sprite displaySprite; // SFML needs a sprite to render a te...
<commit_before>/* ============================================================================ * Copyright (c) 2012 Michael A. Jackson (BlueQuartz Software) * Copyright (c) 2012 Singanallur Venkatakrishnan (Purdue University) * All rights reserved. * * Redistribution and use in source and binary forms, with or wit...
<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 <quic/state/AckHandlers.h> #include <quic/logging/QuicLogger.h> #include <quic/loss/QuicLossFunctions.h...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2013-2015 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>/* * Copyright 2017 deepstreamHub GmbH * * 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 applic...
<commit_before>#include "Base.h" #include "Gamepad.h" #include "Game.h" namespace gameplay { Gamepad::Gamepad(unsigned int handle, const char* formPath) : _id(""), _gamepadForm(NULL), _uiJoysticks(NULL), _uiButtons(NULL), _handle(handle), _buttonCount(0), _joystickCount(0), _triggerCount(0) { ...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <algorithm> #include <visionaray/math/detail/math.h> namespace MATH_NAMESPACE { namespace simd { //------------------------------------------------------------------------------------------------- // int4...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: otherjre.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: hr $ $Date: 2006-06-20 00:08:52 $ * * The Contents of this file are made...
<commit_before>#ifndef BLENDMODE_HPP_INCLUDED #define BLENDMODE_HPP_INCLUDED namespace gst { enum class BlendMode { NONE, ADDITIVE, MULTIPLICATIVE, INTERPOLATIVE }; } #endif <commit_msg>add documentation to blend mode<commit_after>#ifndef BLENDMODE_HPP_INCLUDED #define BLENDMOD...
<commit_before><commit_msg>Delete unused code<commit_after><|endoftext|>
<commit_before>#include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkSphereSource.h" #include "vtkShrinkFilter.h" #include "vtkElevationFilter.h" #include "vtkDataSetMapper.h" #include "vtkActor.h" #include "SaveImage.h" void main( int argc, char *argv[] ) { vtkRe...
<commit_before>#include "mitkAutoCropImageFilter.h" #include "mitkImageCast.h" //#include "itkLinearInterpolateImageFunction.h" //#include <itkBinaryMedianImageFilter.h> #include <itkImageRegionConstIterator.h> #include <itkImageRegionIterator.h> #include <mitkImage.h> #include <vtkLinearTransform.h> #include "mitkTim...
<commit_before>/* * kbiffimap.cpp -- Implementation of class KBiffImap. * Author: Kurt Granroth (granroth@kde.org) * Version: $Id$ */ #include "utils.h" #include "kbiffimap.h" #include <qregexp.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #in...
<commit_before>/**************************************************************************** * Copyright (C) 2012-2015 by Savoir-Faire Linux * * Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> * * ...
<commit_before>#include "stdafx.h" #include "MapEditer.h" #include "MapEditLayer.h" #include "StageInformation.h" #include "Target.h" #include "FileStuff.h" #include "Sling.h" #include "MainScene.h" Scene* MapEditer::createScene() { Scene* scene = Scene::create(); MapEditer* layer = MapEditer::create(); scene->ad...
<commit_before>#ifndef APOLLO_MAKE_FUNCTION_HPP_INCLUDED #define APOLLO_MAKE_FUNCTION_HPP_INCLUDED APOLLO_MAKE_FUNCTION_HPP_INCLUDED #include <apollo/error.hpp> #include <apollo/function_primitives.hpp> #include <apollo/gc.hpp> #include <typeinfo> namespace apollo { namespace detail { void push_function_tag(lua_St...
<commit_before>// lab3.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <queue> #include <iostream> #include <random> #include <Windows.h> using namespace std; queue<int> numbers; const int NUMBER_COUNT = 100; // void GenerateNumbers(LPVOID); void ProcessNumbers(LPVOID c...
<commit_before>#ifndef buffer_inl_h_INCLUDED #define buffer_inl_h_INCLUDED #include "assert.hh" namespace Kakoune { inline char Buffer::byte_at(ByteCoord c) const { kak_assert(c.line < line_count() and c.column < m_lines[c.line].length()); return m_lines[c.line].content[c.column]; } inline ByteCoord Buffer:...
<commit_before>/* * ForageManagerImplementation.cpp * * Created on: Feb 20, 2011 * Author: Anakis */ #include "server/zone/managers/minigames/ForageManager.h" #include "server/zone/managers/loot/LootManager.h" #include "server/zone/managers/resource/ResourceManager.h" #include "server/zone/managers/minigame...
<commit_before>/* * Copyright (C) 2017-present 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 ...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2018. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //==================================================...
<commit_before>#pragma once #include "common.hpp" #include "components/x11/connection.hpp" #include "utils/memory.hpp" LEMONBUDDY_NS struct randr_output { string name; int w = 0; int h = 0; int x = 0; int y = 0; }; using monitor_t = shared_ptr<randr_output>; namespace randr_util { /** * Define monit...
<commit_before>//======================================================================= // Copyright (c) 2014-2020 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>//====================================================================== //----------------------------------------------------------------------- /** * @file iutest_port.hpp * @brief portable * * @author t.shirayanagi * @par copyright * Copyright (C) 2011-2018, Takazumi ...
<commit_before>#include "ClientSocket.hh" #include "Server.hh" #include <signal.h> #include <fstream> #include <random> #include <string> #include <vector> #include <iostream> Server server; void handleExitSignal( int /* signal */ ) { server.close(); } int main( int argc, char** argv ) { signal( SIGINT, handl...
<commit_before>#define THEWIZARDPLUSPLUS_WIZARD_PARSER_PARSER_MACROSES #include "vendor/better-enums/enum_strict.hpp" #include "vendor/range/v3/view/drop.hpp" #include "vendor/range/v3/view/transform.hpp" #include "vendor/fmt/format.hpp" #include "vendor/range/v3/view/chunk.hpp" #include "vendor/range/v3/to_container....
<commit_before>#define THEWIZARDPLUSPLUS_WIZARD_PARSER_PARSER_MACROSES #include "vendor/better-enums/enum_strict.hpp" #include "vendor/range/v3/view/drop.hpp" #include "vendor/range/v3/view/transform.hpp" #include "vendor/fmt/format.hpp" #include "vendor/range/v3/view/chunk.hpp" #include "vendor/range/v3/to_container....
<commit_before>// cinder #include "cinder/app/App.h" #include "cinder/app/RendererGl.h" #include "cinder/gl/gl.h" #include "cinder/Log.h" #include "cinder/qtime/QuickTimeGl.h" using namespace ci; using namespace ci::app; using namespace std; class VidFramesLoader { public: VidFramesLoader(const fs::path& path) : pa...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ldapaccess.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-08 19:22:43 $ * * The Contents of this file are mad...
<commit_before>/* * (C) Copyright 2016 Mirantis 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 by applica...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xsddatatypes.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2006-07-26 08:02:08 $ * * The Contents of this file are m...
<commit_before>/* * Fork a process and delegate open() to it. The subprocess returns * the file descriptor over a unix socket. * * author: Max Kellermann <mk@cm4all.com> */ #include "Client.hxx" #include "Handler.hxx" #include "Protocol.hxx" #include "async.hxx" #include "please.hxx" #include "fd_util.h" #includ...
<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>//===- llvm-profdata.cpp - LLVM profile data tool -------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- OProfileJITEventListener.cpp - Tell OProfile about JITted code ----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/************************************************************************* * * Copyright (c) 2011-2012 Kohei Yoshida * * 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 wit...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Jolla Ltd. ** Contact: Dmitry Rozhkov <dmitry.rozhkov@jollamobile.com> ** ****************************************************************************/ /* This Source Code Form is subject to the terms ...
<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>#ifndef MPU6000_HPP_ #define MPU6000_HPP_ #include <hal.h> #include <sensor/accelerometer.hpp> #include <sensor/gyroscope.hpp> class MPU6000 : public Accelerometer, public Gyroscope { public: MPU6000(SPIDriver *spi); void init() override; accelerometer_reading_t readAccel() override; gyroscop...
<commit_before>//===- include/seec/clang/MappedAST.hpp -----------------------------------===// // // SeeC // // This file is distributed under The MIT License (MIT). See LICENSE.TXT for // details. // //===----------------------------------------------------------------------===// //...
<commit_before>// CxxSwizzle // Copyright (c) 2013-2015, Piotr Gwiazdowski <gwiazdorrr+github at gmail.com> #pragma once #include <algorithm> #include <cstdint> #include <swizzle/detail/utils.h> #include <swizzle/detail/vector_traits.h> namespace swizzle { using float_type = float; using int_type = int32_t;...
<commit_before>#ifndef VSMC_INTERNAL_CONFIG_HPP #define VSMC_INTERNAL_CONFIG_HPP #include <vsmc/internal/compiler.hpp> #ifndef __STDC_CONSTANT_MACROS #define __STDC_CONSTANT_MACROS #endif // #if defined(__clang__) // #ifndef TBB_USE_CAPTURED_EXCEPTION // #define TBB_USE_CAPTURED_EXCEPTION 1 // #endif // #endif #if ...
<commit_before>//============================================================================ // include/vsmc/resample/common.hpp //---------------------------------------------------------------------------- // // vSMC: Scalable Monte Carlo // // This file is distribured under the 2-clauses BSD...
<commit_before>#include "html.h" #include "el_before_after.h" #include "el_text.h" #include "el_space.h" #include "el_image.h" #include "utf8_strings.h" litehtml::el_before_after_base::el_before_after_base(const std::shared_ptr<litehtml::document>& doc, bool before) : html_tag(doc) { if(before) { set_tagName(_t(":...
<commit_before>#include "App.h" int main() { /* ws->getUserData returns one of these */ struct PerSocketData { }; /* Very simple WebSocket echo server */ uWS::App().ws<PerSocketData>("/*", { /* Settings */ .compression = true, .maxPayloadLength = 16 * 1024, /* Hand...
<commit_before><commit_msg>commenting<commit_after><|endoftext|>
<commit_before>//===---- ReleaseDevirtualizer.cpp - Devirtualizes release-instructions ---===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/*! \copyright (c) RDO-Team, 2011 \file rdobase.cpp \author (rdo@rk9.bmstu.ru) \date 11.06.2006 \brief \indent 4T */ // ----------------------------------------------------------------------- PLATFORM #include "utils/platform.h" // ------------------------------------...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: tabletree.hxx,v $ * * $Revision: 1.16 $ * * last change: $Author: kz $ $Date: 2006-10-05 13:06:40 $ * * The Contents of this file are mad...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: charsets.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: hr $ $Date: 2006-06-20 03:22:45 $ * * The Contents of this file are made...
<commit_before>#include "display.h" #include "gdt.h" #include "idt.h" #include "interrupts.h" #include "multiboot.h" #include "ports.h" #include "types.h" extern "C" void kmain(const multiboot::Info* mbinfo, u32 magic) { display::init(); if (magic != multiboot::BOOTLOADER_MAGIC) { // Something went not accord...
<commit_before>//======================================================================= // Copyright (c) 2014-2016 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>//Moose Includes #include "Moose.h" #include "KernelFactory.h" #include "BCFactory.h" #include "MaterialFactory.h" #include "AuxFactory.h" #include "ComputeResidual.h" #include "ComputeJacobian.h" // C++ include files that we need #include <iostream> #include <fstream> // libMesh includes #include "lib...
<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>#include "kl/file_view.hpp" #include <system_error> #include <cassert> struct IUnknown; // Required for /permissive- and WinSDK 8.1 #include <Windows.h> namespace kl { namespace { template <typename NullPolicy> class handle { public: handle(HANDLE h = null()) noexcept : h_{h} {} ~handle() { r...
<commit_before><commit_msg>Update GdiExp.cc<commit_after><|endoftext|>
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named LICENSE that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>#include "fractile.h" #include <algorithm> #include <boost/algorithm/string.hpp> #include "logger.h" #include "plugin_factory.h" #include "lagged_ensemble.h" #include "time_ensemble.h" #include "fetcher.h" #include "radon.h" #include "numerical_functions.h" #include "util.h" namespace himan { names...
<commit_before>/** * @file llfloaterabout.cpp * @author James Cook * @brief The about box from Help->About * * $LicenseInfo:firstyear=2001&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modi...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrPathUtils.h" #include "GrPoint.h" #include "SkGeometry.h" GrScalar GrPathUtils::scaleToleranceToSrc(GrScalar devTol, ...
<commit_before>#include <gtest/gtest.h> #include <gmock/gmock.h> #include "./common/true_spec.h" #include "./common/false_spec.h" using namespace std; class ASpecification : public ::testing::Test { public: true_spec truthy; false_spec falsy; }; TEST_F(ASpecification, SupportsAndOperaion) { ASSERT_TRUE(truthy...
<commit_before>#include <string.h> #include <iostream> #include <cassert> #include <stdlib.h> using namespace std; template <class T> class CachedValue { protected: int valueCount; T values[2]; public: CachedValue(T initialValue) { this->valueCount = 0; put(initialValue); } T& get() { if (valu...
<commit_before>/************************************************************************* * * $RCSfile: droptargetlistener.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: as $ $Date: 2002-07-05 08:00:05 $ * * The Contents of this file are made available subject to the terms of * either of the follo...
<commit_before>#include <SDL.h> #include GLCXX_GL_INCLUDE #include <iostream> #include "glcxx.hpp" using namespace std; #define WIDTH 800 #define HEIGHT 600 shared_ptr<glcxx::Shader> vs; shared_ptr<glcxx::Shader> vs2; shared_ptr<glcxx::Shader> fs; shared_ptr<glcxx::Shader> fs2; shared_ptr<glcxx::Program> program;...
<commit_before>#include <cstdio> #include <cstring> #include <algorithm> #include <vector> using namespace std; #define MAXN 100 #define MAXM 10000 struct edge{ int u,v,w; bool operator < (edge e) const{ return w < e.w; } }e[MAXM]; bool in_tree[MAXM]; // Union - Find int parent[MAXN + 1]; int Find(int x){ ...
<commit_before>/* This file is part of KAddressBook. Copyright (C) 2003 Helge Deller <deller@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public version 2 License as published by the Free Software Foundation. This l...
<commit_before>#include "stdafx.h" #include <assembly64.hpp> uint32_t* OnAMissionFlag; uint8_t* ScriptSpace; uint8_t* m_WideScreenOn; bool IsPlayerOnAMission() { return *OnAMissionFlag && (ScriptSpace[*OnAMissionFlag] == 1); } void Init() { CIniReader iniReader(""); static auto nIniSaveSlot = iniReader.Re...
<commit_before>/* Copyright(c) Microsoft Open Technologies, Inc. All rights reserved. The MIT License(MIT) 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, ...
<commit_before>#include <am/filemapper/detail/PersistImpl.h> NS_IZENELIB_AM_BEGIN PersistImpl::PersistImpl() { mappedData = 0; num_mapped_blocks=0; flags=0; } PersistImpl::~PersistImpl() { close(); } void PersistImpl::roundToPageSize(size_t &size) { const size_t mask = pageSize-1; if (size...
<commit_before>/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved. This file is part of Navitia, the software to build cool stuff with public transport. Hope you'll enjoy and contribute to this project, powered by Canal TP (www.canaltp.fr). Help us simplify mobility and open publ...
<commit_before>#include <b1/session/shared_bytes.hpp> #include <boost/test/unit_test.hpp> using namespace eosio::session; BOOST_AUTO_TEST_SUITE(shared_bytes_tests) BOOST_AUTO_TEST_CASE(make_shared_bytes_test) { static constexpr auto* char_value = "hello world"; static const auto char_length = strlen(char...
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/runtime/browser/xwalk_browser_main_parts_android.h" #include <string> #include "base/android/path_utils.h" #include "bas...
<commit_before>#pragma once #include <cstdint> #include <array> #include <memory> #include <vector> #include <algorithm> #ifdef __EMSCRIPTEN__ #include "SDL2/SDL.h" #else #include "SDL.h" #endif #include "vm/utils.hpp" #include "vm/context.hpp" namespace yagbe { class sdl2_renderer { public: sdl2_renderer(cons...
<commit_before>//===--- PthreadLockChecker.cpp - Check for locking problems ---*- C++ -*--===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...