text
stringlengths
5.71k
33.7k
// 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. // Needed on Windows to get |M_PI| from math.h. #ifdef _WIN32 #define _USE_MATH_DEFINES #endif #include <math.h> #include <vector> #include "ppapi/c/pp...
#include "Shadow.h" #include "Gizmos.h" #include "Utilities.h" #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/ext.hpp> #define DEFAULT_SCREENWIDTH 1280 #define DEFAULT_SCREENHEIGHT 720 Shadow::Shadow() { } Shadow::~Shadow() { } bool Shadow::onCreate(int a_argc, char* a_argv[]) { // initialise the Gi...
// z.lib example code for C++ API. // // Example code demonstrates the use of z.lib to scale a BMP or YUY2 image. // Emphasis is placed on illustrating how I/O callbacks and line masks enable // the avoidance of unnecessary memory operations. #include <cmath> #include <cstddef> #include <cstdint> #include <cstring> #i...
#include "compositor.h" #include "cursor.h" #include <gui/directgui.h> #include <gui/gui.h> #include <gui/colors.h> #include <imaging/image.h> #include <systeminfo.h> #include <proc.h> #include <gui/contextheap.h> #include <log.h> #include <ipc.h> #include <math.h> #include <string.h> #include <heap.h> using namespac...
/* VirtualPhysics v0.9 VirtualPhysics was developed as part of the project entitled "Development of Real-time Physics Simulation Engine for e-Entertainments" which was financially supported by the grant from the strategic technology development program (Project No. 2008-F-033-02) of both the MKE(Ministry of Knowledge...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
/* * Copyright (C) 2015 <NAME> * * This file is part of Crea * * Crea 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 (FSF), either version 3 of the License, or (at your * option) any later versi...
#include "Game.h" #include "Vertex.h" #include "Renderer.h" // Needed for a helper function to read compiled shader files from the hard drive #pragma comment(lib, "d3dcompiler.lib") #include <d3dcompiler.h> #include "WICTextureLoader.h" // For the DirectX Math library using namespace DirectX; // --------------------...
#include "generator.h" #include "generator_result.hpp" #include "../ast/ast_expr.h" #include <llvm/IR/Value.h> #include <llvm/IR/Type.h> #include <llvm/IR/Function.h> #include <iostream> #include <stdint.h> #include <llvm/Support/Casting.h> using namespace OurType; std::shared_ptr<VisitorResult> Generator::VisitASTEx...
/* Created by <NAME> (<EMAIL>) - <http://www.fabgl.com> Copyright (c) 2019-2021 <NAME>. All rights reserved. * Please contact <EMAIL> if you need a commercial license. * This library and related software is available under GPL v3. FabGL is free software: you can redistribute it and/or modify it under the...
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2017, <NAME>, all rights reserved. // // ACADEMIC OR NON-PROFIT ORGANIZATION NONCOMMERCIAL RESEARCH USE ONLY // // BY USING OR DOWNLOADING THE SOFTWARE, YOU ARE AGREEING TO THE TERMS OF THIS // LICENSE AGREEMENT. IF YOU DO ...
// Copyright 2019 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 "buffer_collection.h" #include <lib/fidl-utils/bind.h> #include <zircon/compiler.h> #include "logical_buffer_collection.h" namespace { namespa...
/* Minimal Mapping of Quantum Circuits to IBM QX Architectures by JKU Linz, Austria Developer: <NAME>, <NAME>, <NAME> For more information, please visit http://iic.jku.at/eda/research/ibm_qx_mapping If you have any questions feel free to contact us using <EMAIL>, <EMAIL> or <EMAIL> If you use the compiler for your ...
/* Copyright 1994, 1995 by Abacus Research and * Development, Inc. All rights reserved. */ #if !defined (OMIT_RCSID_STRINGS) char ROMlib_rcsid_qPixMapConv[] = "$Id: qPixMapConv.c 87 2005-05-25 01:57:33Z ctm $"; #endif #include "rsys/common.h" #include "QuickDraw.h" #include "CQuickDraw.h" #include "MemoryMg...
/* Main Arduino sketch for OpenCat, the bionic quadruped walking robot. Updates should be posted on GitHub: https://github.com/PetoiCamp/OpenCat <NAME> Jan.3rd, 2021 Copyright (c) 2021 Petoi LLC. This sketch may also includes others' codes under MIT or other open source liscence. Check those liscenc...
/* * (C) Copyright 2013 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an intergo...
/* LibreSolar MPPT charge controller firmware * Copyright (c) 2016-2017 <NAME> (www.libre.solar) * * 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/l...
// Copyright (c) 2014 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "nfc/nfc_instance.h" #include <string> #include "common/picojson.h" namespace { const char kTypeText[] = "T"; const char kTypeSmartPoster[] ...
/* * Disclosure.cpp * This does the server query as described in Disclosure. * * Created on: March 15, 2017 * Author: elgood */ #include <string> #include <vector> #include <stdlib.h> #include <iostream> #include <chrono> #include <boost/program_options.hpp> #include <sam/sam.hpp> #include <sam/VastNetfl...
#include "GAPS_openCV_Manager.h" #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/dnn.hpp> #include <opencv2/imgproc/imgproc_c.h> #include <math.h> #include <fstream> #include <sstream> #include <iostream> #include <exception> ...
//===- SPUInstrInfo.cpp - Cell SPU Instruction Information ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/storage/bucketdb/judyarray.h> #include <vespa/config/helper/configfetcher.h> #include <vespa/document/bucket/bucketidfactory.h> #include <vespa/vespalib/util/programoptions.h> #include...
/* * Copyright 2016 <NAME> * * This file is part of Squirrel. * * Licensed under the Academic Free License 3.0 (the "License"). * You may not use this file except in compliance with the License. * You should have received a copy of the License along with Squirrel. * If not, see <https://opensource.org/licenses/...
// Copyright (c) 2021, Lawrence Livermore National Security, LLC // and other Apollo project developers. // Produced at the Lawrence Livermore National Laboratory. // See the top-level LICENSE file for details. // SPDX-License-Identifier: MIT #include "DecisionTreeImpl.h" #include "helpers/TimeTrace.h" #include <algo...
//system #include <stdio.h> #include <iostream> #include <string> #include <libgen.h> #include <dirent.h> #include <algorithm> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <vector> //opencv #include "opencv2/opencv.hpp" //boost #include <boost/property_tree/ptree.hpp> #include <boost/pro...
#include <Maestro.H> #include <Maestro_F.H> using namespace amrex; void Maestro::MakeGravCell(BaseState<Real>& grav_cell, const BaseState<Real>& rho0_s) { // timer for profiling BL_PROFILE_VAR("Maestro::MakeGravCell()", MakeGravCell); const auto& r_cc_loc = base_geom.r_cc_loc; ...
#include "stdafx.h" #include "build.h" #include "ogf_face.h" //#include "std_classes.h" #include "xrcore/fs.h" #include "xrEngine/fmesh.h" using namespace std; extern u16 RegisterShader(LPCSTR T); extern void geom_batch_average(u32 verts, u32 faces); u32 u8_vec4(Fvector N, u8 A = 0) { N.add(1.f); N.mul(.5f *...
#include "client.h" #include "Viewport.h" #include "DrawBatch.h" bool DrawBatch::debug_batch_cond=false; DrawBatch::DrawBatch( Viewport *vp, VFTYPE vft, GLuint tx, GLuint primtype, FragmentShader *fs, BLENDTYPE bt, int linew ) : vf_type(vft), tex(tx), prim_type(primtype), f_shader(fs), blend_type(bt), line_width(lin...
/*! * \file TupleDecl_test.cc * * \brief Test for the TupleDecl class. * * \date Started: 1/25/2013 * # $Revision:: 628 $: last committed revision * # $Date:: 2013-01-25 $: date of last committed revision * # $Author:: heim $: author of last committed revision * * \a...
// Copyright (c) 2016 Graphcore Ltd. All rights reserved. #include <cassert> #include <iostream> #include <poplibs_test/Pooling.hpp> #include <poplibs_test/exceptions.hpp> using popnn::PoolingType; using namespace poplibs_support; static void pooling(popnn::PoolingType pType, const std::vector<un...
/* Minetest Copyright (C) 2014-2017 paramat Copyright (C) 2014-2016 kwolekr, <NAME> <<EMAIL>> Copyright (C) 2017 crazyBaboon * This program 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....
#include <chrono> #include <cmath> #include <cstdint> #include <sstream> #include <stdexcept> #include <string> #include <thread> #include "SDL.h" #include "Game.h" #include "Options.h" #include "PlayerInterface.h" #include "../Assets/CityDataFile.h" #include "../Interface/IntroUiModel.h" #include "../Interface/Panel...
//===- DirectiveEmitter.cpp - Directive Language Emitter ------------------===// // // 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 // //===---------------------------...
#include <iostream> #include <fstream> #include <sstream> #include "helper_functions.hpp" #include "gameplay_functions.hpp" #include "helper_constants.hpp" int main() { read_file(); try { start(); } catch(const std::exception& e) { print("Quitting"); } } [[noreturn]] void start() { while (true) { switch (...
#include "inc_pca.hpp" #include <iostream> /* References ---------- <NAME>, <NAME>, Shilpika, <NAME>, <NAME>, <NAME>. An Incremental Dimensionality Reduction Method for Visualizing Streaming Multidimensional Data */ IncPCA::IncPCA(Eigen::Index const nComponents, double const forgettingFactor) : nComponents(nComp...
// // PackageParser.cpp // Emojicode // // Created by <NAME> on 24/04/16. // Copyright © 2016 <NAME>. All rights reserved. // #include "PackageParser.hpp" #include "Class.hpp" #include "Function.hpp" #include "Enum.hpp" #include "ValueType.hpp" #include "Protocol.hpp" #include "TypeContext.hpp" #include "../utf8.h...
#include "PythonExpose.h" #include "JSPlatform.h" #include "JSIsolate.h" #include "JSEngine.h" #include "JSScript.h" #include "JSContext.h" #include "JSNull.h" #include "JSUndefined.h" #include "JSObject.h" #include "JSObjectKVIterator.h" #include "JSObjectArrayIterator.h" #include "JSStackTrace.h" #include "JSStackTra...
/*++ Copyright (C) Microsoft Corporation, 1996 - 1999 Module Name: globals.cxx Abstract: This module implements the LDAP server for the NT5 Directory Service. This file defines functions and types required for the LDAP server configuration class LDAP_SERVER_CONFIG. Author: <...
/* 100% free public domain implementation of the SHA-1 algorithm by <NAME> <<EMAIL>> Web: http://www.dominik-reichl.de/ Version 1.6 - 2005-02-07 (thanks to <NAME> for patches) - You can set the endianness in your files, no need to modify the header file of the CSHA1 cl...
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1Render.h" #include "j1Textures.h" #include "j1Collision.h" #include "j1Map.h" #include "j1Window.h" #include <math.h> #include "j1Audio.h" #include "j1EntityManager.h" #include "p2Point.h" #include "Brofiler\Brofiler.h" j1Map::j1Map() : j1Module(),...
int L ,UK4s ,in4wS ,DN, //C JBI ,LV , zM9z , SS , Zu//V , CRy7Fv , W,FH /*D*/, MW , F9l ,KxI/*YQ5U*///BVS ,//s9 SV , TI , /*kn0*/ld9 , w4U , Tz/*h*/,//Fp A,IV,WV,rvl ,j6Vv,UvSO , hei, jN, pGFq, /*f2*/ tN, a, Lq , E2u2 ,fJ0 ,/*M18l*/Ht, y3 ,uEl ,UxT, k10u , vTLnsz ,Lt,Hb /*1M*/ ; void ...
/*********************************************************************************** Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. (c) Copyright 1996 - 2002 <NAME> (<EMAIL>), <NAME> (<EMAIL>) (c) Copyright 2002 - 2004 <NAME> (c) Copyright 2002 - 2005 <NA...
// websocketpp #include <websocketpp/config/asio_no_tls.hpp> #include <websocketpp/server.hpp> #include <websocketpp/base64/base64.hpp> // property_tree (json) #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> // rtmidi #include <RtMidi.h> // std #include <iostream> #include <se...
/* * TopSpin.cpp * hog2 * * Created by <NAME> on 9/4/14. * Copyright 2014 <NAME>, University of Denver. All rights reserved. * */ #include "TopSpin.h" #include "Heap.h" #include "GraphEnvironment.h" #include <map> TopSpin::TopSpin(unsigned int N, unsigned int k) :PermutationPuzzleEnvironment<TopSpinState, ...
#include "Ht.h" #include "PersInc.h" ht_uint4 CPersInc::fu4() { return 4; } bool CPersInc::fb() { ht_uint4 u4 = 4; bool b; switch (u4 + fu4()) { case 1: b = true; break; default: b = false; break; } return b; } void CPersInc::fv(ht_uint4 & c) { c = 0x8; } ht_uint4 CPersInc::fp1(ht_uint4 const & a, ht_uint4...
/* * $Id: mech.events.c,v 1.1.1.1 2005/01/11 21:18:15 kstevens Exp $ * * Author: <NAME> <<EMAIL>> * * Copyright (c) 1996 <NAME> * Copyright (c) 1998-2002 <NAME> * Copyright (c) 2000-2002 <NAME> * Copyright (c) 1999-2005 <NAME> * All rights reserved * * Created: Sat Aug 31 15:53:12 1996 fingon * L...
#include <cstdio> #include <stdio.h> #include "../IntercoreContract/intercore_contract.h" #include "FreeRTOS.h" #include "task.h" #include "printf.h" #include "mt3620.h" #include <semphr.h> #include "os_hal_gpio.h" #include "os_hal_uart.h" #include "os_hal_i2c.h" #include "os_hal_mbox.h" #include "os_hal_mbox_shared...
#include "ofxWidget.h" #include "ofGraphics.h" #include "ofUtils.h" #include <algorithm> // ---------------------------------------------------------------------- /* _____ ___ / / / / ofxWidget / __/ * / /__ (c) ponies & light ltd., 2015-2016. /__/ /_____/ poniesandlight.co.uk ofxWidget ...
//---------------------------------------------------------------------------------- // File: NvAppBase/NvInputTransformer.cpp // SDK Version: v3.00 // Email: <EMAIL> // Site: http://developer.nvidia.com/ // // Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. // // Redistribution a...
#include <iostream> #include <fstream> #include <queue> #include <omp.h> #include <glm/gtc/constants.hpp> #include "kd_tree.hpp" using std::ofstream; using std::ios; using std::cout; using std::endl; treeNode::treeNode(Photon p, superKey plane) { photon = p; haveChilds = false; leftChild = NULL; rightChild ...
#include "playground.h" // Include GLFW #include <glfw3.h> GLFWwindow* window; // Include standard headers #include <stdio.h> #include <stdlib.h> #include <iostream> // Include GLM #include <glm/gtc/matrix_transform.hpp> using namespace glm; #include <common/shader.hpp> #define PI 3.141592653589793238462643383279...
/** \file paillier_party.h \author <EMAIL> \copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2019 Engineering Cryptographic Protocols Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under the terms of t...
/* MIT License Copyright (c) 2020 <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, modify, merge, publish, distrib...
#include "VoiceChangerApp.h" #include "FilterDesign.h" #include "AboutDialog.h" #include "Noise.h" #include "Exception.h" #include "wx/sizer.h" #include <wx/event.h> #include <wx/fs_inet.h> #include <wx/sstream.h> #include <wx/txtstrm.h> #include <wx/string.h> #include <sstream> #include <iomanip> #include <ctime> wxI...
/* (c) <NAME>. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */ #include <engine/config.h> #include <engine/server.h> #include <game/generated/protocol.h> #include <game/server/gamecontext.h> #include <game/server/teams.h> #include <game/server/gamemodes/DDRace.h> #in...
#include "imgui.h" #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" #include <glad/glad.h> #include <GLFW/glfw3.h> #include <MyGLFWLib/stb_image.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "filesystem.h" #include <MyGLFWLib/shader.h> #inclu...
/* * Copyright 2011 <NAME> aevum @ <EMAIL> * * 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 ...
// Copyright 2021, Autonomous Space Robotics Lab (ASRL) // // 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 appli...
#include <ros/ros.h> #include <sensor_msgs/Image.h> #include <sensor_msgs/CameraInfo.h> #include <duckietown_msgs/TagDetection.h> #include <duckietown_msgs/AprilTags.h> #include <opencv/cv.h> #include <cv_bridge/cv_bridge.h> #include <tf_conversions/tf_eigen.h> #include <tf/transform_datatypes.h> // #include "AprilTa...
#include <iostream> #include "Algorithms.hxx" #include "Indices.hxx" std::unique_ptr<Tree<Node>> firstOrderEquation () { auto tree_M_abcdmjnkpq = loadTree ("area_1st_kinetic.prs"); // load ansatz tree for kinetic coefficients of first order // indice...
#include "mainwindow.h" #include "ui_mainwindow.h" //App Specific QT Includes #include "qfiledialog.h" #include <QDateTime> #include <QTimer> #include <QTextStream> //WiringPi Includes #include <wiringPi.h> #include <wiringPiI2C.h> #include <wiringPiSPI.h> // Displays Specific Includes extern "C" { #include "IC.h" #...
#include "testApp.h" //-------------------------------------------------------------- void testApp::setup(){ ofSetFrameRate(60); //smooth ofSetVerticalSync(true); guiScreen = ofRectangle(0.f,0.f,1024.f, 768.f); //laptop screen presentationScreen = ofRectangle(guiScreen.getWidth(),0.f, 1920.f, 1080.f);...
/* $Id$ */ /* * This file is part of OpenTTD. * OpenTTD 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, version 2. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
#include "main.h" #include "RequestLogger.h" extern "C" { #include "user_interface.h" } void writeToLogFile(std::string const &message); constexpr int LOGGER_LINES_TO_STORE = 100; constexpr int LOGGER_MAX_LINE_LENGTH = 100; constexpr int MAX_LOG_FILE_SIZE = 20000; constexpr int RECORDING_INTERVAL_SECONDS = 15 * S...
/*++ Copyright (c) 1990-2000 Microsoft Corporation Module Name: VerifySBDAllocation.cxx Author: <NAME> (cbiks) 05-May-2000 Environment: ULIB, User Mode --*/ #include "pch.cxx" #include "UdfLVol.hxx" #include "unicode.hxx" #include "crc.hxx" // UNDONE, CBiks, 08/15/2000...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #include <algorithm> #include <map> #include <string> #i...
// 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. // Implementation of the CommandExecuteImpl class which implements the // IExecuteCommand and related interfaces for handling ShellExecute based // lau...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "base/os.h" #include <netinet/icmp6.h> #include <vr_defs.h> #include <cmn/agent_cmn.h> #include <pkt/pkt_init.h> #include <oper/interface_common.h> #include "services/services_types.h" #include <services/services_init.h> #include <servi...
//===- Builders.cpp - MLIR Declarative Builder Classes --------------------===// // // Copyright 2019 The MLIR 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....
//===-- SimplifyIndVar.cpp - Induction variable simplification ------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // sunnet project // Copyright (C) 2018 by Contributors <https://github.com/Tyill/sunnet> // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files(the "Software"), to deal // in the So...
// Copyright 2013 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 applicable ...
#include <stdio.h> #include <math.h> #include "allegro.h" #include "alleggl.h" #include <GL/glu.h> #include "initgl.h" #include "log.h" #include "timers.h" #include "3ddef.h" #include "camera.h" #include "mdf.h" #include "models.h" #include "3ds.h" #include "textout.h" #include "input.h" #include "Fr...
/********************************************************************** * * Name: mitab_imapinfo * Project: MapInfo mid/mif Tab Read/Write library * Language: C++ * Purpose: Implementation of the IMapInfoFile class, super class of * of MIFFile and TABFile * Author: <NAME>, <EMAIL> * *********...
// Copyright 2014 The Cockroach 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 applicable law or ag...
/*************************************************************************/ /* dialogs.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "Scatter.h" #include "minimization.h" #include "DMNscattering.h" #include "Kinematics.h" #include "Random.h" #include "constants.h" #include "decay.h" #include <cmath> #include <iostream> #include <algorithm> #include <fstream> const double mp = MASS_PROTON; const double mn = MASS_NEUTRON; const double Mdel...
/** * UI.cpp * UI Interface Rendering Class * * The MIT License (MIT) * Copyright (c) 2018 by <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, includin...
#include "pch.h" #include <DirectXTK\DDSTextureLoader.h> #include "Common\DirectXHelper.h" #include "ControllerRenderSampleMain.h" using namespace ControllerRenderSample; using namespace concurrency; using namespace DirectX; using namespace Platform; using namespace std::placeholders; using namespace winrt::Windows::...
/* * Copyright (C) 2012 www.scratchapixel.com * * 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 of the License, or * (at your option) any later version. * * This progra...
#include <stdio.h> #include <iostream> #include <limits> #include <windows.h> #include "VideoTools.h" VideoTools::VideoTools() { m_frames = 0; m_videoCapture = 0; } void VideoTools::getIntensitySingleChannel(IplImage* img, const int &x, const int &y, float &intensity) { intensity = (float)(((unsigned...
/* Copyright 2018, OpenSoft 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 code must retain the above copyright notice, this list of * conditions a...
/* Copyright (c) 2007 <NAME>. 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 require...
// // Created by goksu on 4/6/19. // #include <algorithm> #include "rasterizer.hpp" #include <opencv2/opencv.hpp> #include <math.h> rst::pos_buf_id rst::rasterizer::load_positions(const std::vector<Eigen::Vector3f> &positions) { auto id = get_next_id(); pos_buf.emplace(id, positions); return {id}; } rs...
/* Copyright 2014 <NAME> <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
/* * common.cpp * cufflinks * * Created by <NAME> on 3/23/09. * Copyright 2008 <NAME>. All rights reserved. * */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <cstdio> #include <cstring> #include <cstdlib> #include <iostream> #include <stdarg.h> #include <sys/types.h> #include <sys/stat.h> #inc...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.org/> * * Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Publi...
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
/**************************************************************************** * * Copyright (c) 2013-2019 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Red...
// This benchmark reports on the bulk insert and bulk query rates. It is invoked as: // // ./bulk-insert-and-query.exe 158000 // // That invocation will test each probabilistic membership container type with 158000 // randomly generated items. It tests bulk Add() from empty to full and Contain() on // filters with ...
// Copyright 2018, University of Freiburg, // Chair of Algorithms and Data Structures. // Author: <NAME> (<EMAIL>) #include <gtest/gtest.h> #include <algorithm> #include <cstdio> #include "../src/engine/CallFixedSize.h" #include "../src/engine/CountAvailablePredicates.h" #include "../src/engine/HasPredicateScan.h" //...
#include "router_lookahead_cost_map.h" #include "router_lookahead_map_utils.h" #include "globals.h" #include "echo_files.h" #include "vtr_geometry.h" #ifdef VTR_ENABLE_CAPNPROTO # include "capnp/serialize.h" # include "extended_map_lookahead.capnp.h" # include "ndmatrix_serdes.h" # include "mmap_file.h" #...
// license:BSD-3-Clause // copyright-holders:<NAME>, <NAME> /************************************************************************* Atari Tunnel Hunt hardware *************************************************************************/ #include "emu.h" #include "includes/tunhunt.h" /**************************...
#include "scene_viewer.h" #ifdef HAS_OPENCV #include <opencv2/bgsegm.hpp> #include <opencv2/video/background_segm.hpp> #endif #include <SDL.h> #include "magic_motion.h" #include "renderer.h" #include "ui.h" #include "utils.h" #include "config.h" #include "video_recorder.h" namespace viewer { typedef enum { ...
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, 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...
/* * Copyright 2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related docu...
/* * compile: g++-5 -std=c++11 -O2 -o multi-thread-regex-numa.bin multi-thread-regex-numa-6t.cpp -lpthread \ -lre2 -lboost_date_time -lpcre -lnuma */ /* * This is used to test NUMA-aware threads * 1.k2 configuration: * node 0 cpus: 0 2 4 6 8 10 12 14 16 18 20 22 * node 1 cpus: 1 3 5 7 9 11 13 15 1...
/* * Copyright (C) 2011 The RockChip Android 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...
/* vim:tabstop=4:expandtab:shiftwidth=4 * * Idesk -- XImlib2Image.cpp * * Copyright (c) 2002, Chris (nikon) (<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: * * Redistrib...
#include <stdio.h> #include <math.h> #include <string.h> #include <time.h> #include <assert.h> #include <iostream> #include <vector> #include <list> #include <string> #include <algorithm> #include <deque> #include <queue> #include <stack> #include <set> #include <map> #include <complex> #include <chrono> #include <rand...