text
stringlengths
5.71k
33.7k
#define PDC_DLL_BUILD 1 #define menu_color 1 #define input_window_color 2 #define info_window_color 3 #define ctrl(x) ((x) & 037) //this defines how I will implement control + another character for keyboard shortcuts #ifdef _WIN32 //Windows includes #include "curses.h" #include "panel.h" #include "curspriv.h" #else ...
/* * Copyright 1993-2010 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 r...
#include "precompiled_stl.hpp" #include <chrono> using namespace std; #include "utils.hpp" #include "read.hpp" #include "normalize.hpp" #include "core_functions.hpp" #include "image_functions.hpp" #include "image_functions2.hpp" #include "visu.hpp" #include "brute2.hpp" #include "pieces.hpp" #include "timer.hpp" //...
// // Created by <NAME> on 31/01/2020. // #include <iostream> #include <cstring> #include "Device.h" static const char* BASE58_MAP = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"; static uint8_t ieeeToStr(uint64_t ieee, char* buff, uint8_t buffLen) { if(buffLen < 12) { //buffer possible to...
#include "bssrdf.h" #include "parallel.h" #include "interpolation.h" #include "memory.h" #include "scene.h" #include "primitive.h" #include "mmath.h" Float FresnelMoment1(Float eta) { Float eta2 = eta * eta, eta3 = eta2 * eta, eta4 = eta3 * eta, eta5 = eta4 * eta; if (eta < 1) return 0.45966f ...
/* * Copyright (c) [2020-2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * ...
#include "CacheMaker/CacheMaker.h" #include "GeoUtils.h" #include "MapStrategyFactory.h" #include "curl/curl.h" #include "TileResolver.h" #include <thread> #include "SunFile.h" #include "Core/CacheInfo.pb.h" #include "FileOperation.h" std::mutex cachemutex; #include "tiffio.h" #include <iostream> #include <math.h...
/****************************************************************************** * Copyright 2016-2017 Cisco Systems, Inc. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * ...
#include <vector> #include <string> #include <iostream> #include <fstream> #include <tuple> #include <boost/program_options.hpp> namespace po = boost::program_options; #include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <pcl/common/common_headers.h> #include <pcl/visualization/pcl_visual...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
#include <stdlib.h> #include <stdint.h> #include <string.h> #include <stdio.h> struct GIF_WRITER { FILE* file; uint8_t data_block[255]; uint8_t block_length; uint8_t byte; uint8_t bits_written; }; #define MAX_CODE_TREE_SIZE 4096 #include "giffer.h" inline void Write8(GIF_WRITER *writer, ui...
#define PLATFORM_RADIUS_MIN 0.5f #define PLATFORM_RADIUS_MAX 2.0f #define PLATFORM_MOVE_SPEED_MIN 0.1f #define PLATFORM_MOVE_SPEED_MAX 5.0f #define PLATFORM_ROTATE_SPEED_MIN -3.0f #define PLATFORM_ROTATE_SPEED_MAX +3.0f // additional cost for each additional meter of platform radius #define PLATFORM_RADIUS_COST 1.0f #...
/* Copyright [2017-2020] [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.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
// // UnitTests.cpp // LazyPredator // // Created by <NAME> on 8/6/20. // Copyright © 2020 <NAME>. All rights reserved. // #include "LazyPredator.h" #include "TestFS.h" // This "sub-test" wrapper macro just returns the value of the given expression // "e". If the value is NOT TRUE, the st() macro will also log th...
#include "Map.hpp" /****************************************************** * MAP *****************************************************/ Map::Map() : Map("") {} Map::Map(const string name) : name(name) {} Map::Map(const Map& m) { this->name = m.name; // Used for mapping name to object. map<string, Con...
#include <string> #include <mutex> #include <map> #include <string.h> #include <assert.h> #include "unpack.h" // // turn bits into a 128-bit integer. // most significant bit first. // __int128 un(int a77[], int start, int len) { __int128 x = 0; assert(len < (int) sizeof(x)*8 && start >= 0 && start + len <= 77); ...
/*++ Copyright (C) 1999-2001 Microsoft Corporation Module Name: RESYNC.CPP Abstract: Implements the windows application or an NT service which loads up the various transport prtocols. If started with /exe argument, it will always run as an exe. If started with /kill argument, it ...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2008-2010, Image Engine Design 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: // // ...
/* Copyright (C) 2021 <NAME> - All Rights Reserved * You may use, distribute and modify this code under the * terms of the Apache license version 2.0. * * See http://www.apache.org/licenses/ */ #include "constexprstring.h" #include <gtest/gtest.h> #include <cstring> #include <random> namespace cxs = constexprs...
/*************************************************************************/ /* qcp.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "GameMenu.h" GameMenu::GameMenu(sf::RenderWindow &window, sf::View &view, sf::RenderTexture &surface, GameSystemExtended &gameSysExt): GameDisplay(window, view, surface, gameSysExt, sf::Color::White), m_gameOptionIndex(0), m_oscillation(0.f), m_xPos(38.f), m_yPos(210.f), m_bgX(0.f), ...
// -----------------------------------------------------------------------------------bl- // BSD 3-Clause License // // Copyright (c) 2020-2022, The PECOS Development Team, University of Texas at Austin // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are...
#include "EXPA.h" #include <stdint.h> #include <fstream> #include <iostream> #include <vector> #include <string> #include <iomanip> #include <algorithm> #include <sstream> #include <memory> #include <boost/algorithm/string/replace.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser...
// POJ-Holo.cpp: Implementation of POJ-Holo's key sequence // // Copyright (c) 2004-2008 The OpenVanilla Project (http://openvanilla.org) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: //...
/*! * @file Adafruit_LIS331.cpp */ #include "Arduino.h" #include <Adafruit_LIS331.h> #include <Wire.h> /*! * @brief Instantiates a new LIS331 class in I2C * @param TheWire * optional wire object */ Adafruit_LIS331::Adafruit_LIS331(TwoWire *TheWire) {} /*! * @brief Instantiates a new LIS331 cl...
/**************************************************************************** * Copyright (c) 2015 - 2016, CEA * 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 mus...
//===- AlphaInstrInfo.cpp - Alpha Instruction Information -------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** * Power Bank Prototype 1 * Battery Management System Firmware * Version 1.0 * * Copyright (C) 2019 by <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...
#include "prf_server.h" #include "../../aby/abysetup.h" #include "../aes_processors/aesni_prf_processors.h" #include "../aes_processors/vaes_prf_processors.h" #include "../cpu_features/include/cpuinfo_x86.h" static const cpu_features::X86Features CPU_FEATURES = cpu_features::GetX86Info().features; #include <wmmintrin....
#include "midiExactDelay.hpp" //for fmod() #include <cmath> //for seeding rand() #include <time.h> //------------------------------------------------------------------------------------------------------- AudioEffect* createEffectInstance (audioMasterCallback audioMaster) { return new MidiExactDelay (audioMaste...
#include <algorithm> #include <cassert> #include <cmath> #include <fstream> #include <iostream> #include <memory> #include <random> #include <regex> #include <string> #include <vector> #include <tclap/CmdLine.h> using namespace std; const string VERSION = "0.0.0"; struct Node { Node(size_t type, double birthti...
#include <forward_list> #include <iostream> #include "graphics.hpp" #include "parse.hpp" #include "world.hpp" #include "color.hpp" #define X 0 #define Y 1 #define Z 2 World::World(std::string _filename) { Parser script(_filename, *this); if (script.parse() != Error) { is_parsed = true; } m_light.pos = Vec...
#pragma once #include <functional> #include <memory> #include <unordered_map> #include <vector> #include "adstutil_cxx/error_handler.hpp" #include "core/core_types.hpp" #include "core/environment.hpp" #include "core/message.hpp" namespace adst::ep::test_engine::core { class Priority; class Port; template <typena...
// Copyright (c) 2016 midnightBITS // This code is licensed under MIT license (see LICENSE for details) #include <tangle/uri.hpp> #include <sstream> #include <gtest/gtest.h> using namespace std::literals; namespace tangle::testing { using ::testing::TestWithParam; using ::testing::ValuesIn; struct UriCannonicalH...
/******************************************************************************* Functionality to read expression matrix data from the BioHub pipeline. JULY 2017, ILLUMINA DATA: addCellsFromBioHub1 This version of the BioHub pipeline creates three files for each plate: - A csv file containing expression counts by...
/* * Copyright (c) 2007, Laminar Research. * * 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, ...
//===-- GoParserTest.cpp ------------------------------------------*- C++ //-*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------------------...
#include <iostream> #include <algorithm> #include <cmath> #include <sstream> #include <CL/cl.h> #include <mnist/mnist_reader.hpp> #include <papi.h> /* * * * THIS WAS INTENDED TO SERVE AS A BASELINE FOR HOW FAST AN OPENCL IMPLEMENTATION CAN GET * TO COMPARE THE PERFORMANCE OF THE MORE ABSTRACTED FRAMEWORK * - it...
#include <gui.hpp> #include <draw.hpp> #include "calib.hpp" cv::vectorr get_vij(const cv::matrixr &h, unsigned i, unsigned j) { return cv::vectorr { h(0, i)*h(0, j), h(0, i)*h(1, j) + h(1, i)*h(0, j), h(1, i)*h(1, j), h(2, i)*h(0, j) + h(0, i)*h(2, j), h(2, i)*h(1, j) + h(1, i)*h(2, j), h(2, i)*h(2, j) }; } ...
/* * TODO: * + The 'hash' in a commit may be empty. */ #include "changelog.h" #include "cmark.h" #include <chrono> #include <cstring> #include <ctime> #include <fstream> #include <iostream> #include <regex> struct StandardRelease::ChangelogPrivate { cmark_node *root; cmark_node *sibling; ChangelogP...
// { dg-do compile { target c++11 } } // Copyright (C) 2015-2017 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library 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 Found...
//===------------------- SSI.cpp - Creates SSI Representation -------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "solvers/csdsolvertrafofp2d.h" #include "common/config.h" #include "common/io.h" #include "fluxes/numericalflux.h" #include "kernels/scatteringkernelbase.h" #include "problems/icru.h" #include "problems/problembase.h" #include "quadratures/qproduct.h" #include "quadratures/quadraturebase.h" // externals #incl...
#include "muduo/net/http/HttpServer.h" #include "muduo/net/http/HttpRequest.h" #include "muduo/net/http/HttpResponse.h" #include "muduo/net/EventLoop.h" #include "muduo/net/EventLoopThreadPool.h" #include "muduo/base/Logging.h" #include <map> #include <sys/socket.h> // SO_REUSEPORT #include <muduo/net/http/Util.h> #...
/** \file DQMOffline/Trigger/HLTMuonMatchAndPlot.cc * */ #include "DQMOffline/Trigger/interface/HLTMuonMatchAndPlot.h" #include "FWCore/Framework/interface/Run.h" #include "FWCore/Framework/interface/EventSetup.h" #include "SimDataFormats/GeneratorProducts/interface/GenEventInfoProduct.h" #include "SimDataFormats/G...
// // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // Waitfor.cc -- // // Author : <NAME> // Created On : Mon Aug 28 11:06:52 2017 // Last Modified By : // Las...
#include "MemWrapper.h" // The memory configuration is initially ported from ramulator. // which are mostly parsed from input argument. We don't want to change it for now. MemWrapper::MemWrapper(sc_module_name _name, double _memClkCycle, double _peClkCycle, int argc, char* argv[]) ...
#include "cosmology.hpp" #include <math.h> #include <gsl/gsl_integration.h> #include <gsl/gsl_odeiv2.h> #include <gsl/gsl_errno.h> #include "physconst.h" #include <valarray> #include <cassert> /**This file contains code to compute the Hubble function at arbitrary redshift. Most of the code integrates * Omega_Nu for m...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "nsUnicodeRange.h" /****...
#include "ga/macdecls.h" #include "mpi.h" #include <chrono> #include <tamm/tamm.hpp> using namespace tamm; template<typename T> void test_2_dim_mult_op(Scheduler& sch, size_t N, Tile tilesize, ExecutionHW ex_hw, bool profile) { TiledIndexSpace tis1{IndexSpace{range(N)}, tilesize}; auto [i, j, k] = tis1.label...
#include "simulation/curve.h" #include <algorithm> #include "simulation/ogh.h" #include "simulation/game.h" #include "mechanics/drive.h" #include "misc/io.h" float maximize_speed_with_throttle(float accel, float v0, float sf); float maximize_speed_without_throttle(float accel, float v0, float sf); c...
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
/* * Copyright 2007-2015 The OpenMx 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 b...
/* ISC License Copyright (c) 2016-2017, Autonomous Vehicle Systems Lab, University of Colorado at Boulder Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copie...
#include <iostream> #include <fstream> #include <sstream> #include <vector> #include "XtekReader.h" #include <boost/algorithm/string.hpp> #include <boost/format.hpp> #include <boost/filesystem.hpp> #include "exlibtiff/internal/exlibtiff.h" #include "exlibtiff/internal/tiffio.h" //Constructor XtekReader::Xte...
/* $Id: t_imm_exec.c,v 1.43 2002/10/24 23:57:25 brianp Exp $ */ /* * Mesa 3-D graphics library * Version: 4.1 * * Copyright (C) 1999-2002 <NAME> All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "S...
int SnDm, xklW, g3 , I1d, IGJT, L6EZE,Z8 ,// L ,WFQHw //91r ,we9K, f ,aV, e1,qLjJeX, RdI , S, lB0O//7 ,I , WP2Pu , //s V , l, CO7N , LIp6 ,Ct13Yla ,XZcvG , jhWSk , mNHEv/*S2B*/ , efu ,/*bZ*/ H , HFI, srt, U9tg,iU , nl , nz,zp// , AHAhY , muiC , FO,oZ , YB9F64 ; void f_f0(){volati...
/*! * Copyright 2015 by Contributors * \file data.cc */ #include <xgboost/data.h> #include <xgboost/logging.h> #include <dmlc/registry.h> #include <cstring> #include "./sparse_page_writer.h" #include "./simple_dmatrix.h" #include "./simple_csr_source.h" #include "../common/common.h" #include "../common/io.h" #if DM...
// Copyright (c) 2010 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 "media/tools/player_x11/gles_video_renderer.h" #include <dlfcn.h> #include <EGL/eglext.h> #include <X11/Xutil.h> #include <X11/extensions/Xr...
//===--- IdentifierTable.cpp - Hash table for identifier lookup -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (C) 2019 <NAME> // Distributed under MIT License #include "tasm.hpp" #include "string.h" static const char *mnemonics[]={ /*00*/ ".CLB","NOP","SEX",".SETA","LSRD","LSLD","TAP","TPA", /*08*/ "INX","DEX","CLV","SEV", "CLC","SEC","CLI","SEI", /*10*/ "SBA","CBA",".12",".13",".14",".15", "TAB","TBA...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2019-2020 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
/* * Copyright © 2012, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed * under the Apache License, Version 2.0 (the "License"); * you may not use t...
// Copyright 2017 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include <bits.h> #include <lib/affine/ratio.h> #include <platform.h> #include <trace.h> #include <zircon/syscalls/hypervisor.h> #...
/* * Copyright (c) 2015-2017 <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 ...
// Copyright (c) 2012 The Chromium OS 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 "chaps/opencryptoki_importer.h" #include <stdlib.h> #include <map> #include <memory> #include <string> #include <vector> #include <base...
// // This source file is part of appleseed. // Visit https://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited // Copyright (c) 2014-2018 <NAME>, The appleseedhq Organization // // Permission is ...
/* * MIT License * * Copyright(c) 2019-2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softwareand associated documentation files(the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify,...
#include "ParseUtil.h" #include <boost/regex.hpp> #include <sstream> #include <float.h> #include <math.h> #include <errno.h> using namespace std ; bool parseNumber(const std::string &str, double &val) { val = strtod (str.c_str(), NULL); if ((val == -HUGE_VAL || val == HUGE_VAL) && (ERANGE == errno)) return...
// File: SiStripRecHitMatcher.cc // Description: Matches into rechits // Author: C.Genta #include "RecoLocalTracker/SiStripRecHitConverter/interface/SiStripRecHitMatcher.h" #include "DataFormats/GeometryVector/interface/GlobalPoint.h" #include "Geometry/CommonDetUnit/interface/GluedGeomDet.h" #include "Geometry/Track...
#include <CQLizard.h> #include <CQPropertyViewTree.h> #include <QApplication> #include <QPainter> #include <QMouseEvent> #include <QHBoxLayout> #include <iostream> int main(int argc, char **argv) { QApplication app(argc, argv); app.setFont(QFont("Sans", 16)); auto *lapp = new CQLizardApp; lapp->show(); ...
#include <string> #include <hdf5.h> #include <iostream> #include <vector> #include <cmath> #include <algorithm> #include <iomanip> #include <chrono> //#define USE_MKL #ifdef USE_MKL #include <mkl.h> #endif #ifndef USE_MKL extern "C" { #define dgetrf dgetrf_ #define dgetri dgetri_ #define dgeev dgeev_ #define dggev...
//===- MipsInstrInfo.cpp - Mips Instruction Information ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <vector> #include <math.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include "Draw2D.h" #include "Draw3D.h" #include "SDL_utils.h" #include "fastmath.h" #include "Vec3.h" #include "Mat3.h" #include "quaternion.h" #include "raytrace.h" #in...
#include <stdio.h> #include "gm_backend_giraph.h" #include "gm_error.h" #include "gm_code_writer.h" #include "gm_frontend.h" #include "gm_transform_helper.h" #include "gm_argopts.h" extern void gm_redirect_reproduce(FILE *f); extern void gm_baseindent_reproduce(int i); extern void gm_flush_reproduce(); void gm_giraph_...
//-------------------------------------------------------------------------- // Copyright (C) 2014-2018 Cisco and/or its affiliates. All rights reserved. // Copyright (C) 2005-2013 Sourcefire, Inc. // // This program is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public...
// 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/browser/renderer_host/p2p/socket_host_tcp.h" #include "base/sys_byteorder.h" #include "content/common/p2p_messages.h" #include "ipc...
/* * Copyright 1993-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...
#include <DQM/RPCMonitorDigi/interface/RPCMonitorDigi.h> #include <DQM/RPCMonitorClient/interface/RPCBookFolderStructure.h> #include <DQM/RPCMonitorClient/interface/RPCRollMapHisto.h> #include <DQM/RPCMonitorClient/interface/RPCNameHelper.h> #include <Geometry/RPCGeometry/interface/RPCGeometry.h> void RPCMonitorDigi::...
#include <math.h> // smallpt, a Path Tracer by <NAME>, 2008 #include <stdlib.h> // Make : g++ -O3 -fopenmp smallpt.cpp -o smallpt #include <stdio.h> // Remove "-fopenmp" for g++ version < 4.2 #include <iostream> #include <fstream> using namespace std; struct Vec { // Usage: time ./smallpt 5000 && xv im...
/* * Copyright (c) 2004-2009 Hyperic, Inc. * Copyright (c) 2009 SpringSource, Inc. * Copyright (c) 2009-2010 VMware, 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...
/********************************************************************** * <NAME>, Imperial College London * * File: filtering_algorithm_util.cpp * * Revision 1.01 * Additional Comments: distributed under a BSD license, see LICENSE.txt * **********************************************************************/ #include <...
// - - - - - // DMXSerial - A Arduino library for sending and receiving DMX using the builtin serial hardware port. // DMXSerial.cpp: Library implementation file // // Copyright (c) 2011 by <NAME>, http://www.mathertel.de // This work is licensed under a BSD style license. See http://www.mathertel.de/License.aspx // //...
/********************************************************************* * Implements an operational data provider. The example randomly changes * operational data, which can be seen in yang-push NETCONF subscription. * * The demo is partly implemented in C++ to simplify implementation * (list, map, threading) * *...
#include <cgv/base/node.h> #include <cgv/signal/rebind.h> #include <cgv/base/register.h> #include <cgv/gui/event_handler.h> #include <cgv/math/ftransform.h> #include <cgv/gui/provider.h> #include <cgv/render/drawable.h> #include <cgv/render/shader_program.h> #include <cgv/render/attribute_array_binding.h> #include <cgv...
////////////////////////////////////////////// //dual coordinate descent for softmax regression #include "Solver_FW.h" #include <math.h> //#include <stdio.h> #include <stdlib.h> //#include <string.h> //#include <stdarg.h> //#include <locale.h> #include <algorithm> //#include <time.h> #include <iostream> //////////////...
#include "semantics.h" #include <sstream> static vector<symbnode> allparam; static vector<int> Offsets;///每层当前偏移 static vector<Lsymbtable> scope; static vector<string> errorlist; static int getLevel(); static intIR intir; static charIR charir; static boolIR boolir; FILE * listing; FILE * cppfile; int getLevel() {ret...
// ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- template < typename inputPixelType, typename binaryPixelType, typename seedDetecPixelType, typename loGResponsePixelType > void ftk::nucSecNic:...
/*========================================================================= Program: GDCM (Grassroots DICOM). A DICOM library Copyright (c) 2006-2011 <NAME> All rights reserved. See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY...
#include "HT1632.h" #if (ARDUINO >= 100) #include <Arduino.h> #else #include <WProgram.h> #endif /* * HIGH LEVEL FUNCTIONS * Functions that perform advanced tasks using lower-level * functions go here: */ void HT1632Class::drawText(const char text [], int x, int y, const char font [], const char font_width [...
// DTiles.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include"DTiles.h" void readFileJson(string filePath) { //从文件中读取,保证当前文件有demo.json文件 ifstream in(filePath, ios::binary); if (!in.is_open()) { cout << "Error opening file\n"; return; } //json中的每一行string string str; string sst; while (getline(in, str))...
/* Modbus over serial line - RTU Slave Arduino Sketch By <NAME> : <EMAIL> http://sites.google.com/site/jpmzometa/ <NAME>: <EMAIL> and <NAME>. These functions implement functions 3, 6, and 16 (read holding registers, preset single register and preset multiple registers) of the Modbus RTU Protocol, to be...
/** * @page Examples * - MainV10.22_bitExt_3Markov_bitWeightPunc.cpp * @file * @brief Simulation Entrance * @version 10.22 * @author <NAME>, yh3g09 (<EMAIL>, <EMAIL>) * @date Jun 15, 2010-Nov 10, 2011 * @copyright None */ #include "Headers.h" #include MainClass_H #include FileOper_H #include Channels_H #inc...
/* Copyright (c) <2003-2019> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * includi...
#include "emulator/Via.h" #include "core/BitOps.h" #include "core/ErrorHandler.h" #include "emulator/EngineTypes.h" #include "emulator/MemoryMap.h" namespace { enum class ShiftRegisterMode { // There are actually many more modes, but I think Vectrex only uses one ShiftOutUnder02 }; namespa...
/* This file forms part of hpGEM. This package has been developed over a number of years by various people at the University of Twente and a full list of contributors can be found at http://hpgem.org/about-the-code/team This code is distributed using BSD 3-Clause License. A copy of which can found below. Copyr...
#include "Parser.h" #include "Filter.h" #include "../Test/Test.h" #include "File.h" #include "../Output/OutputHandler.h" #include "../Request.h" #include "../SampleInfo.h" #include "../vikNGS.h" #include "../Log.h" #include <future> #include <thread> #include <chrono> #include <queue> static const std::string ERROR_S...
#include<GL/glut.h> #include<stdio.h> #include<math.h> #include<string.h> #include<time.h> //prototype of dijkstra void dijkstra(); //Window Size GLsizei wh = 1020, ww = 1080; //Used in drawSquare, square length GLfloat size = 3.0; float PI = 3.14285714286; //Radius of circle int radius = 30; //No. of nodes in wi...
#include <constants.hpp> Bitboard random_bitboard() { Bitboard u1, u2, u3, u4; u1 = (Bitboard)(rand()) & 0xFFFF; u2 = (Bitboard)(rand()) & 0xFFFF; u3 = (Bitboard)(rand()) & 0xFFFF; u4 = (Bitboard)(rand()) & 0xFFFF; return u1 | (u2 << 16) | (u3 << 32) | (u4 << 48); } Bitboard random_bitboard_fewbits() ...
// Copyright 2012 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...