text
stringlengths
3.08k
12.5k
#include <assert.h> #include <algorithm> #include <chrono> #include <pthread.h> #include <time.h> #ifdef WIN32 #include <windows.h> #elif defined(__APPLE__) #include <mach/thread_act.h> #endif #include "cpulimiter.h" namespace { using ThreadId = std::thread::id; using ThreadHandle = std::thread::native_han...
#include <iostream> #include <thread> #include <chrono> using namespace std::chrono; #include <cuda_sha.hpp> #include <x86exts_sha.hpp> #include <arm_sha.hpp> #include <sha256.hpp> #include <mutex> #include <boost/asio/post.hpp> #include <boost/asio/thread_pool.hpp> #include <boost/program_options.hpp> #include <boos...
#include <iostream> #include <fstream> #include <string_view> #include <string> #include <algorithm> #include <vector> #include <cstdlib> #include <climits> #include <iomanip> #include <type_traits> #include <bit> #include <cassert> #include "identifiers.h" int64_t ReverseBits(const char* p1, const char* p2) { asser...
#include <string.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string> #include <vector> #include <sys/time.h> #include <unistd.h> #include <sparsehash/dense_hash_map> #include "fastq-lib.h" #include "utils.h" #include "tidx.h" void usage(FILE *f); using namespace std; ...
//$Id$ //------------------------------------------------------------------------------ // TestImpulsiveBurn //------------------------------------------------------------------------------ // GMAT: Goddard Mission Analysis Tool // // Author: <NAME> // Created: 2009.02.27 // /** * Purpos...
struct h2_warning { h2_singleton(h2_warning); bool warning = false; bool swap(bool new_warning) { bool old_warning = I().warning; I().warning = new_warning; return old_warning; } }; struct h2_assert : h2_once { bool oppose; h2_fail* fails = nullptr; h2_ostringstream oss; h2...
// $Id$ // // Copyright (C) 2003-2006 Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #define PY_ARRAY_UNIQUE_SYMBO...
/** * Copyright (c) 2018-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include <...
//===--- SIRGen.hpp - Sora IR Generator Interface ---------------*- C++ -*-===// // Part of the Sora project, licensed under the MIT license. // See LICENSE.txt in the project root for license information. // // Copyright (c) 2019 <NAME> //===----------------------------------------------------------------------===// ...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "ParmParse.H" #include "CH_HDF5.H" #include "parstream.H" #include "EBExp...
// Copyright 2009, Google Inc. 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 conditions and ...
#include "Player.h" Player::Player() : GameObject() {} Player::Player(glm::vec3 pos, glm::vec3 size, float rotation, std::string modelName) : GameObject(pos, size,rotation, modelName) {} void Player::Move(Movement direction, float dt) { // Move the Snowman float moveSpeed = MoveSpeed * dt; if (direction == FO...
#include <stdio.h> #include <stdlib.h> #include <string> #include "bsp/board.h" #include "tusb.h" #include "usb_descriptors.h" #include "hardware/adc.h" #include "pico/stdlib.h" #include "pico/time.h" #include "AnalogueInput.h" #include "DigitalInput.h" // Blink pattern times. enum { blinkIntervalNotMounted = 250...
// First project of ASA, done by <NAME> and <NAME>, group #26 #include <iostream> #include <vector> #include <stack> #define NIL -1 #define max(a, b) (a < b ? b : a) #define min(a, b) (a < b ? a : b) using namespace std; stack<int> *st = new stack<int>(); stack<int> *stSCCs = new stack<int>(); // stack of recently dis...
#include "modprop/compo/ConstantRegressor.hpp" #include "modprop/compo/ExponentialWrapper.hpp" #include "modprop/compo/OffsetWrapper.hpp" #include "modprop/compo/ModifiedCholeskyWrapper.hpp" #include "modprop/compo/TransformWrapper.hpp" #include "modprop/utils/LowerTriangular.hpp" #include "modprop/utils/Randomization...
#ifndef FORCE_DEBUG #define NDEBUG #endif #include <string.h> #include "base/CommandLineParser.h" #include "aligns/KmerAlignCore.h" #include "analysis/DNAVector.h" #include <math.h> #include "analysis/KmerTable.h" //======================================================================== //=====================...
#include <iostream> #include <memory> #include <algorithm> #include <set> #include <string> #include <vector> #include "linked_ptr.hpp" using namespace smart_ptr; using std::cout; using std::endl; struct A { A() { a = 0; } int a; }; struct B : A { B() { a = 1; } }; bool base_te...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <omp.h> //#define NUM_THREAD 4 #define OPEN #ifdef GEM5_WORK #include <stdint.h> extern "C" { void m5_dumpreset_stats(uint64_t ns_delay, uint64_t ns_period); void m5_work_begin(uint64_t workid, uint64_t threadid); void m...
#pragma once #include <pure/traits.hpp> #include <pure/object/interface.hpp> #include <pure/support/enumerator.hpp> #include <pure/impl/Trait_Compare.hpp> #include <pure/impl/Trait_Hash.hpp> #include <pure/impl/Trait_Print.hpp> #include <pure/support/immer_compat.hpp> #include <immer/map.hpp> namespace pure { struc...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <assert.h> #include <deque> #include <forward_list> #include <functional> #include <iterator> #include <list> #include <memory> #include <set> #include <stddef.h> #include <unordered_set> #include <...
// Copyright (C) 2014-2020 <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 3 of the License, or (at your option) // any later version. // // This program is distribu...
/* ** $Id: ldump.c $ ** save precompiled Lua chunks ** See Copyright Notice in lua.h */ #define ldump_c #define LUA_CORE #include "extern/lua-5.4.2/src/lprefix.h" #include <stddef.h> #include "extern/lua-5.4.2/src/lua.h" #include "extern/lua-5.4.2/src/lobject.h" #include "extern/lua-5.4.2/src/lstate.h" #include "...
/* Copyright © 2015 Jesse 'Jeaye' Wilkerson See licensing at: http://opensource.org/licenses/BSD-3-Clause File: value.hpp Author: Jesse 'Jeaye' Wilkerson */ #pragma once #include <boost/variant.hpp> #include "detail/normalize.hpp" #include "file.hpp" #include "data.hpp" #include "map.hpp" #include "arra...
#include <ros/ros.h> #include <ros/console.h> #include <std_msgs/String.h> #include <nav_msgs/Odometry.h> #include <tf/transform_broadcaster.h> #include <geometry_msgs/TransformStamped.h> #include <iomanip> #include <iostream> #include <sstream> #define PI 3.1415926535897931 int64_t enL1 = 0; int64_t enL2 = 0; int64...
// $Id: client2.cpp 95177 2011-11-30 15:56:58Z johnnyw $ #include "TestC.h" #include "ace/Get_Opt.h" #include "tao/IORManipulation/IORManip_Loader.h" // Ensure that the PI library is linked in when building statically #include "tao/PI/PI.h" #include "orbsvcs/FaultTolerance/FT_ClientService_Activate.h" #include "orbsvc...
/* A program for a Qt Socket-based Temperature Application * Written by <NAME> for the book "Exploring BeagleBone: Tools and * Techniques for Building with Embedded Linux" by <NAME> & Sons, 2014 * ISBN 9781118935125. Please see the file README.md in the repository root * directory for copyright and GNU GPLv3 license ...
#include <stdio.h> #include <stdlib.h> #include <cctype> #include "base64.h" #ifdef b64_USE_CUSTOM_MALLOC extern void* b64_malloc(size_t); #endif #ifdef b64_USE_CUSTOM_REALLOC extern void* b64_realloc(void*, size_t); #endif char *b64_encode(const char *src, size_t len) { int i = 0; int j = 0; char *enc =...
// license:BSD-3-Clause // copyright-holders:<NAME>,<NAME> /*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "emu.h" #include "video/re...
/* =========FOR INTERNAL USE ONLY. NO DISTRIBUTION PLEASE ========== */ /********************************************************************* Copyright 1999-2007, University of Cincinnati. All rights reserved. By using this software the USER indicates that he or she has read, understood and will comply with the f...
// $Id: Scheduling_Service.cpp 97014 2013-04-12 22:47:02Z mitza $ #include "Scheduling_Service.h" #include "ace/Get_Opt.h" #include "ace/Auto_Ptr.h" #include "ace/Argv_Type_Converter.h" #include "orbsvcs/CosNamingC.h" #include "ace/OS_main.h" #include "ace/OS_NS_stdio.h" #include "ace/OS_NS_strings.h" #include "ace/O...
#include "vmapexport.h" #include "model.h" #include "wmo.h" #include "mpq_libmpq04.h" #include <cassert> #include <algorithm> #include <cstdio> Model::Model(std::string &filename) : filename(filename) { } bool Model::open() { MPQFile f(filename.c_str()); ok = !f.isEof(); if (!ok) { f.close()...
/* * Copyright 2003-2008, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * * Authors: * <NAME> */ #include <CharacterSet.h> #include <CharacterSetRoster.h> #include <UTF8.h> #include <errno.h> #include <iconv.h> #include <stdio.h> //#define DEBUG_CONV 1 #ifdef DEBUG_CONV...
#include "Geometry/MTDNumberingBuilder/interface/MTDTopology.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" MTDTopology::MTDTopology(const int& topologyMode, const ETLValues& etl) : mtdTopologyMode_(topologyMode), etlVals_(etl) {} bool MTDTopology::orderETLSector(const GeomDet*& gd1, const GeomDet*&...
/* GNU/Linux/SH specific low level interface, for the remote server for GDB. Copyright (C) 1995-2020 Free Software Foundation, Inc. This file is part of GDB. 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 Fre...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
// Copyright (C) 2013 <NAME> // Author: <NAME> <<EMAIL>> #include "qt/backup2/backup_snapshot_manager.h" #include <QFileDialog> #include <QMap> #include <QMessageBox> #include <QMutex> #include <QSet> #include <QString> #include <QVector> #include <QWaitCondition> #include <set> #include <string> #include <vector> #...
// // Created by serafeim on 28/5/2019. // #include <iostream> #include <fstream> #include <ctime> #include <unistd.h> #ifdef __APPLE__ #include <sys/wait.h> #else #include <wait.h> #endif #include "TransitionMatrix.h" #include "../Utils.h" #include "../libs/csv-filter/dsv_filter.hpp" using namespace std; usi...
/* Copyright (c) 2022, NVIDIA CORPORATION. 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 condi...
//////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2020 NovAtel Inc. // // 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 rest...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <map> #include <set> using namespace std; struct Journal { int cCnt, pCnt; string name; Journal(int c, int p, const string &s): cCnt(c), p...
///////////////////////////////////////////////////////////////////////////// // ARGSS - Copyright (c) 2009 - 2010, <NAME> (vgvgf) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // ...
/************************************************************************* > File Name: graph.cc > Author: anryyang > Mail: <EMAIL> > Created Time: Thu 28 Sep 2017 02:20:50 PM ************************************************************************/ #include "graph.h" #include <fstream> #include <sstr...
#include <algorithm> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <sstream> #include <stack> #include <string> #include <utility> #include <vector> #include <cassert> #include <climits> #inclu...
/******************************************************************************* * Copyright (c) 2007, 2008, CerroKai Development * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistribu...
#include "UARTClass.h" UARTCHANNEL::UARTCHANNEL() { uBaudRate = 57600; // Baud Rate uByteSize = 8; // Byte Size uParity = 0; // No Parity uStopBits = 0; // 1 Stop Bit uComPort = 2; memset(&OSR, 0, sizeof(OVERLAPPED)) ; //wipe the overlapped struct memset(&OST, 0, sizeof(OVERLAPP...
#include "ImageList.h" #include "Helper.h" #include <QFileInfo> #include <QDir> #include <QStyledItemDelegate> #include <QPainter> #include <QMenu> #include <QAction> #include <QHeaderView> #define SEGM_COLOR QColor(128,128,128) #define CURSOR_SIZE QSize(16,16) enum ImageListRole { PathRole = Qt::UserRole, Cu...
#include "stlexam.h" #pragma hdrstop /************************************************************************** * * alg5.cpp - Example programs for STL generic algorithms those producing * scalar values. Section 12.6 * *************************************************************************** * * ...
#include "Skybox.h" #include "GL/glew.h" Skybox::Skybox() { /* Cube GLfloat cubeVerts[] = { -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, 0.5f, -0.5f, -0.5f, 1.0f, 0.0f, 0.5f, 0.5f, -0.5f, 1.0f, 1.0f, 0.5f, 0.5f, -0.5f, 1.0f, 1.0f, -0.5f, 0.5f, -0.5f, 0.0f, 1.0f, -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -0.5f, -0.5f, 0.5f...
// // NetworkDivideAndCombine.cpp // Ridesharing-Matching-Prediction // // Created by YzFENG on 2021/8/8. // #include "Network.hpp" int calSubIndex(pair<int, int> node, pair<int, int> size) { if (node.first <= size.first / 2) { if (node.second <= size.second / 2) { return 1; } ...
/* * This file belongs to the Galois project, a C++ library for exploiting parallelism. * The code is being released under the terms of the 3-Clause BSD License (a * copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
#include "rotateyaw.h" #include "ros/ros.h" #include <boost/thread.hpp> #include <iostream> #include "lrs_msgs_tst/ConfirmReq.h" #include "mms_msgs/Cmd.h" #include "mms_msgs/Ack_mission.h" #include "guidance_node_amsl/Reference.h" #include "executil.h" extern ros::NodeHandle * global_nh; extern ros::Publisher * gl...
#include <sys/types.h> #include <unistd.h> #include <iostream> #include <memory> #include <string> #include <gloo/allreduce.h> #include <gloo/barrier.h> #include <gloo/rendezvous/context.h> #include <gloo/rendezvous/file_store.h> #include <gloo/rendezvous/prefix_store.h> #include <gloo/transport/tcp/device.h> #defin...
#include "Quad.h" #include "Windows.h" #include "ProfileCPU.h" #include <iostream> #define PROFILE_CPU using namespace Common; void UsageSample() { Quad::SetAtomicSize(1); Quad::SetCapacity(4); QTRegion pRegion = QTRegion(QTPoint(0, 0), QTPoint(1000, 1000)); Quad * pQuad = new Quad(pRegion); PROFILER_INIT("ti...
#include<sys/types.h> #include<sys/socket.h> #include<netinet/in.h> #include<arpa/inet.h> #include<assert.h> #include<stdio.h> #include<unistd.h> #include<errno.h> #include<string.h> #include<fcntl.h> #include<stdlib.h> #include<sys/epoll.h> #include<pthread.h> #define MAX_EVENT_NUMBER 1024 #define BUFFER_SIZE 10 // 这段...
#include "rendering/RenderData.h" #include "common/ParcellationLabelTable.h" #include <spdlog/spdlog.h> namespace { // Define the vertices and indices of a 2D quad: static constexpr int sk_numQuadVerts = 4; static constexpr int sk_numQuadPosComps = 2; // Define the vertices and indices of a 2D circle: //static con...
/** * @author <NAME> * @file unal_feature.cc Feature counting unaligned words * * * Technologies langagieres interactives / Interactive Language Technologies * Inst. de technologie de l'information / Institute for Information Technology * Conseil national de recherches Canada / National Research Council Canada...
#include "JoystickInfoPanel.h" #include "imgui/imgui.h" #include "imgui/imgui_internal.h" #include "IconsFontAwesome5.h" #include "MainDockSpace.h" #include "Engine.h" JoystickInfoPanel::JoystickInfoPanel(bool* show) :m_Show(show), Layer("JoystickInfo") { } void JoystickInfoPanel::OnImGuiRender() { if (!*m_Show)...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
//////////////////////////////////////////////////////////////////////////////// //! \file //! //! \author <NAME> //! //! \date 16/04/2018 //! //! \par Function: //! Contains the definition of static data and functions of the election //! creation program. //! ///////////////////////////////////////////////////////////...
// Humidity and Temperature Sensor / Fan Controller // // <NAME> 2021 // // USES DHT22 Humidity / Temperature Sensor and an external power strip with relay ("IOT Relay" from Digital Loggers) // // REQUIRES the following Arduino libraries: // - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library // - Adaf...
/** * Copyright (c) 2015 Shine Research http://shine-research.com/ * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any ...
#include <iostream> #define M 3 using namespace std; // Function to prompt the user for player X or player O string PromptName(char player){ string playerName = ""; // string to store user input cout << "Enter name for the " << player << " player: "; // Prompt the user for input name cin >> playerName; // store ...
#include "backtrack.hpp" #include "aimbot.hpp" #include "weapon_groups.hpp" #include "../../helpers/math.hpp" CBacktrack* g_Backtrack = new CBacktrack(); void CBacktrack::CMove(CUserCmd* pCmd) { if (!g_EngineClient->IsInGame() || !g_LocalPlayer || !g_LocalPlayer->IsAlive()) { data.clear(); return; } auto we...
#include "benchmark.h" #include "common.h" #include "kdtree.h" #include "random.h" #include "triangle.h" #include "vector.h" #include <cassert> namespace { const double PI = 3.14159265358979323846; Vector UniformSampleSphere() { auto u1 = RandDouble(); auto u2 = RandDouble(); assert(u1 >= 0.0 && u1 < 1.0); as...
#include "CallableWithSelfAndArgs.h" #include "System/Bool_vec.h" #include "System/rcast.h" #include "Type_Lambda.h" #include "Varargs.h" #include "Scope.h" #include "TCI.h" #include "Vm.h" Type_Lambda::Type_Lambda() : Type_BaseBin( "Lambda" ) { } bool Type_Lambda::destroy_attrs() const { return false; } Variabl...
/* * Copyright 2014-2019 <NAME>. 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) */ //[oglplus_vertex_attrib_loc_ops template <> class __ProgVarLocOps<__tag_VertexAttrib> { public: static void BindLocatio...
#include "create_anon_file.h" /* Author: <NAME> */ // Load data from .csv to data int read_csv(LocalCodes *data, char *fname, int skip) { int i, j; char line[1024]; const char* tok; FILE *file; if (!(file = fopen(fname, "r"))) { printf("New file created: %s\n", fname); file=fopen(fname, "w+"); ...
/* * ConnectorThread.cpp * * Created on: 2015年10月27日 * Author: wenshengming */ #include "ConnectorThread.h" bool BuildRandomPacket(LPacketSingle* pPacket, bool bBroadCast, int& nPacketSendIndex); ConnectorThread::ConnectorThread() { m_nSocket = -1; m_bIsLittleEndian = true; } ConnectorThread::~Connecto...
// Copyright(c) 2019 - 2020, #Momo // 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 conditions...
#include "BaseCanvas.h" #include "GeometryCanvas.h" bool Circle::filledFlag{true}; Circle::Circle (double radius, Complex center) { this->parameter1 = radius; this->parameter2 = 1 / radius; this->parameter3 = center.Re(); this->parameter4 = center.Im(); if (radius < 0) { printf("Bad radius! \n"); this->pa...
// Copyright 2020 Southwest Research Institute. 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 requ...
#pragma once #include <iostream> #include <fcntl.h> #include <io.h> #include <clocale> #include <vector> #include <string> #include <map> #include <fstream> #include <cmath> #include <complex> #include <filesystem> #include <fstream> #include <cctype> #include <chrono> #include <SFML/System.hpp> #include <SFML/Graphic...
#include "SceneIntro.h" #include "PackInVideo.h" #include "Presentation.h" #include "Application.h" #include "ModuleTextures.h" #include "ModuleRender.h" #include "ModuleAudio.h" #include "ModuleInput.h" #include "ModuleFadeToBlack.h" #include "ModulePlayer.h" #include "LevelManager.h" #include "ModuleWindow.h" #includ...
// Copyright (c) 2015, <NAME> and <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 conditions ...
/* * Copyright (C) 2015 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...
/* * @lc app=leetcode id=306 lang=cpp * * [306] Additive Number * * https://leetcode.com/problems/additive-number/description/ * * algorithms * Medium (29.84%) * Total Accepted: 62.3K * Total Submissions: 207.9K * Testcase Example: '"112358"' * * Additive number is a string whose digits can form additi...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include <iostream> using std::cerr; #include "ParmParse.H" #include "LoadBa...
#include <boost/python.hpp> #define BOOST_PYTHON_STATIC_LIB // Compress void Compress_init(); void pgpbzip2_init(); void pgpzlib_init(); // Encryptions void AES_init(); void Blowfish_init(); void CAST128_init(); void Camellia_init(); void DES_init(); void IDEA_init(); void SymAlg_init(); void TDES_init(); void Twofis...
#include<iostream> #include<fstream> #include<sstream> #include<string> #include<regex> #include"linklist.cpp" using namespace std; ///////////////////////////////////////////////////////////////////////// class point { private: linklist l; public: void generateLinkList(string str); long double getFinalValu...
#include <json/json.h> #include <regex> #include <stdlib.h> #include <string.h> #include <utils.h> #include "command.h" #include "../CmdHandler.h" #include "../option.h" #define ALL 0 #define DEFAULT 1 #define CUSTOM 2 /* full name of the command */ CMDNAME("cgrep"); /* description of the command */ CMDDESCR("find co...
/* * Copyright 2012 <NAME>, CRACS & INESC-TEC, DCC/FCUP * * 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 requir...
#include "ascii_art_generator.h" #include "common_types.h" AsciiArtGenerator::AsciiArtGenerator(){} void AsciiArtGenerator::loadTargetImage(const std::string& model_image_path) { cv::cvtColor(cv::imread(model_image_path), model_image_, cv::COLOR_BGR2GRAY); // cv::resize(model_image_, model_image_, cv::Size(...
/* XMRig * Copyright 2010 <NAME> <<EMAIL>> * Copyright 2012-2014 pooler <<EMAIL>> * Copyright 2014 <NAME> <https://github.com/lucasjones> * Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet> * Copyright 2016 <NAME> <<EMAIL>> * Copyright 2017-2018 XMR-Stak <https://github.com/f...
#include"bkg_model.hpp" using Eigen::Tensor; using Eigen::VectorXf; /** * \brief Brocher (2005,BSSA) empirical relations, convert vs to vp/rho * \param vsz shear wave velocity,km/s * \param vpz primary wave velocity,km/s * \param rhoz density, g/cc */ void MOD3d:: empirical_relation(float vsz,float &vpz,float &r...
#include <bits/stdc++.h> using namespace std; #define EDGE_SIZE 400010 #define VERTEX_SIZE 100010 typedef struct _Edge { int to, next; } Edge; Edge edge[2][EDGE_SIZE]; int head[2][VERTEX_SIZE], edgePt[2]; int dfn[VERTEX_SIZE], low[VERTEX_SIZE], cntTime; int edccId[VERTEX_SIZE], edccNum, bridgeNum, vertexNum; bo...
#include "of_port_features.h" // default constructor of_port_features::of_port_features() { clear(); } // shortcut constructor of_port_features::of_port_features(uint32_t raw_value) { set(raw_value); } // clears the object void of_port_features::clear() { bandwidth_10mb_half_duplex = false; bandwidth_10mb_full_d...
#include "../headers/Scene.hpp" #include "../headers/loadShaders.h" #include "../headers/SOIL.h" #include <iostream> #include <iomanip> #include <unistd.h> Scene& Scene::getInstance() { static Scene instance; return instance; } void Scene::createVBO() { glGenVertexArrays(1, &vaoId); glGenBuffers(1, &vboId...
#include "ir/IRInst.h" #include "ir/IRShader.h" #include "ir/IRValues.h" #include "ir/IRVisitor.h" #include "slo/SloInputFile.h" #include "slo/SloShader.h" #include "util/UtLog.h" #include "xf/XfLiveVars.h" #include "xf/XfRaise.h" #include <gtest/gtest.h> #include <iostream> #include <stdarg.h> #include <stdio.h> clas...
#include "math_util.h" #include "vec3.h" #include "vec2.h" #include "mat33.h" #include "ray.h" #include <vector> #include <cassert> #include <algorithm> #include <cmath> using std::transform; using std::vector; scalar approx_gt(scalar x, scalar y) { return x > y - SCALAR_EPSILON; } scalar qf(scalar a, scalar b, sc...
/***************************************************************************** * * $Id: CommandSdos.cpp,v bc2d4bf9cbe5 2012/09/06 18:22:24 fp $ * * Copyright (C) 2006-2009 <NAME>, Ingenieurgemeinschaft IgH * * This file is part of the IgH EtherCAT Master. * * The IgH EtherCAT Master is free software; you c...
// Copyright (C) 2019 <NAME> // This source code is licensed under the BSD 3 license found in the // LICENSE file in the root directory of this source tree. #include <iostream> #include <cstdio> #include <cstdlib> #include <memory> #include <utility> #include <vector> #include <thread> #include <faiss/IndexIVF.h> #i...
/*! * @file * * @brief contains the main application for wrapping data which are collected with the alf_urg application and sended * to this client * @attention can only be build within a working ROS environment */ #include <ros/ros.h> #include <sensor_msgs/LaserScan.h> #include <tf/transform_broadcaster.h> #inc...
#include <stdio.h> #include <SDL2/SDL.h> #include <SDL2/SDL_mixer.h> #include <string> #include "globals.h" #include "GameEvent.h" #include "InputHandler.h" #include "Level.h" #include "mainMenu.h" #include "ScreenObject.h" #include "WindowHandler.h" //Creates a Level object for each line in gLEVELS_FILE andplace it ...
/* Copyright (c) 2009-2015, <NAME> All rights reserved. This file is part of Elemental and is under the BSD 2-Clause License, which can be found in the LICENSE file in the root directory, or at http://opensource.org/licenses/BSD-2-Clause */ #include "El.hpp" using namespace std; using namespace El; t...
// Name: <NAME> // Description: Parallel Arrays // Date: 9/1/2020 #include <iostream> #include <fstream> #include <string> using namespace std; void checkInputFile(ifstream &iFile, ofstream &oFile) { iFile.open("input.txt"); if (!iFile.is_open()) cout << "Input file not found.\n\n"; else cout <...
#include "mainwindow.h" #include "utils.h" #include "ui_mainwindow.h" #include "r_disco/r_stream_config.h" #include "r_pipeline/r_gst_source.h" #include "r_storage/r_storage_file.h" #include "r_utils/r_time_utils.h" #include <QMessageBox> #include <QCloseEvent> #include <functional> using namespace std; using namespac...
#include <iostream> #include <string> #include <vector> #include <cstdlib> #include <cctype> #include <csignal> #include <cstring> #include <getopt.h> #include "./global.h" #include "./thread.h" #include "./log.h" #include "./watch.h" #include "./screen.h" #include "./container.h" extern char *optarg; extern int opti...
// Copyright 2021 <NAME> #include <gtest/gtest.h> #include <omp.h> #include "./sobel_operator_omp.h" TEST(SobelOperatorOmp, EmptyMatrix) { MyImage image(0, 0); ASSERT_EQ(image.rows, 0); ASSERT_EQ(image.columns, 0); } TEST(SobelOperatorOmp, Create) { MyImage image(5, 5); ASSERT_EQ(image.rows, 5...
#include <string.h> #include <getopt.h> #include <limits.h> #include "graph.h" #include "dist_edge_list.h" #include "tc.h" #include "graph_base.h" #include "git_sha1.h" const struct option long_options[] = { {"graph_filename" , required_argument}, {"distributed_load" , no_argument}, {"num_trials" ...
/** \copyright * Copyright (c) 2013, <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...