text
stringlengths
5.71k
33.7k
#include <config.h> #include "networking/const.h" #include "vsnet_headers.h" #include <list> #include "vsnet_sockettcp.h" #include "vsnet_err.h" #include "vsnet_oss.h" #include "vsnet_debug.h" #include "packet.h" using std::cout; using std::cerr; using std::endl; using std::ostream; /******************************...
#include "cykFerns.h" #include "cykTools.h" #include <math.h> #include <iomanip> using namespace std; using namespace arma; cykFerns::cykFerns(){ arma_rng::set_seed_random(); validation_ratio = 0; model_loaded = false; } void cykFerns::init_params(cyk_fern_prms pa){ eta = pa.eta; S =...
#include "Overleap.h" Overleap::Overleap(float length_0, float length_1, Stream& odrive_serial, Stream& arduino_serial, ODriveArduino& odrive) : odrive_serial_(odrive_serial), arduino_serial_(arduino_serial), odrive_(odrive) { length_0_ = length_0; length_1_ = length_1; // initialize to 0 theta0_zero_...
#include "PFi386.hpp" #include <iomanip> using namespace std; void PFi386::NOP() { *out << "; NOP\n\tnop\n"; } void PFi386::INT(int val) { *out << "; INT\n\tpush\tdword " << val << "\n"; } void PFi386::ADD() { *out << "; ADD\n\tpop\teax\n\tadd\tdword [esp], eax\n"; } void PFi386::SUB() { *out << "; SUB\n\tpop\teax...
#define _USE_MATH_DEFINES #include "Fluid.h" using namespace Eigen; using namespace std; VectorXf temperature(float C_v, MatrixXf vsol) { VectorXf temp(vsol.rows()); ArrayXf col0, col1, col2, res; col0 = vsol(all, 0).array(); col1 = vsol(all, 1).array(); col2 = vsol(all, 2).array(); res = (col2 / col0 - (.5...
#include <ros/ros.h> #include <dynamic_reconfigure/server.h> #include <visualization_msgs/Marker.h> #include <ddd_plane_extr/planes_paramConfig.h> // Include opencv2 #include <opencv2/core.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <cv_bridge/cv_bridge...
//===- Rewriter.cpp - Code rewriting interface ----------------------------===// // // 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 "source/GcLib/pch.h" #include "MainWindow.hpp" #include "LibImpl.hpp" //******************************************************************* //MainWindow //******************************************************************* MainWindow::MainWindow() { } MainWindow::~MainWindow() { //コンパイル中なら停止 Stop(); Joi...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
#include <vsg/all.h> #ifdef vsgXchange_FOUND # include <vsgXchange/all.h> #endif #include <iostream> // use a static handle that is initialized once at start up to avoid multi-threaded issues associated with calling std::locale::classic(). struct DataBlocks : public vsg::Inherit<vsg::Object, DataBlocks> { uin...
#ifdef __cplusplus # ifdef __GNUC__ # define restrict __restrict__ # else # define restrict # endif #endif #include <cmath> #include <vector> #include <iostream> extern "C" { #include "rebound.h" } #include "matrix_math.h" #include "stress.h" #include "physics.h" #include "springs.h" using std::vector; extern vec...
/// /// @file SystemStates.cpp /// @brief Actual System State Implementations /// @details Models a certain state in the System State Machine. /// @n /// @n @b Project SunriseClock /// @n @a Developed with [embedXcode+](http://embedXcode.weebly.com) /// /// @author <NAME> /// @author <NAME> /// /// @date 02.09.1...
#include<string> #include<cstring> #include<stdio.h> #include<map> #include<vector> #include<iostream> //#include <readline/history.h> #include "ThostFtdcUserApiStruct.h" #include "console.h" #include "util.h" #include "msg.h" #include "td_op.h" #include "md_op.h" #include "position.h" #include "wxy_sche...
/******* \class DTRunConditionVarClient ******* * * Description: * * detailed description * * \author : <NAME>, <NAME> * $date : 23/09/2011 15:42:04 CET $ * * Modification: * * threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my * * *********************************/ #include <DQM/DT...
/************************************************************************************************** * Class for MPC with constraint * * The plant to be controlled is a Linear Time-Invariant System: * x(k+1) = A*x(k) + B*u(k) ; x = Nx1, u = Mx1 * z(k) = C*x(k) ; z = Zx1 * * **...
/*! * Copyright 2017 by Contributors * \file builder.cc * \brief model builder frontend * \author <NAME> */ #include <treelite/frontend.h> #include <treelite/tree.h> #include <dmlc/registry.h> #include <memory> #include <queue> #include "../c_api/c_api_error.h" #define CHECK_EARLY_RETURN(x, msg) ...
/*********************************************************************************************************************** * * * ANTIKERNEL v0.1 ...
int//8HLO Dnrp2 ,TcB , ad6Y ,WLa ,/*O4L*/ qFP /*7A9*/ ,tTG , mN2wQ ,xJO, gRgt , g , BBb , Uydo , dMn , pH6j6, qB03 , Ypplk,bCfMo/*Cr*/, qT ,lh , hk,pjS , bC ,/*v*/dr, YN7k, cXYF, XOIO,bl ,KcIP, hRP ,ClGHS , Sko,i , SMn , ERg ; void f_f0 () { int AN; volatile int pRws,igl ,wa , rAM,s ,o0cpx ; ...
/* Copyright 2021 iwatake2222 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
#include "mex.h" #include "math.h" #include "string.h" #include <iostream> #include "stdlib.h" #define mind(a, b) ((a) < (b) ? (a): (b)) #define maxd(a, b) ((a) > (b) ? (a): (b)) #include "renderpatch_transformation.cpp" #include "renderpatch_vertice.cpp" #include "renderpatch_texture.cpp" #include "rende...
#include <cstdio> #include <cassert> #include <vector> #include <functional> #include <algorithm> #include <cstring> using int64 = long long; using strings = std::vector<std::pair<int, int>>; const int N = 1e6 + 10; char s[N], buf[N]; template<class T, class Compare = std::less<T>> class SchieberVishkinRMQ { public...
/** * Author: Crown<NAME> * Copyright: Crownstone (https://crownstone.rocks) * Date: Mar 27, 2018 * License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed) */ #include <processing/cs_RecognizeSwitch.h> #include <cfg/cs_Config.h> #include <protocol/cs_Packets.h> #include <structs/cs_PacketsInternal.h> #...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <algorithm> #include <cstring> #include <mutex> #include <stdexcept> #include <mpi.h> #include <nccl.h> #include "...
/* * edge_util.cc */ #include "edge_util.h" #include <iostream> using namespace cv; using namespace std; /** * Code for thinning a binary image using Zhang-Suen algorithm. * * Perform one thinning iteration. * Normally you wouldn't call this function directly from your code. * * @param im Binary ...
/** @file @brief Example program that uses the OSVR direct-to-display interface and D3D to render a scene with low latency. @date 2015 @author <NAME> <<EMAIL>> <http://sensics.com/osvr> */ // Copyright 2015 Sensics, Inc. // // Licensed under the Apache License, Version 2.0 (the "Licens...
#include "../Terrain/WorldLoader.h" const float maxStepSize = 0.5; const float EPSILON = 1e-5; struct movement { mVec3 pos; mpsVec3 vel; }; template<typename T> void sortPairInc(T& a, T& b) { if (a > b) { swap(a, b); } } template<typename T> void sortPairDec(T& a, T& b) { if (a > b) { swap(a, b); ...
//----------------------------------------------------------------------------// // // // ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation // // and distributed under the MIT License (MIT). ...
#include "MainGame.h" #include "Zombie.h" #include "Gun.h" #include <Bengine/include/BengineErrors.h> #include <Bengine/include/Bengine.h> #include <Bengine/include/Timing.h> #include <Bengine/include/ResourceManager.h> #include <glm/gtx/rotate_vector.hpp> #include <iostream> #include <string> #include <random> #inc...
#include "monitor.h" #include <X11/Xlib.h> #include <algorithm> #include <cassert> #include <cstring> #include <sstream> #include <vector> #include "client.h" #include "clientmanager.h" #include "completion.h" #include "ewmh.h" #include "floating.h" #include "frametree.h" #include "globals.h" #include "hook.h" #inclu...
// Copyright(c) 2019-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...
/**************************************************************************** * * Copyright (c) 2021 Vivante Corporation * * 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 ...
#include <iostream> // cout, cerr #include <assert.h> // assert #include <string.h> // memcpy #include <chrono> // time/clocks #include <math.h> #define _USE_MATH_DEFINES #define EDGE 0xFFFF #define NON_EDGE 0x0 #include "cannyEdgeDetector.hpp" #include "canny.h" CannyEdgeDetector::CannyEdgeDetector(std::shared_ptr<I...
#include <glad/glad.h> #include <glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <iostream> #include "../lib/Shader/shader.cpp" #include "../lib/Texture/texture.cpp" #include "../lib/Camera/camera.cpp" const unsigned int width = 800, height = 600; Came...
/* * test.cpp * * Created on: Jan 2, 2017 * Author: karl */ #include <cv.h> #include <highgui.h> using namespace cv; //#include <stdio> //#include <dirent.h> #include <cstdlib> #include <cmath> #include <ctgmath> #include <math.h> /* sin */ #define PI 3.14159265 using std::cout; using std::endl; ...
// Copyright (c) 2014-2018 <NAME> // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <names/main.h> #include <chainparams.h> #include <coins.h> #include <consensus/validation.h> #include <dbwrapper.h> #include <hash.h> #i...
// // Created by jagle on 8/19/2019. // #include <string> #include <algorithm> #include <cctype> #include <iostream> #include <fstream> #include <memory> #include <unistd.h> #include <signal.h> #include <regex> #include "common/util.h" #include <boost/process.hpp> #include <boost/algorithm/string.hpp> //#include <bo...
//===- file-table-tform.cpp - transform files with tables of strings ------===// // // 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 // //===---------------------------...
/***************************************************************************** * lwlibav_source.cpp ***************************************************************************** * Copyright (C) 2013-2015 L-SMASH Works project * * Authors: <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute th...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
#include "../include/CFont.hpp" #include <iostream> #include <fstream> FT_Library Font::lib; std::unordered_map<std::string, Font> Font::fontCache; std::unordered_map<std::string, FT_Face> Font::faceCache; GLuint Font::program = 0; GLuint Font::tex = 0; GLuint Font::vbo = 0; GLuint Font::uniform_tex = 0; GLuint Font::...
/** * mzgaf2paf.hpp: Make base level pairwise alignemnts from minigraph --write-mz output with the object of using them as * anchors for other graph methods */ #include "mzgaf2paf.hpp" #include "mzgaf.hpp" #include <limits> //#define debug using namespace gafkluge; using namespace std; struct Matc...
//===- AIECreatePathfindFlows.cpp -------------------------------*- C++ -*-===// // // This file is licensed 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 // // (c) Copyright 2021 Xilinx Inc. //...
// Copyright 2019 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 "android_webview/browser/aw_pac_processor.h" #include <android/multinetwork.h> #include <arpa/inet.h> #include <dlfcn.h> #include <netdb.h> #inc...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmWorkerPool.h" #include <algorithm> #include <array> #include <condition_variable> #include <cstddef> #include <deque> #include <functional> #include <mutex> #i...
#include "testerMain.h" #include <iostream> #include <time.h> #include "MovementLib.h" #include <TypeIRML.h> #include <exception> #include <boost/thread/thread.hpp> #ifndef PI #define PI 3.1415926535897932384626433832795 #endif #ifndef RAD #define RAD(A) ((A) * PI / 180.0 ) #endif #ifndef DEG...
// Copyright 2019 <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, distribute, s...
/* Copyright 2012 bigbiff/Dees_Troy TeamWin This file is part of TWRP/TeamWin Recovery Project. TWRP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any ...
// // Created by peter on 7/27/21. // std::vector<ISpObjectToken*> gVoices; ISpVoice* gVoice = nullptr; // Default settings - should match those in Papyrus bool gModEnabled = true; uint32_t gPlayerVoiceID = 0; uint32_t gPlayerVoiceVolume = 50; int32_t gPlayerVoiceRateAdjust = 0; /************************* ** Play...
#include "client/resbase.hpp" #include "utils/noise.hpp" #include "vaslib/vas_cpp_utils.hpp" #include "vaslib/vas_log.hpp" #include "ren_aal.hpp" #include "camera.hpp" #include "control.hpp" #include "shader.hpp" #include "texture.hpp" struct Noise { Noise() { tex.target = GL_TEXTURE_3D; } void generate(float ...
/* * Copyright (C) 2011 True Blood <http://www.trueblood-servers.com/> * By Asardial * * Copyright (C) 2011 - 2013 ArkCORE <http://www.arkania.net/> * * 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...
// // Created by pmorku on 01.12.17. // #include <fstream> #include <assert.h> #include "../../optimizePPA/OptimizeSlave.h" #include "../../optimizePPA/OptimizeMaster.h" #include "../../optimizePPA/OptimizeOperations.h" #include "OrganizeOpStmts.h" #include "SynthVHDL.h" #include "PrintStmt.h" #include <Synthesize/R...
/* The copyright in this software is being made available under the BSD * License, included below. This software may be subject to other third party * and contributor rights, including patent rights, and no such rights are * granted under this license. * * Copyright (c) 2010-2017, ISO/IEC * All rights reser...
#include "mygamewindow.h" #include <QMainWindow> #include <QDebug> #include "qevent.h" #include "qtimer.h" #include "qpainter.h" #include "qpixmap.h" #include "QEventLoop" #include "qpropertyanimation.h" #include <QLabel> #include <QTimer> #include <QElapsedTimer> #include <QTime> void myGameWindow::updateStatus() { ...
/* * http.c */ #include <unordered_map> #include "asn1/bytestring.h" #include "http.h" #include "json_object.h" #include "match.h" void http_request::parse(struct datum &p) { /* parse request line */ method.parse_up_to_delim(p, ' '); p.skip(1); uri.parse_up_to_delim(p, ' '); p.skip(1); prot...
#include <iostream> #include <fstream> #include <vector> #include <algorithm> #include <chrono> using namespace std; using namespace std::chrono; ifstream in("sortari.in"); ofstream out("sortari.out"); //Utility Functions void PrintArray(vector<long long>& v); void FilePrintArray(vector<long long>& v); int NrOfDigit...
// // Academic License - for use in teaching, academic research, and meeting // course requirements at degree granting institutions only. Not for // government, commercial, or other organizational use. // // File: EKF.cpp // // Code generated for Simulink model 'EKF'. // // Model version : 1....
#include "aabb.h" #include <iostream> AABB::AABB() { p_min = make_vector3(std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity(), std::numeric_limits<float>::infinity() ); p_max = make_vector3(-std::numeric_limits<float>::infinity(), ...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> #include "measurement_package.h" #include <fstream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // counter for metr...
////////////////////////////////////////////////////////////////////////////// //// This software module is developed by SciDM (Scientific Data Management) in 1998-2015 //// //// This program is free software; you can redistribute, reuse, //// or modify it with no restriction, under the terms of the MIT License. //// ...
#include "overlay.h" #include <stdexcept> DXOverlay::DXOverlay(UINT32 width, UINT32 height, DWORD keyColor) : width(width), height(height), keyColor(keyColor) { // Initialize DirectDraw if( InitDDraw() < 0 ) throw std::logic_error("Failed to initialize DirectDraw."); // Check overlay support ...
/***** BEGIN LICENSE BLOCK ***** BSD License Copyright (c) 2005-2015, NIF File Format Library and Tools 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...
/* The entry point into the application. Parses command line options (or config files) and sets up the program flow based on said options Date: 01/07/2013 Author: <NAME> (<EMAIL>) */ #include "boost/program_options.hpp" #include <iostream> #include <list> #include <vector> #include <stdio.h> #i...
// Background average sample code done with averages and done with codebooks // // Files are ch9_backgroundAVG.cpp // ch9_AvgBackground.cpp and .h // cv_yuv_codebook.cpp and .h // // As of the writing of this book, the cv_yuv_codebook files are going to be a permanent part of // OpenCV (with i...
/* Copyright 1986, 1989, 1990, 1995 - 1996 by Abacus Research and * Development, Inc. All rights reserved. */ /* Forward declarations in WindowMgr.h (DO NOT DELETE THIS LINE) */ #include <base/common.h> #include <QuickDraw.h> #include <CQuickDraw.h> #include <WindowMgr.h> #include <EventMgr.h> #include <ToolboxUti...
#include <string.h> #include <limits.h> #include <stdio.h> #include <stdlib.h> #include "parts_compilation_directives.h" #include "ppf_w_bpi.h" #include "ppf_v.h" #include "ppf_w.h" #include "ppf_w_mb.h" #include "ppf_v_bpi.h" #include "ss_str.h" #include "process_sequences.h" #include "ppf_math.h" #include "alignment_...
#include "internals.h" // ********************************************** /// Constructor. // ********************************************** sensor_osus_manager_class::sensor_osus_manager_class() :atrlab_manager_class(100) // Never should use this max value { strcpy(class_type, "sensorOSUS"); n_data = ...
/* * Adplug - Replayer for many OPL2/OPL3 audio file formats. * Copyright (C) 1999 - 2003 <NAME>, <<EMAIL>>, et al. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * vers...
#include <string> #include <iostream> using std::cout; using std::cerr; using std::endl; #include <AMReX_ParmParse.H> #include <AMReX_MultiFab.H> #include <AMReX_DataServices.H> #include <WritePlotFile.H> #include <AppendToPlotFile.H> using namespace amrex; static void print_usage (int, char* argv[]) {...
/*===================== begin_copyright_notice ================================== Copyright (c) 2017 Intel Corporation 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, includi...
#include "imgui.h" #include "imgui_internal.h" #include "imgui_ext.h" #include "imgui_layout.h" // ################################## ImGuiExt ############################################### ImGuiStorage* ImGuiExt::GetImGuiStorage(ImGuiID id) { ImGuiContext& g = *GImGui; ImGuiStorage* childLayout = NULL; childLa...
#include "GLIncludes.h" #include <cstdio> #include <cstdlib> #include <iostream> #include <sstream> #include <iomanip> #include <math.h> // Math things #include "SimpleMath.h" #include "VectorMath.h" #include "Config.h" #include "Terrain.h" #include "Camera.h" // OpenGL Includes #include <GLTools.h> // Op...
//================================================================= // Copyright 2017 Advanced Micro Devices, Inc. All rights reserved. //================================================================= // C++. #include <algorithm> #include <sstream> #include <fstream> #include <iostream> #include <cctype> ...
#include "flexui/Render/Font.hpp" #include "flexui/Log.hpp" // FreeType 2 #include <ft2build.h> #include FT_FREETYPE_H constexpr auto MAX_VALID_UNICODE = 0x10FFFF; // https://github.com/skeeto/branchless-utf8 static int utf8_decode(uint32_t* c, const uint8_t* buf, const uint8_t* buf_end) { static const char le...
//----------------------------------------------------------------------------- // Copyright (c) 2016 @hirodotexe. All rights reserved. //----------------------------------------------------------------------------- // Information on this class is described in "board.h". //------------------------------------------...
/* * ===================================================================================== * * Filename: SAMFilter.cpp * * Description: Filter SAM Hits according to * filteration criteria * minPctSimilarity, minAccuracy, * minLength, holeNumb...
// Copyright (c) 2020 smarsufan. All Rights Reserved. #include <fstream> #include <iostream> #include <sys/time.h> #include <cstring> #include <cassert> #include <cmath> #include "simple_jepg.h" static uint8_t zip_table_[64] = { 0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25,...
#include "gtest/gtest.h" #include "Kokkos_Core.hpp" #include "Kokkos_Random.hpp" #include "KokkosBatched_Gemm_Decl.hpp" #include "KokkosKernels_TestUtils.hpp" using namespace KokkosBatched; namespace Test { template <typename DeviceType, typename ViewType, typename ScalarType, typename ParamTagType> void ...
/* WWWsettings */ // © 2noodles llc // <EMAIL> #include "WWWsettings.h" #include <Time.h> #include <Base64.h> #include <EthernetClient.h> #include <Arduino.h> #include <EthernetUdp.h> #include <SPI.h> //used for NTP sync function WWWsettings* WWWsettings::thisClassObj; //static member char WWWsettings::toEmail[50] ...
/******************************************************************************* * * Copyright (c) 2010-2015 <NAME> * * This file is part of MASA-Core. * * MASA-Core 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 Softw...
#include "solver.h" using namespace std; using namespace ::boost::tuples; using namespace ::boost; void run_solver(int max_sites, map< set< tuple<int,int,int,int,int> >, double> &J, map< set< tuple<int,int,int,int,int> >, double> &lowerboundclustertype, map< set< tuple<...
// Copyright 2020 The Fuchsia 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 <fidl/fuchsia.boot/cpp/wire.h> #include <fidl/fuchsia.hardware.virtioconsole/cpp/wire.h> #include <fidl/fuchsia.io/cpp/wire.h> #include <fidl/fuch...
//---------------------------------------------------------------------------// /* 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 cod...
/* * Copyright (c) 2014, Quarkslab * 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 condition...
/** * @file glove.cpp * @author <NAME> * * This tool builds word embedding vectors from a weighted cooccurrence * matrix using the GloVe model. * * @see http://nlp.stanford.edu/projects/glove/ */ #include <thread> #include "cpptoml.h" #include "meta/embeddings/cooccur_iterator.h" #include "meta/io/filesystem....
/* * Copyright (c) 2008, 2016, 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 <cstdint> #include <cstdio> #define _USE_MATH_DEFINES #include <cmath> #include <cstdlib> #include <cstring> #include "pico/stdlib.h" #include "pico/multicore.h" #include "LcdIli9341SPI.h" #include "TpTsc2046SPI.h" #include "AdcBuffer.h" #include "RingBuffer.h" /*** CONST VALUE ***/ static con...
#include "MainWindow.h" #include <iostream> #include <filesystem> #include <string> #include <LibSL.h> #include <LibSL_gl.h> #include "imgui.h" #include "imgui_internal.h" #include "FileDialog.h" #include "../libs/implot/implot.h" #include "FST/FSTReader.h" #include "sourcePath.h" #include "FSTWindow.h" #include <nlohm...
/* Copyright (C) 2019 <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, distribute, sublicen...
/* code by phoneli. email : <EMAIL> license : MIT */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <dirent.h> #include <string.h> #include <sys/stat.h> #include <ncurses.h> #include <errno.h> #include <vector> #include <map> #include <set> #include <string> #include <algorithm> #define STR2UIN...
// --------------------------------------------------------------------------- #include <string> #include <QFileInfo> #include <QInputDialog> #include <QMessageBox> #include <QDir> #include "SliceModel.h" #include "prog_interface_static_link.h" #include "fib_data.hpp" #include "fa_template.hpp" // --------------------...
#include "MyoCollector.h" #define EMG_ELEMENT_NUM 8 #define NOT_CALIBRATED -1 using namespace cv; using namespace std; MyoCollector::MyoCollector() { } void MyoCollector::collect(myo::Hub*& hub){ // set sensor frequency for collecting data hub->run(MYO_FREQUENCY); //hub->run(50); } in...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
#include "TwoDModel.h" #include "Utilities.h" #include <cmath> #include <cstdlib> #include <random> #include <iostream> #include <array> using namespace std; const double Discount_2DMdl = 0.95; const int NumCStateVar_2DMdl = 2; // number of continuous state variables const int NumDState_2DMdl = 4; // number of d...
/* File: CryptoTest.cpp Author: <NAME> Date: 2016.09.25 Copyright 2016 Manuvr, 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 requir...
// ROS includes. #include <ros/ros.h> #include <ros/time.h> #include <tf/tf.h> #include <tf/transform_listener.h> #include <string.h> #include <cmath> #include <algorithm> // std::min_element, std::max_element #include <message_filters/subscriber.h> #include <message_filters/synchronizer.h> #include <message_filte...
#include <iostream> #include <vector> #include <deque> #include <list> #include <map> #include <set> #include <boost/program_options.hpp> #include <components/esm/esmreader.hpp> #include <components/esm/esmwriter.hpp> #include <components/esm/records.hpp> #include "record.hpp" #define ESMTOOL_VERSION 1.2 // Create...
/**************************************************************************** * * Copyright (c) 2013-2015 PX4 Development Team. 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. Red...
#include <eosio.amend.hpp> #include <eosiolib/symbol.hpp> #include <eosiolib/print.hpp> ratifyamend::ratifyamend(name self, name code, datastream<const char*> ds) : contract(self, code, ds), configs(self, self.value) { if (!configs.exists()) { configs_struct = config{ _self, //publisher ...
//#include <glib.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> //#include "mcce.h" extern "C" { #include "mcce.h" } #include <cstdlib> #include <cstring> #include <cmath> #include <set>...
/** * * |_ _ _ * |_)| (/_VV * * Copyright 2015-2018 <NAME> * * Created on: Feb 11, 2016 * */ #include <brew/math/Quaternion.h> #include <brew/math/Math.h> #include <brew/math/Matrix4.h> namespace brew { #define QUATERNION_EQUAL_EPSILON 0.1f Quaternion::Quaternion(Real x, Real y, Real z, Real w) : x(...