text
stringlengths
5.71k
33.7k
// The physics calculations of the world. #include "CServerConfig.h" #include "CServerTime.h" #include "chars/CChar.h" #include "chars/CCharNPC.h" #include "components/CCPropsChar.h" //******************************** // Movement int CServerConfig::Calc_MaxCarryWeight( const CChar * pChar ) const { ADDTOCALLSTACK(...
#include "../include/CPU.h" #include "../include/OpcodeInit.hpp" #include "../include/PPU.h" /** * Initialize the CPU by constructing and populating * Memory from the given ROM * @param ROMPath Path to the ROM */ CPU::CPU(std::string ROMPath): memory(ROMPath) { // Default Values cyclesLeft = 114; extraCycle...
#include <chrono> #include <iostream> #include <sstream> #include "boost/bind/bind.hpp" #include "boost/uuid/uuid.hpp" #include "boost/uuid/uuid_generators.hpp" #include "boost/uuid/uuid_io.hpp" #include "directory.h" #include "publisher.h" #define FROM_CAP_HEX(c) ((isdigit(c) ? (c) - '0' : (c) + 10 - 'A')) namespa...
// Include FDPS header #include <particle_simulator.hpp> // Include the standard C++ headers #include <cmath> #include <cstdio> #include <iostream> #include <vector> #include <sys/stat.h> /* Parameters */ const short int Dim = 3; const PS::F64 SMTH = 1.2; const PS::U32 OUTPUT_INTERVAL = 10; const PS::F64 C_CFL = 0.3; ...
#include <sstream> #include "Conversion.hpp" #include "CoordUtils.hpp" #include "DefaultAnimationFactory.hpp" #include "Display.hpp" #include "DisplaySettings.hpp" #include "Game.hpp" #include "MapUtils.hpp" #include "Screen.hpp" #include "Setting.hpp" #include "Serialize.hpp" #include "StringTable.hpp" using namespac...
/************************************************************************* * * File Name : nesvd.cpp * Platform : gnu C++ compiler * Author : <NAME> * Date : * * * SYNOPSIS * This file finds the coil current from given plasma surface flux * using simple SDV i...
/* * 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 by applica...
#include <iostream> #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/gtc/matrix_transform.hpp> #include "Graphics/Window.h" #include "Graphics/Buffers/Buffers.h" #include "Graphics/Shader.h" #include "Graphics/Renderer.h" #include "Graphics/Sprite.h" #include "Graphics/Texture.h" #include "Graphics/Camera.h...
/*========================================================================= * * Copyright (c) 2014-2015 The Regents of the University of California. * All Rights Reserved. * * Portions of the code Copyright (c) 2000-2007, Stanford University, * Rensselaer Polytechnic Institute, <NAME>, * <NAME> (see SimVascular ...
// Copyright (c) 2017 Graphcore Ltd. All rights reserved. #include "poplibs_support/logging.hpp" #include <boost/multi_array.hpp> #include <cassert> #include <poplibs_test/GeneralMatrixAdd.hpp> #include <poplibs_test/GeneralMatrixMultiply.hpp> #include <poplibs_test/Lstm.hpp> #include <poplibs_test/NonLinearity.hpp> #i...
/* Monte Carlo program to simulate a truncated Lennard-Jones or monatomic water liquid either in bulk, in contact with a small solute, or confined to a slit. For information on how this program works, please consult the accompanying tutorials or Section 4.2 of the following thesis: <NAME>, Hydrophobicity Across Leng...
/* Copyright (c) 2018 bsp 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, distribute, sublicense,...
#include "genotype.h" //------------------------------------------------------------------------ // // default ctor //------------------------------------------------------------------------ CGenome::CGenome():m_pPhenotype(NULL), m_GenomeID(0), m_dFitness(0), ...
#include "Profile.cpp" #include "livelog/llog-dump.h" using namespace acpul; using namespace std; Profile profile; // crawler [ // CrawlerContext [ class CrawlerContext { public: map<uint256, CBlock> &mblocks; map<uint256, CBlock *> mtxblock; map<COutPoint, CBlock *> &mvinblock; map<COutPoint, CBlo...
// Position graph vertexes using spring simulation // Edges of the graph behave like springs: connected vertexes attract // one another according to Hooke's law. In addition, all vertexes // repel one another with an inverse square law. Thus connected // vertexes will tend to be separated by the natural length of...
#include <errno.h> #include <memory> #include <stdarg.h> #include <stdio.h> #include <string.h> #include <sys/time.h> #include "esp_log.h" #include "lwip/err.h" #include "lwip/sockets.h" #include "lwip/sys.h" #include "rbjson.h" #include "rbprotocol.h" using namespace rbjson; static const char* TAG = "RbProtocol";...
//Copyright (c) 2013 Singapore-MIT Alliance for Research and Technology //Licensed under the terms of the MIT License, as described in the file: // license.txt (http://opensource.org/licenses/MIT) /* * File: RealEstateSellerRole.cpp * Author: <NAME> <<EMAIL>> * * Created on Jan 30, 2015, 5:13 PM */ #inclu...
#define ENTITY_DEBUG 0 void AggroEnemy::update(float delta) { time += delta; if (time < idle_time + time_offset) { // Circle around player Vec2 goal = circling_center + V2(cos(time), sin(time)) * circling_radius; Vec2 old_velocity = body.velocity; body.velocity = go...
// // This is a tiny and unfair bit of code to check various options for // implementing CONS for multi-threaded use. // // There are two (and a half) competing schemes: // // (1) Use std::atomic::fetch_add. The idea is roughly // std::atomic <ConsCell *>fringe; // ConsCell *allocate_cons_cell() // { Cons...
#include "pynq_dsp_hls.h" SampleData effect_distortion(SampleData inData, uint32_t config[EFFECT_CONFIG_SIZE]) { const float thresh = hls::abs(rawBitsToFloat(config[1])); // 負数が指定されると音が出なくなる想定, 1.0以上の場合は実質効かない(エフェクトの途中で超えていた場合を除く) SampleData dst; const float absL = hls::abs(inData.l); const float absR = ...
//:>------------------------------------------------------------------ //: FILE: FtfPara.cxx //: HISTORY: //: 28oct1996 version 1.00 //: 7dec1998 ppy variable names changed to C++ style //: 3jun1999 ppy add fillTracks flag //: 11aug1999 ppy add vertexContrainedFit...
#include "smokem.h" using std::string; static Program* ModelProgram; static std::vector<Object*> objects; static std::vector<Light> lights; static glm::vec3 smokeTranslation(-10, 10, 20); static Program* RaycastProgram; static Program* LightProgram; static Program* BlurProgram; static bool SimulateFluid = true; s...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
#include <math.h> //#define float double double bessj0(double x) // Returns the Bessel function J_0(x) for any real x. { double ax,z; double xx,y,ans,ans1,ans2; // Accumulate polynomials in double precision. if ((ax=fabs(x)) < 8.0) { // Direct rational function fit. y=x*x; ans1=57568490574.0+y*...
#define _USE_MATH_DEFINES #include <iostream> #include <chrono> #include <fstream> #include "FileHelper.h" #include "cuMosaic.h" #include <string> #include <sstream> #include <random> #include <DistanceFunctions.cpp> #include <FastPoisson.h> using namespace std; // if true we assume local search will be 2r constexpr a...
/*! * toolbox. 2017 * * \author <NAME> <<EMAIL>> * \link https://github.com/edwardstock */ #include "gtest/gtest.h" #include <toolbox/strings.hpp> #include <toolbox/strings/regex.h> using namespace toolbox::strings; TEST(Strings, HasSubstringIgnoreCase) { ASSERT_TRUE(has_substring_icase("AAA", "AAA")); ...
/* * AuConnectivitySurgeryMex.cpp * Usage: [Skel.E, history] = AuConnectivitySurgery(X, Y, Z, TRIV) * Performs the connectivity surgery step by Au et al. 2008 to convert a * collapsed mesh into a 1D skeleton. * Variables: * X - X coordinate for all mesh vertices. * Y - Y coordinate for all mesh vertices. * Z - ...
#include "si4432.h" #include <SPI.h> #define MAX_TRANSMIT_TIMEOUT 200 // #define DEBUG //values here are kept in khz x 10 format (for not to deal with decimals) - look at AN440 page 26 for whole table const uint16_t IFFilterTable[][2] = { { 322, 0x26 }, { 3355, 0x88 }, { 3618, 0x89 }, { 4202, 0x8A }, { 4684,...
#include <sstream> #include <algorithm> #include <iterator> #include <fstream> #include <string> #include <vector> #include <unistd.h> #include <iostream> #include <sys/socket.h> #include <sys/types.h> #include <stdlib.h> #include <stdio.h> #include <netdb.h> #include <string.h> #include <pthread.h> #include <netdb.h>...
// Copyright 2020 Makani Technologies LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
/* * @brief sim_loc_driver_thread implements the worker thread for the ros driver for sick localization. * * Class sick_lidar_localization::DriverThread creates and runs two threads: * - a tcp thread to connect to the localization controller (f.e. SIM1000FXA) * and receive binary result port telegrams, and * - ...
#include "HandDetector.h" HandDetector::HandDetector(int tar_width) : _tar_width(tar_width) { } void HandDetector::init_threshold(int event, int x, int y, int flags, void *vhd) { if(event == CV_EVENT_LBUTTONDOWN) { HandDetector* hd = (HandDetector*)vhd; Vec3b p_rgb = hd->_last_img->at<Vec3b>(...
#include "Scene.h" #include <cmath> #include <algorithm> // For std::max #include <limits> // For std::numeric_limits // Some constants defining the various scenes //Reflective grey sphere vec3 centre = vec3( 0.9, -1.925, -6.69); float radius = 0.825; //Blue pyramid vec3 blue_pyramid[12]{ vec3(-0.4, -2.75, -9.5...
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <cstdlib> #include <cmath> #include <string> #include <cstring> #include <pthread.h> #include "graph.h" #include <opencv/cv.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> using namespace std; using namespace cv; p...
#include "Mesh.hpp" #include <math.h> /* remainder */ using namespace std; Mesh::Mesh() { nElementsClst = 0; nPoints = 0; nSubClst = 0; } Mesh::~Mesh() { } void Point::set(double _x, double _y, double _z){ x = _x; y = _y; z = _z; } void Point::set_x(double x_){ x = x_; } void Poin...
// Note the omp parallel for requires -fopenmp at compile time // yields ~10x speedup. #include <gmpxx.h> #include <algorithm> #include <cassert> #include <chrono> #include <cmath> #include <cstdio> #include <iostream> #include <map> #include <string> #include <vector> using namespace std; //#define START_DIGIT 1 //...
#include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <SDL2/SDL.h> #include "glsys.h" #include "ArrayCount.h" #include "FileUtil.h" #define WINDOW_SIZE 640 #define ARRAY_COUNT(array) (sizeof(array) / sizeof(array[0])) #define DSA_ENABLED() (GLSYS_FEATURE_VERSION == GL_VERSI...
#include <Arduino.h> #include <ESP8266WiFi.h> #include <vector> #include <ESP8266mDNS.h> #include <ESPAsyncTCP.h> #include <ESPAsyncWebServer.h> #include <Esp.h> #include "static/index.html.gz.h" #include <AsyncMqttClient.h> #include <Embedis.h> #include <FS.h> #include <Ticker.h> #include <sntp.h> Embedis embedis(Seri...
/* This tutorial show how to create a more complex application with the engine. We construct a simple mesh viewer using the user interface API and the scenemanagement of Irrlicht. The tutorial show how to create and use Buttons, Windows, Toolbars, Menus, ComboBoxes, Tabcontrols, Editboxes, Images, MessageBoxes, Sky...
#include <clober_serial/clober_serial.hpp> CloberSerial::CloberSerial() : port_("/dev/ttyUSB0"), baudrate_(115200), timeout_(50), control_frequency_(50.0), odom_frame_parent_("odom"), odom_frame_child_("base_link"), cmd_vel_timeout_(1.0), odom_mode_(0) { ros::Nod...
/** * @author: <NAME> (<EMAIL>) */ #include <algorithm> #include <map> #include <memory> #include <unordered_map> #include <utility> #include <vector> #include <cassert> #include <cmath> #include <cstdlib> #include "fenwick.h" #include "lcskpp.h" using namespace std; // This function determines the total number o...
#include "Consolidation.h" bool GetClusters(int &cluster_id_col, const Table &table, vector<vector<int>> &clusters, string &cluster_id_name) { unordered_map<string, int> cluster_id_map; bool found = false; for (int j = 0; j < table.schema.size(); j++) { auto &attr = table.schema[j]; cout << "where is...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json; // For convert...
/* // Copyright (c) 2018-2020 Intel 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 l...
//$Id$ //------------------------------------------------------------------------------ // PrinceDormand78 //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool. // // Copyright (c) 2002 - 2020 United States Government as represent...
#include <iostream> #include <fstream> #include <sstream> #include <map> #include "tinydir.h" #include "vtflib.h" #include "lodepng.h" using namespace std; using namespace VTFLib; class PackerImage { public: PackerImage(); void init(int w, int h); bool loadFile(const char* filename); bool copyRegion(PackerIm...
/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <X11/Xlib.h> #include "drw.h" #include "util.h" #define UTF_INVALID 0xFFFD #define UTF_SIZ 4 static const unsigned char utfbyte[UTF_SIZ + 1] = {0x80, 0, 0xC0, 0xE0, 0xF0}; static const...
/* Parsing.cpp - HTTP request parsing. Copyright (c) 2015 <NAME>. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at yo...
#include "../basic-abstract-game.h" #include "../assetgen.h" #include <set> #include <queue> const float COMPLETION_BONUS = 10.0; const int LAVA_WALL = 1; const int PLAYER_ASSET_TYPE = 2; const int PLAYER_BALL = 3; const int ENEMY = 4; const int DOOR = 5; const int ENEMY_BALL = 6; const int DOOR_OPEN = 7; const int D...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <array> #include <boost/functional/hash.hpp> // IWYU pragma: keep #include <cstddef> #include <limits> #include <string> #include <type_traits> #include <unordered_map> #include <utility> #include "DataStructures/DataBox/Pre...
#include "Game.h" using namespace std; Game::Game() {} Game::~Game() { //cout << "destroying game variables" << endl; player->~Player(); currentLevel->~Level(); ground->release(); } void Game::init() { // Load shaders initShaders(); // Create textures initTextures(); // Create materials initMaterials();...
/* * Copyright (C) 2021-2022 Riyyi * * SPDX-License-Identifier: MIT */ #include <cassert> // assert #include <cctype> // tolower #include <cstddef> // size_t #include <cstdio> // fprintf, printf, stderr #include <filesystem> #include <functional> // function #include <pwd.h> // getpwnam #include <string> #i...
// Copyright 2020 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 "net/third_party/quiche/src/quic/core/crypto/certificate_view.h" #include <cstdint> #include <memory> #include <string> #include "third_party/b...
// Scintilla source code edit control /** @file LexRebol.cxx ** Lexer for REBOL. ** Written by <NAME>, inspired from LexLua by <NAME> & <NAME> & <NAME> ** ** History: ** 2005-04-07 First release. ** 2005-04-10 Closing parens and brackets go now in default style ** String and comment nesting should ...
/* * Copyright (C) 2015 midnightBITS * * 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, pub...
//#include <kbd.h> //#include <Vdu.h> #include <Mouse.h> #include <CuiBase.h> #include <stdlib.h> #include <dos.h> VgaInf va; //void interrupt far *OldKbdVec(...); #define NoOfScanLn(N) ((N)==0)? 200:((N)==1)?350:((N)==2)?400:((N)==3)?480:0 #define AvlblScanLns(N) ((N)&4)? 400:((N)&2) ?350:((N)&1) ?200:0 #...
//********************************************************** // ITESO - Master's Degree in Computer Systems // Computer Graphics // Demo 06 - Vertex selection (sphere magnetic field) // // <NAME> (705080) // //********************************************************* #include "stdafx.h" #include "Matrix4D.h" #include <...
#include "html/Uri.h" #include "html/wincstring.h" #include <strstream> #include <cstdlib> #include <cassert> #include "html/tld.h" //#define DEBUG #include "html/debug.h" using namespace std; using namespace htmlcxx; /** Structure to store various schemes and their default ports */ struct schemes_t { /** The n...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "XJsonBlobRequest.hh" #include "XJsonBlobBlockCountsMgr.hh" #include <string> #include <map> #include "MdsTime.hh" #include "Constants.hh" #include "Crypto.hh" #include "Logger.hh" #include "Trace.hh" #include "Uti...
#include "graph/graph.h" #include "graph/edge.h" #include "graph/node.h" #include "graph/custom_graphs.h" #include "edge.h" #include "node.h" #include "select_algorithm_widget.h" #include "select_graph_widget.h" #include "mainwindow.h" #include <QGraphicsSceneMouseEvent> #include <QJsonArray> #include <QJsonObject> ...
#pragma once #include <string> #include <vector> #include "logic.hpp" #include "hint_list.hpp" #include "keys.hpp" class Exit; class ItemLocation; class EventPairing { public: using ConditionFn = bool (*)(); explicit EventPairing(bool* event_, ConditionFn conditions_met_) : event(event_), ...
#include "DepthImageView.hpp" #include "DepthImage.hpp" #include "Utils.hpp" #include "RansacGeneric.hpp" using namespace maps; DepthImageView:: DepthImageView() { mImage.reset(new DepthImage()); setNormalRadius(0); setNormalMethod(NormalMethodTriangle); } DepthImageView:: ~DepthImageView() { } void DepthIma...
//===- AsyncToAsyncRuntime.cpp - Lower from Async to Async Runtime --------===// // // 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 // //===---------------------------...
// ----------------------------------------------------------------------------- // File: nemo.cc // Author: <NAME> // Affiliation: MIT Lincoln Laboratory // ----------------------------------------------------------------------------- #include <cassert> #include <cstdio> #include <cstdlib> #include <cstri...
#include <algorithm> #include <vector> #include <queue> #include <map> #include <unordered_map> #include <unordered_set> #include <boost/shared_ptr.hpp> #include <boost/functional/hash.hpp> #include "fast_lexical_cast.hpp" #include "tree_fragment.h" #include "translator.h" #include "hg.h" #include "sentence_metadata.h"...
// Copyright (C) 2021 THL A29 Limited, a Tencent company. 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 ...
// C++ standard library headers #include <algorithm> #include <cmath> #include <cstdlib> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <numeric> #include <vector> // triumf++ headers // #include <triumf/bnmr/srf/local.hpp> #include <triumf/bnmr/srf/nonlocal.hpp> #include <triumf/...
// Copyright 2010 <NAME> // // WaxlampCacheNetwork.cpp // MTV headers. #include <Core/Dataflow/Printer.h> #include <Core/Geometry/ParameterAffineRemapper.h> #include <Core/Geometry/RandomAnnulus.h> #include <Core/Geometry/RandomDisc.h> #include <Core/Graphics/FadingPoint.h> #include <Core/Graphics/GLPoint.h> #include ...
#pragma once #include <functional> #include "timer.hpp" #include "io.hpp" #include "util.hpp" #include "graph.hpp" #include "sampler.hpp" #include "mini_bmk.hpp" /** * Produce partition hint for a graph. * * The partition hint is produced based on mini benchmark results. * The partitioning is reduced to MCKP pro...
#include"includes.h" Camera camera; float gl_deltaTime; float fov; float g_time = 0.0f; float g_exposure = 0.5f; unsigned int VAO, VBO, EBO; float vertices[] = { // positions // normals // texture coords// -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, -0.5f, 0.5f, -0.5f, 0.0f, 0.0f,...
#include "NvInfer.h" #include "cuda_runtime_api.h" #include "logging.h" #include <fstream> #include <iostream> #include <map> #include <sstream> #include <vector> #include <chrono> #include <cmath> #include <cstring> #define CHECK(status) \ do\ {\ auto ret = (status);\ if (ret != 0)\ {\...
#include "StdCollisionPairInserter.h" #include "ColdetModelInternalModel.h" #include "Opcode/Opcode.h" #include <cstdio> #include <iostream> using namespace std; using namespace Opcode; using namespace cnoid; namespace Opcode { int tri_tri_overlap( const Vector3& P1, const Vector3& P2, const Vector3& P3...
/* <NAME> */ #include <FingerWing_config.h> #include <ArtNetMK.h> const uint8_t socketCount = 4; /* MAX_SOCK_NUM */ /* check ethernet.h for socket count and buffer sizes */ #if defined(ARDUINO_SAMD_ZERO) || defined(ESP8266) || defined(ESP32) WiFiUDP Udp; WiFiUDP udp_slave1; WiFiUDP udp_slave2; WiFiUDP udp_sla...
#include "deal.h" using namespace Game; extern std::map<int, bool> keyboard; extern Player player; extern std::vector<Enemy> enemy; extern std::vector<Bullet> bullet; extern std::vector<Bonus> bonus; extern bool gameOver; extern int soulAttack; extern int score, highestScore; extern double endTime; ext...
#pragma once #ifdef _DEBUG # define _VERIFY(x) ASSERT(x) #else # define _VERIFY(x) x #endif ////////////////////////////////////////////////////////////////////////////////////////////// // Version of the game #define GAME_MAIN_VERSION 1 //!< [0..255] #define GAME_SUB_VERSION 4 //!< [0..255] patch version numbe...
#include <string.h> #include "resource_win31.h" #include "util.h" static const uint8_t _shuffleTable[256] = { 0xB2, 0x91, 0x49, 0xEE, 0x8C, 0xBC, 0x16, 0x0D, 0x07, 0x87, 0xCD, 0xB6, 0x4C, 0x44, 0x22, 0xB3, 0xAE, 0x96, 0xDF, 0x18, 0x7B, 0x28, 0x17, 0x9A, 0x74, 0x3C, 0x2E, 0x59, 0x69, 0x56, 0x38, 0x82, 0x7F, 0x25, 0...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | | Copyrigh...
#include "MCP23S08.h" #include <iostream> MCP23S08::MCP23S08(): pins_to_index_() { SpiSlaveConfig spi_config; spi_config.mosi_pin_number = GetPinNumber("si"); spi_config.miso_pin_number = GetPinNumber("so"); spi_config.ss_pin_number = GetPinNumber("cs"); spi_config.sclk_pin_number = GetPinNumber...
#include <iostream> #include <fstream> #include <vector> #include <model-info.h> #include <lights.h> #include "../tinyxml2/tinyxml2.h" using namespace std; using namespace tinyxml2; /*--------------------------------------------------------------------------------------------------------------------*/ //Global con...
/*This source code copyrighted by <NAME> (2004-2015) and may not be redistributed without written permission.*/ //Using SDL, SDL_image, standard IO, and strings #ifdef _WIN32 #include <SDL_image.h> //define something for Windows (32-bit and 64-bit, this part is common) #ifdef _WIN64 //define something f...
#ifdef RD_WG_SIZE_0_0 #define BLOCK_SIZE RD_WG_SIZE_0_0 #elif defined(RD_WG_SIZE_0) #define BLOCK_SIZE RD_WG_SIZE_0 #elif defined(RD_WG_SIZE) #define BLOCK_SIZE RD_WG_SIZE #else #define BLOCK_SIZE 16 #endif #define LIMIT -999 #include <stdio.h> #include <string.h> #include <stdlib.h> #include <iostream> #include <str...
#include "data/hdf/HDFBasReader.h" #include "data/hdf/HDFRegionTableReader.h" #include "SMRTSequence.h" #include "algorithms/alignment/AffineGuidedAlign.h" #include "algorithms/alignment/SDPAlign.h" #include "algorithms/alignment/DistanceMatrixScoreFunction.h" #include "algorithms/alignment/IDSScoreFunction.h" #include...
/************************************************************************ * Copyright 2008, Strathclyde Planning Group, * Department of Computer and Information Sciences, * University of Strathclyde, Glasgow, UK * http://planning.cis.strath.ac.uk/ * * <NAME>, <NAME> and <NAME> - VAL * <NAME> - PDDL Parser * * ...
/* * calstep_dialog.cpp * PHD Guiding * * Created by <NAME> * Copyright (c) 2013 <NAME> * All rights reserved. * * This source code is distributed under the following "BSD" license * Redistribution and use in source and binary forms, with or without * modification, are permitted provided tha...
/** * Copyright (C) 2016 Turi * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ #include <cassert> #include <boost/bind.hpp> #include <parallel/atomic.hpp> #include <logger/logger.hpp> #include <fault/zmq/print_zmq_e...
#include <fstream> #include <iostream> #include <algorithm> #include <sstream> #include "sop_instance.h" #include "ant_sop.h" using namespace std; int get_optimum(const std::string &instance_name); vector<string> split(const string &str, const string &sep) { vector<string> res; size_t pos; size_t pre...
#include <gtest/gtest.h> #include <clocale> #include <cstdlib> #include <lngs/lngs_storage.hpp> #include "lang_file_helpers.h" extern std::filesystem::path TESTING_data_path; namespace lngs::storage::testing { using namespace ::std::literals; using ::testing::TestWithParam; using ::testing::ValuesIn; struct simp...
#include <cmath> #include <algorithm> #include <sstream> #include <utils/logger.h> #include "modelScriptParser.h" #include "zenParser.h" using namespace ZenLoad; MdsParserTxt::MdsParserTxt(ZenParser &zen) :zen(zen) { buf.reserve(8); } MdsParserTxt::TokType MdsParserTxt::nextTok(std::string& buf) { buf.clea...
//Libraries #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include <iostream> #include <sstream> #include "Tweener.h" using tweeners::Tweener; //Global variables,functions and classes /** * @brief Returns the name of a key */ const char *getKeyName( const sf::Keyboard::Key key ) { switch( key ) { defa...
#include "color_panel.h" #include "libs/imgui/imgui.h" #include "libs/mathlib.h" #include "ui.h" #include "pagl.h" #include "gl_lite.h" static PaglProgram* compile_hue_shader(u32 vertex_shader); static PaglProgram* compile_sat_val_shader(u32 vertex_shader); ColorPanel* init_color_panel(PapayaMemory* mem) { Color...
//============================================================================== // This file is part of the SPNC project under the Apache License v2.0 by the // Embedded Systems and Applications Group, TU Darmstadt. // For the full copyright and license information, please view the LICENSE // file that was distributed...
#include "ukf.h" #include "tools.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during init) use_laser_ = tru...
#include "test.h" ot_ext_prot test_prots[] = {IKNP, ALSZ, NNOB}; field_type test_ftype[] = {P_FIELD, ECC_FIELD}; snd_ot_flavor test_sflavor[] = {Snd_OT, Snd_C_OT, Snd_GC_OT, Snd_R_OT}; rec_ot_flavor test_rflavor[] = {Rec_OT, Rec_R_OT}; uint64_t test_numots[] = {128, 3215, 100000}; uint64_t test_bitlen[] = {1, 3, 8, 19...
//------------------------------------------------------------------------------ // lab2.cpp // (C) 2015-2017 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "config.h" #include "lab2.h" #include "node.h" #include "types.h" #include "ut...
#include<iostream> #include<string> #include<vector> #include<bitset> #include<fstream> using namespace std; #define MemSize 1000 // memory size, in reality, the memory size should be 2^32, but for this lab, for the space resaon, we keep it as this large number, but the memory is still 32-bit addressable. stru...
/* * Copyright (C) 2011-2012 by <NAME> * See license.txt for full license and copyright notice. * * Authors: <NAME> * * mainTest.cpp * * Created on: September 17th, 2012 * Author: <NAME> * * \brief Generates a hierachical segmentation of a 3D stack and saves teh result in binary format * */ #inclu...
//------------------------------------------------------------------------------------------------ // Copyright (c) 2012 <NAME> and <NAME> (University Campus Bio-Medico of Rome). // All rights reserved. //------------------------------------------------------------------------------------------------ /********...
#include <cstddef> #include <iostream> #include <time.h> #include <iomanip> using namespace std; #define COLOR(color) (color == 0) ? "red" : "black" static const short BLACK_ = 1; static const short RED_ = 0; static const short LEFT_ = 100; static const short RIGHT_ = 200; class RBTreeNode { private: RBTreeNode ...
//===- lib/MC/ARMELFStreamer.cpp - ELF Object Output for ARM --------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
int KYrn, JnJo ,ppFp ,MzMl ,b,fIt , XK/*j*/ , Xv , Pv , KH8 ,ZIXmJ ,/**/rFt , /*y*/yL , HEh ,BIU , P , Ch ,aIW5b , /*hS*/ l8v9 , g3 ,//j8A /*aU11*/ycvFdH,B3F , y, // kp1T,TPovxr ,b4a ,vK1,MQ , f//jgS ,zi;void f_f0/*Ls*/ () {/*y43*/ int Eo ; volatile int d5 ,UFhk ,Cnye , P34, //Uw /**/bCsI ...