text
stringlengths
5.71k
33.7k
/* * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under the Mulan PSL v1. * You can use this software according to the terms and conditions of the Mulan PSL v1. * You may obtain a copy of Mulan PSL v1 at: * * http://license.coscl.org.cn/MulanPSL * * ...
/** * @file svJumpsFromSeeds.cpp * @author <NAME> */ #include "msv/module/svJumpsFromSeeds.h" #include "ms/module/module.h" #include "ms/util/pybind11.h" #include "pybind11/stl.h" #include <cmath> #include <csignal> using namespace libMSV; using namespace libMS; // @todo this whole function can be simplified a lot...
/** * \file gaussian_conv_deriche.c * \brief Deriche's approximation of Gaussian convolution * \author <NAME> <<EMAIL>> * * Copyright (c) 2012-2013, <NAME> * All rights reserved. * * This program is free software: you can redistribute it and/or modify it * under, at your option, the terms of the GNU General Pu...
#include "core/ArgParser.h" #include "core/HttpReplay.h" #include "swoc/bwf_ex.h" #include "swoc/bwf_ip.h" #include "swoc/bwf_std.h" #include <assert.h> #include <chrono> #include <list> #include <mutex> #include <sys/time.h> #include <thread> #include <unistd.h> #include <dirent.h> #include <fcntl.h> #include <netin...
// punch cl #include <arpa/inet.h> #include <netinet/in.h> #include <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <errno.h> #include <fcntl.h> #include <sys/time.h> #include "include/stun/msg.h" #include "util.h" /...
#include <cstring> #include <cassert> #include <fstream> #include <iostream> using namespace std; #include "err_mrcfile.hpp" #include "mrc_header.hpp" void MrcHeader::Read(istream& mrc_file) { // Read the first "SIZE_HEADER" bytes into a temporary array "header_data" char header_data[MrcHeader::SIZE_HEADER]; //...
/* * The code is a part of our project called VEGITO, which retrofits * high availability mechanism to tame hybrid transaction/analytical * processing. * * Copyright (c) 2021 Shanghai Jiao Tong University. * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you ma...
#include "cli_parser.h" #include <boost/filesystem.hpp> #include <iostream> #include <sstream> #include <vector> #include "log4cxx/logger.h" template< typename TElemType > std::ostream &operator<<(std::ostream &s, const std::vector< TElemType >& v) { std::stringstream ss; if( !v.empty() ) { typename std::vecto...
#ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include <iostream> #include <stdlib.h> #include <math.h> #include <time.h> #include <fstream> using namespace std; #define CAMSPEED 0.1f // Camera Speed #define CAMSPEED2 1.0f // Camera Speed #define SCREENWIDTH 800 #define SCREENHEIGHT 600 #...
// Mat sizes in comments are correct. Verify allocation based on column vector // Need to add functionality to allocate weight as 1 or 0 for initial few steps. To do later. Optimization according to armadillo // approximates to K means allowing faster computations to get start locations. // I - no of points // D - ...
#include <Arduino.h> #include <SPI.h> #include "Utilities.h" FIFOBuffer serialFIFO; uint8_t serialBuffer[CONFIG_UART_BUFFER_SIZE+1]; FIFOBuffer16 packet_starts; size_t packet_starts_buf[CONFIG_QUEUE_MAX_LENGTH+1]; FIFOBuffer16 packet_lengths; size_t packet_lengths_buf[CONFIG_QUEUE_MAX_LENGTH+1]; uint8_t packet_queu...
#include "stdio.h" #include "string.h" #include "stdlib.h" #include "math.h" #include "time.h" #include "MOP_RS.h" #define MAX_BUF_SIZE 1000000 // #define MAX_STR_LEN 256 // #define sigA 1.0 //sigmoid func a #define sigC 0.0 //sigmoid func c #define D_FEATURE 10 //feature number int DIM_RS; double* M_ITEM_Feature...
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2013 Pelican Mapping * http://osgearth.org * * osgEarth 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 Foundat...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <stb_image.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <shader.hpp> #include <camera.hpp> #include <PerlinNoise.hpp> #include <iostream> #include <cmath> #include <array> constexpr int gridSize = 10...
/* * Copyright (c) 2020 The Khronos Group 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 la...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "AdvectCosineBellIBC.H" #include "BoxIterator.H" #include "CubedSphe...
#include <iostream> #include <fstream> #include <string> #include <sstream> #include "../input/input.hpp" #include "../timer/timer.hpp" #include "../collision/collision.hpp" #include "tileMap.hpp" //To link: g++ -Wall -o "%e" "%f" "../../resources/base2.0/lib/base.a" -lsfml-graphics -lsfml-window -lsfml-system //Tile e...
// vim: ts=4 sw=4 noet : /* ================================================================================== Copyright (c) 2020 Nokia Copyright (c) 2020 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with ...
#include "LightingItem.h" #include "ItemManager.h" #include "PutPropertyFunction.h" #include "Archive.h" #include <cnoid/SceneGraph> #include <cnoid/SceneLights> #include <cnoid/MeshGenerator> #include <cnoid/EigenUtil> #include <cnoid/EigenArchive> #include "gettext.h" using namespace std; using namespace cnoid; nam...
/************************************************************************* * Copyright (c) 2015, Synopsys, Inc. * * All rights reserved. * * * * Redistribution and...
#include "Mesh.h" #include "mmgr/mmgr.h" Mesh::Mesh() { } Mesh::~Mesh() { } void Mesh::DrawCube() const { glEnableClientState(GL_VERTEX_ARRAY); glBindBuffer(GL_ARRAY_BUFFER, id_vertices); glVertexPointer(3, GL_FLOAT, 0, NULL); glDrawArrays(GL_TRIANGLES, 0, num_vertices); glBindBuffer(GL_ARRAY_BUFFER, 0); gl...
#include "foundation_AMOS.hh" #include "amp.hh" #include "fasta.hh" #include "AMOS_Foundation.hh" #include "ContigUtils.hh" #include "PersistentUtils.hh" #include <sstream> using namespace AMOS; using namespace std; int SAVERESULTS(0); int FIXCOLLAPSE(0); int CLOSEGAPS(0); int SCANALL(0); int GAPSCLOSED(0); int COLL...
#include "interpreter.hpp" #include <cstddef> #include <chrono> #include <iostream> #include <iterator> #include <unordered_map> #include <boost/variant.hpp> #include "callable.hpp" #include "class.hpp" #include "function.hpp" using std::back_inserter; using std::chrono::duration_cast; using std::chrono::seconds; ...
/* this is code that was once useful but has now been obseleted. this file should not be compiled as part of ODE! */ //*************************************************************************** // intersect a line segment with a plane extern "C" int dClipLineToBox (const dVector3 p1, const dVector3 p2, ...
/****************************************************************************//* * Copyright (C) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, includ...
//============================================================================== // xxGraphic : Vulkan Assembly Shader Source // // Copyright (c) 2019-2021 TAiGA // https://github.com/metarutaiga/xxGraphic //============================================================================== #include "xxSystem.h" #include "v...
/* * Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
//============================================================================ // Name : fusion_service.cpp // Author : ESS // Version : 1.0 // Copyright : ICARUS-UPC // Description : LCM service to overlay thermal and visual images //===================================================================...
/* * Copyright 2018, <NAME> <<EMAIL>> * All rights reserved. Distributed under the terms of the MIT license. * */ #include "TextClock.h" #include <time.h> #include <iostream> #include <sstream> #include <string> #include <stdlib.h> #include <Slider.h> #include <Alignment.h> #include <String.h> #include <Catalog....
/*************************************************************************** Copyright (c) 2018, Xilinx, 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 ...
#include <GAGPL/GAGLIBRARY/LibraryForest.h> //#include <GAGPL/GLYCAN/MonosaccharideUnitTable.h> #include <GAGPL/CHEMISTRY/FunctionalGroupTable.h> #include <GAGPL/FRAGMENTATION/FragmentationTable.h> #include <GAGPL/FRAGMENTATION/Fragmentation.h> #include <GAGPL/CHEMISTRY/Modifier.h> #include <iostream> #include <cmath> ...
#include "logger.h" #include "assets.h" #include "utils/stb_image.h" #include "errorassets/errorshader.h" #include <physfs.h> static const char* defaultShaderSource = R"( #shader vertex #version 330 core layout (location = 0) in vec3 a_position; layout (location = 1) in vec3 a_normal; layout (location = 2) in vec2 a...
#include "main.h" int main(int argc, char **argv) { /* Seed random */ srand(time(NULL)); /* Init glut and glew */ glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); glutInitWindowSize(X_SIZE, Y_SIZE); glutInitContextFlags(GLUT_FORWARD_COMPATIBLE); glutIni...
#include <Arduino.h> #include "lego_ble.h" #include "lego_debug.h" #include "Lpf2Hub.h" char knownDevices[][18] = { "90:84:2b:14:xx:xx", // Red Train Hub "e0:7d:ea:6d:xx:xx", // Red Train Remote "04:ee:03:cc:xx:xx", // Yellow Remote "90:84:2b:1c:xx:xx", // Yellow Train Hub "90:84:2b:1c:xx:xx", // G...
/******************************************************************************* * Copyright 2020 BenchmarkXPRT Development Community * * 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 * * h...
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may no...
/************************************************************************* * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved. * Modifications Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved. * * See LICENSE.txt for license information **************************************...
#include "MeshRendererImporter.h" #include "Globals.h" #include "Application.h" #include "ModuleSceneIntro.h" #include "GameObject.h" #include "ComponentMeshRenderer.h" #include "ComponentTransform.h" #include "ComponentMaterial.h" #include "MaterialsImporter.h" #include "ModuleCamera3D.h" #include "ModuleImGui.h" #inc...
// // fsw_steinunpack.cpp -- C++ code to produce an ASCII event list from Brent's // ASCII text dump of the FSW data. Compiles with g++. If compiled // binary has name "fsw_steinunpack", then usage on a UNIX machine is: // // ./fsw_steinunpack STEINBYTESLOG.log > STEINBYTESLOG.txt // // where "STEINBYTESLOG.log" ...
//<NAME> // 99% of work done by <NAME> // Black Jack 2player game + dealer // ProjectBlackJack_AIG.cpp : This file contains the 'main' function. Program execution begins and ends there. // // how can I make the process of determining the winner more streamlined? #include "pch.h" #include <algorithm> #include <i...
#include "point_transformation.h" #include <cmath> using std::size_t; #define degree_cos(th) cos(M_PI/180*(th)) #define degree_sin(th) sin(M_PI/180*(th)) void point_transformation::multiply_by_matrix(double matrix[3][3], double in_x, double in_y, double in_z, double* out_x, double* out_y, double* out...
#include <fstream> #include <cstring> #include <cstdio> #include <cmath> #include <cstdlib> #include <ctime> #include <search.h> #include <vector> #include <valarray> #include <algorithm> extern "C" { #include <R.h> #include <Rmath.h> }; #include "global.h" #include "Node.h" #include "Funs.h" #include "Prior.h" #incl...
/*************************************************************************** * ncrack_telnet.cc -- ncrack module for the TELNET protocol * * * ***********************IMPORTANT NMAP LICENSE TERMS************************ * ...
#ifdef USE_ALLEGRO #include "allegro/keyboard.cpp" #endif #ifdef USE_SDL #include "sdl/keyboard.cpp" #endif #ifdef USE_ALLEGRO5 #include "allegro5/keyboard.cpp" #endif std::vector<bool> Keyboard::repeatState; bool Keyboard::isNumber( int key ){ return key == Key_0 || key == Key_1 || key == Key_2 || ...
/* * Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA) * * 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...
/** Example 011 Per-Pixel Lighting This tutorial shows how to use one of the built in more complex materials in irrlicht: Per pixel lighted surfaces using normal maps and parallax mapping. It will also show how to use fog and moving particle systems. And don't panic: You do not need any experience with shaders to...
// Based on code written by: // (2017) NataliaPC aka @ishwin74 // Under GPL License #include "TsxParser.hh" #include "xrange.hh" #include <cstring> #include <sstream> // Current version supports these TZX 1.20 blocks plus the #4B TSX block: static constexpr uint8_t B10_STD_BLOCK = 0x10; // Standard Speed Blo...
// Shiny AVR Programmer // // Based on ArduinoISP, original copyright (c) 2008-2011 <NAME> // https://github.com/arduino/arduino-examples/blob/main/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino #include "Arduino.h" // STM32 has hardware ISP which is way too fast for most AVR chips // that's why a bitbanged impleme...
#include <ATen/ATen.h> #include <ATen/native/quantized/cpu/fbgemm_utils.h> #include <ATen/native/quantized/cpu/init_qnnpack.h> #include <ATen/native/quantized/PackedParams.h> #include <ATen/native/quantized/cpu/QnnpackUtils.h> #include <ATen/native/quantized/cpu/OnednnUtils.h> #include <ATen/native/quantized/cpu/QuantU...
#include "drawingdata.h" #include "filmstripcommand.h" #include "timagecache.h" #include "tpaletteutil.h" #include "ttoonzimage.h" #include "tvectorimage.h" #include "trasterimage.h" #include "trop.h" #include "tstroke.h" #include "toonzqt/icongenerator.h" #include "toonzqt/dvdialog.h" #include "toonz/txshsimplelevel...
// Copyright (c) 2015-2016 The Khronos Group 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 ...
#include "UnrollFactor.h" #include "LoopUnrolling.h" #include "Packer.h" #include "Solver.h" #include "VectorPack.h" #include "VectorPackContext.h" #include "llvm/ADT/Triple.h" #include "llvm/Analysis/AliasAnalysis.h" #include "llvm/Analysis/BasicAliasAnalysis.h" #include "llvm/Analysis/CallGraph.h" #include "llvm/Anal...
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2016 PocketRent Ltd and contributors | +---------...
/*========================================================================= Program: Matlab Open IGT Link Interface -- igtlsend Module: $RCSfile: $ Language: C++ Date: $Date: $ Version: $Revision: $ Copyright (c) Insight Software Consortium. All rights reserved. This software is distribute...
/****************************************************************************** * Copyright (c) 2015 <NAME> * Distributed under the MIT license * (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT) * * Project: * Filename: aes_ofb.cc * Version: 1.0 * Author: <NAME> * E-ma...
// --------------------------------------------------------------------------- // Copyright (c) 2022, <NAME> - <EMAIL> // // 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 // // https://w...
#include "common/logging.h" #include "common/ConfigParser.h" #include "common/global_configs.h" #include "common/Constants.h" #include "math/eigen_device_tranfer.h" #include <fstream> #include <nlohmann/json.hpp> surfelwarp::ConfigParser::ConfigParser() { setDefaultParameters(); } void surfelwarp::ConfigParser::set...
/***************************************************************************************** * * * OpenSpace * * ...
#define AliSelectorFindableHyperTriton3Body_cxx #include "AliESDVertex.h" #include "AliESDtrack.h" #include "AliExternalTrackParam.h" #include "AliPID.h" #include "AliVTrack.h" #include <TH1D.h> #include <TH2D.h> #include <TList.h> #include <TLorentzVector.h> #include <TObjArray.h> #include <TStyle.h> #include <TVecto...
#include <iostream> #include <stdio.h> #include <math.h> #include <vector> #include <limits> #include <sstream> #include "mail.h" #include "matrix.h" using namespace std; // static parameter // float lengths[] = {5,10,50,100,150,200,250,300,350,400}; float lengths[] = {100,200,300,400,500,600,700,800}; int32_t num_l...
// For documentation, see TrueMapping.h #include "TrueMapping.h" #include "TextFileParsers.h" // ParseTabDelimFile, TokenizeCSV, GetFastaNames #include <assert.h> #include <math.h> #include <map> #include <string> #include <vector> #include <fstream> #include <iostream> #include <algorithm> // count // Boost include...
#include "storyboard.h" #include "util/graphics/bitmap.h" #include "util/resource.h" #include "util/funcs.h" #include "util/events.h" #include "globals.h" #include "util/init.h" #include "factory/font_render.h" #include "parse-cache.h" #include "animation.h" #include "background.h" #include "sound.h" #include "reader...
/* * Copyright (c) 2009-2010 <NAME> <<EMAIL>> * * 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...
/*********************************************************************** * Copyright 1998-2020 CERN for the benefit of the EvtGen authors * * * * This file is part of EvtGen. * * ...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "core/fpdfdoc/cpdf_bafontmap.h" #include <memory> #include <utility>...
/* * Copyright 2018 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. * * The MIT License (MIT) * * Copyright (c) 2018 Sandia Corporation * * Permission is hereby granted, ...
/* Copyright (c) 2009-2017 <NAME> <<EMAIL>> 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, distr...
/* ---------------------------------------------------------------------- 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...
/* * Window.cpp * * Copyright (C) 2008, 2016 MegaMol Team * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "gl/Window.h" #include "utility/HotFixes.h" #include "vislib/sys/Log.h" #include "WindowManager.h" #include <cassert> #include <algorithm> #include <sstream> #include <string> #include <iostream> #...
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2022 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 6.0.2022.01.06 #include "CubeMapsWindow3.h" #include <Applications/W...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /************************************************************************************************** *** This file was autogenerated from GrUnrolledBinaryGradientColorizer.fp;...
#include "lumen/compiler/Dialect/EIR/IR/EIRTypes.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/SMLoc.h" #include "llvm/Support/raw_ostream.h" #include "lumen/compiler/Dialect/EIR/IR/EIRDialect.h" #include "lumen/compiler/Dialect/EIR/IR/EIREnums.h" #include "mlir/IR/Diag...
//$Id$ //------------------------------------------------------------------------------ // NumericJacobian //------------------------------------------------------------------------------ // GMAT: General Mission Analysis Tool. // // Copyright (c) 2002 - 2020 United States Government as repr...
// main.cpp #include <stdio.h> #include <Application.h> #include <Bitmap.h> #include <GraphicsDefs.h> #include <Region.h> #include <Window.h> #include "BitmapView.h" #include "BitmapBuffer.h" #include "FontManager.h" #include "Painter.h" const pattern kStripes = (pattern){ { 0xc7, 0x8f, 0x1f, 0x3e, 0x7c, 0xf8, 0xf1...
// Copyright (c) 2006-2008 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 <stdlib.h> #include <windows.h> #include "base/basictypes.h" #include "base/logging.h" #include "base/path_service.h" #include "base/st...
/* * Copyright (c) 2014 <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, dis...
#include "output/usb/ps4/hid.h" #include <stdint.h> #include <string.h> #include <sys/types.h> #include <zephyr.h> #include <logging/log.h> #include <sys/crc.h> #include "input/input.h" #include "input/touchpad.h" #include "output/usb/hid.h" #include "output/usb/ps4/auth.h" #include "types.h" #define LOG_LEVEL LOG...
/* * SerialIO.cpp * * Created on: Jul 31, 2015 * Author: Scott */ #include <SerialIO.h> #include "delay.h" static const double IO_TIMEOUT_SECONDS = 1.0; #define SERIALIO_DASHBOARD_DEBUG SerialIO::SerialIO( SerialPort::Port port_id, uint8_t update_rate_hz, bool proc...
// $Id: fe_init.cpp 95326 2011-12-14 14:55:49Z parsons $ /* COPYRIGHT Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United States of America. All Rights Reserved. This product is protected by copyright and distributed under the following license restricting its use. The Interface Definition La...
#include <qttasks.h> #include "ui_PeriodEditor.h" N::PeriodEditor:: PeriodEditor ( QWidget * parent , Plan * p ) : Splitter ( Qt::Vertical , parent , p ) , ui ( new Ui::PeriodEditor ) , StartTime ( NULL ...
/* FILENAME... devMVP2001.cc USAGE... Motor record device level support for MicroMo MVP 2001 B02 (Linear, RS-485). Version: $Revision: 1.4 $ Modified By: $Author: sluiter $ Last Modified: $Date: 2008-06-06 17:16:51 $ */ /* * Original Author: <NAME> * Date: 08/27/2002 * * * Illinois Open Source...
/* pcmsolver_copyright_start */ /* * PCMSolver, an API for the Polarizable Continuum Model * Copyright (C) 2013-2016 <NAME>, <NAME> and contributors * * This file is part of PCMSolver. * * PCMSolver is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser...
/********************* */ /*! \file bounded_integers.cpp ** \verbatim ** Original author: <NAME> ** Major contributors: <NAME> ** Minor contributors (to current version): none ** This file is part of the CVC4 project. ** Copyright (c) 2009-2013 New York Univ...
#include <gtest/gtest.h> #include <fstream> #include <seqan3/io/exception.hpp> #include "variant_detection/variant_detection.hpp" // for detect_junctions_in_long_reads_sam_file() using seqan3::operator""_dna5; std::string const default_alignment_short_reads_file_path = DATADIR"paired_end_mini_example.sam"; std::s...
// PHYS 30762 Programming in C++ // Assignment 7 // Vector class #include<iostream> #include<stdlib.h> #include<cmath> #include <iomanip> using namespace std; // Create matrix class class vector { // Friends friend ostream & operator<<(ostream &os, const vector &vec); friend istream & operator >> (i...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
#include "TemperatureControl.h" #include "SigmaDeltaPwm.h" #include "TemperatureSensor.h" #include "PID_Autotuner.h" #include <math.h> #include <string.h> // Temp sensor implementations: //#include "Thermistor.h" //#include "max31855.h" //#include "AD8495.h" //#include "PT100_E3D.h" #define UNDEFINED -1 Temperature...
/// ****************************************************************** /// File : Amaldi.cpp /// About : Amaldi's algorithm for finding the Minimum Cycle Basis /// Author : <EMAIL> /// License : Copyright (C) 2018 <NAME>, MIT License (MIT) /// /// Ref. : /// - Efficient Deterministic Algorithms for Finding a Minimal Cy...
/** * \file QryWznmQryList.cpp * job handler for job QryWznmQryList (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifdef WZNMCMBD #include <Wznmcmbd.h> #else #include <Wznmd.h> #endif #include "QryWz...
#include <stdio.h> #include <iostream> #include <stdlib.h> #include <unistd.h> #include <signal.h> #include <string.h> #include <fcntl.h> #include <sys/stat.h> #include <semaphore.h> #include <stdarg.h> #include <sys/socket.h> #include <sys/param.h> #include <sys/time.h> #include <sys/types.h> #include <netinet/in.h> #...
#include "Scene.h" #include <time.h> /* bool CScene::LoadScene(std::string filename, glm::vec3 routerCoords, float sstr) { tinyobj::attrib_t attrib; std::vector<tinyobj::shape_t> shapes; std::vector<tinyobj::material_t> materials; std::string err; std::vector<glm::vec3> glmvertices; routerPos = routerCoords; s...
#include "stdafx.h" #include "ikfoot.h" #include "../xrphysics/ik_collide_data.h" #include "../xrphysics/ik_calculate_state.h" #include "../xrphysics/MathUtils.h" #include "../include/xrrender/Kinematics.h" #include "../xrEngine/bone.h" #include "../xrEngine/ennumerateVertices.h" CIKFoot::CIKFoot() : m_bind_b2_to_b3(...
/** * \file GEMCSCSegAlgoRR.cc * originally based on CSCSegAlgoDF.cc * modified by <NAME> * to use GEMCSCSegFit class * * \authors: <NAME> */ #include "GEMCSCSegAlgoRR.h" #include "GEMCSCSegFit.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/MessageLogger/interface/MessageLogger.h...
#include <iostream> #include <sstream> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/time.h> #include <errno.h> #include <math.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/types.h> #include <sys/socket.h> #include <termios.h> #include <stdint.h> #includ...
//SubTag W2 W5 W20 #include "SubmarineFree.hpp" struct SS_112 : Module { static constexpr int deviceCount = 12; SS_112() : Module() { config(0, deviceCount, 0, 0); } }; struct SS112 : SchemeModuleWidget { SS112(SS_112 *module) : SchemeModuleWidget(module) { this->box.size = Vec(30, 380); addChild(new Schem...
#include <iostream> using namespace std; class Piece { public: void placePiece(char player); void setNeighbours(Piece board[8][8], int row, int col, Piece null); void setLocation(int row, int col); /* Set a piece's colour, neighbours and coordinates. */ char colour() const; Piece neighbo...
#include "Scene1.h" Scene1::Scene1() { } Scene1::Scene1(std::string n, GLuint w, GLuint h) { this->initilized = false; this->name = n; this->width = w; this->height = h; this->camera.setHeight(h); this->camera.setWidth(w); this->camera.setZoom(glm::vec2(1)); this->MovingSceneObjects.push_back(&this->camera...
#include <cmath> #include <cstdlib> #include <fstream> #include <iostream> #include <string> #include <termios.h> #include <unistd.h> using namespace std; struct Settings; static void title(string, const Settings &); static void render(const Settings &settings); static void info(string); static void error(string); st...
#include "FortuneAlgorithm.h" // My includes #include "Arc.h" #include "Event.h" FortuneAlgorithm::FortuneAlgorithm(Vector2Vector points) : mDiagram(points) { } FortuneAlgorithm::~FortuneAlgorithm() = default; void FortuneAlgorithm::construct() { // Initialize event queue for (unsigned int i = 0; i < mDiag...