text
stringlengths
3.08k
22k
// // Created by zeph on 11/18/16. // #include <iostream> #include <algorithm> #include <vector> #include <set> #include <string> #include <exception> #include "../helpers/coutFriends.cpp" /*** From: https://leetcode.com/problems/3sum/ Given an array V of n integers, are there elements a, b, c in V such that a + b ...
#include "headers/Engine.h" void drawHUD(); Clock benchmark; void Engine::draw(float elapsedTime) { // These are both for benchmark tests bool benchmarkTesting = false; Vector3f avg; m_window.clear(); // We want to make sure that we are using the proper sprites for our character Sprite currentChar = (m...
// This function adds displacement plots together #include <mex.h> #include <math.h> #include <vector> #include <list> #include "standard_datatypes.h" #include "ncorr_datatypes.h" #include "ncorr_lib.h" // ----------------------------------------------------// // Interp plot input ----------------------------------//...
/* Copyright 2007-2015 QReal Research Group, <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 applicabl...
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modif...
/* Allocore Example: CIE Color Spaces Description: This program demonstrates how to use the HCLab and HCLuv cylindrical color spaces. Author: <NAME>, 5/2014 (owen.campbell at gmail dot com) Adapted from Lance Putnam's 2D Drawing example code */ #include "allocore/io/al_App.hpp" //#include "al_Color_ogc.h...
//===- FunctionAttrs.cpp - Pass which marks functions readnone or readonly ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "http.hpp" #include <string> #include <iostream> #include <sys/utsname.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/utsname.h> #include <netdb.h> #include <arpa/inet.h> #include <stdlib.h> #include <errno.h> #include "identifier.hpp...
#include <bits/types/FILE.h> #include <fstream> #include <iostream> #include <stdio.h> #include <vector> #include <string> #include <tgmath.h> #include "image_ppm.h" #include <filesystem> #include <Eigen/Dense> using namespace std; using namespace Eigen; typedef Matrix<u_char, Dynamic, Dynamic> MatrixImg; typedef Mat...
#include "cxxopts.hpp" // see https://www.gitmemory.com/issue/ddemidov/amgcl/162/668662041 for inspiration #include <amgcl/io/mm.hpp> #include <amgcl/adapter/crs_tuple.hpp> #include <amgcl/amg.hpp> #if defined(SOLVER_BACKEND_VEXCL) # include <amgcl/value_type/static_matrix.hpp> # include <amgcl/adapter/block_matri...
// @: Aligned Contiguous Memory header & implementation // Copyright (c) 2021 <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 ...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and ...
/* * Main authors: * <NAME> <<EMAIL>> * * This file is part of Unison, see http://unison-code.github.io * * Copyright (c) 2016, RISE SICS AB * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
/* * Alnitak Flat-man emulator for Spike-a USB dimmer * * Copyright (c) 2015 <NAME> <<EMAIL>> * * 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 copy...
// -*- C++ -*- // // Package: Calo // Class : FWHGTowerProxyBuilder // // Implementation: // [Notes on implementation] // // Original Author: // Created: Mon May 31 16:41:27 CEST 2010 // // system include files // user include files #include "TEveCaloData.h" #include "TEveCalo.h" #include "TH...
#include "gm.h" #include "my_work_queue.h" #include "scc.h" #define DEBUG 0 static node_t TARGET_NODE = 898; static node_t TARGET_ROOT = 0; class fw_trim_single : public gm_bfs_template // <level_t, use_multi_thread, has_navigator, use_reverse, save_child> <short, false, true, false, false> { public: fw_trim...
#include "DataFormats/Math/interface/approx_exp.h" #include "DataFormats/Math/interface/approx_log.h" #include "DataFormats/Math/interface/approx_erf.h" #include <cstdio> #include <cstdlib> #include <iostream> void printEXP(float x) { printf("x= %a val= %a %a %a\n", x, std::exp(double(x)), unsafe_expf<6>(x), unsafe_...
/* Write a program that creates a linked list of bunny objects. Each bunny object must have Sex: Male, Female (random at creation 50/50) color: white, brown, black, spotted age : 0-10 (years old) Name : randomly chosen at creation from a list of bunny names. radioactive_mutant_vampire_bunny: true/false (de...
 #include "stdafx.h" #include "stdio.h" #include <fstream> #include "CrFile.h" #include "windows.h" using namespace std; CrFile::CrFile() { } char * CrFile::StrToChar(CString input) { char * result = new char[180]; *result = '\0'; CStringA csA(input); strcpy(result, csA.GetBuffer()); csA.ReleaseBuffer(); ...
#include "Universal_Headers.h" #include "IMU.h" #include "Wire.h" const int MPU_addr=0x68; // I2C address of the MPU-6050 uint8_t Continus_Count = 0; IMU_Measure_StateMachine_Type Current_IMU_Measure_State; IMU_AcData_Type Current_AcData; IMU_AcData_Type Prv_AcData[IMU_DATA_BATCH]; IMU_AcData_Type AcData_Array[ACDATA...
#include <curl/curl.h> #include <string.h> #include <unistd.h> #include "HTTPRequest.h" #include "Logger.h" #include "RequestWorker.h" // Taken from the curl configure script static const char *capaths[] = { "/etc/ssl/certs/ca-certificates.crt", // Debian "/etc/pki/tls/certs/ca-bundle.crt", // Redhat ...
#include<map> #include<cstdio> #include<vector> #include<string> #include<cstring> #include<algorithm> using namespace std; const int N=20000; int n,h0; map<string,int> h; char x[N][4][5]; void print(char st[4][5]) { for(int i=0;i<4;i++) st[i][4]=0,puts(st[i]); } int num(char stat[4][5]) { string tmp=""; int i; ...
// Copyright (c) 2009-2012 The Darkcoin developers // Copyright (c) 2017-2022 The CryptoCoderz Team / Espers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "primitives/bignum.h" #include "core/sync.h" #include "nod...
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (C) 2020, Raspberry Pi (Trading) Ltd. * * options.cpp - common program options helpers */ #include "core/options.hpp" Mode::Mode(std::string const &mode_string) { if (mode_string.empty()) bit_depth = 0; else { char p; int n = sscanf(mode_string.c_...
#include <ros/ros.h> #include <tf/transform_broadcaster.h> #include <nav_msgs/Odometry.h> #include <stdio.h> #include <iostream> #include <sensor_msgs/NavSatFix.h> geometry_msgs::Point global_position; ros::Publisher position_pub; const double RADIANS_PER_DEGREE = M_PI/180.0; const double DEGREES_PER_RADIAN = 180.0/...
/* * Copyright © 2015 <NAME>, <NAME>, <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 la...
//------------------------------------------------------------------------------ // Copyright 2015 The SageTV Authors. All Rights Reserved. // File: AsyncIo.cpp // // Desc: DirectShow sample code - base library with I/O functionality. // // Copyright (c) Microsoft Corporation. All rights reserved. //-----------...
/* Copyright 2012 <NAME> (repetier) <EMAIL> Homepage: http://www.repetier.com 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 b...
/** * @file OneButton.cpp * * @brief Library for detecting button clicks, doubleclicks and long press * pattern on a single button. * * @author <NAME>, https://www.mathertel.de * @Copyright Copyright (c) by <NAME>, https://www.mathertel.de. * * This work is licensed under a BSD style license. See * http://www...
#include "StdAfx.h" #include "SmartCardManager.h" const std::vector<BYTE> SmartCardManager::selectAppletCommand = { 0x00, 0xa4, 0x04, 0x00, 0x0A, 0x37, 0x5A, 0x69, 0x70, 0x41, 0x70, 0x70, 0x6C, 0x65, 0x74 }; const std::wstring SmartCardManager::CTR_SEPAR = L"#!"; SmartCardManager SmartCardManager::getInstance(c...
#include "module.hh" #include <cassert> #include <iostream> #include <set> #include "../isa/isa.hh" #include "cfg.hh" #include <utils/cli/err.hh> void Instruction::erase_from_parent() { parent().erase_ins(ins_iterator_t(this)); } void Instruction::check() const { isa::check_ins(sargs()); } const std::string &Ins...
// Copyright 2012-2019 <NAME> <<EMAIL>> // License: MIT (see COPYING.MIT file) #include "base.h" #include "_jpeg.h" #include <stdio.h> #include <setjmp.h> extern "C" { #include <jpeglib.h> } namespace { const size_t buffer_size = 4096; struct jpeg_source_adaptor { jpeg_source_mgr mgr; byte_source* s; b...
/* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain ...
// Copyright (c) 2012 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 <dlfcn.h> #include <math.h> #include "base/memory/singleton.h" #include "chrome/browser/speech/extension_api/tts_extension_api_platform.h" #...
/*!\file Scoreboard.cpp * \brief The scoreboard seen in the main game is implemented here. * \author <NAME> * \version 2.1 * \date August 2004 */ #include <stdlib.h> #include <string.h> #include "Scoreboard.h" /*! Total characters in character set. */ const int MAX_CHARS = 256; /*! For 3D font rende...
/** @defgroup MleDPPMaster Magic Lantern Digital Playprint Library API - Master */ /** * @file agchk.cxx * @ingroup MleDPPMaster * * Magic Lantern Digital Playprint Library API. * * @author <NAME> * @date September 15, 2004 */ // COPYRIGHT_BEGIN // // Copyright (c) 2015-2018 Wizzer Works // // Permission is h...
// Copyright (c) 2016 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 "base/memory/ptr_util.h" #include "base/metrics/histogram_macros.h" #include "base/strings/utf_string_conversions.h" #include "base/values.h"...
#include "eglsize.hpp" #include "shaderutility.hpp" #include <string> static int bisect_val(int min, int max, bool is_valid_val(int val)) { bool valid; while (1) { int try_val = min + (max - min + 1) / 2; valid = is_valid_val(try_val); if (min == max) break; if (v...
/* OrangutanTime.cpp - Library for timing routines, calibrated for Orangutan, which runs at 20 MHz. This should *NOT* be used as an Arduino library. */ /* * Written by <NAME> et al., July 30, 2008. * Copyright (c) 2008-2012 Pololu Corporation. For more information, see * * http://www.pololu.com * http://f...
//=== ClangASTNodesEmitter.cpp - Generate Clang AST node tables -*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "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 i...
/* Copyright (c) 2007-2016 Contributors as noted in the AUTHORS file This file is part of libzmq, the ZeroMQ core engine in C++. libzmq is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Found...
// AsmJit - Machine code generation for C++ // // * Official AsmJit Home Page: https://asmjit.com // * Official Github Repository: https://github.com/asmjit/asmjit // // Copyright (c) 2008-2020 The AsmJit Authors // // This software is provided 'as-is', without any express or implied // warranty. In no event will the...
// Copyright <NAME> 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #include "parameter_block.h" #include "adl/chip_settings.h" #include "adl/instrument.h" #include "adl/player.h" #in...
import utils; #include <specific/standard.h> #include "objects.h" #include "lara.h" #include "control.h" #include "effect2.h" #include "traps.h" #include "physics.h" #define KNIFE_DAMAGE 50 #define DIVER_HARPOON_DAMAGE 50 #define MISSILE_RANGE SQUARE(WALL_L/6) #define ROCKET_RANGE SQUARE(WALL_L) void ControlM...
#include <simplex.hpp> #include <common.hpp> #include <cstdlib> #include <cstring> #include <cassert> namespace { using namespace bb; const double STRETCH_3D = -1.0 / 6.0; //(1/Math.sqrt(3+1)-1)/3; const double SQUISH_3D = 1.0 / 3.0; //(Math.sqrt(3+1)-1)/3; const double NORM_...
/* translation of file "error.k" */ /* generated by: * @(#)$Author: criswell $ */ #define KC_FUNCTIONS_error_ #include <stdlib.h> #include "k.h" #include "error.h" namespace kc { } using namespace kc; /* included stuff */ // // The Termprocessor Kimwitu++ // // Copyright (C) 1991 University of Twente, Dept TIOS. //...
// This is CSCFindPeakTime #include <RecoLocalMuon/CSCRecHitD/src/CSCFindPeakTime.h> #include <FWCore/MessageLogger/interface/MessageLogger.h> #include <cmath> CSCFindPeakTime::CSCFindPeakTime( const edm::ParameterSet& ps ): useAverageTime(false), useParabolaFit(false), useFivePoleFit(false) { useAverageTime =...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
/* CgSFT.cpp <NAME> 11/21/2007 */ #include <iostream> #include <sstream> using namespace std; #include "CgSFT.hpp" const float CgSFT::_PI = 3.1415926; CgSFT::CgSFT(const int height, const int width) throw(Exception) : _height(height), _width(width), _row_selection(-1), _col_selection(-1) { // error mess...
/* * driver_pwm_motor.cpp * * Created on: Jul 21, 2014 * Author: <NAME> * */ #include "driver_pwm_motor.h" unsigned long NumSettings_pwm10=0; unsigned long NumSettings_pwm11=0; unsigned long TLDR_pwm10=0; unsigned long TLDR_pwm11=0; /* int devmem2(const std::string& target,const std::string& access_type,co...
/** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository. **/ /* SPDX-License-Identifier: CC0-1.0...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2010-2011, <NAME>, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * ...
/////////////////////////////////////////////////////////////////////////////// // // @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright o...
#include <SDL.h> #include "entt/entt.hpp" #include "components.h" #include "sdl_render.h" #include "vmath.h" #include "bitfont.h" //holds the observers for the reactive systems of this program struct RegistryObservers { entt::observer sprite_transform_observer; void initialize(entt::registry& registry) { auto s...
#include "ext2.h" #include "libk.h" // Node /* Read a block from the file * TODO caching */ void Node::read_block(uint32_t number, char* buffer) { if (number == cache_num) { memcpy(buffer, cache, block_size); return; } if (!cache) cache = new char[block_size]; cache_num = number; if (n...
// // Created by thaeds on 8/10/15. // // Compile with: // g++ `pkg-config --cflags opencv` -o test_line_detector test_line_detector.cpp `pkg-config --libs opencv` -std=c++11 #include <opencv2/opencv.hpp> #include <iostream> #include <vector> #define KERNAL_COUNT 8 using namespace std; using namespace cv; void Det...
#include <iostream> #include <fstream> #include <vector> #include <map> #include <chrono> #include <random> #include <algorithm> #include <functional> #include <omp.h> #include <box2d/box2d.h> #include <opencv2/highgui.hpp> #include <opencv2/opencv.hpp> #include "World.h" #include "Viewer.h" #include "SimpleNN.h" #inc...
#include <fstream> #include <tuple> #include <iomanip> #include <violas_client2.hpp> #include <utils.hpp> #include "nft_store.hpp" using namespace std; using namespace violas; const diem_types::AccountAddress NFT_STORE_ADMIN_ADDRESS = {00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 0x11, 0x22}; namespace nft...
// // Process a plotfile to find the location where the timestep is being limited // #include <iostream> #include <fstream> // #include <stringstream> #include <regex> #include <AMReX_DataServices.H> #include <AMReX_ParmParse.H> #include <AMReX_BaseFab.H> #include <Limiter_F.H> #include <Logi_F.H> using namespace amre...
/* Short job 2 */ #include <stdlib.h> #include <stdio.h> #include <time.h> #include <math.h> #include <omp.h> #include <algorithm> #define MAXIMAL 70 // maximalni pocet predmetu, maximal size of input int array_of_rests[MAXIMAL]; int array_of_next_lightest[MAXIMAL]; int array_of_next_cost[MAXIMAL]; int...
/* * pole.cpp * * Created on: Sep 15, 2010 * Author: baj */ #include "pole.h" #include "logger.h" // Nonlinear control // void Pole::step(int action) // { // if (inv_mode) game_step += 1; // static const double f = 1.0; // static const double g = 9.8; // static const double l = 1.0; // static c...
#include "headers/NVdecoder.h" #include "headers/constants.h" #include <cstring> extern unsigned cudaPrimaryDevice; extern unsigned cudaSecondaryDevice; // change callbacks to static methods and fix encapsulation issues // parser works on basis of callback functions int NVdecoder::sequence_callback(void *pUserData, ...
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved. //For the list of developers, see <http://www.MercuryDPM.org/Team>. // //Redistribution and use in source and binary forms, with or without //modification, are permitted provided that the following conditions are met: // * Redistributions ...
/* * Copyright information and license terms for this software can be * found in the file LICENSE that is included with the distribution */ #include <string> #include <sstream> #include <epicsMutex.h> #define epicsExportSharedSymbols #include <pv/pvData.h> #include <pv/lock.h> #include <pv/createRequest.h> usin...
// VirtualDub - Video processing and capture application // Graphics support library // Copyright (C) 1998-2009 <NAME> // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of t...
//===- Bufferize.cpp - Bufferization utilities ----------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include <gmpxx.h> #include <iomanip> #include <iostream> #include <randest/data_provider.hpp> #include <randest/spectral_test.cpp> #include <randest/tests.hpp> #include <string> #include <vector> enum data_type { integer, longdouble } type; enum source { input, binaryfile, textfile } s; void pri...
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version....
//oh boy this'll take a while //misaka will carry me to master #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <utility> #include <cassert> #include <algorithm> #include <vector> #include <functional> #include <numeric> #include <set> #include <map> #define ll __int128 #define lb lo...
// // bcchild.cpp // // By <NAME>. // // "Brainchild Custom Editor Control" demonstration program. // This code is public domain, use and abuse as you desire. // #include "bcdemo.h" // Construction. BCChildWnd::BCChildWnd() { // Clear data. m_pFrame = NULL; } // Destruction. BCChildWnd::~BCChildWnd() {;} // WM_CR...
//----------------------------------*-C++-*----------------------------------// // Copyright 2020 UT-Battelle, LLC, and other Celeritas developers. // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: (Apache-2.0 OR MIT) //-------------------------------------------------------------------------...
/* * Copyright (C) 2021-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include <level_zero/ze_api.h> #include "zello_common.h" #include <fstream> #include <iostream> #include <memory> bool verbose = false; bool useSyncQueue = false; int main(int argc, char *argv[]) { verbose = isVerbose(arg...
#include "GroundTextureDatabase.hpp" #include "Utils/String.hpp" #include "ObjectDatabase/KeywordReplacer.hpp" #include <stb/stb_image.h> #include <lodepng/lodepng.h> #include <libjpeg/jpeglib.h> #include "Console.hpp" GroundTexture::GroundTexture(const std::wstring& path) { this->SetPath(path); } GroundTexture::...
/* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
/** * Copyright 2012 JDS Uniphase. All rights reserved. * $URL: http://sinsvn5.sin.ds.jdsu.net/svn/xtreme/branches/1.00.100_phase2_tip/src/iwf/src/stream_merger.cc $ * $Revision: 9020 $ * $Author: lim59234 $ * $Date: 2014-01-07 18:48:27 +0800 (Tue, 07 Jan 2014) $ * Stream merger implementation */ #include "xtreme/iwf/...
/************************************************* * Perl-Compatible Regular Expressions * *************************************************/ /* This is a library of functions to support regular expressions whose syntax and semantics are as close as possible to those of the Perl 5 language. See the file T...
/** Copyright (c) 2013, <NAME> */ #include <QDebug> #include <QtWidgets/QMessageBox> #include <assert.h> #include <cmath> #include "./blockidentifier.h" #include "./json.h" static BlockInfo unknownBlock; BlockInfo::BlockInfo() : variants(false) , transparent(false) , liquid(false) , rendernormal(true) , p...
/*************************************************************************/ /* editor_dir_dialog.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* <tools/nycr/symbol/write_bison.cc> Implements <tools/nycr/symbol/write_bison.h>. Copyright 2010-2014 Tagged 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://ww...
/** * See header file for a description of this class. * */ #include "RecoMuon/MuonSeedGenerator/src/RPCSeedrecHitFinder.h" #include <DataFormats/TrackingRecHit/interface/TrackingRecHit.h> #include <DataFormats/RPCRecHit/interface/RPCRecHit.h> using namespace std; using namespace edm; // Comparat...
#include <iostream> #include <stdlib.h> using namespace std; #include "options.hpp" #include "optparse.hpp" #include "version.h" Options::Options(int argc, char *argv[]) { /* Start with basic initializtion */ interval = 2; iterations = 0; dump = DUMP_OFF; debug = false; denote_sockets = false; c...
#include <fstream> #include "aos/logging/implementations.h" #include "aos/logging/logging.h" #include "aos/vision/blob/codec.h" #include "aos/vision/blob/find_blob.h" #include "aos/vision/events/socket_types.h" #include "aos/vision/events/udp.h" #include "aos/vision/image/image_dataset.h" #include "aos/vision/image/im...
/********************************************************************************/ /* */ /* MtdsDemo4.pde -- MTDS Library Reference Example 4 */ /* ...
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #include "dlop.hpp" #include <cstdlib> #include "fmt/format.h" #include "lbench.hpp" #include "str_tools.hpp" void Dlop::free(size_t sz, int64_t *ptr) { assert(free_pool.size() > (sz >> 3)); free_pool[sz >> 3]->release_ptr(pt...
/*============================================================================== Header ==[Description]================================================================= This program will add a oric header to any binary file ==[History]=================================================================...
/*************************************************************************/ /* b2d_decompose.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#define WIN32_LEAN_AND_MEAN #include <iostream> #include <vector> #include "alienfan-SDK.h" #include "alienfan-low.h" using namespace std; void Usage() { cout << "Usage: alienfan-cli [command[=value{,value}] [command...]]\n\ Avaliable commands: \n\ usage, help\t\t\tShow this usage\n\ rpm\t\t\t\tShow fan(s) RPM\n...
#include <ql/quantlib.hpp> #ifdef BOOST_MSVC # include <ql/auto_link.hpp> #endif #include "ReplicationError.hpp" #include <iostream> #include <iomanip> using namespace QuantLib; using namespace std; #if defined(QL_ENBALE_SESSIONS) namespace QuantLib { Threadey sessionId() { return {};} } #endif Real norma...
// Las palabras que empiezan por # se llaman directivas e indican información para el proceso de compilado // Por ejemplo #include añade un fichero dentro de otro // Aqui se utilizan otras: // #define SIM hacemos que el símbolo SIM exista // #if / #elif / #else / #end funciona como un if/else if/else/} pero para e...
#include "PrecompilationDefine.h" #include <vector> #include <memory> #include <math.h> #include "opencv2/opencv.hpp" #include "Hud.h" #include "Tools.h" /* #include "Values.h" #include "Vision.h" #include "VisionTarget.h" #include "VisionTargetPair.h" #include "Spline.h" */ #include "Editor.h" using namespac...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2020 Couchbase, 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 * * ...
/* File: ViamSonus.cpp Author: <NAME> Date: 2014.05.19 Copyright (C) 2014 <NAME> All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or...
#include "stats.hpp" #include <string> #include <iostream> #include <fstream> #include <sstream> #include <dirent.h> #include <string.h> #include <algorithm> #ifndef PROCDIR #define PROCDIR "/proc" #endif #ifndef PROCSTATFILE #define PROCSTATFILE PROCDIR "/stat" #endif #ifndef PROCMEMINFOFILE #define PROCMEMINFOFILE...
/** * Copyright (C) 2015-2016 Mellanox Technologies Ltd. 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, thi...
#include <stddef.h> #include <stdlib.h> #include <iostream> #include <cstring> #include "hooks.h" #include <malloc.h> bool reentrant = false; extern std::string programName; #ifdef USE_BACKTRACE #include "backtrace.h" #include "backtrace-supported.h" struct bt_ctx { struct backtrace_state* state...
#include <chrono> #include <climits> #include <ctime> #include <fstream> #include <iostream> #include <list> #include <vector> #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <g2o/core/base_unary_edge....
#include "sdk.hpp" #include "../Helpers/Utils.hpp" IVEngineClient* g_pEngine = nullptr; IBaseClientDLL* g_pClient = nullptr; IClientEntityList* g_pEntityList = nullptr; CGlobalVarsBase* g_pGlobals = nullptr; IEngineTrace* g_pEngineTrace = nullptr; ICvar* g_...
/* ------------------------------------------------------------------ * Copyright (C) 2008 PacketVideo * * 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/li...
// // Created by <NAME> on 10/28/17. // #include "Reader.h" #include <istream> #include <sstream> #include <cstring> #include <dirent.h> #include <sys/stat.h> void Reader::strNormalize(string &s) { if (s.size() > 10000) s.resize(10000); string str = ""; str.reserve(s.size()); char prev_char = ' '; for (auto i = ...