text
stringlengths
5.71k
33.7k
#include <cstdlib> #include <cstdio> #include <cctype> #include <cstring> #include "Engine.h" #include "Tools/Assert.h" #include "Tools/Error.h" #include "Tools/Word.h" #include "CodeBlocks.h" bool CodeBlocks::generate(const Map<String, String>& userArgs) { engine.addDefaultKey("tool", "CodeBlocks"); engine.ad...
/************************************************************************ Copyright 2017-2019 eBay Inc. Author/Developer(s): <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 https://www.a...
#include "image_moments.h" ImageMomentsFeature::ImageMomentsFeature() : FeatureMethod("ImageMomentsFeature") { provide_features({ SPAT_MOMENT_00, SPAT_MOMENT_01, SPAT_MOMENT_02, SPAT_MOMENT_03, SPAT_MOMENT_10, SPAT_MOMENT_11, SPAT_MOMENT_12, ...
#include "protea.h" #include "skydome.h" #include "proGlfw.h" #include "proIoWrl.h" #include "proIoObj.h" #include "proIo3ds.h" #include "proIoPng.h" #include "proIoJpg.h" #include <proCanvas.h> #include <proGui.h> #include <cstdio> #include <iostream> using namespace std; //--- class Application --------------------...
#include "chip.h" // all information obtained from: // https://en.wikipedia.org/wiki/CHIP-8#Virtual_machine_description Chip::Chip() {} Chip::~Chip () {} void Chip::initialize() { // initializes the display sizes -- fixed by Chip width = 64; height = 32; /* Chips is laid out as follows: 0x000-0x1FF : memory ...
/* Copyright (c) Stanford University, The Regents of the University of * California, and others. * * All Rights Reserved. * * See Copyright-SimVascular.txt for additional details. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated doc...
/* =========================================================================== Doom 3 BFG Edition GPL Source Code Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code"). Doom 3 BFG Edition Source Code is free...
#include <iostream> #include <sstream> #include <stack> #include "llvm/Support/CommandLine.h" #include "clang/Basic/SourceManager.h" #include "clang/Basic/FileManager.h" #include "clang/AST/RecordLayout.h" #include "clang/AST/ASTContext.h" #include "ClassVisitor.hh" #include "EnumVisitor.hh" #include "EnumValues.hh"...
/* * Author: <NAME> * Copyright (c) 2017, Private Octopus, Inc. * All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THIS SOFTWARE ...
#include <boost/property_tree/ptree.hpp> #include <boost/property_tree/ini_parser.hpp> #include <boost/algorithm/string.hpp> #include <boost/format.hpp> #include <boost/program_options.hpp> #include <vector> #include <iostream> #include <optional> #define _GNU_SOURCE 1 #include <cerrno> #include <sys/stat.h> #include...
/** * copyright (C) 2007 * the icecube collaboration * $Id: I3GeoTrimmers.cxx 94948 2012-11-04 16:21:52Z nwhitehorn $ * * @file * @version $Revision: 94948 $ * @date $Date: 2012-11-04 09:21:52 -0700 (Sun, 04 Nov 2012) $ * @author <NAME> <<EMAIL>> */ // for std::pair #include <utility> #include <vector...
/*******************************************************************/ /* */ /* ADOBE CONFIDENTIAL */ /* _ _ _ _ _ _ _ _ _ _ _ _ _ */ /* ...
/* * 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 of conditions and the * following disclaimer. * * 2. Redistribu...
// // kern_start.cpp // FeatureUnlock.kext // // Copyright © 2020 osy86, DhinakG, 2021-2022 <NAME>. All rights reserved. // #include <Headers/plugin_start.hpp> #include <Headers/kern_api.hpp> #include <Headers/kern_user.hpp> #include <Headers/kern_devinfo.hpp> #include "kern_dyld_patch.hpp" #include "kern_usr_patch...
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; UKF::UKF() { // Not initialized until first process measurement is_initialized_ = false; // if this is false, laser measurements will be ignored (except during init) u...
#include <UGL/UGL> #include <UGM/UGM> #include <GLFW/glfw3.h> #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include <stb_image_write.h> #include "../../tool/Camera.h" #include "../../tool/SimpleLoader.h" #include <iostream> #include "nanoflann.hpp" using namespac...
#include <appbase/application.hpp> #include <appbase/version.hpp> #include <boost/algorithm/string.hpp> #include <boost/filesystem.hpp> #include <boost/asio/signal_set.hpp> #include <boost/algorithm/string.hpp> #include <appbase/platform.hpp> #include <iostream> #include <fstream> #include <dlfcn.h> namespace appba...
/* ************************************************************************ * Copyright 2020 Advanced Micro Devices, Inc. * ************************************************************************ */ #include "norm.hpp" #include "rocsolver_test.hpp" #include "rocsolver_arguments.hpp" #include "rocsolver.hpp" #includ...
#include "vec_test.h" #include "tMath.h" bool test_vec4_isequal() { vec4 test[6]; test[0] = _mm_set_ps(-2, 0, -4, 1); test[1] = _mm_set_ps(-2, 0, -4, 1); test[2] = _mm_set_ps(-2, 0, -4, 1); test[3] = _mm_set_ps(-2, 1.9999999e-05f, -4, 1); test[4] = _mm_set_ps(-2, 0, -4, 1); test[5] = _mm_set_ps(-2, 0, -4, 1.0...
#include "Stdafx.h" /* crc32.c C implementation of CRC-32 checksums for NAACCR records. Code is based upon and utilizes algorithm published by <NAME>. This file contains: CRC lookup table function CalcCRC32 for calculating CRC-32 checksum function AssignCRC32 for assigning CRC-32 in NAACCR...
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#include <VL6180X.h> #include <Wire.h> // Defines ///////////////////////////////////////////////////////////////////// // The Arduino two-wire interface uses a 7-bit number for the address, // and sets the last bit correctly based on reads and writes #define ADDRESS_DEFAULT 0b0101001 // RANGE_SCALER values for 1x, ...
// // 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 of conditions and the following disclaimer. // // 2. Redistributions in bi...
/* Filename: stdlib.cpp Purpose: Implamentation of Engine basic types Part of Engine2D Copyright (C) 2014 Vbitz 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://w...
#include <iostream> #include <string.h> // Include this header file to get access to VectorNav UART protocol methods. #include "vn/packet.h" #include "vn/sensors.h" using namespace std; using namespace vn::math; using namespace vn::protocol::uart; // Method declarations for future use. void validPacketFo...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <math.h> #include <vector> #include <numeric> #include <iostream> #include <OpenGL/gl.h> #include <GLUT/glut.h> #include <OpenAL/al.h> #include <OpenAL/alc.h> #include <AudioToolbox/AudioToolbox.h> #include "glm.h" #include "mtxlib.h" #include "track...
/* ************************************************************************ * Copyright (c) 2020-2022 Advanced Micro Devices, Inc. * ************************************************************************ */ #pragma once #include "clientcommon.hpp" #include "lapack_host_reference.hpp" #include "norm.hpp" #include ...
// // Created by bedela on 01/07/2020. // #include "initialization/CycleCreator.h" #include "initialization/Matching.h" #include "tools/Random.h" #include <algorithm> #include <set> #include <unordered_set> #include <iostream> CycleCreator::CycleCreator(const Shape &shape, Graph &graph) { _points = std::move(graph....
#include "http_client.h" #include <mutex> #ifdef WITH_CURL #include "curl/curl.h" #endif #include "herr.h" #include "hlog.h" #include "hstring.h" #include "hsocket.h" #include "hssl.h" #include "HttpParser.h" // for async #include "AsyncHttpClient.h" using namespace hv; struct http_client_s { std::string hos...
#include <mgos.h> #include "Dallas.h" #include "OnewireInterface.h" // Model IDs #define DS18S20MODEL 0x10 // also DS1820 #define DS18B20MODEL 0x28 #define DS1822MODEL 0x22 #define DS1825MODEL 0x3B #define DS28EA00MODEL 0x42 // OneWire commands #define STARTCONVO \ 0x44 // Tells device to take a temperature readi...
/* * The teleop action server is in charge of processing user commands quickly * and performing smooth remote operation for our operations team. All commands * for teleoperation will be processed by this server, except for emergency * stop, which is handled by the control system directly for fast response time. ...
#include "pch.h" #include <dplyr/main.h> #include <tools/Quosure.h> #include <tools/bad.h> #include <tools/set_rownames.h> #include <tools/all_na.h> #include <dplyr/checks.h> #include <dplyr/data/GroupedDataFrame.h> #include <dplyr/data/NaturalDataFrame.h> #include <dplyr/data/DataMask.h> #include <dplyr/NamedListA...
/* * StereoMorphology.cpp * * Created on: Feb 29, 2016 * Author: nicolasrosa */ /* Libraries */ #include "inc/StereoMorphology.h" /* Constructor and Destructor */ StereoMorphology::StereoMorphology(){ //StereoMorphology::StereoMorphology(StereoTime::StereoUtils *ptr):trackObj(&utils_ptr){ /* Linking Po...
#include "PanelPlotHelper.h" #include "TLine.h" #include "TArrow.h" #include "TMathText.h" #include "TLatex.h" #include "TList.h" #include "TStyle.h" #include "TCanvas.h" #include "TROOT.h" #include <boost/format.hpp> #include <set> #include <iostream> #include <cmath> using namespace NswAsap; void PanelPlotHelper::pc...
/*************************************************************** main.cpp UNFLoader Entrypoint ***************************************************************/ #include "main.h" #include "helper.h" #include "device.h" #pragma comment(lib, "Include/FT...
// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2019 Intel Corporation. All Rights Reserved. #include <librealsense2/rs.hpp> #include <librealsense2/rsutil.h> #include <array> #include <cmath> #include <iostream> #include <vector> #include "example.hpp" struct point3d { float f[3]; ...
#include "WGpuUIRendererBackend.hpp" #include <string> #include <glm/glm.hpp> #include <engine/log/ExpengineLog.hpp> #include <engine/render/imgui/ImGuiViewportPlatformData.hpp> #include <engine/render/imgui/lib/imgui_internal.h> #include <engine/render/imgui/wgpu/spirv/wgpu_imgui_shaders_spirv.h> #include <engine/r...
// Copyright <NAME> 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) #include "ttauri/GUI/gui_system.hpp" #include "ttauri/widgets/widget.hpp" #include "ttauri/widgets/grid_widget.hpp" #include "ttauri/widget...
/* * Copyright(c) 2019 Intel Corporation * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at https://www.aomedia.org/license/soft...
// Copyright 2018 <NAME> // Copyright 2019 <NAME> // Vestel added by <NAME> #include "ir_Vestel.h" #include <algorithm> #ifndef UNIT_TEST #include <Arduino.h> #endif #include "IRrecv.h" #include "IRremoteESP8266.h" #include "IRsend.h" #include "IRtext.h" #include "IRutils.h" #include "ir_Haier.h" // Equipment it see...
/**************************************************************************** ** ** Copyright (c) 2011 libmv authors. ** ** 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...
#include <ostream> #include <iostream> #include <fstream> #include <sstream> #include <stdio.h> #include <utility> #include <vector> #include <iomanip> #include <boost/algorithm/string.hpp> #include <cmath> #include <cstdlib> using std::vector; using std::string; using std::stringstream; using std::endl; using std::pa...
#include "visualOdometry.h" cv::Mat euler2rot(cv::Mat& rotationMatrix, const cv::Mat & euler) { double x = euler.at<double>(0); double y = euler.at<double>(1); double z = euler.at<double>(2); // Assuming the angles are in radians. double ch = cos(z); double sh = sin(z); double ca = cos(y); double sa...
#include "ukf.h" #include "tools.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during init) use_laser_ =...
#include <sys/sysinfo.h> #include <pthread.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <mpi.h> #include "macros.h" #include "pbab.h" #include "solution.h" #include "ttime.h" #include "log.h" #include "libheuristic.h" #include "worker.h" #include "fact_work.h" #include ...
/* render.c -- Display rendering. */ #include "tiles_generic.h" #include "smsshared.h" uint8 sms_cram_expand_table[4]; uint8 gg_cram_expand_table[16]; /* Background drawing function */ void (*render_bg)(int line) = NULL; void (*render_obj)(int line) = NULL; /* Pointer to output buffer */ uin...
/* * DQM client for muon alignment summary * * \author <NAME> - Univ. Oviedo <<EMAIL>> */ #include "DQMOffline/Alignment/interface/MuonAlignmentSummary.h" MuonAlignmentSummary::MuonAlignmentSummary(const edm::ParameterSet& pSet) { parameters = pSet; meanPositionRange = parameters.getUntrackedParame...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during...
/* (c) Copyright [2017] Hewlett Packard Enterprise Development LP 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...
/* Copyright 2012-present Facebook, Inc. * Licensed under the Apache License, Version 2.0 */ #include "watchman.h" #ifdef __APPLE__ # include <sys/utsname.h> # include <sys/attr.h> # include <sys/vnode.h> #endif #ifdef HAVE_GETATTRLISTBULK typedef struct { uint32_t len; attribute_set_t returned; uint32_t err; ...
#pragma once #include <algorithm> #include <iostream> #include <numeric> // cstdint is a C++11 header. Weird. #include <stdint.h> #include <vector> // Arbitrary precision integer class. // Each cell of std::vector save 32 bits. class BigInteger { public: typedef std::vector<uint64_t> Container; BigInteger(); ...
// Test the DMcTools tPixel and tImage classes #include "Image/ImageAlgorithms.h" #include "Image/tImage.h" #include <limits> using namespace std; template <class TYPE> void TestPixels1Chan() { cerr << "************************* TestPixels1Chan\n"; tPixel<TYPE,1> tp0 = 8; tPixel<TYPE,1> tp...
// Copyright 2011 <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 writ...
/* =========================================================================== Doom 3 GPL Source Code Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?). Doom 3 Source Code is free software: you can redistribute it and/or modify...
/* * Copyright (c) 2019 <NAME> * This file is part of Carbon, and is released under the terms of the MIT License * check LICENSE at the root directory for more information */ #include <stdint.h> #include <stdio.h> #include <carbon/cpu.h> #include <carbon/panic.h> #include <carbon/vm.h> #include <carbon/memory.h> #inc...
#include <iostream> #include <vector> #include <string> #include <string.h> #include <algorithm> #include <signal.h> #include <sstream> #include <stdio.h> #include <fstream> #include <sstream> #include <iomanip> #include <unistd.h> #include <dirent.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #in...
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include <fuchsia/media/cpp/fidl.h> #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default.h> #include <lib/async/cpp/task.h> #include <lib/fit...
#include "Hud.h" #include "util/hex.h" #include <buv/SatoshiBlockheightToPixel.h> #include <util/date.h> #include <util/log.h> #include <fmt/format.h> #include <opencv2/freetype.hpp> #include <opencv2/imgproc.hpp> #include <cstring> #include <map> namespace { using UnixClockSeconds = std::chrono::time_point<std::c...
/* Numerical simulations of SIR on networks using the Laplace Gillespie algorithm Copyright (C) 2016, <NAME>, All rights reserved. Please cite the following paper when you use this code. <NAME>, <NAME>. A Gillespie algorithm for non-Markovian stochastic processes. arXiv (2016). The ...
#include "bk_asset.hpp" #include <stdio.h> #include <iostream> #include <fstream> #include <iomanip> #include <map> #include <cstdlib> #include"file_helper.hpp" #include <string> //#include "DKRCompression.h" //#include "libbkdeflate/libbkdeflate.h" #pragma region BK_ASSET_META bk_asset_meta::~bk_asset_meta(){ ...
#include "halide_benchmark.h" #include "resnet50.h" #include "HalideBuffer.h" #include "halide_image_io.h" #include "halide_malloc_trace.h" #include <cassert> #include <cstdint> #include <cstdio> #include <cstdlib> #include <float.h> #include <fstream> #include <iostream> #include <random> using namespace Halide::R...
/* ============================================================================== LookAndFeel.cpp Created: 1 Nov 2019 6:13:31pm Author: <NAME> ============================================================================== */ #include "LookAndFeel.h" #include "DialogComponent.h" constexpr auto round...
#include <iostream> #include <fstream> #include <filesystem> #include <vector> #include <optional> #include <mutex> #include <thread> #include <deque> #include <algorithm> #include <cmath> #include <cassert> using namespace std; namespace fs = std::filesystem; #define unused(x) (void)x static bool verbose = false; c...
/* Copyright 1994, 1995 by Abacus Research and * Development, Inc. All rights reserved. */ #include <base/common.h> #include <QuickDraw.h> #include <CQuickDraw.h> #include <MemoryMgr.h> #include <quickdraw/depthconv.h> #include <quickdraw/cquick.h> #include <quickdraw/rgbutil.h> #include <prefs/prefs.h> #include ...
/* * CryptoHelperWindows.cpp * * Created on: Sep 14, 2014 * */ #include <sstream> #include <vector> #include <string> #include <windows.h> #include <windef.h> #include <bcrypt.h> #include <ncrypt.h> #include <wincrypt.h> #include <iostream> #include <fstream> #include <math.h> #include <boost/algorithm/string/p...
#include <string.h> #include <v8.h> #include <node.h> #include <node_events.h> #include "image.h" #include "macros.h" Persistent<FunctionTemplate> Image::constructor_template; void Image::Init(Handle<Object> target) { HandleScope scope; Local<FunctionTemplate> t = FunctionTemplate::New(New); constructo...
template<class T> bool rsRationalFunction<T>::reduce(T tol) { std::vector<T> gcd = polyGCD(num.coeffs, den.coeffs, tol); if(gcd.size() == 1) return false; // was already in reduced form num.coeffs = polyDiv(num.coeffs, gcd, tol); den.coeffs = polyDiv(den.coeffs, gcd, tol); return true; } template<class ...
/* ----------------------------------------------------------------------------- This source file is part of Open Game Engine 2D. It is licensed under the terms of the MIT license. For the latest info, see http://oge2d.sourceforge.net Copyright (c) 2010-2012 <NAME> (<NAME>) Permission is hereby granted, free ...
#include "core/container/hash_map.h" #include "mesh/surface_tet_mesh.h" #include "mesh/feature_edges.h" #include "visualization/debug_renderer.h" #include "geo/predicates.h" struct EdgeCavity { edge_handle neigh; stable_edge_handle edge; vertex_handle v0, v1; //char flags; }; struct SurfaceDelaunay { ...
#include "builder.h" static bool UPDATE_UDF = false; namespace graphiler { using namespace torch::jit; // mapping of unique id to Value static std::unordered_map<size_t, Value *> VALUE_MAP{}; static std::unordered_map<size_t, Movement> VALUE_TO_BROADCAST{}; static std::unordered_set<size_t> VALUE_FOR_MAIL; // strin...
#include <RadonFramework/precompiled.hpp> #include <RadonFramework/Radon.hpp> #include "MainWindow.hpp" #include <imgui.h> #include <RadonFramework/System/Drawing/OpenGL.hpp> #include <libSpec.h> template <typename T, size_t N> constexpr size_t countof(T const (&)[N]) { return N; } static RF_Type::Int32 g_ShaderH...
/* * $Id: osx_usb.cpp 1095 2005-03-03 07:14:02Z anyd $ * RCX communication routines for USB on OS X. * By <NAME> <<EMAIL>> * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain...
#include "Alignment/LaserAlignment/interface/LASEndcapAlgorithm.h" /// /// /// LASEndcapAlgorithm::LASEndcapAlgorithm() {} /// /// implementation of the analytical solution for the endcap; /// described in bruno's thesis (Appendix B): /// http://darwin.bth.rwth-aachen.de/opus3/volltexte/2002/348 /// but extended wit...
/* The MIT License (MIT) Copyright (c) 2013 <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, publis...
#include "gui/so-handle.h" #include "gui/widget-helper.h" #include "gui/so-handoff-lib.h" #include "gui/buffer-view.h" #include "parser/ast-context.h" #include "rules/template-support.h" #include "notes/generated.h" #include "notes/callable.h" #include "notes/type-info.h" #include "notes/serialize.h" #include "notes/gu...
#include "Terminal.h" #define LLOG(x) // RLOG("TerminalCtrl (#" << this << "]: " << x) #define LTIMING(x) // RTIMING(x) namespace Upp { class Renderer { public: struct Attrs { const VTCell *cell = nullptr; int x = 0; int y = 0; Color ink = Null; Color ...
/* * SceneHall.cpp * enigma * * Created by Rockford on 28/04/10. * Copyright 2010 Casual Games France. All rights reserved. * */ #include "EScene.h" #include "Scene_Hall.h" #include "ESceneDirector.h" #include "MyGame.h" #include "GlobalBank.h" #include "SoundBank.h" #include "EMiniJeuConnect.h" SceneHall:...
#include <pc/manager.hpp> #include <pc/log.hpp> #include <unistd.h> #include <signal.h> #include <iostream> #include <stdlib.h> class test_publish; // system-wide notification events and factory for publisher class test_connect : public pc::manager_sub { public: test_connect(); // on connection to (but not initi...
/************************************************************************* * * * Vega FEM Simulation Library Version 2.2 * * * * "volumetricMesh" ...
/* rendercore.cpp - Copyright 2019/2020 Utrecht University 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...
////////////////////////////////////////////////////////////////////////////// // // This software module was originally developed by // // NEC Corp., <NAME>, <NAME> // (contributing organizations names) // // in the course of development of the MPEG-7 Experimentation Model. // // This software module is an im...
#include "include/scheduler.hh" #include "include/reply_builder.hh" #include "include/req_server.hh" #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <string> #include <seastar/core/metrics_registration.hh> #include <seastar/core/metrics.hh> #include <seastar/core/metrics...
#include "stdafx.h" #include "ThreadInformation.h" Thread::Thread(void) { screen_location_[0][0] = -1.0f; screen_location_[0][1] = -0.5f; screen_location_[1][0] = 1.0f; screen_location_[1][1] = 0.5f; reference_point_index_[0] = 0; reference_point_index_[1] = 50; } Thread::~Thread() { } const ...
#include <bits/stdc++.h> using namespace std; //Helper class for utilities class Helper{ public: //Converting Integer to String string intToBin(int val){ int mod; string bin=""; while(val!=0){ mod = val%2; if(mod){ bin = bin + "1"; } else bin = bin + "0"; val/=2; } reverse(bin.begin(),bi...
#include "assert.h" #include "BatchData.h" #include "GeneralData.h" #include "Alignment.h" extern GeneralData* genData; void BatchData::pre_filter_alignment_maps() { int num_removed = 0; int num_smplfy_reads = 0; bool removed_best = false; if (conf->verbose) fprintf(stdout, "\nPre-filtering...
#include "hash_functions/keccak.hpp" #include "internal/determine_kernel_config.hpp" using namespace usm_smart_ptr; struct keccak_ctx_t { qword bits_in_queue = 0; qword state[KECCAK_STATE_SIZE]{}; byte q[KECCAK_Q_SIZE]{}; }; static inline qword keccak_leuint64(const void *in) { qword a; memcpy(&a...
#define DIRECTINPUT_VERSION 0x0700 // --------------------------------------------------------------------------------------------------------------------------------- // _____ _ _ _ _ // / ____| | | (_) (_) // | | ___ | | |_ __...
/* mount.cc This file is part of Cygwin. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ #include <stdio.h> #include <sys/mount.h> #include <sys/stat.h> #include <mntent.h> #include <windows.h> #include <sys/cygwin.h> #incl...
#include <chrono> #include <csignal> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include <sstream> #include "tensorflow/core/framework/tensor_util.h" #include "tensorflow/core/lib/io/path.h" #include "tensorflow/core/lib/strings/str_util.h" #include "tensorflow/core/lib/s...
#include "llvm/Pass.h" #include "llvm/IR/Function.h" #include "llvm/Support/raw_ostream.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/IR/CFG.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Instructions.h" #include "llvm/Transforms/Utils/BasicBlockUtils...
/* * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. * * Copyright (c) 2020 fortiss GmbH, <NAME> * All rights reserved. */ #include "UniversalRobotControl.h" #include "rob_ur_nodeids.h" #define NAMESPACE_URI_ROB_UR "https://fortiss...
/* * PROJECT DETAILS: * Project Name: Balance_Bot_2403 * File Name: Balance_Bot_2403.cpp * Version: 4.2.0 * Release Date: 05-May-17 6:14:00 AM * * Created: 10-Jan-17 6:40:00 AM * Author : <NAME> * Email: <EMAIL> * * GitHub: https://github.com/heethesh/Balance-Bot * YouTube video demo link: https://youtu.be/-k-lZ_CcU4U...
#include <cstring> #include <fstream> #include "tetrahedron4.h" #include "../line/line2.h" #include "../plane/triangle3.h" #include "../../../basis/matrices/denseMatrix.h" using namespace espreso; std::vector<Property> Tetrahedron4::_DOFElement; std::vector<Property> Tetrahedron4::_DOFFace; std::vector<Property> Te...
/* * Copyright (c) 1999-2000, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of con...
#if defined(OS_LINUX) || defined(OS_MACOSX) #include <arpa/inet.h> #include <netinet/ip_icmp.h> #elif defined(OS_WINDOWS) #include <winsock2.h> #endif #include <errno.h> #include <string.h> #include "log.h" #include "mp_socket.h" #include "mlab/host.h" #include "mlab/mlab.h" #include "mlab/protocol_header.h" #include ...
#include <iostream> #include <sstream> #include <fstream> #include <vector> #include <ros/ros.h> #include <ros/package.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings.h> #include <image_transport/image_transport.h> #include <image_geometry/pinhole_camera_model.h> //#include <pcl_ros/transfor...
#define VK_USE_PLATFORM_WIN32_KHR #include <assert.h> #include <stdio.h> #include <string.h> #include <memory> #include <stdexcept> #include <SDL.h> #include <SDL_syswm.h> #include <vulkan/vulkan.h> #include <VkInitializers.hpp> #include <VkCore.hpp> void CreateRenderResources(); void DestroyRenderResources(); void ...
#include <string> #include <math.h> #include <time.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/io/pcd_io.h> #include <pcl/filters/voxel_grid.h> #include <pcl/ModelCoefficients.h> #include <pcl/segmentation/sac_segmentation.h> #include "rgbd_calib.h" #include "cal_tools.hpp" const std:...
#include <iostream> #include "mtxclient/crypto/client.hpp" #include "mtxclient/crypto/types.hpp" #include "sodium.h" using json = nlohmann::json; using namespace mtx::crypto; void OlmClient::create_new_account() { account_ = create_olm_object<AccountObject>(); auto tmp_buf = create_buffer(olm_crea...