text
stringlengths
54
60.6k
<commit_before>#include "EditorScene.hpp" EditorScene* EditorScene::activeScene = nullptr; // --------------------------------------------------------------------------- // Prolog Interface to Scene Editing Commands // --------------------------------------------------------------------------- // TODO: Move to appro...
<commit_before>#pragma once #include "point2d.hpp" #include "rect2d.hpp" #include "rect_intersect.hpp" #include "angles.hpp" #include "../base/math.hpp" #include <cmath> namespace m2 { /// axis aligned rect template <typename T> class AnyRect { ang::Angle<T> m_angle; /// @todo No need to store orthos...
<commit_before>#include "misc_ui.hpp" #include <wx/stdpaths.h> #include <wx/msgdlg.h> #include <wx/arrstr.h> #include <exception> #include <stdexcept> namespace Slic3r { namespace GUI { #ifdef SLIC3R_DEV void check_version(bool manual) { } #else void check_version(bool manual) { } #endif const wxString var(con...
<commit_before>#include "Hearthstone.h" #include <QFile> #include <QDesktopServices> #include <QSettings> #include <QTextStream> #include <QRegExp> #include <QJsonDocument> #include <QJsonObject> #include <QDirIterator> #include <QDateTime> #ifdef Q_OS_MAC #include "OSXWindowCapture.h" #elif defined Q_OS_WIN #incl...
<commit_before>/************************************************************************************* * Copyright (C) 2012 by Alejandro Fiestas Olivares <[email protected]> * * * * This program is free software; you can r...
<commit_before> #include "CTimeManager.h" #include <GLFW/glfw3.h> f64 CTimeManager::CUpdateTick::GetTick() const { return Tick; } f64 CTimeManager::CUpdateTick::GetElapsedTime() const { return Tick; } f64 CTimeManager::CUpdateTick::GetMaxDuration() const { return MaxDuration; } f64 CTimeMa...
<commit_before>/* MobaTools.h - a library for model railroaders Author: fpm, [email protected] Copyright (c) 2019 All right reserved. Functions for the stepper part of MobaTools */ #include <MobaTools.h> // Global Data for all instances and classes -------------------------------- extern uint8_t timerInitial...
<commit_before>/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this fil...
<commit_before>#include "crange_arch.hh" #include "radix.hh" enum { radix_debug = 0 }; #define dprintf(...) do { if (radix_debug) cprintf(__VA_ARGS__); } while(0) static_assert(key_bits == bits_per_level * radix_levels, "for now, we only support exact multiples of bits_per_level"); // Returns the inde...
<commit_before>#include "logging.h" #include <iostream> #include <QString> void ERROR(QString mesg){ QString string; string ="ERROR: "+mesg; std::cerr << string.toStdString() << std::endl; } void WARNING(QString mesg){ QString string; string="WARNING: "+mesg; std::cerr << string.toStdString() <...
<commit_before>/* Kopete , The KDE Instant Messenger Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <[email protected]> Viva Chile Mierda! Started at Wed Dec 26 03:12:10 CLST 2001, Santiago de Chile Kopete (c) 2002-2003 by the Kopete developers <[email protected]> *********************...
<commit_before>/* Kopete , The KDE Instant Messenger Copyright (c) 2001-2002 by Duncan Mac-Vicar Prett <[email protected]> Viva Chile Mierda! Started at Wed Dec 26 03:12:10 CLST 2001, Santiago de Chile Kopete (c) 2002-2005 by the Kopete developers <[email protected]> *********************...
<commit_before>// Copyright 2021 The TCMalloc 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
<commit_before> #include <vector> #include "geometry/permutation.hpp" #include "geometry/orthogonal_map.hpp" #include "geometry/r3_element.hpp" #include "glog/logging.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "quantities/si.hpp" #include "testing_utilities/almost_equals.hpp" using principia::si::M...
<commit_before>#include "LibraryPanel.h" #include "LibraryPage.h" #include <wx/notebook.h> #include <easyanim.h> #include <easymesh.h> #include <easyscale9.h> #include <easyparticle3d.h> #include <easyparticle2d.h> #include <easyejoy2d.h> #include <easyterrain2d.h> #include <easytexture.h> #include <easyicon.h> #incl...
<commit_before><commit_msg>Fix how we calculate workarea size (_NET_WORKAREA gives width/height).<commit_after><|endoftext|>
<commit_before>// Copyright (c) 2009 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/process_watcher.h" #include <errno.h> #include <signal.h> #include <sys/event.h> #include <sys/types.h> #inclu...
<commit_before>/* * Copyright 2011-2018 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ #include "bgfx_p.h" #include "nvapi.h" namespace bgfx { /* * NVAPI * * Reference: * http://docs.nvidia.com/gameworks/content/gameworkslibrary/coresdk/nvapi/i...
<commit_before>/*************************************************************************\ ** ** tOutput.cpp: Functions for output objects ** ** ** ** $Id: tOutput.cpp,v 1.7 1998-06-04 17:57:10 gtucker Exp $ \*************************************************************************/ #include "tOutput.h" /********...
<commit_before>#include "GameObject.h" #include "Engine.h" #include "Objects\LevelGrid.h" #include "Scenes\GameplayScene.h" USING_NS_CC; GameObject::GameObject(Type type) : _direction(Direction::UP), _sprite(nullptr), _engine(Engine::getInstance()), _type(type), _isPassable(true) { } GameObject::~GameObject() { ...
<commit_before>/* Copyright 2017 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 "ofApp.h" //-------------------------------------------------------------- void ofApp::setup() { ofSetLogLevel(OF_LOG_VERBOSE); ofSetLogLevel("ofThread", OF_LOG_ERROR); ofEnableAlphaBlending(); doDrawInfo = true; targetWidth = 640; targetHeight = 480; #if defined(TARGET_O...
<commit_before>#pragma once //=====================================================================// /*! @file @brief イグナイター・アプリケーション・クラス @author 平松邦仁 ([email protected]) @copyright Copyright (C) 2017, 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/R...
<commit_before>// // SettingsMVC.cpp // MultitouchPadOsc is released under the MIT License. // // Copyright (c) 2011 - 2012, Paul Vollmer http://www.wrong-entertainment.com // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Sof...
<commit_before>#include "stdafx.h" #include "CoreDelegateImpl.h" #include <GameCore/Core.h> #include <GameCore/Render/IRenderer.h> #include <GameCore/Render/HardwareBufferManagerBase.h> #include <GameCore/Input/inputsystem.h> #include <GameCore/Render/OpenGL/GlUitlities.h> #include <GameCore/Render/TextureManager.h> ...
<commit_before>#include <ontology/olink.h> /******************************************************************************** * Print out the link information ********************************************************************************/ void Olink::printLink(){ if (valued){ cout << "\t\tLink Name: " << name <...
<commit_before>/* * Copyright (c) 2010 * Hugo Stefan Kaus Puhlmann <[email protected]> * * 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>#include <sstream> #include <fcntl.h> #include "Array.h" #include "ObjectIO.h" #include "VM.h" namespace magpie { using std::ostream; gc<BufferObject> asBuffer(gc<Object> obj) { return static_cast<BufferObject*>(&(*obj)); } gc<FileObject> asFile(gc<Object> obj) { return static_cas...
<commit_before>/* * * Copyright 2019 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><commit_msg>remove depends on set container<commit_after><|endoftext|>
<commit_before>#pragma once #include <vector> #include "depthai-shared/common/CameraBoardSocket.hpp" #include "depthai-shared/common/CameraInfo.hpp" #include "depthai-shared/common/Extrinsics.hpp" #include "depthai-shared/common/Point3f.hpp" #include "depthai-shared/common/StereoRectification.hpp" // libraries #inclu...
<commit_before>/// /// @file print.cpp /// /// Copyright (C) 2016 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <print.hpp> #include <primecount-internal.hpp> #include <int128.hpp> #include <stdint.h> #in...
<commit_before>#ifndef OPENGM_PARAMETERS #define OPENGM_PARAMETERS namespace opengm{ template<class T,class I> class Parameters{ public: typedef T ValueType; typedef I IndexType; Parameters(const IndexType numberOfParameters=0) : params_(numberOfParameters){ } ValueTy...
<commit_before>#include "Halide.h" #include <tiramisu/utils.h> #include <cstdlib> #include <iostream> #include "mkl_cblas.h" #include "sgemm_wrapper.h" #include "benchmarks.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus } // extern "C" #endif int main(int, char **) { std::vector<std::chrono::dur...
<commit_before>#include <af/seq.h> #include <af/array.h> #include <af/data.h> #include "error.hpp" namespace af { AFAPI int end = -1; AFAPI seq span(af_span); void seq::init(double begin, double end, double step) { this->s.begin = begin; this->s.end = end; this->s.step = step; if(step != 0) { ...
<commit_before>#include "factory.h" #ifdef USE_OPENCV #include "opencv_video_source.h" #include "opencv_video_target.h" #endif // USE_OPENCV #ifdef USE_FFMPEG #include "ffmpeg_video_target.h" #endif #ifdef USE_I420 #ifdef USE_EPIPHANSDK #include "epiphansdk_video_source.h" #endif #ifdef USE_LIBVLC #include "vlc_video_s...
<commit_before>/* * Copyright (C) 2009 Google Inc. All rights reserved. * Copyright (C) 2013 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source ...
<commit_before>/************************************************************************* * * TIGHTDB CONFIDENTIAL * __________________ * * [2011] - [2012] TightDB Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of TightDB Incorporated and its suppli...
<commit_before>/* * Copyright (C) 2008, 2009 Nokia Corporation. * * Contact: Marius Vollmer <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation....
<commit_before><commit_msg>Replace `#include` line with a forward declaration.<commit_after><|endoftext|>
<commit_before>/** * @file raw_time.cpp * */ #include "raw_time.h" #include <mutex> static std::mutex formatMutex; using namespace himan; raw_time::raw_time(const boost::posix_time::ptime& ptime) { itsDateTime = ptime; } raw_time::raw_time(const std::string& theDateTime, const std::string& theTimeMask) { if (t...
<commit_before>// Copyright 2022 Google LLC // SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 //...
<commit_before>// Copyright (c) 2011, Cornell University // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // ...
<commit_before>#include <ros/ros.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/video/video.hpp> #include <pthread.h> #include <geometry_msgs/Point.h...
<commit_before>/* * Copyright (c) 2011, Vanadium Labs LLC * 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 * no...
<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. Some parts of this code ar...
<commit_before>//***************************************************************************** // // Copyright 2015 Microsoft 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 <iostream> #include <fstream> #include <string> // Loriano: let's try Armadillo quick code #include <armadillo> #define ENTDIM 8 #define COORDIM (ENTDIM-2) #define PARAMDIM 5 namespace { int numofline (const char * fname) { int number_of_lines = 0; std::string line; std::i...
<commit_before>/******************************************************************************* * tests/api/operations_test.cpp * * Part of Project c7a. * * * This file has no license. Only Chuck Norris can compile it. ******************************************************************************/ #include <c7a...
<commit_before>/* Copyright (C) 2010 George Kiagiadakis <[email protected]> Copyright (C) 2010 Collabora Ltd. @author George Kiagiadakis <[email protected]> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser Genera...
<commit_before>#include "core/connection.hpp" // boost #include <boost/test/unit_test.hpp> /** * Example test cases for core connections. * These this test shows how connections are used in general. * Tests for special cases are below. */ BOOST_AUTO_TEST_CASE(examples) { //test trivial connection of two objects ...
<commit_before>#include <iostream> #include <cassert> #include <random> #include <tuple> #include <map> #include <vector> #include <algorithm> #include <memory> #include <google/profiler.h> #include <boost/timer.hpp> #include <boost/filesystem.hpp> #include <boost/lexical_cast.hpp> #include <apr_mmap.h> #include <apr...
<commit_before>#include <libcryptosec/ECDSAKeyPair.h> #include <libcryptosec/ec/Curve.h> #include <libcryptosec/ec/BrainpoolCurveFactory.h> #include <fstream> #include "gtest.h" #include <stdio.h> class BrainpoolEcTest : public ::testing::Test { protected: virtual void SetUp() { } void testHardcodedCurve(Brainpoo...
<commit_before>/* Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ri...
<commit_before>#include "main.h" //just an example int main() { ustring addre; addre.fromString(string("BM-2cUwUoj9YKoxsZMKT7C5N46tC1KTdUQZpH")); //just a test address PubAddr address; bool loaded = address.loadAddr(addre); BitMRC bitmrc; bitmrc.start(); if(loaded) bitmrc.getPubKey(address); while (1...
<commit_before>// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights // reserved. See file COPYRIGHT for details. // // This file is part of the MFEM library. For more information and source code // availability see http...
<commit_before>/******************************************************************************* * thrill/common/fast_string.hpp * * (Hopefully) fast static-length string implementation. * * Part of Project Thrill. * * Copyright (C) 2015 Alexander Noe <[email protected]> * * This file has no license. Only Chuc...
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <[email protected]> * * Copyright: * Guido Tack, 2007 * * Last modified: * $Date$ by $Author$ * $Revision$ * * This file is part of Gecode, the generic constraint * development...
<commit_before>#ifndef _TRACER_H #define _TRACER_H #include "stdafx.h" #define TRACER_ENABLED 1 #define HEAP 1 #define STACK 2 #define READ 1 #define WRITE 2 #define NOTE 3 #ifdef TRACER_ENABLED void tracer_dump(const string& x); void tracer_dump(const vector<string>& x); void tracer_dump(const ma...
<commit_before>// Licensed under the MIT License <http://opensource.org/licenses/MIT>. // SPDX-License-Identifier: MIT // Copyright (c) 2019 Daniil Goncharov <[email protected]>. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files ...
<commit_before>/*============================================================================== Program: 3D Slicer Copyright (c) 2010 Kitware Inc. See COPYRIGHT.txt or http://www.slicer.org/copyright/copyright.txt for details. Unless required by applicable law or agreed to in writing, software distribut...
<commit_before>/*! @file @copyright Edouard Alligand and Joel Falcou 2015-2017 (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_BRIGAND_FUNCTIONS_COMPARISON_LESS_HPP #define BOOST_BRIGAND_FUNCTIONS_COMPARISON_LESS_HPP #include <brigand/types/bool.hpp> namespace brigand {...
<commit_before>#pragma once #include <string> #include <sstream> #include <cassert> #include "detail/parse.hpp" #include "detail/argumentsCount.hpp" #include "But/Log/Backend/toString.hpp" #include "But/Log/Backend/typeString.hpp" namespace But { namespace Format { /** @brief represents a parsed format, from a given ...
<commit_before>//m=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- // // Copyright (c) 2012, Matthew Renaud // All rights reserved. // // Licensed under the FreeBSD license. See LICENSE file for details. // //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- #ifndef MRR_U...
<commit_before><commit_msg>Update Prime Factorization.cpp<commit_after><|endoftext|>
<commit_before>#include <stdio.h> #include <stdlib.h> #include <vector> #include <string> #include "ros/ros.h" #include "std_msgs/MultiArrayLayout.h" #include "std_msgs/MultiArrayDimension.h" #include "std_msgs/Int8MultiArray.h" #include <fstream> #include <sstream> #include <unistd.h> using std::string; typedef std::...
<commit_before>#include "RegisterGlobals.hpp" void noob::register_globals(asIScriptEngine* script_engine) { noob::globals& g = noob::globals::get_instance(); int r; r = script_engine->RegisterGlobalFunction("shape_handle sphere_shape(float)", asMETHOD(noob::globals, sphere_shape), asCALL_THISCALL_ASGLOBAL, &g); as...
<commit_before>// Copyright 2015-2020 Elviss Strazdins. All rights reserved. #include <array> #include <stdexcept> #include <android/input.h> #include "InputSystemAndroid.hpp" #include "GamepadDeviceAndroid.hpp" #include "../../core/android/EngineAndroid.hpp" #include "../../core/Window.hpp" namespace ouzel::input::a...
<commit_before> #include "E_ConnectivityAccessor.h" #include "E_TriangleAccessor.h" #include "../Mesh/E_Mesh.h" #include <E_Geometry/E_Triangle.h> #include <E_Geometry/E_Vec3.h> #include <Rendering/Mesh/VertexAttributeAccessors.h> #include <EScript/Basics.h> #include <EScript/StdObjects.h> namespace E_Rendering{ ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. This software is dist...
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/vespalib/testkit/test_kit.h> #include <vespa/eval/eval/gbdt.h> #include <vespa/eval/eval/vm_forest.h> #include <vespa/eval/eval/llvm/deinline_forest.h> #include <vespa/eval/ev...
<commit_before>#include "basicopenglview.h" // this version demonstrates using the mouse to inout some points and draw lines between them BasicOpenGLView::BasicOpenGLView(QWidget *parent) : QGLWidget(parent), polygons(QVector< QVector<QVector3D> >()) { clearon = false; mousedown = false; lastpt = -1...
<commit_before>#include <iostream> #include <cmath> #include <genecis/container/array.h> #include <genecis/signal/sample_rate.h> #include <genecis/signal/fourier_transform.h> using namespace genecis::container ; using namespace genecis::signal ; using namespace std ; double sinc( double x ) { double result = 1 ; if...
<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-2006 Torus Knot Software Ltd Also see acknowledgements in Readme.html This...
<commit_before>#include <vector> #include "toml.h" #include <random> #include <iostream> #include <cmath> #include "xoroshiro128plus.h" #include "statistics.h" #include "properties.h" inline void metropolis_sweep(std::vector<std::vector<double> >& lattice, xoroshiro128plus& gen, ...
<commit_before>// @(#)root/io:$Id$ // Author: Rene Brun 18/05/2006 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>#include "Hotkeys.h" #include "Actions.h" std::map<const std::string, unsigned int> hotkeysMap = std::map<const std::string, unsigned int>(); std::map<const unsigned int, Hotkey*> hotkey = std::map<const unsigned int, Hotkey*>(); void InitHotkeysMap() { hotkeysMap["space"] = VK_SPACE; hotkey...
<commit_before>/** * @copyright Copyright 2018 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>#include <taichi/common/util.h> #include <taichi/common/task.h> #include <taichi/visual/gui.h> #include "sound.h" TC_NAMESPACE_BEGIN constexpr int n = 100; constexpr real room_size = 10.0_f; constexpr real dx = room_size / n; constexpr real c = 340; constexpr real alpha = 0.0001; Array2D<real> p, q, r...
<commit_before>// MIT License // // Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including w...
<commit_before>//===- MapFile.cpp --------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<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>#include <sstream> using std::ostringstream; #include "shared_read_write_remote_classifier.h" #include "log.h" namespace HybridProtocol_PPMOSI_SS { SharedReadWriteRemoteClassifier::SharedReadWriteRemoteClassifier() : Classifier() , _saved_mode(Mode::PRIVATE) {} SharedReadWriteRemoteClassifier::~...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before>/************************************************************************* * * $RCSfile: canvasfont.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-11-26 17:11:39 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>#include <iostream> #include "EightQueens.h" namespace EightQueensProblem { bool EightQueensSolver::eightQueens( bool spotTaken[8][8], int numQueensPositioned ) {//Does the main line of work by recursively calling itself. spotTaken is an array of bools representing a board (spaces numbered 0...7 in e...
<commit_before>#include "window.h" namespace thirdsengine { namespace graphics { Window *Window::instance = NULL; Window::Window(const char *title, int width, int height) { instance = this; m_Title = title; m_Width = width; m_Height = height; m_Closed = false; if (!init()) { glfwTermin...
<commit_before>#include "Models_Manager.h" Models_Manager::Models_Manager() { //TODO more elegant solution, AKA method for creating models // triangle game object Transform t1 = Transform( Vector3(0, 0, 0), Vector3(1, 1, 1), Quaternion() ); Triangle* triangle = new Triangle(t1, Color::RED); t...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...
<commit_before><commit_msg>Bug fixes<commit_after><|endoftext|>
<commit_before>#include "network.h" #include <QDebug> Network::Network(QObject *parent) :QObject(parent) { my_socket = new QUdpSocket(this); my_socket->bind(QHostAddress::LocalHost, 1337); connect(my_socket, SIGNAL(readyRead()), this, SLOT(processPendingDatagram())); } void Network::sendData(Q...
<commit_before> TGraphErrors * MakeGraphSparse(TTree * tree, const Char_t * expr="mean-fdelta:run", const Char_t * cut="isTPC&&ptype==0&&theta>0"){ // Format of expr: Var:Error:Run // // Make a sparse draw of the variables // Format of expr : Var:Error:Run // const Int_t entries = tree->Draw(expr,cut,"go...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkKitwareContourFilter.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for detail...
<commit_before>#include "Host.h" #include <math.h> // ceil static const int INITIAL_WINDOW_SIZE = 0; // TODO: change this number static const int DATA_PKT_SIZE = 1; // TODO: change this number Host::Host(CongestionAlg congestion_algorithm , Link &host_link) : my_link(host_link) { window_size = INITIAL_WINDOW_SIZE...
<commit_before>/* * Copyright 2015-2017, Robotics and Biology Lab, TU Berlin * * 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 copyright notice, * thi...
<commit_before>#include "GameController.h" #include "Tools/Debug/DebugRequest.h" #include <Representations/Infrastructure/Configuration.h> #include <PlatformInterface/Platform.h> GameController::GameController() : lastChestButtonEventCounter(0) { DEBUG_REQUEST_REGISTER("gamecontroller:play", "force the play state...
<commit_before>#include "../test.h" #include <QFile> #include "../../src/placement/constraint_updater.h" #include "../../src/graphics/qimage_drawer.h" TEST(Test_ConstraintUpdater, Draw) { int width = 512; int height = 256; auto drawer = std::make_shared<Graphics::QImageDrawer>(width, height); ConstraintUpdater...
<commit_before> #include <irtkImage.h> #include <nr.h> #include <irtkModeFilter.h> #include <map> #ifdef WIN32 #include <time.h> #else #include <sys/time.h> #endif template <class VoxelType> irtkModeFilter<VoxelType>::irtkModeFilter() { // Default connectivity. this->_Connectivity = CONNECTIVITY_26; } template...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2022. All rights reserved */ #ifndef _Stroika_Foundation_Cryptography_Digest_ResultTypes_inl_ #define _Stroika_Foundation_Cryptography_Digest_ResultTypes_inl_ 1 /* ******************************************************************************** ********...
<commit_before>// Copyright 2015 Alessio Sclocco <[email protected]> // // 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 requir...