text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: slotadd.cxx,v $ * * $Revision: 1.27 $ * * last change: $Author: kz $ $Date: 2007-09-06 14:08:03 $ * * The Contents of this file are made ...
<commit_before>#include <sdl_renderer.h> #include <cstring> void draw_naive(SDL_Texture* tex, const PPU & ppu) { void* pixels; int pitch = 0; SDL_LockTexture(tex, nullptr, &pixels, &pitch); ppu.nametable_img((byte_t*)pixels, pitch, 0); SDL_UnlockTexture(tex); } void draw_nam(SDL_Texture* tex, co...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the...
<commit_before>/** * @file response_base.hpp * @author Herbert Jones * @brief Base class for the JSON API request return object. * * @copyright Copyright 2014 Mediafire */ #pragma once #include <string> #include <system_error> #include "boost/optional.hpp" #include "boost/property_tree/ptree.hpp" #include "med...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<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>//! ======================================================================================== //! ExecutionGraph //! Copyright (C) 2014 by Gabriel Nützi <gnuetzi (at) gmail (døt) com> //! //! @date Sat Feb 17 2018 //! @author Gabriel Nützi, gnuetzi (at) gmail (døt) com //! //! This Source Code Form i...
<commit_before>#pragma once #include <atomic> #include <mutex> #include <condition_variable> #include <loom/common.hpp> #ifdef LOOM_ASSUME_X86 # define load_barrier() asm volatile("lfence":::"memory") # define store_barrier() asm volatile("sfence":::"memory") #else // LOOM_ASSUME_X86 # warn "defaulting to full mem...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkVTKImageIO.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCop...
<commit_before>#include <iostream> #include <memory> #include <chrono> #include <thread> #include <ctime> #include "opencv2/opencv.hpp" #include "opencv2/highgui.hpp" static const cv::Size frameSize(640,480); static const double cameraFPS = 4; static const cv::Size displaySize(640, 480); static const double displayRa...
<commit_before>/* * Copyright (c) 2015 Srijan R Shetty * Author: Srijan R Shetty <srijan.shetty+code@gmail.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, in...
<commit_before>/*========================================================================= Program: Dionysus Module: mwsRestXMLParser.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Kitware Inc. All rights reserved. See Copyright.txt or http://www.Kitware.com/Copyright.htm ...
<commit_before>// This Source Code Form is licensed MPLv2: http://mozilla.org/MPL/2.0 #ifndef __RAPICORN_FORMATTER_HH__ #define __RAPICORN_FORMATTER_HH__ #include <rcore/cxxaux.hh> #include <rcore/aida.hh> #include <sstream> namespace Rapicorn { namespace Lib { // Namespace for implementation internals // == StringF...
<commit_before>/* * Renderer.cpp * * Renders the box2d content */ #include <vector> #include <Box2D/Box2D.h> #include <SDL2/SDL.h> #include <SDL2/SDL_main.h> #include <SDL2/SDL2_gfxPrimitives.h> #include "Renderer.h" const float Renderer::NUMERATOR = 7.0f; const float Renderer::DENOMINATOR = 9.0f; const...
<commit_before>//vbSort.cpp //Copyright (c) 2015 mmYYmmdd #include "stdafx.h" #include <algorithm> #include <OleAuto.h>//<OAIdl.h> #include "VBA_NestFunc.hpp" //”äŠrŠÖ” class compareByVBAfunc { VARIANT* begin; std::shared_ptr<functionExpr> comp; public: compareByVBAfunc(VARIANT* pA, VARIANT* f) : beg...
<commit_before>/* * Copyright (c) 2017 Trail of Bits, 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 a...
<commit_before>/* Copyright 2016 Rodrigo Jose Hernandez Cordoba 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 agre...
<commit_before>#include "web_output.h" #include <iomanip> #include <iostream> #include <sstream> #include <string> using namespace std; void Web_Output::add_encoding_error(const string& error) { if (log_level != Error_Output::QUIET) { ostringstream out; out<<"encoding error: "<<error; display_error(o...
<commit_before>/* * main.cpp - Kurento Media Server * * Copyright (C) 2013 Kurento * Contact: Miguel París Díaz <mparisdiaz@gmail.com> * Contact: José Antonio Santos Cadenas <santoscadenas@kurento.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Gener...
<commit_before>#include <cstdio> #include <cassert> #include <sstream> #include "genome.h" #include "gtf.h" #include "config.h" #include "assembler.h" #include "scallop3.h" #include "sgraph_compare.h" #include "super_graph.h" assembler::assembler() { sfn = sam_open(input_file.c_str(), "r"); hdr = sam_hdr_read...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>/************************************************************************* * * $RCSfile: mmdocselectpage.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: vg $ $Date: 2005-03-07 17:36:06 $ * * The Contents of this file are made available subject to the terms of * either of the followin...
<commit_before>#pragma once #include <cstdint> #include <nlohmann/json.hpp> #include <vector> #include "DatatypeEnum.hpp" #include "RawBuffer.hpp" #include "RawImgFrame.hpp" namespace dai { struct RawImageManipConfig : public RawBuffer { // NNData data is in PoBuf struct CropRect { // Normalized rang...
<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 "sync/notifier/registration_manager.h" #include <algorithm> #include <cstddef> #include <iterator> #include <string> #include...
<commit_before>#include "RobustMatcher.h" // Clear matches for which NN ratio is > than threshold // return the number of removed points // (corresponding entries being cleared, // i.e. size will be 0) int RobustMatcher::ratioTest(vector<vector<DMatch> > &matches) { int removed=0; // for all matches for (vector<v...
<commit_before>#include "CollimationTrackingAction.h" #include <iostream> #include "G4VProcess.hh" #include "G4ThreeVector.hh" #include "G4ParticleDefinition.hh" #include "G4Proton.hh" CollimationTrackingAction::CollimationTrackingAction() {} void CollimationTrackingAction::PreUserTrackingAction(const G4Track* Trac...
<commit_before>/* * Copyright (C) Lynn Tran * * Implementation of war card game using Queue and OOP */ #include<string> #include<iostream> #include<queue> #define DECKSIZE 52 using namespace std; /* * The deck will start from 0 to 51 where the suits are clubs, diamonds, hearts and spades * respectively. */ cla...
<commit_before>/* This program will add histograms from a list of root files and write them to a target root file. The target file is newly created and must not be identical to one of the source files. Syntax: hadd targetfile source1 source2 ... if the source files contains histograms and Trees, on...
<commit_before>#include "webcam.hpp" using namespace cv; using namespace std; int main (int argc, char** argv) { CvCapture* capture = 0; int width, height, fps; capture = cvCaptureFromCAM(0); if (!capture) { printf("No camera detected!"); return -1; } ifstream configFile (".config"); if (configFile.is...
<commit_before>/* Copyright 2020 The TensorFlow 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 appl...
<commit_before>#include "Test.h" #include <arpa/inet.h> using namespace XNet; #ifdef __LITTLE_ENDIAN__ #define LOCALHOST 0x0100007F #else #define LOCALHOST 0x7F000001 #endif int main() { BSDSocketProvider* provider = new BSDSocketProvider(); Socket* sender = provider->NewSocket(1025); Socket* receiver = provider-...
<commit_before>/* The MIT License (MIT) * * Copyright (c) 2016 Adrian Dobrică, Ștefan-Gabriel Mirea * * 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 with...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is dis...
<commit_before>// // (c) Copyright 2017 DESY,ESS // // This file is part of h5pp. // // 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 of the License, or // (at your o...
<commit_before>// // (c) Copyright 2017 DESY,ESS // // This file is part of h5pp. // // 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 of the License, or // (at your o...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission no...
<commit_before>#include <gtest/gtest.h> #include <string> #include <map> #include <iostream> // TODO: remove me! #include "../../cvmfs/catalog_traversal.h" #include "../../cvmfs/manifest.h" #include "../../cvmfs/hash.h" using namespace swissknife; static const std::string rhs = "f9d87ae2cc46be52b324335ff05fae4...
<commit_before>/* * Copyright 2012 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 applicable l...
<commit_before>// Copyright 2015-2019 Elviss Strazdins. All rights reserved. #ifndef OUZEL_NETWORK_SOCKET_HPP #define OUZEL_NETWORK_SOCKET_HPP #include <stdexcept> #include <system_error> #if defined(_WIN32) # pragma push_macro("WIN32_LEAN_AND_MEAN") # pragma push_macro("NOMINMAX") # ifndef WIN32_LEAN_AND_MEAN # ...
<commit_before>/** * The Seeks proxy and plugin framework are part of the SEEKS project. * Copyright (C) 2011 Emmanuel Benazera <ebenazer@seeks-project.info> * * 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...
<commit_before>/* Copyright (C) 1998 by Jorrit Tyberghein This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later ...
<commit_before>#pragma once #include <map> #include <ros/console.h> #include "AbstractCameraQueue.hpp" template <class T> class TrackingQueue { public: TrackingQueue(); ~TrackingQueue(); void enqueue(std::vector<CameraData> data); void enqueue(CameraData data); size_t getSize(); std::vector<CameraData> deq...
<commit_before>/************************************************************************* * * $RCSfile: resary.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2005-01-03 17:08:51 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/* Copyright (C) 2008-2016 The Communi Project You may use this file under the terms of BSD license as follows: 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 mus...
<commit_before>/****************************************************************************** * Copyright (C) 2006-, Akira Okumura * * All rights reserved. * ****************************************************************...
<commit_before>/// \file /// \ingroup tutorial_hist /// \notebook /// Display the various 2-d drawing options /// /// \macro_code /// /// \author Rene Brun void draw2dopt() { gStyle->SetOptStat(0); gStyle->SetCanvasColor(33); gStyle->SetFrameFillColor(18); TF2 *f2 = new TF2("f2","xygaus + xygaus(5) + xylan...
<commit_before>// Read data (CERN staff) from an ascii file and create a root file with a Tree. // see also a variant in staff.C // Author: Rene Brun TFile *cernbuild(Int_t get=0) { Int_t Category; UInt_t Flag; Int_t Age; Int_t Service; Int_t Children...
<commit_before>//==--- MacOSKeychainAPIChecker.cpp ------------------------------*- 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 "solarsystem.h" SolarSystem::SolarSystem() { } CelestialBody& SolarSystem::createCelestialBody(vec3 position, vec3 velocity, double mass) { m_bodies.push_back( CelestialBody(position, velocity, mass) ); return m_bodies.back(); // Return reference to the newest added celstial body } vo...
<commit_before>/** * @file ada_delta.hpp * @author Marcus Edel * * Implmentation of the RmsProp optimizer. Adadelta is an optimizer that uses * the magnitude of recent gradients and steps to obtain an adaptive step rate. */ #ifndef __MLPACK_METHODS_ANN_OPTIMIZER_ADA_DELTA_HPP #define __MLPACK_METHODS_ANN_OPTIMIZE...
<commit_before>/** * @copyright Copyright 2017 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required by...
<commit_before>/* * producer_glaxnimate.cpp -- a Glaxnimate/Qt based producer for MLT * Copyright (C) 2022 Meltytech, LLC * * 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...
<commit_before>//***************************************************************************** // Copyright 2017-2019 Intel Corporation // // 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>#include "GolfBall.hpp" #include "../Resources.hpp" #include "Default3D.vert.hpp" #include "Default3D.geom.hpp" #include "Default3D.frag.hpp" #include "glm/gtc/constants.hpp" #include "../Util/Log.hpp" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/quaternion.hpp> GolfBall::GolfBall(BallType ...
<commit_before><?hh // strict namespace Dust\Evaluate; use Dust\Ast\Identifier; class Context { /** * @var \Dust\Evaluate\Evaluator */ public Evaluator $evaluator; /** * @var \Dust\Evaluate\Context */ public Context $parent; /** * @var \Dust\Evaluate\State ...
<commit_before>#include <QtWidgets> #include "LatticeFittingWindow.hpp" #include "PointDetector.hpp" #include "ImageProcessor.hpp" #include "LatticeFittingDockWidget.hpp" LatticeFittingWindow::LatticeFittingWindow() : _imageLabel(new QLabel(this)), _scrollArea(new QScrollArea(this)), _dockWidget(new LatticeF...
<commit_before>/* * File: LuaHeader.hpp * Author: frex * * Created on August 9, 2014, 6:35 PM */ #ifndef LUAHEADER_HPP #define LUAHEADER_HPP #include <lua.hpp> #include <cstddef> #include <cstring> //this header is to allow both lua jit (based on 5.1), 5.1 and 5.2 be //used with the console by defining some v...
<commit_before>/* * OSPRaySphereGeometry.cpp * Copyright (C) 2009-2017 by MegaMol Team * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "OSPRaySphereGeometry.h" #include "vislib/forceinline.h" #include "mmcore/moldyn/MultiParticleDataCall.h" #include "mmcore/param/FloatParam.h" #include "mmcore/param/IntPara...
<commit_before>#include <cctype> #include <istream> #include <sstream> #include "BitFunnel/TermMatchNode.h" #include "QueryParser.h" namespace BitFunnel { QueryParser::QueryParser(std::istream& input, IAllocator& allocator) : m_input(input), m_allocator(allocator), m_currentPosition(0)...
<commit_before>/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz> 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 r...
<commit_before> #include "QstCommInt.h" /*****************************************************************************/ /* 普通显示 */ /*****************************************************************************/ /* ===============================...
<commit_before>#include <QtWidgets> #include "../event.h" #include "../osd.h" #include "../error.h" #include "../pc6001v.h" #include "../typedef.h" #include "../console.h" #include "../error.h" #include "../osd.h" #include "renderview.h" #include "qtp6vxapplication.h" ////////////////////////////////////////////////...
<commit_before>/* * RemoteSyslogAppender.cpp * * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved. * Copyright 2001, Walter Stroebel. All rights reserved. * * See the COPYING file for the terms of usage and distribution. */ #include "log4cpp/Portability.hh" #ifdef LOG4CPP_HAVE_UNISTD...
<commit_before>#ifndef __POINT_3D_H #define __POINT_3D_H template<typename T> struct Point3D { T x, y, z; inline void operator+=(const Point3D& other) { x += other.x; y += other.y; z += other.z; } inline void operator-=(const Point3D& other) { x -= other.x; y -= other.y; z -= other.z; } inline voi...
<commit_before>#ifndef __STAN__VERSION_HPP__ #define __STAN__VERSION_HPP__ #include <string> namespace stan { /** Major version number for Stan package. */ const std::string MAJOR_VERSION = "alpha"; /** Minor version number for Stan package. */ const std::string MINOR_VERSION = "0"; } #endif <commit_msg>a...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999-2002 The Apache Software 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: * * 1. Red...
<commit_before>/* * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood * 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 *...
<commit_before>#include "endtoendtest.h" using namespace std; using namespace cv; using namespace alpr; EndToEndTest::EndToEndTest(string inputDir, string outputDir) { this->inputDir = inputDir; this->outputDir = outputDir; } void EndToEndTest::runTest(string country, vector<std::string> files) { Alpr...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the QtNetwork module of the Qt Toolkit. ** ** $QT_BEGI...
<commit_before>// Copyright (c) 2015, Galaxy Authors. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: yuanyi03@baidu.com #include "curl_downloader.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <errno...
<commit_before>// // Copyright (c) 2015 CNRS // // This file is part of Pinocchio // Pinocchio 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 // 3 of the License, or (at your option) a...
<commit_before>#include "arch/linux/arch.hpp" #include "arch/linux/coroutines.hpp" #include "concurrency/cond_var.hpp" #include "arch/linux/thread_pool.hpp" #include "config/args.hpp" #include <stdio.h> #include <sys/mman.h> #include <ucontext.h> #include <arch/arch.hpp> #include "utils.hpp" #ifdef VALGRIND #include ...
<commit_before>// __BEGIN_LICENSE__ // Copyright (c) 2009-2012, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use ...
<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>/* * This source file is part of ARK * For the latest info, see https://github.com/ArkNX * * Copyright (c) 2013-2019 ArkNX 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...
<commit_before>#include "ros/ros.h" #include "geometry_msgs/Twist.h" #include "geometry_msgs/Vector3.h" #include "scr_proto/DiffCommand.h" #include <eigen3/Eigen/Dense> // Physical Parameters... What do to with these? double wheel_radius=4.875/2.0*.0254, axle_half_length=8.4*.0254; // Maximum loaded motor rotation spe...
<commit_before> /** ========================================================================== * 2011 by KjellKod.cc, modified by Vrecan in https://bitbucket.org/vrecan/g2log-dev * 2015, adopted by KjellKod for g3log at:https://github.com/KjellKod/g3sinks * * This code is PUBLIC DOMAIN to use at your own risk and comes...
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * 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 c...
<commit_before>#ifndef DUNE_MULTISCALE_MSFEM_DIFFUSION_EVALUATION_HH #define DUNE_MULTISCALE_MSFEM_DIFFUSION_EVALUATION_HH #include <dune/multiscale/msfem/msfem_traits.hh> #include <dune/multiscale/problems/base.hh> #include <dune/multiscale/problems/selector.hh> #include <dune/gdt/functionals/l2.hh> namespace Dune {...
<commit_before>/* * imageresizer.cpp * * Created on: Jul 8, 2016 * Author: Jason */ #include "common/base.h" #include "imageresizer.h" #include <stdexcept> ImageResizer::ImageResizer() :m_handle(NULL), m_result(NULL) { } ImageResizer::~ImageResizer() { } void ImageResizer::Create(int target_width, int ...
<commit_before>// // simulator.h // AllenCahnFD // // Created by Yue Sun on 7/20/15. // Copyright (c) 2015 Yue Sun. All rights reserved. // #ifndef __AllenCahnFD__simulator__ #define __AllenCahnFD__simulator__ #include <iostream> #include "cl_common.hpp" // Uncomment the following line if using OpenCL Buffer ob...
<commit_before>//////////////////////////////////////////////////////// // // Bucket representation for TKDInterpolator(Base) // // The class store data and provides the interface to draw and print. // The bucket - generalized histogram bin in N dimensions is represented by unprocessed data like // - experimental PDF...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>// Copyright 2020 the Open GEE Contributors. // Copyright 2017 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...
<commit_before>#include <cstring> #include "ch.h" #include "hal.h" #include "chprintf.h" #include "ff.h" #include "ADXL345.h" #include "ITG3200.h" #include "HMC5843.h" #include "SampleAndControl.h" #include "SampleBuffer.h" #include "SpeedController.h" // Class static data SampleAndControl * SampleAndControl::insta...
<commit_before>#include <functional> #include <array> #include <iostream> #include <random> #include "Common.h" #include "CGame.h" namespace odb { void CGame::reset() { timeEllapsed = 0; } CGame::CGame() { gameState = EGameState::kGame; reset(); } void CGame::tick(long ms...
<commit_before>#include "unittest/gtest.hpp" #include "clustering/registrar.hpp" #include "clustering/registrant.hpp" #include "unittest/clustering_utils.hpp" #include "unittest/dummy_metadata_controller.hpp" #include "unittest/unittest_utils.hpp" namespace unittest { namespace { class monitoring_controller_t { pub...
<commit_before>// // XMLInterpreter.cpp // SwingGame // // Created by Tim Brier on 11/10/2014. // Copyright (c) 2014 tbrier. All rights reserved. // // ============================================================================= // Include Files // -----------------------------------------------------------------...
<commit_before>#ifndef _MSC_VER #include <signal.h> #endif #include <iostream> #include <sstream> #include "HTTP/Server.h" #include "HTTP/RespSources/FSRespSource.h" #include "HTTP/RespSources/ZipRespSource.h" #include "HTTP/RespSources/WSEchoRespSource.h" #include "HTTP/RespSources/CombinerRespSource.h" #include "HT...
<commit_before>// Ouzel by Elviss Strazdins #ifndef OUZEL_GRAPHICS_OGLPROCEDUREGETTER_HPP #define OUZEL_GRAPHICS_OGLPROCEDUREGETTER_HPP #include "../../core/Setup.h" #if OUZEL_COMPILE_OPENGL #include <algorithm> #include <stdexcept> #include "OGL.h" #if OUZEL_OPENGLES # include "GLES/gl.h" # include "GLES2/gl2....
<commit_before>/************************************************************************* * Copyright (C) 2011-2012 by Paul-Louis Ageneau * * paul-louis (at) ageneau (dot) org * * * * ...
<commit_before>#ifndef STAN_MATH_PRIM_MAT_FUN_COV_PERIODIC_HPP #define STAN_MATH_PRIM_MAT_FUN_COV_PERIODIC_HPP #include <stan/math/prim/scal/meta/return_type.hpp> #include <stan/math/prim/scal/err/check_size_match.hpp> #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/prim/mat/fun/distance.hpp> #include ...
<commit_before>#include "Image.h" namespace sfc { Image::Image(const std::string& path) { std::vector<unsigned char> buffer; unsigned w, h; unsigned error = lodepng::load_file(buffer, path); if (error) throw std::runtime_error(lodepng_error_text(error)); lodepng::State state; state.decoder.color_convert...
<commit_before>// Scintilla source code edit control /** @file LexVB.cxx ** Lexer for Visual Basic and VBScript. **/ // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #inc...
<commit_before>#include <GL/glew.h> #include <glm/glm.hpp> #include <assimp/Importer.hpp> #include <assimp/scene.h> #include <assimp/postprocess.h> #include "Model.h" #include "Vertex.h" using namespace eyesore; using namespace glm; using std::string; using std::vector; static Mesh extractMesh(const aiMesh *mesh) {...
<commit_before>/************************************************************************* * * $RCSfile: SwUndoTOXChange.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-03-29 14:39:12 $ * * The Contents of this file are made available subject to the terms of * either of the followin...
<commit_before>#include "World.hh" World::World() { int banki = 0; uint32_t *bankptr = (uint32_t *) (rom + BANK_PTR); uint32_t rel = bankptr[banki]; uint32_t next = bankptr[banki + 1]; while (next > ROM_OFFSET) { _banks.push_back(std::vector<Map>()); std::vector<Map> &maps = _banks.back()...
<commit_before>/** * @file amici.cpp * @brief core routines for integration */ #include "amici/amici.h" #include "amici/steadystateproblem.h" #include "amici/backwardproblem.h" #include "amici/forwardproblem.h" #include "amici/misc.h" #include <cvodes/cvodes.h> //return codes #include <sundials/sundi...
<commit_before>#ifndef _SNARKFRONT_DSL_UTILITY_HPP_ #define _SNARKFRONT_DSL_UTILITY_HPP_ #include <array> #include <cassert> #include <cstdint> #include <istream> #include <ostream> #include <string> #include <vector> #include <snarklib/Util.hpp> #include <cryptl/BitwiseLUT.hpp> #include <cryptl/ASCII_Hex.hpp> #inc...
<commit_before>/* * Copyright (c) 2007, Michael Feathers, James Grenning and Bas Vodde * 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 ...