text
stringlengths
54
60.6k
<commit_before>// STL #include <cassert> #include <iostream> #include <sstream> #include <fstream> #include <vector> #include <list> #include <string> // Boost (Extended STL) #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/date_time/gregorian/gregorian.hpp> #include <boost/tokenizer.hpp> #include <...
<commit_before>#include <dsp.h> #include <apf.h> #include <gmi_mesh.h> #include <apfMDS.h> #include <apfMesh2.h> #include <maSize.h> #include <maMesh.h> #include <PCU.h> #include <sstream> #include <vector> using namespace std; static void writeStep(apf::Mesh* m, int i) { std::stringstream ss; ss << "step_" << i ...
<commit_before>#include <vector> #include <map> #include <cstring> #include <algorithm> #include <iostream> #include "alloc.hpp" #include "safemacros.h" #include <sys/mman.h> #include <fcntl.h> #include <errno.h> namespace aL4nin { template <> struct meta<int> { int* allocate(std::size_t elems...
<commit_before>#include "line_plot.hpp" #include <cmath> #include <algorithm> #include <iostream> #include <cassert> #include <QPainter> #include <QPainterPath> #include <QDebug> using namespace std; namespace datavis { LinePlot::LinePlot(QObject * parent): Plot(parent) {} json LinePlot::save() { json d; ...
<commit_before>//===- llvm/unittest/ADT/OptionalTest.cpp - Optional unit tests -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include <unordered_map> #include <dafs/handler.hpp> #include <dafs/node.hpp> #include <gtest/gtest.h> #include "mock_partition.hpp" #include "mock_sender.hpp" class HandlerTest: public testing::Test { virtual void SetUp() { node_under_test = std::make_shared<dafs::Node>( ...
<commit_before>#include "HalfEdgeMesh.h" using namespace voom; int main(){ HalfEdgeMesh::ConnectivityContainer connect(2); // // // 0---3 // | \ | // 1---2 connect[0] << 0, 1, 2; connect[1] << 2, 3, 0; int nverts=4; HalfEdgeMesh mesh(connect,nverts); std::cout << "vertices:"<< std::endl; fo...
<commit_before>/** * @file IntegerVectorEncoding.hpp * @brief encoder interface implementation */ #include "../include/IntegerVectorEncoding.hpp" #include <stdint.h> #include <vector> #include <unordered_map> namespace backend { namespace genetic { IntegerVectorEncoding::IntegerVectorEncoding(const common::ty...
<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 "content/gpu/gpu_info_collector.h" #include <windows.h> #include <d3d9.h> #include <setupapi.h> #include "base/command_line....
<commit_before>// // Copyright (c) 2013 The ANGLE Project 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 <string.h> #include <cassert> #include <vector> #include "EGLWindow.h" #include "OSWindow.h" #ifdef _WIN32 #inclu...
<commit_before><commit_msg>coverity#704089 Unchecked return value<commit_after><|endoftext|>
<commit_before>#pragma once #include <iterator> #include <algorithm> #include <cmath> namespace cujak { namespace util { /** square of L2-norm */ template <class InputIterator> typename std::iterator_traits<InputIterator>::value_type square_sum(InputIterator begin, InputIterator end) { typedef typename std::iterat...
<commit_before>/************************************************************************* * * $RCSfile: dndevdis.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obr $ $Date: 2001-02-20 11:17:45 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>/* * Copyright (C) 2015 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
<commit_before>/* * * Copyright 2015 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, ...
<commit_before>// 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 "content/shell/shell_content_client.h" #include "base/string_piece.h" namespace content { ShellContentClient::~ShellContent...
<commit_before>// -*- Mode:C++ -*- /**************************************************************************************************/ /* */ /* Copyright (C) 2016 University of Hull ...
<commit_before>/* Copyright (c) 2010-present 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"), to deal in the Software without restriction, including without limitation the rights to use, c...
<commit_before>/* Copyright (c) 2010 - 2021 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"), to deal in the Software without restriction, including without limitation the rights to use, co...
<commit_before>/* Copyright (c) 2010 - 2021 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"), to deal in the Software without restriction, including without limitation the rights to use, co...
<commit_before>/* Copyright (c) 2010-present 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"), to deal in the Software without restriction, including without limitation the rights to use, c...
<commit_before>/* Copyright (c) 2010-present 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"), to deal in the Software without restriction, including without limitation the rights to use, c...
<commit_before>/* * * Copyright (C) 2010 MeVis Medical Solutions AG All Rights Reserved. * * 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...
<commit_before>/************************************************************************************ Copyright (C) 2005-2008 Assefaw H. Gebremedhin, Arijit Tarafdar, Duc Nguyen, Alex Pothen This file is part of ColPack. ColPack is free software: you can redistribute it and/or modify it under the t...
<commit_before><commit_msg>Fix some opcodes<commit_after><|endoftext|>
<commit_before>#include "catch.hpp" #include <iostream> //#include "Database_Creator.hpp" #include "Database_Sorter.hpp" person readPerson(std::string file_name, size_t index) { person result; std::ifstream file(file_name); for (size_t i = 0; i < index + 1; i++) { file >> result; } file.close(); return result;...
<commit_before>#include "BinaryTree.сpp" #include <fstream> #include <catch.hpp> SCENARIO("default constructor") { Tree<int> node; REQUIRE(node.root_() == nullptr); } SCENARIO("insert") { Tree<int> tree; int newEl; tree.fIn("Tree.txt"); std::ifstream("newEl.txt") >> newEl; tree.insert(newEl); ...
<commit_before>/* * Copyright (C) 2009-2011 Collabora Ltd <http://www.collabora.co.uk> * Copyright (C) 2009 Andre Moreira Magalhaes <andrunko@gmail.com> * Copyright (C) 2010-2011 Dario Freddi <drf@kde.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lib...
<commit_before>#define BOOST_TEST_MODULE test #include <boost/test/included/unit_test.hpp> #include <boost/algorithm/cxx11/all_of.hpp> #include <boost/assign/list_of.hpp> #include <iostream> #include <algorithm> #include "util.hpp" #include "direction.hpp" #include "state.hpp" #include "moves.hpp" BOOST_AUTO_TEST_CA...
<commit_before>/* Portions copyright (c) 2014 Stanford University and the Authors. Authors: Chris Dembia, Michael Sherman Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance...
<commit_before>// Initial version copied from Initial version copied from https://github.com/JetBrains/intellij-community/blob/master/native/WinFsNotifier/fileWatcher3.c // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. #ifdef _...
<commit_before>// This file is part of the dune-pymor project: // https://github.com/pyMor/dune-pymor // Copyright Holders: Felix Albrecht, Stephan Rave // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifdef HAVE_CMAKE_CONFIG #include "cmake_config.h" #elif defined (HAVE_CONFIG_H) ...
<commit_before>/* Copyright Barrett Adair 2015-2017 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_CLBL_TRTS_DETAIL_POLYFILLS_DISJUNCTION_HPP #define BOOST_CLBL_TRTS_DETAIL_POLYFILLS_DISJUNCTION_HPP #undef BO...
<commit_before>/* Copyright (C) 2015 Niels Ole Salscheider <niels_ole@salscheider-online.de> Copyright (C) 2014 Alexandr Akulich <akulichalexander@gmail.com> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTAB...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: imestatuswindow.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-07 17:40:49 $ * * The Contents of this file ar...
<commit_before>class Solution { public: /** * @param m: An integer m denotes the size of a backpack * @param A: Given n items with size A[i] * @return: The maximum size */ int backPack(int m, vector<int> A) { // write your code here } };<commit_msg>Solved 92<commit_after>class So...
<commit_before>/* Prototype delcaration */ #ifndef AAB_AUDEN_SOUND_CLASS_PROTOTYPE #define AAB_AUDEN_SOUND_CLASS_PROTOTYPE namespace aab { namespace auden { class Sound; } } #endif <commit_msg>Delete sound.hh<commit_after><|endoftext|>
<commit_before>/*============================================================================= # Filename: gquery.cpp # Author: Bookug Lobert # Mail: 1181955272@qq.com # Last Modified: 2015-10-20 12:23 # Description: query a database, there are several ways to use this program: 1. ./gquery ...
<commit_before>/** * Template C++ file. * Function with references to pointers: func(int *&ptr); */ /********************* Header Files ***********************/ /* C++ Headers */ #include <iostream> /* Input/output objects. */ //#include <fstream> /* File operations. */ //#include <sstream> /* String stream. */ #inc...
<commit_before>#ifndef VEXCL_FFT_PLAN_HPP #define VEXCL_FFT_PLAN_HPP /* The MIT License Copyright (c) 2012-2013 Denis Demidov <ddemidov@ksu.ru> 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 wi...
<commit_before>// Copyright 2020 Google LLC // // 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 o...
<commit_before>// Copyright 2016 Benjamin Glatzel // // 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>//-------------------------------------------- // WHIRL PROGRAMMING LANGUAGE // by: BigZaphod sean@fifthace.com // http://www.bigzaphod.org/whirl/ // // License: Public Domain //-------------------------------------------- #include <vector> #include <stdio.h> #include <stdlib.h> typedef std::vector<int...
<commit_before>/* * Copyright (C) 2017 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: OOXMLPropertySet.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: hbrinkm $ $Date: 2007-02-21 12:26:58 $ * * The Contents of this f...
<commit_before>#include <gtest/gtest.h> #include <ubiquity_motor/motor_serial.h> #include <ubiquity_motor/motor_message.h> #include <ros/ros.h> #include <string> #if defined(__linux__) #include <pty.h> #else #include <util.h> #endif class MotorSerialTests : public ::testing::Test { protected: virtual void SetUp(...
<commit_before>// // Copyright Copyright 2009-2021, AMT – The Association For Manufacturing Technology (“AMT”) // 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 Licens...
<commit_before>#include "CNNBallDetector.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; CNNBallDetector::CNNBallDetector() { DEBUG_R...
<commit_before>#include "sortedList.h" #include <iostream> #include <assert.h> using namespace std; struct ListElement { TypeElement value; ListElement* next; }; struct Iterator { ListElement* current; int index; }; struct SortedList { ListElement* sentinel; Iterator* iter; int size; }; ...
<commit_before>/* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. Al...
<commit_before>/** * @copyright Copyright 2016 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 b...
<commit_before>// // kern_iokit.hpp // Lilu // // Copyright © 2016-2017 vit9696. All rights reserved. // #ifndef kern_iokit_hpp #define kern_iokit_hpp #include <Headers/kern_config.hpp> #include <Headers/kern_util.hpp> #include <Headers/kern_patcher.hpp> #include <libkern/c++/OSSerialize.h> #include <IOKit/IORegi...
<commit_before>/* bzflag * Copyright (c) 1993-2012 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR *...
<commit_before>// @(#)root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.9 2005/08/10 16:26:35 brun Exp $ // Author: Richard Maunder 25/05/2005 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before>/* Copyright Eli Dupree and Isaac Dupree, 2011, 2012, 2013 This file is part of Lasercake. Lasercake is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of...
<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>/* * Copyright (c) 2003-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>// Copyright (c) 2015-2016 Andrew Sutton // All rights reserved #include "ast-hash.hpp" #include "ast.hpp" #include <typeinfo> namespace banjo { // Returns an initial hash value based on the dynamic type of T. template<typename T> std::size_t hash_type(T const& t) { return typeid(t).hash_code(); }...
<commit_before>#ifndef __ESN_EXCEPTIONS_H__ #define __ESN_EXCEPTIONS_H__ #include <exception> namespace ESN { class OutputIsNotFinite : public std::domain_error { public: OutputIsNotFinite() : std::domain_error("One or more outputs of the network are " "not finite valu...
<commit_before>// // AsyncTaskQueue.cpp // Clock Signal // // Created by Thomas Harte on 07/10/2016. // Copyright © 2016 Thomas Harte. All rights reserved. // #include "AsyncTaskQueue.hpp" using namespace Concurrency; AsyncTaskQueue::AsyncTaskQueue() #ifndef __APPLE__ : should_destruct_(false) #endif { #ifdef _...
<commit_before>// Copyright (C) 2010 - 2015 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. // Copyright (C) 2009 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., EML Research, gGmbH, University of H...
<commit_before> #include "zorba/zorba_api.h" #include <pthread.h> #include <iostream> using namespace std; using namespace xqp; /* Using Zorba in full api mode. Init the engine, create a query in main thread and execute it in parallel threads. This way we optimize on compiling time. */ void Displa...
<commit_before>/* * Main application window * * This file is part of softrig, a simple software defined radio transceiver. * * Copyright 2017 Alexandru Csete OZ9AEC. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fol...
<commit_before>#pragma once #include "syslog.h" #include <string> #include "blackhole/error.hpp" #include "blackhole/repository/factory/traits.hpp" namespace blackhole { namespace sink { enum class priority_t : unsigned { emerg = LOG_EMERG, alert = LOG_ALERT, crit = LOG_CRIT, err = LOG_...
<commit_before>#include <iostream> #include <string> #include "kangaru.hpp" /** * This example explains advanced use of kangaru and it's components. * It covers invoke and autocall (injection by setters) through service map. */ using std::cout; using std::endl; struct Caramel { Caramel() { cout << "Caramel ma...
<commit_before>/* * good.cpp * * First Last * uniqname@umich.edu * * A sample file for EECS 183 Style Grader. * * Demonstrates good style. */ #include <iostream> using namespace std; /** * Requires: Nothing. * Modifies: stdout. * Effects: Greets the world. */ void greet(void); int main(int argc, const ...
<commit_before>// Copyright 2014 MongoDB 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 law or a...
<commit_before>// $Id$ // vim:tabstop=2 /*********************************************************************** ***********************************************************************/ /** * k-best Batch Mira, as described in: * * Colin Cherry and George Foster * Batch Tuning Strategies for Statistical Machi...
<commit_before> // Qt includes #include <QDebug> #include <QFile> #include <QMessageBox> #include <QTextStream> #include <QTimer> // CTK includes #include <ctkCallback.h> // Visomics includes #include "voApplication.h" #include "voConfigure.h" // For Visomics_VERSION, Visomics_INSTALL_RSCRIPTS_DIR #include "voMainWin...
<commit_before>/** * @file Cosa/TWI/Driver/ADXL345.hh * @version 1.0 * * @section License * Copyright (C) 2013-2014, Mikael Patel * * 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...
<commit_before>/** \file add_isbns_or_issns_to_articles.cc * \brief A tool for adding missing ISBN's (field 020$a) or ISSN's (field 773$x)to articles entries, * in MARC-21 data. * \author Dr. Johannes Ruscheinski */ /* Copyright (C) 2015-2018, Library of the University of Tübingen This p...
<commit_before>/// HEADER #include "set_operation.h" /// PROJECT #include <csapex_vision/cv_mat_message.h> #include <csapex/model/connector_in.h> #include <csapex/model/connector_out.h> #include <utils_param/parameter_factory.h> /// SYSTEM #include <csapex/utility/register_apex_plugin.h> #include <QComboBox> #include...
<commit_before>#include <stddef.h> #include <stdint.h> #include <chrono> #include <iostream> #include <iomanip> #include <sstream> #include <functional> #include <Windows.h> #include <Console\Console.hpp> #include "Osiris.hpp" int32_t __stdcall StructuredExceptionPrinter( uint32_t ErrorCode, const EXCEPTION...
<commit_before>// // EmiCongestionControl.cpp // rock // // Created by Per Eckerdal on 2012-05-24. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #include "EmiCongestionControl.h" #include "EmiPacketHeader.h" #include "EmiNetUtil.h" #include <algorithm> #include <cmath> void EmiCongestionContr...
<commit_before>/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBicubicImageFilter.h" #include "SkBitmap.h" #include "SkBitmapDevice.h" #include "SkBitmapSource.h" #include "SkBlurImageFilter.h" #include "SkCanva...
<commit_before>#ifndef __CONCURRENCY_CORO_POOL_HPP__ #define __CONCURRENCY_CORO_POOL_HPP__ #include "errors.hpp" #include "concurrency/queue/passive_producer.hpp" #include "concurrency/drain_semaphore.hpp" /* coro_pool_t maintains a bunch of coroutines; when you give it tasks, it distributes them among the coroutines...
<commit_before>/* * Steve Vaught * This program uses the Unlicense */ // == Include statements == #include <iostream> #include <cmath> #include <string> #include <fstream> #include <iterator> #include <vector> #include <algorithm> #include <random> using namespace std; // == Function prototypes == string buildRa...
<commit_before>#include "webcam.hpp" #include <chrono> using namespace cv; using namespace std; Mat ellipticKernel(int width, int height = -1) { if (height==-1) { return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2)); } else { return getStructuringElement(MORPH_ELLIPSE,Size(widt...
<commit_before>#include "webcam.hpp" #include <chrono> using namespace cv; using namespace std; Mat ellipticKernel(int width, int height = -1) { if (height==-1) { return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2)); } else { return getStructuringElement(MORPH_ELLIPSE,Size(widt...
<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>#include "MessageBuilder.hpp" #include "common/LinkParser.hpp" #include "messages/Message.hpp" #include "messages/MessageElement.hpp" #include "providers/twitch/PubsubActions.hpp" #include "singletons/Emotes.hpp" #include "singletons/Resources.hpp" #include "singletons/Theme.hpp" #include "util/FormatTi...
<commit_before>/* CUDA global device memory vector * * Copyright (C) 2020 Jaslo Ziska * Copyright (C) 2020 Felix Höfling * Copyright (C) 2007 Peter Colberg * * This file is part of cuda-wrapper. * * This software may be modified and distributed under the terms of the * 3-clause BSD license. See accompanying f...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2012 Torus Knot Software Ltd Permission is hereby granted, free of charge, to an...
<commit_before>/*============================================================================= Library: CppMicroServices Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file ex...
<commit_before>#include <nex/math/boundingsphere.h> #include <nex/math/boundingbox.h> namespace nx { BoundingSphere::BoundingSphere() : center(vec3f()), radius(0.0f) { } BoundingSphere::BoundingSphere(const vec3f center, const float radius) : center(center), radius(radius) { } inline BoundingSphere ...
<commit_before>#include <QtCore> #include <QtWidgets> #include <random> #include "window.h" #include "soundchanges.h" #include "highlighter.h" #include "affixerdialog.h" Window::Window() { QWidget *mainwidget = new QWidget; setCentralWidget(mainwidget); m_layout = new QHBoxLayout; m_leftlayout = new ...
<commit_before>#include "window.h" #include <QtGui> Window::Window() : _glWidget(this), _qtimer(this) { connect(&_qtimer, SIGNAL(timeout()), this, SLOT(updateFPS())); _qtimer.start(1000); QHBoxLayout *mainLayout = new QHBoxLayout(this); mainLayout->addWidget(&_glWidget); setLayout(mainLayout); } void ...
<commit_before>#include <opencv2/opencv.hpp> #include <iostream> #include <math.h> //#include "easywsclient/easywsclient.hpp" //#include "easywsclient/easywsclient.cpp" #include <assert.h> #include <stdio.h> #include <string> #include <sstream> //using easywsclient::WebSocket; //static WebSocket::pointer ws = NULL; #...
<commit_before>#include "osg/Impostor" #include "osgDB/Registry" #include "osgDB/Input" #include "osgDB/Output" using namespace osg; using namespace osgDB; // forward declare functions to use later. bool Impostor_readLocalData(Object& obj, Input& fr); bool Impostor_writeLocalData(const Object& obj, Output& fw); // ...
<commit_before>#include <fstream> #include <array> #include <assert.h> #include <list> #include <threadpool.h> #include <iostream> #include "Waiter.h" #include "DoubleXY.h" #include "GLstate.h" // Multiplar av 4, because fu int SIZEX = 1000; int SIZEY = 600; static unsigned int FPSMAX = 60; static const int NRTHREADS...
<commit_before>/* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */ /* ------------------------------------------------------------------------- ATS License: see $ATS_DIR/COPYRIGHT Author: Ethan Coon Standard base for most diffusion-dominated PKs, this combines both domains/meshes of PKPhysical...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2011 Ulrich von Zadow // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either // version 2 of the Li...
<commit_before>/* * HyPerConnection.hpp * * Created on: Oct 21, 2008 * Author: Craig Rasmussen */ #ifndef HYPERCONN_HPP_ #define HYPERCONN_HPP_ #include "../columns/InterColComm.hpp" #include "../include/pv_common.h" #include "../include/pv_types.h" #include "../io/PVParams.hpp" #include "../io/BaseConnect...
<commit_before>// System Includes #include <sys/time.h> #include <unistd.h> #include <stdio.h> #include <signal.h> #include <math.h> // Foreign includes #include "readproc.h" #include "sysinfo.h" #include "escape.h" // Local Includes #include "Screen.h" #include "MatrixColumn.h" #include "PSModule.h" PSModule::PSMod...
<commit_before>/* Copyright (c) DataStax, 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 law or agreed to...
<commit_before>// Vsevolod Ivanov #include <string> #include <iostream> #include <opendht.h> #include <opendht/log.h> #include <opendht/dht_proxy_client.h> int main(int argc, char * argv[]) { auto hash = dht::InfoHash::get(argv[1]); std::shared_ptr<dht::Logger> logger = dht::log::getStdLogger(); dht::Dh...
<commit_before>// $Id$ # ifndef CPPAD_EXAMPLE_EIGEN_MAT_MUL_HPP # define CPPAD_EXAMPLE_EIGEN_MAT_MUL_HPP /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 Bradley M. Bell CppAD is distributed under multiple licenses. This distri...
<commit_before>/* * Copyright (c) 2013 Nicholas Corgan (n.corgan@gmail.com) * * Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt * or copy at http://opensource.org/licenses/MIT) */ #include <boost/test/unit_test.hpp> #include <pkmnsim/enums.hpp> #include <pkmnsim/team_pokemon.hpp> #inc...
<commit_before>/* * Copyright (c) 2012-2017 Daniele Bartolini and individual contributors. * License: https://github.com/dbartolini/crown/blob/master/LICENSE */ #include "core/command_line.h" #include "core/filesystem/path.h" #include "device/device_options.h" #include <stdlib.h> namespace crown { static void help...
<commit_before>#include <iostream> #include <boost/program_options.hpp> #include "dirMultiNaiveBayes.hpp" #include "niwBaseMeasure.hpp" #include "typedef.h" #include "timer.hpp" namespace po = boost::program_options; int main(int argc, char **argv){ // Declare the supported options. po::option...