text
stringlengths
54
60.6k
<commit_before>#include "FAST/Tests/catch.hpp" #include "TubeSegmentationAndCenterlineExtraction.hpp" #include "FAST/Importers/ImageFileImporter.hpp" #include "FAST/Visualization/SliceRenderer/SliceRenderer.hpp" #include "FAST/Visualization/LineRenderer/LineRenderer.hpp" #include "FAST/Algorithms/SurfaceExtraction/Surf...
<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/plugin_updater.h" #include <string> #include <vector> #include "base/path_service.h" #include "base/scoped_p...
<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/usb/usb_device.h" #include "base/stl_util.h" #include "base/synchronization/lock.h" #include "chrome/browser/...
<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/common/resource_bundle.h" #include <atlbase.h> #include "base/file_util.h" #include "base/gfx/png_decoder.h" #i...
<commit_before>// Copyright (c) 2011 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 "update_engine/chrome_browser_proxy_resolver.h" #include <map> #include <string> #include <base/string_util.h> #include <...
<commit_before>#include "Halide.h" #include <stdio.h> #include <math.h> using std::vector; using namespace Halide; using namespace Halide::Internal; class CountInterleaves : public IRVisitor { public: int result; CountInterleaves() : result(0) {} using IRVisitor::visit; void visit(const Call *op) { ...
<commit_before>/*************************************************** This is a library for the MCP23008 i2c port expander These displays use I2C to communicate, 2 pins are required to interface Adafruit invests time and resources providing this open source code, please support Adafruit and open-source har...
<commit_before>/* * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Da Zheng (zhengda1936@gmail.com) * * This file is part of FlashGraph. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ...
<commit_before>// bitmessage cracker, build with g++ or MSVS to a shared library, use included python code for usage under bitmessage #ifdef _WIN32 #include "Winsock.h" #include "Windows.h" #define uint64_t unsigned __int64 #else #include <arpa/inet.h> #include <pthread.h> #include <stdint.h> #endif #include <string.h>...
<commit_before>/* Copyright 2015-2021 Igor Petrovic 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 applicable law or agreed to i...
<commit_before>// Copyright (c) 2013 Stanislas Polu. // See the LICENSE file. #include "exo_browser/src/browser/ui/exo_browser.h" #include "base/auto_reset.h" #include "base/message_loop/message_loop.h" #include "base/path_service.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_ut...
<commit_before>/* Copyright (c) 2008-2019 the MRtrix3 contributors. * * 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/. * * Covered Software is provided under this L...
<commit_before>#include "conversioninfo.h" #include "ditherer.h" #include <iostream> #include <vector> #include <algorithm> #include <stdexcept> namespace ReSampler { // sanitize() : function to allow more permissive parsing. // Removes hyphens after first non-hyphen character and converts to lowercase. // examples:...
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER * (c)LGPL2+ * * Flacon - audio File Encoder * https://github.com/flacon/flacon * * Copyright: 2012-2013 * Alexander Sokoloff <sokoloff.a@gmail.com> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser ...
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ // vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s /* * Copyright (C) 2014 the FFLAS-FFPACK group * * Written by Pascal Giorgi <pascal.giorgi@lirmm.fr> * * * ========LICENCE======== * This file is part of th...
<commit_before>/* * Copyright (C) 2019 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>/* * Copyright (C) 2006 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>// // Copyright (c) 2017 The nanoFramework project contributors // Portions Copyright (c) Microsoft Corporation. All rights reserved. // See LICENSE file in the project root for full license information. // // ESP32 GPIO ( 40 physical GPIO pads) // // GPIO6-11 used for PSI flash // // GPIO34-39 Only...
<commit_before>#include "condor_common.h" #include "condor_config.h" #include "condor_state.h" #include "condor_api.h" #include "status_types.h" #include "totals.h" #include "my_hostname.h" #include "get_full_hostname.h" // global variables AttrListPrintMask pm; char *DEFAULT= "<default>"; char *pool = NULL; AdTyp...
<commit_before>#ifndef CONTROLLER_HPP #define CONTROLLER_HPP #include "Position6DOF.hpp" #include "Formation.hpp" #include "ros/ros.h" //Ros messages/services #include "api_application/MoveFormation.h" // ? (D) #include "../matlab/Vector.h" #include "control_application/quadcopter_movement.h" // ? (D) #include "api_ap...
<commit_before>/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkOpts.h" #include "SkRasterPipeline.h" SkRasterPipeline::SkRasterPipeline() {} void SkRasterPipeline::append(StockStage stage, void* ctx) { #ifdef ...
<commit_before>/* * * Copyright 2015 gRPC 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 "CPPFORT/HEPEVT.h" #include <cstdlib> #include <cmath> #include <iostream> using namespace std ; using namespace lcio ; namespace HEPEVTIMPL{ void HEPEVT::fromHepEvt(LCEvent * evt){ float* p = new float[3] ; // set event number from stdhep COMMON int* IEVENT = &FTNhep....
<commit_before>/** * This file is part of the "libfnord" 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 th...
<commit_before>#include <algorithm> #include <boost/filesystem.hpp> #include <QMessageBox> #include <QFileDialog> #include <QSqlTableModel> #include <QProgressDialog> #include "image_annotation.h" #include "database_info.h" #include "mainwindow.h" #include "ui_mainwindow.h" namespace fish_annotator { namespace db_u...
<commit_before>#include "dynamic_selection_list.hh" namespace Kakoune { DynamicSelectionList::DynamicSelectionList(const Buffer& buffer, SelectionList selections) : m_buffer(&buffer), SelectionList(std::move(selections)) { m_buffer->change_listeners().insert(this); ...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. //------------------------------------------------------------------------------------------------- // This file is based on Kevin Beason's smallpt global illumination renderer. // Original license (MIT) follows. // ...
<commit_before>/*************************************************************************** * Copyright © 2003 Jason Kivlighn <jkivlighn@gmail.com> * * * * This program is free software; you can redistribute it and/or modify * ...
<commit_before>//===- Reassociate.cpp - Reassociate binary expressions -------------------===// // // This pass reassociates commutative expressions in an order that is designed // to promote better constant propagation, GCSE, LICM, PRE... // // For example: 4 + (x + 5) -> x + (4 + 5) // // Note that this pass works be...
<commit_before>/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrColorSpaceXform.h" #include "SkColorSpace.h" #include "SkColorSpace_Base.h" #include "SkMatrix44.h" #include "SkSpinlock.h" class GrColorSpaceXform...
<commit_before>/****************************************************************************** nomlib - C++11 cross-platform game engine Copyright (c) 2013, 2014 Jeffrey Carpenter <i8degrees@gmail.com> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitt...
<commit_before>#include "instruments/population/GenerationFitnessCSV.hpp" #include <cmath> #include <string> GenerationFitnessCSV::GenerationFitnessCSV( PopulationNode* target, std::string outFile, float bottomFitness, float topFitness, float resolution ) : CSVInstrument(target, outFile) { std::vector<float> buc...
<commit_before>/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. ==...
<commit_before>/** * @file IntegralImageProvider.cpp * * Implementation of class IntegralImageProvider * */ #include "IntegralImageProvider.h" IntegralImageProvider::IntegralImageProvider() {} IntegralImageProvider::~IntegralImageProvider() {} void IntegralImageProvider::execute(CameraInfo::CameraID id) { ...
<commit_before>#pragma once #pragma execution_character_set("utf-8") #include <iostream> #include "paramenters.h" #include "spikedetect.h" #include "probe.h" #include "preprossingdata.h" #include "klustakwik.h" #define CHANNELS 32 #define SAMPLES 1000 using namespace std; int main() { /*-----------------------------...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>/* * C700VST.cpp * Chip700 * * Created by osoumen on 12/10/13. * Copyright 2012 __MyCompanyName__. All rights reserved. * */ #include "C700VST.h" #include <stdio.h> AudioEffect* createEffectInstance(audioMasterCallback audioMaster) { return new C700VST(audioMaster); } //-------------------...
<commit_before>// CA4.cpp : Defines the entry point for the console application. // #include "stdafx.h" const int cbCodeId = 0x3EB; const int btnDecompId = 0x3EC; const int btnCancelId = 2; const SIZE_T fbRecordSize = 0xB4; const LPVOID fileObjectAddr = (LPVOID)0x4101d8; const SIZE_T fileObjectSize = 0x3A4; const ...
<commit_before>/* This file is part of Android File Transfer For Linux. Copyright (C) 2015 Vladimir Menshakov Android File Transfer For Linux 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, e...
<commit_before> // Includes: // Standard libpng functionality. #include <png.h> // C standard library functionality: #include <cstdlib> #include <cstdint> // Namespaces: namespace imageEncoder { // Structures: typedef struct pixel_ARGB { // Colors: uint8_t red; uint8_t green; uint8_t blue; uint8_t alpha...
<commit_before>// Copyright 2016 Open Source Robotics Foundation, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless re...
<commit_before>/* This file is part of the clazy static checker. Copyright (C) 2016 Sergio Martins <smartins@kde.org> Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com This library is free software; you can redistribute it and/or modify it under the terms of the GNU Librar...
<commit_before>#include "Clipper.h" #include <algorithm> #include <functional> // Calculates the intersection point of a line segment lb->la which crosses the // plane with normal 'n'. static bool RayPlaneIntersection(const FLOATVECTOR3 &la, const FLOATVECTOR3 &lb, ...
<commit_before>#include "wrestd.h" #ifdef _WIN32 #include <Windows.h> #endif #include <iostream> #include <fstream> #include <cstdio> // this is here because on VS2010 I have to change how this works to make it work properly #define TO_STRING(i) (to_string(i)) // windows defined max, and I want to use a different o...
<commit_before> /* * Copyright (c) 2014, Dinamica Srl * Copyright (c) 2014, K. Kumar (kumar@dinamicatech.com) * All rights reserved. * See COPYING for license details. */ #include <iomanip> #include <limits> #include <cmath> #include <cstdlib> #include <iostream> #include <string> #include <vector> #includ...
<commit_before>/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
<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) 2016-2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * *...
<commit_before>///////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020, The Regents of the University of California // All rights reserved. // // BSD 3-Clause License // // Redistribution and use in source and binary forms, with or without // modification, are permitted pr...
<commit_before>#include <algorithm> #include <cstdlib> #include <fstream> #include <iostream> #include <cmath> #include <sstream> #include <string> #include <vector> #include "factorencoder.hh" int read_words(const char* fname, std::map<std::string, long> &words) { std::ifstream vocabfile(fname)...
<commit_before>#include "test-helpers.h" #include <sstream> #include "text-buffer.h" #include "text-slice.h" using std::move; using std::string; using std::stringstream; TEST_CASE("TextBuffer::build - can build a TextBuffer from a UTF8 stream") { string input = "abγdefg\nhijklmnop"; stringstream stream(input, std...
<commit_before>#include <iostream> #include "ace/Select_Reactor.h" #include "ace/Reactor.h" #include "ace/OS_NS_unistd.h" #include "ace/Signal.h" #include "ace/Time_Value.h" #include "ace/OS_NS_time.h" #include "ace/Date_Time.h" #include "log.h" #include "version.h" #include "DataStoreReceiver.h" #include "DataSto...
<commit_before>/** * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Disa Mhembere (disa@jhu.edu) * * This file is part of FlashGraph. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
<commit_before>#include "log.h" #include "config.h" #include <sys/time.h> #include <sys/syscall.h> #include <stdarg.h> // FIXME: See note below. #include "simulator.h" #include "core_manager.h" //#define DISABLE_LOGGING using namespace std; Log *Log::_singleton; Log::Log(UInt32 coreCount) : _coreCount(coreCo...
<commit_before>#pragma once //=====================================================================// /*! @file @brief ルネサス RX 選択 @n Copyright 2016 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #if defined(SIG_RX621) #inclu...
<commit_before>#include <Arduino.h> #include <SPI.h> #include <math.h> #include "Heater.h" // E0 Main extruder const int E0_enable = 26; // low == enabled const int E0_step = 34; const int E0_dir = 43; const int E0_MS1 = 65; const int E0_MS2 = 66; const int E0_digipot_channel = 0; const float E0_steps_per_mm = 38.197...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include <OISKeyboard.h> #include "OgreOverlay.h" #include "EC_OgreConsoleOverlay.h" #include "OgreRenderingModule.h" #include "InputEvents.h" #include "ConsoleModule.h" #include "Conso...
<commit_before>/************************************************************************* * * $RCSfile: menumanager.hxx,v $ * * $Revision: 1.15 $ * * last change: $Author: vg $ $Date: 2003-06-10 09:09:40 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>// Time: O(n) // Space: O(1) class Solution { public: /** * @param source: A string * @param target: A string * @return: A string denote the minimum window * Return "" if there is no such a string */ string minWindow(string &source, string &target) { if...
<commit_before>#include "framework/serialization/serialize.h" #include "dependencies/pugixml/src/pugixml.hpp" #include "framework/filesystem.h" #include "framework/logger.h" #include "framework/serialization/providers/filedataprovider.h" #include "framework/serialization/providers/providerwithchecksum.h" #include "fram...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, version 1.0 RC 1 * * (c) 2006-2011 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before><commit_msg>Drop unused inline function<commit_after><|endoftext|>
<commit_before>// Copyright 2020 The Google Research 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...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<commit_before>/* indivudal.cpp - CS 472 Project #2: Genetic Programming * Copyright 2014 Andrew Schwartzmeyer * * Source file for individual namespace */ #include <algorithm> #include <cassert> #include <cmath> #include <iostream> #include <memory> #include <tuple> #include <vector> #include "individual.hpp" #in...
<commit_before>#include "ControlResponseTE.h" #include <APL/Logger.h> #include <APL/Exception.h> #include <APL/Parsing.h> namespace apl { CommandResponder :: CommandResponder(Logger* apLogger, bool aLinkStatuses, IDataObserver* apObs) : Loggable(apLogger), mpObs(apObs), mLinkStatuses(aLinkStatuses) { } void Co...
<commit_before>#pragma once //=====================================================================// /*! @file @brief ルネサス RX 選択 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2016, 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/master...
<commit_before>#ifndef XGBOOST_IO_SIMPLE_DMATRIX_INL_HPP_ #define XGBOOST_IO_SIMPLE_DMATRIX_INL_HPP_ /*! * \file simple_dmatrix-inl.hpp * \brief simple implementation of DMatrixS that can be used * the data format of xgboost is templatized, which means it can accept * any data structure that implements the funct...
<commit_before>/* ************************************************************************ * Copyright 2016 Advanced Micro Devices, Inc. * ************************************************************************ */ #include <stdlib.h> #include <iostream> #include <fstream> #include <vector> #include <limits> // s...
<commit_before>/* * Silly subclass of CTreeCtrl just to implement Drag&Drop. * * Based on MFC sample code from CMNCTRL1 */ #include "stdafx.h" #include "MyTreeCtrl.h" #include "DboxMain.h" #include "corelib/ItemData.h" #include "corelib/MyString.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char...
<commit_before>//.............................................................................. // // This file is part of the Jancy toolkit. // // Jancy 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/dow...
<commit_before>#include "BluPrivatePCH.h" UBluEye::UBluEye(const class FObjectInitializer& PCIP) : Super(PCIP) { Width = 800; Height = 600; bIsTransparent = false; } void UBluEye::init() { /** * We don't want this running in editor unless it's PIE * If we don't check this, CEF will spawn infinit process...
<commit_before>/** * @file common_account.cpp * @brief Manage a common account. * @author Sebastiao * @date 2015/20/06 * @copyright See LICENCE.txt */ #include <ctime> #include <cstdint> #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include <string> #include <sstream> #include <unordered...
<commit_before>/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
<commit_before>//------------------------------------------------------------------------------ // glInfo.cc //------------------------------------------------------------------------------ #include "Pre.h" #include "glInfo.h" #include "Core/Assert.h" #include "Core/Log.h" #include "Core/String/StringBuilder.h"...
<commit_before>/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across ...
<commit_before>#include "drake/common/text_logging.h" #include <mutex> namespace drake { #ifdef HAVE_SPDLOG namespace { // Returns a new pointer (caller-owned) to a shared_ptr to a logger. // // NOTE: This function assumes that it is mutexed, as in the initializer of // a static local. std::shared_ptr<logging::logg...
<commit_before>/* * Copyright (c) 2020, The OpenThread Authors. * 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 copyr...
<commit_before>/************************************************************************* * * $RCSfile: absdev.hxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 16:56:50 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/******************************* Copyright (c) 2016-2020 Grégoire Angerand 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 righ...
<commit_before>// $Id$ // Author: Matevz Tadel 2009 /************************************************************************** * Copyright(c) 1998-2009, ALICE Experiment at CERN, all rights reserved. * * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full copyright notice. ...
<commit_before>#include "SpriteSheet.h" #include "Utilities/ResourceManager.h" #include "TinyXML/tinyxml.h" #include "Logging.h" namespace Graphics { void SpriteSheet::MakeResident () { glGenTextures(1, &texID); glBindTexture(GL_TEXTURE_RECTANGLE_ARB, texID); if (surface->format->BytesPerPixel == 3) { glTexImag...
<commit_before>#include "combobox.h" #include <Tempest/Application> #include <Tempest/ListView> #include <Tempest/Painter> #include <Tempest/Panel> using namespace Tempest; struct ComboBox::Overlay:UiOverlay { Overlay(ComboBox* owner):owner(owner) {} ~Overlay() { owner->overlay = nullptr; } void mouse...
<commit_before>#ifndef _TREE_HPP_ #define _TREE_HPP_ #include "NodeN.hpp" #include "../EstructurasLineales/Lista.hpp" template<class T> class Tree { protected: Node<T>* _root; public: Tree() : root(NULL) { }; Tree(T e) : root(new NodeN<T>(e)) { }; Tree(T, Lista<Tree<T>>); ...
<commit_before>#include "MultiPassBallDetector.h" #include "Tools/CameraGeometry.h" #include "Tools/PatchWork.h" #include "Tools/BlackSpotExtractor.h" #include "Classifier/Model1.h" #include "Classifier/Fy1500_Conf.h" #include "Classifier/FrugallyDeep.h" using namespace std; MultiPassBallDetector::MultiPassBallDete...
<commit_before> #ifndef __UTILS_H #define __UTILS_H #ifdef __cplusplus extern "C" { #endif #include <stdint.h> #include <math.h> /** * @brief Flash size register address */ #define ID_FLASH_ADDRESS (0x1FFF7A22) /** * @brief Device ID register address */ #define ID_DBGMCU_IDCODE (0xE0042000) /** * "Returns" th...
<commit_before>// Copyright (C) 2017 Elviss Strazdins // This file is part of the Ouzel engine. #include <algorithm> #include "Menu.h" #include "core/Engine.h" #include "events/EventDispatcher.h" #include "input/Input.h" #include "utils/Log.h" namespace ouzel { namespace gui { Menu::Menu() { ...
<commit_before>/** * @file pycantera.cpp * * This is the main file for the Python interface module. * */ // turn off warnings about long names under Windows #ifdef WIN32 #pragma warning(disable:4786) #pragma warning(disable:4503) #endif #include "cantera/config.h" #include "Python.h" #ifdef HAS_NUMERIC #includ...
<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 "line.hpp" // Include standard headers #include <cmath> // NAN, std::isnan, std::pow #include <string> // std::string #include <vector> // std::vector namespace geometry { // constructor. // can be used for creating n-dimensional lines. Line::Line(const std::vector<float>...
<commit_before>/* * Copyright (C) 2008-2010 Manjeet Dahiya * * Author: * Manjeet Dahiya * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lic...
<commit_before>/* * Copyright 2015 Cloudius Systems */ #pragma once #include "compound.hh" // // This header provides adaptors between the representation used by our compound_type<> // and representation used by Origin. // // For single-component keys the legacy representation is equivalent // to the only componen...
<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>/**************************************************************************** * * Copyright (c) 2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
<commit_before> #include "luiText.h" #include "pandaVersion.h" TypeHandle LUIText::_type_handle; LUIText::LUIText(PyObject* self, LUIObject* parent, const wstring& text, const string& font_name, float font_size, float x, float y, bool wordwrap) : LUIObject(self, parent, x, y), _text(text), _f...
<commit_before>/// @file peer_info.cpp /// /// @brief Implementation of peer_info.hpp /// /// @author Thomas Vanderbruggen <thomas@koheron.com> /// @date 30/11/2014 /// /// (c) Koheron 2014 #include "peer_info.hpp" namespace kserver { // -------------------------------- // PeerInfo // -------------------------------...
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include <stdio.h> #include "bin/dartutils.h" #include "bin/dfe.h" #include "bin/eventh...
<commit_before>// --------------------------------------------------------------------- // // Copyright (C) 2000 - 2016 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the GNU Lesse...
<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: View.hxx,v $ * $Revision: 1.3 $ ...
<commit_before>#include "Scene.h" Scene::Scene(void) { view_matrix = glm::lookAt(glm::vec3(0.f, 0.f, 0.f), glm::vec3(0.f, 0.f, -1.f), glm::vec3(0.f, 1.f, 0.f)); memset(&KeyStates, 0, sizeof(KeyStates)); // Init Test Objects test_zombie = new Zombie(this, 0.0f, 0.0f); player = new Player(this, 20.0f, 20.0f); // I...