text
stringlengths
3.08k
12.5k
#include "imgui/imgui.h" #include "struse\struse.h" #include "Image.h" #include "ToolBar.h" #include "ViceConnect.h" #include "machine.h" #include "C64Colors.h" #include "Config.h" #include "FileDialog.h" ToolBar::ToolBar() : open(true) {} void ToolBar::WriteConfig(UserData& config) { config.AddValue(strref("open"),...
#include <stdexcept> #include "btreePage.h" #include "util.h" BTreePage::BTreePage(int degree, char* bytes) : BTreePage(degree) { parseBinaryData(bytes); } BTreePage::BTreePage(int degree, PageRecord record) : BTreePage(degree) { parentPageNumber = NO_PARENT_PAGE; records.push_back(record); } BTreePage::BTre...
/** * ScriptDev3 is an extension for mangos providing enhanced features for * area triggers, creatures, game objects, instances, items, and spells beyond * the default database scripting in mangos. * * Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/> * Copyright (C) 2014-2016 MaNGOS <https://get...
#include "VL53L0X.hpp" #include <chrono> #include <csignal> #include <exception> #include <iomanip> #include <iostream> #include <unistd.h> // SIGINT (CTRL-C) exit flag and signal handler volatile sig_atomic_t exitFlag = 0; void sigintHandler(int) { exitFlag = 1; } int main() { // Configuration constants // Numbe...
#include <Eigen/Core> #include <iostream> #include <iomanip> #include <string> using Eigen::MatrixXd; using Eigen::VectorXd; void eigs_sym_F77(MatrixXd &M, VectorXd &init_resid, int k, int m, double &time_used, double &prec_err, int &nops); void eigs_gen_F77(MatrixXd &M, VectorXd &init_resid, int k, int m, double &ti...
/** * @file OpticalFlowPCAFlow_.cpp * @brief mex interface for cv::optflow::OpticalFlowPCAFlow * @ingroup optflow * @author Amro * @date 2017 */ #include "mexopencv.hpp" #include "opencv2/optflow.hpp" using namespace std; using namespace cv; using namespace cv::optflow; namespace { // Persistent objects /// Last...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
// C++. #include <cassert> #include <sstream> #include <algorithm> // Qt. #include <QFileDialog> // Infra. #include <QtCommon/Scaling/ScalingManager.h> // Local. #include <RadeonGPUAnalyzerGUI/include/qt/rgIncludeDirectoriesView.h> #include <RadeonGPUAnalyzerGUI/include/rgDefinitions.h> #include <RadeonGPUAnalyzerGU...
#include "World.h" #include<iostream> World::World(const txr_lookup& lookup, int best_lane) : m_txr_inf(lookup) , m_background(&asset::texture().get("road_textures", "png"), sf::Vector2u(20, 20))//size base on the tileset.png , m_best_lane(best_lane) { //render background map(top to bottom) const std::vector<unsig...
// Initial version of midiinterface // Purpose: Read USB midi device and publish messages on topics #include <iostream> #include <cstdlib> #include "RtMidi.h" #include "ros/ros.h" #include <boost/thread.hpp> #include "midiinterface/MidiControlMessage.h" #include "midiinterface/MidiProgramChangeMessage.h" using std:...
/** * Copyright 2009 <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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
/** * @file llremoteparcelrequest.cpp * @author <NAME> * @brief Get information about a parcel you aren't standing in to display * landmark/teleport information. * * $LicenseInfo:firstyear=2007&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library ...
/**Kattis - animal * This was a difficult but worthy problem to solve. * So here we are trying to compare for common different groups ie same subset of animals. * However notice that compared to regular string matching, here there are many brackets and * the order within each set should not be considered, so we can...
/* smoother_uni.cpp Runs the univariate Kalman smoother with the exact initialization. Requires that the filter has been previously run. To compile in MATLAB, see the make.m script. This function uses the matrix library armadillo: http://arma.sourceforge.net/ The utility Matlab2cpp 0.5 was used in the initial stag...
/* // 9817024 Davis // UDP Server */ #include <arpa/inet.h> #include <errno.h> #include <netdb.h> #include <netinet/in.h> #include <sys/socket.h> #include <sys/time.h> #include <sys/types.h> #include <sys/wait.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include ...
// Copyright © 2013 the Search Authors under the MIT license. See AUTHORS for the list of authors. #pragma once #include <vector> #include <cassert> #include <cstdio> #include <string> // AnytimeProfile stores the estimated profile of // an anytime algorithm, e.g., the probability of // the algorithm finding a soluti...
/***************************************************************************** * * $Id$ * * Copyright (C) 2006-2009 <NAME>, Ingenieurgemeinschaft IgH * * This file is part of the IgH EtherCAT Master. * * The IgH EtherCAT Master is free software; you can redistribute it and/or * modify it under the terms ...
/******************************************************************************* * Copyright (c) 2016, Hitachi-LG Data Storage * 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 "shared.h" using namespace render::low_level; using namespace render::low_level::dx11; /* Константы */ const size_t CHUNK_RESERVE_SIZE = 8; //резервируемое количество блоков /* Предикат сравнения двух блоков */ inline bool ShaderBuffersSynchronizer::Chunk::operator < (const Chunk& a...
#include <memory> #include <iostream> #include <fstream> #include <iomanip> #include "DQM/EcalPreshowerMonitorClient/interface/ESSummaryClient.h" using namespace std; ESSummaryClient::ESSummaryClient(const edm::ParameterSet& ps) : ESClient(ps), meReportSummary_(nullptr), meReportSummaryMap_(nullptr) { for(un...
#include <stdio.h> #include "Python.h" #include <vector> #include <fstream> #include <sstream> #include <exception> #include <random> #include "types.h" #include "sample.h" #include "cell.h" #include "rand.h" PyObject *vectorToList_Float(const std::vector<REAL> &data) { PyObject* listObj = PyList_New( data.size() )...
/* * Copyright (c) 2014, Shogun Toolbox Foundation * 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 copyright notice, * this list o...
/* ---------------------------------------------------------------------------- Author: <NAME> Email: <EMAIL> Web: http://www.cse.psu.edu/~cklee Date: Nov, 2008 Copyright(c) <NAME> 2008 This program is for non-commerical use only. This program performs (k)NN search based on distance ...
#include "Config.h" #include "Logging.h" #include <cmath> using namespace dpi; //TEST int Config::HELLO_PORT = 4001; //DPI string Config::DPI_REGISTRY_SERVER = "10.116.60.16"; // string Config::DPI_REGISTRY_SERVER = "127.0.0.1"; uint32_t Config::DPI_REGISTRY_PORT = 5300; uint32_t Config::DPI_NODE_PORT = 5400; /**...
#include "hardware-test.hpp" #include "graphics/color.hpp" using namespace blit; void init() { set_screen_mode(screen_mode::hires); } void render(uint32_t time) { fb.pen(rgba(0x4e, 0xb3, 0xf7)); fb.clear(); bool button_a = blit::buttons & blit::button::A; bool button_b = blit::buttons & blit::bu...
// -*- C++ -*- // // Package: HGCalCellUVTester // Class: HGCalCellUVTester // /**\class HGCalCellUVTester HGCalCellUVTester.cc test/HGCalCellUVTester.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAME>, <NAME> // Created: Mon 2...
/////////////////////////////////////////////////////////////////////////////// // Filename: SimpleSprite.cpp // Privides a very simple DSOUND wrapper to load and play wav files. /////////////////////////////////////////////////////////////////////////////// //-------------------------------------------------------...
/** * @file * @author [danangharissetiawan](https://github.com/danangharissetiawan) * @brief Implementation of [Trie](https://en.wikipedia.org/wiki/Trie) data * structure for English alphabets in small characters. * @note the function ::data_structure::trie::deleteString might be erroneous * @see trie_modern.cpp ...
#include "experiments/util/prune_util.hpp" #include "src/dtl/bitmap/diff/diff.hpp" #include <dtl/bitmap/dynamic_roaring_bitmap.hpp> #include "src/dtl/bitmap/diff/merge.hpp" /* Experiment: compare prune/diff lookup times */ void run_diff_benchmark(benchmark_task task, std::vector<std::size_t> update_cps, std::ofstream...
#include "icsneo/communication/packet/iso9141packet.h" #include "icsneo/communication/packetizer.h" #include <algorithm> using namespace icsneo; bool HardwareISO9141Packet::EncodeFromMessage(const ISO9141Message& message, std::vector<uint8_t>& bytestream, const device_eventhandler_t& report, const Packetizer& packet...
#include "stdio.h" #define maxn 50003 #define F(x) ((x)/3+((x)%3==1?0:tb)) #define G(x) ((x)<tb?(x)*3+1:((x)-tb)*3+2) int wa[maxn],wb[maxn],wv[maxn],ws[maxn]; int c0(int *r,int a,int b) {return r[a]==r[b]&&r[a+1]==r[b+1]&&r[a+2]==r[b+2];} int c12(int k,int *r,int a,int b) {if(k==2) return r[a]<r[b]||r[a]==r[b...
#include <lxgui/lxgui.hpp> #include <lxgui/gui_event.hpp> #include <lxgui/gui_out.hpp> #include <lxgui/input.hpp> #if defined(WIN32) #include <windows.h> #if defined(MSVC) #pragma comment(linker, "/entry:mainCRTStartup") #endif #endif #include <thread> #include <iostream> #include "examples_commo...
# include <Siv3D.hpp> // OpenSiv3D v0.4.3 # include <emscripten.h> struct EyeState { bool hasEye = RandomBool(0.33); double eyeSclae = Random(0.8, 1.2); double targetEyeAngle = Random(0_deg, 360_deg); double currentEyeAngle = targetEyeAngle; void update() { if (RandomBool(0.02)) { targetEyeAngle += Rando...
#include "gl_core_3_2.h" #include "SDL.h" #include "SDL_opengl.h" #include <glm/gtx/transform.hpp> #include "common.h" #include "framebuffer.h" #include "quad.h" #include "texture2d.h" #include "time.h" #include "loadshaders_3_2.h" #include <cstdio> #include <cstdlib> #include <iostream> namespace { const char kVe...
#include <cassert> #include <chrono> #include <cstdio> #include <fstream> #include <string> #include <libsnark/prover_reference_include/prover_reference_functions.hpp> using namespace std::chrono; using namespace std; static inline auto now() -> decltype(std::chrono::high_resolution_clock::now()) { return std::...
// TacomaLCD.cpp : Functions for LCD display // #include "stdafx.h" #include "TacomaSurface.h" #include "MixParam.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif // Use MAYBE_TRACE() for items we'd like to switch off when not actively // workin...
#include <cstdlib> #include "raylib.h" #include "mruby.h" #include "mruby/array.h" #include "mruby/data.h" #include "mruby/class.h" #include "mruby/compile.h" #include "mruby_integration/helpers.hpp" #include "mruby_integration/struct_types.hpp" #include "mruby_integration/models/colour.hpp" struct RClass *Image_clas...
/* * Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient> * * 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...
//import libraries #include <stdlib.h> #include <string> #include <vector> #include <time.h> #include <fstream> #include <iostream> #include <algorithm> #include "fraction_19ahb.h" using namespace std; //constructors Fraction::Fraction() : num(0), denom(1) {} Fraction::Fraction(int i) : num(i), denom(...
/**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage ** Licensees holding valid commercial Qt...
#include "input.h" #include <cstring> // std::memset #include <GL/glew.h> #include <GLFW/glfw3.h> #include <thomas.h> #include <gui/gui.h> #include <gui/element.h> #include <gui/window.h> #include "internal.h" using namespace thomas; using namespace thomas::input; mouse::MouseState m; keyboard::KeyboardState k; ...
#include <iostream> #include <algorithm> #include "../../include/utils/Sampler.h" Sampler::Sampler(StorageBackend* backend, // NOLINT(cert-msc32-c,cert-msc51-cpp) int n, int batch_size, int epochs, int distr_scheme, bool drop_last_bat...
/* * G.729 bit format muxer and demuxer * Copyright (c) 2007-2008 <NAME> * * This file is part of FFmpeg. * * FFmpeg 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 * version 2.1 of the ...
// This file is made available under Elastic License 2.0. // This file is based on code available under the Apache license here: // https://github.com/apache/incubator-doris/blob/master/be/test/runtime/user_function_cache_test.cpp // Licensed to the Apache Software Foundation (ASF) under one // or more contributor l...
// // Project for course Computer Graphics (PGR) // Faculty of Information Technology, Brno University of Technology // // Authors: <NAME>, <EMAIL> // <NAME>, <EMAIL> // <NAME>, <EMAIL> // Date: December 2014 // #include "drag_and_drop.h" #include "collision.h" // Globals // global variable with th...
/* * * * * * * * * * * * * * * * * * * * * @author: <NAME> * @date: 2021-03-26 21:59:57 * @description: * * * @notes: * g++ -fsanitize=address -ftrapv * * * * * * * * * * * * * * * * * */ #include <bits/stdc++.h> #define F first #define S second #define MP make_pair #define TIM...
#include "tkdCmdParser.h" #include "graphCommon.h" #include "itkImageRegionConstIteratorWithIndex.h" #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "itkImage.h" /** * 14-09-2010. * Get voxel from central mask and compute for all voxels within mask the relative x,y,z coordinates */ namesp...
#include "typedefs.h" #include <vector> #include <string> #include <sstream> #include <pcl/console/parse.h> #include <pcl/io/pcd_io.h> #include <pcl/kdtree/kdtree_flann.h> #include <pcl/registration/transforms.h> #include <pcl/visualization/pcl_visualizer.h> /* A few functions to help load up the points */ PointCloud...
#include "costanti.hpp" #include "game_printer.h" #include "Scoreboard.h" #include "ExternalFunctions.h" #include "Game.h" #include "Player.h" #include "Enemy.h" #include "Map.h" #include "Bullet.h" #include "bonus.h" /* Author: <NAME> Parameters: lista -> lista contenente gli elementi salvati nella s...
// This header is all you need to do the C++ portions of this // tutorial #include "dgl/aten/array_ops.h" #include <torchdglgraph/torch_dgl_graph.h> #include <c10/util/ArrayRef.h> #include <c10/util/intrusive_ptr.h> #include <torch/custom_class.h> #include <ATen/core/function_schema.h> #include <ATen/core/op_regist...
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * Gearmand client and server library. * * Copyright (C) 2011 Data Differential, http://datadifferential.com/ * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the fo...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and <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 ...
// // Created by cheesema on 21.01.18. // ////////////////////////////////////////////////////// /// /// <NAME> 2018 const char* usage = R"( Example calculating the gradient, and gradient magnitude of the APR. Produces *_paraview.h5 file and *_paraview.xmf and tiff images of the gradient To use load the xmf file ...
#include "ros/ros.h" #include <ros/package.h> #include "ros/time.h" #include "origarm_ros/States.h" #include <sensor_msgs/JointState.h> #include "myGlobalData.h" #include "string.h" #include <urdf/model.h> #include <iostream> #include <vector> #include "stdio.h" std::string urdf_path_ab; sensor_msgs::JointState joint...
#include "ms_rect.hpp" Nan::Persistent<v8::FunctionTemplate> MSRect::constructor; void MSRect::Initialize(v8::Local<v8::Object> target) { v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(MSRect::New); tpl->InstanceTemplate()->SetInternalFieldCount(1); tpl->SetClassName(Nan::New("Rect").ToLoc...
#include "depthwise.h" // add helper data struct and functions here static int prerun(struct node_ops* node_ops, struct exec_node* exec_node, struct exec_graph* exec_graph) { return 0; } static int run(struct node_ops* node_ops, struct exec_node* exec_node, struct exec_graph* exec_graph) { bool in...
//----------------------------------------------------------------------------// // // // vox-animation is hosted at http://github.com/guillaumeblanc/vox-animation // // and distributed under the MIT License (MIT). ...
//======================================================================== // // FontInfo.cc // // Copyright (C) 2005, 2006 <NAME> <<EMAIL>> // Copyright (C) 2005-2008, 2010, 2017, 2018 <NAME> <<EMAIL>> // Copyright (C) 2005 <NAME> <<EMAIL>> // Copyright (C) 2006 <NAME> <<EMAIL>> // Copyright (C) 2009 <NAME> <<EMAIL>> ...
#include <array> #include <iostream> #include <math.h> #include <cmath> #include "AdaptAbsSafe.hh" #define _USE_MATH_DEFINES using namespace std; using namespace scots; //using namespace helper; /* state space dim */ #define dimX 2 #define dimU 1 /* disturbance */ const double w[2] = {0, 0}; /* angular speed of ...
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/autofill/autofill_metrics.h" #include "base/logging.h" #include "base/metrics/histogram.h" #include "chrome/browser/autofill...
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that reco...
// COCOA class implementation file // Id: Measurement.C // CAT: Model // --------------------------------------------------------------------------- // History: v1.0 // Authors: // <NAME> #include "Alignment/CocoaModel/interface/MeasurementSensor2D.h" #include "Alignment/CocoaModel/interface/LightRay.h" ...
/* * A UART driver for the STM32F4. Send-only for now. * * Startup environment: * - KR15: system gate * - KR14: UART client gate * - KR13: UART interrupt gate * - KR12: interrupt * - KR11: APB memory window * * Protocol: * - Selector 1: send character from low 8 bits of D0. */ #include <cstdint> #include...
#include "2019/day24/cpp/include/planet.hpp" #include <math.h> #include <algorithm> #include "utils/cpp/include/utils.hpp" Planet::Planet(std::string file_name, bool recursive) : m_empty_grid(), m_grid(), m_h(), m_w(), m_recursive(recursive), m_neighbors_map(), m_map_config()...
#include "MyWindow.h" #include "dynamics/BodyNodeDynamics.h" #include "kinematics/Dof.h" #include "utils/UtilsMath.h" #include "utils/Timer.h" #include "yui/GLFuncs.h" #include "Controller.h" using namespace dynamics; void MyWindow::initDyn() { mDofs.resize(mSkels.size()); mDofVels.resize(mSkels.size()); ...
#include <iostream> #include <string> #include <fstream> #include <sstream> #include <vector> #include <algorithm> #include <chrono> #include <functional> #include <cmath> #include <map> #include <tuple> #include <cstdlib> #include <cstdio> #include <limits> #include "MMConverter.h" #include "DisjSets.h" using namespa...
#include "DiscretePointsGridArrayManipulator.h" void DiscretePointsGridArrayManipulator::SetInterpolationType(int intpolType) { assert(intpolType >= 0 && intpolType <= 1); interpolationType = intpolType; } void DiscretePointsGridArrayManipulator::SetSameCellTreatmentType(int treatmentType) { assert(tr...
#include <iostream> #include <fstream> #include <cstring> #include <cstdlib> #include <set> #include <bitset> #define BUG '#' #define MTY '.' using namespace std; ifstream fin("input.txt"); typedef pair<int, int> coord; const coord directions[] = { {-1,0}, //0 up {1, 0}, //1 down {0, -1}, //2 left {0, 1} //...
// Copyright 2014 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include "packager/media/base/key_source.h" #include "packager/base/strings/string_number_convers...
#include "scene/components/shape/box.h" Box::Box(Point3 origin, Vec3 size) : Shape(origin) { this->size = size; Point3 x = Point3(size.x(), 0, 0); Point3 y = Point3(0, size.y(), 0); Point3 z = Point3(0, 0, size.z()); this->o = origin; this->end = o + x + y + z; // Create box Triangle* t...
//------------------------------------------------------------------------------ // Paclone.cc //------------------------------------------------------------------------------ #include "Pre.h" #include "Core/Main.h" #include "Gfx/Gfx.h" #include "Input/Input.h" #include "Dbg/Dbg.h" #include "Sound/Sound.h" #i...
#include "display.h" #include "config.h" GxIO_SPI io1(SPI, PIN_DISP_CS, PIN_DISP_DC, -1); // CS, DC, RST(disabled) GxEPD_Class display1(io1, -1, PIN_DISP_BUSY); // RST(disabled), BUSY void drawMessage(String msg) { uint16_t bg = GxEPD_BLACK; uint16_t fg = GxEPD_WHITE; int16_t x = DISP_HEIGHT / 2; i...
/* * Sha256.cpp * * Created on: Dec 3, 2016 * Author: victor */ #include "Sha256.h" #include <string> #include <vector> #include "../../binary/BinaryString.h" #include "../../binary/BinaryWord.h" #include "../../binary/Endianness.h" #include "../../binary/tools/Utils.h" #include "Sha1.h" #include <iostream...
// ********************************************************************** // // Copyright (c) 2002-2003 // StarMiddleware.net // www.StarMiddleware.net // // All Rights Reserved // // Author: <NAME> <EMAIL> // ********************************************************************** // Version: 1.0.0 #include <OB/CO...
#include "src/weighterm_data_sqlite.h" #include <sqlite3.h> #include <iomanip> #include <map> #include <string> #include <vector> #include "spdlog/spdlog.h" #include "src/data_exception.h" DataResultCode WeightermDataSqlite::InitializeDatabase() { auto result_code = sqlite3_open("weighterm.db", &db_); if (resul...
#include <HomeAssistantDiscoveryClient.h> #include <MiLightCommands.h> HomeAssistantDiscoveryClient::HomeAssistantDiscoveryClient(Settings& settings, MqttClient* mqttClient) : settings(settings) , mqttClient(mqttClient) { } void HomeAssistantDiscoveryClient::sendDiscoverableDevices(const std::map<String, BulbId>&...
#include "obj-object.h" #include <zukou.h> #include <cstring> #include <glm/gtx/string_cast.hpp> #include <iostream> static std::string vertex_shader( "#version 410\n" "\n" "uniform mat4 model;\n" "uniform mat4 zModel;\n" "uniform mat4 zVP;\n" "layout(location = 0) in vec4 localPosition;\n" ...
// Copyright 2013-2020 Lawrence Livermore National Security, LLC and other // HavoqGT Project Developers. See the top-level LICENSE file for details. // // SPDX-License-Identifier: MIT #include <boost/bind.hpp> #include <boost/function.hpp> #include <havoqgt/detail/hash.hpp> #include <havoqgt/gen_preferential_attachme...
#include "modules/test/test_utils.h" #include "modules/mapred/map_reduce_task.h" #include "modules/bio_format/read_qual.h" #include "modules/bio_format/fastq.h" #include "modules/io/file_io.h" #include "modules/io/zip.h" #include "gtest/gtest.h" #include "modules/mapred/task_mgr.h" #include "modules/io/config.h" #inclu...
// // Created by 张程易 on 25/11/2017. // #include "Terrain.h" const int size = 1024; float nlz(float x){ return x / 10 - 15; } Terrain::Terrain(const std::string &heightMapPath, const std::string &texturePath, const std::vector<std::string> &textureNames) { heightMap = TextureManager::loadHeig...
/** * @file bares.cpp * @brief Implementação do programa BARES (Basic ARithmetic Expression Evaluator based on Stacks) para avaliar e calcular expressões aritméticas * * @author <NAME> * @since 04/11/2017 * @date 04/11/2017 * */ #include <iostream> #include <iomanip> #include <vector> #include "parser.h" #incl...
#include <iostream> #include <fstream> #include <sstream> #include <cstring> #include <string> #include <stdio.h> #include <map> #include <vector> #include <sys/time.h> using namespace std; struct TwitterInteraction { int32_t from; int32_t to; bool follow; int16_t retweets; time_t twtime; }; struct Header { ...
#include <string> #include <vector> #include <map> #include <cassert> #include <cstring> #include <cstdio> using namespace std; struct pnode { char ch; // char float p; // frequency }; //sort in decreasing order static int cmp( const void *elem1, const void *elem2 ) { const pnode a = *(pnode*)elem1; const pno...
#include "crc32.h" #include "ether.h" #include "iolib.h" #include "flash.h" #include "config.h" #include "flashmap.h" #include <string.h> #include <stdio.h> #define UBI_HASH 0x23494255 #define UBI_BANG 0x21494255 #define UBI_NON_INDEX 0x7fc1555b #define UBI_INDEX_END 0x889bc4d4 #define UBI_DATA_END 0xc8069395 sta...
// // StructuredGridG3D.cpp // AxiSEM3D // // Created by <NAME> on 4/15/20. // Copyright © 2020 <NAME>. All rights reserved. // // 3D geometric models based on structured grid #include "StructuredGridG3D.hpp" // constructor StructuredGridG3D:: StructuredGridG3D(const std::string &modelName, const std::string &f...
#include <iostream> #include <string> #include <fstream> using namespace std; enum StudentType {BACHELOR, MASTER, PHD}; /* Disclaimer: we have a class without dynamic fields */ class NameException { string description = "" ; int errCode = 0; public: NameException(string description, int errCode) { this->descr...
/* * Copyright (c) 2016 maldicion069 * * Authors: <NAME> <<EMAIL>> * * This file is part of MonkeyBrushPlusPlus * <https://github.com/maldicion069/monkeybrushplusplus> * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License version ...
/****************************************************************************** * Author: <NAME> * * Contact: <EMAIL> * * License: Copyright (c) 2013 <NAME>, ANU. All rights reserved. * * ...
#include <opencv2/core/utility.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/objdetect.hpp> #include <opencv2/highgui.hpp> #include <opencv2/softcascade.hpp> #include <iostream> #include <vector> #include <string> #include <fstream> void filter_rects(const std::vector<cv::Rect>& candidates, std::vector<cv::Re...
/* * MIT License * * Copyright (c) 2018 insa.4if.hexanome_kalate * * 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 us...
/** * @file utils.cpp * @author vss2sn * @brief Contains common/commonly used funtions and classes */ #include <iomanip> // TODO(vss): replace setw #include <iostream> #include <random> #include "utils/utils.hpp" // constants constexpr int spacing_for_grid = 10; Node::Node(const int x, const int y, const dou...
/* Copyright (c) 2007 <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, distr...
#include <glad/glad.h> #include <glm/glm.hpp> #include <GLFW/glfw3.h> #include "geometry.h" #include <iostream> #include <cmath> void makeGeometry(unsigned int& VBO, unsigned int& VAO, unsigned int& EBO) { //- Vertex coordinates float vertices[] = { // positions // texture coords 0....
#include <ros/ros.h> #include <accel_decel/param.h> #include <accel_decel/result.h> #include <math.h> ros::Publisher pub; accel_decel::result r_msg; ros::Time current_time, last_time; float Vs = 0.0f; float Vmax = 0.0f; float Ve = 0.0f; float Amax = 0.0f; float Xall = 0.0f; float t = 0.0f; float t1 = 0.0f; float X1 ...
#include "JSONGUIInputLongWidget.h" #include "ui_JSONGUIInputLongWidget.h" JSONGUIInputLongWidget::JSONGUIInputLongWidget(const JGMInputRef & inRef, JSONScrollWidget * inScrollWidget, QWidget *parent) : JSONGUIInputWidget(inRef, inScrollWidget, parent), ui(new Ui::JSONGUIInputLong) { ui->setupUi(this); if (_i...
// SPDX-FileCopyrightText: Copyright 2020-present Open Networking Foundation. // SPDX-License-Identifier: Apache-2.0 #include <CRC.h> #include <IPv4Layer.h> #include <IPv6Layer.h> #include <Packet.h> #include <PcapFileDevice.h> #include <RawPacket.h> #include <TcpLayer.h> #include <UdpLayer.h> #include <gflags/gflags.h...
//===------------------------------------------------------------*- 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 // //===-------------------------------...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2015-2019 The Bitcoin Unlimited developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/client.h" #include "ch...
#include <iostream> #include <random> #include "tools.h" /// Constructor Tools::Tools() {} /// Destructor Tools::~Tools() {} double Tools::noise( double stddev, long long seedNum) { std::mt19937::result_type seed = seedNum; auto dist = std::bind(std::normal_distribution<double>{0, stddev}, std::mt19937...
#pragma once #define T_ATLAS_0 32769 #define T_ATLAS_1 32770 #define T_ATLAS_2 32771 #define T_ATLAS_3 32772 #define T_ATLAS_4 32773 #define T_ATLAS_5 32774 #define T_ATLAS_6 32775 #define I_EVIL_SHIP_1 1 #define I_EVIL_SHIP_2 ...