text
stringlengths
5.71k
33.7k
// ******************************************************** // // Author/Copyright <NAME> / GkWare e.K. // Hatzper Strasse 172B // D-45149 Essen, Germany // Tel: +49 174 520 8026 // Email: <EMAIL> // Web: http://www.gkware.com // // // ********************************************************...
/* MIT License 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,...
#include <ncurses.h> #include "tables.h" #include "instedtr.h" #include "patternedtr.h" #include "cmdbar.h" #include "pattern.h" #include "instrument.h" #include "song.h" #include <iostream> bool parseParams(int argc, char *argv[]) { bool songset = false; for(int i = 1; i < argc; i++) { //This...
/* Copyright (C) 2013 Ion Torrent Systems, Inc. All Rights Reserved */ #include <stdio.h> #include <string> #include <sstream> #include <map> #include <limits> #include <list> #include <ostream> #include "IonVersion.h" #include "api/BamReader.h" #include "api/BamWriter.h" #include "api/SamConstants.h" #include "Util/Op...
#include "IrcClient.hpp" #include "utils.hpp" std::string replace_all(std::string str, const std::string& from, const std::string& to) { size_t start_pos = 0; while((start_pos = str.find(from, start_pos)) != std::string::npos) { str.replace(start_pos, from.length(), to); start_pos += to.length(); // Handles case...
/** * @file src/core/ThreadManager.cpp * @date Mar 2016 * @author PhRG - opticalp.fr */ /* Copyright (c) 2016 <NAME> / Opticalp 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 res...
/* * Copyright (c) 2016 Juniper Networks, Inc. All rights reserved. */ #include "config_json_parser.h" #include <boost/lexical_cast.hpp> #include <sandesh/request_pipeline.h> #include <string> #include "config-client-mgr/config_client_manager.h" #include "ifmap/ifmap_log.h" #include "ifmap/ifmap_log_types.h" #incl...
#include "agg_basics.h" #include "agg_rendering_buffer.h" #include "agg_rasterizer_scanline_aa.h" #include "agg_scanline_p.h" #include "agg_renderer_scanline.h" #include "agg_trans_affine.h" #include "agg_conv_stroke.h" #include "agg_conv_transform.h" #include "ctrl/agg_cbox_ctrl.h" #include "ctrl/agg_slider_c...
/* Class representing a Feed-Forward, Fully-Connected, Multilayer Neural Network, with methods that allow not only to make inferences and evaluate the goodness of predictions but also to train the model. */ #include "model.hpp" /** Build the neural network architecture components. */ FullyConnectedNeuralNetwork...
#include "GaudiKernel/MsgStream.h" #include "CalLikelihoodPDFFunctions.h" #include "CalLikelihoodManagerTool.h" #include "Event/Digi/TkrDigi.h" #include <cerrno> /******************************************************************************/ /*********************** PDFFunction **************************************...
/* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ...
#include "mouse.h" #include <X11/X.h> #include <cstdlib> #include <cstring> #include "client.h" #include "command.h" #include "frametree.h" #include "globals.h" #include "keymanager.h" #include "layout.h" #include "monitor.h" #include "mousemanager.h" #include "root.h" #include "settings.h" #include "tag.h" #include ...
#include "TextViewComponent.h" #include "../../MythForest.h" #include "../../../SnowyStream/Manager/RenderResourceManager.h" #include <utility> using namespace PaintsNow; static inline int GetUtf8Size(char c) { int t = 1 << 7; int r = c; int count = 0; while (r & t) { r = r << 1; count++; } ...
// // Created by <NAME> on 1/15/21. // #include <iostream> #include <random> #include <cstring> #include <cassert> #include <memory> #include <x86intrin.h> using namespace std; #define PAXOS_LIB_ENABLED 1 #define MAX_ARRAY_SIZE_IN_BYTES size_t(40980)*size_t(4098)*sizeof(char) size_t ul_len = sizeof (unsigned long l...
#include <shogun/mathematics/Math.h> #include <shogun/lib/SGVector.h> #include <shogun/structure/FactorGraph.h> #include <shogun/structure/FactorType.h> #include <shogun/structure/Factor.h> #include <shogun/labels/FactorGraphLabels.h> #include <shogun/structure/MAPInference.h> #include <gtest/gtest.h> using namespace ...
// MFEM modified from Example 10 and 16 // // Compile with: make exMHD // // Sample runs: // exMHD -m xperiodic-square.mesh -r 2 -o 3 -tf 3 -vs 100 -dt .001 -visit // exMHD -r 2 -tf 10 -vs 50 -dt .004 -i 2 // // Description: it solves a time dependent resistive MHD problem // Aut...
// *************************************************************************** // BamReader_p.cpp (c) 2009 <NAME> // Marth Lab, Department of Biology, Boston College // --------------------------------------------------------------------------- // Last modified: 18 November 2012 (DB) // --------------------------------...
//===-- WebAssemblyCFGStackify.cpp - CFG Stackification -------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // 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: turtletrajectory.cpp // // Code generated for Simulink model 'turtletrajectory'. // // Model ver...
/***************************************************************************** bedtools.cpp bedtools command line interface. Thanks to <NAME>, as this interface is inspired and based upon his samtools interface. (c) 2009-2011 - <NAME> Quinlan Laboratory Department of Public Health Sciences Center f...
/* * Copyright 2017 MapD Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
// physics_constants.cpp: experiments with posit representations of important constants in physics // // Copyright (C) 2017-2020 Stillwater Supercomputing, Inc. // // This file is part of the UNIVERSAL project, which is released under an MIT Open Source license. #include <universal/posit/posit> #include <universal/in...
/* * Copyright (C) 2009 <NAME> <<EMAIL>> * Copyright (C) 2010, 2011, 2012 Research In Motion Limited. 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 mus...
#include "L1Trigger/TrackFindingTracklet/interface/Sector.h" #include "L1Trigger/TrackFindingTracklet/interface/MemoryBase.h" #include "L1Trigger/TrackFindingTracklet/interface/Settings.h" #include "L1Trigger/TrackFindingTracklet/interface/Globals.h" #include "L1Trigger/TrackFindingTracklet/interface/InputLinkMemory.h...
/** * @file pprpush_weighted_mex.cc * Implement a PPR clustering scheme. * * mex pprclus_mex.cc CXXFLAGS="\$CXXFLAGS -std=c++0x" -largeArrayDims */ #include <vector> #include <queue> #include <utility> // for pair sorting #include <assert.h> #include <limits> #include <algorithm> #include <unordered_set> #incl...
/* 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 "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/PluginManager/interface/ModuleDef.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FW...
/* ** $Id: lpcap.c,v 1.4 2013/03/21 20:25:12 roberto Exp $ ** Copyright 2007, Lua.org & PUC-Rio (see 'lpeg.html' for license) */ #include "lua.hpp" #include "lpcap.h" #include "lptypes.h" #define captype(cap) ((cap)->kind) #define isclosecap(cap) (captype(cap) == Cclose) #define closeaddr(c) ((c)->s + (c)->siz - ...
#include "../../../../Common/Common/common.h" #include "../../../../Common/Graphic/graphic.h" #include "../../../../Common/Framework/framework.h" using namespace common; #include <opencv2/core/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/calib3d.hpp> #include <ope...
#include "iCubProprioception/CADSuperimposer.h" #include <exception> #include <utility> #include <iCub/ctrl/math.h> #include <yarp/math/Math.h> #include <yarp/os/Bottle.h> #include <yarp/os/LogStream.h> #include <yarp/os/ResourceFinder.h> using namespace yarp::dev; using namespace yarp::math; using namespace yarp::o...
// solves a Laplacian over a cube with mumps #include "vtl_spoints.h" #include "vtlSPoints.h" #include "laplace.h" #include "json.h" // from c_example.c ------ #include <mpi.h> #include <omp.h> #include <dmumps_c.h> // macros s.t. indices match documentation #define ICNTL(I) icntl[(I)-1] #define CNTL(I) cntl[(I)-1] ...
/* * Copyright (c) 2008 - 2009 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and proprietary * rights in and to this software, related documentation and any modifications thereto. * Any use, reproduction, disclosure or distribution of this soft...
/* * Copyright (C) 2015 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...
/* * See header file for a description of this class. * * \author <NAME> - INFN Torino */ #include "DumpDBToFile.h" #include "DTCalibrationMap.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Framework/interface/ESHandle.h" #include "FWCore/Framework/interface/EventSetup.h" #include...
// Copyright (c) 2014-2022 CIYAM Developers // // Distributed under the MIT/X11 software license, please refer to the file license.txt // in the root project directory or http://www.opensource.org/licenses/mit-license.php. #ifdef PRECOMPILE_H # include "precompile.h" #endif #pragma hdrstop #ifndef HAS_PRECOMPILED_ST...
#include "cbase.h" #include "openal.h" #include "openal_mp3sample.h" #include <libmad/mad.h> //ConVar openal_mp3_debug("openal_mp3_debug", "1", 0, "Provides debug information from the ", true, 0, true, 1 ); static struct audio_dither left_dither, right_dither; static const char *MadErrorString(const struct mad_st...
/* * divsufsort.c for libdivsufsort * Copyright (c) 2003-2008 <NAME> 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 * restriction, including without lim...
//===-- PIC16AsmPrinter.cpp - PIC16 LLVM assembly writer ------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <list> using namespace std; #include "stdafx.h" #include "resource.h" #include "ddutil.h" #include "dxutil.h" #include "dsutil.h" #include "sprite.h" #include "sounds.h" #include "scene.h" #include "weapon.h" #include "physicalobject.h" #include "gameevents.h" #include "globaldata.h" #include...
#include <gtest/gtest.h> #define NDEBUG 1 #include <chrono> #include <google/dense_hash_map> #include <iostream> #include <limits> #include <random> #include <string> #include <type_traits> #include <unordered_map> #include <unordered_set> #include "benchmark/benchmark.h" #include "hop_scotch_hash_table.h" #include ...
#define FK_DEF_SIZETYPE #include <FK/VRMLParser.H> #include <FK/Error.H> using namespace std; using namespace FK; fk_VRMLParser::fk_VRMLParser(void) { return; } fk_VRMLParser::~fk_VRMLParser() { return; } bool fk_VRMLParser::ReadVRMLFile(string argFileName, bool argMaterialFlag, bool argSolidFlag) { if...
#include "ofApp.h" #include "2552software.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetWindowTitle("Story Teller"); //Software2552::SoundIn::setup();// move to timeline or scene //Software2552::SoundOut::setup();// move to timeline or scene ofSetLogLevel(O...
/* * Controller_MidLevel_SpeedLoop.cpp * * Created on: Nov 20, 2012 * Author: jespestana */ #include "Controller_MidLevel_SpeedLoop.h" Controller_MidLevel_SpeedLoop::Controller_MidLevel_SpeedLoop(int idDrone, const std::string &stackPath_in) /* throw(std::runtime_error) */ : started(false) { std::cout...
#include "ViconSkeleton.h" #include <iostream> #include <fstream> #include "Avatar.h" #include "Util.h" namespace { inline Eigen::Quaterniond eulerToQuat(double rx, double ry, double rz) { static constexpr double D2R = M_PI / 180.0; return Eigen::AngleAxisd(rz * D2R, Eigen::Vector3d::UnitZ()) * ...
/* This is part of the OTF library. Copyright by ZIH, TU Dresden 2005-2012. Authors: <NAME>, <NAME>, <NAME> */ #include <cassert> #include <iostream> #include <sstream> #include <stdio.h> #include <string.h> #include <assert.h> #include <math.h> #include "otf.h" #include "otfaux.h" #include "collect_dispersion.h" ...
//Remove optimization /Og else wavelab crashes!!! #include "mdaLeslie.h" #include <stdlib.h> #include <math.h> #include <float.h> AudioEffect *createEffectInstance(audioMasterCallback audioMaster) { return new mdaLeslie(audioMaster); } mdaLeslieProgram::mdaLeslieProgram() { param[0] = 0.66f; param[1] = 0.50f;...
/* * Copyright (C) 2021, unclearness * All rights reserved. */ #include <fstream> #include <iostream> #include <numeric> #include <vector> #include "aff/core.h" #include "src/dlib.h" #include "opencv2/imgcodecs.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/photo.hpp" #include "opencv2/shape.hpp" namespac...
// Copyright (c) 2019 PaddlePaddle Authors. 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...
/* <NAME> <NAME> cs1253 Sec 1 cs125326 Specify the requirement: Calculate Christmas bonuses, total of bonuses, average of bonuses, highest and lowest bonuses for Beta Systems Development, Inc. Data Analysis: Name Type Scope Content Variables: ID integer main Employee ID ...
#include "pass_dfg.hpp" #include <string> Index_ID Pass_dfg::resolve_constant(LGraph *g, CF2DF_State *state, const std::string& str) { //arguments -> local variable bool is_signed; bool is_in32b; bool is_explicit_signed; bool has_bool_dc; bool is_pure_dc; uint32_t val; uint32_t explicit_bits; size_t...
#include "BrainVesselCPR_centerline.h" #define INF 1E9 using namespace std; //reconstruct greater function for priority queue bool operator > (const Node &n1, const Node &n2) { return n1.priority > n2.priority; } //cost function for A* search algorithm double edgeCost(int a_intensity, int b_intensity) { re...
/*=============================================================================| | PROJECT SNAP7 1.3.0 | |==============================================================================| | Copyright (C) 2013, 2015 <NAME> | | Al...
#include "globals.h" #include "BigIntegerLibrary.hh" #include "types.h" #include "node.h" #include "directions_frameshift.h" // Prototypes // int countMarkedNodes(Pattern arr, int size, int min); void increment(Pattern pattern, int size, int idx = 0); void decrement(Pattern pattern, int size, ...
/* $Id$ */ /* * This file is part of OpenTTD. * OpenTTD 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, version 2. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
#include "Header.h" #pragma region Declaration static int ChoiceMode(); static int Interactive(int mode); static bool ShopMenuCreate(); static int ShopFind(); static int ShopChoice(); static int ShopCreate(); static int DeleteAllShop(); static int Add(); static int ShowAll(); static int Search(); static size_t ...
/* * Vegetation_Env.cpp * * Purpose: Calculating radiation, water processes of canopy * * History: * June 28, 2011, by <NAME>: * (1) Recoding based on DOS-TEM's code; * * Important: * (1) Parameters are read from 'CohortLookup.cpp', and set to * 'envpar' (struct:: vegpar_env) * *...
#include <vector> #include <math.h> #include "Colors/Colors.h" #include "Display/Display.h" #include "Input/Input.h" #include "Vector/Vector.h" #include "Mesh/Mesh.h" #include "upng/upng.h" #include "Matrix/Matrix.h" #include "Light/Light.h" #include "Camera/Camera.h" #include "Clipping/Clipping.h" #define MAX_TRIANGL...
#include "../api/one_wire.h" #include <cmath> #include <cstdio> #include <cstdlib> #include <cstring> #include <vector> #ifdef MOCK_PICO_PI #include "../test/pico_pi_mocks.h" #else #include "hardware/gpio.h" #endif std::vector<rom_address_t> found_addresses; One_wire::One_wire(uint data_pin, uint power_pin, bool...
/* Copyright (c) 2015, Intel Corporation Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaime...
/* ----------------------------------------------------------------------------- Copyright (c) 2006 <NAME> <EMAIL> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the ...
/*@file LaneDetector.cpp *@author <NAME> *@brief Definition of all the function that form part of the LaneDetector class. *@brief The class will take RGB images as inputs and will output the same RGB image but *@brief with the plot of the detected lanes and the turn prediction. */ #include <string> #include <vector> #i...
// Copyright (c) 2020-2021 AVME Developers // Distributed under the MIT/X11 software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php. #include <qmlwrap/QmlSystem.h> qreal QmlSystem::getQRCodeSize(QString address) { qreal width = 0; QRcode *qrcode = QRcode_encode...
// Method for converting transfer function to system of first order differential equations for evaluation numerically is in Ogata, 4th ed, page 78. // Use Mathematica StateSpaceModel instead of Ogata as basis for conversion of TF to State Space. // Step response achieved by setting u(t) = 1, in derivative term, see MM...
/* ApproxMC Copyright (c) 2009-2018, <NAME>. All rights reserved. Copyright (c) 2015, <NAME>, <NAME>, <NAME>, <NAME>, <NAME> Copyright (c) 2014, <NAME>, <NAME>, <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
#include "tanks.h" #include "stb.h" #include "imgui.h" #include "game_rendering.h" #include "obj_file.h" #include "platform.cpp" #include "opengl_renderer.cpp" #include "obj_file.cpp" // @CRT @Dependency #include <math.h> #include <time.h> // All globals: Platform* gPlatform = nullptr; Game* gGame =...
#include <string> #include <GL/glut.h> // GLUT, includes glu.h and gl.h #include <math.h> // Needed for sin, cos #include <fstream> #include <iostream> #include <stdlib.h> #include "parser.h" #define PI 3.14159265f int n=0; //total vehicles int Total_Time; int runningTime; int vehicles_on_road;...
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "gfxPlatformMac.h" #includ...
#include "Mesh.h" #include <Graphics/opengl.h> #include <Graphics/GLHelper.h> #include <Graphics/GLTexture2D.h> #include <glm/glm.hpp> #include <glm/gtx/string_cast.hpp> #include <iostream> #include <string> #include <vector> #include <algorithm> #include <cassert> #include <cmath> #include <chrono> #include <limits>...
#include "board.h" #include "cell.h" #include "devices.h" #include "emit.h" #include "io_functions.h" #include "options.h" #include <algorithm> #include <cstdio> #include <utility> BoardCall::BoardCall(Board *board, uint16_t x, uint16_t y): board(board), x(x), y(y){} // check if a uint16_t represents a marble or an ...
// Copyright (c) 2009 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_frame/chrome_frame_activex.h" #include <wininet.h> #include <algorithm> #include "base/basictypes.h" #include "base/command_line.h...
#include "sd_l0.h" #include "sd_l1.h" #include "sd_l2.h" // #include "dbg_uart.h" #include <stdio.h> uint8_t *SD_L2_workBuf; SD_L2_FAT_t SD_L2_FAT; // This both will share same buffer -> NextCluster not public availible! uint8_t *SD_L2_FatCache; uint32_t SD_L2_LastFatSect; uint8_t SD_L2_NextCl...
/* ------------------------------------------------------------------------------- This file is part of OgreKit. http://gamekit.googlecode.com/ Copyright (c) 2006-2010 <NAME>. Contributor(s): none yet. ------------------------------------------------------------------------------- This software is p...
/* * Copyright (c) 2006, <NAME> and WhitSoft Development * 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, * ...
#include "assembly.h" ofstream assout("Output-assembly.txt", ios::out); // ! 存储变量在栈中的位置, 用map map<string, map<string, string>> fun2param; map<string, map<string, string>> fun2var; int LFB_id = 0, LFE_id = 0; void debug(string); // // debug信息输出的函数 void getParams(TreeNode* params, string func_name); int genLocVarDecl(...
/******************************Module*Header*******************************\ * Module Name: texture.c * * Texture handling functions * * Copyright (c) 1994 Microsoft Corporation * \**************************************************************************/ #include <stdio.h> #include <string.h> #include <st...
/** * @file offb_main.cpp * @license BSD 3-clause * * @brief ROS node to do offboard control of PX4 through MAVROS. */ #include <boost/algorithm/string.hpp> #include <ros/ros.h> #include <sensor_msgs/Joy.h> #include <geometry_msgs/PoseStamped.h> #include <geometry_msgs/TwistStamped.h> #include <geometry_msgs/Twis...
#include <iostream> #include <algorithm> #include <random> #include <cmath> #include <string> #include <cstring> #include <cstdlib> #include <vector> #include <ctime> #include <set> #include <unordered_set> #include "search_params.h" #include "bloom_filter/bloom_filter.hpp" #include "../IBLT-optimization/iblt.h" #inclu...
#include <LineDetected/LineDetected.h> #include <algorithm> LineDetected::LineDetected() { ErRoR = 65; mX = 0; mY = 0; temp_max = 0; i_max = 0; temp_min = 0; i_min = 0; } LineDetected::~LineDetected() { } Mat LineDetected::ImagePreprocessing(const Mat iframe) { blur(iframe,ifra...
#include <iostream> #include <random> #include <algorithm> #include <string> #include <climits> #include "cost.h" int dur_sum; int dur_sum_long; int n_sum_long; cost::cost() {} cost::~cost() {} void cost::init(prog* orig, int len, const vector<inout_t> &input, double w_e, double w_p, ...
// AUTO GENERATED by vnxcppcodegen #include <vnx/package.hxx> #include <vnx/terminal_event_e.hxx> #include <vnx/vnx.h> namespace vnx { const vnx::Hash64 terminal_event_e::VNX_TYPE_HASH(0x13b5a20b72babf0dull); const vnx::Hash64 terminal_event_e::VNX_CODE_HASH(0x67f63ded9e204ef1ull); vnx::Hash64 terminal_event_e:...
#include "conv2d.h" #include <iostream> #include <Eigen/Core> #include <chrono> // for high_resolution_clock AsynSparseConvolution2D::AsynSparseConvolution2D(int dimension, int nIn, int nOut, int filter_size, bool first_layer, bool use_bias, bool debug) : dimension_(dimension), nIn_(nIn), nOut_(nOut), filter_size_...
#include <unordered_set> #define OLC_PGE_APPLICATION #include "../olcPixelGameEngine.h" #include "../olcPGEX_Graphics3D.h" struct MapCell { bool road; int height; int x, y; }; class CarCrime : public olc::PixelGameEngine { float carAngle = 0; float carX = 0; float carY = 0; bool followCar ...
#include "layernorm_fusion_optimizer.hpp" #include "nnfusion/frontend/util/evaluator.hpp" using namespace nnfusion; using namespace nnfusion::graph; using namespace nnfusion::pass::graph; bool LayerNormFusionOptimizer::create_subgraphs() { /* +---------------------+ | | | v...
#include <strads/include/common.hpp> #include <strads/netdriver/zmq/zmq-common.hpp> #include <strads/netdriver/comm.hpp> #include <strads/ps/strads-ps.hpp> #include <mpi.h> #include <zmq.hpp> #include <string> #include <vector> #include <map> #include <strads/include/child-thread.hpp> //#define PS_SERVER_THREADS (8) D...
/* The OpenTRV project licenses this file to you under the Apache Licence, Version 2.0 (the "Licence"); you may not use this file except in compliance with the Licence. You may obtain a copy of the Licence at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
#include "collider.h" #include "../../engineClass/gameObject.h" #include <imgui.h> #include <drawDebug.h> #if defined(IMGUI_IMPL_OPENGL_LOADER_GL3W) #include <GL/gl3w.h> // Initialize with gl3wInit() #elif defined(IMGUI_IMPL_OPENGL_LOADER_GLEW) #include <GL/glew.h> // Initialize with glewInit() #elif defined(...
#include "bbox.h" #include "boss/deserializer.h" #include "boss/serializer.h" #include "gl_helpers/simple_viewer.h" #include "gl_helpers/opengl_primitives.h" #include "fps_map/local_map.h" #include <QApplication> #include <vector> #include <iostream> #include <sstream> namespace fps_mapper { /** @class class t...
#include "myersDiff.h" #include "tokens.h" TestResults* warnIfNotEmpty (const std::string & student_file, const std::string & expected_file) { std::cout << "in warn if not empty" << std::endl; std::cout << "the file '" << student_file << "'" << std::endl; // the instructor file should be empty assert (expected...
#include "cmesh.h" #include "cmesh_vsgf.h" #include "LiteMath.h" using LiteMath::float4; using LiteMath::float3; using LiteMath::float2; #include <cmath> #include <fstream> #include <unordered_map> namespace cmesh { struct vertex_cache { float3 pos; float3 normal; float4 tangent; float2 u...
///! \file /// Read CP(N) configs from a file and perform measurements /// #include "./latticefields/cp.h" #include "../src/actions/canonical_cpn.h" #include "../src/stat.h" #include "./cpn_measurements_params.h" #include "./gaugegroups/u1.h" #include "io.h" #include <ctime> #include <fstream> #include <iomanip> #incl...
#include <string> #include <vector> #include <random> #include <cmath> #include <unordered_set> #include <algorithm> #include <mutex> #include <functional> #include <cstring> #include <memory> #include <fstream> #include <sstream> #include "index.h" std::mt19937 Index::gen(std::random_device{}()); std::uniform_real_d...
/* MIT License Copyright (c) 2018 WHILL 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, merge, publish, dis...
#include <string.h> #include <stdint.h> #include <stdexcept> #include <iostream> #include <stdio.h> #include <math.h> #include <wiringPiI2C.h> #include <wiringPi.h> #include "bmp280.h" BMP280::BMP280(char * device, int devId) : fd(0), chipId(0), bmp280CalibrationData(0), bmp280RawData(0) { setDevice(device); t...
#include "OdinDataDriver.h" #include <sstream> #include <numeric> #include <algorithm> #include <epicsExport.h> #include <iocsh.h> static const char *driverName = "OdinDataDriver"; /* Constructor for Odin driver; most parameters are simply passed to ADDriver::ADDriver. * After calling the base class constructor th...
/* ------------------------------------------------------------------------ * Created: May 8, 2017 * * Authors: <NAME>, <NAME>, <NAME> * Copyright (c) 2017 <NAME> * See accompanying LICENSE. ------------------------------------------------------------------------- */ /* Copyright 2016-2017 <NAME> This f...
// online2bin/online2-wav-gmm-latgen-faster.cc // Copyright 2014 Johns Hopkins University (author: <NAME>) // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You...
#define _USE_MATH_DEFINES #include <algorithm> #include <array> #include <cmath> #include <iterator> #include <utility> #include <vector> #include "point.hpp" #include "ps2tt.h" using nlohmann::json; using Coeff2 = std::array<Point, 4>; using Coeff1 = std::array<double, 4>; using Segment = std::arra...
/** * Copyright [2019] <NAME> * * This is a XML parser. It defines a sequence of actions associated * with predicates. For each tree in the input XML files, it goes through * the action list. The first action whose predicate function yields true * will be taken. * * The action list is defined in action_list.c...
//! Code counter class methods for the C shell script language. /*! * \file CCshCounter.cpp * * This file contains the code counter class methods for the C shell script language. * This also includes the Tcsh language.*/ #include "CCshCounter.h" /*! * Constructs a CCshCounter object. */ CCshCounter::CCshCounter() { ...
/* * Copyright (c) 2008 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * compli...