text
stringlengths
5.71k
33.7k
/* -------------------------------------------------------------------------- * * File RecipeList.cpp * Created By <NAME> * Contact <EMAIL> * * -------------------------------------------------------------------------- * * Copyright (c) 2010-2013 XMSoft. All r...
// AMD AMDUtils code // // Copyright(c) 2018 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 limitat...
#include "PlatformPrecomp.h" #include "GameMenu.h" #include "Entity/EntityUtils.h" #include "MainMenu.h" #include "Entity/DPadComponent.h" #include "Entity/SelectButtonWithCustomInputComponent.h" #include "Entity/ArcadeInputComponent.h" #include "Gamepad/GamepadManager.h" #include "Gamepad/GamepadProvideriCade....
/** * @file lmnn_main.cpp * @author <NAME> * * Executable for Large Margin Nearest Neighbors. * * mlpack is free software; you may redistribute it and/or modify it under the * terms of the 3-clause BSD license. You should have received a copy of the * 3-clause BSD license along with mlpack. If not, see * htt...
/* * Call.cpp * * Copyright (C) 2019 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "Call.h" #include "CallSlot.h" #include "InterfaceSlot.h" #include "Module.h" using namespace megamol; using namespace megamol::gui; megamol::gui::Call::Call(ImGuiID uid, const std...
// // src/order/drivers/examples/ex01.cc -- sloan ordering // // $Id: sloan.cc,v 1.1 2000/03/13 22:16:08 kumfert Exp $ // // <NAME>, Old Dominion University // Copyright(c) 1997-1999, Old Dominion University. All rights reserved. // // Permission to use, copy, modify, distribute and sell this software and // its...
/* ============================================================================================ Program : High resolution Fetal and Pediatric MRI reconstruction Module : Compute image contrast measures (variance measure, L2 norm of gradient, Laplacian) File : mialtkEvaluateContrst.cxx Language: C++...
/**************************************************************************** * Copyright (C) from 2009 to Present EPAM Systems. * * This file is part of Indigo toolkit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
#include <iostream> #include <cmath> #include <algorithm> #include <cassert> #include "Model.h" #include "Helper.h" using namespace pugi; using namespace route_app; static Model::Road::Type StringToRoadType(string_view type) { if (type == "motorway") return Model::Road::Motorway; if (type == "motorway_link")...
/*************************************************************************** qgshandlebadlayers.cpp - description ------------------- begin : Sat 5 Mar 2011 copyright : (C) 2011 by <NAME>, norBIT GmbH email : j...
/* * Copyright 2012-2021 CNRS-UM LIRMM, CNRS-AIST JRL */ // check memory allocation in some method #define EIGEN_RUNTIME_NO_MALLOC // includes // std #include <iostream> // boost #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE LogDiff test #include <boost/test/unit_test.hpp> // SpaceVecAlg #include <SpaceVe...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include <mxtk/mx.h> #include <stdio.h> #include "resource.h" #include "EventProperties.h" #include "mdlv...
#include <Wire.h> #include <Arduino.h> #include <WiFi.h> #include <ArduinoJson.h> #include <WiFiClientSecure.h> #include <ESP_Mail_Client.h> #include <Firebase_ESP_Client.h> #include <NTPClient.h> #include <WiFiUdp.h> #include "soc/soc.h" #include "soc/rtc_cntl_reg.h" //Provide the token generation process info. #incl...
#include "DialogDebug.hxx" #include <string> #include <cassert> #include <stdexcept> #include <iostream> #include <cstdint> #include <limits.h> #include <FL/fl_ask.H> #include <FL/Fl_File_Chooser.H> //--- Use z80 internals --- #include <z80/z80_externs.h> #include <z80/z80_macros.h> #include <z80/z80.h> ...
#include <chrono> #include <cmath> #include <iostream> #include <ncurses.h> #include <random> #include <thread> #include <vector> // MACROS // ============================================================================= // Named colors #define PIECE_COLOR 1 #define PAUSE_COLOR 2 // A shortcut to set and unset color...
//***************************************************************************** //********************** WORKSPACE_LIMITS_AVOIDANCE.CPP ********************** //********************** Author: <NAME> ********************** //********************** © 2021 Turtley & Turtles Ltd. ********************** //*****...
// UVCExtensionApp.cpp : Defines the entry point for the console application. // #include <mfapi.h> #include <mfplay.h> #include <mfreadwrite.h> #include <vector> #include <string> #include <ks.h> #include <ksproxy.h> #include <vidcap.h> #include "UVCExtensionUnit.h" // GUID of the extension unit, {ACB6890C-A3B3-4060...
/* Author(s): <NAME> (msc37) Project: sweepc (population balance solver) Sourceforge: http://sourceforge.net/projects/mopssuite Copyright (C) 2008 <NAME>. File purpose: Implementation of the PAHStats class declared in the swp_PAH_stats.h header file. Licence: This file is part ...
// ============================================================================= // Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC // (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Permission is hereby grante...
// // Title: Main program for Flexible Object Generator // // File Name: FogMain.cpp // // Author: E.D.Willink // END // #include <Fog/FogIncludeAll.h> bool debug_delete; PrimText files; PrimStringHandle global_name; bool help; PrimStringHandle log_file; PrimStringHandle output_file; bool quiet; bool st...
/* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certai...
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any per...
/* * 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...
// NSRegistration // v1.0.0.6 3/20/2004 // (c) 2003 - 2004 Langlie Systems, Inc. // All rights reserved. // You may not re-use this code without permission. #include "stdafx.h" #include "NSRegistration.h" using namespace WEBARBOR_EMAIL_COMPONENTS; // NSRegistration constructor NSRegistration::NSRegistration() { pR...
// Copyright (c) 2011-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, modify, merge, publi...
/*********************************************************************************** * Copyright (C) 2008 by <NAME> * * * * Terms and conditions for using this software in any form are prov...
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /******************************************************************************* * Builds the local orthogona...
#include "MPU6886.h" #include <math.h> #include <Arduino.h> MPU6886::MPU6886(){ } void MPU6886::I2C_Read_NBytes(uint8_t driver_Addr, uint8_t start_Addr, uint8_t number_Bytes, uint8_t *read_Buffer){ Wire1.beginTransmission(driver_Addr); Wire1.write(start_Addr); Wire1.endTransmission(false); uint8_t i =...
//------------------------------------------------------------------------------ // Desc: Contains routines for committing a transaction. // Tabs: 3 // // Copyright (c) 1991-2007 Novell, Inc. All Rights Reserved. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU...
/* * structs.cpp * * Created on: Jul 25, 2010 * Author: sturm */ #include "structs.h" #include "hogman_wrapper.h" #include "boost/tuple/tuple.hpp" using namespace std; using namespace articulation_models; using namespace geometry_msgs; using namespace articulation_msgs; using namespace std_msgs; using name...
// Copyright 2014 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 "crazy_linker_elf_loader.h" #include <limits.h> // For PAGE_SIZE and PAGE_MASK #include "crazy_linker_debug.h" #include "linker_phdr.h" #defi...
#include <opencv2/opencv.hpp> #include <visp3/gui/vpDisplayGDI.h> #include <visp3/gui/vpDisplayOpenCV.h> #include <visp3/gui/vpDisplayX.h> #include <visp3/gui/vpProjectionDisplay.h> #include <visp3/robot/vpSimulatorCamera.h> #include <visp3/visual_features/vpFeatureBuilder.h> #include <visp3/vs/vpServo.h> #include <vis...
#include "PECallFrameInfo.h" #include "ObjectFilePECOFF.h" #include "Plugins/Process/Utility/lldb-x86-register-enums.h" #include "lldb/Symbol/UnwindPlan.h" #include "llvm/Support/Win64EH.h" using namespace lldb; using namespace lldb_private; using namespace llvm::Win64EH; template <typename T> static const T *Typed...
// // Created by mdunn on 10/30/17. // #include <fstream> #include <iostream> #include <thread> #include "CameraPictureTaker.h" #include "Sphere.h" #include "Lighting.h" #include "RayTraceData.h" CameraPictureTaker::CameraPictureTaker(const CameraSpecification *specs, std::vector<Object3D>* models, const Lighting* li...
#pragma once #include <iostream> // std::stringstream #include <thread> // std::thread #include <mutex> // std::mutex, std::unique_lock #include <condition_variable> // std::condition_variable #include <vector> #include <queue> #include <functional> #include <chrono> #def...
// Copyright (c) 2013 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 <ctype.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #include <string> #include <vector> #include "json/reader.h" #include ...
#include "mp3_tasks.hpp" #include "ff.h" #include "ssp0.h" #include "buttons.hpp" #include "utilities.hpp" #include "gpio_input.hpp" SemaphoreHandle_t PlaySem; typedef enum { IDLE, PLAY, STOP, } mp3_next_state_E; typedef struct { bool cancel_requested; mp3_next_state_E next_state; uint16_t sa...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
#include <boost/lexical_cast.hpp> #include "debug.h" #include "mm_density_solver.h" #include "mm_graph.h" #include "mm_route.h" #include "mm_tree.h" MMDensity::MMDensity(boost::shared_ptr<RTree> rtree, boost::shared_ptr<ShapefileGraph> shapefile_graph) { tree_ = rtree; shapefile_graph_ = shapefile_graph; h...
#include "dxt.h" #include <algorithm> // std::min / std::max // The precision to do color-line calculation: // Note: final evaluation is always treated as float. #ifdef DXT_HIGHP typedef double real; #else typedef float real; #endif // Color line refinement iterations: // Minimum is 1 // Default is 3 // // The maxim...
#include <iostream> #include <conio.h> #include <exception> #include <vector> #include <random> #include <chrono> #include <mutex> #include <filesystem> #include <Shlobj.h> #include <atlsafe.h> // #define this to use orglab rather than Origin automation Server. //#define ORGLAB_DATA_USE_ORGLAB // ORGLAB_DATA_USE_OR...
// Software License Agreement (BSD-3-Clause) // // Copyright 2018 The University of North Carolina at Chapel Hill // // 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...
#include <blocks/parser.h> #include <blocks/cnf.h> #include <blocks/clause.h> #include <blocks/literal.h> #include <blocks/predicate.h> #include <blocks/predicatehasher.h> #include <iostream> #include <string> #include <vector> #include <set> #include <sys/wait.h> #include <cstdio> #include <unistd.h> using namespac...
//Written by <NAME> 2022 //see readme and license (MIT) for details #define GLEW_STATIC #include "serial/serial.h" #include "GL/glew.h" #include "GLFW/glfw3.h" #include <assert.h> #include <string> #include <filesystem> #include <iostream> #include "LoadShaders.h" std::vector<uint8_t> rest_buffer; // An array...
/// 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, mo...
// Copyright (c) 2020, <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 applicabl...
//=========================================================================== // $Header$ // // (C) Copyright 2007 by Autodesk, Inc. // // The information contained herein is confidential, proprietary // to Autodesk, Inc., and considered a trade secret as defined // in section 499C of the penal code of the S...
/* * Date Started: 29/09/2017 * Original Author: <NAME> * Editors: * ROS Node Name: ros_can_nodes * ROS Package: ros_can_nodes * Purpose: Main entry point of ros_can_nodes. Run with: * - `rosrun ros_can_nodes ros_can_nodes` to use can0 as the CAN port * - `rosrun ros_can_nodes ros_can_nodes vc...
#include "CloStream.h" #include "../CommonUtility/Utility.h" uint32_t CI_ID = 1; std::map<uint32_t, std::queue<uint32_t>> POSITIONS_QUEUES_INDEX; std::set<uint32_t>* compute_union_ideals(std::vector<uint32_t>* const _transaction, std::map<uint32_t, std::vector<uint32_t>>* const _cidListMap) { std::set<uint32_t>* ci...
/* Stream Archive I/O utility, Copyright (C) <NAME> 2004-2014 * * strarc.cpp * Definitions for some common outline members of StrArc class. */ #ifndef _UNICODE #define _UNICODE #endif #ifndef _DLL #define _DLL #endif #ifndef UNICODE #define UNICODE #endif #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #en...
//---------------------------------------------------------------------- // File: bd_tree.cc // Programmer: <NAME> // Last modified: 03/04/98 (Release 0.1) // Description: Basic methods for bd-trees. //---------------------------------------------------------------------- // Copyright (c) 1997-1998 University of Maryl...
/*************************************************************************** # Copyright (c) 2020, 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...
#include "Windmill3D.h" #include <algorithm> #include <cmath> #include <QtMath> #include <QPaintEvent> #include <QResizeEvent> #include <QPainter> #include <QPainterPath> #include <QtConcurrent> #include <QDebug> WindMeta::WindMeta(const QList<QVector3D> &vtx, const QColor &clr) : vertex(vtx), color(clr) { } Wi...
#include "otmain.h" #include <cstdlib> #include <ENCRYPTO_utils/connection.h> //pthread_mutex_t CLock::share_mtx = PTHREAD_MUTEX_INITIALIZER; BOOL Init(crypto* crypt) { return TRUE; } BOOL Cleanup() { delete sndthread; //rcvthread->Wait(); delete rcvthread; //std::cout << "Cleaning" << std::endl; //std::cou...
/* Initial author: Convery (<EMAIL>) Started: 2019-09-18 License: MIT */ #include <Stdinclude.hpp> namespace Global { bool shouldReload{ false }; bool isDirty{ true }; uint32_t Errorno; // TODO(tcn): Move this somewhere. std::unordered_map<uint32_t, Callback_t> Callbacks; } namespace...
/* Copyright Joyent, Inc. and other Node contributors. 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 * righ...
#include "kinectBody.h" // // body(); // void addSkeleton( kinectSkeleton & KS); // kinectBody::kinectBody(){ nFramesHistory = 50; // ? velocity.resize(25); // ? velLen.resize(25); accel.resize(25); historyPlots.push_back(new ofxHistoryPlot(NULL, "arm-ext-lt", 100, f...
/* * SRT - Secure, Reliable, Transport * Copyright (c) 2018 Haivision Systems Inc. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * */ #include <cstring> #...
/**************************************************************************** * * Copyright (c) 2013-2017 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
#include "li.h" /*** data ***/ editorConfig E; std::unordered_map<int, void(*)()> short_cuts({ {CTRL_KEY('f'), editorFind} }); /*** terminal ***/ void die(const char *s) { // `\x1b` is the escape. J command to clear screen write(STDOUT_FILENO, "\x1b[2J", 4); // H command to position the cursor wr...
/** * \file QryWzemUsrList.cpp * job handler for job QryWzemUsrList (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 1 Dec 2020 */ // IP header --- ABOVE #ifdef WZEMCMBD #include <Wzemcmbd.h> #else #include <Wzemd.h> #endif #include "QryWze...
#include "files/ReaderAgglomerate.h" #include "SMRTSequence.h" #include "utils/FileOfFileNames.h" #include "simulator/ContextSet.h" #include "simulator/OutputSampleListSet.h" #include "algorithms/alignment/readers/sam/SAMReader.h" #include "algorithms/alignment/AlignmentUtils.h" #include "datastructures/alignmentset/SA...
// Copyright 2011 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // Author: <EMAIL> (<NAME>) #include "common/polar_diagram.h" #include <math.h> #include <stdio.h> #include "common/apparent.h" #include "common/...
#include "debug.h" #include "value.h" #include "object.h" #ifdef DEBUG_PRINT_AST debugASTPrinter::debugASTPrinter(vector<ASTNode*> _stmts) { str = ""; inLocal = false; for (int i = 0; i < _stmts.size(); i++) { _stmts[i]->accept(this); } } void debugASTPrinter::buildExpr(std::string_view name, const std::initi...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cuda.h> #include <cuda_runtime.h> #include <vector_functions.h> #include "constants.h" using namespace std; #include "atom_class.h" void atom::allocate() { int count, i, j; // atoms and types numNNmax = 576; // size of pos arr...
#include "stdafx.h" #include "MediaConvert.h" MediaConvert::MediaConvert() { avcodec_register_all(); _en_sample = 0; _en_index = 0; _de_sample = 0; _de_index = 0; _audio_ctx = NULL; _video_ctx = NULL; _width = 0; _height = 0; } MediaConvert::~MediaConvert() { } /* 42 00 1e e9 01 40 7b 7f e0 00 00 5...
////////////////////////////////////////////////////////////////////// // fastfir.cpp: implementation of the CFastFIR class. // // This class implements a FIR Bandpass filter using a FFT convolution algorithm // The filter is complex and is specified with 3 parameters: // sample frequency, Hicut and Lowcut frequency //...
// This test file sees if the staggered operator can be well preconditioned // by a staggered operator with a laplace term. #include <iostream> #include <iomanip> // to set output precision. #include <cmath> #include <string> #include <sstream> #include <complex> #include <random> #include <cstring> // should be repla...
/* * Copyright (c) 2018 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2026-01-04 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
/************************************************** Copyright 2015 <NAME> ***************************************************/ #include "SSSquadControlGUI.h" #include "../../utility/PlayerData.h" #include "../../component/UpgradeComponent.h" #include "../../datadriven/ComponentHelper.h" #include "../gamelogic/SSAI.h" ...
/** * @file * @author <NAME> * @version 1.0 * * @section LICENSE * * Copyright [2012] [Carnegie Mellon University] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://w...
#include "repository/ISwiftMtParser.h" #include "SwiftMtMessage.pb.h" #include <vector> #include <string> #include "BaseErrorListener.h" // Generated from C:/programming/message-converter-c/message/generation/swift-mt-generation/repository/SR2018/grammars/SwiftMtParser_MT456.g4 by ANTLR 4.7.2 #include "SwiftMtPars...
// Copyright 2017 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 agreed to in...
/**************************************************************************** MergePef.cpp Owner: JimMur Copyright (c) 1995 Microsoft Corporation This file implements the Office bitmap processing tool *****************************************************************************/ #include <stdio.h> #...
#include <iostream> #include <chrono> #include "tbb/tbb.h" using namespace std; #include "OptimisticLockCoupling/Tree.h" #include "ROWEX/Tree.h" #include "ART/Tree.h" #define N_KEYS 10000000 #define SINGLE_TREE 0 #define MISS_RATIO_MOD 2 #define MAX_CPUS 80 #include <thread> #include <sched.h> #include <map> #inc...
/* * Implementation file for the contact resolution system. * * Part of the Cyclone physics system. * * Copyright (c) Icosagon 2003. All Rights Reserved. * * This software is distributed under licence. Use of this software * implies agreement with all terms and conditions of the accompanying * software licence...
/* * Copyright 2020 Associated Universities, Inc. Washington DC, USA. * * 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 re...
#include <stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> #include <stack> #define M 15 // 校园景点数量 #define INF 0x3f3f3f3f //int最大值 /*数据类型*/ typedef struct { int num; //景点编号 char name[20]; //景点名称 char introduction[300]; //景点介绍 } Attractions; typedef struct { Attractions att[M]; int e...
// 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...
// Copyright 2013 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 <errno.h> #include <fcntl.h> #include <string.h> #include <sys/stat.h> #include <string> #include "dev_fs_for_testing.h" #include "gtest/gtest.h...
/*************************************************************************/ /* tabs.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/**************************************************************************** Program: $Id: listener.cpp 40 2016-01-02 18:54:39Z rbeverly $ Date: $Date: 2016-01-02 10:54:39 -0800 (Sat, 02 Jan 2016) $ Description: yarrp listener thread *****************************************************************...
/** * @file KeyFrameParser.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017 Intel 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 witho...
/* Copyright 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, merge, publish, distribute, sublicense,...
/* * Copyright (C) 2018, Xilinx Inc - All rights reserved * Xilinx SDAccel Media Accelerator API * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LIC...
// system include files #include <memory> #include <string> #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <map> // user include files #include "CondFormats/DataRecord/interface/HcalRespCorrsRcd.h" #include "CondFormats/HcalObjects/interface/HcalRespCorrs.h" #include "FWCore/Commo...
#include <cstdlib> #include <unistd.h> #include <iostream> #include <algorithm> #include <string> #include <fstream> #include <iomanip> #include <sstream> #include <Rcpp.h> #include "Graph.h" #include "gauss_legendre.h" using namespace std; // Size of the intersection between two vectors int intersection(vector<Node...
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * 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 co...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2022 <NAME> and <NAME> //LIC// //LIC// This lib...
#pragma once #include <array> #include <cassert> #include <iostream> #include <openssl/sha.h> #include <sstream> #include <vector> #include "../native/secp256k1/include/secp256k1.h" #include "hexxer.hpp" #include "json.hpp" typedef std::array<uint8_t, 32> uint8_t_32; typedef std::array<uint8_t, 33> uint8_t_33; typed...
#include <iostream> #include <cstdlib> #include <string> #include <algorithm> #include <vector> #define DEBUG 0 using namespace std; const int IP[64] = { 58,50,42,34,26,18,10,2, 60,52,44,36,28,20,12,4, 62,54,46,38,30,22,14,6, 64,56,48,40,32,24,16,8, ...
#include <string> #include <iostream> #include "rose.h" #include "Utils.h" #include "processPragmas.h" using namespace std; using namespace SageBuilder; using namespace SageInterface; // Types, Globals ////////////////////////////////////////////////////////////// typedef enum {i_max, i_min, i_const} IterationType; ...
/* * Copyright (C) 2002-2021 The DOSBox Team * * 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. * * This p...
/* 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...
#include "pch.hpp" #include "WinImgui11.hpp" #include "vertex.hxx" #include "pixel.hxx" WinImgui11::WinImgui11( HWND hWnd, ComPtr<ID3D11Device> pD3DDevice, ComPtr<ID3D11DeviceContext> pDeviceContext, std::filesystem::path const& iniPath ) : WinImgui{ hWnd, iniPath }, md3dDevice{ std::move( pD3DDevice ) }, md3d...
/* FILE: twosurfaceexchange.cc -*-Mode: c++-*- * * Long range (RKKY-style) exchange energy on links across spacer * layer, with surface (interfacial) exchange energy coefficents * sigma (bilinear) and sigma2 (biquadratic). * */ #include "nb.h" #include "director.h" #include "mesh.h" #include "meshvalu...
/* * See header file for a description of this class. * * \author <NAME> - INFN Torino */ #include "DQM/DTMonitorModule/interface/DTCalibValidation.h" // Framework #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/ESHandle.h" #...
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Module: FGOutputFG.cpp Author: <NAME> Date started: 09/10/11 Purpose: Manage output of sim parameters to FlightGear Called by: FGOutput ------------- Copyright (C) 2011 <NAME> ------------- This program is fre...
#include "mainopengl.h" #include <QResource> #include <chrono> MainOpenGL::MainOpenGL() : flag(false) { } MainOpenGL::~MainOpenGL() { if (flag == true) { delete m_program_text; // our dtor should clear out the textures and remove the VAO's for (auto& m : m_characters) { glDeleteTextures(1, &m.textureID);...
#include "lib.h" inline int sign(int value) { if (value < 0) return -1; else if (value > 0) return 1; else return 0; } //////////////////////////////////////////////////////////////////////////////// //## REMOVE int comp_floats(double x, double y) { uint64 n = *((uint64 *) &x); uint64 m = *((u...