text
stringlengths
3.08k
22k
/* * Copyright [2021] JD.com, 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 or agreed to in wri...
#include "mainWindow.h" #include "piano.h" #include "solfege.h" #include "pianoSynth.h" #include "switcher.h" #include <QMdiArea> #include <QMdiSubWindow> #include <QAction> #include <QMenu> #include <QMenuBar> #include <QIcon> #include <QFile> #include <QDataStream> #include "framedSolfege.h" #include <Q...
/* * Copyright (c) 2015-2016 <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 Software without restriction, including without limitation the rights * to use, copy, modify...
#include "storage/trie/supergenius_trie/supergenius_trie_cursor.hpp" #include "base/buffer_back_insert_iterator.hpp" #include "storage/trie/serialization/supergenius_codec.hpp" OUTCOME_CPP_DEFINE_CATEGORY_3(sgns::storage::trie, SuperGeniusTrieCursor::Error, e) ...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
#include "ImgProcROIFeature.h" #include "include/NFIQException.h" #include "include/Timer.hpp" #include <sstream> using namespace NFIQ; using namespace cv; ImgProcROIFeature::~ImgProcROIFeature() { } std::list<NFIQ::QualityFeatureResult> ImgProcROIFeature::computeFeatureData( const NFIQ::FingerprintImageData & fi...
// <NAME> // When attached to a solution, the Improvement Harness // keeps track of the fitness effects of flipping bits // and allows for partial solution evaluation. #include "ImprovementHarness.h" using namespace std; ImprovementHarness::ImprovementHarness(shared_ptr<GrayBox> evaluator_, ...
/* * See COPYING file distributed along with the psignifit package for * the copyright and license terms */ #include "bootstrap.h" #include "getstart.h" #include "rng.h" #ifdef DEBUG_BOOTSTRAP #include <iostream> #endif void determineBCa ( const std::vector<double>& l_LF, const std::vector<double>& u_i, doub...
/* * Copyright 2019 Autoware Foundation * * 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 ...
/* * fam_spmv.cpp * Copyright (c) 2019 Hewlett Packard Enterprise Development, LP. 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 copyr...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2012, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
#include "portaudio.hpp" #include "helper.hpp" #include "units.hpp" #include "glutview.hpp" #include "asio_network.hpp" #include "daisharin.hpp" #include "error.hpp" #include "fakefilter.hpp" #include <boost/algorithm/string.hpp> #include <iostream> #include <unordered_map> class ReverbFakeFilter : public FakeFilter {...
#define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #include <cmath> struct rgba8 { unsigned char r, g, b, a; rgba8() { } rgba8(unsigned char rr, unsigned char gg, unsigned char bb, unsigned char aa) : r(rr),g(gg),b(bb),a(aa) { } }; struct vec3 { float x, y, z; v...
// license:GPL-2.0+ // copyright-holders:<NAME>,<NAME> /*************************************************************************** kc.c Functions to emulate the video hardware of the kc85/4,kc85/3 ***************************************************************************/ #include "emu.h" #include "includes/k...
/* OpenSceneGraph example, osgstereomatch. * * 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, pu...
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #include <fstream> #include <memory> #include <vector> #include <OpenColorIO/OpenColorIO.h> namespace OCIO = OCIO_NAMESPACE; #include "UnitTestMain.h" #include "UnitTestOSL.h" #include <OSL/oslcomp.h> namespace { clas...
/* * main.cpp * * Created on: 2018/01/02 * Author: yoneken */ #include "stm32f3xx_hal.h" #include "stm32f3xx_hal_spi.h" #include "mpu9250.h" #include <mainpp.h> #include <queue> #include <memory> #include <ros.h> #include <std_msgs/String.h> #include <sensor_msgs/Imu.h> extern SPI_HandleTypeDef hspi1; exte...
/** * * Author: <NAME> * Homepage: https://github.com/gabrielclavero/gc-acm-solutions * */ #include <iostream> #include <cctype> #include <sstream> using namespace std; const int MAXDIGITS = 1000; const int PLUS = 1; const int MINUS = -1; typedef struct { char digits[MAXDIGITS]; int signbit; int lastdigit; } big...
/** @file restest.cpp @brief This file is part of Kalinka mediaserver. @author ipp <<EMAIL>> Copyright (c) 2007-2012 Kalinka Team 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 Softw...
#include "interface.h" #include <vector> #include <iostream> #include <android/log.h> #define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, "libface", __VA_ARGS__)) #define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO , "libface", __VA_ARGS__)) #define LOGW(...) ((void)__android_log_print(ANDROID_...
/* * RPiAdbClient.cpp * * Created on: 10-Oct-2015 * Author: sanjaydixit */ #include "../include/RPiAdbClient.h" namespace RPiAdbClientApp { RPiAdbClient::RPiAdbClient() { mAlgorithm = NULL; mMode = MODE_NONE; } RPiAdbClient::RPiAdbClient(char* ip, int port) : mSocket(ip,port) { mAlgorithm = NULL; mMo...
#include "transform.h" #include <cmath> #include <iostream> #include <QPainter> #include "math_utils.h" const int screenMax = 1024; const float timeFast = 0.1; const float timeSlow = 4; MickeyCurveShow::MickeyCurveShow(QWidget *parent) : QWidget(parent), img(NULL) { //setBackgroundRole(QPalette::Base); setSizePo...
/****************************************************************************** * $Id: dgndump.c,v 1.12 2005/11/18 17:09:09 fwarmerdam Exp $ * * Project: Microstation DGN Access Library * Purpose: Temporary low level DGN dumper application. * Author: <NAME>, <EMAIL> * **************************************...
#include "particle_integration.h" #include <c10/cuda/CUDAStream.h> #include <cuMat/src/Macros.h> #include <glm/gtx/string_cast.hpp> #include <glm/gtx/transform.hpp> #include "kernel_loader.h" #include "json_utils.h" renderer::ParticleIntegration::ParticleIntegration() : particlesPerSecond_(32) , particleLifet...
/**************************************************************************** * * Copyright (c) 2020-2021 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...
/* * EDDL Library - European Distributed Deep Learning Library. * Version: 0.9 * copyright (c) 2020, Universidad Politécnica de Valencia (UPV), PRHLT Research Centre * Date: November 2020 * Author: PRHLT Research Centre, UPV, (<EMAIL>), (<EMAIL>) * All rights reserved */ #include <cstdio> #include <cstdlib> #include ...
#include <fstream> #include <iostream> #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm/gtc/matrix_transform.hpp> #include "shaders.h" #include "window.h" #define TINYGLTF_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION #define TINYGLTF_NOEXCEPTION #def...
/* * A class to group a town name with its coordinates */ #include <iostream> using std::cerr; using std::endl; #include <fstream> using std::ifstream; #include <cmath> using std::sqrt; using std::min; using std::max; #include "town.h" // Construct a new town object given its name, latitude and longitude Town::To...
#include <cmath> #include <algorithm> #include <map> #include <utility> #include "simple-crf.hpp" void SimpleCRFFrame::set_clusters(const Cluster* clusters) { std::copy(clusters, clusters + num_nodes, this->clusters.begin()); } void SimpleCRFFrame::set_connectivity(const Connectivity* conn) { for (int i = 0; ...
/*! LTC SMBus Support: API for a LTC3883 Fault Log @verbatim This API is shared with Linduino and RTOS code. End users should code to this API to enable use of the PMBus code without modifications. @endverbatim Copyright 2018(c) Analog Devices, Inc. All rights reserved. Redistribution and use in s...
/*============================================================================= Library: CppMicroServices Copyright (c) The CppMicroServices developers. See the COPYRIGHT file at the top-level directory of this distribution and at https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT . Licensed under the Ap...
#include <cstdlib> #include <iostream> #include <fstream> #include <vector> #include <boost/filesystem/operations.hpp> #include <boost/filesystem/exception.hpp> #include "Option_parser.hpp" char * Option_parser::s_type_opts[] = { "increment", "aggregate", "pointLocation", "display", "i", "a", "l", "d" }; char * O...
#include "Emitter.h" #include <chrono> #include <random> using namespace DirectX; Emitter::Emitter( int maxParticles, int particlesPerSec, float lifetime, Shape shape, Microsoft::WRL::ComPtr<ID3D11Device> device, Microsoft::WRL::ComPtr<ID3D11DeviceContext> context, SimpleVertexShader* vs, SimplePixelShader* p...
#include "context.h" #include "platform.h" #include <assert.h> #include <fcntl.h> #include <iostream> #include <string> #include <fstream> #include <termios.h> #include <linux/input.h> // Main global variables //------------------------------- #define check() assert(glGetError() == 0) EGLDisplay display; EGLSurface ...
/* +---------------------+ +----------------------+ | KakaoTalkClient |<------->| PacketSinkHelper | +---------------------+ +----------------------+ */ /********************* Header *********************/ #include <fstream> #include "ns3/core-module.h" #include "ns3/network-module.h" #include...
/* 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, d...
// // @file gen_deviceapp_ctor.h // @brief generate device-side app constructor // // MERCATOR // Copyright (C) 2018 Washington University in St. Louis; all rights reserved. #include "gen_deviceapp_ctor.h" #include "../options.h" #include "app.h" #include "Formatter.h" #include "codegen_utils.h" using namespace st...
/* FOLLOWBUTTER - an envelope follower driving a Butterworth filter FOLLOWBUTTER maps the amplitude envelope of the modulator to the cutoff frequency of a filter applied to the carrier. This filter works as described in the documentation for the BUTTER instrument, except that there is no balance parameter...
#include <stdio.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/mman.h> #include <vector> #include <unistd.h> #include <errno.h> #include <iostream> #include <boost/thread.hpp> #include <boost/thread/mutex.hpp> #include <dirent.h> #include <stdint.h> /* Global mutex used to ensure there is no line mixed in o...
#include "parser.hpp" #include <iostream> #include <string> #include <unordered_map> namespace Uc2 = UrlCmd::UrlCmd; static const boost::regex re( "^(?<path>([-\\w\\d\\$\\^@\\*:%._\\+~=\"'\\\\\\/\\(\\)]+)*)" "(?<query>\\?([-\\w\\d\\$\\^@\\*:%._\\+\"'\\\\\\(\\)]+=" "[-\\w\\d\\$\\^@\\*:%,._\\+\"'\\\\\\/...
/* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 <NAME> (Glaurung author) Copyright (C) 2008-2014 <NAME>, <NAME>, <NAME> Stockfish 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 ...
#include <cstdlib> #include <functional> #include <thread> #include <string> #include <iostream> #include <memory> #include <mutex> #include "imgui.h" #include "font_default.h" #include "file_utils.h" #include "imgui_hud.h" #include "blacklist.h" #include "version.h" #include "control.h" #include <glad/glad.h> void* ...
//************************************************************************ /* Servo.cpp - Interrupt driven Servo library for Arduino using 16 bit timers Copyright (c) 2009 <NAME>. All right reserved. Revision date: 08/18/2011(<NAME>) This library is free software; you can redistribute it and/or modify it under...
#include "bit_util.h" #include "container_util.h" #include "game.h" #include "game_util.h" #include <algorithm> #include <iomanip> #include <iostream> #include <limits> #include <map> #include <string> #include <vector> using std::cout; using std::pair; using std::string; using std::uint32_t; using std::vector; unsign...
#include <stdio.h> #include <string> #include <SDL.h> #include <SDL_image.h> #include <SDL_ttf.h> #include <SDL_mixer.h> #include "Engine.h" #include "Scene.h" #include <assert.h> void PAUSE() { assert(false); } #ifndef FULLSCREEN //#define FULLSCREEN #endif #define DEF_SCREEN_WIDTH 800 #define DEF_SCREEN_HEIGHT 60...
// sids.cpp // E64 // // Copyright © 2019 elmerucr. All rights reserved. #include "sids.hpp" #include "sdl2.hpp" #include "common.hpp" E64::sids_ic::sids_ic() { // Remapping registers, rewiring necessary to have big endian support // and even addresses for word access. NEEDS WORK: where in documentation? ...
#include "Mesh.h" void Mesh::setTriData(std::vector<Vertex>& vertices, std::vector<uint32_t>& indices) { std::vector<Vertex> Vertices = { { { -1.0f, 0.0f, 0.0f },{ 0.0f, 0.0f, 1.0 },{ 0.0f, 0.0f, 1.0 },{ 1.0, 0.0 } }, { { 0.0f, 1.0f, 0.0f },{ 0.0f, 0.0f, 1.0 },{ 1.0f, 0.0f, 0.0 },{ 0.0, 1.0 } }, { { 1.0f, 0.0...
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2021 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any pers...
/* * Please note that CustomGen is included as a testing program to help test the * API, and not as a general purpose tool. Please carefully consider whether * adding a new program is justified on the grounds of testing the API more * extensively before doing so; if your only reason is you want to provide a * comm...
#include "SkyNet.h" static layer config[layer_count] = { { "conv0", 320,160,4, 320,160,4, 0,0,0 }, //conv0 { "conv1", 320,160,32, 320,160,32, 3,1,1 }, //conv1 { "conv2", 320,160,32, 320,160,64, 1,1,0 }, //conv2 { "pool1", 320,160,64, 160,80,64, 2,2,0 }, //pool1 { "conv3", 160,80,64, 160,80,64, 3,1,1 }, //con...
/* * Copyright 2013 Stanford University. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of co...
// Copyright 2009-2011 <NAME>. All Rights Reserved. // Copyright 2011 Google Inc. All Rights Reserved. // // Author: <EMAIL> (<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 // //...
#include "swc_utils.h" #include <stack> using namespace std; // convert inmarkers to many connected neuron structure void swc_decompose(vector<MyMarker*> & inmarkers, vector<vector<MyMarker*> > & out_segs) { map<MyMarker*, vector<MyMarker*> > root_map; // map from root to its children for(int m = 0; m < inmark...
#include "ripples.hpp" #include "src/usher_graph.hpp" #include "tbb/concurrent_unordered_set.h" #include <array> #include <boost/filesystem.hpp> #include <fstream> #include <memory> #include <random> #include <time.h> #include <vector> #define CHECK_MAPPER Timer timer; struct idx_hash { size_t operator()(const MAT:...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. // STD #include <csignal> #include <fstream> #include <functional> #include <iostream> #include <string> #if defined(__GNUC__) && (__GNUC__ < 8) && !defined(__clang__) #include <experimental/filesystem> #else #include <file...
#include <Eigen/Geometry> #include <nav_msgs/Odometry.h> #include <nodelet/nodelet.h> #include <quadrotor_msgs/SO3Command.h> #include <ros/ros.h> #include <sensor_msgs/Imu.h> #include <std_msgs/Float64.h> #include <tf/transform_datatypes.h> #include "snav/snapdragon_navigator.h" class SO3CmdToSnav : public nodelet::No...
/** $lic$ * Copyright (C) 2012-2015 by Massachusetts Institute of Technology * Copyright (C) 2010-2013 by The Board of Trustees of Stanford University * * This file is part of zsim. * * zsim is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as publishe...
#include <jni.h> #include <vector> #include <algorithm> #include <cstddef> #include <utility> #include <chrono> #include <glog/logging.h> #include "MapShuffleStoreWithObjKeys.h" #include "KVPair.h" #include "ShuffleConstants.h" #include "ShuffleStoreManager.h" #include "ShuffleDataSharedMemoryManager.h" #include "Shuff...
// Portions Copyright (c) 2018 the Cargo authors // Portions Copyright (c) uakfdotb // // The following applies only to portions copyright the Cargo authors: // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to dea...
// Copyright (C) 1997 Microsoft Corporation // // UserGeneralPage class // // 9-9-97 sburns #include "headers.hxx" #include "UserGeneralPage.hpp" #include "resource.h" #include "lsm.h" #include "adsi.hpp" #include "dlgcomm.hpp" static const DWORD HELP_MAP[] = { IDC_FULL_NAME, ...
#include <iostream> #include <rmagine/simulation/SphereSimulatorOptix.hpp> #include <rmagine/simulation/SphereSimulatorEmbree.hpp> #include <rmagine/util/StopWatch.hpp> using namespace rmagine; SphereSimulatorOptixPtr sim_gpu; SphereSimulatorEmbreePtr sim_cpu; template<typename BundleT> void resizeResults(Bundle...
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2016 <NAME> * ********************************************************************************* *...
#include "gtest/gtest.h" extern "C" { #include "chunkrender.h" } typedef struct { uint8_t normal; uint8_t vertex; uint8_t x; uint8_t y; uint8_t z; uint8_t du; uint8_t dv; } vertex_t; #define OFF_NORMAL 0 #define MASK_NORMAL 0x07 #define OFF_VERTEX 3 #define MASK_VERTEX 0x0F #define OFF_X ...
// calcPSF tools for OpenMX // preproc_main // include libraries from include path #include <iostream> #include <fstream> #define _USE_MATH_DEFINES #include <cmath> // include libraries from current directory #include "inputTools.hpp" // namespace using namespace std; void outProd(double* a, double* b, double* c); ...
// // See copyright.h for copyright notice and limitation of liability // and disclaimer of warranty provisions. // #include "copyright.h" ////////////////////////////////////////////////////////////////////////////// // // utilities.c // // General support code for lexer and parser. // // This file contains: // ...
#include "cgmath.h" #include "mat4.h" #include "vec4.h" #include "vec3.h" cgmath::mat4::mat4(){ n[0][0] = 0.0f; n[0][1] = 0.0f; n[0][2] = 0.0f; n[0][3] = 0.0f; n[1][0] = 0.0f; n[1][1] = 0.0f; n[1][2] = 0.0f; n[1][3] = 0.0f; n[2][0] = 0.0f; n[2][1] = 0.0f; n[2][2] = 0.0f; n[2][3] = 0.0f; n[3][0] = 0.0f; n[3][1] = 0...
#include <algorithm> #include <cassert> #include <iostream> #include <sstream> #include <string> #include <vector> #include <set> using namespace std; class PermutationValues { public: vector <int> getValues(vector <int> lows, vector <int> highs, string lexPos, vector <string> retInts) { long long pe...
// Copyright (c) 2019, Ryo Currency Project // Portions copyright (c) 2014-2018, The Monero Project // // Portions of this file are available under BSD-3 license. Please see ORIGINAL-LICENSE for details // All rights reserved. // // Authors and copyright holders give permission for following: // // 1. Redistribution an...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
/** * SPDX-License-Identifier: GPL-2.0-or-later * * This file is part of osm2pgsql (https://osm2pgsql.org/). * * Copyright (C) 2006-2022 by the osm2pgsql developer community. * For a full list of authors see the git log. */ #include <cstdlib> #include <cstring> #include "options.hpp" #include "taginfo-impl.hpp...
/** * Render points of starfield to equirectangular output images g++ -std=c++17 stars_pano.cpp -lopencv_highgui -lopencv_imgcodecs -lopencv_core -lopencv_imgproc */ #include <iostream> #include <cmath> // #include <numbers> // C++ 20 #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #in...
/* * Copyright 2004-2010, Haiku Inc. All rights reserved. * Distributed under the terms of the MIT License. * * Author(s): * <NAME>, <EMAIL> * <NAME>, <EMAIL> * <NAME>, <EMAIL> */ #include <SupportDefs.h> #include <limits.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <new> #incl...
// 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_frame/ready_mode/internal/registry_ready_mode_state.h" #include <windows.h> #include "base/logging.h" #include "base/process_util.h...
/* * TrackedBlobData.cpp * PixelPhones * * Created by <NAME> on 14/03/2012. * Copyright 2012 seb.ly. All rights reserved. * */ #include "TrackedBlobData.h" bool compareFloats (float i,float j) { return (i<j); } bool TrackedBlobData::updateGreys() { //vector <float> brightnesses; int minBrightnes...
/////////////////////////////////////////////////////////////////////////////// // Name: tests/formatconverter/formatconverter.cpp // Purpose: Test wxFormatConverter // Author: <NAME> // Copyright: (c) 2004 <NAME> // Licence: wxWindows licence //////////////////////////////////////////////////////...
/* * Copyright (C) 2018-2020 HERE Europe B.V. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include <sys/types.h> #include <unistd.h> #include <algorithm> #include <cassert> #include <vector> #include "bof_types.h" #include "bof_utils.h" #include "flash_blas.h" #include "scheduler/scheduler.h" #include "tasks/kme...
/* * MIT License * * Alexandria.org * * Copyright (c) 2021 <NAME>, <<EMAIL>>, et al. * * 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 limitati...
/** * trajectory generator for testing the visual ekf */ #include <iostream> #include <ros/ros.h> #include <sensor_msgs/Imu.h> #include <nav_msgs/Odometry.h> #include <geometry_msgs/TwistStamped.h> #include <Eigen/Core> #include <Eigen/Geometry> #include "qp_generator.h" using namespace std; using namespace Eigen; r...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <string> #include <vector> #include <map> #include "helper_functions.h" using std::string; using std...
/** * Copyright (c) 2015, Lehigh University * All rights reserved. * See COPYING for license. * * This file implements the batch processing of SOAX commandline * program. The input images can be more than one, and the parameters * can vary. */ #include <sstream> #include <iomanip> #include "boost/program_optio...
#include "types.h" /* * --INFO-- * Address: ........ * Size: 00009C */ void _Error(char*, ...) { // UNUSED FUNCTION } /* * --INFO-- * Address: ........ * Size: 0000F0 */ void _Print(char*, ...) { // UNUSED FUNCTION } /* * --INFO-- * Address: ........ * Size: 0000D8 */ void zen::ZenQuat::GetMatrix(const...
// // recognize.cpp // license-plate-recognition // // Created by <NAME> on 3/10/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <opencv2/opencv.hpp> #include "constants.h" #include "util.h" using namespace cv; Mat marked; /* Find ...
// Combinatorics // 7.2 // 21-04-2021 #include <bits/stdc++.h> #define all(A) begin(A), end(A) #define rall(A) rbegin(A), rend(A) #define sz(A) int(A.size()) #define pb push_back #define mp make_pair using namespace std; typedef long long ll; typedef pair <int, int> pii; typedef pair <ll, ll> pll; ty...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) | +---------...
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #pragma once #include <stddef.h> #include <fwd-POI.hpp> #include <java/io/fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <java/nio/charset/fwd-POI.hpp> #include <java/util/fwd-POI.hpp> #include <java/lang/Object....
/* * Copyright 2018 <NAME> <<EMAIL>> (University of Surrey) * */ #include <iostream> #include <cstdio> #define _USE_MATH_DEFINES #include <math.h> #include <opencv2/opencv.hpp> #include <Eigen/Dense> #include "CAPE/CAPE.h" #include "RSCamera.h" bool done = false; float COS_ANGLE_MAX = cos(M_PI/12)...
#include "torrentdetailsoverviewpanel.hpp" #include <fmt/format.h> #include <wx/clipbrd.h> #include <wx/dcbuffer.h> #include <wx/sizer.h> #include <libtorrent/torrent_status.hpp> #include "../bittorrent/torrenthandle.hpp" #include "../bittorrent/torrentstatus.hpp" #include "../core/utils.hpp" #include "translator.hp...
#include <assert.h> #include <gtc/matrix_transform.hpp> #include <fwd.hpp> //GLM #include <iostream> #include <map> #include "Utils.h" #include "ModelLoader.h" #include "glad.h" // Opengl function loader #include "BVHBuilder.h" #include "TextureGL.h" #include "ShaderProgram.h" #include "SDLHelper.h" using std::vector...
#include <algorithm> #include <cassert> #include <chrono> #include <iostream> #include <mpi.h> #include <numeric> #include <sstream> #include <string> #include <vector> using namespace std::chrono; using container = std::vector<int>; const size_t ELEMENTS_PER_PROCESS = 10000; const int ROOT_RANK = 0; container gen...
#include "GameState.h" #include <memory> #include <vector> #include <cmath> #include "Building.h" #include "Mob.h" #include "Mob_River.h" #include "Waypoint.h" #include "Point.h" std::vector<std::shared_ptr<Mob>> GameState::mobs; std::unordered_set<std::shared_ptr<Building>> GameState::buildBuildings() { std::unord...
#include "HttpServer.h" #include"HttpContext.h" #include"HttpRequest.h" #include"HttpResponse.h" #include"../EventLoop.h" #include"../Timer.h" extern char favicon[555]; /* HTTP请求报文 请求方法|空格|URL|空格|协议版本|CRLF ----请求行 头部字段名|:|值|CRLF ----请求头 ... ...
#include <uWS/uWS.h> #include <iostream> #include <fstream> #include "json.hpp" #include "PID.h" #include <math.h> // for convenience using json = nlohmann::json; using namespace std; //debug //#define USERDEBUG #ifdef USERDEBUG #define Debug(x) cout << x #else #define Debug(x) #endif // For converting back and for...
#include "ClassFlowAlignment.h" #include "ClassFlowMakeImage.h" #include "ClassFlow.h" #include "CRotateImage.h" #include "ClassLogFile.h" bool AlignmentExtendedDebugging = true; // #define DEBUG_DETAIL_ON void ClassFlowAlignment::SetInitialParameter(void) { initalrotate = 0; anz_ref = 0; initial...
#pragma once //#define ENET_IMPLEMENTATION #include "enet.h" #include <time.h> #include <iomanip> #include <iostream> #include <string> #include <memory> #include <sstream> #include "font.hpp" #include "coins.hpp" #include "input.hpp" #include "image.hpp" #include "map.hpp" #include "global.hpp" //#include "mixer_manag...
// dear imgui: standalone example application for GLFW + OpenGL 3, using programmable pipeline // If you are new to dear imgui, see examples/README.txt and documentation at the top of imgui.cpp. // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, e...
/* This is the starting point for Ex9. This time we have an initiator that generates 32-bit transactions connected through a width converter to an 8-bit memory. The initiator used byte enables to enable only byte 0 and byte 2 of each word, counting 3-2-1-0, where byte 0 is the LSB. The width converter performs a hos...
// -*- C++ -*- /*! * @file ConnectorComp.cpp * @brief connector application * @date $Date: 2008-01-13 07:24:05 $ * * Copyright (c) 2003-2007 <NAME> <<EMAIL>> * Task-intelligence Research Group, * Intelligent System Research Institute, * National Institute of Industrial Science (AIST)...
/* ** SERVERLZO.cpp ** real-time data compression. ** ** Copyright (C) 2000 <NAME> <NAME> ** ** For more information, documentation, example programs and other support ** files (like Makefiles and build scripts) please download the full LZO ** package from ** http://wildsau.idv.uni-linz.ac.at/mfx/...
/* * The MIT License (MIT) * * Copyright (c) [2018] [<NAME>] * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use,...