text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: drviewsh.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: kz $ $Date: 2008-04-03 15:18:57 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * $RCSfile: showview.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2004-05-10 14:37:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#include "cinder/app/AppNative.h" #include "cinder/gl/gl.h" using namespace ci; using namespace ci::app; using namespace std; class RetinaSampleApp : public AppNative { public: void prepareSettings( Settings *settings ) override; void setup(); void mouseDrag( MouseEvent event ); void keyDown( Key...
<commit_before>/* * Copyright (c) 2016, Nils Asmussen * All rights reserved. * * Redistribution and use in source and binary forms, with or without * * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in bin...
<commit_before>#include <chrono> #include <random> #include <array> #include <opencv2/core/core.hpp> #include <opencv2/ocl/ocl.hpp> #include "opencl.hpp" #include "utility.hpp" #include "hog.pencil.h" #include "HogDescriptor.h" #include "hog.clh" void time_hog( const std::vector<carp::record_t>& pool, const std::vec...
<commit_before>// ======================================================================== // // Copyright 2009-2019 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>#include "server_engine.h" #include <SFML/Graphics.hpp> #include <cotsb/logging.h> #include "map.h" #include "map_tcp_serialiser.h" #include "player_tcp_serialiser.h" #include "game_object_tcp_serialiser.h" #include "game_object.h" #include "tile.h" #include "profile.h" #include "map_lua_deserialiser....
<commit_before>#include <SFML/Graphics.hpp> #include <Astra/Astra.h> #include <AstraUL/AstraUL.h> #include "../../common/LitDepthVisualizer.h" #include <chrono> #include <iostream> #include <iomanip> #include <key_handler.h> #include <sstream> class DepthFrameListener : public astra::FrameReadyListener { public: D...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkCollection.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen. This software is copyrighted by...
<commit_before>// Copyright (c) 2020 ASMlover. 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 o...
<commit_before>// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>// Copyright Amazon.com, Inc. or its affiliates.All Rights Reserved. // SPDX - License - Identifier: Apache - 2.0 // snippet - start: [general.cpp.starter.main] #include <aws/core/Aws.h> #include <aws/core/utils/logging/LogLevel.h> #include <aws/s3/S3Client.h> #include <iostream> using na...
<commit_before>/* * Copyright (c) 2009-2010 by Bjoern Kolbeck, Zuse Institute Berlin * * Licensed under the BSD License, see LICENSE file for details. * */ #include "rpc/client_connection.h" #include <errno.h> #include <boost/bind.hpp> #include <iostream> #include <string> #include <vector> #include "rpc/grid_...
<commit_before>/** \brief Utility for validating and fixing up records harvested by zts_harvester * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2018-2020 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it ...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief V8 line editor /// /// @file /// /// DISCLAIMER /// /// Copyright 2004-2012 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file exc...
<commit_before>/* test_cryptoconfig.cpp This file is part of libkleopatra's test suite. Copyright (c) 2004 Klarlvdalens Datakonsult AB Libkleopatra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free ...
<commit_before>/* This file is part of the KDE project. Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 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.1 o...
<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/file_util.h" #include "base/path_service.h" #include "base/string_util.h" #include "chrome/app/chrome_dll_resource....
<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 "chrome/browser/printing/print_dialog_gtk.h" #include <fcntl.h> #include <gtk/gtkpagesetupunixdialog.h> #include <gtk/gtkprin...
<commit_before>// @(#)root/base:$Id$ // Author: Philippe Canal 13/05/2003 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun, Fons Rademakers and al. * * All rights reserved. * * ...
<commit_before>#include "ImageThresholder.h" #include <chrono> #include <thread> #define EDSIZE 24 #define ERODESIZE 10 //#define IMAGETHRESHOLDER_PARALLEL_FOR //#define IMAGETHRESHOLDER_PARALLEL_THREADS #define IMAGETHRESHOLDER_PARALLEL_INRANGE #ifdef IMAGETHRESHOLDER_PARALLEL_FOR #include <ppl.h> #endif ImageThr...
<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 "chrome/browser/printing/printed_document.h" #include <set> #include "base/gfx/platform_device_win.h" #include "base/me...
<commit_before>//////////////////////////////////////////////////////////////////////////////// // Name: managedframe.cpp // Purpose: Implementation of wxExManagedFrame class. // Author: Anton van Wezenbeek // Created: 2010-04-11 // RCS-ID: $Id$ // Copyright: (c) 2010 Anton van Wezenbeek ////////////////...
<commit_before>// Copyright (c) 2013 The Chromium OS 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 "chromiumos-wide-profiling/address_mapper.h" #include "base/logging.h" #include "chromiumos-wide-profiling/limits.h" #inc...
<commit_before>// Halide tutorial lesson 12. // This lesson demonstrates how to use Halide to run code on a GPU. // This lesson can be built by invoking the command: // make tutorial_lesson_12_using_the_gpu // in a shell with the current directory at the top of the halide source tree. // Otherwise, see the platfor...
<commit_before>//===--- ExplicitMakePairCheck.cpp - clang-tidy -----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "memoryleak.h" #include "abstractmanager.h" #include <QSortFilterProxyModel> #include <QDebug> #include "feedmodel.h" #include "servicemodel.h" #include "feedmanager.h" #include "feedcache.h" #include "aggregatedmodel.h" #include "feedadapter.h" #include "memoryleak-defines.h" McaAbstractMan...
<commit_before> #include "Math/Chebyshev.h" #include "Math/IFunction.h" #include "Math/Functor.h" #include "Math/SpecFunc.h" //#include "MathCore/GSLIntegrator.h" #include <iostream> #include <cmath> typedef double ( * FP ) ( double, void * ); // function is a step function double myfunc ( double x, void * /* p...
<commit_before>#include <map> #include "mem_vector.h" #include "bulk_operate.h" #include "data_frame.h" #include "local_vec_store.h" using namespace fm; using namespace detail; template<class T> class count_impl: public gr_apply_operate<local_vec_store> { public: virtual void run(const void *key, const local_vec_st...
<commit_before>/* Q Light Controller Plus positiontool.cpp Copyright (c) Jano Svitok 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.tx...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: AccessibleSlideSorterView.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-09 05:00:29 $ * * The Contents of th...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: PresentationViewShellBase.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 05:12:37 $ * * The Contents of th...
<commit_before>void Config() { // // Set Random Number seed TDatime dt; UInt_t curtime=dt.Get(); UInt_t procid=gSystem->GetPid(); UInt_t seed=curtime-procid; gRandom->SetSeed(seed); cerr<<"Seed for random number generation= "<<seed<<endl; new AliGeant3("C++ Interface to Geant3"); //===========...
<commit_before>#include "ocos.h" #ifdef ENABLE_GPT2_TOKENIZER #include "gpt2_tokenizer.hpp" #endif #ifdef ENABLE_SPM_TOKENIZER #include "sentencepiece_tokenizer.hpp" #endif #ifdef ENABLE_BERT_TOKENIZER #include "wordpiece_tokenizer.hpp" #endif #ifdef ENABLE_BLINGFIRE #include "blingfire_sentencebreaker.hpp" #endif...
<commit_before>/*-------------------------------------------------------------------------- * Copyright 2011 Taro L. Saito * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
<commit_before>// Copyright (c) 2010 Nickolas Pohilets // // This file is a part of the CppEvents library. // // 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, inc...
<commit_before>#include "AudioMaterialEditor.hpp" #include <Engine/Audio/AudioMaterial.hpp> #include "../FileSelector.hpp" #include <functional> #include <imgui.h> #include "ImGui/GuiHelpers.hpp" using namespace GUI; AudioMaterialEditor::AudioMaterialEditor() { name[0] = '\0'; } void AudioMaterialEditor::Show()...
<commit_before>#include <string> #include <iostream> #if defined(_MSC_VER) #include <SDL.h> #include <SDL_image.h> #elif defined(__clang__) #include <SDL2/SDL.h> #include <SDL2_image/SDL_image.h> #else #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #endif /* * Lesson 5: Clipping Sprite Sheets */ //Screen attribute...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include <unordered_map> #include <string> #include <numeric> #include <algorithm> #include <Rcpp.h> using namespace Rcpp; using namespace std; // [[Rcpp::export]] SEXP cpp_stack(SEXP arlist) { auto array_list = as<List>(arlist); auto dimnames = vector<vector<string>>(); // dim: names along ...
<commit_before>#include "stack.h" #include<string> #include<iostream> using namespace std; //Not using STL at the moment ... //stack.cpp is just temporary work-around till a more suitable solution is found node::node() { cmd = " "; next = NULL; } stack::stack() { top = NULL; temp = NULL; } void stack::pop() { tem...
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/platform_window/x11/x11_window.h" #include <X11/extensions/XInput2.h> #include <X11/Xatom.h> #include <X11/Xlib.h> #include <...
<commit_before>/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2018 Clifford Wolf <clifford@clifford.at> * Copyright (C) 2018 David Shah <dave@ds0.me> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided th...
<commit_before>// Copyright 2010 Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of...
<commit_before>/* * Author: Pierre Chifflier <chifflier@edenwall.com> */ #include <cstdio> #include <cstring> #include <iostream> #include <stdlib.h> #include <apt-pkg/init.h> #include <apt-pkg/error.h> #include <apt-pkg/mmap.h> #include <apt-pkg/pkgcache.h> #include <apt-pkg/pkgrecords.h> #include "dpkginfo-helpe...
<commit_before>#include <algorithm> #include <ctime> #include <functional> #include <map> #include <memory> #include "BrickCache.h" #include "Controller/StackTimer.h" namespace tuvok { // This is used to basically get rid of a type. You can do: // std::vector<TypeErase> data; // std::vector<uint8_t> foo; // st...
<commit_before>/************************************************************************* * * $RCSfile: i18n_im.hxx,v $ * * $Revision: 1.12 $ * * last change: $Author: kz $ $Date: 2005-03-18 17:53:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<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 "ui/views/controls/webview/webview.h" #include "content/public/browser/browser_context.h" #include "content/public/browser/na...
<commit_before>// MIT License // Copyright (c) 2017 Simon Pettersson // 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 us...
<commit_before>/* * MIT License * Copyright (c) 2016 Thomas Prescher * 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 ...
<commit_before>/************************************************************************* * UrBackup - Client/Server backup system * Copyright (C) 2011-2016 Martin Raiber * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Licen...
<commit_before>#ifndef string_hh_INCLUDED #define string_hh_INCLUDED #include "units.hh" #include "utf8.hh" #include "hash.hh" #include "vector.hh" #include <string> #include <climits> namespace Kakoune { class StringView; template<typename Type, typename CharType> class StringOps { public: using value_type = ...
<commit_before>//****************************************************************** // // Copyright 2016 Intel Corporation All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2010-2015 Belledonne Communications SARL, All rights reserved. This program 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 S...
<commit_before>#include <stdio.h> #include <fcntl.h> #include <io.h> #include <vector> #include "dbg_unicode.h" #include "stdinput.h" #include "launch.h" #include "attach.h" #include "dbg_capabilities.h" #include "dbg_unicode.cpp" #include <base/filesystem.h> #include <base/hook/fp_call.h> class module { publi...
<commit_before>// Copyright (c) 2010 The Mozilla 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: // // * Redistributions of source code must retain the above copyright // not...
<commit_before>#ifdef MJOLNIR_IMPLICIT_MEMBRANE_POTENTIAL #define MJOLNIR_IMPLICIT_MEMBRANE_POTENTIAL #include <vector> #include <algorithm> #include <cmath> namespace mjolnir { /* Implicit membrane potential & derivative * * potential field dependent on z coordinate. * * tanh is used to represent m...
<commit_before>/* Copyright (C) 2013 Slawomir Cygan <slawomir.cygan@gmail.com> * * 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>#pragma once /* * A page-table-like structure for mapping fixed-length keys to void* ptrs. */ #include "gc.hh" #include <iterator> enum { bits_per_level = 9 }; enum { key_bits = 36 }; enum { radix_levels = (key_bits + bits_per_level - 1) / bits_per_level }; class radix_elem; class radix_node; /* ...
<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: PresenterHelpView.hxx,v $ * * $...
<commit_before>/**************************************************************************** ** ** This file is part of QtCompositor** ** ** Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** ** Contact: Nokia Corporation qt-info@nokia.com ** ** You may use this file under the t...
<commit_before>/* * DebuggerView.cpp * * This file is part of the XShaderCompiler project (Copyright (c) 2014-2016 by Lukas Hermanns) * See "LICENSE.txt" for license information. */ #include "DebuggerView.h" #include <sstream> #include <memory> #include <vector> #include <fstream> namespace Xsc { static long...
<commit_before>/* Copyright 2017 Istio 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 requi...
<commit_before>/* * The MIT License (MIT) * * Copyright (c) 2015 Jett * * 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 *...
<commit_before>/** * binary search tree class * created by lisovskey */ #ifndef TREE_H #define TREE_H #define ANYWAY #define THEN #include <memory> #include <experimental/optional> // waiting for cpp17 using std::experimental::optional; using std::experimental::make_optional; template <typename T> class Tree { ...
<commit_before>#pragma once extern "C" { #include <TH/TH.h> } #include <opencv2/core.hpp> #ifdef WITH_CUDA #include <THC/THC.h> #include <opencv2/core/cuda.hpp> #endif #include <iostream> #include <array> extern "C" int getIntMax() { return INT_MAX; } extern "C" float getFloatMax() { return FLT_MAX; } /**********...
<commit_before><commit_msg>coverity#708898 Unused pointer value<commit_after><|endoftext|>
<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 * * This file is part of OpenOffice.org. * * ...
<commit_before>//#include "timestamp.h" #include "txn.h" #include "row.h" #include "row_ts.h" #include "mem_alloc.h" #include "manager.h" #include "stdint.h" void Row_ts::init(row_t * row) { _row = row; uint64_t part_id = row->get_part_id(); wts = 0; rts = 0; min_wts = UINT64_MAX; min_rts = UINT64_MAX; mi...
<commit_before>#include <osgParticle/ParticleEffect> #include <osg/io_utils> #include <osgDB/Registry> #include <osgDB/Input> #include <osgDB/Output> #include <osg/Notify> bool ParticleEffect_readLocalData(osg::Object &obj, osgDB::Input &fr); bool ParticleEffect_writeLocalData(const osg::Object &obj, osgDB::Output...
<commit_before>/* [xad] HYBRID player, by Riven the Mage <riven@ok.ru> */ /* - discovery - file(s) : HYBRID.EXE type : Hybrid cracktro for Apache Longbow CD-RIP tune : from 'Mig-29 Fulcrum' game by Domark player : from 'Mig-29 Fulcrum' game by Domark */ #include "hybrid.h" #include "debug.h" un...
<commit_before>/*========================================================================= Program: Visualization Library Module: SbrText.hh Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reprodu...
<commit_before>// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser Genera...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2011-2012, John Haddon. All rights reserved. // Copyright (c) 2012-2015, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modificatio...
<commit_before>/** * @file broker.hpp * @brief Component Broker * @author Byunghun Hwang<bhhwang@nsynapse.com> * @date 2015. 6. 21 * @details */ #ifndef _COSSB_BROKER_HPP_ #define _COSSB_BROKER_HPP_ #include <map> #include <string> #include "interface/icomponent.hpp" #include "arch/singleton.hpp" #include ...
<commit_before>#include <QObject> #include <QDebug> #include <QCanBusFrame> #include <QSettings> #include <QStringBuilder> #include <QtNetwork> #include "mqtt_bus.h" MQTT_BUS::MQTT_BUS(QString topicName) : CANConnection(topicName, "mqtt_client", CANCon::MQTT, 1, 4000, true), mTimer(this) /*NB: set this as par...
<commit_before>/* * CampKitMenuComponent * * Created on: 12/1/2012 * Author: kyle */ #include "server/zone/objects/creature/CreatureObject.h" #include "server/zone/managers/structure/StructureManager.h" #include "server/zone/managers/planet/PlanetManager.h" #include "server/zone/objects/player/PlayerObject....
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>// This file is part of the AliceVision 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 at https://mozilla.org/MPL/2.0/. #pragma once #include <aliceVision/eig33/eig33.hpp>...
<commit_before>#ifndef LIBTEN_URI_HH #define LIBTEN_URI_HH #include <string> #include <utility> #include <vector> #include <stdexcept> #include <algorithm> #include <sstream> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> namespace ten { class uri_error : std::exception { public: uri_err...
<commit_before>/** @file @brief Save data from database to RAM (or hard drive in future version). @author Yi Zhao */ #include "main.h" /** @brief Save data from MYSQL_RES to RAM. @see localrow @remark Data saved in linked list.\n Usage:\n MYSQL_RES *result=mysql_store_result(mysql_conn);\n localrow *localresult;\n int...
<commit_before>#include <node.h> #include <node_object_wrap.h> #include <iostream> #include <cmath> using namespace std; using namespace v8; class WrappedPoly : public node::ObjectWrap { public: static void Init(v8::Local<v8::Object> exports) { Isolate* isolate = exports->GetIsolate(); // Prepare const...
<commit_before>/*- * Copyright (c) 2016 Frederic Culot <culot@FreeBSD.org> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyri...
<commit_before>// Copyright (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 "views/controls/button/menu_button.h" #include "app/drag_drop_types.h" #include "app/gfx/canvas.h" #include "app/l10n_ut...
<commit_before>// Copyright 2015 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. #include "plugin/native_function_manager.h" #include <string.h> #include "base/logging.h" #include "plugin/fake_amx.h" #includ...
<commit_before>#include <OGLPlugin/VertexArray.h> IMPGEARS_BEGIN std::uint32_t VertexArray::_s_count = 0; std::uint32_t VertexArray::_s_vboCount = 0; //-------------------------------------------------------------- VertexArray::VertexArray() { _vao = 0; _buffers.resize(Buffer_Count, 0); _prim...
<commit_before>#include "chainerx/native/native_device.h" #include <cmath> #include <cstdint> #include <type_traits> #include "chainerx/array.h" #include "chainerx/backend.h" #include "chainerx/device.h" #include "chainerx/dtype.h" #include "chainerx/indexable_array.h" #include "chainerx/kernels/creation.h" #include ...
<commit_before>#pragma once /* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QI_STRAND_HPP_ #define _QI_STRAND_HPP_ #include <deque> #include <atomic> #include <qi/assert.hpp> #include <qi/detail/executioncontext.hpp> #include <qi/detail/futureunwrap.hpp> #include <boost/enable...
<commit_before>#include "CbcConfig.h" // CBC_VERSION_MAJOR defined for Cbc > 2.5 #ifndef CBC_VERSION_MAJOR #include "OsiCbcSolverInterface_2_5.cpp" #elif CBC_VERSION_MAJOR == 2 && CBC_VERSION_MINOR <= 8 #include "OsiCbcSolverInterface_2_8.cpp" #elif CBC_VERSION_MAJOR == 2 && CBC_VERSION_MINOR == 9 #include "OsiCbcSolv...
<commit_before>/** * The Seeks proxy and plugin framework are part of the SEEKS project. * Copyright (C) 2010 Loic Dachary <loic@dacary.org> * * 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 Fo...
<commit_before>// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Vulkan Renderer" // For conditions of distribution and use, see copyright notice in Config.hpp #include <Nazara/VulkanRenderer/Wrapper/Device.hpp> #include <Nazara/Core/CallOnExit.hpp> #include <Nazara/Core/Error.hpp> #in...
<commit_before>/* * Copyright (c) 2009, Yuuki Takano (ytakanoster@gmail.com). * 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 cop...
<commit_before>#include "tmath.hpp" /* ================================ SINE ======================================== */ TMath::DOUBLE TMath::sin(DOUBLE x) { x = mod(x + PI, 2 * PI) - PI; DOUBLE r = 0; for (LONG n = 0; n <= 8L; n++) { r += pow(DOUBLE(-1), n) * pow(x, 2 * n + 1) / fac(2 * n + 1); } return r; } T...
<commit_before>#include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <sensor_msgs/PointCloud.h> #include <math.h> static const float tol = 0.000000000000001f; double magnitude(double vec[3]){ return sqrt(vec[0]*vec[0] + vec[1]*vec[1] + vec[2]*vec[2]); } void normalize(double vec[3]){ float m = mag...
<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 "base/command_line.h" #include "base/path_service.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" #i...
<commit_before>#include "builtin/block_environment.hpp" #include "builtin/class.hpp" #include "builtin/compiledmethod.hpp" #include "builtin/fixnum.hpp" #include "builtin/lookuptable.hpp" #include "builtin/tuple.hpp" #include "gc_object_mark.hpp" #include "objectmemory.hpp" #include "vm/object_utils.hpp" #include "b...
<commit_before>#include <ros/ros.h> #include <geometry_msgs/Twist.h> #include <sensor_msgs/PointCloud.h> #include <math.h> static const float tol = 0.000000000000001f; double magnitude(double vec[3]){ return sqrt(vec[0]*vec[0] + vec[1]*vec[1] + vec[2]*vec[2]); } void normalize(double vec[3]){ float m = mag...
<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 "chrome/browser/download/download_request_manager.h" #include "chrome/browser/chrome_thread.h" #include "chrome/browser/...
<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/extensions/extension_apitest.h" #include "base/prefs/pref_service.h" #include "chrome/browser/prefs/incognito...