text
stringlengths
3.08k
22k
/*========================================================== * model_2cxm_mex.c - STARDCE toolbox * * Implements the DCE 2-compartment exchange model * * Note: this is not really cpp but clang c-compiler is was not compatible with matlab after the recent MacOS update ... fix in the future! * * The calling synt...
/******************************************************************************\ * TestLuaState.cpp * * Unit tests for things declared in 'LuaState.hpp'. * * ...
/****************************************************************************** ** Copyright (C) 2008 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> ** ** Date: 10/09/08 ** ** File: mr3d_cfa...
#include "/src/stglib/stglibmt.h" //////////////////////////////////////////////////////////// TFTP PACKET #define OP_RRQ 1 #define OP_WRQ 2 #define OP_DATA 3 #define OP_ACK 4 #define OP_ERROR 5 #define EC_UNKNOWN 0 #define EC_FILE_NOT_FOUND 1 #define EC_ACCESS_VIOLATION 2 #define EC_DISK_FULL 3 #define EC_ILLEGAL_OP...
//============================================================================ // Name : HelloWorld.cpp // Author : <NAME> // Version : // Copyright : No copyright // Description : wiringBbb demonstrator/test application in C++, Ansi-style //============================================================...
#include "frustum.h" #include <glm/gtc/type_ptr.hpp> #include <iostream> void Frustum::getFrustum(glm::mat4 modelViewMatrix, glm::mat4 projectionMatrix) { float *modl = glm::value_ptr(modelViewMatrix); float *proj = glm::value_ptr(projectionMatrix); float clip[16]; float t; /* Combine the two...
#include <stdio.h> #include <opencv2/opencv.hpp> using std::cout; using std::cin; using std::endl; using namespace std; using namespace cv; Mat convertImage(Mat img){ Mat o_img = Mat(img.rows, img.cols, CV_8UC1); // Çıktı için aynı boyutta yeni bir matris oluşturulur. Mat c[3]; split(img,c); // Girdi resmi ka...
//---------------------------------------------------------- // @file : pot_ctrl.cpp // @author : <NAME> // @version: Ver0.1.4 (since 2014.05.02) // @date : 2016.06.09 //---------------------------------------------------------- #include <ros/ros.h> #include <boost/date_time/posix_time/posix_time.hpp> #include <...
#include "opencv2/imgproc.hpp" #include <vector> #include "RoadModel.h" #include <iostream> #include <string> #include <opencv2/highgui.hpp> #include <opencv2/opencv.hpp> #include "Utils.h" #include "RoadModelBuilder.h" #include "ContourBuilder.h" #include "CurvatureCalculator.h" #include "Drawer.h" #include "RoadModel...
#include "Globals.h" #include "MainObject.h" //Inherits from MainObject #include "Sphere.h" //Variable and function declarations for object in header //Definitions for SphereObject functions //Base constructor for Sphere object SphereObject::SphereObject() { MainObject::MainObject(); //Inherits from base MainObject...
/* * Adplug - Replayer for many OPL2/OPL3 audio file formats. * Copyright (C) 1999 - 2008 <NAME> <<EMAIL>>, et al. * * 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 * versi...
/* * This file is part of the OpenKinect Project. http://www.openkinect.org * * Copyright (c) 2017 individual OpenKinect contributors. See the CONTRIB file * for details. * * This code is licensed to you under the terms of the Apache License, version * 2.0, or, at your option, the terms of the GNU General Public...
/******************************************************* ** Generalized Voronoi Diagram Project ** ** Copyright (c) 2015 <NAME> ** ** Scientific Computing and Imaging Institute ** ** 72 S Central Campus Drive, Room 3750 ** ** Salt Lake City, UT 84112 ...
#include "Offline/Validation/inc/TValHist2.hh" #include "TLatex.h" #include "TStyle.h" #include "TMath.h" #include "TPad.h" //ClassImp(TValHist2) //_____________________________________________________________________________ void TValHist2::Clear(Option_t* Opt) { fHist1 = NULL; fHist2 = NULL; fSum1 = 0.0; ...
// // Created by windsoul on 2021/6/2. // #include <iostream> #include <stdio.h> #include <cstring> #include <sqlite3.h> #include <algorithm> #include <fstream> #include "headers/global.h" #include "module_checkout.h" #include "Database/file_system.h" #include "module_detect_changes.h" #include "Database/Compress.h" #...
#include <vif.hpp> using namespace vif; using namespace vif::astro; struct map_info { std::string band; std::string img; std::string err; std::string psf; float fconv = 1.0; float group_fit_threshold = 0.97; float group_aper_threshold = 0.8; float group_aper_size = fnan; float beam...
/***************************************************************************** Copyright 2013 Laboratory for Advanced Computing at the University of Chicago This file is part of . Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2017 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 <boost/multiprecision/cpp_int.hpp> ...
// Copyright 2018 <NAME> <<EMAIL>>. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #define CRYPTO_PROTOCOL_CPP #include "protocol.h" #include <stdexcept> #include <sodium.h> #include "main.h" #include "sha256.h" #include "modules/util/str.h" ...
#include <functional> #include <google/protobuf/service.h> #include <google/protobuf/stubs/callback.h> #include "kanon/net/event_loop.h" #include "kanon/net/tcp_connection.h" #include "kanon/log/logger.h" #include "kanon/util/macro.h" #include "krpc_channel.h" using PROTOBUF::Closure; using PROTOBUF::Message; usi...
/**************************************************************************** * Copyright (C) 2015 Intel Corporation. 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 Soft...
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // Created 2008/06/11 // // Author: <NAME> // // Copyright 2008-2012 Quantcast Corp. // // This file is part of Kosmos File System (KFS). // // Licensed under the Apache License, Version 2.0 // (the "License"); you may not use thi...
/* Processed by ecpg (regression mode) */ /* These include files are added by the preprocessor */ #include <ecpglib.h> #include <ecpgerrno.h> #include <sqlca.h> /* Needed for informix compatibility */ #include <ecpg_informix.h> /* End of automatic include section */ #define ECPGdebug(X, Y) ECPGdebug((X) + 100, (Y)) #l...
#include "ProbeRoute.hpp" #include <popt.h> // don't start from zero enum { OPT_HELP = 1000, OPT_PROTO, OPT_SERV, OPT_DEV, OPT_SRCIP, OPT_SYN, OPT_ACK, OPT_PUSH, OPT_NULL, OPT_FIN, OPT_XMAS, OPT_ECHO, OPT_ECHOREPLY, OPT_TSTAMP, OPT_TSTAMPREPLY, OPT_GATEWAY, OPT_TCP, OPT_UDP, OPT_ICMP, OPT_ALL, OPT...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
#pragma once #include <GraphicsUtil.hpp> #include <Maths.hpp> #include <SDL2/SDL_mixer.h> #include <UtilityClass.hpp> #include <string> #include <vector> class entityclass; class mapclass; class Graphics; class musicclass; class Game { public: Game(void); ~Game(void); void setGlobalSoundVol(const float _vol) { m_...
#include <iostream> #include <vector> #include <functional> #include <algorithm> #include <fstream> #include <numeric> enum class thing_id { ring, pen }; std::ostream& operator<< ( std::ostream& os, thing_id e ) { switch (e) { case thing_id::ring: os << "ring"; break; case thing_id::pen: os << "pen"; brea...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
/////////////////////////////////////////////////////// // File: grd_pc.cc // Desc: implement gradient + color plane cost // // Author: rookiepig // Date: 2014/04/03 // /////////////////////////////////////////////////////// #include"grd_pc.h" GrdPC::GrdPC(const Mat& l_img, const Mat& r_img, const int& max_disp, co...
/* Copyright (c) 2003-2016, <NAME> for Asdcplib Copyright (c) 2022, <NAME> for all freedcpplayer add on 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 ab...
/** * %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% * * Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI) * This file is part of the SCAPI project. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Permission is hereby granted, free of charge, to any p...
/* Copyright 2015 Google Inc. 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 by applicable law or agreed to in ...
/* voip_calls_info_model.cpp * * Wireshark - Network traffic analyzer * By <NAME> <<EMAIL>> * Copyright 1998 <NAME> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "voip_calls_info_model.h" #include <wsutil/utf8_entities.h> #include <ui/qt/utils/qt_ui_utils.h> #include <QDateTime> VoipCallsInfoModel...
/********************************************************************** * * Copyright (c) 2005, Tsujii Laboratory, The University of Tokyo. * All rights reserved. * * @file lexextract_main.cc * @version Time-stamp: <2009-12-09 18:29:03 yusuke> * Main program of lexextract * *******************************...
/* Standard C++ headers */ #include <iostream> #include <sstream> #include <memory> #include <string> #include <stdexcept> /* MySQL Connector/C++ specific headers */ #include <driver.h> #include <connection.h> #include <statement.h> #include <prepared_statement.h> #include <resultset.h> #include <metadata.h> #include ...
#include "gnpch.h" #include "Platform/Windows/WindowsWindow.h" #include "Graphen/Core/Input.h" #include "Graphen/Events/ApplicationEvent.h" #include "Graphen/Events/MouseEvent.h" #include "Graphen/Events/KeyEvent.h" #include "Graphen/Core/Application.h" #include <WinUser.h> #include <windowsx.h> #include "Graphen/R...
/* * Copyright 2020, WindTerm. * * 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 ...
// FreeDBQuery.cpp: Implementierung der Klasse FreeDBQuery. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "Wrip.h" #include "FreeDBQuery.h" #include "Resource.h" #include "WripDlg.h" #include "Track.h" #include "Drive.h" #include "TrackInfo.h" #include "DriveInf...
// Copyright 2014 The Kyua Authors. // 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 conditio...
#include "gp_navdir_data_writer.hpp" #include "gp_navdir_data_parser.hpp" #include "gp_navdir_data.hpp" #include <iostream> using namespace std; void print_lineage(int indent, lineage_data* lineage); int main (int argC, char* argV[]) { { // The parser. gp_navdir_data_parser navdir_parser; // ...
#include "GameGUI.h" #include <QtWidgets/QApplication> #include <QtWidgets/QWidget> #include <QtWidgets/QGroupBox> #include <QtWidgets/QGridLayout> #include <QtWidgets/QVBoxLayout> #include <QtWidgets/QPushButton> #include <QSpinBox> #include <QtWidgets/QGraphicsOpacityEffect> #include <QPropertyAnimation> using name...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
/* * Demonstration enum class and enum */ #include <iostream> #include <typeinfo> using namespace std; //Enum class used later enum class FlagEnum: char { none=0, flag1=1, flag2=2, flag3=4 }; //Must define constexpr function before usage: //error: ‘constexpr FlagEnum operator|(FlagEnum, FlagEnum)’ used before its ...
#include "VortexManipulator.h" int cycle = 0; int timestampCycle = TIMESTAMP_CYCLE; unsigned long lastEventMicros=0; IntervalTimer hrTimer; IntervalTimer logTimer; String command; Intervals intervals; IntervalCycle *intervalHardwareSleep; String notificationCache = ""; LoggerFactory loggerFactory = LoggerFactory(true...
#include <string> #include <cstring> #include <memory> #include <cstdlib> #include "piano.hpp" using namespace blit; uint16_t music_tick = 0; uint16_t beat = 0; constexpr int step_count = 30; constexpr int channel_count = 1; int16_t notes[channel_count][step_count]; int16_t note_y[41]; int16_t sel...
#include <bits/stdc++.h> using namespace std; #define dbg 0 #if dbg #define INPUT_SOURCE() ifstream cin("input.txt") #else #define INPUT_SOURCE() #endif #define FAST_IO() \ ios::sync_with_stdio(false); \ cout.tie(nullptr); \ cin.tie(nullptr) class RangeSumAvl { struct Node { stati...
#include <stdio.h> #include <string> #include <map> #include <boost/shared_ptr.hpp> #include <string.h> static const int LEN = 8; std::string get_symbol(const std::string &lib, uint64_t mpc); static uint64_t read8(unsigned char *buf, int *pos){ uint64_t rr = 0; memcpy(&rr, buf + (*pos), LEN); *pos = (*p...
/* Copyright (c) 2015-2016 Advanced Micro Devices, Inc. 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 right...
// Copyright (C) 2002, International Business Machines // Corporation and others. All Rights Reserved. #include <new> #include <stdio.h> #include <math.h> #include "PresolveMatrix.hpp" static inline const double * lookup_by_col(const int *mcstrt, const int *hrow, const int *hincol, const int *hinrow, const ...
#include <nstd/Future.hpp> #include <nstd/Atomic.hpp> #include <nstd/Signal.hpp> #include <nstd/Thread.hpp> #include <nstd/Time.hpp> #include <nstd/Mutex.hpp> #include <nstd/PoolList.hpp> #include <nstd/System.hpp> class Future<void>::Private { public: template <typename T> class LockFreeQueue { public: i...
#include "SymbolTable.hpp" #include <list> #include <utility> #include "CodeGenUtils.hpp" std::shared_ptr<Utils::SymbolTableEntry> Utils::SymbolTable::getValue(const std::string& symbolName, const std::string& funcName, ...
#include <verilated.h> #include <iostream> #include <stdio.h> #include "harness.h" #include VERILATORFILE int intCeil(int N, int D){ int w = N/D; int r = N%D; assert( w*D+r == N ); // I think this is always true... return w + (r>0?1:0); } bool calcThrottle( bool isInput, int N, int D, int delay, int cycles ){...
#undef NDEBUG #include <algorithm> #include <cassert> #include <cstring> #include <functional> #include <iostream> #include <iterator> #include <math.h> #include <random> #include <sstream> #include <vector> #include "ch6.hpp" using namespace std; using namespace study; namespace { default_random_engine g_re(42...
/******************************************************************************* * include/construction/ctx_generic.hpp * * Copyright (C) 2017 <NAME> <<EMAIL>> * Copyright (C) 2017 <NAME> <<EMAIL>> * * All rights reserved. Published under the BSD-2 license in the LICENSE file. ***********************************...
/* * Copyright (c) 2019, The Regents of the University of California (Regents). * 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 a...
#include <cmath> #include "wsn_nd_ld_aging.hpp" WsnNDLDAging::WsnNDLDAging( uint64_t seed, size_t net_size, double p_tri, double p_jump, double delta, double p_nd, double p_ld, double aging, double w_th) : m_seed(seed), m_net_size(net_size), m_p_tri(p_tri), m_p_jump(p_jump), m_delta(delta), m_p_nd(p_nd), m_p_ld(...
#include "dal.h" // Header of our library #include <iostream> #include <cstring> #include <ctime> #include <cstdlib> #include <cassert> using namespace aw_storm; /* A sample class representing table in a database could be like below: class Host { public: // with accessors... int GetAsset(); void SetAsset(int); d...
#include"iostream" #include"stdlib.h" using namespace std; int ended = 0; //node class structure class Node{ int num1; int num2; int cows1; int cows2; int bulls1; int bulls2; Node* next; Node* prev; public: Node(); Node(int num1, int num2); friend class CowsAndBulls; }; //main class stru...
#include <qtffmpeg.h> typedef struct { int codec ; const char * extension ; } AudioExt ; AudioExt EXTs [ ] = { { AV_CODEC_ID_PCM_S16LE , "pcm" } , { AV_CODEC_ID_PCM_S16BE , "pcm" } , { AV_CODEC_ID_PCM_U16LE , "pcm" } , ...
#include <OdaCommon.h> #include "DbEllipseGripPoints.h" #include "OdGripPointsModule.h" // Returns 5 Points: center + 4 points on Circle OdResult OdDbEllipseGripPointsPE::getGripPoints(const OdDbEntity* entity, OdGePoint3dArray& gripPoints) const { OdDbEllipsePtr Ellipse {entity}; const auto GripPointsSize {gripPoin...
// Copyright (C) 2002, International Business Machines // Corporation and others. All Rights Reserved. /* Authors <NAME>, <NAME> Last update: april 10, 2015 */ #include "CoinPragma.hpp" #include <cstdio> #include "ClpPEPrimalColumnDantzig.hpp" //-------------------------------------------------------...
#include "FeedbackID.h" #include <iostream> #include <algorithm> #include <vector> #include <cstdlib> #include <typeinfo> #include <stdexcept> using namespace std; /** The constuctor initalizes the varables and takes in a 2D vector of FFT data. **/ FeedbackID::FeedbackID(vector<vector<int> > analysis) { // FFT D...
// Copyright (c) 2019, Lawrence Livermore National Security, LLC. // See top-level LICENSE file for details. #include "caliper/caliper-config.h" #include <caliper/Caliper.h> #include <caliper/ChannelController.h> #include <caliper/ConfigManager.h> #include <caliper/reader/Aggregator.h> #include <caliper/reader/Calip...
////////////////////////////////////////////////////////////////////////////////////////////////// // // file: CSV_Reader.cpp // // Author <NAME> (Neill3d) // // // GitHub page - https://github.com/Neill3d/MoPlugs_Framework // Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs_Framework/blob/master/LICEN...
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // To get drivermanager to run in a test environment, we need to fake boot-arguments & root-job. #include <fuchsia/boot/c/fidl.h> #include <fuchsia/boot/l...
// SPDX-License-Identifier: Apache-2.0 /* * Copyright (c) 2022, <NAME> */ #include "BleServices.h" #include "drv_audio.h" #include <ble/nrf_ble_qwr/nrf_ble_qwr.h> #include <ble_file_transfer_service.h> #include <ble_services/ble_lbs/ble_lbs.h> #include <boards/boards.h> #include <nrf_log.h> #include "nrf_dfu_ble_...
/* * main.cpp * * Created on: Dec 6, 2017 * Author: renwei */ #include <memory> #include "Utility.h" #include "OcrPreprocessor.h" #include "CircledDigitsOCRer.h" using namespace std; using namespace cv; namespace po = boost::program_options; static void write( FileStorage& fs, const string&, ...
// -*- coding: us-ascii-unix -*- // Copyright 2012 <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 applica...
// This file is part of Projecteur - https://github.com/jahnf/projecteur - See LICENSE.md and README.md #include "spotlight.h" #include <QDirIterator> #include <QFileInfo> #include <QSocketNotifier> #include <QTextStream> #include <QTimer> #include <QVarLengthArray> #include <functional> #include <fcntl.h> #include <...
// // Copyright 2012 <NAME> and <NAME> // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
/** * @file * @author <NAME> (<EMAIL>) * @author <NAME> (<EMAIL>) * @date Sept 11, 2017 * @version 0.1 * * @copyright Copyright 2017 US DOT - Joint Program Office * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. *...
//------------------------------------------------------------------- // // Copyright (C) 2015 // Scientific Computing & Imaging Institute // University of Utah // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files ( the "S...
/* * Copyright (C) 2011 Google 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 agree...
#include <boost/algorithm/string.hpp> #include <algorithm> #include <locale> #include <numeric> #include <iostream> #include <regex> #include "board.h" #include "zobrist.h" #include "mover.hpp" #include "moveGen.h" #include "moveTypes/orthogonal.hpp" #include "moveTypes/diagonal.hpp" #include "moveTypes/knight.hpp" B...
//******************************************************** // Syzygy is licensed under the BSD license v2 // see the file SZG_CREDITS for details //******************************************************** #include "arPrecompiled.h" // Yes, a pure-GLUT app. #include "arGlut.h" #include "arGraphicsHeader.h" #...
#include "icyfebruary.h" #include <capabilityguard.h> #include <glad/glad.h> #include <imgui.h> #define SYSTEM_IO_FILEINFO_IMPLEMENTATION #include <system.io.fileinfo.h> #include <system.io.path.h> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #define KEYMAP_FILE "icyfebruary.keymap" ColorPosition::Shader...
// Instructions: // // Move all source code/header files you will be submitting to a new directory, along with the two files Makefile and project3_tests.cpp // Edit the main function to create and try different test cases on your algorithms // Enter the command "make" to compile and run the program // If you make any c...
#include "xMemMgr.h" #include <types.h> #include <string.h> #include "../p2/iSystem.h" #include "../p2/iMemMgr.h" // Size: 0x10 struct xHeapState_tag { uint32 curr; uint16 blk_ct; uint16 pad; uint32 used; uint32 wasted; }; struct xMemBlock_tag { uint32 addr; uint32 size; int32 align;...
#include "../hilti.h" #include "../options.h" #include "codegen.h" #include "stmt-builder.h" #include "util.h" using namespace hilti; using namespace codegen; StatementBuilder::StatementBuilder(CodeGen* cg) : CGVisitor<>(cg, "StatementBuilder") { } StatementBuilder::~StatementBuilder() { } void StatementBuilder::...
#include <queue> #include <gtest/gtest.h> #include <mg_generate.hpp> #include <mg_graph.hpp> #include <mg_test_utils.hpp> #include "algorithm/bridges.hpp" namespace { std::uint64_t CountComponents(const mg_graph::Graph<> &graph) { std::uint64_t n_components = 0; std::vector<bool> visited(graph.Nodes().size()); ...
/*****************************************************************/ /* NAME: <NAME> */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: PQueue.cpp */ /* DATE: December 8th, 2000 ...
#include <torch/torch.h> #include <torch/script.h> #include <torch/autograd.h> #include <torch/utils.h> #include <iostream> #include <unistd.h> #include <iomanip> #include <atomic> #include <string> #include <algorithm> #include <iostream> #include <chrono> #include "../csvloader.h" #include "../utils.h" #include ".....
#include <gtree/tree.h> #include <gtree/person.h> #include <iostream> #include <unordered_set> gtree::Tree createTree(); std::unordered_set< gtree::PersonConstPtr > findDescendantsFrom( const gtree::Tree& tree , const std::string& ascendant ...
#include <cstdio> #include <algorithm> #include <vector> #include "knapsack.h" #include "cuda.h" #include "curand_kernel.h" #include "utils.h" KnapsackGA::KnapsackGA(const std::vector<int>& values, const std::vector<int>& weights, int knapsackSize) : values(values), weights(weights), knapsackSize(knapsackSize) { ...
#include "Renderer.h" #include "imgui.h" #include "imgui_impl_dx11.h" using namespace DirectX; Renderer::Renderer( Microsoft::WRL::ComPtr<ID3D11Device> device, Microsoft::WRL::ComPtr<ID3D11DeviceContext> context, Microsoft::WRL::ComPtr<IDXGISwapChain> swapChain, Microsoft::WRL::ComPtr<ID3D11RenderTargetView> back...
// MIT License // // Copyright (c) 2020 <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, merg...
#include <aRibeiroCore/aRibeiroCore.h> #include <aRibeiroPlatform/aRibeiroPlatform.h> using namespace aRibeiro; void signal_handler(int signal) { printf(" ****************** signal_handler **********************\n"); PlatformThread::getMainThread()->interrupt(); } bool use_blocking_sockets = true; void rec...
/*Version 0.1 Designed by <NAME> at 06/04/2012 */ #define _DEF_FALL_ 2 #define _DEF_RISE_ 3 #define _VERSION_ 1.0 #include <time.h> #include <iostream> #include <string> #include <sstream> #include <fstream> #include <algorithm> #include <math.h> using namespace std; #include "CL_val.h" #include "CL_arcs_val.h" #i...
/******************************************************************************* * Copyright 2018 <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://ww...
/* * Copyright (c) 2019 <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 required by ap...
#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <sstream> #include <cstring> #include <cmath> #include <algorithm> #include <vector> #include <map> #include <stack> #include <bitset> #include <algorithm> #include <functional> // std::multiplies #include <numeric> // std::partial_sum #include <set> ...
// // Author: <NAME> <<EMAIL>> // Copyright (c) 1994-2018 <NAME> // // The MIT License // // Permission is hereby granted, free of charge, to any person // obtaining a copy of this software and associated documentation // files (the "Software"), to deal in the Software without // restriction, including without limitati...
/* SPIM S20 MIPS simulator. Utilities for displaying machine contents. Copyright (c) 1990-2020, <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 ...
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#include <ax.hpp> #include <algorithm> #include <array> #include <cmath> #include <list> #include <map> #include <memory> #include <fstream> #include <ax.hashlist.hpp> using namespace ax; struct counter { static size_t ctor_counter; static size_t dtor_counter; counter(int) { ++ctor_counter; } ...
// Copyright 2013-2014 University of Pennsylvania // Created by <NAME> // // This file is part of Persistence Landscape Toolbox (PLT). // // PLT 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 F...
/* * Copyright (C) 2019 <NAME> (aka Anomalchik) * Copyright (C) 2018 The LineageOS 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/LICE...
// RecvDataD class // RecvDataD::RecvDataD(){ sz=0; } void RecvDataD::Clean(){ data.Clean(); sz=0; return ; } RecvDataD::~RecvDataD(){ Clean(); } // RecvDataD class ~ // // RecvData class // RecvData::RecvData(){ data=0; dsz=0; } VString RecvData::GetFree(){ return VString(buff.endu(), abuff.sz-buff); } VS...
#include "Particle.h" #include "Kinematics.h" #include <iostream> #include "constants.h" //This moves a daughter particle's origin to the parent particle's end. void Link_Particles(Particle &parent, Particle &child){ child.Set_Origin(parent.end_coords[0],parent.end_coords[1],parent.end_coords[2]); child.Set_Creation...
/* * @file DiagDataOverlayMergeAlg.cxx * * @brief Calls an user-chosen tool to merge GemOverlay from input overlay files * * @author <NAME> * * $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/Overlay/src/MergeAlgs/DiagDataOverlayMergeAlg.cxx,v 1.4 2011/06/27 17:45:57 usher Exp $ */ #include "GaudiKer...