text
stringlengths
8.71k
38.4k
#include <lyra/lyra.hpp> #include <mpi.h> #include <iomanip> #include <iostream> #include <memory> #include "my_timer.hpp" #include "rng.hpp" #include "xy_model.hpp" #include "output_png.hpp" struct cmd_opts { cmd_opts() : Nx(32), Ny(32), Nz(1), n_tiles_x(3), n_tiles_y(3), n_tiles_z(1), ...
#include <glog/logging.h> #include <stdio.h> #include <sstream> #include <string> #include <vector> #include "caffe/caffe.hpp" #include "caffe/parallel.hpp" #include "caffe/sgd_solvers.hpp" #include "caffe/util/format.hpp" #include "caffe/util/blocking_queue.hpp" #ifdef USE_NCCL #include <cuda_runtime.h> #endif #ifd...
/* * Copyright (c) 2010 Jice * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions a...
// // Object store daemon // #include "httpd/httpd.hh" #include "common/error.hh" #include "common/trace.hh" #include "common/hash.hh" #include "common/scopeguard.hh" #include "objparser/objparser.hh" #include "xml/xmlio.hh" #include "version.hh" #include "mirror.hh" #include "main.hh" #include <iostream> #include <...
#include <stdlib.h> #include <iostream> #include <vtkDataSetReader.h> #include <vtkRectilinearGrid.h> #include <vtkDataSet.h> #include <vtkDataArray.h> #include <vtkPointData.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkImageData.h> #include <vtkPNGWriter.h> #include <math.h> #define numSample...
// ********************************************************************* // Copyright 2000-2004, Princeton University. All rights reserved. // By using this software the USER indicates that he or she has read, // understood and will comply with the following: // // --- Princeton University hereby grants USER nonexclus...
// ggCaller header #include "call_ORFs.h" // generate ORFs from paths ORFNodeMap generate_ORFs(const GraphVector& graph_vector, const std::vector<std::string>& stop_codons, const std::vector<std::string>& start_codons, const std::vector<int>& ...
/* * Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * ...
#include "position.h" #include <iostream> #include <iomanip> extern Liberty libertyClass; extern int path[kDMax]; /// <summary> /// 盤の初期化 /// </summary> void Position::InitBoard() { int i, x, y; // 盤の枠を整えます for (i = 0; i < kBoardMax; i++) Board[i] = 3; // 盤上の石をすべて取り除きます for (y = 0; y < ...
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * obje...
/* Copyright 2013-present Barefoot Networks, 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 w...
/*****************************************************************/ /* NAME: <NAME> */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: HostInfo.cpp */ /* DATE: Dec 14th 2011 ...
#include "Validation/RecoB/plugins/BTagPerformanceAnalyzerMC.h" #include "FWCore/Framework/interface/MakerMacros.h" #include "FWCore/Framework/interface/makeRefToBaseProdFrom.h" #include "DQMOffline/RecoB/interface/TagInfoPlotterFactory.h" using namespace reco; using namespace edm; using namespace std; using namespace...
//===-- Metadata.cpp - Implement Metadata classes -------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <cmath> #include <fstream> #include <iostream> #include <iomanip> #include <random> #include <sstream> #include <fftw3.h> #include "parameter.hpp" #include "utilities.hpp" #include <boost/filesystem.hpp> namespace fs = boost::filesystem; void dir_manage(const std::string exist_dir, const std::string new_dir...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <utcommon.h> #include <ut_calibration_data.h> // Module being tested #include <k4ainternal/calibration.h> #include <k4ainternal/depth_mcu.h> using namespace testing; #define GTEST_LOG_INFO std::cout << "[ IN...
// ScatterCPU.cpp : Defines the entry point for the application. // #include "StdAfx.h" DECLARE_CORE_GLOBALS; #define SAMPLE_SIZE 5 struct SVertex { CVector vPos; CColor cColor; }; class CSphere { protected: float m_fRadius; int m_nSlices; int m_nSections; SVertex *m_pVertex; unsi...
#include "internals/enums.h" #include "game/Tactical/Animation_Control.h" #include "game/Tactical/Soldier_Control.h" /** Return approach name or NULL if not found. */ const char* Internals::getApproachName(enum Approach approach) { switch(approach) { case APPROACH_NONE: return "APPROACH_...
// __BEGIN_LICENSE__ // Copyright (c) 2009-2013, United States Government as represented by the // Administrator of the National Aeronautics and Space Administration. All // rights reserved. // // The NGT platform is licensed under the Apache License, Version 2.0 (the // "License"); you may not use this file excep...
#include <Eigen/Core> #include <Eigen/Geometry> #include <Eigen/Dense> #include <bfl/filter/bootstrapfilter.h> #include <bfl/model/systemmodel.h> #include <bfl/model/measurementmodel.h> #include <bfl/pdf/conditionalpdf.h> #include <bfl/pdf/gaussian.h> #include <iostream> #include <ros/ros.h> #include <nav_msgs/Odomet...
// Scintilla source code edit control /** @file LexDataflex.cxx ** Lexer for DataFlex. ** Based on LexPascal.cxx ** Written by <NAME>, June 2019 **/ /* // The License.txt file describes the conditions under which this software may be distributed. A few words about features of LexDataflex... Generally...
//===-- X86InstrFMA3Info.cpp - X86 FMA3 Instruction Information -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * Copyright 2019 Xilinx, 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...
/******************************************************** * <NAME> * * Implementacao algoritmo de Dijkstra com C++ * * Analise de Algoritmos: Metodo Guloso * * Professor: Dr. <NAME> * * FUCAPI - 05/12/2017 - <NAME> * * Engenharia de Software * *********************************************************/...
// Copyright <NAME> 2008 - 2012. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <iostream> #include <iomanip> #include <boost/ptr_container/ptr_deque.hpp> #include <boost/function...
/* * backupapp.cpp * * @see Main() * * Created on: 21 Ιαν 2014 * Author: gkarak */ #include <stdio.h> #include <sys/stat.h> #include <iostream> #include "backupapp.h" void BackupApp::GetAppInfo() { output()->p("SYSadmin Backup"); output()->p("(c) 2011-2017 <NAME> <<EMAIL>>"); output()->p("Version 1.20...
/*========================== begin_copyright_notice ============================ Copyright (C) 2017-2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "../asserts.hpp" #include "Messages.hpp" #include "RegSet.hpp" #include <...
#include "valgrindhacks.hpp" #include "fuseful.hpp" #include "fs123/acfd.hpp" #include <core123/complaints.hpp> #include <core123/datetimeutils.hpp> #include <core123/threadpool.hpp> #include <core123/sew.hpp> #include <core123/exnest.hpp> #include <core123/throwutils.hpp> #include <core123/envto.hpp> #include <core123...
// Copyright 2020-2021 OpenDR European 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 applicable law...
#include <iostream> #include <unordered_map> #include <stdexcept> #include <sstream> #include <set> #include <map> #include <ctime> #include <Precomp.h> #include <2DAFileReader.h> #include <TlkFileReader.h> #include <Nwn/base.hpp> #include <Nwn/character.hpp> #include <Nwn/ablblock.hpp> #include <Nwn/race.hpp> #inclu...
#include "gb-include.h" #include "Synonyms.h" #include "HttpServer.h" #include "Dns.h" #include "StopWords.h" #include "Speller.h" #include "Words.h" #include "Bits.h" #include "Phrases.h" #include "sort.h" #include "Wiktionary.h" Synonyms::Synonyms() { } Synonyms::~Synonyms() { reset(); } void Synonyms::reset() {...
#include "vicon.h" //compilation requres -pthread option //g++ vicon.cpp utility.cpp -I ../include -lpthread //#include "Xbee.h" //#include "receiver.h" int usb_xbee_fd; int select_usb_xbee_fd; //int num_bytes_per_read=1; int onesecond_v = 1000000/4; int stats_flag_v = 0; fd_set read_fds_v; struct timeval no_timeout_...
#include "GameEngine.h" #include "GameEvent.h" #include "GameState.h" #include "GameProtos.pb.h" #include "../Base.h" #include "../System.h" #include <set> using namespace std; REGISTER_EVENT(-1, GameStateEvent); REGISTER_EVENT(-2, ReadyToPlayEvent); REGISTER_EVENT(-3, NewEngineEvent); class StandardFrameCalculat...
// Copyright (c) 2016-2018 <NAME> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //#define BOOST_PFR_RELAX_POD_REQUIREMENT #include <boost/pfr.hpp> #include <boost/core/lightweight_test.hpp> //#include <boost/t...
/****************************************************************************** ** Copyright (C) 1998 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> ** ** Date: 05/01/06 ** ** File: wl_t2_fil...
#include "Superpop.h" #include "Pop.h" #include "Para.h" #include <random> #include <algorithm> #include <iostream> #include <fstream> #include <sstream> #include <algorithm> #include <unordered_map> #include <unordered_set> using namespace std; vector<unordered_map<string, int>> Superpop::SeqTypes; unordered_map<s...
// Copyright 2008, Google Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, // this list of conditions an...
#include "Inspect.h" #include "ImageIO.h" #include "Maths.h" #include "Correlation.h" #include <stdlib.h> #include <string.h> /* --------------------------------------------------------------- */ /* YellowView ---------------------------------------------------- */ /* ------------------------------------------...
/* strcspn example */ #include <iostream> #include <string.h> #include <fstream> #include <cstdlib> #include <cmath> #include <iomanip> #include <utility> #include"gconfig.h" using namespace std; const double PI = 3.141592653589793; struct gcode { int code; float X; float Y; float I; float J...
#include "gcoder.h" using namespace mgl; using namespace std; using namespace libthing; #include "log.h" #include <math.h> // function that adds an s to a noun if count is more than 1 std::string plural(const char*noun, int count, const char* ending = "s") { string s(noun); if (count>1) { return s+ending; } r...
//----------------------------------------------------------------------------- //Name: Html Scheduler //Author: <NAME> //School: Mendham //Computer Used: Dell Inspiron 8100 //Programming Language Used: C++ //Date: 4-6-03 //Purpose: To easily create an html calendar of events without coding HTML //-------------...
#include <fstream> #include <iostream> #include "CalibMuon/CSCCalibration/interface/CSCNoiseMatrixConditions.h" CSCNoiseMatrix *CSCNoiseMatrixConditions::prefillNoiseMatrix() { int old_chamber_id, old_strip, new_chamber_id, new_strip; float old_elm33, old_elm34, old_elm44, old_elm35, old_elm45, old_elm55; float...
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- * 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/. */ #if defined(MOZ_WIDGET_GTK) #include...
/************************************************************************** * * Copyright (c) 2002 - 2011 by Computer Architecture Department, * Universitat Politecnica de Catalunya. * All rights reserved. * * The contents of this file may not be disclosed to third parties, * copied or duplicated in any form, in...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
// plymirror // // Given that we have matched a mirror object to the mesh, // Read the mirror .xf and .mir files to figure out which // points were seen through the mirror, and mirror 'em. // (It also puts the scene in roughly the right place, but // you really should do alignment, because this depends on // how accur...
#include <iostream> #include <sstream> #include <fstream> #include <string> #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include "Zombie.h" #include "Player.h" #include "TextureHolder.h" #include "Bullet.h" #include "Pickup.h" using namespace sf; int createBackground(VertexArray& rVA, Int...
/* * guardian_node * Copyright (c) 2011, Robotnik Automation, SLL * 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 ...
#include <stdlib.h> #include <stdio.h> #include <algorithm> #include <iostream> #include <bitset> #include <fstream> #include <sstream> #include <filesystem> #include <random> #include <numeric> #include <chrono> //#define USEZOPFLI #include "cryptlib.h" #include "filters.h" #include "files.h" #include "modes.h" #inc...
#include "blocker_rules.h" #include <iterator> namespace std { inline uint qHash(const std::string& str) { return static_cast<uint>(std::hash<std::string>{}(str)); } } // namespace std namespace doogie { // Hash helpers #ifdef USE_QHASH #define ITER_KEY(_ITER) _ITER.key() #define ITER_VAL(_ITER) _ITER.value() ...
#include "../gfx/renderer.h" #include "../state.h" #include "sky.h" #include "../util/color.h" // sun(rise/set) time in ticks #define SUN_CHANGE_TICKS (45 * TICKRATE) #define HALF_SUN_CHANGE_TICKS (SUN_CHANGE_TICKS / 2) // TODO why is this not importing from color.h inline vec3s rgb2xyz(vec3s c) { vec3s tmp; ...
// Copyright (c) 2015-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 <httpserver.h> #include <chainparamsbase.h> #include <compat.h> #include <util.h> #include <utilstrencodings.h> #in...
#include<stdafx.h> #include<stdio.h> #include<math.h> #include "fkn.h" #include "fknDlg.h" #include "complex.h" #include "mesh.h" #include "spars.h" #include "FemmeDocCore.h" #include "lua.h" extern lua_State *lua; BOOL CFemmeDocCore::Static2D(CBigLinProb &L) { int i,j,k,w,s,sdi_iter,sdin; double Me...
/* Software License Agreement (BSD License) Copyright (c) 2016--, <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: * Redistributions of source code must retain the above copyright no...
/* * Copyright 2002, 2003 <NAME>, <NAME>. All rights reserved. * Distributed under the terms of the MIT License. */ #include "DefaultManager.h" #include <Application.h> #include <Directory.h> #include <File.h> #include <FindDirectory.h> #include <MediaNode.h> #include <OS.h> #include <Path.h> #include <TimeSource...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/ops/GrAtlasTextOp.h" #include "include/core/SkPoint3.h" #include "include/private/GrRecordingContext.h" #include "src/core/SkMathPriv.h" #include "src/core/...
// //C++ Implementation: Technique // #include "technique.h" #include "config.h" #include "XMLDocument.h" #include "VSFileXMLSerializer.h" #include "vsfilesystem.h" #include "gfxlib.h" #include "aux_texture.h" #include <exception> #include <map> #include <boost/smart_ptr.hpp> #include "xml_support.h" #include "opt...
/***************************************************************************** * * * OpenNI 2.x Alpha * * Copyright (C) 2012 PrimeSense Ltd. * * ...
// @file: sim_anneal.cc // @author: Samuel // @created: 2017.08.23 // @editted: 2019.02.01 // @license: Apache License 2.0 // // @desc: Simulated annealing physics engine #include "simanneal.h" #include <ctime> #include <algorithm> #include <unordered_set> #include <boost/numeric/ublas/vecto...
#include "ros/ros.h" #include "std_msgs/String.h" #include "std_msgs/Float32.h" #include "std_msgs/Bool.h" #include "focus_serial/serialMsg.h" #include "focus_control/input.h" #include "focus_control/status.h" #include "pcan/CANMsg.h" #include "nav_msgs/Odometry.h" #include "geometry_msgs/PointStamped.h" #include <nume...
/// Implementation of Lanczos and gradient methods to solve symmetric, positive, definite linear system of equations /// Main script generate and solve such a problem using both methods in local and distributed fashion then compare the results. #include "MpiRoutines.hpp" #include "linalg.hpp" #include <iostre...
#define DPCT_USM_LEVEL_NONE #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include <cmath> #define restrict __restrict #define max(a,b) ((a<b)?b:a) #define min(a,b) ((a<b)?a:b) const int WSIZE = 12000; // Walker const int NSIZE = 2003; // Values const int MSIZE = NSIZE*3+3; // Gradient vec...
// StructGen.h #include "Globals.h" #include "StructGen.h" #include "../BlockID.h" #include "Trees.h" #include "../BlockArea.h" #include "../LinearUpscale.h" //////////////////////////////////////////////////////////////////////////////// // cStructGenTrees: void cStructGenTrees::GenFinish(cChunkDesc & a_ChunkD...
//===- Replacement.cpp - Framework for clang refactoring tools ------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "SNFitter.h" #include "SNFitterImpl.h" #include <algorithm> #include <valarray> // ROOT #include "Fit/Fitter.h" #include "Math/Functor.h" #include "TLinearFitter.h" #include "TSpectrum.h" #include "TH1D.h" // *** SNFitter section // ******************** // lines in SNFitter std::vector<double> SNFitter::li...
/* Copyright (c) 2010-2015 Vanderbilt University * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
#include <conio.h> #include <iostream> using namespace std; #include <ctime> #define _CRTDBG_MAP_ALLOC #include <cstdlib> #include <crtdbg.h> #include <fstream> #include "Console.h" using namespace System; #include "Player.h" #include "globals.h" #include "Ghost.h" #include "Fruits.h" // Reset the console's cursor ...
#include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <arpa/inet.h> #include <netinet/ether.h> #include <sys/socket.h> #include <time.h> #include <string> #include <vector> #include <cstring> #include <iostream> #include "converter.h" #include "FlowTable.h" #ifdef FPM_ENABLED #include "FPMServer.hh" #e...
/** * @file dex.cpp * * This file contains DEx logic. */ #include <tradelayer/dex.h> #include <tradelayer/convert.h> #include <tradelayer/errors.h> #include <tradelayer/externfns.h> #include <tradelayer/log.h> #include <tradelayer/mdex.h> #include <tradelayer/rules.h> #include <tradelayer/sp.h> #include <tradelay...
// Copyright 2019 the Drakhtar authors. All rights reserved. MIT license. #include "Game.h" #include "../Errors/SDLError.h" #include "../Managers/FontManager.h" #include "../Managers/SDLAudioManager.h" #include "../Managers/TextureManager.h" #include "../Scenes/MenuScene.h" #include "../Scenes/TransitionScene.h" #inc...
/** \file hyphman.cpp \brief AlReader hyphenation manager (c) Alan, adapted TeX hyphenation dictionaries code: http://alreader.kms.ru/ (c) <NAME> -- hyphenation algorithm, modified my Mike & SeNS Adapted for CREngine by <NAME> This source code is distributed under the terms of GNU General Pub...
/* OFX Basic Example plugin, a plugin that illustrates the use of the OFX Support library. Copyright (C) 2004-2005 The Open Effects Association Ltd Author <NAME> <EMAIL> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Re...
#include <string> #include <iostream> #include <set> #include <map> #include <AMReX_ParmParse.H> #include <AMReX_MultiFab.H> #include <AMReX_DataServices.H> #include <AMReX_BLFort.H> #include <StreamData.H> using namespace amrex; using std::vector; using std::map; using std::string; using std::cerr; using std::end...
/****************************************************************************//* * Copyright (C) 2020 <NAME> * * Creative Commons Legal Code * * CC0 1.0 Universal * * CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE * LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREA...
// Generated from Dotenv.g4 by ANTLR 4.8 #include "DotenvLexer.h" using namespace antlr4; DotenvLexer::DotenvLexer(CharStream *input) : Lexer(input) { _interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache); } DotenvLexer::~DotenvLexer() { delete _interpreter; } std::stri...
#include "dataObjPut.h" #include "dataObjRepl.h" #include "dataObjUnlink.h" #include "dataPut.h" #include "filePut.h" #include "getRemoteZoneResc.h" #include "icatHighLevelRoutines.hpp" #include "modDataObjMeta.h" #include "objMetaOpr.hpp" #include "physPath.hpp" #include "rcGlobalExtern.h" #include "regDataObj.h" #in...
#include <iostream> #include <GetSetGui/GetSetGui.h> #include <LibUtilsQt\Figure.hxx> // NRRD file format #include <NRRD/nrrd_image.hxx> #include <Eigen/Geometry> // Geometry: Projection matrices and epipolar geometry #include <LibProjectiveGeometry/ProjectionMatrix.h> #include <LibProjectiveGeometry/CameraOpenGL....
int cQa ,// q7, J, sa , yp1d,vfxml ,Z , SYD ,RMVl ,O ,R,//HQCLI OLD, VMG/*U*/, EN// , n ,Aoe , RUR , mIGlP7 , nEJ ,F , gS , aA, rS ,mb5, orNuP ,oZZ9 , Z1,// CpSM,sJ3 , t2d, /*Py*/ JzpfDMZM, fJS,MMK8,wr, B ,ePv , FqF, nT4rb , bN , WEF3, NkOh , bPie /*s3*/, fEiNe1, u1, EJd, v ;void f_f0 ()...
#include <iostream> #include <vector> #include <string> #include <fstream> #include <cmath> #include <stdint.h> #include <map> #include <boost/lexical_cast.hpp> #include <boost/algorithm/string.hpp> #include "simulate.h" //from ASCII of A(N) C G T to 0 1 2 3, auto dealing with upper or lower case. //8bit char type, A=...
/* * Copyright (C) 2019 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...
// // InboundAudioStream.cpp // libraries/audio/src // // Created by <NAME> on 7/17/2014 // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "InboundAudioStream.h" #inclu...
/* * cafiles.cpp * * Created on: Jan 13, 2011 * Author: DS\hen55467 */ #include <sstream> #include <arpa/inet.h> #include <fstream> #include <stdlib.h> #include <pthread.h> #include <functional> #include <sstream> #include <iostream> #include <string> #include <dirent.h> #include <unistd....
#include "RealtimeUtils.hpp" #define PI 3.14159265359 Eigen::VectorXd PoseMsgToStateEstimatorVector(const mav_pose_t *msg, const Eigen::Matrix3d Mz) { // convert message to 12-state vector in the State estimator frame Eigen::VectorXd state(12); Eigen::Vector3d pos_eigen; pos_eigen(0) = msg->pos[0...
#include <iostream> #include <utility> #include <vector> #include <queue> #include <algorithm> #include <cmath> #include <cassert> #include "path.h" static int id = 0; // height - длина вертикального столбца, width - горизонтальной строчки ShortestPath::ShortestPath(int wid, int hei, int step) : step(step) { widt...
// MFEM Example 32 - Parallel Version // // Compile with: make ex32p // // Sample runs: mpirun -np 4 ex32p -m ../data/hexagon.mesh -o 2 // mpirun -np 4 ex32p -m ../data/star.mesh // mpirun -np 4 ex32p -m ../data/square-disc.mesh -o 2 -n 4 -rs 1 // mpirun ...
// This file is part of snark, a generic and flexible library for robotics research // Copyright (c) 2011 The University of Sydney // 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. Redistr...
#include "iostream" #include "time.h" #include "math.h" #include "stdlib.h" #include "pspkernel.h" #include "pspdebug.h" #include "pspdisplay.h" #include "pspctrl.h" #include "common/callbacks.hpp" #include "common/helpers.hpp" #include "lib/glib2d.hpp" #define screenWidth 480 #define screenHeight 272 #define texture...
// Special treatment of close encounters. Current options, selected // by jdata.manage_encounters, are: // // 0 no special treatment // 1 analytic pericenter reflection // 2 (1) and merge close binaries // 3 (2) and full ntegration of multiple (to do) // // Global function: // // void jdata::resolve_encounter() #inc...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.org/> * * Copyright (C) 2008 - 2012 TrinityCore <http://www.trinitycore.org/> * * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/> * * Copyright (C) 2011 - 2012 True Blood <http://www.trueblood-servers.com/> * By Asardial * * Copyright (C) 2012 <NAM...
/*MIT License Copyright (c) 2020 WX96 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...
/************************************************************** * * 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 y...
#include "seaview.h" #include <ctype.h> #include <FL/Fl_Check_Button.H> extern "C" { #include "raa_acnuc.h" } struct runningw_struct { raa_db_access *raa; SEA_VIEW *view; FILE *infile; int listrank; int elt; int count, interrupted, use_spec_name, truncated; Fl_Box *runb; }; /* local functions */ int racnu...
/*************************************************************************************/ // Program <NAME> /*************************************************************************************/ #include <windows.h> #include <gl/gl.h> #include <gl/glut.h> #include <gl/glext.h> //deklaracja funkcji z opengl 1.2/1.3 #inc...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation ...
// INCLUDE FILES #include "PuzzlesConfig.h" #include <aknutils.h> #include <aknnotewrappers.h> #include <coemain.h> #include <eiklabel.h> #ifdef ENABLE_TOUCH_UI #include <aknbutton.h> #include <aknstyluspopupmenu.h> #endif #include <string.h> #include "Puzzles_0xa000ef77.rsg" #include "Puzzles.hrh" ...
/** Spatial math: Xyz, Quaternion and Matrix operations * @file * * This source file is part of the Pegasus3d browser. * See Copyright Notice in pegasus3d.h */ #include "pegasus3d.h" #include <stdio.h> #include "xyzmath.h" /* Pre-calculated constants for fast approximation of spherical linear interpolation */ Af...
// eldr_ms3d.cpp // Milkshape 3D file loader // // Copyright (c) 2004-2017 Elements Interactive B.V. /////////////////////////////////////////////////////////////////// #include "edgedevice.h" #include "edgedef.h" #define EDGE_INCLUDED #include "eloader.h" #include "emath.h" #include "ememory.h" #include...
#include <iostream> #include <algorithm> #include <cassert> #include <limits> #include <numeric> #include <cmath> #include <vector> #include <fstream> namespace { template<class T> std::vector<T> cosineTaper(const std::vector<T> &x, const double pct = 5) { constexpr T zero = 0; std:...
/*! \file tracking_files.cc \brief implementation for tracking files classes \copyright Released under the MIT License. Copyright 2020 <NAME>. */ #include "initialize_output_directories/tracking_files.h" void initialize_output_directories::model_matrix::load_data( const std::string &filename) { // http...
// // 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...