text
stringlengths
5.71k
33.7k
// Author: <NAME> (<EMAIL>) #include "gtest/gtest.h" #include "../util.h" TEST(BufferString, Test) { std::string foo_left = util_string::buffer_string("foo", 10, '_', "left"); std::string foo_center = util_string::buffer_string("foo", 10, '_', "center"); std::string foo_right = util_string::buffer_string("foo"...
#include "OgreRoot.h" #include "OgreException.h" #include "OgreLogManager.h" #include "OgreStringConverter.h" #include <algorithm> #include "OgreWin32GLSupport.h" #include "OgreGLTexture.h" #include "OgreWin32Window.h" #include <GL/wglext.h> #include "OgreWin32RenderTexture.h" using namespace Ogre; GLenum wglewCont...
/// \file experiment_1_population_fluctuations.cpp /// /// \brief /// /// \authors maarten /// \date 2020-12-05 /// \copyright Copyright 2017-2020 The Institute for New Economic Thinking, /// Oxford Martin School, University of Oxford /// /// Licensed under the Apache License, Versio...
// BloomScene.cpp // GLM Includes #include <glm/gtc/matrix_transform.hpp> // STL Includes #include <iostream> // Project Includes #include "BloomScene.hpp" #include "Geometry.hpp" #include "Globals.hpp" // GLFW Includes #include <GLFW\glfw3.h> // SDL Includes #include <SDL.h> BloomScene::BloomScene() : m_Exposure(1...
/* Copyright (C) 2014 Ion Torrent Systems, Inc. All Rights Reserved */ /* * RowSumData.cpp * * Created on: Jan 21, 2014 * Author: ionadmin */ #include "RowSumData.h" RowSumData::RowSumData() { // default parameters lowPin = 0; highPin = 32760; numPinnedLow = 0; numPinnedHigh = 0; DEBUG = true; top...
#include <QVBoxLayout> #include <QHBoxLayout> #include <QTimer> #include <QGroupBox> #include <QPushButton> #include <QLineEdit> #include <QLabel> #include <QValidator> #include <QMessageBox> #include <QComboBox> #include "specplotbox.h" #include "specplot.h" #include "mddasplotconfig.h" #include "numberbutton.h" s...
/********************************************************************** Audacity: A Digital Audio Editor PlaybackSchedule.cpp <NAME> split from AudioIOBase.cpp **********************************************************************/ #include "PlaybackSchedule.h" #include "AudioIOBase.h" #include "Envelope....
#include <string> #include <cstring> #include <sstream> #include <algorithm> #include <map> #include <fstream> #include "base/CommandLineParser.h" #include "analysis/DNAVector.h" #include "aligns/KmerAlignCore.h" #include <math.h> #include "analysis/KmerTable.h" #include "analysis/NonRedKmerTable.h" #include "util/mu...
#pragma once #include <algorithm> #include <cmath> typedef unsigned char uchar; std::vector<std::string> get_files_in_folder (std::string path, std::string type = "", bool return_full = false, bool sort = true){ std::vector<std::string> file_vec; DIR *dir; struct dirent *ent; if ((dir = opendir (path....
#include <omp.h> #include <util/timer.h> #include <util/log/log.h> #include <util/primitives/local_buffer.h> #include <util/primitives/primitives.h> #include <util/search/search_util.h> #include <util/serialization/pretty_print.h> #include <sstream> #include <util/md5.h> #include "reorder_utils.h" #define frac 0.98 ...
/* Implementation of an accelerator datapath that uses a private scratchpad for * local memory. */ #include <string> #include "DatabaseDeps.h" #include "ScratchpadDatapath.h" #include "graph_opts/all_graph_opts.h" ScratchpadDatapath::ScratchpadDatapath(std::string bench, std...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/nacl/zygote/nacl_fork_delegate_linux.h" #include <signal.h> #include <stddef.h> #include <stdlib.h> #include <sys/resource.h> #i...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTextUtils.h" #include "GrAtlasGlyphCache.h" #include "GrAtlasTextBlob.h" #include "GrBlurUtils.h" #include "GrCaps.h" #include "GrContext.h" #include "GrRenderTarg...
#include "polarization_app.h" #include <algorithm> #include <fstream> #include <iomanip> #include <nlohmann/json.hpp> #include <string> #include "constants.h" #include "elph_qe_to_phoebe_app.h" #include "exceptions.h" #include "periodic_table.h" #include "pugixml.hpp" #include "qe_input_parser.h" #include "statistics...
//****************************************************************** // // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
/* Copyright (c) 2015, Project OSRM, <NAME>, others All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and th...
//Technical support:<EMAIL> // Breakout/Arduino UNO pin usage: // LCD Data Bit : 7 6 5 4 3 2 1 0 // Uno dig. pin : 7 6 5 4 3 2 9 8 // Uno port/pin : PD7 PD6 PD5 PD4 PD3 PD2 PB1 PB0 // Mega dig. pin: 29 28 27 26 25 24 23 22 #include <ILI9481_driver.h> #define TFTWIDTH 3...
/**************************************************************************/ /* */ /* WWIV Version 5.x */ /* Copyright (C)1998-2020, WWIV Software Services */ /* ...
// Differential distributions with DeepEfficiency inversion // ------------------------------------------------------------------------ // // // Compile with makefile: make && ./deeplot // // <EMAIL>, 23/07/2018 #include <iostream> #include <fstream> #include <map> #include <memory> // ROOT #include "TLorentzVector....
//#define PSX_BUILD_TOOLS /* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USE...
//===--- SSADestroyHoisting.cpp - SSA-based destroy hoisting --------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
//----------------------------------------------------------------------------- // llbase - Base class for all directory manipulation // // Author: <NAME> - 2015 // http://landenlabs.com/ // // This file is part of LLFile project. // // ----- License ---- // // Copyright (c) 2015 <NAME> // // Permission is hereby grant...
#include <simplecpp> #include <sstream> #include "utils.cpp" const Vector2d CENTER_OF_BOARD(550, 350); const Vector2d POCKET1_POSITION(310, 110); const Vector2d POCKET2_POSITION(790, 110); const Vector2d POCKET3_POSITION(310, 590); const Vector2d POCKET4_POSITION(790, 590); const Vector2d YES_BTN_POSITION(500, 740);...
#include "lane_detector.h" #include "configs/config.h" // Used line merging method from https://stackoverflow.com/questions/30746327/get-a-single-line-representation-for-multiple-close-by-lines-clustered-together/30904076 using namespace cv; LaneDetector::LaneDetector() { UffModelParams params; params.inputW...
/* * Created on: 8 Feb 2017 * Author: konstantinos */ #include "read.h" #include <assimp/Importer.hpp> // C++ importer interface #include <assimp/Exporter.hpp> // C++ importer interface #include <assimp/scene.h> // Output data structure #include <assimp/postprocess.h> // Post processi...
/* -------------------------------------------------------------------------- * * SimTK Simbody(tm) * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
#include "toyfs.hpp" #include <cmath> #include <iostream> #include <iomanip> #include <list> #include <memory> #include <sstream> #include <string> #include <vector> #include <deque> #include <assert.h> #include "direntry.hpp" #include "inode.hpp" #include "freenode.hpp" using namespace std; #define ops_at_least(x) ...
#include <stdlib.h> #include <ctime> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <string> #include <iostream> using namespace std; #define _NUMEROCASOS 1000000 #define _NUMEROVALORES 1000 int progreso = 0; int n = _NUMEROCASOS; int incremento = _NUMEROCASOS /_NUMEROVALORES; //Función para l...
// -*- mode: cpp; mode: fold -*- // Description /*{{{*/ /* ###################################################################### HTTP and HTTPS share a lot of common code and these classes are exactly the dumping ground for this common code ############################################################...
int Let ,E5, Rv , SNBW ,WbN, hI ,DKYq , jD, YCx ,uT9 , B, CX,cD, /*K5*/q2Q , S,lk, C , qU, l4I, q0r, HQ , zS0 , ec,/*i*/Qj , DN, cb, M8WK ,umP//Z ,cxog ,gioN,GgUL, //W L/*3w*/, WBA ,E , ifbQO , lO,bBu,V2z, T8//foT ; void f_f0 () { {{ { {volatile int Do//wCS ; T8 =Do ; { }} {return ;/...
// system include files #include <memory> #include "Validation/Performance/test/SimDigiDumper.h" // user include files #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup....
#include "emutil.hpp" /* Prints usage information for this program to STREAM (tipically stdout or stderr), and exit the program with EXIT_CODE. Does not return. */ void print_usage( char *program_name, FILE *stream, int exit_code ) { fprintf( stream, "USAGE: %s [-v] [-h] [-f file]\n", program_name ); fprintf...
/** * ImageOutput.cpp * Authors: <NAME>, <NAME> * * STB based implementation of saving and rendering images. */ #include "ImageOutput.h" ImageOutput::ImageOutput(){} ImageOutput::~ImageOutput(){}; /* * Saves image as BMP file, if enabled in driver. * * Parameters: * points: Vector of point structs * ...
#include <cmath> #include <limits> #include <iostream> #ifdef USE_OMP #include "omp.h" #endif #include "constants.hpp" #include "parameters.hpp" #include "matprops.hpp" #include "utils.hpp" #include "geometry.hpp" #include "solver.hpp" /* Given two points, returns the distance^2 */ double dist2(const double* a, cons...
#include "CAnimationLoader.h" #include <Common/Macros.h> #include <Common/Log.h> #include <Common/Math/MathUtil.h> bool CAnimationLoader::UncompressedCheckEchoes() { // The best way we have to tell this is an Echoes ANIM is to try to parse it as an // Echoes ANIM and see whether we read the file correctly. The...
/** * Copyright (C) 2019 LEIDOS. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this plogFile 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 t...
#include "mex.h" #include "cokus.cpp" // Syntax // [ WP,DP,WC,C,Z ] = GibbsSamplerLDACOL( WS , DS , SI , WW , T , N , ALPHA , BETA , GAMMA0, GAMMA1 , DELTA , SEED , OUTPUT ); // updated for 64 bit void GibbsSamplerLDACOL( double ALPHA, double BETA, double GAMMA0, double GAMMA1, double DELTA, int W, int...
/* * Author: <NAME> <<EMAIL>> * * command line usage: ./mkinput -c Gordonvale.cfg -u */ #include <stdio.h> #include <errno.h> #include <stdlib.h> #include <err.h> #include <unistd.h> #include <string.h> #include <math.h> #include <sys/param.h> #include <list> using namespace std; // TYPES ---------------------...
#include "cavc/staticspatialindex.hpp" #include "testhelpers.hpp" #include "gmock/gmock.h" #include "gtest/gtest.h" #include <vector> namespace t = testing; std::vector<double> createTestData() { return std::vector<double>{ 8, 62, 11, 66, 57, 17, 57, 19, 76, 26, 79, 29, 36, 56, 38, 56, 92, 77, 96, 80, 87, 70...
#include <cv_bridge/cv_bridge.h> #include <image_transport/image_transport.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl_ros/point_cloud.h> #include <ros/ros.h> #include <sensor_msgs/CameraInfo.h> #include <sensor_msgs/Image.h> #include <sensor_msgs/image_encodings.h> #include <std_msgs/String.h> #inclu...
#include <Arduino.h> #include "MHZ19.h" #include "SSD1306Wire.h" #include <Adafruit_NeoPixel.h> #include "fonts-custom.h" #include <Preferences.h> #include "uptime_formatter.h" #include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_BME280.h> #include "secrets.h" #include <WiFi.h> #include "time.h" const cha...
#include "GMSAssetResourceManagementSystem.hpp" #include "../AssetResources/TextureInfoResource.hpp" #include "../AssetResources/GMSRoomResource.hpp" #include "../AssetResources/GMSObjectResource.hpp" #include "../AssetResources/OtherGMSResources.hpp" #include "../CommandLineOptions.hpp" #include <KEngine/Events/Oth...
#include <cmath> #include <cstdio> #include <map> #include <vector> #include <string> #include <cstdint> #include "vec2.h" #include "texture.h" #include "input.h" //#define OPEN_GL #include "SDL/SDL_main.h" #include "SDL/SDL.h" #ifdef OPEN_GL #include "GL/glew.h" #endif #define DEBUG_WALLS 0 const float scale = ...
// 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 "chrome/browser/tab_contents/thumbnail_generator.h" #include <algorithm> #include <map> #include "base/memory/scoped_ptr.h" #include "base/...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "NIMASlide.h" #include "SkAnimTimer.h" #include "SkOSPath.h" #include "Resources.h" #include "imgui.h" #include <algorithm> #include <cmath> using namespace sk_app; usi...
//g++ -std=c++11 udp_server.cpp -o server -lcrypto -lssl #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netdb.h> #include <unistd.h> #include <signal.h> #include <stdio.h> #include <fcntl.h> #include <errno.h> #include <sys/time.h> #include <stdlib.h> #include <...
/* * Created: Feb 27, 2018 * Author: <NAME> * * The pipeline takes as input: * - SAM file of alignments for short reads * - FASTA file of long reads * - FASTA file of the genome to extract the splicing graph sequence * * The pipeline * - creates a splicing graph from the short read alignments * - a...
#include "assemblyReference.h" #include "sceneAssemblyStrings.h" #include "assemblyReferenceInitialRep.h" #include <maya/MPxRepresentation.h> #include <maya/MFnAssembly.h> #include <maya/MFnTypedAttribute.h> #include <maya/MFnCompoundAttribute.h> #include <maya/MFnContainerNode.h> #include <maya/MObjectArray.h> #inclu...
/**************************************************************************** ** ** 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...
// // SkeletonModel.cpp // interface/src/avatar // // Created by <NAME> on 10/17/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include <glm/gtx/transform.hpp> #include...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE_camera_ctl file in the root directory of this subproject. */ #include <PointGrey.hpp> #include <gflags/gflags.h> #include <iomanip> #include <sstream> #include <unist...
// Copyright 2017 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include <fstream> #include <iostream> #include <sstream> #ifdef USE_BRILLO #include "brillo/flag_helper.h" #else #include "gflag...
/* * discovery - SSDP implementation for MkE sensor discovery * * Copyright (c) 2017-2021, Magik-Eye Inc. * author: <NAME>, <EMAIL> */ #include <boost/asio.hpp> #include <boost/bind.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include <iostream> #include <string> #include <array> #include <thread>...
/* Created by cerenyildirim */ #include <iostream> #include <fstream> #include <string> #include <algorithm> #include <vector> #include "seal/seal.h" #include <ctime> #include <climits> #include <omp.h> #include <chrono> using namespace std::chrono; using namespace std; using namespace seal; void readTrees(SEALConte...
#include <libutl/libutl.h> #include <libutl/String.h> #include <libutl/Uint.h> #include <libutl/MD5.h> //////////////////////////////////////////////////////////////////////////////////////////////////// UTL_CLASS_IMPL(utl::MD5); UTL_CLASS_IMPL(utl::MD5sum); //////////////////////////////////////////////////////////...
#include <fstream> #include <string> #include <map> #include <vector> #include <list> class VRCData { public: VRCData(): lyr_index_(0), via_res_(0.0), lyr_res_(0.0), tot_cap_(0.0) {} VRCData(int indx, double via_res, double layer_res, double total_cap) { lyr_index_ = indx; via_res_ = via_re...
/* * Copyright © 2019 <NAME>. All rights reserved. * Contacts: <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
#include "AppWindow.h" #include "SimpleEnvironment.h" #include "Character.h" #include "BVH.h" #include <iostream> using namespace MASS; using namespace dart; using namespace dart::dynamics; using namespace dart::simulation; using namespace dart::gui; AppWindow:: AppWindow(SimpleEnvironment* env,const std::string& nn_p...
#include "stdafx.h" #include "dxApplicationRender.h" #include "../../xrEngine/x_ray.h" #include "../../xrEngine/GameFont.h" void draw_multiline_text(CGameFont* F, float fTargetWidth, LPCSTR pszText); void dxApplicationRender::Copy(IApplicationRender &_in) { *this = *(dxApplicationRender*)&_in; } void ...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if not initialized is_initialized_ = false; // if this is false,...
// Copyright (c) 2018 Baidu.com, 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 app...
#include "McRave.h" using namespace BWAPI; using namespace std; using namespace UnitTypes; namespace McRave { } namespace McRave::Goals { namespace { void assignNumberToGoal(Position here, UnitType type, int count, GoalType gType = GoalType::None) { if (!here.isValid()) ...
#include "api/farage.h" #include <random> #include <vector> #include <unordered_set> #include <unordered_map> #include <fstream> #include <iostream> #include "shared/regex.h" using namespace Farage; #define MAKEMENTION #include "common_func.h" #define VERSION "v0.3.3" extern "C" Info Module { "Boggle", "Mudd...
#include "../../../Required.h" #include "../../../Config.h" extern Config config; CNoSpread g_NoSpread; unsigned int glSeed = 0; unsigned int seed_table[256] = { 28985U, 27138U, 26457U, 9451U, 17764U, 10909U, 28790U, 8716U, 6361U, 4853U, 17798U, 21977U, 19643U, 20662U, 10834U, 20103, 27067U, 28634U, 18623U, 25849U...
// chainbin/nnet3-chain-copy-egs.cc // Copyright 2012-2015 Johns Hopkins University (author: <NAME>) // 2014-2017 <NAME> // 2016 <NAME> // 2017 <NAME> // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the...
// A majority of the code was obtained from shaded sphere under week 8 /***** Fragment shading of a sphere student : <NAME> professor: <NAME> Assignment 4 Code base: Angel 5th Edition Chapters 5.6-5.10 OGL Compatability: OGL3.1 GLSL 1.5 Shaders: vshader56.glsl, fshader56.glsl Lighting Scenario: distant l...
#include "Character.h" #include "Hazel/Renderer/Renderer2D.h" #include "Hazel/Core/Input.h" #include "../vendor/tinyxml2/tinyxml2.h" #include "TextureAtlas.h" #include "DebugDraw.h" #include "ObjectManager.h" #include "AudioManager.h" using namespace Jelly; //#define TEST 1 //#define PM_SCALE 0.5f #define MOVE_SIDE ...
#include <iostream> #include <fstream> #include <cstdlib> #include <string> #include <vector> #include <sstream> #include <map> #include <algorithm> #include <list> #include <iomanip> #include <cmath> using namespace std; enum {SUCCESS, FAIL, CYCLE}; const double gMaxScore = 1.0; const double gMinScore = 0.0000001; ...
#include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> //#include <SFML/System.hpp> #include <iostream> #include <fstream> #include <conio.h> //#include <ctime> #include<windows.h> using namespace sf; using namespace std; int A=1,mainchoice,basicchoice,leadchoice,sectorchoice,i; struct Memberform { string fname; st...
/**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage ** Licensees holding valid commercial Qt ...
#include <iostream> #include <string> #include <fstream> #include <chrono> #include <algorithm> #include "matplotlibcpp.h" // NOLINT #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include "association.hpp" #include <nanoflann.hpp> namespace plt = matplotlibcpp; using namespace nanoflann; // NOLINT templ...
#include "stdafx.h" #include "Common.h" #include "IniFile.h" #include "Logger.h" #include "version.h" #include "Utils.h" #include "InputHook.h" #include "IniFile.h" #include "Config.h" #include "ControllerBase.h" #include "Controller.h" #include "ControllerCombiner.h" #include "ForceFeedbackBase.h" #include "ForceFee...
// MIT License // // Copyright (c) 2019-2020 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
#include <windows.h> #include <process.h> #include <streams.h> #include <initguid.h> #include <olectl.h> #include <dvdmedia.h> #include <dxva.h> #include <stdexcept> #include <vector> #include <string> #include "guids.h" #include "lavfilters_side_data.h" #include "utils.h" #include "metadata_injector_filter.h" #inclu...
/* * 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...
/****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the accompanying material...
//============================================================================ // Name : HelloWorld.cpp // Author : <NAME> // Version : // Copyright : No copyright // Description : beagleboneHwlibrary demonstrator/test application in C++, Ansi-style //==================================================...
#include "PhysicsEngine.h" void ScreenPosToWorldRay( int mouseX, int mouseY, // Mouse position, in pixels, from bottom-left corner of the window int screenWidth, int screenHeight, // Window size, in pixels glm::mat4 ViewMatrix, // Camera position and orientation ...
#include <iostream> #include <string> #include <SimpleDatabase.hpp> #include "IcRuntime.hpp" #include "conio.h" using namespace std; bool verbose = false; int main(int argc, char* argv[]) { //auto* sl = SimpleDatabase::parseString("sc.ics"); //cout << *sl << endl; //auto* str_vec = SimpleDatabase::alignStringVe...
//--------------------------------------------------------------------------------------------------------------------// // // // Tuplex: Blazing Fast Python Data Scien...
#include "opengl.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include "Animation.h" #include "Camera.h" #include "Image.h" #include "Scene.h" #include "Vec3f.h" #include "LeapCamera.hpp" // Code ASCII #define ESCAPE 27 #define PAGE_UP 73 #define PAGE_DOWN 81 #define UP_ARROW 72 #define DOWN_ARROW 80 ...
#include "panner.hpp" #include "utils.hpp" namespace { ear::PolarPosition load_position(const rapidjson::Value &position_j) { return {position_j["azimuth"].GetDouble(), position_j["elevation"].GetDouble(), position_j["distance"].GetDouble()}; } ear::Channel load_channel(const rapidjson::Value &...
#include "data.h" #include "process.h" #include "RIRL.h" #include <vector> #include <map> #include <algorithm> #include <float.h> #include <chrono> RIRL::RIRL() { } RIRL::~RIRL() { } void RIRL::constructLearnerPolicy(Data &data, map<vector<int>,map<int,double>> Q_value){ map<vector<int>,map<int,double>> polic...
#include <algorithm> #include <array> #include <iostream> #include <cstdio> #include <map> #include <cassert> #include <string> #include <vector> class Span { private: unsigned *base; unsigned len; public: static Span make(unsigned len, unsigned buffer = 0) { unsigned *base = new unsigned[len + b...
#include "extdll.h" #include "enginecallback.h" #include "util.h" #include "cbase.h" #include "entity_state.h" #include "soundent.h" #include "studio.h" #include "bot.h" #include "avdll.h" #include "sadll.h" #include "avradio.h" #include "avdamage.h" #include <time.h> extern GETENTITYAPI other_GetEntityAPI; extern e...
/* Copyright (c) 2012, <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 conditions and the following ...
#include <chrono> #include <thread> #include <ctime> // For the game - get current time #include "../gl.h" #include "Display.h" #include "igl/igl_inline.h" #include <igl/get_seconds.h> static void glfw_error_callback(int error, const char* description) { fputs(description, stderr); } Display::Display(int windowWid...
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2021 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2019.08.13 #include "GelatinCubeWindow3.h" #include <Application...
/* * Copyright (c) 2019, NVIDIA 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 ...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Resources.h" #include "SkCodec.h" #include "SkColorSpace.h" #include "SkColorSpacePriv.h" #include "SkColorSpace_XYZ.h" #include "SkData.h" #include "SkImageInfo.h" ...
#include <algorithm> #include <array> #include <cstdint> #include <string_view> #include "imgui.h" #include "implot.h" #include "DataLoader.hpp" #include "DataLoaderConstants.hpp" #include "Render.hpp" #include "RenderConstants.hpp" #include "RenderTypes.hpp" #include "Units.hpp" namespace { static constexpr const c...
/* <NAME> May 15 2015 */ #include "player_character.h" #include "npc.h" std::string PC::get_inventory_info() const { const std::string inventory_info = this->contents_to_string(); if (inventory_info.size() == 0) { return "\n\nYou aren't carrying anything."; } else { return "You have" + inventory_info; } }...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during i...
#include "NPCManager.hpp" #include "Items.hpp" #include "settings.hpp" #include "Combat.hpp" #include "Missions.hpp" #include "Chunking.hpp" #include "Nanos.hpp" #include "TableData.hpp" #include "Groups.hpp" #include "Racing.hpp" #include "Vendor.hpp" #include "Abilities.hpp" #include <cmath> #include <algorithm> #in...
#include "vmetawordmanager.h" #include <QDebug> #include <QWidget> #include <QApplication> #include <QToolTip> #include <QFileInfo> #include "vconfigmanager.h" #include "vmainwindow.h" #include "vnotefile.h" #include "vnotebook.h" extern VConfigManager *g_config; extern VMainWindow *g_mainWin; // Used as the func...
#include "vtr_assert.h" #include "vtr_memory.h" #include "vtr_util.h" #include "arch_types.h" #include "arch_util.h" #include "arch_error.h" #include "physical_types_util.h" /** * @brief Data structure that holds information about a phyisical pin * * This structure holds the following information on a pin: * -...
#include "ns3/lte-helper.h" #include "ns3/epc-helper.h" #include "ns3/core-module.h" #include "ns3/network-module.h" #include "ns3/ipv4-global-routing-helper.h" #include "ns3/internet-module.h" #include "ns3/mobility-module.h" #include "ns3/lte-module.h" #include "ns3/applications-module.h" #include "ns3/point-to-point...
/* * contrib/intarray/_int_bool.c */ #include "postgres.h" #include "knl/knl_variable.h" #include "miscadmin.h" #include "utils/builtins.h" #include "_int.h" PG_FUNCTION_INFO_V1(bqarr_in); PG_FUNCTION_INFO_V1(bqarr_out); extern "C" Datum bqarr_in(PG_FUNCTION_ARGS); extern "C" Datum bqarr_out(PG_FUNCTION_ARGS); PG...
#include "image.h" #include "lib.h" Lib::Lib(int w, int h, int scale, int fps) { createwin(w, h, scale, "SDL2 Window", fps); } Lib::~Lib() { destroy(); } // ----------------------------------------------------------------- // Обработка окна // -----------------------------------------------------------------...