text
stringlengths
54
60.6k
<commit_before>// SimplePackPE.cpp : Defines the entry point for the console application. // #include "includes.h" #include "loader.h" int StubEP() { stub::PSTUB_DATA pStubData; // get address of STUB_DATA __asm{ jmp __data_raw_end __data_raw: nop // <-- packer will write RVA of stub d...
<commit_before>#include <benchmark/benchmark.h> #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" #pragma GCC diagnostic ignored "-Wdouble-promotion" #include <flat_hash_map.hpp> #include <sparsehash/dense_hash_map> #pragma GCC diagnostic pop #include <random> #include <unordered_map> #include <util...
<commit_before>// Copyright (c) 2010 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 <arpa/inet.h> #include <netinet/tcp.h> #include <stdarg.h> #include <sys/socket.h> #include <sys/types.h> #include <sslt.h> ...
<commit_before>#include <iostream> using namespace std; // Basics of pointers in C++ void ChangeValue(int); void ChangePointer(int *); void ChangeTwoPointers(int *, int *); int main(int argc, char* argv[]) { int x = 5, y = 100; // normal int variables // A "pointer" is a special variable that "points" to ano...
<commit_before>#include "Kernel.h" #include "Graphics.h" #include "OS.h" #include "Log.h" #include "transitions/fade.h" #include "browsers/mysqlbrowser.h" #include "IPC/dbus.h" #include <portable/Time.h> #include <portable/Process.h> #include <cstdlib> #include <cstdio> #include <cstring> #include <ctype.h> #include ...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<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 COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ...
<commit_before>/* * Copyright © 2010 Intel Corporation * * 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, mod...
<commit_before>// Scintilla source code edit control /** @file LexLua.cxx ** Lexer for Lua language. ** ** Written by Paul Winwood. ** Folder by Alexey Yutkin. ** Modified by Marcos E. Wurzius & Philippe Lhoste **/ #include <stdlib.h> #include <string.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> ...
<commit_before>#include <QtPlugin> \ #include "animatedtilesplugin.h" #include "animatedtilesitem.h" AnimatedTilesPlugin::AnimatedTilesPlugin() { setName("AnimatedTiles"); //This should not be an advertized plugin until it is implemented //setRole("animatedTiles"); } Q_EXPORT_PLUGIN2(animatedTiles, Anim...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2012 Anton Chernov <chernov.anton.mail@gmail.com> // Copyright 2012 ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (info@qt.nokia.com) ** ** GNU Lesser General Public License Usage ** ** This file may ...
<commit_before>#ifndef __STRESS_CLIENT_PROTOCOLS_RETHINKDB_PROTOCOL_HPP__ #define __STRESS_CLIENT_PROTOCOLS_RETHINKDB_PROTOCOL_HPP__ #include <assert.h> #include <errno.h> #include <netdb.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <sys/socket.h> #include "query_language....
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "query.h" #include <vespa/searchlib/parsequery/stackdumpiterator.h> #include <vespa/vespalib/objects/visit.hpp> #include <cassert> namespace search::streaming { void QueryConn...
<commit_before> #include "Module.h" namespace HttpServer { Module::Module(): lib_handle(nullptr) { } Module::Module(const std::string &libPath): lib_handle(nullptr) { open(libPath); } Module::Module(const Module &module) : lib_handle(module.lib_handle) { } Module::Module(Module &&module) : lib_ha...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the ...
<commit_before>/* Copyright (C) 2016-2019 INRA * * 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, merg...
<commit_before>class JointUtils { public: JointUtils (){ // Atlas: // Note: ordering here MUST match that in AtlasControlTypes.h *********************** atlas_joint_names = {"back_bkz", "back_bky", "back_bkx", "neck_ay", "l_leg_hpz", "l_leg_hpx", "l_leg_hpy", "l_leg_kny", "l_leg_aky", "...
<commit_before><commit_msg>vcl: Fix several coordinates calculations<commit_after><|endoftext|>
<commit_before><commit_msg>Modify formatting for textureReferences<commit_after><|endoftext|>
<commit_before>/* * This file is part of the UnTech Editor Suite. * Copyright (c) 2016 - 2018, Marcus Rowe <undisbeliever@gmail.com>. * Distributed under The MIT License: https://opensource.org/licenses/MIT */ #include "filesystemwatcher.h" #include "abstractproject.h" #include "abstractresourceitem.h" #include "m...
<commit_before>#include "bindings-gfx.h" #include "../luaapi/types.h" #include "../luaapi/macros.h" #include "../luaapi/classes.h" #include "util/log.h" #ifndef DEDICATED_ONLY #include "CViewport.h" #include "../gfx.h" #endif #include <cmath> #include <iostream> #include "gusanos/allegro.h" using std::cerr; using s...
<commit_before><commit_msg>Fix replace INVOKE_PROPERTYPUT, put INVOKE_PROPERTYPUTREF instead<commit_after><|endoftext|>
<commit_before>#include <openrave_ompl_bridge/OMPLPlannerRRTConnect.h> #include <ompl/base/spaces/RealVectorStateSpace.h> using namespace OpenRAVE; namespace openrave_ompl_bridge { OMPLPlannerRRTConnect::OMPLPlannerRRTConnect(OpenRAVE::EnvironmentBasePtr penv) : OpenRAVE::PlannerBase(penv), state_space_(new...
<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) 2012 Viktor Gal * Copyright (C)...
<commit_before>#ifndef INCLUDED_MSIHELPER_HXX #define INCLUDED_MSIHELPER_HXX #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <msiquery.h> #include <string> /** Get the value of the named property @param handle [in] a valid msi handle. @param name [in] the name of the property. @p...
<commit_before>/** * Copyright (c) 2016 zScale Technology GmbH <legal@zscale.io> * Authors: * - Paul Asmuth <paul@zscale.io> * * This program is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License ("the license") as * published by the Free Software...
<commit_before>#include "bct.h" #include <cmath> #include <cstdio> #include <gsl/gsl_matrix.h> #include <gsl/gsl_vector.h> /* * Returns a binary copy of the given vector. */ gsl_vector* bct::binary(const gsl_vector* v) { gsl_vector* bv = gsl_vector_calloc(v->size); for (int i = 0; i < v->size; i++) { if (std::ab...
<commit_before>#include "ExponentialRand.h" #include "UniformRand.h" #include "../BasicRandGenerator.h" template < typename RealType > String ExponentialRand<RealType>::Name() const { return "Exponential(" + this->toStringWithPrecision(this->GetRate()) + ")"; } template < typename RealType > double ExponentialRan...
<commit_before>#include <Wire.h> #include <EEPROM.h> #include <Arduino.h> #include <CmdMessenger.h> #include <Adafruit_PWMServoDriver.h> #define NUM_TELESCOPES 3 #define NUM_SERVOS 8 #define MOVE_WAIT_TIME 800 #define SWITCH_TELE0 2 #define SWITCH_TELE1 3 #define SWITCH_TELE2 4 #define OE_PIN...
<commit_before>/* -*- mode: c++; c-basic-offset:4 -*- commands/importcertificatescommand.cpp This file is part of Kleopatra, the KDE keymanager Copyright (c) 2007, 2008 Klarälvdalens Datakonsult AB Kleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU Gene...
<commit_before>/* This file is part of Akregator. Copyright (C) 2008 Frank Osterfeld <osterfeld@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 the L...
<commit_before>XD<commit_msg>fixed smooth normal computation algorithm<commit_after>#include "CSmoothNormalGenerator.h" #include <iostream> #include <algorithm> #include <array> namespace irr { namespace asset { static inline bool operator<(uint32_t lhs, const IMeshManipulator::SSNGVertexData& rhs) { return ...
<commit_before>#include "CSmoothNormalGenerator.h" #include <iostream> #include <algorithm> #include <array> namespace irr { namespace asset { static inline bool operator<(uint32_t lhs, const IMeshManipulator::SSNGVertexData& rhs) { return lhs < rhs.hash; } static inline bool operator<(const IMeshManipulator::SSNGV...
<commit_before>// generic C #include <cassert> #include <cstdlib> // Catch2 #include <catch.hpp> // MIPT-MIPS modules #include "../bpu.h" TEST_CASE( "Initialization: WrongParameters") { // Check failing with wrong input values CHECK_THROWS_AS( BaseBP::create_bp( "saturating_three_bits", 128, 16), BPInvalidMo...
<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 (c) 2018 The nanoFramework project contributors // See LICENSE file in the project root for full license information. // #include <ssl.h> #include <nanoPAL.h> #include "mbedtls.h" int ssl_pending_internal( int sd ) { (void)sd; int avail = 0; //mbedTLS_NFContext* context= (m...
<commit_before><commit_msg>Simplify some code that loops over all pixels of a bitmap.<commit_after><|endoftext|>
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#ifndef DUNE_DETAILED_DISCRETIZATIONS_DISCRETEFUNCTION_LOCAL_HH #define DUNE_DETAILED_DISCRETIZATIONS_DISCRETEFUNCTION_LOCAL_HH // dune-fem-tools includes, should be removed in the end! //#include <dune/fem-tools/grid/entity.hh> namespace Dune { namespace DetailedDiscretizations { namespace DiscreteF...
<commit_before>/* * Copyright 2007-2018 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>#ifndef DUNE_FUNCTIONALS_DISCRETEFUNCTIONSPACE_FINITEELEMENT_HH #define DUNE_FUNCTIONALS_DISCRETEFUNCTIONSPACE_FINITEELEMENT_HH // dune-fem includes #include <dune/fem/space/lagrangespace.hh> // dune-functionals includes #include <dune/functionals/common/localbasefunctionprovider.hh> namespace Dune { ...
<commit_before>#ifndef UTIL_VARIANT_HPP #define UTIL_VARIANT_HPP #include <utility> #include <typeinfo> #include <type_traits> #include <algorithm> // std::move/swap #include <stdexcept> // runtime_error #include <new> // operator new #include <cstddef> // size_t #include <iosfwd> #ifdef NDEBUG #define VARIANT_INLIN...
<commit_before>/** * \file * \brief InterruptUnmaskingLock class header * * \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 ...
<commit_before>#pragma warning (disable:4996) #define WIN32_LEAN_AND_MEAN #pragma comment (lib, "Shlwapi.lib") #include <Windows.h> #include <Shlwapi.h> #include <unordered_map> #include <mutex> #include <queue> using namespace std; #define BUF_SIZE MAX_PATH * 3 long long CurrentTime() { long long t; GetSyst...
<commit_before>/** * Copyright (c) 2017 Neon Edge Game * File Name: Player.cpp * Header File Name: Player.h * Class Name: Player * Objective: manages the behavior of some aspects of the player. */ #include "Player.h" #include "Projectile.h" #include <assert.h> /** Objective: constructor of the class Player....
<commit_before>// This file is part of the dune-hdd project: // http://users.dune-project.org/projects/dune-hdd // Copyright holders: Felix Albrecht // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_HDD_LINEARELLIPTIC_TESTCASES_ESV2007_HH #define DUNE_HDD_LINEARELLIPTIC_TEST...
<commit_before>#pragma warning (disable:4996) #define WIN32_LEAN_AND_MEAN #pragma comment (lib, "Shlwapi.lib") #include <Windows.h> #include <Shlwapi.h> #include <unordered_map> #include <mutex> #include <queue> using namespace std; #define BUF_SIZE MAX_PATH * 3 long long CurrentTime() { long long t; GetSys...
<commit_before>#include <cstdio> #include <cstddef> #include <cstring> #include <cmath> #include <cctype> // Tries to parse a floating point number located at s. // // s_end should be a location in the string where reading should absolutely // stop. For example at the end of the string, to prevent buffer overflows. //...
<commit_before>#ifndef UTILITY_HPP # define UTILITY_HPP #include <cstddef> #include <type_traits> namespace generic { // as_const template<typename T> constexpr inline T const& as_const(T& t) { return t; } // contains template <class Container, class Key> inline bool contains(Container const& c, Key const& key) { ...
<commit_before>#ifndef SIMPLE_WEB_UTILITY_HPP #define SIMPLE_WEB_UTILITY_HPP #include "status_code.hpp" #include <atomic> #include <iostream> #include <memory> #include <string> #include <unordered_map> namespace SimpleWeb { inline bool case_insensitive_equal(const std::string &str1, const std::string &str2) noexce...
<commit_before>#include "dg/analysis/ReachingDefinitions/SemisparseRda.h" #include "dg/llvm/analysis/ReachingDefinitions/ReachingDefinitions.h" #include "LLVMRDBuilder.h" #include "LLVMRDBuilderDense.h" #include "LLVMRDBuilderSemisparse.h" namespace dg { namespace analysis { namespace rd { LLVMReachingDefinitions::~...
<commit_before>#include "videosourcefactory.h" #include "iobserver.h" #include "iobservable.h" #include <thread> #include <chrono> #include <iostream> #include <cstring> #include <fstream> #include <vector> gg::Device device; gg::ColourSpace colour; size_t test_duration; // seconds float frame_rate_to_check; std::stri...
<commit_before>/* * * Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker 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, ...
<commit_before>#include <stdio.h> #include "bobuniverse.h" #include <vector> #include <stdlib.h> #include <time.h> #define INITIALDISTANCE 60 #define SETPOINT 30 #define AUTOMATICSTOP 1000 #define GENERATIONS 200 #define INDIVIDUALS 40 #define CROMO 4 #define GENES 4 #define KEEP 6 #define FLOATADJUST 10000000.0 #defi...
<commit_before>#ifndef ENTT_REGISTRY_HPP #define ENTT_REGISTRY_HPP #include <tuple> #include <vector> #include <bitset> #include <utility> #include <cstddef> #include <iterator> #include <cassert> #include <type_traits> #include "sparse_set.hpp" #include "ident.hpp" namespace entt { template<typename, std::size_t...
<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>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/mrs04....
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_recovery_ffdc_occ....
<commit_before>/* * copyright: (c) RDO-Team, 2011 * filename : array.cpp * author : * date : 02.05.11 * bref : * indent : 4T */ // ====================================================================== PCH #include "rdo_lib/rdo_runtime/pch.h" // ========================================...
<commit_before>/* * A auto-growing buffer you can write to. * * author: Max Kellermann <mk@cm4all.com> */ #include "growing_buffer.hxx" #include "pool.hxx" #include "util/ConstBuffer.hxx" #include "util/WritableBuffer.hxx" #include <assert.h> #include <string.h> GrowingBuffer::Buffer * GrowingBuffer::Buffer::New...
<commit_before>/******************************************************************* * Driver-Programm für den Nelder-Mead Optimierungsalgorithmus. * * Autor: Sonja Biedermann, a1402891 OPS WS15 7/4 * * * * Führt die Optimierung durc...
<commit_before>#include "CmdSession.h" #ifdef ARGP_FOUND #include <string> #include <memory> #include <cstdlib> #include <SmurffCpp/Version.h> #include <SmurffCpp/Configs/Config.h> #include <SmurffCpp/Configs/NoiseConfig.h> // !!! DO NOT CHANGE ORDER OF INCLUDES (<algorithm>, <argp.h>)!!! // https://stackoverflow.c...
<commit_before>#include "Library.h" #include "ui_Library.h" #include <QFileDialog> #include <QInputDialog> #include <QMessageBox> #include <QDebug> #include <QDirIterator> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/info_parser.hpp> #include <boost/property_tree/xml_parser.hpp> #include <c...
<commit_before> #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules #include "cPacket_NamedEntitySpawn.h" void cPacket_NamedEntitySpawn::Serialize(AString & a_Data) const { short CurrentItem = m_CurrentItem; assert(CurrentItem > 0); if (CurrentItem <= 0) ...
<commit_before>#include "RayCast.h" #include "Application.h" #include "ModuleCamera3D.h" #include "ComponentMeshRenderer.h" #include "ComponentTransform.h" #include "moduleImGui.h" RayCast::RayCast() { } void RayCast::Update() { if (ImGui::IsMouseClicked(0) && App->input->IsMouseInWindow() == false) { int width =...
<commit_before>/* RawSpeed - RAW file decoder. Copyright (C) 2009-2014 Klaus Post Copyright (C) 2014 Pedro Côrte-Real Copyright (C) 2017-2018 Roman Lebedev 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>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/eval/onnx/onnx_wrapper.h> #include <vespa/eval/eval/tensor_spec.h> #include <vespa/eval/eval/value_codec.h> #include <vespa/eval/eval/fast_value.h> #include <vespa/eval/eval/test/test...
<commit_before>#include <sl.h> #include <push.h> #include "NvidiaGpu.h" #include <hwinfo.h> #include "NvThermalDiode\NvThermalDiode.h" #include "nvapi.h" BYTE GfCoreFamily = 0; LONG m_dwDiodeGainMul; LONG GetDiodeGainMul( DWORD coreFamily ); INT32 *displayHandles; BOOLEAN GfInitialized; BOOLEAN InitGeForce() {...
<commit_before>/******************************************************************************\ * ___ __ * * /\_ \ __/\ \ * * \//\ \ /\_\ \ \____ ___ _____ _____ __ ...
<commit_before>/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * Copyright (C) 2013-2015 Richard Hughes <richard@hughsie.com> * * Most of this code was taken from Zif, libzif/zif-transaction.c * * Licensed under the GNU Lesser General Public License Version 2.1 * * This library is f...
<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 "ash/system/user/tray_user.h" #include "ash/shell.h" #include "ash/system/tray/system_tray_delegate.h" #include "ash/system/t...
<commit_before>#include "Slider.h" using namespace ci; using namespace ci::app; using namespace std; using namespace MinimalUI; int Slider::DEFAULT_HEIGHT = UIElement::DEFAULT_HEIGHT; int Slider::DEFAULT_WIDTH = UIController::DEFAULT_PANEL_WIDTH - UIController::DEFAULT_MARGIN_LARGE * 2; int Slider::DEFAULT_HANDLE_HAL...
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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>/* * SchemeSmobAV.c * * Scheme small objects (SMOBS) for attention values. * * Copyright (c) 2008,2009 Linas Vepstas <linas@linas.org> */ #ifdef HAVE_GUILE #include <libguile.h> #include <opencog/atomspace/AttentionValue.h> #include <opencog/guile/SchemeSmob.h> using namespace opencog; /* ====...
<commit_before>#include "apfMesh.h" #include "apf.h" #include <PCU.h> #include <gmi.h> namespace apf { static void intersect( std::set<int>& a, std::set<int> const& b) { for (std::set<int>::iterator it = a.begin(); it != a.end();) { if ( ! b.count(*it)) a.erase(*(it++)); else ++i...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2015 Paul Asmuth * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public License along with...
<commit_before>/************************************************************************* * * $RCSfile: Filter.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2003-03-25 18:01:15 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before><commit_msg>FIX: forgot ;<commit_after><|endoftext|>
<commit_before>// C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. // // Simple example of use of Producer::RenderSurface + KeyboardMouseCallback + SceneView // example that provides the user with control over view position with support for // enabling the osgDB::DatabasePager as required by the Pag...
<commit_before>// Copyright (c) 2010 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/chromeos/setting_level_bubble_view.h" #include <string> #include "base/logging.h" #include "third_party/skia...
<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>// Copyright 2013 Sean McKenna // // 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 ...
<commit_before>#include "countdecimaldigit.h" #include "digitslut.h" #include "test.h" // Additional count number of digit pass // Use lookup table of two gDigitsLut void u32toa_countlut(uint32_t value, char* buffer) { unsigned digit = CountDecimalDigit32(value); buffer += digit; *buffer = '\0'; cons...
<commit_before>/* * * Copyright 2017 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
<commit_before>#include <cmath> #include <cstdio> using namespace std; class Point { public: double x,y; Point() { x = 0; y = 0; } Point(double _x, double _y) { x = _x; y = _y; } }; inline int sgn(double x) { return (x < 0) ? -1 : 1; } int intersectLineCircle(Point a, Point...
<commit_before>#include "Lifter.h" #include "../RobotMap.h" #include "../Commands/ControlLifter.h" Lifter::Lifter() : Subsystem("Lifter") { m_cLiftMotor = new CANTalon(LIFTER); m_cLiftMotor->ConfigLimitMode(CANTalon::kLimitMode_SwitchInputsOnly); m_cLiftMotor->ConfigNeutralMode(CANTalon::kNeutralMode_Brake); m_cL...
<commit_before>// // ofx3DPro.cpp // // Copyright (c) 2013 Patricio Gonzalez Vivo <http://patriciogonzalezvivo.com> // // #include "ofx3DPro.h" ofx3DPro::ofx3DPro(): globalAmbientColor(0.25, 0.25, 0.25), selectedLigth("NULL") { guiTemplate = new ofxUISuperCanvas(ofToUpper(getSystemName())); guiTemplate->set...
<commit_before>// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/iat_patch.h" #include "base/logging.h" namespace iat_patch { struct InterceptFunctionInformation { bool finishe...
<commit_before>/************************************************************************* > Author: Wayne Ho > Purpose: TODO > Created Time: Fri Apr 17 16:32:22 2015 > Mail: hewr2010@gmail.com ************************************************************************/ #include "argparse/macro-argparse-jquery.hh" #i...
<commit_before>/* Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation t...
<commit_before>#define _SECURE_SCL 0 #define _SCL_SECURE_NO_WARNINGS #include <iostream> #include <vector> #include <fstream> #define BOOST_DISABLE_ASSERTS #include <boost/program_options/cmdline.hpp> #include <boost/program_options/options_description.hpp> #include <boost/program_options/parsers.hpp> #include <boost/...
<commit_before>#ifndef HMLIB_RANDOM_XORSHIFT #define HMLIB_RANDOM_XORSHIFT 100 # #include<limits> namespace hmLib{ /*! @brief Random engine class using algorithm XOrShift. This random value generating algorithm is faster than mt, and generating better random sequences than linear congruential engines. @tparam resul...
<commit_before>/* * C S O U N D * * L I C E N S E * * This software 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 2.1 of the License, or (at your option) any later version. *...
<commit_before>/* Copyright (c) 2013, Project OSRM, Dennis Luxen, others 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, this list...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2008 Ulrich von Zadow // // 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; either // version 2 of the Li...
<commit_before>#include "lcf/dbstring.h" #include <unordered_map> #include <memory> #include <iostream> namespace lcf { constexpr DBString::size_type DBString::npos; alignas(DBString::size_type) constexpr char DBString::_empty_str[sizeof(size_type)]; struct DBStringData { using size_type = DBString::size_type; si...
<commit_before>#include "ArchiveWriter.h" #include "BigFix/DataRef.h" #include "BigFix/DateTime.h" #include "BigFix/Error.h" #include "BigFix/Number.h" #include "BigFix/Stream.h" namespace BigFix { ArchiveWriter::ArchiveWriter( Stream& output ) : m_output( output ) { } void ArchiveWriter::Directory( const char* name...
<commit_before>/* * Open Source Movement Analysis Library * Copyright (C) 2016, Moveck Solution 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...