text
stringlengths
54
60.6k
<commit_before>#include "GHIElectronics_TinyCLR_Devices_Storage.h" #include "../GHIElectronics_TinyCLR_InteropUtil.h" TinyCLR_Result Interop_GHIElectronics_TinyCLR_Devices_Storage_GHIElectronics_TinyCLR_Devices_Storage_Provider_StorageControllerApiWrapper::get_Descriptor___GHIElectronicsTinyCLRDevicesStorageStorageDes...
<commit_before>/* * Copyright (c) 2013-2014 Kajetan Swierk <k0zmo@outlook.com> * * 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 rig...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ #ifndef _Stroika_Foundation_Traversal_IterableFromIterator_inl_ #define _Stroika_Foundation_Traversal_IterableFromIterator_inl_ #include "../Debug/Assertions.h" #include "DelegatedIterator.h" namespace Stroika::Foundation::T...
<commit_before>#include "EntityEditor.hpp" #include <Engine/Component/Animation.hpp> #include <Engine/Component/Physics.hpp> #include <Engine/Component/Mesh.hpp> #include <Engine/Component/Lens.hpp> #include <Engine/Component/Material.hpp> #include <Engine/Component/DirectionalLight.hpp> #include <Engine/Component/Poi...
<commit_before><?hh /* * * ____ _ _ __ __ _ __ __ ____ * | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ * | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | * | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ * |_...
<commit_before>#include "poke.h" #include "registerOverride.h" #include <nds/dma.h> #include <nds/arm9/video.h> #include <cassert> #define VRAM_F_SIZE (16*1024) #define VRAM_G_SIZE (16*1024) #define VRAM_H_SIZE (32*1024) #define VRAM_I_SIZE (16*1024) ITCM_CODE static bool pointerInRange(volatile void *needle, volatil...
<commit_before>#include "HCUBE_Defines.h" #include "Experiments/HCUBE_AtariExperiment.h" #include <boost/foreach.hpp> #include "../../../ale_v0.1/test.hpp" using namespace NEAT; namespace HCUBE { AtariExperiment::AtariExperiment(string _experimentName,int _threadID): Experiment(_experimentName,_threadID), rom_...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFCWS.cpp // @Author : Stone.xin // @Date : 2016-12-22 // @Module : NFCWS // ------------------------------------------------------------------------- #include "NFCWS.h" #include <string....
<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) 2000-2006 Torus Knot Software Ltd Also see acknowledgements in Readme.html This...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>// Copyright (c) 2020 The Orbit 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 <gmock/gmock-matchers.h> #include <gtest/gtest.h> #include <memory> #include <utility> #include "OrbitBase/ThreadPool.h" #inclu...
<commit_before>/** @file @brief Implementation @date 2016 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2016 Razer 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 c...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: atlwindow.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: rt $ $Date: 2005-09-08 18:31:06 $ * * The Contents of this file are mad...
<commit_before>/* * Copyright (C) 2012 The Android Open Source Project * * 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 ...
<commit_before>#ifndef DUNE_STUFF_GRID_PROVIDER_CUBE_HH #define DUNE_STUFF_GRID_PROVIDER_CUBE_HH // dune-common #include <dune/common/parametertree.hh> #include <dune/common/shared_ptr.hh> #include <dune/common/exceptions.hh> #include <dune/common/fvector.hh> // dune-grid #include <dune/grid/utility/structuredgridfac...
<commit_before>// Copyright (c) 2019 Matthew J. Smith and Overkit contributors // License: MIT (http://opensource.org/licenses/MIT) #ifndef OVK_CORE_DISTRIBUTED_REGION_HASH_HPP_INCLUDED #define OVK_CORE_DISTRIBUTED_REGION_HASH_HPP_INCLUDED #include <ovk/core/Array.hpp> #include <ovk/core/ArrayView.hpp> #include <ovk/...
<commit_before>/* This file is part of VoltDB. * Copyright (C) 2008-2012 VoltDB Inc. * * This file contains original code and/or modifications of original code. * Any modifications made by VoltDB Inc. are licensed under the following * terms and conditions: * * VoltDB is free software: you can redistribute it an...
<commit_before>//////////////////////////////////////////////////////////// // // The MIT License (MIT) // // Copyright (c) 2014 stevehalliwell // // 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 So...
<commit_before>// -*- c-basic-offset: 2; related-file-name: "duplicateConservative.h" -*- /* * @(#)$Id$ * * This file is distributed under the terms in the attached INTEL-LICENSE file. * If you do not find these files, copies can be found by writing to: * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300,...
<commit_before>/************************************************************ COSC 501 Elliott Plack 19 NOV 2013 Due 25 NOV 2013 Problem: Create a 1-dimensional array with n elements; get the size of the array as user input (validate!), max size should be 10 (declared as class constan...
<commit_before>class Solution { public: vector<int> twoSum(vector<int>& nums, int target) { vector<int> res; multimap<int,int> nums_map; for(unsigned int i=0; i < nums.size();++i) { nums_map.insert(make_pair(nums.at(i),i)); } for(unsigned int i = 0; i < nu...
<commit_before>/** * Zillians MMO * Copyright (C) 2007-2011 Zillians.com, Inc. * For more information see http://www.zillians.com * * Zillians MMO is the library and runtime for massive multiplayer online game * development in utility computing model, which runs as a service for every * developer to build their ...
<commit_before><commit_msg>editeng: Avoid calling expensive getLineBreak() if possible<commit_after><|endoftext|>
<commit_before>// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #include "SerializerUtils.hpp" namespace armnnSerializer { armnnSerializer::ComparisonOperation GetFlatBufferComparisonOperation(armnn::ComparisonOperation comparisonOperation) { switch (comparisonOperation) ...
<commit_before>//.............................................................................. // // This file is part of the AXL library. // // AXL is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/downloa...
<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 "base/command_line.h" #include "base/prefs/pref_service.h" #include "base/strings/utf_string_conversions.h" #include "chrome/a...
<commit_before>/************************************************************************** The MIT License (MIT) Copyright (c) 2015 Dmitry Sovetov https://github.com/dmsovetov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE** * CONDOR Copyright Notice * * See LICENSE.TXT for additional notices and disclaimers. * * Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department, * University of Wisconsin-Madison, Madison, WI. All Rights Reserved. * No ...
<commit_before>#include "condor_common.h" #include "condor_sockfunc.h" // condor_sockfunc_ex is used by syscall_lib that has minimal // dependency on condor libs. // // make sure that any function included here should not call to // param(). ipv6_interface.cpp and ipv6_hostname.cpp do call to // param() thus never inc...
<commit_before>/* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2003 - 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundation...
<commit_before>/* * Copyright (c) 2007 MIPS Technologies, 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 source code must retain the above copyright * notice, thi...
<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>/* * This file is part of TelepathyQt4 * * Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/> * Copyright (C) 2008 Nokia Corporation * * 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 b...
<commit_before>#include <cassert> #include <iostream> #include <util/PlatformUtils.hpp> #include <util/Mutexes.hpp> #include <PlatformSupport/DOMStringHelper.hpp> #include <PlatformSupport/XalanFileOutputStream.hpp> #include <PlatformSupport/XalanOutputStreamPrintWriter.hpp> #include <XalanSourceTree/XalanSour...
<commit_before>#include <UnitTest/stdafx.h> #include <UnitTest/UnitTest.h> #include <core/smartview/block/block.h> #include <core/smartview/block/blockBytes.h> #include <core/smartview/block/blockStringA.h> #include <core/smartview/block/blockStringW.h> #include <core/smartview/block/blockT.h> namespace blocktest { T...
<commit_before>// Copyright (c) 2017, Joseph Mirabel // Authors: Joseph Mirabel (joseph.mirabel@laas.fr) // // 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...
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> ************** * * VR Juggler is (C) Copyright 1998-2007 by Iowa State University * * Original Authors: * Allen Bierbaum, Christopher Just, * Patrick Hartling, Kevin Meinert, * Carolina Cruz-Neira, Albert Baker * * This libra...
<commit_before> #include "llcp.h" #include "PN532_debug.h" // LLCP PDU Type Values #define PDU_SYMM 0x00 #define PDU_PAX 0x01 #define PDU_CONNECT 0x04 #define PDU_DISC 0x05 #define PDU_CC 0x06 #define PDU_DM 0x07 #define PDU_I 0x0c #define PDU_RR 0x0d uint8_t LLCP::SYMM_PDU[2] = {0, 0};...
<commit_before>/** * Unit Tests for Piezas **/ #include <gtest/gtest.h> #include "Piezas.h" class PiezasTest : public ::testing::Test { protected: PiezasTest(){} //constructor runs before each test virtual ~PiezasTest(){} //destructor cleans up after tests virtual void SetUp(){} //sets up before each test (a...
<commit_before>#include "Ray.h" Ray::Ray(sf::Vector2f const& origin, sf::Vector2f const& direction): m_origin(origin), m_direction(direction), m_intersectionFound(false), m_minT(0), m_obj(nullptr) {} void Ray::intersect(INCollisionable & object) { object.collision(this); } bool Ray::validInte...
<commit_before>#include <QtGui> #include "Renderer.h" const int IdRole = Qt::UserRole; Renderer::Renderer(QWidget *parent) : QWidget(parent) { // Initialize a couple variables hasPattern = false; hasImage = false; antialiased = true; paintedOutline = false; hasImageChanged = false; gridX = 1; gridY = 1...
<commit_before>#include "Settings.h" #include <QDir> #include <QStandardPaths> #include "SimpleCrypt.h" #include "Log.h" #include "ToolBase.h" #include "Exceptions.h" #include "Helper.h" bool Settings::settingsApplicationUserExists() { QStringList default_paths = QStandardPaths::standardLocations(QStandardPaths::App...
<commit_before>// // SonarSRF // Arduino Library for controlling SRF sonar sensors // http://www.arduino.cc/playground/Main/SonarSrf08 // // MIT License // Copyright(c) 2009 Zach Foresta // Copyright(c) 2012 Philipp A. Mohrenweiser // Copyright(c) 2012-2016 Leo Colombaro // #include "SonarSRF.h" /// <summary> /// Ini...
<commit_before>#include <iostream> #include "StringSet.hh" using namespace std; StringSet::StringSet(const std::map<std::string, flt_type> &vocab, bool log_domain) { max_factor_length = 0; for (auto it = vocab.cbegin(); it !=vocab.cend(); ++it) add(it->first, it->second); this->optimize_arcs(&ro...
<commit_before>#ifndef TESTS #error "You shouldn't compile UnitTests.cc without test mode on." #endif #include "UnitTests.h" #include "Bank.h" #include "Printer.h" #include "debug.h" #include "Config.h" #include "Main.h" using namespace std; static void VectorsEqual(vector<PrintState> &lhs, vector<PrintState> &r...
<commit_before> /* * Copyright (c) 2012 Karl N. Redgate * * 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, m...
<commit_before>#include <v8.h> #include <node.h> #include <node_events.h> #include <zmq.h> #include <assert.h> #include <stdio.h> #include <string.h> #include <errno.h> using namespace v8; using namespace node; namespace zmq { static Persistent<Integer> p2p_symbol; class Context : public EventEmitter { public: ...
<commit_before>#include <Arduino.h> #include "Lights.h" #include "Adafruit_NeoPixel.h" typedef uint32_t color; Adafruit_NeoPixel *stripA; Adafruit_NeoPixel *stripB; #define MAD_LIGHTS_LOGGING 1 Lights::Lights( int pA, int pB, int countLights ) { // initialize variables pinA = pA; pinB = pB; numLights_total ...
<commit_before>#ifndef MS_RTC_RTP_PACKET_HPP #define MS_RTC_RTP_PACKET_HPP #include "common.hpp" #include "Utils.hpp" #include "RTC/RtpDictionaries.hpp" #include <map> namespace RTC { // Max MTU size. constexpr size_t MtuSize{ 1500 }; class RtpPacket { public: /* Struct for RTP header. */ struct Header { ...
<commit_before>#include "ChunkPatcher.h" #include "../stringtools.h" #include <assert.h> ChunkPatcher::ChunkPatcher(void) : cb(NULL), require_unchanged(true) { } void ChunkPatcher::setCallback(IChunkPatcherCallback *pCb) { cb=pCb; } bool ChunkPatcher::ApplyPatch(IFile *file, IFile *patch) { patch-...
<commit_before>#define __STDC_FORMAT_MACROS #include <stdio.h> #include <iostream> #include <signal.h> #include <time.h> #include <fcntl.h> #include <sys/stat.h> #include <algorithm> #include <unistd.h> #include <getopt.h> extern "C" { #include "lua.h" #include "lualib.h" #include "lauxlib.h" #include "lpeg.h" } #in...
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved. #include <string> #include <fstream> #include <streambuf> #include <sstream> #include <map> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <proc/readproc.h> #include <boost/lexical_cast.hpp> #include "osquery/core.h" #in...
<commit_before>#ifndef TIME_UTILS_HPP_INCLUDED #define TIME_UTILS_HPP_INCLUDED /** @file time_utils.hpp @author François Becker MIT License Copyright (c) 2015-2017 François Becker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentatio...
<commit_before>// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <X11/cursorfont.h> #include <X11/Xcursor/Xcursor.h> #include "CursorResourceLinux.h" #include "core/Engine.h" #include "core/linux/WindowLinux.h" #include "utils/Log.h" namespace ouzel { namespace input { ...
<commit_before>#include <iostream> #include <string> #include <regex> double interceptXAxis(double m, double c) { /// /// A function to calculate the intercept on the x-axis of a straight line /// return c/m; } int main(int argc, char *argv[]) { // string to decide what to do // TODO make it 'human' so t...
<commit_before>#include <iostream> #include <string> #include <iomanip> #include <stack> #include <limits> #include <algorithm> #include <cmath> #include <cstdint> #include <cassert> #include "matrix.h" #ifdef DEBUG #define LOG(x) std::cerr << x #else #define LOG(x) #endif using namespace std; // Largest ne...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTextureStripAtlas.h" #include "GrContext.h" #include "GrContextPriv.h" #include "GrSurfaceContext.h" #include "SkGr.h" #include "SkPixelRef.h" #incl...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the $MODULE$ of the Qt Toolkit. ** ** $TROLLTECH_DUAL_EMBEDDED_LICENSE$ ...
<commit_before>// Copyright (c) 2011 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/path_service.h" #include "base/task.h" #include "chrome/browser/ui/views/html_dialog_view.h" #include "chrome/common/chr...
<commit_before>/* * Copyright (c) 2013, The University of Oxford * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, ...
<commit_before>#include <QString> #include <QDebug> #include "qdeclarativeorganizeritem_p.h" #include "qorganizeritemdetails.h" #include "qdeclarativeorganizeritemdetail_p.h" #include "qdeclarativeorganizeritemmetaobject_p.h" QTM_USE_NAMESPACE static OrganizerItemDetailNameMap qt_organizerItemDetailNameMap[] = { {...
<commit_before>// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availa...
<commit_before>/* * Copyright 2008-2010 Google 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 applicab...
<commit_before>#include <iostream> #include <string> using namespace std; int atoi(char a) { return (int)(a - 48); } char itoa(int i) { return (char)(i + 48); } string append(string s,string maxs) { string a; for(int i = 0;i < maxs.length() - s.length();i++) a += "0"; a...
<commit_before>#include "nxtStringPropertyConverter.h" using namespace qReal::robots::generators; using namespace converters; using namespace parts; NxtStringPropertyConverter::NxtStringPropertyConverter(Variables const &variables , parts::Subprograms &subprograms) : mVariables(variables) { QString cons...
<commit_before>// ======================================================================== // // Copyright 2009-2017 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before> // Copyright (c) 2012, 2013 Pierre MOULON // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include "CppUnitLite/TestHarness.h" #include "tes...
<commit_before>/* * AccumulateLayer.cpp * * Created on: Nov 18, 2013 * Author: pschultz */ #include "AccumulateLayer.hpp" namespace PV { AccumulateLayer::AccumulateLayer(const char * name, HyPerCol * hc, int numChannels) { initialize_base(); initialize(name, hc, numChannels); } AccumulateLayer::Acc...
<commit_before>// Copyright (c) 2011 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 "native_client/src/shared/ppapi_proxy/browser_ppp_input_event.h" #include "native_client/src/include/nacl_scoped_ptr.h" #incl...
<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 "media/audio/audio_output_controller.h" #include "base/bind.h" #include "base/debug/trace_event.h" #include "base/message_loo...
<commit_before>// Copyright 2015 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 "sky/engine/config.h" #include "sky/engine/core/painting/LayoutRoot.h" #include "sky/engine/core/dom/Document.h" #include "sky/en...
<commit_before>/* -------------------------------------------------------------------------- * * Simbody(tm) Example: Long Pendulum * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating fr...
<commit_before>#include "fourtaxon.hpp" using namespace std; /*----------------------------------------------------------------------------- | Allocates a two-dimensional array of doubles as one contiguous block of | memory the dimensions are f by s. The array is set up so that each | successive row follows the pre...
<commit_before>#include "SH_OpenAL.h" #include "alloca_def.h" #include <assert.h> //#define LOGGING #define SAMPLE_RATE 44100 ALCint g_attrList[] = { ALC_FREQUENCY, SAMPLE_RATE, 0, 0 }; #define CHECK_AL_ERROR() { assert(alGetError() == AL_NO_ERROR); } CSH_OpenAL::CSH_OpenAL() : m_context(m_device, g_attrList)...
<commit_before>/* RawSpeed - RAW file decoder. Copyright (C) 2009-2014 Klaus Post Copyright (C) 2014-2015 Pedro Côrte-Real 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 Foundati...
<commit_before>#include "description.h" #include <sstream> namespace possumwood { namespace { bool starts_with(const std::string& str, const std::string& prefix) { if(str.length() < prefix.length()) return false; auto it1 = str.begin(); auto it2 = prefix.begin(); while(it2 != prefix.end()) { if(*it1 != *i...
<commit_before>#include "Button.h" void Button::setState(State state) { state_ = state; } void Button::fireOnClicked() { onClicked_(); } void Button::transition() { switch (getState()) { case State::LEFT: if (getShape().mouseOver && !getShape().leftPressed) { state_ = State::MOUSE...
<commit_before>#include "binary-cache-store.hh" #include "filetransfer.hh" #include "globals.hh" #include "nar-info-disk-cache.hh" namespace nix { MakeError(UploadToHTTP, Error); class HttpBinaryCacheStore : public BinaryCacheStore { private: Path cacheUri; struct State { bool enabled = true; ...
<commit_before>// // testing a subd idea // #include <stdlib.h> #include <iostream> #include <cctype> // std::tolower #include <algorithm> #include <vector> // in project properties, add "../include" to the vc++ directories include path #include "geometric.h" #include "glwin.h" // minimal opengl for windows ...
<commit_before>/* * SIV Mode Encryption * (C) 2013,2017 Jack Lloyd * (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/siv.h> #include <botan/block_cipher.h> #include <botan/cmac.h> #include <botan/internal/poly_dbl.h> #inclu...
<commit_before>#if 1 #include <osgDB/ReadFile> #include <osgViewer/Viewer> #include <osgGA/TrackballManipulator> #include <osgGA/AnimationPathManipulator> #include <iostream> void singleWindowMultipleCameras(osgViewer::Viewer& viewer) { osg::GraphicsContext::WindowingSystemInterface* wsi = osg::GraphicsContext::g...
<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: namedvaluecollection.hxx,v $ * $...
<commit_before>/* * Copyright 2009-2019 The VOTCA Development Team * (http://www.votca.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 obtain a copy of the License at * *...
<commit_before>/************************************************************************* * * $RCSfile: accessibleeventnotifier.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: vg $ $Date: 2003-05-19 12:57:08 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>#include "torrentdetailscontentview.h" #include <QMenu> #include <QFileInfo> #include <QDir> #include <QFocusEvent> #include <QApplication> #include "utilities/utils.h" #include "utilities/filesystem_utils.h" #include "torrentcontentmodel.h" #include "global_functions.h" #include <utility> TorrentDeta...
<commit_before>/* * Copyright 2009-2017 The VOTCA Development Team (http://www.votca.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 obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>// Copyright 2018 The Amber 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 applicabl...
<commit_before>/* js_utils.cc Jeremy Barnes, 21 July 2010 Copyright (c) 2010 Datacratic. All rights reserved. Implementation of Javascript utility functions. */ #include "js_utils.h" #include "js_value.h" #include <cxxabi.h> #include "jml/arch/demangle.h" #include "jml/arch/exception_internals.h" #include "...
<commit_before>#include <FImage.h> #include <stdint.h> using namespace FImage; Var x, y, c; Func hot_pixel_suppression(Func input) { Expr max = Max(Max(input(x-2, y), input(x+2, y)), Max(input(x, y-2), input(x, y+2))); Expr min = Min(Min(input(x-2, y), input(x+2, y)), Mi...
<commit_before>#include <omp.h> #include <stdlib.h> #include <iostream> #include <mutex> #include <thread> #include <queue> #include <condition_variable> using namespace std; const int SCALE = 1500; const int W = SCALE*2; const int H = SCALE; const int T = SCALE*2; double field[H][W]; double field1[H][W]; const in...
<commit_before>/****************************************************************/ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* All contents are licensed under LGPL V2.1 */ /* See LICENSE for full r...
<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 Unless required by ap...
<commit_before>// Filename: pStatClientImpl.cxx // Created by: drose (23Dec04) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda ...
<commit_before>/*************************************************************************/ /* godot.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>#include "Halide.h" using namespace Halide; #include <image_io.h> #include <iostream> #include <limits> #include <sys/time.h> using std::vector; double now() { struct timeval tv; gettimeofday(&tv, NULL); static bool first_call = true; static time_t first_sec = 0; if (first_call)...
<commit_before>// This file is part of OpenMVG, an Open Multiple View Geometry C++ library. // Copyright (c) 2016 Pierre MOULON. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.o...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercial...
<commit_before>/* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Written (W) 2011-2012 Heiko Strathmann * Co...