text
stringlengths
3.08k
22k
/*++ Copyright (c) 2000 Microsoft Corporation Module Name: CHGPSW.CPP Abstract: Handler for the CHANGE button on the properties dialog, used to change the user's domain password. Author: 990917 johnhaw Created. georgema 000310 updated georgema 0005...
/* PicoPicoGames Copyright (c) 2009, <NAME>, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditi...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include <...
/* This file is part of solidity. solidity 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. solidity is distributed in the hope that i...
/*************************************************************************************************************** * Razor AHRS Firmware v1.4.2 * 9 Degree of Measurement Attitude and Heading Reference System * for Sparkfun "9DOF Razor IMU" (SEN-10125 and SEN-10736) * and "9DOF Sensor Stick" (SEN-10183, 10321 and SEN-1072...
// FFMPEG Video Encoder Integration for OBS Studio // Copyright (c) 2019 <NAME> <<EMAIL>> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitati...
#include "stdafx.h" #include "elements.h" #include "world.h" // ### GAME BALANCING ### #define MAXHEIGHT 2000 // Max Map Height #define MAXWIDTH 2000 // Max Map Width #define MAXSHIPS 2000 // Max Ship Count #define ENDGAME 100 // Treasure Amount for Game Over // ###################### using namespace std; Wor...
// -*- coding: us-ascii-unix -*- // Copyright 2012 <NAME> // // 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 "DriveGeometry.h" #include "utils/geometry/Geometry.h" #include <cmath> #include <limits> using namespace taco; using namespace Eigen; #define THRESHOLD 5 #define MINIMUM_RADIUS 0.5 const Pose2D DriveGeometry::calculateCurvePose( const double &leftWheelDistance, const double &rightWheelDistance, const do...
// Copyright (c) the JPEG XL Project 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 <math.h> #include <stdio.h> #include <stdlib.h> #include <atomic> #include "jxl/butteraugli.h" #include "jxl/parallel_runner.h" #inclu...
/********************************************************************** // @@@ START COPYRIGHT @@@ // // 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. ...
// Spatial hash grid? Awesome. #include "../boiler/boiler.h" #include <vector> #include <utility> #include <iostream> struct ball { float x; float y; float nx; float ny; float vx; float vy; }; #define MAX_ENTRIES 16 struct grid_cell { size_t num_entries; ball* entries[MAX_ENTRIES]; }; bool repulsion = ...
// // Created by <NAME> (EI) on 2019-07-12. // #include "SequenceMapper.hpp" SequenceMapper::SequenceMapper(const DistanceGraph &_dg,uint8_t _k,int _max_kfreq, int _min_size, int _min_chain, int _max_jump, int _max_delta_change):sg(_dg) { k=_k; min_size=_min_size; min_chain=_min_chain; max_jump=_max_j...
// ============================================================================ // Copyright 2018 <NAME> and <NAME> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain ...
// (c) 2018 Yuoa. // handle.pcap.cpp #include "common.hpp" #include "pcap.hpp" using std::cout; using std::endl; using std::strlen; using std::bitset; using std::vector; using std::floor; using std::log2; using std::printf; using std::hex; using std::dec; using std::setfill; using std::string; using...
/* * ldpc_wrapper.cpp * * Created on: Mar 5, 2009 * Author: abachrac */ /*BASED OFF OF: * $Id: perf_tool2.cpp,v 1.7 2006/09/05 15:59:49 roca Exp $ */ /* LDPC/LDGM extended performance tool. * (c) Copyright 2002-2006 INRIA - All rights reserved * Main authors: <NAME> (<EMAIL>) * <NAME>...
/*************************************************************************/ /* audio_filter_sw.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/** * MIT License * * Copyright (c) 2021 Dantali0n * * 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, modif...
#include "PostProcessor_pcp.h" #include "DisplayModel.h" DisplayModel::DisplayModel() : rb_vao(0), rb_vbo(0), rb_ibo(0), rb_id_num(0), bgm_vao(0), bgm_vbo(0), grid_line_points_num(0), pcls_vao(0), pcls_vbo(0), pcls_id_num(0) {} DisplayModel::~DisplayModel() { if (rb_vao) { glDeleteVertexArrays(1, &rb_vao); g...
 /* Copyright (c) 2014-present Maximus5 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
#include "RFM12B.h" #include "SPI.h" uint8_t RFM12B::cs_pin; // CS pin for SPI uint8_t RFM12B::nodeID; // address of this node uint8_t RFM12B::networkID; // network group ID long RFM12B::rf12_seq; uint32_t RFM12B::seqNum; uint32_t RFM12B::cryptKey[4]; volatile uint8_t RFM12B:...
/** * @file main.cpp * @copyright Copyright (c) 2020 University of Turku, MIT License * @author <NAME> */ #define LOGURU_WITH_STREAMS 1 #include <loguru.hpp> #include <ftl/configuration.hpp> #include <ctpl_stl.h> #include <string> #include <map> #include <vector> #include <fstream> #include <thread> #include <set...
/*----------------------------------------------------------------------------*/ /** * This confidential and proprietary software may be used only as * authorised by a licensing agreement from ARM Limited * (C) COPYRIGHT 2011-2012 ARM Limited * ALL RIGHTS RESERVED * * The entire notice above must be reproduced ...
// TExaS.cpp // Runs on LM4F120/TM4C123 // Periodic timer interrupt data collection // PLL must be on for ADC to work (turned on in startup) // ADC1 PD3 Ain4 continuous sampling (turned on in startup) // EE319K Lab 8 // in general, students should not edit this file // Uses Timer5A to sample ADC // <NAME> // March 28,...
/****************************************************************** Copyright © <NAME> Co., Ltd. 1990-2021. All rights reserved. * @projectName webapi * @brief webapi.cpp * @author <NAME> * @email <EMAIL> * @net www.openedv.com * @date 2021-05-27 *****************************...
// MIT License // // Copyright(c) 2020 <NAME> and <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, mo...
/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 3 of the License, or (at your option) ...
/* 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...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
/*************************************************************************** copyright : (C) 2002 - 2008 by <NAME> email : <EMAIL> ***************************************************************************/ /***************************************************************************...
#include <filter/KalmanFilter.h> #include <Eigen/QR> #include <cmath> KalmanFilter::KalmanFilter(ParamsManager* params) { params_ = params; // Init State vector state_t_.setZero(); state_t_1_.setZero(); // Set constant velocity // TODO(alericcardi): create const variable state_t_(3, 0) = params_->init...
/* * Copyright 2014. Los Alamos National Security, LLC. This material was produced * under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National * Laboratory (LANL), which is operated by Los Alamos National Security, LLC * for the U.S. Department of Energy. The U.S. Government has rights to use, ...
/* PURPOSE: ( Handle the simulation command line args ) REFERENCE: ( Trick Simulation Environment ) ASSUMPTIONS AND LIMITATIONS: ( None ) CLASS: ( N/A ) LIBRARY DEPENDENCY: ( None ) PROGRAMMERS: ( <NAME>Com 6/2003 ) */ #include <iostream> #include <sys/stat.h> #include <stdio.h> #include <stdli...
#include "Halide.h" #include "mpi_timing.h" using namespace Halide; #include <halide_image_io.h> #include <iostream> #include <limits> #include <sys/time.h> using std::vector; std::default_random_engine generator(0); std::uniform_real_distribution<float> distribution(0, 1); DistributedImage<float> input, output; I...
#include <iostream> // entree/sorties #include <math.h> #include <fstream> #include "classes.h" using namespace std ; // déclaration des variables globales int blanc = 11 ; int noir = 22 ; // éxecution du programme final en C++ int main() { cout << "OTHELLO -- par <NAME>" << endl << endl ; grille grille_de...
// Copyright (c) 2011 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 <string> #include "base/basictypes.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/hash.h" #include "base/strings/st...
/* (c) <NAME> e-mail : <EMAIL> */ #define STRICT #include <windows.h> #include <mmsystem.h> #include <dsound.h> #include <iostream> typedef short Sample; #define SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } } #define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } } #pragma comment(lib, "dsound.lib"...
/* * SSD1306.cpp * * Created on: 19 Oct 2016 * Author: ralim */ #include "SSD1306.hpp" #ifndef _swap_int16_t #define _swap_int16_t(a, b) { int16_t t = a; a = b; b = t; } #endif #ifndef abs #define abs(x) ((x)<0 ? -(x) : (x)) #endif SSD1306::SSD1306(I2C_HandleTypeDef* i2cPort) { //create the object _i2cPo...
#include "tracker.h" lipe::Tracker::Tracker(const TrackerConfig& config){ config_ = &config; frame_counter_ = 0; current_rolling_ID_ = 1; // 0 is ego in BP tracked_objects_ = new Blob[config_->max_tracked_objects]; }; lipe::Blob* lipe::Tracker::GetTrackedObjects(){ return tracked_objects_...
#include "cell.hh" #include <string> #include <sstream> #include <fstream> #include <iostream> using namespace std; unsigned int AgentCell::cellIdCounter = 0; const double AgentCell::DefaultGammaAlpha = 4.; const double AgentCell::DefaultGammaBeta = 1./18.32045567939674; const double AgentCell::DefaultGammaOf...
#include <stdint.h> #include "Arduino.h" #include "usbhid.h" #include "hidboot.h" #include "usbhub.h" #include "hid_keycodes.h" #include "host_report.h" #include "host.h" #define IS_ANY(code) (KC_A <= (code) && (code) <= 0xFF) #define IS_KEY(code) (KC_A <= (code) && (code) <= KC_EXSEL) #define IS_MOD(code) (KC_LCTRL <...
/* ** Copyright 2014-2016 The Earlham Institute ** ** 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 2017, <NAME>, Department of Computer Science, University of Bari 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...
//===- Example.cpp - Our running example ----------------------------------===// // // 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....
//===-- AMDGPUIndirectAddressing.cpp - Indirect Adressing Support ---------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // FLTK native file chooser widget wrapper for GTK's GtkFileChooserDialog // // Copyright 1998-2014 by <NAME> and others. // Copyright 2012 IMM // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this // file is mi...
/* Copyright 2021 Stanford University, Los Alamos National Laboratory * * 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 req...
#include "Global.h" #include "Loggers/None.h" #include <boost/date_time/gregorian/gregorian_types.hpp> #include <boost/date_time/date_duration.hpp> #include <boost/date_time/posix_time/ptime.hpp> //std::ofstream ofs("output.nl"); //Logger logger(std::ofstream("output.nl")); float Global::INF = std::numeric_limits<floa...
//===--- 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. // //===-------------------------------------------------------...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
/*========================================================================== * Copyright (c) 2004 University of Massachusetts. All Rights Reserved. * * Use of the Lemur Toolkit for Language Modeling and Information Retrieval * is subject to the terms of the software license set forth in the LICENSE * file includ...
#include <iostream> //#include <string.h> #include <cstring> //::open() ::mmap() #include <sys/types.h> #include <sys/stat.h> #include <sys/mman.h> #include <fcntl.h> #include <unistd.h> // ftruncate //error #include <cerrno> #include <system_error> //math ceil floor //#include <math.h> #include <cmath> #include ...
#include "stdafx.h" #include "pda.h" #include "hudmanager.h" #include "PhysicsShell.h" #include "Entity.h" #include "actor.h" #include "xrserver.h" #include "xrServer_Objects_ALife_Items.h" #include "level.h" #include "specific_character.h" #include "alife_registry_wrappers.h" #include "UIGameSP.h" #include "ui/UIPDA...
/* INCLUDES FOR THIS PROJECT */ #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <vector> #include <queue> #include <cmath> #include <limits> #include <opencv2/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/features2d.hpp> #...
/////////////////////////////////////////////////////////////////////////////// // File: DDHCalTBCableAlgo.cc // Description: Cable mockup between barrel and endcap gap /////////////////////////////////////////////////////////////////////////////// #include <cmath> #include <algorithm> #include "FWCore/MessageLogger/...
// // C++ version of fextract.f90. // This does not rely on FBaselib and is based on AmrDeriveLineValues.cpp // // Author: <NAME> // Date : May, 2018 // #include <iostream> #include <string.h> #include <AMReX.H> #include <AMReX_REAL.H> #include "AMReX_Box.H" #include "AMReX_FArrayBox.H" #include "AMReX_ParallelDescr...
#include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <string> #include <unistd.h> #include <stdio.h> #include <signal.h> #include <chrono> #include <future> #include <thread> #include "playgame.hh" using namespace chrono; pid_t playerIds[4]; FILE *toPlayers[4]; FILE *fromPlayers[4]; ...
//----------------------------------------------------------------------------- // Product: OpenCTM tools // File: obj.cpp // Description: Implementation of the OBJ file format importer/exporter. //----------------------------------------------------------------------------- // Copyright (c) 2009-2010 <NAME>...
#include <fstream> #include "ScopaGUI.h" #include "utility.h" #include "QLAgent.h" typedef std::pair<unsigned int, unsigned int> stateAlias; typedef unsigned int actionAlias; const size_t MATCH_COUNTER_STEP = 1000; const float CASUAL_ACTION_PROBABILITY = 0.1; const float LEARNIN...
// // Created by msagebaum on 3/31/18. // #include <util.h> #include <iostream> #include <cmath> #include <settings.h> #include <Statistics.h> #include "../include/Track.h" void Track::read(rapidxml::xml_node<>* trackSeg) { DataPoint point; for(rapidxml::xml_node<>* curPnt = trackSeg->first_node("trkpt"); curPnt;...
#include "EventLogFilterManager.h" #include <json/json.h> #include <libblockchain/BlockChainInterface.h> #include <libdevcore/TopicInfo.h> #include <libethcore/CommonJS.h> #include <libeventfilter/EventLogFilterParams.h> #include <libledger/LedgerParam.h> using namespace std; using namespace dev; using namespace dev...
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
//**************************************************************************** // "Those Funny Funguloids!" // http://funguloids.sourceforge.net // Copyright (c) 2006-2007, <NAME> // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any dam...
/* Copyright 2007 nVidia, 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.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
#define _USE_MATH_DEFINES #include <cmath> #include "particleemitter.h" float rand(float min, float max) { return min + (max - min) * (float(rand()) / RAND_MAX); } template <typename T> T getValueAtLife(float life, float midpoint, T a, T b, T c) { float t; T min, max; if (life <= mid...
#include "JSONParser.h" #include "Grogu.h" #include "Application.h" #include "M_Scene.h" #include "M_Input.h" #include "M_ResourceManager.h" #include "GameObject.h" #include "C_Transform.h" #include "C_RigidBody.h" #include "C_BoxCollider.h" #include "C_ParticleSystem.h" #include "GameManager.h" #include "Bullet.h"...
#include "obj_loader.h" #include <fstream> #include <iostream> OBJModel::OBJModel(const std::string& fileName) : OBJModel(fileName, 0) {} OBJModel::OBJModel(const std::string & fileName, size_t maxFaces) { hasUVs = false; hasNormals = false; std::ifstream file; file.open(fileName.c_str()); std::string line; ...
#include <VXpch.h> #include <Core/Modules/VXCore.h> #include <Core/Events/WindowEvent.h> #include <Graphics/GraphicsContext.h> #include <Core/VXConsole.h> Vortex::VXCore* GCore; DEFINE_LOGGER(LogCore); DEFINE_LOGGER(LogWindow); namespace Vortex { void VXCore::Startup() { CREATE_LOGGER(LogCore, spdlog::level::tra...
/* storagedrive.cpp: disk or tape drive, with an image file as storage medium. Copyright (c) 2018, <NAME> <EMAIL>, www.retrocmp.com 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 re...
#include <algorithm> #include <iostream> #include <vector> #include<sstream> #include<string> #include<cmath> #include<iomanip> //https://www.youtube.com/watch?v=t0Cq6tVNRBA template <typename T> class heap { private: size_t IntegerLogarithm2(size_t arg) { size_t logarithm = 0; while (arg >>= 1) ++logarithm; r...
 // Copyright (c) 2020 <NAME> // #include "CDL.h" #include <cassert> #include <map> #include <memory> #include <span> #include <sstream> #include <typeinfo> #include <vector> #include "parsing/base_rules.hpp" #include "parsing/cdl_rules.hpp" #include "parsing/detail/helpers.hpp" #include "parsing/translation_input....
// Copyright 2014 Shanghai Jiao Tong University // // 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 la...
// Copyright 2011 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...
/********** Copyright (c) 2020, Xilinx, 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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <unistd.h> #include <fcntl.h> #include <raids/ev_client.h> #include <raikv/ev_publish.h> #include <raikv/kv_pubsub.h> #include <raikv/timer_queue.h> #include <raimd/md_types.h> #include <raimd/tib_msg.h> using namespace rai; using ...
// Copyright (C) 2015 <NAME> (<EMAIL>), <NAME> (<EMAIL>) // License: MIT Software License See LICENSE.txt for the full license. // If you use this software in your research, then please use the following citation: // Kowalski, M.; <NAME>.; Daniluk, M.: "LiveScan3D: A Fast and Inexpensive 3D Data // Acq...
#include "heater_control.h" #include "AdInput.h" #include <string.h> int AdInput::_currTimeout=0; boolean AdInput::_isTimeout=false; boolean AdInput::_isChanged=false; AdInput::AdInput(int measTimeout) { _measTimeout=measTimeout; _count = 0; } int AdInput::add(int port,char *name,float diff, int mind,floa...
#include <vector> #include <algorithm> #include <stdlib.h> #include "stdafx.h" #include "CornerPoints.h" void CornerPoint::setAngle() { // The triangle vertices are ABC where this vertex is A. // B -> next vertex, C -> prev vertex // opposite edge lengths are a,b,c resp. // angle A = arccos((b^2 + c^2 - ...
#include <gtest/gtest.h> #include <state_estimation/utilities/imu_utilities.h> #include <state_estimation/utilities/transformation_utilities.h> using namespace state_estimation; // accelJacobianMatchesNumericalApproximation // // Helper for checking that the Jacobian produced by accelMeasurementJacobian() matches a /...
// pbrt is Copyright(c) 1998-2020 <NAME>, <NAME>, and <NAME>. // The pbrt source code is licensed under the Apache License, Version 2.0. // SPDX: Apache-2.0 #include <gtest/gtest.h> #include <pbrt/pbrt.h> #include <pbrt/util/taggedptr.h> using namespace pbrt; template <int n> struct IntType { int func() { retu...
/** * @file * * Unless noted otherwise, the portions of Isis written by the USGS are public * domain. See individual third-party library and package descriptions for * intellectual property information,user agreements, and related information. * * Although Isis has been used by the USGS, no warranty, exp...
#include "clustering.h" #include "distance.h" #include "../gabp/advanced_config.h" extern problem_setup ps; extern advanced_config ac; extern const char * inittypenames[]; extern const char * distance_measure_name[]; void advanced_config::init_command_line_options(graphlab::command_line_options & clopts){ clopts.a...
/* Altar War Copyright (C) 2018-2019 <NAME> 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, inclu...
////////////////////////////////////////////////////////////////////// // Copyright (C) 2009 - <NAME>. // Distributed under the zlib License (see readme file) ////////////////////////////////////////////////////////////////////// #include "CDLODStreamingTypeNormalmap.h" #include "CDLODStreamingStorage.h" #include "...
#include <string.h> #include <string_view> #include <sstream> #include <iostream> #include <chrono> #include <SessionManager.h> #include <boost/algorithm/string.hpp> #include <glog/logging.h> #define SESSION_ID_LEN 10 #define CREATE_COMMAND "/create" #define JOIN_COMMAND "/join" #define JOIN_PLAYER_COMMAND "/join_play...
#include "naobehavior.h" #include "../rvdraw/rvdraw.h" #include <time.h> extern int agentBodyType; // VecPosition randomBeamPos(){ // double a = -2.0f; // double b = 2.0f; // srand((int)time(0)); // double x = ((double)rand()/RAND_MAX)*((0.0f)-(-2.0f)) + (-2.0f); // double y = ((double)rand()/RAND_MA...
#if !defined(_WIN32) # include <unistd.h> #endif extern "C" { # include <uv.h> } #include <iostream> #include <streamer/core/RTMPThread.h> #include <streamer/core/RTMPWriter.h> #include <streamer/core/Log.h> #include <streamer/flv/FLVWriter.h> // --------------------------------------------------- void rtmp_thre...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2017-2019 The WaykiChain Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "cointransfertx.h" #include "main.h" /**################################ Base...
// Copyright 2017 <NAME> // // 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 ...
#include <iostream> #include "systemc.h" #include "models/memories/sdram/generic_sdram.hpp" #include "commons/assertions.hpp" #include "commons/testbench_utils.hpp" #include <map> using namespace std; template <int A_SIZE, int BA_SIZE> struct MockDDRController: sc_module { sc_in<sc_bv<1>> clk; sc_out<sc_bv<1>...
#include "dt.h" #include <string.h> #include <assert.h> #include "benchmark/benchmark.h" // 180_from_string.t const char sample[] = "2012-12-24T15:30Z"; #define S(s) {s, sizeof(s) - 1} struct { const char * sz; size_t len; } tests[] = { S("2012-12-24 15:30Z"), S("2012-12-24 15:30z"), S("2012-12-24 16:30+01:00")...
/*========================================================================= medInria Copyright (c) INRIA 2013. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ====...
// -*-Mode: C++;-*- //*BeginLicense************************************************************** // //--------------------------------------------------------------------------- // TAZeR (github.com/pnnl/tazer/) //--------------------------------------------------------------------------- // // Copyright ((c)) 2019, ...
//<NAME> //<NAME> #pragma once #include <algorithm> #include <cassert> #include <cstddef> #include <sstream> #include <string> #include <vector> // TODO #include <functional> #include <iostream> using namespace std; enum disk_color { DISK_DARK, DISK_LIGHT }; class disk_state { private: std::vector<disk_color> _c...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
#include "Msge1.h" #include "Process.h" #include "Tagdb.h" #include "ip.h" #include "UrlBlockCheck.h" #include "Conf.h" #include "Mem.h" #include "ScopedLock.h" #include "SiteGetter.h" #include "Errno.h" #include "utf8_fast.h" Msge1::Msge1() : m_niceness(0), m_urlPtrs(NULL), m_urlFlags(NULL), m_numUrls(...
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. */ #include <cstdint> #include <cstring> #include <fstream> #include <iostream> #include <stdexcept> #include <adios2.h> #include <gtest/gtest.h> std::string engineName; // comes from command l...
#include <cassert> #include <cstring> #include <fstream> #include <iomanip> #include <string> #include <sstream> #include <memory> #include <boost/algorithm/string.hpp> #include <GraphMol/FileParsers/MolSupplier.h> #include <sqlite3ext.h> extern const sqlite3_api_routines *sqlite3_api; #include "utils.hpp" #include...
#include "CMatrix4.h" CMatrix4::CMatrix4() { } CMatrix4::~CMatrix4() { } void CMatrix4::SetElement(int _iX, int _iY, float _fValue) { //Sets value of specified position in Matrix m_fMatrix[_iX][_iY] = _fValue; } float CMatrix4::GetElement(int _iX, int _iY) const { float desired_value = m_...
/* * GAME=n-body * CFLAGS=--std=c++11 -O3 -fomit-frame-pointer -fopenmp -march=native -mfpmath=sse -msse3 -pipe * LANG=c++ * * Originally from: * The Computer Language Benchmarks Game * http://benchmarksgame.alioth.debian.org/ * * contributed by <NAME> * modified slightly by <NAME> * converted from java to c...