text
stringlengths
3.08k
12.5k
#define RAPIDJSON_HAS_STDSTRING 1 #include <stdlib.h> #include <unistd.h> #include <assert.h> #include <signal.h> #include <fcntl.h> #include <iostream> #include <memory> #include <string> #include <vector> #include <sstream> #include <deque> #include "ClientError.h" #include "HTTPRequest.h" #include "HTTPResponse.h...
#include <iostream> #include <iomanip> // << fixed << setprecision(xxx) #include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ; #include <vector> #include <string> // to_string(nnn) // substr(m, n) // stoi(nnn) #include <complex> #include <tuple> // get<n>(xxx) #include <queue> #include <stack> #include <...
// ls_xue.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #ifndef _CRT_SECURE_NO_WARNINGS #define _CRT_SECURE_NO_WARNINGS #endif #include <iostream> #include <ls_base/ls.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <lua.hpp> #include <signal.h> #include <assert.h> #include <assert.h> #include <ls_ba...
#include "EnemyMovementComponent.h" #include "GameEngine/GameEngineMain.h" #include "GameEngine/EntitySystem/Components/SoundComponent.h" #include "GameEngine/EntitySystem/Entity.h" #include "GameEngine/Util/CollisionManager.h" #include "GameEngine/Util/TextureManager.h" #include "GameEngine/Util/AnimationManager.h" ...
/******************************************************************************* * Copyright 2014 <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/lic...
#include "stdafx.h" #include "ai_monster_bones.h" #include "../../../xr_3da/skeletoncustom.h" //**************************************************************************************************** // class bonesBone //****************************************************************************************************...
/* Copyright (c) 2017-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, merge, publish, ...
#include <cassert> #include <string> #include <iostream> #include "FactorGraph.h" #include "VarElim.h" #include "BeliefProp.h" #include "CountingBp.h" namespace { int readHorusFlags (int, const char* []); void readFactorGraph (Horus::FactorGraph&, const char*); Horus::VarIds readQueryAndEvidence ( Horus::Fac...
/********************************************************************* * * Software License Agreement (BSD License) * * Copyright (c) 2016, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ar...
/******************************************************************************* * Piotr's Image&Video Toolbox Version 3.21 * Copyright 2013 <NAME>. [pdollar-at-caltech.edu] * Please email me if you find bugs, or have suggestions or questions! * Licensed under the Simplified BSD License [see external/bsd.txt] ***...
// File Name: C.cpp // Author: YangYue // Created Time: Sun Jun 29 01:03:44 2014 //headers #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <cstring> #include <cmath> #include <ctime> #include <string> #include <queue> #include <set> #include <map> #include <iostream> #include <vec...
#include "DaemonCreator.hpp" #include "LogHandler.hpp" #include "ParseConfigFile.hpp" #include "PipeSocketHandler.hpp" #include "PsuedoUserTerminal.hpp" #include "TcpSocketHandler.hpp" #include "UserJumphostHandler.hpp" #include "UserTerminalHandler.hpp" #include "UserTerminalRouter.hpp" #include "simpleini/SimpleIni.h...
/* * Copyright (c) 2009 Citrix Systems, Inc. * * 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, merg...
//-------------------------------------------------------------------------------------------------- // A Teensy 4.x CAN driver // by <NAME> // https://github.com/pierremolinaro/ACAN_T4 // //-------------------------------------------------------------------------------------------------- #include <ACAN_T4_Settings.h>...
/*! * \file main.cpp * \author <NAME> * \date 08/01/2019 * \brief The file main.cpp contains the code for rotation of an input image with nearest neighbour interpolation without using OpenCV inbuilt functions * \license This project is released under the...
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 <NAME> and QMCPACK developers. // // File developed by: // // File cre...
/****************************************************************************/ /* Copyright 2001, Trustees of Boston University. */ /* All Rights Reserved. */ /* */ /* P...
#include <filesystem> #include <fstream> #include <iostream> #include <string> #include <vector> #include <cryptopp/sha.h> #include <cryptopp/hex.h> #include <cryptopp/files.h> #include <Windows.h> #include "pugiXML/pugixml.hpp" #pragma comment(lib, "urlmon.lib") const std::string const dirName = "Cache"; void makeDi...
#include "Monster.h" #include <fstream> #include <string> #include <iostream> #include <cmath> Monster::Monster(const char * file, int height, int width) : Unit(file) { std::string temp; temp = file; temp += ".txt"; using std::ifstream; ifstream fileIn(temp); fileIn >> m_leve...
#include "CGameObject.h" #include <system_error> #include <filesystem> #include "../Source/Utility/Input.h" #include "../Engine.h" #include "../Math/CVector3.h" #include "../Math/CMatrix4x4.h" #include "../Common.h" void CGameObject::GetFilesInFolder(IEngine* engine, std::string& dirPath, std::vector<std::string>& f...
#include "stdafx.h" #include "ui_af_params.h" #include "UIStatic.h" #include "../object_broker.h" #include "UIXmlInit.h" CUIArtefactParams::CUIArtefactParams() { Memory.mem_fill (m_info_items, 0, sizeof(m_info_items)); } CUIArtefactParams::~CUIArtefactParams() { for(u32 i=_item_start; i<_max_item_index; ++i) { ...
#include<string> #include<ros/ros.h> #include"agv/int16Array.h" #include<tf/transform_broadcaster.h> #include<boost/bind.hpp> #include<boost/ref.hpp> #include<boost/assign.hpp> #include<nav_msgs/Odometry.h> #include<math.h> //physical dimensions const float wheelRadius = 0.1; const float length = 0.49; const float vy ...
#include "DAT.hpp" #include "zlib.h" using namespace std; using namespace sf; DAT::DAT (void) { // buffer = NULL; }; DAT::~DAT (void) { for(unsigned int i=0;i<buffer.size();++i) if (buffer[i]!=NULL) delete (buffer[i]); buffer.clear(); }; bool DAT::Create(string dest) { this->destin...
/* */ /* _____PROJECT INCLUDES_____________________________________________________ */ #include "Sequencer.h" /* _____PUBLIC FUNCTIONS_____________________________________________________ */ /** Constructor. Creates class object. Initialize buffers */ Sequencer::Sequencer(uint8_t steps) { _num_steps = steps; ...
/* The actual Sweep function that will take in data and point to somewhere */ #include "Sweep.hpp" #include "StelMovementMgr.hpp" #include "StelUtils.hpp" /* #include "Telescope.hpp" #include "Lens.hpp" */ //These objects are those defined as Q_Object in the header Sweep::Sweep() /*: m_name("My Sweep"), m_...
#include <string> #include <vector> #include <fstream> #include <sdsl/suffix_arrays.hpp> #include <sdsl/cereal.hpp> // Realloc is defined in both the cereal dependency rapidjson and in core R // Have to include Rcpp after sdsl / cereal #include <Rcpp.h> #include <stringi.h> using namespace Rcpp; using tree_t = sds...
////////////////////////////////////////////////// // Blabber [UserID.cpp] ////////////////////////////////////////////////// #include "UserID.h" #include <cstring> #include "Agent.h" #include "AgentList.h" #include "JabberSpeak.h" #include <gloox/rosteritem.h> #include <gloox/rostermanager.h> UserID::UserID(gloox...
/* Copyright (c) 1999 - 2010, Vodafone Group Services Ltd 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 condit...
#include "StartMenu.hpp" namespace fs = std::experimental::filesystem; StartMenu::StartMenu(MenuContext *context) { this->Run(context); } void StartMenu::Run(MenuContext *context) { // while in this state // Clear screen // Display screen // Get Input // Parse Input // If input is valid run t...
// // textInput.cpp // // Created by <NAME> on 09/12/2011. // Copyright 2011 Kimchi and Chips. // // modified by <NAME> 12/2/2011 // modified by <NAME> 7/10/2012 // swappable fonts added by James George 9/11/2012 // // MIT license // http://www.opensource.org/licenses/mit-license.php // #include "ofxTextInputFie...
#pragma once #include <cstdio> #include <functional> #include <map> #include <memory> #include <rapidjson/document.h> #include <unistd.h> #include <utility> #include <vector> #include <wx/checkbox.h> #include <wx/dcbuffer.h> #include <wx/display.h> #include <wx/grid.h> #include <wx/joystick.h> #include <wx/spinctrl.h>...
/* * Copyright 2013 Stanford University. * 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 co...
/*! \file timer.cpp \author zafaco GmbH <<EMAIL>> \date Last update: 2020-11-03 Copyright (C) 2016 - 2020 zafaco GmbH This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License version 3 as published by the Free Softwar...
//***************************************************************************** // Copyright (c) 2016-2020, Intel Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // - Redistributio...
/*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object c...
//==------------------- device.hpp - SYCL device ---------------------------==// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "hostname_cache.hpp" #include <boost/interprocess/managed_shared_memory.hpp> #include <boost/interprocess/shared_memory_object.hpp> #include <boost/interprocess/containers/map.hpp> #include <boost/interprocess/containers/string.hpp> #include <boost/interprocess/allocators/allocator.hpp> #include <boost/interp...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * This test confirms that a MultiPictureDocument can be serialized and deserailzied without error. * And that the pictures within it are re-created accurately */ #include "i...
#include <rclcpp/rclcpp.hpp> #include <rclcpp/node.hpp> #include <sensor_msgs/msg/joint_state.hpp> #include <std_msgs/msg/bool.hpp> #include <std_msgs/msg/float32.hpp> #include <navio2_ros/pwm.hpp> namespace blurr { using sensor_msgs::msg::JointState; using std_msgs::msg::Bool; using std_msgs::msg::Float32; using nav...
/* The MIT License (MIT) Copyright (c) 2018 <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, mod...
#include "stlexam.h" #pragma hdrstop /************************************************************************** * * alg2.cpp - test program for STL generic algorithm that search for * elements that satisfy a condition. Section 12.3 * ********************************************************************...
#include <cassandra.h> #include <cstring> #include <iostream> #include <chrono> namespace { static const std::size_t LoopCount = 10000; static const std::size_t SelectCount = 100; static bool EnableCompression = false; static bool EnablePreparation = false; static CassConsistency DefaultConsistencyLevel = CASS_CO...
/* * ngtcp2 * * Copyright (c) 2020 ngtcp2 contributors * * 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, m...
#define MINI_AL_IMPLEMENTATION #define DR_WAV_IMPLEMENTATION //#define MAL_DEBUG_OUTPUT #include "dr_wav.h" #include "mini_al.h" #include <iostream> #include <string> #include <vector> #include <queue> #include <thread> #include <atomic> #include <mutex> #include <chrono> #include <algorithm> #ifdef _WIN32 #include...
/* * Code by <NAME> * Created: 19-08-2021 at 17:09:56 * * Template and snippets by <NAME> * Codeforces: Anish_aak Atcoder: Anish_aak Codechef: anish_ak * Github: https://github.com/Anish-aak (code/snippet repository soon!) */ #include <bits/stdc++.h> using namespace std; // Risky defines #define int ...
/* * Copyright (C) 2021 Huawei Device Co., Ltd. * 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 <string> #include <csignal> #include <iostream> #include <optional> #include <algorithm> // #define DEBUG using namespace std; string e("\x1B["); string rst(e + "0m"); string pink(e + "35m"); string cyan(e + "36m"); const char MIXED_NUM_DELIMITER('+'); void interrupt(int signum) { cout << pink << "\nInterr...
#include "appshell/appshell_extensions_platform.h" #include <unicode/ucsdet.h> #include <unicode/ucnv.h> #include <fstream> #ifdef OS_LINUX #include "appshell/browser/main_context.h" #include "appshell/browser/root_window_manager.h" #include "appshell/browser/root_window_gtk.h" #include <unicode/unistr.h> #endif #def...
#include <iostream> #include <vector> #include <Draggers/SelectablePlot2D.h> #include "pdebug.h" using namespace std; using namespace std; static const float EPS = 1.0e-6; Glx::SelectablePlot2D::SelectablePlot2D(glx* env, vector<double>* x, vector<double>* y) : itsEnv(env) { plotter=new Glx::PointPlotte...
#include "Globals.h" #include "Application.h" #include "ModuleRenderer3D.h" #include "GOCamera.h" #include "SDL\include\SDL_opengl.h" #include <gl/GL.h> #include <gl/GLU.h> #include "ImGui/ImGuizmo.h" #pragma comment (lib, "glu32.lib") /* link OpenGL Utility lib */ #pragma comment (lib, "opengl32.lib") /* link ...
// // Copyright 2019 The ANGLE 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. // // TestSuite_unittest.cpp: Unit tests for ANGLE's test harness. // #include <gtest/gtest.h> #include "../angle_test_instantiate.h" #include "T...
/* * SSEQ Player - SDAT SWAV (Waveform/Sample) structure * By <NAME> (CyberBotX) [<EMAIL>] * * Nintendo DS Nitro Composer (SDAT) Specification document found at * http://www.feshrine.net/hacking/doc/nds-sdat.html */ #include <vector> #include <cstddef> #include <cstdint> #include "SWAV.h" #include "common.h" st...
/** *hidden file of class CircularInt *Authors <NAME> and <NAME> *Version 2.0 **/ #pragma once //libraries #include <iostream> using namespace std; //our class class CircularInt{ private: int min; //always set to 1 - constructor wise too int max; //always set to 12 - constructor wise to...
// Copyright (c) 2011-2015 The Cryptonote developers // Copyright (c) 2014-2015 XDN developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "TcpListener.h" #include <sys/epoll.h> #include <unistd.h> #include <ne...
// // Created by zwakr on 8/22/2018. // #include "opencv2/objdetect.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include <chrono> #include <ctime> #include <iostream> using namespace std; using namespace cv; string cascadeName; string nestedCascadeName; std::chrono::duration<double> totalCalcTi...
#include "vehicle.h" #include <algorithm> #include <math.h> #include <iterator> #include <iostream> #include <fstream> #include <string> #include <vector> #include "cost.h" #include "constants.h" using std::string; using std::vector; Vehicle::Vehicle(){} Vehicle::~Vehicle() {} void Vehicle::update...
/** \file * * \author <NAME> - FNAL */ #include "RecoMTD/DetLayers/interface/MTDDetRing.h" #include "Geometry/CommonDetUnit/interface/GeomDet.h" #include "TrackingTools/GeomPropagators/interface/Propagator.h" #include "TrackingTools/DetLayers/interface/MeasurementEstimator.h" #include "FWCore/MessageLogger/interfa...
#include <iostream> #include <vector> #include <map> #include <unordered_map> #include <set> #include <unordered_set> #include <iomanip> #include <cstdio> #include <cstdlib> #include <cassert> #include <algorithm> int fail(){ puts("FAKE"); return 0; } void fail_exit(){ fail(); exit(0); } bool g[1002][1002]; boo...
// Copyright (c) 2018 ERGO-Code. See license.txt for license. #include "info.h" #include <cstring> // for memset #include <map> #include <string> #include "control.h" ipx_info::ipx_info() { memset(this, 0, sizeof(ipx_info)); } namespace ipx { template <typename T> static void dump(std::ostream& os,...
/********************************************************************** Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved. 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...
// // TextFile_examples.cpp // Relation-Based Simulator (RBS) // // Created by <NAME> on 06.07.2020. // Copyright © 2020 <NAME>. All rights reserved. // // @brief Presenting #include "exporting/TextFile.h" #include "exporting/TextFileSeries.h" #include <time.h> #include <iostream> using namespace exporting; usin...
/* * Copyright 2017-Present Couchbase, Inc. * * Use of this software is governed by the Business Source License included * in the file licenses/BSL-Couchbase.txt. As of the Change Date specified * in that file, in accordance with the Business Source License, use of this * software will be governed by...
#include "ExecuteOptionDialog.h" #include "ui_ExecuteOptionDialog.h" #include <QLabel> #include <QMessageBox> ExecuteOptionDialog::ExecuteOptionDialog( const TaskObject* task, const QStringList& taskRootNameSpace, const ObjectContext* taskCtxPtr, // where named references can be resolved const TaskOb...
#include "Electrum.h" ElectrumTx::ElectrumTx(ElectrumTx const &other){ tx = other.tx; is_segwit = false; txInsMeta = new ElectrumInputMetadata[tx.inputsNumber]; for(unsigned int i=0; i<tx.inputsNumber; i++){ txInsMeta[i] = other.txInsMeta[i]; } status = other.status; bytes_parsed = ...
/* * BSD 3-Clause License * * Copyright (c) 2019, Analog Devices, 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 copyrigh...
/** * 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 "...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2016 Intel Corporation. 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 copyr...
#include "globaleffects.h" #include "world/objects/globalfx.h" #include "world/world.h" #include "graphics/visualfx.h" GlobalEffects::GlobalEffects(World& owner):owner(owner){ } void GlobalEffects::tick(uint64_t dt) { tick(dt,timeEff); tick(dt,scrEff); tick(dt,morphEff); tick(dt,quakeEff); } template<cl...
/* Copyright (c) <2009> <<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, * including commercia...
#include <cassert> #include <cstddef> #include <cstdint> #include "Visionaray.h" // keep on top! #include <fake/optix.h> #include <fake/owl.h> #include "ClosestHit.h" #include "Miss.h" #include "Module.h" #include "Trace.h" namespace fake { static Traversable traversables[1<<24]; static std::size_t numTrave...
/* * Project Euler utilities (aka "peu") * * Created by quisseh on 11/8/15. */ #include "peu.h" /* * Trial division method. Test [num] * against all possible factors between * 2 and the square root of [num]. If * none divide evenly, [num] is prime. */ bool peu::isPrime(int num) { if (num < 2) return fals...
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetFrameRate(100); ofSetLogLevel(OF_LOG_ERROR); ofSetVerticalSync(true); backGroundColor = ofColor::fuchsia; #ifdef COMPUTERWORK f.allocate(WIDTH, HEIGHT, GL_RGBA); cam.setDistance(400); #else ...
// // test basic functions of MatEnv and materials // #include "KinKal/MatEnv/MatDBInfo.hh" #include "KinKal/MatEnv/DetMaterial.hh" #include "KinKal/MatEnv/SimpleFileFinder.hh" #include <iostream> #include <stdio.h> #include <iostream> #include <getopt.h> #include <iomanip> #include <random> #include <cmath> #include ...
// MS5525DO.cpp #include "Arduino.h" #include "MS5525DO.h" const uint8_t CMD_RESET = 0x1E; const uint8_t CMD_ADC_READ = 0x00; const uint8_t CMD_CONVERT_PRESS = 0x44; const uint8_t CMD_CONVERT_TEMP = 0x54; const uint8_t CMD_PROM_START = 0xA0; /* Default constructor */ MS5525DO::MS5525DO(){ _address = 0x76; // I2C...
#include <stdio.h> #include <string.h> #include <assert.h> #include "SuperJson.h" using namespace SuperJson; void iterFunc(JsonNode& node, int depth); void test1() { printf("\nstart test1\n"); const char* test = "{\ \"bool1\": true,\ \"bool2\" : false,\ \"int\" : 323,\ \"long\" : 2147483648,\...
#pragma once #include <algorithm> #include <string> #include <vector> #include "identifier.hpp" #include "location.hpp" #include "token.hpp" #include "modccutil.hpp" // describes a relationship with an ion channel struct IonDep { ionKind kind() const { return to_ionKind(name); } std::string name;...
#include <stdio.h> #include <math.h> #include <string.h> #include <iostream> #include <stdlib.h> #include "multinest.h" /******************************************** loglikelihood routine ****************************************************/ // Now an example, sample an egg box likelihood // Input arguments // nd...
#define RENDERING_ENGINE 1 #include "rendering/rendering.hpp" #include "game.hpp" #include <cstring> #include <utility> /** * @brief Initializes GLFWwindow and OpenGL context using GLEW. * * @param proj_xx xx entry of the screen matrix. * @param proj_yy yy entry of the screen matrix. * * @details The screen mat...
/************************************************************************ ************************************************************************/ /*-@@@ File: yahoolist.cxx Version: $Revision: 1.1 $ Description: Class YAHOOLIST - Yahoo's Mail Digest Document Type Author: <NAME>, <EMAIL> @@@-*/ //#include <iostrea...
#include <ncurses.h> #include <stdlib.h> #include "Player.h" #include "Ball.h" int ch; int width = 80; int height = 24; int dir = 1; int player1Points, player2Points = 0; bool quit; char wallTexture, playerTexture; bool player1Serve, player2Serve = false; Player player1(height / 2, 2); Player player2(height / 2, wid...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining ...
// Copyright 2012 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
#include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <vector> #include <iomanip> #include <climits> using namespace std; const double epsilon = 0.00000001; struct Point { double x, y; bool operator<(const Point& rhs) const { return x == rhs.x ? y < rhs.y : x < rhs.x; ...
#include "stdafx.h" #include "experiment.h" #include "subject.h" #include <windows.h> #include <algorithm> #include <sstream> #include <iostream> using namespace std; Experiment::Experiment(string inputpath, string outputpath) : inputpath_(inputpath), outputpath_(outputpath) { } Experiment::~Experiment() { } //open...
/* DESCRIPTOR SET LAYOUT.cpp * by Lut99 * * Created: * 26/04/2021, 15:33:41 * Last edited: * 9/20/2021, 8:34:22 PM * Auto updated? * Yes * * Description: * Contains the DescriptorSetLayout class, which describes the format for * a single type of buffer. **/ #include "tools/Logger.hpp" #include ...
#include <glew\glew.h> #include <string> #include <FreeImage/FreeImage.h> #include "Model.h" #include "shader.h" #include <glm\glm.hpp> #include <glm/gtc/type_ptr.hpp> Model::Model(std::string path, std::vector<GLuint> *textures) { this->textures = textures; this->loadModel(path); }; /* Drawing all Meshes from this...
// // Created by <NAME> on 07.08.20. // #include "Options.h" #include "getopt.h" #include <iostream> #include <cstring> #include <cassert> const std::string Options::INPUT_FILE = "input"; const std::string Options::LOGIC = "logic"; const std::string Options::ENGINE = "engine"; const std::string Options::ANALYSIS_FLO...
/******************************************************************************* Copyright 2006-2009 <NAME> <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www....
#ifdef HAVE_CONFIG_H #include <../../config.h> #endif /* * Copyright (c) 1987, 1988, 1989, 1990, 1991 Stanford University * Copyright (c) 1991 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provi...
#include "warped.h" #include "../include/Process.h" #include "../include/ProcessState.h" #include "SimulationManager.h" #include "StopWatch.h" #include "IntVTime.h" #include <iostream> #include <sstream> #include <fstream> #include <time.h> using namespace std; Process::Process(unsigned int procNr, string &name, unsig...
#include <iostream> #include <string> #include "Omega_h_file.hpp" #include "Omega_h_for.hpp" #include "Omega_h_mesh.hpp" #include "Omega_h_element.hpp" #include "Omega_h_array_ops.hpp" using namespace Omega_h; void test_2d(Library *lib, const std::string &mesh_file) { auto mesh = Mesh(lib); binary::read (mesh_f...
// All content Copyright (C) 2018 Genomics plc #include "variant/variantContainer.hpp" #include "variant/type/variant.hpp" #include "alignment/cigar.hpp" #include "io/readDataSet.hpp" #include "variant/haplotypeGenerator.hpp" #include "unittest/vcf/VCFTestUtils.hpp" #define BOOST_TEST_DYN_LINK #include <boost/test/uni...
#include "test_r_codec.h" #include "r_codec/r_video_decoder.h" #include "r_codec/r_video_encoder.h" #include "r_mux/r_demuxer.h" #include "r_mux/r_muxer.h" #include "r_utils/r_file.h" // Added to the global namespace by test_r_mux.cpp, so extern'd here: extern unsigned char true_north_mp4[]; extern unsigned int true_...
#include "linux_parser.h" #include <dirent.h> #include <unistd.h> #include <cstring> #include <filesystem> #include <sstream> #include <stdexcept> #include <string> #include <vector> #include "utils.h" using std::stof; using std::stol; using std::string; using std::to_string; using std::vector; string LinuxParser:...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2001 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2008-2014, <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...
#include <fmt/format.h> #include <httplib.h> #include <nlohmann/json.hpp> #include <sqlite_orm/sqlite_orm.h> #include <regex> #include <string> using httplib::Request; using httplib::Response; namespace nl = nlohmann; using namespace sqlite_orm; struct naj_class { int id; std::string name; }; struct eng_class {...
// // convnode.cpp // jpcnn // // Created by <NAME> on 1/9/14. // Copyright (c) 2014 Jetpac, Inc. All rights reserved. // #include "convnode.h" #include <assert.h> #include <string.h> #include <math.h> #include "buffer.h" #include "binary_format.h" #include "matrix_ops.h" ConvNode::ConvNode() : BaseNode(), _ker...
#include <gtest/gtest.h> #include <graph_lite.h> #include <serialize.h> using namespace graph_lite; #include <utility> template<typename S> void compare(const S& s, const std::string& sol) { std::stringstream ss; s.serialize_to_dot(ss); ASSERT_EQ(ss.str(), sol); } TEST(serializer, simple) { Graph<...