text
stringlengths
5.71k
33.7k
#include "rasterizer.h" #include <cassert> // assert #include <cmath> // ceil #include <string> // memcpy #include <utility> // swap // // W is perspective z value while z is occlusion z value. // template<typename T> T interpolantXStep(const T (&values)[3], const Vertex& v0, const Vertex& v1, const Vertex& v...
/* +---------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | ...
// Copyright 2017 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. // A small example application showing the use of the C++ Headless Chrome // library. It navigates to a web site given on the command line, waits for it /...
// // "$Id: ShortcutAssignment.cxx 5600 2007-01-13 00:04:55Z spitzak $" // // Copyright 1998-2006 by <NAME> and others. // // 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 // ve...
// // Game.cpp // GLFWCameraView // // Created by <NAME> on 31/05/18. // Copyright © 2018 <NAME>. All rights reserved. // #include "Game.h" Game::Game(void){} Game::~Game(void){} /* Begin the Game Create the Scenary */ void Game::init() { loadTexture(&wonTexture,"won.png",GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T...
/* This is an implementation of the Hungarian algorithm in C++ * The Hungarian algorithm, also know as Munkres or Kuhn-Munkres * algorithm is usefull for solving the assignment problem. * * Assignment problem: Let C be an n x n matrix * representing the costs of each of n workers to perform any of n jobs. * The ...
/* This file is part of VoltDB. * Copyright (C) 2008-2020 VoltDB 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...
/* * \file OnlineBeamMonitor.cc * \author <NAME>/FNAL * modified by <NAME> INFN/Bicocca */ #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/ServiceRegistry/interface/Service.h" #include "D...
// Wrapper for UAI competition code // #include <cstdio> #include <iostream> #include <iomanip> #include <fstream> #include <queue> #include "boost/program_options.hpp" #include "graphmodel.h" #include "wmbe.h" using namespace std; using mex::mxObject; using mex::Var; using mex::VarSet; using mex...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #i...
#include "StimWalkCtrl.hh" #include "DelayWalk.hh" #include "user_realtime.h" #include "coman_properties.hh" #define THRESHOLD_DOUBLE_SUP_OSC 0.05 ///< threshold for VAS limitation (releated to oscillators) #define MAX_TRUNK_THRESHOLD 0.25 ///< threshold for the torso angle [rad] inline double pos(double x){ ret...
#include "DirectOverlay.h" #define M_PI 180.0 / 3.14159265358979323846//3.14159265358979323846264338327950288419716939937510 #define OFFSET_UWORLD 0x065a4af0 DWORD processID; HWND hwnd = NULL; int width; int height; int localplayerID; UINT_PTR connection; uint64_t base_address; DWORD_PTR Uworld; DWORD_PTR Pawn;...
// This file is part of RegSeg // // Copyright 2014-2017, <NAME> <<EMAIL>> // // 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 right...
#include <glib.h> #include <gtk/gtk.h> #include <stdlib.h> #include <gst/gst.h> #include <math.h> #include <gst/app/gstappsink.h> #include <clutter/clutter.h> #include <clutter-gst/clutter-gst.h> #include <clutter-gtk/clutter-gtk.h> #include <string.h> #include "face_detect.h" #define MAX_FACES 10 #define DETECT_SKI...
/** * Nappy Monitor * * Author: <NAME> * License: Apache License v2 */ extern "C" { #include "user_interface.h" #include "gpio.h" } #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <ArduinoOTA.h> #include <ArduinoJson.h> #include <SPI.h> #include <PubSubClient.h> // https://git...
#include "pvs_bsp.h" PORTAL* CalculateInitialPortal ( long Node ) { // this function builds a portal on the node plane large enough to // encompass all the leaves in its front and back trees, this portal will // then get sent down the tree to get carved into possible portals D3DXVECTOR3 MaxP, MinP, C...
/// Copyright 2015 Google Inc. 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...
/* * The MIT License (MIT) * * Copyright (c) 2022 <NAME> * * 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,...
/* ** EPITECH PROJECT, 2017 ** cpp_d0 ** File description: ** Map */ #include "Map.hpp" #include "Bsq.hpp" #include <cmath> #include <cstdlib> #include <ctime> #include <algorithm> #include "engine/components/HitboxComponent.hpp" #include "engine/components/TagComponent.hpp" #include "engine/components/PhysicsComponen...
/************************************************************************* * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved. * * See LICENSE.txt for license information ************************************************************************/ #include "core.h" #include "devcomm.h" #include "comm....
// Copyright (c) <NAME> // Licensed under the MIT License //----------------------------------------------------------------------------- // File: D3DMath.cpp // // Desc: Shortcut macros and functions for using DX objects // // // Copyright (c) 1997-1998 Microsoft Corporation. All rights reserved //-------------------...
//-------------------------------------------------------------------------------------- // File: ComputeShaderSort11.cpp // // Demonstrates how to use compute shaders to perform sorting on the GPU with DirectX 11. // // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------...
#include "Application.h" #include "Globals.h" #include "BacchusEditor.h" #include "ModuleWindow.h" #include "ModuleRenderer3D.h" #include "ModuleSceneManager.h" #include "GameObject.h" #include "ComponentCamera.h" #include "Blockhead.h" #include "BlockheadAbout.h" #include "BlockheadSettings.h" #include "BlockheadCo...
#include <algorithm> #include <atomic> #include <chrono> #include <format> #include <iostream> #include <mutex> #include <numbers> #include <numeric> #include <string> #include <thread> #include <vector> #define WIN32_LEAN_AND_MEAN #define VC_EXTRALEAN #include <Windows.h> #include "pixie.h" #define D_USE_WORKERS u...
namespace detail { const char16_t *find_ending_pair_quote(const char16_t *s, const char16_t *end, const char16_t *start) { assert(*s == u'‘'); // ’ const char16_t *startq = s; int nesting_level = 0; while (true) { if (s == end) throw Error(u"unpaired left single quotation mark", startq - start); if (*s == u...
// D3D12. #include <d3d12.h> // C++. #include <cassert> #include <string> #include <vector> // cxxopts. #include "cxxopts/include/cxxopts.hpp" // Local. #include "rg_dx12_frontend.h" #include "rg_dx12_data_types.h" #include "rg_dx12_utils.h" using namespace Microsoft::WRL; // *** CONSTANTS - STAR...
#include <cassert> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <math.h> #include <string> #include <vector> #include "tile.h" #include "location.h" #include "board.h" using namespace std; void add_tiles(const vector<Tile*> &t, vector<vector<string> > &his, unsigned int rows,...
#include <iostream> #include <iostream> #include "../HeaderFile/SupplierUI.h" #include "../HeaderFile/GoodInventory.h" #include "../HeaderFile/UserInterface.h" using namespace std; static const char* category_string[] = {"碗裝泡麵", "包裝餅乾", "利樂包", "寶特瓶", "酒"}; void SupplierUI::supplierSystem(){ while(!terminate){ ...
// Copyright 2016 The Fuchsia 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 "netboot.h" #include <assert.h> #include <errno.h> #include <fcntl.h> #include <fidl/fuchsia.boot/cpp/wire.h> #include <fidl/fuchsia.hardware.pow...
#include "md5.h" /* F, G and H are basic MD5 functions: selection, majority, parity */ #define F(x, y, z) (((x) & (y)) | ((~x) & (z))) #define G(x, y, z) (((x) & (z)) | ((y) & (~z))) #define H(x, y, z) ((x) ^ (y) ^ (z)) #define I(x, y, z) ((y) ^ ((x) | (~z))) /* ROTATE_LEFT rotates x left n bits */ #define...
//////////////////////////// Predictor ///////////////////////// // A Predictor estimates the probability that the next bit of // uncompressed data is 1. Methods: // p() returns P(1) as a 12 bit number (0-4095). // update(y) trains the predictor with the actual bit (0 or 1). class Predictor { int pr; // next pr...
/** * @file * @brief Implementation of charge propagation module with transient behavior simulation * @copyright Copyright (c) 2019-2020 CERN and the Allpix Squared authors. * This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md". * In applying this license, CERN...
#include <stdio.h> #include <stdlib.h> #include <omp.h> #include <cv.h> // #include <opencv2/photo/photo.hpp> using namespace cv; /*compute the primal error and residual*/ __inline bool stopPri(float **X, float *sol, int m, int n, float absTol, float relTol, int display); /*compute the dual error and resudual*/ ...
// Convert DMD CodeView debug information to PDB files // Copyright (c) 2009-2010 by <NAME>, All Rights Reserved // // License for redistribution is given by the Artistic License 2.0 // see file LICENSE for further details #include "mspdb.h" #include <comdef.h> #include <windows.h> #include "packages/Micros...
#include "3cdef.h" #include "windef.h" #include "SkyPCI.h" #include "memory.h" #include "Hal.h" #include "SkyAPI.h" #include "header.h" #include "kheap.h" #include "VirtualMemoryManager.h" #include "SkyAPI.h" #include "SkyConsole.h" static UPDControl ucb; static void int_handler_3c905b(); static RegInfo3c905bStt ri_...
// 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/google/google_url_tracker.h" #include "base/bind.h" #include "base/command_line.h" #include "base/prefs/pref_service.h" #inc...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
// $Id$ //************************************************************************** //* This file is property of and copyright by the * //* ALICE Experiment at CERN, All rights reserved. * //* * //...
//Author: <NAME> 2019 //Purpose : to help select muons for cosmic study based on momentum and other info. //This also provides the MC truth information for the cosmic muon diagnostics #include "Offline/DataProducts/inc/PDGCode.hh" #include "Offline/DataProducts/inc/StrawEnd.hh" #include "Offline/MCDataProducts/inc/Si...
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced // at the Lawrence Livermore National Laboratory. All Rights reserved. See files // LICENSE and NOTICE for details. LLNL-CODE-806117. // // This file is part of the MFEM library. For more information and source code // availability visit ht...
/************************************************************************************* This file is a part of CrashRpt library. Copyright (c) 2003-2013 The CrashRpt project authors. All Rights Reserved. Use of this source code is governed by a BSD-style license that can be found in the License.txt file in the ro...
// Copyright 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 "cc/resources/picture_pile.h" #include <algorithm> #include <limits> #include <vector> #include "cc/base/region.h" #include "cc/debug/rendering...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/bind.h" #include "base/macros.h" #include "examples/keyboard/keyboard.mojom.h" #include "examples/window_manager/debug_panel.h" #include "e...
//===-- gsymutil.cpp - GSYM dumping and creation utility for llvm ---------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <iostream> #include "ico.h" #include "imgui.h" #define IMGUI_DEFINE_MATH_OPERATORS #include "imgui_internal.h" #include "imgui-SFML.h" #include "TextEditor.h" #include "FileBrowser/ImGuiFileBrowser.h" #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/System/Clock.hpp> #include <SFML/Window/Event.hpp> #...
// #include <glh/glh_extensions.h> #include "rc1.0_general.h" #include "nvparse_errors.h" #include "nvparse_externs.h" #include <cstdio> #include <cassert> void GeneralCombinersStruct::Validate(int numConsts, ConstColorStruct *pcc) { // GLint maxGCs; // glGetIntegerv(GL_MAX_GENERAL_COMBINERS_NV, ...
#include <SDL2/SDL.h> #include <algorithm> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <memory> #include <sstream> #include <vector> constexpr auto memory_size = 4096; constexpr auto register_size = 16; constexpr auto graphics_width = 64; constexpr auto graphics_height = 32; ...
// SPDX-License-Identifier: BSD-3-Clause // SPDX-FileCopyrightText: 2020-2022 The Monero Project #include "WindowManager.h" #include <QInputDialog> #include <QMessageBox> #include "constants.h" #include "dialog/PasswordDialog.h" #include "dialog/SplashDialog.h" #include "utils/Icons.h" #include "utils/NetworkManager...
#include "mcts.h" #include <torch/torch.h> #include <algorithm> #include <cassert> #include <cmath> #include <iostream> #include <map> #include <random> #include <set> #include <unordered_map> #include "config.h" #include "env.h" #include "hash.h" #include "policy.h" #include "train_batch.h" #include "util.h" typed...
/* CG 2018/1 Autores: <NAME>: Email: <EMAIL> <NAME>: Mat , Email: <EMAIL> */ /* Arquivo: video.cpp - Codigo da biblioteca de manipulacao de dados do video - Manipulacoes de baixo nivel de estruturas de dados - Algoritmos de comparacao */ //#include <stdlib.h> //#include <stdio.h> #include "video.h" //Dif...
//----------------------------------------------------------------------------- // Created on: 29 September 2018 //----------------------------------------------------------------------------- // Copyright (c) 2018-present, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or ...
#include "stdafx.h" #include "ImageProcessCoordinator.h" #include "DirProcessFunctors.h" #include "AdaptiveCanny.h" #include "Utility.h" #include "Globals.h" using namespace std; using namespace cv; namespace posixtime = boost::posix_time; char * ImageProcessCoordinator::eIPCModeStrings[FINAL_eIPCMode_ENTRY] = { "CA...
/* * Copyright (c) 2016 Regents of the University of California. 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 copyright * notice, ...
//===----- HexagonMCChecker.cpp - Instruction bundle checking -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <math.h> #include <epicsTime.h> #include <epicsExport.h> #include "ntndArrayConverter.h" using namespace std; using namespace epics::nt; using namespace epics::pvData; using tr1::static_pointer_cast; // Maps the selected index of the value field to its type. static const NDDataType_t scalarToNDDataType[pvSt...
// // // ghv : refer to Joyce Java file PoincareDisk.java // ================================================ // // // #include "pch.h" #include "JPoincareDisk.h" using namespace DJJ; using namespace DirectX; using ...
#include "MainWindow.h" #include <filesystem> #include <Util.h> #include "ImGuiFileDialog.h" #include "imgui_internal.h" #include "Settings.h" #include "Log.h" #include "JsonWriter.h" #include "asio.hpp" #include "Value.h" #ifdef USE_WINDOWS_OS #include <winsock2.h> #include <iphlpapi.h> #include <icmpapi.h> #include ...
//===-- X86RaisedValueTracker.cpp -------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// // VROGaussianBlurRenderPass.cpp // ViroKit // // Created by <NAME> on 8/24/17. // Copyright © 2017 Viro Media. 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 Sof...
// '12/03/03 #include "./pxtnWoice.h" #include "./pxtn.h" #include "./pxtnEvelist.h" #include "./pxtnMem.h" pxtnWoice::pxtnWoice() { memset(_name_buf, 0, sizeof(_name_buf)); _name_size = 0; _voice_num = 0; _type = pxtnWOICE_None; _voices = NULL; _voinsts = NULL; } pxtnWoice::~pxtnWoice() { Voice_Releas...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include <boost/foreach.hpp> #include <algorithm> #...
/* * FLine.cpp * Fiat * * Created by <NAME> on 6/20/11. * Copyright 2011 <NAME>. All rights reserved. * */ #include "core_includes.h" #include "FLine.hpp" #include "FMath.hpp" FLine::FLine(float x1,float y1,float x2,float y2) { Make(x1,y1,x2,y2); } FLine::FLine() { Make(0,0,0,0); } FLine::~FLine(...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include "test.h" #include <climits> #include <errno.h> #include <algorithm> using namespace coyote; typedef unsigned long long llu; Scheduler* scheduler = NULL; // Uncomment this to debug pthread APIs. //#define DEBUG_PTHREAD_AP...
/* * Copyright (c) 2013 by <NAME> <<EMAIL>> * Library for facilitating wireless programming using an RFM12B transceiver (get library at: http://github.com/LowPowerLab/RFM12B) * and the SPI Flash memory library for arduino/moteino (get library at: http://github.com/LowPowerLab/SPIFlash) * DEPENDS ON the two librarie...
/** * ATTENTION: helpers modified to have better performance (volatile, N %64 ==0 ...) THIS WORKS ONLY IN THE CONSIDERED SETUP OVER FPGA-14 (or in general, in the case in which two FPGA are directly connected each other using channel 0) */ #include <stdio.h> #include <stdlib.h> #include <uni...
#include <random> #include <algorithm> #include <iostream> #include <string> #include <fstream> #include <chrono> #include <vector> #include <set> #include "brkgaAPI/BRKGA.h" #include "brkgaAPI/MTRand.h" #include "Node.h" using namespace std; using namespace std::chrono; typedef vector< Node > vNode;...
#include <math.h> #include <time.h> #include <SFML/Graphics.hpp> #include <iostream> #include "Fluid.h" #include "Particle.h" #include "SpatialGrid.h" #include <stdio.h> #include <stdlib.h> #include <algorithm> #include <vector> #include <GL/glew.h> #include <GLFW/glfw3.h> GLFWwindow* window; #include <glm/glm.hpp...
// -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- /* * mac-tdma.cc * Copyright (C) 1999 by the University of Southern California * $Id: mac-tdma.cc,v 1.18 2011/10/02 22:32:34 tom_henderson Exp $ * * This program is free software; you can redistribute it and/or * modify it under the terms of ...
#include <iostream> #include <iomanip> #include <vector> #include <string> #include <fstream> #include <sstream> #include <algorithm> using namespace std; #include "make_solutionfile.h" #define PLATE_WIDTH 6000 #define PLATE_HEIGHT 3210 #define TYPE_RESIDUAL -3 #define TYPE_WASTE -1 #define TYPE_USEFUL -2 /* PLATE I...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2019 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining ...
// // Copyright (c) 2016, minyor. // // License: BSD // #include <Poco/Random.h> #include <Poco/Crypto/RSADigestEngine.h> #include <Poco/SharedPtr.h> #include <Poco/Net/InvalidCertificateHandler.h> #include <Poco/Net/AcceptCertificateHandler.h> #include <Poco/Net/ConsoleCertificateHandler.h> #include <Poco/Net/Contex...
#include <StdInc.h> #include "CommonCode.h" #include "DeclsHelpers.h" #include "Ct.h" #include "StdDef.h" #include "SprTypeTraits.h" #include "Generics.h" #include "SprDebug.h" #include "SparrowFrontend/Services/IConvertService.h" #include "SparrowFrontend/Services/IOverloadService.h" #include "SparrowFrontend/NodeComm...
#include <assert.h> #include <map> #include <queue> #include <string> #include <fstream> #include <iostream> #include "srec.hpp" #include "Vscarv_prv_xcrypt_top.h" #include "verilated.h" #include "verilated_vcd_c.h" vluint32_t TB_PASS_ADDRESS = 0x00000001C; vluint32_t TB_FAIL_ADDRESS = 0x000000010; //! Whether ...
/************************************************************************************** * Experimental * * Example how to use ALVAR's markerfield (multimarker) with osgViewer, * including SfM (Structure from motion) algorithm for visual tracking. * * This sample detects marker field (predefined, or command-line parame...
/* QVariant variantFromLua(lua_State *L, int index); ============================================================================== This file is part of the LUBYK project (http://lubyk.org) Copyright (c) 2007-2011 by <NAME> (http://teti.ch). ---------------------------------------------------------------...
/* SIN Toolchain main.cpp Copyright 2019 <NAME> This is the main file for the SIN Compiler application. SIN is a small programming language that I will be using as a way to get practice in compiler writing. For a documentation of the language, see either the doc folder in this project or the Github wiki pages. */ ...
#include <cmath> #include <iostream> #include <string> #include "Player.h" #include "Game.h" #include "Sprites.h" using namespace std; void Player::Init(int x, int y, int id_) { currentX = x; currentY = y; id = id_; movingSpeed = 5.5; currentFrame = 0; currentFrameDuration = 0.0; width = ...
#include <string> #include <iostream> #include <fstream> #include <vts.h> #include <z3-util.h> #include <vector> #include <utility> // std::pair, std::make_pair #include <map> #include <tuple> #include <algorithm> #include <utils/utils.h> //#include <boost/algorithm/string.hpp> //#define toDigit(c) (c-'0') void...
/* * main_windows.cpp - Startup code for Windows * * Basilisk II (C) 1997-2008 <NAME> * * 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 2 of the License, or * (at yo...
/* # # ---------------------------------------------------------------------------- # # Copyright 2019 IBM 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 # # http://www.apache.or...
/* kbbind - Utility for remapping Linux keyboard inputs * Copyright (C) 2010,2011 <NAME> <<EMAIL>> * 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 m...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <array> #include <cstddef> #include <memory> #include <optional> #include <pup.h> #include <string> #include <type_traits> #include "DataStructures/DataBox/Prefixes.hpp" #include "DataStructures/DataVector.hpp" #include "Data...
#include "Window.h" #include <glad/glad.h> #include <GLFW/glfw3.h> static int GLFWModsToUltralightMods(int mods); static int GLFWKeyCodeToUltralightKeyCode(int key); extern "C" { static void WindowGLFW_key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { Window* win = static_cast<Window*...
/* * Copyright (c) 2015 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
// Copyright (c) 1992-2003. <NAME>, Animated Programs, All rights reserved. //#include "defs.h" #if !defined(__TT_STRINGS_H) #include "strings.h" #endif #if !defined(__TT_BOMB_H) #include "bomb.h" #endif #if !defined(__TT_FLOOR_H) #include "floor.h" #endif #if !defined(__TT_ROBOT_H) #include "rob...
#include "findandreplacepanel.h" #include "ui_findandreplacepanel.h" #include <QPlainTextEdit> #include <QToolTip> #include "querywidget.h" #include "codeeditor.h" #include "set" FindAndReplacePanel::FindAndReplacePanel(QWidget *parent) : QWidget(parent), ui(new Ui::FindAndReplacePanel), _queryWidget(nullptr) ...
/*************************************************************************** * Copyright (C) 2010 by <NAME> * * <EMAIL> * * * * This program is free so...
///////////////////////////////////////////////////////////////////// // Client.cpp - Client for Project 4 // // Version 1.0 // // Author: <NAME> // // Resources from <NAME>, CSE687 Spring 2017...
#include "ISprite.h" #include <fstream> #include <vector> #include "VoxelSprite.h" #include <algorithm> #include "SpriteVoxel.h" #include <cstring> class MV_Vec3i { public: int x, y, z; MV_Vec3i() { x = y = z = 0; } MV_Vec3i &Set(int x, int y, int z) { this->x = x; this->y = y; this->z = z; return *thi...
#include "Option.h" #include <vector> #include <iostream> #include <algorithm> #include <regex> #include <limits> #include <boost/program_options.hpp> #include "util/Util.h" #include "data/DataLoader.h" #include "model/KernelFactory.h" #include "train/TrainerFactory.h" using namespace std; struct Option::Impl{ boost...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2020, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
// -*- C++ -*- // // Package: HiJetBackground/HiFJGridEmptyAreaCalculator // Class: HiFJGridEmptyAreaCalculator // Based on: fastjet/tools/GridMedianBackgroundEstimator // // Original Author: <NAME> // Created: Wed Mar 16 14:00:04 CET 2016 // // #include "RecoHI/HiJetAlgos/plugins/HiFJGridEmptyArea...
/*** c86ctl Copyright (c) 2009-2012, honet. All rights reserved. This software is licensed under the BSD license. honet.kk(at)gmail.com */ #include "stdafx.h" #include "chip/opna.h" #include "vis_c86fm.h" #include "vis_c86sub.h" #ifdef _DEBUG #define new new(_NORMAL_BLOCK,__FILE__,__LINE__) #...
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1999. // // File: ChkDeleg.cpp // // Contents: CheckDelegation and support methods // // //--------------------------------------------------...
#include "stdafx.h" #include "VideoStream.h" /* /// <summary>Initialize an empty VideoStream</summary> /// <param name="aviFile">The file that contains the stream</param> /// <param name="writeCompressed">true: Create a compressed stream before adding frames</param> /// <param name="frameRate">Frames per second</para...
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2017, ITU/ISO/IEC * All rights reserve...
// Pass_enum_def_decl.hpp // (C)2009,2011 <NAME>, license: MIT.txt // using singly defined enum enum good_test { x_factor = 1 } y; // ringing the changes on extern extern enum good_test x1; extern const enum good_test x2; extern volatile enum good_test x3; extern const volatile enum good_test x4; extern...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { is_initialized_ = false; // if this is false, laser mea...
// // Copyright (C) 2004-2011 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library is distributed in the hope that it will be use...
/* * Copyright (C) 2018 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 required by app...