text
stringlengths
3.08k
12.5k
#include "Headers/Settings.h" #include <iostream> #include <sstream> #include <Windows.h> // Initialising static member variables int Settings::highScore; int Settings::volumePercent; bool Settings::volumeMute; std::map<questionTypes, bool> Settings::questionSettings; // Settings constructor, runs automatically when ...
#include "TrainingGround.h" TrainingGround::TrainingGround(uint16_t nGenerations, uint32_t nTicks, const std::shared_ptr<Track> &training_track, const std::shared_ptr<Car> &training_car, const st...
/* Test to verify that when the map is initialized from a single fiducial that the robot's pose is identity and the map entry for the fiducial is reasonable */ #include <gtest/gtest.h> #include <ros/ros.h> #include <image_transport/image_transport.h> #include <sensor_msgs/CameraInfo.h> #include <opencv2/highgui/highg...
#include <visualization.h> #include <unistd.h> #include <errno.h> #include <cstdlib> #include <iomanip> void * gnu_xmalloc(size_t size) { void* value = malloc(size); if (value == 0) { perror("virtual memory exhausted"); abort(); } return value; } std::string gnu_getcwd() { size_t ...
#pragma once #include <map> #include <set> #include "Plugin.hpp" #include "Services/Events/Events.hpp" #include "Services/Hooks/Hooks.hpp" #include "API/Types.hpp" #include "API/CNWSCreature.hpp" #include "API/CNWSCreatureStats.hpp" #include "API/CNWSItem.hpp" const int NWNX_WEAPON_OPT_GRTFOCUS_AB_BONUS = 0; const in...
/* This software is licensed under the MIT License: https://github.com/spacehuhntech/esp8266_deauther */ #include "led.h" #include "A_config.h" // Config for LEDs #include <Arduino.h> // digitalWrite, analogWrite, pinMode #include "language.h" // Strings used in printColor and tempDisable #include "settings.h" // us...
#pragma once #include "Button.hpp" #include "Edit.hpp" #include "Storage.hpp" struct CutButton; struct DisplayBuffer; struct HorizontalWheel; struct Notes; struct NoteTaker; struct NoteTakerDisplay; struct NoteTakerWheel; struct VerticalWheel; // circular buffer holds requests to modify widget state // taker thread ...
#include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include "db/db_impl.h" #include "db/version_set.h" #include "leveldb/cache.h" #include "leveldb/db.h" #include "leveldb/env.h" #include "leveldb/slice.h" #include "leveldb/write_batch.h" #include "port/port.h" #include "util/crc32c.h" #include "util/histogr...
//------------------------------------------------------------------------------ /// \file /// \brief implementations of BatchedGemm methods /// \date 2020-2021 /// \author <NAME> /// \copyright Advanced Micro Devices, Inc. /// #include "DeviceBatchedGemm.h" //------------------------------------------...
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2016 MaNGOS project <https://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gen...
#include "UIDragHandle.h" #include "core/input/CInput.h" #include "core/math/Math.h" #include "core/system/Screen.h" #include "render2d/camera/COrthoCamera.h" #include "m04-editor/renderer/object/UIDragHandleRenderer.h" M04::UIDragHandle::UIDragHandle ( DrawStyle style ) : CGameBehavior() { m_style = style; m_...
#include "FWCore/MessageLogger/interface/MessageLogger.h" #include "CondTools/L1TriggerExt/plugins/L1CondDBPayloadWriterExt.h" #include "CondFormats/L1TObjects/interface/L1TriggerKeyExt.h" #include "CondFormats/DataRecord/interface/L1TriggerKeyExtRcd.h" #include "CondFormats/L1TObjects/interface/L1TriggerKeyListExt.h...
#include "PowerControl.h" uint32_t PowerControl_Get_Sleep_Interval() { // sleep interval in ms uint16_t interval = 0; #ifdef ENABLE_INTERVAL_CONTROL // get battery voltage int16_t batt = PowerControl_Get_Battery_Voltage() * 1000.0; // get number of intervals uint8_t numIntervals = systemInfoBuf...
#include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Alignment/CommonAlignment/interface/Alignable.h" #include "Alignment/CommonAlignment/interface/SurveyDet.h" #include "Alignment/CommonAlignment/interface/AlignTools.h" #include <iostream> #include <fstream> //Finds the TR between two alignables - fir...
#include "main.hpp" #include "net.hpp" #include "hooks.hpp" #include "sn_bf_write.hpp" #include "sn_bf_read.hpp" #include "netchannel.hpp" #include "netchannelhandler.hpp" #include "subchannel.hpp" #include "datafragments.hpp" #include "filehandle.hpp" #include "ucharptr.hpp" #include "netadr.hpp" #include "networkstri...
// Filename: config_chan.cxx // Created by: drose (28Feb00) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You shoul...
//===- xray-converter.cc - XRay Trace Conversion --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "drive.h" #include "json.hpp" #include "spline.h" #include "util.h" #include <chrono> #include <fstream> #include <iostream> #include <math.h> #include <thread> #include <uWS/uWS.h> #include <vector> using namespace std; // for con...
#pragma once class Density { public: PS::F64 dens; PS::F64 ksr; PS::S64 np; bool itr; void clear() { dens = 0.; ksr = 0.; np = 0; itr = false; } }; void SPH::copyFromForce(const Density & density) { this->dens = density.dens; this->ksr = density....
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
#include "ElectronPIDModule.h" #include "TClonesArray.h" #include "TRandom3.h" #include "TDatabasePDG.h" #include "Math/PdfFuncMathCore.h" #include "AnalysisFunctions.cc" #include <iostream> ElectronPIDModule::ElectronPIDModule(ExRootTreeReader *data, std::string name) : Module(data, name) { _params = std::map<...
#include "stdafx.h" #include "SpacePartitioning.h" #include "projects\App_Steering\SteeringAgent.h" // --- Cell --- // ------------ Cell::Cell(float left, float bottom, float width, float height) { boundingBox.bottomLeft = Elite::Vector2{ left, bottom }; boundingBox.width = width; boundingBox.height = height; } st...
/* Copyright (c) 2016, <NAME> Source: http://research.ijcaonline.org/volume113/number3/pxc3901586.pdf All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retai...
#define _USE_MATH_DEFINES #include <math.h> #include <algorithm> #include "Road.h" #include "Vec2.h" #include "Utility.h" #include "MinorRoad.h" Road::Road() {} Road::Road(Vec2* newStart, Vec2* newEnd) : start(newStart), end(newEnd) {} Road::Road(float startX, float startY, float endX, float endY) : start(new V...
/// /// \file /// /// This file is a part of pattern matching testing suite. /// /// \author <NAME> <<EMAIL>> /// /// This file is a part of Mach7 library (http://parasol.tamu.edu/mach7/). /// Copyright (C) 2011-2012 Texas A&M University. /// All rights reserved. /// #include <iostream> #include "match....
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
/* * * Created on: 2021年1月1日 * Author: Lzy */ #include "sn_serialnum.h" Sn_SerialNum::Sn_SerialNum(QObject *parent) : Sn_Object(parent) { mTypeId = Sn_DevId::bulid(this); } Sn_SerialNum *Sn_SerialNum::bulid(QObject *parent) { Sn_SerialNum* sington = nullptr; if(sington == nullptr) singto...
#include <msgpack.hpp> #include "baobzi.h" #include "baobzi.hpp" #include <tuple> #include <cstdint> #include <cstdlib> #include <fstream> #include <iostream> const baobzi_input_t baobzi_input_default = { .func = NULL, .data = NULL, .dim = 0, .order = 0, .tol = 0.0, .minimum_leaf_fraction = 0.0, .split_multi_ev...
/* Copyright [2017-2019] [IBM Corporation] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
/* * Copyright 2019 Xilinx, 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...
/** @file FaBoHumidity_HTS221.cpp @brief This is a library for the FaBo Humidity I2C Brick. http://fabo.io/208.html Released under APACHE LICENSE, VERSION 2.0 http://www.apache.org/licenses/ @author FaBo<<EMAIL>> */ #include "FaBoHumidity_HTS221.h" /** @brief コンストラクタ @param [in] addr I2C Slaveアドレス *...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; bool done[1<<19][12]; int cnt[1<<19]; enum { NEG_FIX = 12000 }; int sol; int n; const unsigned black = 0x54A; int next[19][12]; int bitcount(u...
//================================================================================== // Copyright (c) 2004 - 2016 , Advanced Micro Devices, Inc. All rights reserved. // /// \author AMD Developer Tools Team /// \file AMDTFluidGrid.cpp /// //===============================================================================...
// Copyright <NAME> #include "GHRenderList.h" #include "GHMath/GHTransform.h" #include "GHMaterial.h" #include "GHVertexBuffer.h" #include "GHRenderStats.h" #include "GHRenderDevice.h" #include "GHUtils/GHProfiler.h" GHRenderList::GHRenderList(int startSize) : mOrderedGeometry(startSize) , mEntData(0) , mSupportsStere...
/// Source : https://leetcode.com/problems/sliding-window-maximum/description/ /// Author : liuyubobobo /// Time : 2017-11-22 #include <iostream> #include <vector> #include <queue> #include <cassert> using namespace std; /// Using Index Max Heap /// Time Complexity: O(nlogn) /// Space Complexity: O(n) // 最大索引堆 t...
#include "MapEpisode.h" #include "../Utils/Data/Logger.h" #include "../AppMacros.h" #include "MapPortal.h" #include "../Utils/StringUtility.h" #include "MapProp.h" MapEpisode::MapEpisode(Node& parentNode, const Vec2& localPosition, string csbPath, int _episodeNum, int lastUnlockedPortalNum, EventDispatcher* _eventDisp...
#include "engine.h" #include <cassert> #include <cstdlib> #include <iostream> #include <mutex> #include <string_view> #include <vector> #include <utility> #include <thread> #include <mutex> #include <atomic> #include <sys/wait.h> #include <unistd.h> #include <regex> #include <chrono> #include "lisp.cc" #include "uni...
#include "gtest/gtest.h" #include "../IETest.h" #include "IEUtility/IEVector4.h" // Test Stuff (dunno if these should be global) static IEVector4 testVec1(1.0f, 2.0f, 3.0f, 4.0f); static IEVector4 testVec2(5.0f, 6.0f, 7.0f, 8.0f); // Get Set Operations TEST(IEVector4, AccessorsMutators) { // Accessors EXPECT_EQ(1.0...
/* * Copyright (c) 2015, <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: * * * Redistributions of source code must retain the above copyright notice, this * list of conditio...
/* * Copyright (c) 2016-2017, the mcl_3dl authors * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, t...
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
#include<cstdio> #include<cstdlib> #include<ctime> #include<cassert> #include<cmath> #include<cstring> #include<iostream> #include<algorithm> #include<numeric> #include<vector> #include<string> #include<set> #include<map> #include<queue> #include<list> #include<sstream> #include"csapp.h" using namespace std; #define LO...
/* ***************************************************************** * * Copyright 2015 Samsung Electronics 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 *...
/* * Filename: main.cpp * Project: EECS 473 - Team GLOVE * Date: Fall 2016 * Authors: * <NAME> * <NAME> * <NAME> * <NAME> * <NAME> * * Purpose: * Defines the function of the glove firmware and * its idle lights pattern * * Copyright (c) 2016 by <NAME>, <NAME>, <NAME>, * ...
// // Bachelor of Software Engineering // Media Design School // Auckland // New Zealand // // (c) 2005 - 2015 Media Design School // // File Name : D3D9Mesh.cpp // Description : CD3D9Mesh implementation file. // Author : <NAME>. // Mail : <EMAIL> // // PCH #include "GameStd.h" // Library Includes // This Includ...
/* * MQTTClient.cxx * Copyright 2020-2021 ItJustWorksTM * * 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...
#include <iostream> #include "expat/stb_image/stb_image.h" #include "Model.h" #include "TextureStbImage.h" Model::Model(const std::string& path){ LoadModel(path); } void Model::LoadModel(const std::string& path){ Assimp::Importer import; const aiScene* scene = import.ReadFile(path, aiProcess_Triangulate | aiProce...
#include <cstdint> #include <iostream> #include <bcm2835.h> #include "dsp/flow/chain.h" #include "dsp/flow/toggle.h" #include "dsp/normalization.h" #include "dsp/type.h" #include "effect.h" #include "input-equalization.h" #include "math/constexpr-math.h" using std::cout; using std::cerr; using std::endl; using ymoc...
#include "ros/ros.h" #include "hlpr_trac_ik/IKHandler.h" #include <trac_ik/trac_ik.hpp> #include <geometry_msgs/Pose.h> #include <trajectory_msgs/JointTrajectoryPoint.h> #include <string> #include <Eigen/Core> #include <urdf/model.h> TRAC_IK::TRAC_IK *solver; KDL::Chain chain; KDL::ChainFkSolverPos_recursive *fk_solve...
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance w...
#include "MeshManager.h" std::shared_ptr<MESH> MeshManager::SquareMesh = nullptr; std::shared_ptr<MESH> MeshManager::ChangingSquareMesh = nullptr; std::shared_ptr<MeshManager> MeshManager::MeshManagerptr = nullptr; GLuint MeshManager::BasicShader; GLuint MeshManager::Texture; std::shared_ptr<MESH> MeshMan...
// File: simulated_annealing.cpp #include <iostream> #include <cmath> #include <boost/random.hpp> #include <boost/numeric/mtl/mtl.hpp> using namespace mtl; using namespace std; typedef dense_vector<double> vector_t; double inline lg(double x) { return log(x) / log(10.0); } double inline square(double x) { ...
/* * MultiLED.cpp * * Created: 30.11.2020 * Author: <NAME> */ #define __MULTILED_CPP__ #include "MultiLED.h" void MultiLED::addStrips(uint8_t ammount, uint16_t maxLEDCount){ ledArray = (RGB**)malloc(ammount*3); ledCounts = (uint16_t*)malloc(ammount*2); stripCount = ammount; cLeds = maxLEDCount; stepC = (cLeds*...
/* Copyright (C) 1998-2004 <NAME> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This progra...
/****************************************************************************** * Copyright AllSeen Alliance. All rights reserved. * * 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 th...
/* * SerialAlign.cpp * * Author: Julia */ #include<iostream> #include<vector> #include<stdint.h> #include<climits> #include<cstring> using namespace std; #include <dirent.h> #include "Dictionary.h" #include "Fragment_Index.h" #include "MappingValues.h" #include "SuffixArray.h" #include "Seed.h" #include "Chai...
/* * Copyright (c) 2017, <NAME> <EMAIL> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of con...
/*************************************************** * Problem Name : C.cpp * Problem Link : https://codeforces.com/contest/1110/problem/C * OJ : Codeforces * Verdict : AC * Date : 2019-02-07 * Problem Type : CGR - C * Author Name : <NAME> * University : CSE, MBSTU *******************...
#include "HelloWorldScene.h" #include "SimpleAudioEngine.h" #include "GameScene.h" #include "LevelScene.h" #include "HighScene.h" #include "sqlite3.h" USING_NS_CC; cocos2d::PhysicsWorld* m_world; void setPhyWorld(cocos2d::PhysicsWorld* world){m_world = world;} bool onContactBegin(cocos2d::PhysicsContact& contact); cla...
/* Import a ZDF point cloud and downsample it. */ #include <Zivid/CloudVisualizer.h> #include <Zivid/Zivid.h> #include <Eigen/Core> #include <Eigen/Dense> #include <iostream> Zivid::PointCloud downsample(const Zivid::PointCloud &, int); Eigen::MatrixXi downsampleAndRound(const Eigen::MatrixXi &, int); Eigen::Matrix...
// // Circuit.cpp // Numerical_Test // // Created by jeffrey_MAC on 2015/6/3. // Copyright (c) 2015年 jeffrey_MAC. All rights reserved. // #include "Circuit.h" Circuit::Circuit(){} double Circuit::I(double V){return NAN;} double Circuit::dIdV(double V){return NAN;} void Circuit::setCircuit(int num,int vdd,int gnd,...
/** * Copyright (c) 2009 Carnegie Mellon University. * 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/L...
#include "DocxFactory/WordProcessingCompiler/dfwc.h" #include "DocxFactory/console/getopt.h" #include "DocxFactory/console/ConsoleUsageException.h" #include "DocxFactory/console/GetOptException.h" #include "DocxFactory/console/InvalidArgException.h" #include "DocxFactory/console/InvalidOptException.h" #include "DocxF...
#include "sdl2.h" #include <SegmentLdr.h> #include "keycode_map.h" #include <SDL.h> using namespace Executor; namespace { SDL_Window *sdlWindow; /*SDL_Renderer *sdlRenderer; SDL_Texture *sdlTexture;*/ SDL_Surface *sdlSurface; } SDL2VideoDriver::SDL2VideoDriver(Executor::IEventListener *listener, int& argc, char* a...
// Created by <NAME> on 20.11.2019 // Copyright 2019 ETH Zurich #pragma once #include <cmath> #include <sstream> #include <stdexcept> #include "convdiffvg.h" #include "solver/approx_eb.h" #include "util/convdiff.h" #include "util/metrics.h" template <class M_, class CD_> struct ConvDiffVectGeneric<M_, CD_>::Imp { ...
#include "Command.h" #include <unicode/utypes.h> #include <unicode/uchar.h> #include <unicode/numfmt.h> using namespace icu; using namespace std; namespace { constexpr uint8_t MINUTE_SECONDS = 60; constexpr uint16_t HOUR_SECONDS = MINUTE_SECONDS * 60; constexpr uint32_t DAY_SECONDS = HOUR_SECONDS * 24; constexpr uin...
#include <dmzFoundationCommandLine.h> namespace { struct argStruct { dmz::String arg; argStruct *next; argStruct (const dmz::String &Arg) : arg (Arg), next (0) {;} ~argStruct () { if (next) { delete next; next = 0; } } argStruct *copy () const { argStruct *result = new ar...
// linear.cpp : Defines the entry point for the application. // #include <iostream> #include <iomanip> #include <vector> #include <algorithm> #include <numeric> #include "machine.h" #include "arena.h" #include "ioc.h" #include "utility.h" constexpr char version[] = "v0.03"; // this is a bit crap. There must be a mo...
/* * VFSStageReadableFile.cpp * !CHOAS * Created by <NAME>. * * Copyright 2014 INFN, National Institute of Nuclear Physics * * 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 Licens...
//===-- SBBroadcaster.cpp ---------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/***************************************************************************** * * CLIPP - command line interfaces for modern C++ * * released under MIT license * * (c) 2017 <NAME>; <EMAIL> * *****************************************************************************/ #include "testing.h" //---------------...
#include "nnutils.h" #include "debug.h" #include <cmath> SamePad2dImpl::SamePad2dImpl() {} SamePad2dImpl::SamePad2dImpl(uint32_t kernel_size, uint32_t stride) : kernel_size_(kernel_size), stride_(stride) {} /* Makes output size is the same as input size, * after applying specified kernel and stride * ...
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) #define _WEBSOCKETPP_MINGW_THREAD_ #endif #define ASIO_STANDALONE #define CLIENT_SPACE 50 #include <functional> #include <mutex> #include <websocketpp/client.hpp> #include <websocketpp/config/asio_no_tls.hpp> #include <websocketpp/conf...
#include <math.h> #include <algorithm> #include <stdexcept> #include "core/quadbatch.h" using namespace std; using namespace glm; using namespace CSGE; /** Rotate v by r radians */ static vec2 rotate (vec2 v, float r) { float c = cos(r), s = sin(r); return vec2{ v.x * c - v.y * s, v.x * s + v.y * c }; } /** U...
#include <string> #include <iostream> #include <fstream> #include <algorithm> #include <cctype> #include <cstddef> #include <iterator> #include <ctime> using string_size_t = std::string::size_type; static constexpr char SHIFT = 'a'; static constexpr char FREQUENCY[] = "etaoinshrdlcumwfgypbvkxjqz"; static constexpr ...
// Copyright 2018 <NAME> #include "../defs.h" #include "gearshift.h" #include "../res/sprites.h" #include "../engine/renderer.h" #include "../game.h" void GearShiftAuto::reset() { scrollAmount = 0; currentGear = 0; state = Idle; } void GearShiftAuto::update() { if (state != Idle) { scrollAmou...
#include "Scene.hpp" Scene::Scene() { } Scene::~Scene() { } void Scene::addGeometry(Geometry *geometry) { m_geometries.push_back(geometry); } void Scene::addLight(Light *light) { m_lights.push_back(light); } vec3 Scene::trace(Ray ray, int depth, float oiRefract) { if (depth > getMaxDepth()) { return vec3(1...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
//===------------------------------------------------------------*- C++ -*-===// // // SHAD // // The Scalable High-performance Algorithms and Data Structure Library // //===----------------------------------------------------------------------===// // // Copyright 2018 Battelle...
//===-- PartialSolution.cpp -------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** \class HLTFatJetMassFilter * * * \author <NAME> * */ #include <vector> #include "HLTrigger/JetMET/interface/HLTFatJetMassFilter.h" #include "DataFormats/Common/interface/Ref.h" #include "DataFormats/Common/interface/Handle.h" #include "DataFormats/JetReco/interface/CaloJetCollection.h" #include "DataFormats/JetR...
#include <algorithm> #include <cassert> #include <cmath> #include <cstdint> #include <deque> #include <iomanip> #include <iostream> #include <memory> #include <random> #include <string> #include <thread> #include <tuple> #include <utility> #include <vector> #include "environment.h" #include "model.h" #include "queue.h...
/* FILE: idDHT11.cpp VERSION: 0.1 PURPOSE: Interrupt driven Lib for DHT11 with Arduino. LICENCE: GPL v3 (http://www.gnu.org/licenses/gpl.html) DATASHEET: http://www.micro4you.com/files/sensor/DHT11.pdf Based on DHT11 library: http://playground.arduino.cc/Main/DHT11Lib */ #include "idDHT11.h" #define DEBUG_...
#include <iostream> #include "game-world/GameWorld.h" #include "character/derived/Thug.h" #include "character/derived/Sneak.h" #include "character/derived/Runner.h" #include "ui/Bounds.h" #include "ui/UI.h" #ifdef _WIN32 #include <GL\glut.h> #include <Windows.h> #define TIME_CORRECTION 1.0 #elif __APPLE__ #define TI...
/** * File : broker_factory.cc * Author : <NAME> * Description : Implementation of broker factory * Creation date : - * * Modifications : * Authors Date Comment */ #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include "paroc_broker_factory.h" #include "paroc_utils.h"...
/* * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
#include <spdlog/spdlog.h> #include <spdlog/sinks/tcp_sink.h> #include <thread> #include <condition_variable> #include <chrono> #include <iostream> #include <memory> #ifndef WIN32 #include <unistd.h> #endif class TraceMethod { public: TraceMethod(const char *name, std::shared_ptr<spdlog::logger> ...
#include "list_processes_and_modules.hpp" Module::Module( string module , string exePath , uint threadId , uint glblUsageCount , uint procUsingCount , uint modBaseAddress , uint modBaseSize ) : module(module) , exePath(exePath) , threadId(threadId) , glblUsageCount(glblUsageCount) , procUsingCo...
#include "GzipFile.h" #include "PathUtils.h" const size_t GzipFile::WindowSize = 1 << MAX_WBITS; uint64_t GzipFile::gMinDictBlockFactor = 32; void GzipFile::checkFileType(FileHandle& fh) { try { GzipHeaderReader rd(fh); gz_header hdr; rd.header(hdr); } catch (GzipReaderBase::Exception& e) { throwFormat(e....
#include <fcntl.h> #include <stdio.h> #include <unistd.h> #include <termios.h> /* tc* functions */ #include <stdio.h> #include <memory> #include "os/os.h" #include "utils/socket_listener.hxx" #include "protocol.hxx" #include "utils.hxx" #include "histogram.hxx" bool display_detailed = false; const char *device = nu...
#include "lapic.h" #include <kmesg.h> #include <panic.h> #include <acpi/acpi.h> #include <arch/mm.h> #include <string.h> #include <irq/isr.h> #include <io/port.h> #include <cpu/ioapic.h> #define LVT_LINT0 0x350 #define LVT_LINT1 0x360 #define LAPIC_EOI 0xB0 #define LAPIC_SIVR 0xF0 #define LVT_TIMER 0x320 #define DIV...
////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except i...
/* ** g_hub.cpp ** ** Intermission stats for hubs ** **--------------------------------------------------------------------------- ** Copyright 2005 <NAME> ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the followin...
#include "stdafx.h" #pragma hdrstop #include "SoundRender_Core.h" #include "SoundRender_Source.h" #include "SoundRender_Emitter.h" #include "SoundRender_Target.h" void CSoundRender_Emitter::fill_data(u8* _dest, u32 offset, u32 size) { /* Msg ("stream: %10s - %d",*source->fname,size); CopyMemory (_des...
// // Created by tad on 3/18/19. // #include "OperationalStatus.h" #include "Logger.h" #include "RecordType.h" #include "Translate.h" #include "auoms_version.h" #include "StringUtils.h" #include <sstream> #include <sys/time.h> #include <rapidjson/stringbuffer.h> #include <rapidjson/writer.h> bool OperationalStat...
#include <rclcpp/rclcpp.hpp> #include <image_transport/image_transport.h> #include <sensor_msgs/msg/point_cloud2.hpp> #include <pcl_conversions/pcl_conversions.h> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include "pandarGeneral_sdk/pandarGeneral_sdk.h" #include <boost/lambda/lambda.hpp> using namesp...
#include "win_q.h" #include <limits> #include <iostream> #include <fstream> #include <string> #include <vector> #include <set> #include <iterator> #include <cmath> #include <ctime> #include "application_data.h" #include "data_access.h" #include "distance_measures.h" //#include <xmmintrin.h> using namespace std; using...
// Copyright(c) 2021, Intel Corporation // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and the ...
/*--------------------------------------------------------------- * Copyright (c) 2017-2021 * Broadcom Corporation * All Rights Reserved. *--------------------------------------------------------------- * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associate...
/** * Copyright 2019 United Kingdom Research and Innovation * * Authors: See AUTHORS * * Contact: [<EMAIL> and/or <EMAIL>] * * 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...