text
stringlengths
3.08k
12.5k
// exact_test.cpp: functional tests for C API // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <universal/number/posit/posit_c_api.h> #if !(defined(_MSC_VER)) #include <sys/time.h> #endif ...
#include <cassert> #include <iostream> #include <sstream> #include <string> #include "CondFormats/BTauObjects/interface/BTagEntry.h" #include "CondFormats/BTauObjects/interface/BTagCalibration.h" #include "CondTools/BTau/interface/BTagCalibrationReader.h" static bool eq(float a, float b, float prec = 1e-8) { float ...
#include "connection.h" #include <iostream> Connection::Connection() :connected(false), peer_sock(INVALID_SOCKET), self_sock(INVALID_SOCKET) { timer = new QTimer(this); peer_id = ""; self_id = ""; im = &IMClient::Instance(); linksigSlot(); } Connection::~Connection() { if(time...
/* * Copyright 2014 Facebook, 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...
/** * @file src/r2plugin/r2cgen.cpp * @brief C code generation and token marking. * @copyright (c) 2020 Avast Software, licensed under the MIT license. */ #include <fstream> #include <optional> #include "r2plugin/r2data.h" #include "r2plugin/r2cgen.h" using namespace retdec::r2plugin; /** * Translation map bet...
#include "Player.h" #include "Input.h" #include "Transform.h" #include "GameObject.h" #include "Time.h" #include "Collider.h" #include "Debug.h" #include "Raycast.h" #include "Enemy.h" #include "Audio.h" #include "UINumber.h" #include "Game.h" Player::Player(UIImage * handImage, UIImage * hudWeapon, UINumber * hudGold...
/* Copyright (c) 2014, <NAME>, <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: * Redistributions of source code must retain the above copyright notice, this list of condition...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/vk/GrVkTexture.h" #include "src/gpu/GrTexture.h" #include "src/gpu/vk/GrVkDescriptorSet.h" #include "src/gpu/vk/GrVkGpu.h" #include "src/gpu/vk/GrVkImageVie...
/****************************************************************************** * * Project: GeoTIFF Driver * Purpose: Generator of quant_table_md5sum.h * Author: <NAME> * ****************************************************************************** * Copyright (c) 2021, <NAME> <even dot rouault at spatialy...
#include "aws_kinesis_firehose.h" #include <nlohmann/json.hpp> #include "utility/encoding/base64/base64.h" #include "utility/encoding/aws-sig-v4/awsv4.h" #include <boost/thread.hpp> using json = nlohmann::json; AwsKinesisFirehoseDataSource::AwsKinesisFirehoseDataSource(const json &definition) : DataSource(defini...
/* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2003 - 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundation with the addit...
/** * @file Utility.hpp * * @author btran * * Copyright (c) organization * */ #pragma once #include <algorithm> #include <cassert> #include <cmath> #include <deque> #include <limits> #include <memory> #include <numeric> #include <utility> #include <vector> #ifdef DEBUG #define ENABLE_DEBUG 1 #include <ios...
//===-- Searcher.cpp ------------------------------------------------------===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
/* ************************************************************************************************ * Author: <NAME> * University of Georgia, Dept. of Mathematics, <EMAIL> * Date: October 2018 * * Program to calculate the relative weights associated with each flow in a tropic system * with respect to the ...
/* Copyright (c) 2007 <NAME>. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require...
// // Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2021 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #include "td/telegram/PollManager.h" #include "td/utils/logging.h" #include "td/utils/tests.h" REG...
/** @copyright * Copyright (c) 2019, <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: * * - Redistributions of source code must retain the above copyright notice, * this list of...
/* * Generate maze using backtracking algorithm * and solve it using wall following algorithm */ #include <iostream> #include <stack> #include <time.h> #include <SFML/Graphics.hpp> #include "mazeHelper.h" void drawNodePath(sf::RenderWindow &window, Node nodeList[], int col, int row); int main() { srand(time...
#include <bits/stdc++.h> using namespace std; #define TUTORIAL 0 constexpr int MAX_N = 200000; int N; /** * Each S[i] is an ordered list of (j, k) pairs for person i. In each (j, k) * pair k is the number of bids person i made on and after the j-th bid. The * j's in each S[i] should be stored in increasing orde...
//===-- PseudoTerminal.cpp --------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "visualizer.h" #include <iostream> #include <fstream> #include <algorithm> #include "map.h" // Bits used in the overrides image bytes enum OverrideFlags { OF_RIVER_MARSH = 0x10, OF_INLAND = 0x20, OF_WATER_BASIN = 0x40 }; // Some constants enum { IMAGE_DIM = 2048, // Width and height of the e...
#include "SimMuon/Neutron/interface/SubsystemNeutronWriter.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/Utilities/interface/EDMException.h" #include "SimMuon/Neutron/src/AsciiNeutronWri...
#include "shared.h" using namespace stl; using namespace common; using namespace xtl; /////////////////////////////////////////////////////////////////////////////////////////////////// ///Вспомогательный класс поиска файлов /////////////////////////////////////////////////////////////////////////////////////...
/* ===================================================================== Copyright © 2016, Avnet (R) Contributors: * <NAME>, www.em.avnet.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...
#include <mcc/config.hpp> #include <sstream> #include <fstream> using namespace mcc; using Variable = Config::Variable; mcc::Config::Config(int argc, char** argv) { std::string config_path = "./mcc.cfg"; // Defaut config file path // Parse variables from command-line arguments for (int i = 1; i < argc; ++i) { ...
#include <iostream> #include <boost/program_options.hpp> #include <boost/filesystem.hpp> #include <chrono> typedef std::chrono::high_resolution_clock Clock; #include "blockchain.h" #include "App.h" #include "sgx_urts.h" #include "sgx_uae_service.h" #include "Enclave_u.h" #include "string.h" #include "Debug.h" #include...
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
#include "TrainWindow.h" TrainWindow::TrainWindow(int16_t* sensorDataptr): sensorDataptr(sensorDataptr){ //what is this for? for(int i=0; i<11; i++){ sensorDataptr[i] = i; } inputGroup = new QGroupBox(tr("Input")); inputLabel = new QLabel(tr("Training Word:")); wordInput...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2022, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
/* * Sequencer.cpp * * Created on: Dec 24, 2018 * Author: david */ #include "Sequencer.h" Sequencer::Sequencer() { _enabled = 0; } void Sequencer::begin(RGBOutput* rgb) { _enabled = 0; _currentBank = 0; _currentStep = 0; _markStartTime = 0; _lastChangeTime = micros(); _nextChangeTime = _lastChange...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include "base/logging.h" #include "proto.h" void ProtoHandler::EthHdr(const unsigned char *src, const unsigned char *dest, const uint16_t proto) { ethhdr *eth = pkt_info_->eth; memcpy(eth->h_dest, dest, MAC_A...
/* The MIT License (MIT) Copyright (c) 2022 Lancaster University. 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 "../meter/bucket_functions.h" #include <gtest/gtest.h> using namespace atlas::meter; using namespace std::chrono; static int64_t ms(int millis) { return nanoseconds{milliseconds{millis}}.count(); } static int64_t s(int secs) { return nanoseconds{seconds{secs}}.count(); } TEST(BucketFunctions, Age) { aut...
// Copyright (c) 2012-2014 <NAME>, <NAME>, <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, m...
#include "headers/TaggedBrownCorpus.h" #include "headers/Vocab.h" #include "headers/NN.h" #include "headers/Doc2Vec.h" #include <set> #include <map> #include <vector> //=======================TaggedBrownCorpus======================= TaggedBrownCorpus::TaggedBrownCorpus(const char * train_file, long long seek, long lon...
#include <iostream> #include <chrono> #include <cassert> #include <random> #include <poll.h> #include <sys/socket.h> #include <unistd.h> #include "messaging/messaging.h" #include "visionipc/ipc.h" #include "visionipc/visionipc_server.h" #include "logger/logger.h" std::string get_endpoint_name(std::string name, Visio...
/* A library for Grove - Copyright (c) 2018 seeed technology co., ltd. Author : <NAME> Create Time : November 2018 Change Log : The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files ...
#include <iostream> #include <vector> #include <fstream> #include <sstream> #include "anom.hpp" #include "argparse.hpp" using namespace std; void load_data(vector<vector<double> > &numeric, vector<vector<long> > &categorical, vector<int> &times, const string &numeric_filename, const string &categ_filen...
#include <ros/ros.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings.h> #include <sensor_msgs/CameraInfo.h> #include <opencv2/highgui/highgui.hpp> #include <dynamic_reconfigure/server.h> #include <chapter5_tutorials/CameraConfig.h> #include <camera_in...
/* Fake86: A portable, open-source 8086 PC emulator. Copyright (C)2010-2012 <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 the License, or (at your option) any...
/** * @author <NAME> * @date 05.05.20 */ #include "CServer.h" #include "CConfiguration.h" #include "logging/CConsoleLogger.h" #include "logging/CFileLogger.h" #include "CRequest.h" #include "CFile.h" #include "CStaticFile.h" #include "CDirectory.h" #include "CExecutableScript.h" #include "CError.h" #include "CShutdown...
#include <algorithm> // sort #include <iostream> // cin y cout #include <vector> #include <cmath> // abs() // #include <chrono> #include "../../sources/Point.hpp" // Auxiliar para ordenar vector de puntos ascendentemente por valor en eje x. bool asc_x (const gal::Point &i, const gal::Point &j) { int num_...
/* * 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...
//===--- FormalEvaluation.cpp ---------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/* Starshatter OpenSource Distribution Copyright (c) 1997-2004, Destroyer Studios LLC. 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 t...
// Optimise #include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "/home/shahraaz/bin/debug.h" #else #define db(...) #endif using ll = long long; #define f first #define s second #define pb push_back #define all(v) v.begin(), v.end() const int NAX = 1e5 + 5, MOD = 1000000007; using ld = long double; c...
// // Created by lufle002 on 25.05.20. // #include "graph.h" #include "queue.h" #include <iostream> #include <string> #include <ctime> /** * Konstruktor. * Erzeugen der Adjazentzmatrix. */ Graph::Graph() { knotenzahl = 0; for(int i = 0; i < MAX_KNOTEN; ++i) { Adj[i] = new int[MAX_KNOTEN]; } ...
// // Created by <NAME> on 05/11/2017. // #include "OnionLayer.h" #include <iostream> using namespace std; OnionLayer::OnionLayer(char *filepath) { // load file ifstream file (filepath); if (file.is_open()) { string line; int cnt = 0; while (getline(file, line)) { ...
/* * Copyright (c) 2019, Arm Limited and affiliates. * SPDX-License-Identifier: Apache-2.0 * * 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/LICEN...
/* * Copyright 2008-2012 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. Users and possessors of this source code * are hereby granted a nonexclusive, royalty-free license to use this code * ...
#include <math.h> #include <assert.h> #include <string.h> #include "esvm_utils.h" /* * Ported to general C++ from the mex version by <NAME> */ /* * Fast image subsampling. * This is used to construct the feature pyramid. */ // struct used for caching interpolation values struct alphainfo { int si, di; f...
// Copyright <NAME> 2015 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <cpl/search/brent_find_cycle.hpp> #include <gtest/gtest.h> #include <cstddef> // size_t #include <cstdint> ...
#include "ATen/Context.h" #include "c10/cuda/CUDACachingAllocator.h" #include "torch/script.h" #include "cuda_runtime_api.h" #include "trtorch/trtorch.h" #include "timer.h" #include <iostream> #include <sstream> #include <memory> #define NUM_WARMUP_RUNS 20 #define NUM_RUNS 100 bool checkRtol(const at::Tensor& diff,...
/** * MIT License * Copyright (c) 2021 <NAME>, <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, modi...
/* Copyright (c) 2014 <NAME> <<EMAIL>> Permission to use, copy, modify, and/or 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. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRAN...
/*=============================================================================== Copyright (c) 2012-2015 Qualcomm Connected Experiences, Inc. All Rights Reserved. Vuforia is a trademark of PTC Inc., registered in the United States and other countries. =================================================================...
#include "header_values.h" #include <iostream> using namespace std; HeaderValues::HeaderValues(){ n = 0; keys.clear(); types.clear(); values.clear(); comments.clear(); } HeaderValues::~HeaderValues(){ } void HeaderValues::addKey(std::string key, char type, std::string value, std::string comment){ n+=1; keys....
/* Written by <NAME>. based on origninal code under the followind lisence: A C-program for MT19937, with initialization improved 2002/1/26. Coded by <NAME> and <NAME>. Before using, initialize the state by using init_genrand(seed) or init_by_array(init_key, key_length). Copyright (C) 1997 - 2002, <...
/* * merge_region_iterator.cpp * * Created on: Jun 3, 2015 * Author: <NAME> */ #include <summy/analysis/domains/merge_region_iterator.h> #include <assert.h> using namespace std; using namespace analysis; /* * region_pair_desc */ std::optional<field_desc_t> region_pair_desc_t::field_first_region() { ...
/* * 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 bin...
#include <rabbit/graphics/material.hpp> #include <rabbit/graphics/graphics.hpp> #include <rabbit/core/assets.hpp> #include <rabbit/core/config.hpp> #include <rabbit/core/uuid.hpp> #include <array> #include <fstream> using namespace rb; inline std::uint32_t calculate_material_flags(const material_desc& des...
// Libraries #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <WiFiClientSecure.h> #include <time.h> #include <TimeLib.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> //https://github.com/tzapu/WiFiManager #include "SSD1306Brzo.h" #include "OLEDDisplayUi.h" #include...
#include <libff/algebra/curves/mnt/mnt4/mnt4_pp.hpp> #include <libff/algebra/curves/mnt/mnt6/mnt6_pp.hpp> #include <libff/algebra/curves/mnt/mnt4/mnt4_init.hpp> #include <libff/algebra/curves/mnt/mnt6/mnt6_init.hpp> #include <time.h> typedef libff::mnt4_pp ppT; typedef libff::mnt6_pp inner_curveT; typedef inner_curve...
/***************************************************************************** * MBTiler * * Writes directories of suitably tiled PNGs or JPEGS to a SQLite file * using the SQLite C API. * * Inspired by GDAL's MBTiles driver, this module has no dependencies * not already provided by GDAL and OGR. * * Author: <...
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/leak_detection.h" #include "Spanish/propositions/es_LinearPropositionFinder.h" #include "Spanish/propositions/es_SemTreeUtils.h" #include "Generic/theories/PropositionSet.h" #include "Generic/theories/Proposition.h" ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include "DaemonConf.hh" #include "Logger.hh" #include "Trace.hh" #include "Utility.hh" #include "Version.hh" #include <string> #include <sstream> extern "C" { #include <stdlib.h> #include <unistd.h> #include <sys/types.h...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <stdio.h> #include <string.h> #include <fcntl.h> #include <assert.h> #include <sys/ioctl.h> #include <sys/socket.h> #include <net/if.h> #include <linux/if_ether.h> #include <linux/if_tun.h> #include <linux/if_packet.h> #include "base/l...
#include <unistd.h> #include <stdlib.h> #include <stdio.h> #include "rpinrf24.hpp" #include "wpihardware.hpp" #include "spihardware.hpp" #include "radioutil.hpp" #include <string.h> void set_channel(NordicRF24 *r, int channel) { if (channel >= 128){ fprintf(stderr, "Invalid channel\n") ; return ; } r->se...
// Copyright (c) 2017-2019 FRC Team 3512. All Rights Reserved. #include "dsdisplay/UdpSocket.hpp" #include <fcntl.h> #include <sys/socket.h> #include <cstring> #include <wpi/raw_ostream.h> #include "dsdisplay/Packet.hpp" using namespace frc3512; UdpSocket::~UdpSocket() { close(); } UdpSocket::Status UdpSocket::...
#include "BasicStat.hpp" #include "auxfields.hpp" #include "ReadWarnings.hpp" #include <iomanip> #include <iostream> #include <memory> #include <cmath> BasicStat::BasicStat(bool is_indel) : read_count(0) , sum_map_qualities(0) , sum_single_ended_map_qualities(0) , num_plus_strand(0) , num_minus_st...
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 2015 <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...
/* Copyright (c) 2005-2018 Intel Corporation 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 (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....
#include "ProjectMesh.h" #include <iostream> #include <stdexcept> using namespace Eigen; using namespace std; struct Triangle2i { Vector2i v0; Vector2i v1; Vector2i v2; }; int min3(int v0, int v1, int v2) noexcept { return min(min(v0, v1), v2); } int max3(int v0, int v1, int v2) noexcept {...
/// \file assign_update_bcs_MPI.cpp /// \brief Defines a class that inherits all boundary types and /// assigns and updated the boundaries. /// \author <NAME> /// /// Modifications :\n /// - 2018.08.08 JM: moved code. #include "defines/functionality_flags.h" #include "defines/testing_flags.h" #include "tools/repo...
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
#include "Chunk.h" #include "ChunkManager.h" #include "Application.h" #include "Utils.h" #define PROP_FACE_MASK 7 #define PROP_FACE_EXP 0 #define PROP_POS_MASK 0xfff #define PROP_POS_EXP 6 #define PORP_ID_MASK 0xfff #define PORP_ID_EXP 18 #define TOP_CHUNK_BORDER 0 #define BOTTOM_CHUNK_BORDER 1 #define RIGHT_CHUN...
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentatio...
#include "sdl_engine.h" #include <algorithm> #include <cstdio> #include <ctime> #include <map> #include <SDL2/SDL.h> #include "color.h" #include "debug.h" #include "event.h" #include "graphics_engine.h" void SDLEngine::init(int height, int width) { width_ = width; height_ = height; SDL_Init(SDL_INIT_EVERYTHING...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pow.h> #include <arith_uint256.h> #include <chain.h> #include <chainparams.h> #i...
#include "image_manipulator.h" using namespace cv; ImageManipulator::ImageManipulator(Mat& image) { this->debugging = false; this->image = image; } ImageManipulator ImageManipulator::clone() { Mat new_data = this->image.clone(); return ImageManipulator(new_data); } ImageManipulator ImageManipulator::get_gre...
/* * Copyright (C) 2016 The CyanogenMod Project * Copyright (C) 2008 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/lic...
//***************************************************************************** // Copyright 2017-2018 Intel Corporation // // 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 "common.h" #include "lightUnit.h" #include "animations.h" #define ARDUINOJSON_USE_LONG_LONG 1 #include <ArduinoJson.h> #include <String> #include <map> static StaticJsonDocument<512> cmdDoc; typedef void (*OpHandler)(); typedef std::map<String, OpHandler> OpHandlers; static OpHandlers opHandlers; void parse...
// Copyright: 2019 <NAME> // Author: <NAME> (<EMAIL>) #include <iostream> #include <string> #include <unordered_map> #include "quick/debug.hpp" #include "gtest/gtest.h" #include "aparse/parser.hpp" #include "aparse/parser_builder.hpp" using std::string; using std::unordered_map; enum LexerScope : uint8_t { LITE...
#include <string> #include <fstream> #include <sstream> #include <iostream> #include "../CJsonObject.hpp" using namespace std; string str="{\"refresh_interval\":60," "\"test_float\":[18.0, 10.0, 5.0]," "\"timeout\":12.5," "\"dynamic_loading\":[" "{" "\"so_path\":\"plugins/User.so\", \"load\":false, \"version...
#include <xtd/xtd.core> class encoding { }; /// @brief Encode and decode to UTF-8. /// @remarks see https://en.wikipedia.org/wiki/UTF-8 class utf8 { public: static int32_t from_bytes(const std::vector<xtd::byte_t>& bytes, size_t index = 0) { size_t size = get_format(bytes[0]); if (size == 1) return bytes...
/**************************************************************************** * * Copyright (c) 2019 Vivante Corporation * * 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 ...
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation the rights to use,...
/////////////////////////////////////////////////////////////////////////////////////////////////// // // Projektas LIEPA (https://liepa.ra\xF0tija.lt) // Sintezatoriaus komponentas LithUSS.dll // Failas ilgiai.cpp // Autorius dr. <NAME>\xF0\xEB // 2015 08 11 // /////////////////////////////////////////////////////////...
#include <fcntl.h> #include <netinet/tcp.h> #include <poll.h> #include <switch.h> #include <common/logger.hpp> #include <cstring> #include <nxcord/discord_websocket.hpp> #include <nxcord/websocket_zlib_stream.hpp> #include <sstream> ssize_t recv_callback(wslay_event_context_ptr ctx, uint8_t *buf, size_t len, ...
// 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 "remoting/host/win/launch_process_with_token.h" #include <windows.h> #include <utility> #include "base/logging.h" #include "base/win/scope...
#include <iostream> #include <cmath> #include <random> #include <ctime> #include <array> #include <iterator> #include <algorithm> #include <string> #include <SFML/Graphics.hpp> #include <imgui.h> #include <imgui-SFML.h> #include <FastNoise.h> #include <aylando/game/World.h> namespace ay = aylando; float simplex...
#include <iostream> #include <vector> #include <memory> #include <algorithm> #include <filesystem> #include "ArguementHandler/ArgHandle.hpp" #include "SimpleCppTextFileHandler/file.hpp" #include "main.hpp" //https://thispointer.com/find-all-occurrences-of-a-sub-string-in-a-string-c-both-case-sensitive-insensitive/ voi...
/** * @file new_sim_file_util.cpp * * The file includes some helper classes for parsing the simulation file:\n * SimulatorTokens\n * NewSimulatorFileUtil * * @author <NAME> <<EMAIL>> * @version 0.2 * @date 2010 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WA...
// Copyright (c) 2019 Graphcore Ltd. All rights reserved. // A tool for visualising the Ir (PopART's Intermediate representation) // as a .dot file which can be compiled into a .pdf file. // This tool supports training and as well as inference. #include <boost/program_options.hpp> #include <filereader.hpp> #include <i...
#include <algorithm> #include <iostream> #include <vector> #include <string> #include <cmath> #include <map> const int N = 4, R = 3; using namespace std; void perm_exp(){ vector<bool> v[2]; v[0].resize(N, 0); v[1].resize(N, 0); fill(v[0].end() - R, v[0].end(), true); fill(v[1].end() - R, v[1].end(), true); ...
#include "GU140X32F_7703A.h" //#define DEBUG_TXT(x) Serial.print(x) #define DEBUG_TXT(x) 0 //#define DEBUG_NUM(x) Serial.print(x, HEX) #define DEBUG_NUM(x) 0 //#define DEBUG_OUT(x) Serial.println(x) #define DEBUG_OUT(x) 0 //#define DEBUG_SIG(x) Serial.println(x) #define DEBUG_SIG(x) 0 #define OUT sin #define B...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <fcntl.h> #include <linux/if_tun.h> #include "crts/debug.h" #include "tun_alloc.hpp" #include "getTunViaUSocket.hpp" // We require that the p...