text
stringlengths
8.71k
38.4k
//===----------------------------------------------------------------------===// // // 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 // Also available under a BSD-style...
/* * Copyright (c) Castles * All rights reserved. * * File Name: Md5.h * version: 1.0 * author: Alan * Date: 2017.09.06 */ #include "MD5.h" #include "ByteStream.h" //Magic initialization constants #define MD5_INIT_STATE_0 0x67452301 #define MD5_INIT_STATE_1 0xefcdab89 #define MD5_INIT_STATE_2 0x98badcfe #de...
#include "imgui_sdl.h" #include <SDL2/SDL.h> #include "imgui.h" #include <map> #include <list> #include <cmath> #include <array> #include <vector> #include <memory> #include <iostream> #include <algorithm> #include <functional> #include <unordered_map> namespace { struct Device* CurrentDevice = nullptr; namespac...
#include <X11/Xatom.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <cassert> #include <chrono> #include <iostream> #include <thread> #include "platform_window/platform_window.h" namespace { PlatformWindowKey XKeyEventToPlatformWindowKey(XKeyEvent* event); } // namespace namespace { class PlatformWindowX1...
#include "Application.h" #include "Camera3D.h" #include "FileSystem.h" #include "Editor.h" #include "Window.h" #include "Renderer3D.h" #include "MainScene.h" #include "Input.h" #include "Buffer.h" #include "MeshLoader.h" #include "TextureLoader.h" #include "ComponentCamera.h" #include "ComponentMaterial.h" #include ...
// Copyright 2016 The Fuchsia Authors // // 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...
#include <iostream> #include <cstdio> #include <vector> #include <fstream> #include <string> #include <iostream> #include <stdint.h> #include <stdlib.h> #include <string.h> #ifdef __APPLE__ #include <OpenCL/opencl.h> #else #include <CL/cl.h> #endif #define LOG 0 /******************************************************...
// This is third-party software that is distributed with the TEVA-SPOT Toolkit. // Usage of this code is covered by an ATT Commercial License. #include "search.h" #include "constructive.h" #include "bossa_timer.h" #include <iostream> #include <iomanip> #include <vector> #include <float.h> /*------------------------...
//===- UnwindInfoSection.cpp ----------------------------------------------===// // // 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 // //===---------------------------...
// vertexcompression.cpp : Defines the entry point for the console application. // #define _CRT_SECURE_NO_WARNINGS #include <assert.h> #include <math.h> #if !defined(_MSC_VER) #include <stdint.h> #else typedef signed char int8_t; typedef unsigned char uint8_t; typedef short int16_t; typedef unsigned short uint16_t; t...
#include <stdio.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <phosg/Filesystem.hh> #include <phosg/Strings.hh> #include <unordered_map> #include <vector> #include "realmz_lib.hh" using namespace std; static string first_file_that_exists(const vector<string>& names) ...
#include "algorand.h" #include "base.h" #include "mnemonic.h" #include <iostream> #include <map> #include <sstream> #include <vector> #include <sodium.h> Address::Address() : Address("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ") { } // Address::Address(const Address& rhs) : // as_string(rhs.as_s...
//-*-mode:c++; mode:font-lock;-*- /*! \file VSAFunction.cpp Various predefined functions. \author <NAME> \n UCLA \n <EMAIL> \n \version 0.1 \date 12/01/2008 */ #include <algorithm> #include <VSAFunction.hpp> #incl...
#include <inttypes.h> #include <stdlib.h> #include <phosg/Encoding.hh> #include <phosg/Filesystem.hh> #include <phosg/Image.hh> #include <phosg/Strings.hh> #include <stdexcept> #include <vector> #include "resource_fork.hh" using namespace std; struct MonkeyShinesRoom { struct EnemyEntry { uint16_t y_pixels;...
#include <VBE/system/sdl2/InputImpl.hpp> #include <VBE/system/sdl2/WindowImpl.hpp> #include <VBE/system/Log.hpp> // static InputImpl::GamepadImpl InputImpl::controllers[Gamepad::COUNT]; bool InputImpl::keyPresses[Keyboard::KeyCount]; bool InputImpl::mouseButtonPresses[Mouse::ButtonCount]; vec2i InputImpl::mousePos; ve...
#include <cstring> #include "io_files.h" enum State{ MODEL , FREE }; State state = FREE; const int LABEL_ID = 31; #include "../util/util.h" // ----------------------------------------------------------------------------- File::File(Repository * repository) { clsRepository = repository; clsRepository->setNumLaye...
#include "triangulation_gr3.h" #include "../path/path_planning_gr3.h" #include "../useful/useful.h" #include "../path/path_planning_gr3.h" #include "../strategy/strategy_gr3.h" #include "../CtrlStruct_gr3.h" #include "init_pos_gr3.h" #include "lidar.h" #include "opp_pos_gr3.h" #include <math.h> #include <stdio.h> #def...
/* * 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/. */ /* * File: ConvertKeys.cpp * Author: <NAME> and <NAME> */ #include <string.h> #include <sstream> #inclu...
#include "simlib/config_file.hh" #include "simlib/utilities.hh" #include <gtest/gtest.h> using std::array; using std::endl; using std::pair; using std::string; using std::vector; // NOLINTNEXTLINE TEST(ConfigFile, is_string_literal) { // (input, output) vector<pair<string, bool>> cases{ {"", fals...
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later version. * * ...
// <NAME> // 2021/10/15 // v0.0 // node name: av_pointcloud_node // type: av_pointcloud // * Purpose: // * Drive automously mowbot through series of lat/lon points in sequence // * Global 0 taken to be mowbot heading/position at start of controller action // * Lookahead point, ie: kinematic path end point for plann...
// Copyright 2019 - University of Strathclyde, King's College London and Schlumberger Ltd // This source code is licensed under the BSD license found in the LICENSE file in the root directory of this source tree. #include "Plan.h" #include "RobustAnalyse.h" #include "State.h" #include "Validator.h" #include "typecheck...
//------------------------------------------------------------------------------ // Created : 06.04.2021 // Author : <NAME> // Description : Tests for algorithm "Edge Aware" and secondary functions. //------------------------------------------------------------------------------ #include "AzimuthEvaluation...
/* * Copyright 2012 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
// // Echo Client // // <NAME> <<EMAIL>> // <NAME> <<EMAIL>> // // 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 cond...
#include <cassert> #include <iostream> #include <fstream> #include <sstream> #include <iomanip> #include <algorithm> #include "biu/OptionParser.hh" #include "sgm/GM_vf2.hh" #include "sgm/SGM_vf2.hh" #include "sgm/Graph_boost.hh" #include "ggl/Rule.hh" #include "ggl/RuleGraph.hh" #include "ggl/MR_App...
/// \file tube_world.cpp /// \brief A kinematic simulation of a differential drive robot using the /// DiffDrive class. /// /// PARAMETERS: /// frequency (int): control loop frequency /// cmd_vel_flag (bool): specifies when new cmd_vel is read /// collision_flag (bool): specifies when the robot collides ...
#include "led-matrix.h" #include "graphics.h" #include <sys/types.h> #include <sys/socket.h> #include <linux/wireless.h> #include <sys/ioctl.h> #include <linux/i2c-dev.h> //Needed for I2C port #include <getopt.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <dirent.h> #inclu...
#define Analysis_cxx #include "Analysis.h" #include "EnergyLoss.h" #include <TRandom3.h> #include <string> #include "EffectiveThickness.h" #include "json/json.h" #include "Utilities.h" //DOPPLER CORRECTION FUNCTION DEFINITION Float_t dop(Float_t GamAngle, Float_t RecoilBeta, Float_t GamEnergy){ Float_t RecoilGamm...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" // for data interpolation using namespace std; // for convenience using json = nloh...
/* * herkulex_node.cpp * Copyright (c) 2017, Robot Mitya. * 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 * ...
// MABE is a product of The Hintze Lab @ MSU // for general research information: // hintzelab.msu.edu // for MABE documentation: // github.com/Hintzelab/MABE/wiki // // Copyright (c) 2015 Michigan State University. All rights reserved. // to view the full license, visit: // github...
/* Copyright Disney Enterprises, Inc. All rights reserved. This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. 1. Definitions The terms "reproduce," "reproduction," "derivative works," and "distribution" ha...
/* * Copyright 2008 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkStrokerPriv.h" #include "SkGeometry.h" #include "SkPath.h" #define kMaxQuadSubdivide 5 #define kMaxCubicSubdivide 4 static inline bool d...
/* * Copyright 2020 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: <NAME> (<EMAIL>) #include "tabletnode_sysinfo.h" #include <sys/time.h> #include <unistd.h> #include <cstdlib> #include <iomanip> #include <i...
#include "selfdrive/ui/qt/maps/map.h" #include <cmath> #include <QDebug> #include "selfdrive/common/swaglog.h" #include "selfdrive/ui/ui.h" #include "selfdrive/ui/qt/util.h" #include "selfdrive/ui/qt/maps/map_helpers.h" #include "selfdrive/ui/qt/request_repeater.h" const int PAN_TIMEOUT = 100; const qreal REROUTE_...
// Copyright (c) 2020 <NAME> #include "ram/minimizer_engine.hpp" #include <cassert> #include <cstdlib> #include <deque> #include <iostream> #include <memory> #include <stdexcept> namespace { static std::uint64_t First(const std::pair<std::uint64_t, std::uint64_t>& pr) { return pr.first; } static std::uint64_t Se...
// \file f9twf/ExgMkt_UT.cpp // // 測試 台灣期交所 行情格式解析. // // \author <EMAIL> #define _CRT_SECURE_NO_WARNINGS #include "f9twf/ExgMdPkReceiver.hpp" #include "f9twf/ExgMdFmtMatch.hpp" #include "f9twf/ExgMdFmtBS.hpp" #include "f9twf/ExgMdFmtHL.hpp" #include "f9twf/ExgMcFmtSS.hpp" #include "f9twf/ExgMdSymbs.hpp" #include "f9e...
#include "RecoEcal/EgammaClusterAlgos/interface/HybridClusterAlgo.h" #include "RecoCaloTools/Navigation/interface/EcalBarrelNavigator.h" #include "DataFormats/GeometryVector/interface/GlobalPoint.h" #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #...
#include "AliAnalysisTaskStrangenessRatios.h" #include "AliAnalysisDataContainer.h" #include "AliLog.h" #include <algorithm> #include <cmath> #include <string> using std::string; // ROOT includes #include <TAxis.h> #include <TChain.h> #include <TH2F.h> #include <TList.h> #include <TRandom3.h> #include <TTree.h> // ...
/* * \file L1TGMT.cc * * \author <NAME>, <NAME> * */ #include "DQM/L1TMonitor/interface/L1TGMT.h" #include "DQMServices/Core/interface/DQMStore.h" #include "FWCore/Framework/interface/EventSetup.h" #include "FWCore/Framework/interface/ESHandle.h" #include "CondFormats/L1TObjects/interface/L1MuTriggerScales.h" #i...
int V7vwtt,/**/ anLs,wznzm , Dz , x , o8v,hIlNR,yZdi ,Ptem /*K*/,e ,UHX , kG, DAi , FP , C4 , NuF , YO ,/*jw*/ Nwm ,/*Ded2*///E cG //83lSW ,//MS wisG//dTHPB , LBJq ,p , Jds , SxfjVT ,Sz,cQs , PD ,//xz F0AlIc , uww , GDg0 ,y1x//gT , lQ, hs , jDO ,//n LG , ggC,q1F1dq, IO ,DR7D ; void f_f0 (){ vo...
/* -*- 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/. */ #ifdef MOZ_PANGO #define PANGO_ENABL...
#include "widget.h" #include <stdio.h> #include <iostream> #include <opencv2\opencv.hpp> #include <opencv2\core\core.hpp> Widget::Widget(QWidget *parent) : QOpenGLWidget(parent) { // 持续更新mousemove事件 setMouseTracking(true); setAcceptDrops(true); //接收拖拽 setMinimumSize(100, 100); // 定时up...
/* Writes a vector file (.svg) for the type of trace specified <type> type of trace (see the implementation) <image> address of the input image <output> address of the directory where the files should be written */ const char* usage = "./polyvec-stages <image> <classifier> [<stage>=<svg>, ...]\n" "<image> ...
#include "Base/ExtDLL.h" #include "Util.h" #include "Base/CBase.h" #include "CBasePlatTrain.h" #include "Path/CPathTrack.h" #include "CFuncTrain.h" #include "CFuncTrackTrain.h" TYPEDESCRIPTION CFuncTrackTrain::m_SaveData[] = { DEFINE_FIELD( CFuncTrackTrain, m_ppath, FIELD_CLASSPTR ), DEFINE_FIELD( CFuncTrackTrain, m...
// // $Id$ // // Copyright (C) 2007 Turner Technolgoies Inc. http://www.turner.ca // // 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...
#include <iostream> #include <fstream> #include <random> #include <string> #include <algorithm> #include <iterator> #include <sstream> #include <vector> #include <map> #include <unordered_set> #include <unordered_map> #include <ctime> #include <cstdlib> #include <stack> #include <dirent.h> using namespace std; ofstre...
// nineteen.cpp // Beacon Scanner #include <iostream> #include <vector> #include <unordered_map> #include <iomanip> #include "geometry/vector3d.h" #include "geometry/aabb3d.h" #include "geometry/matrix4.h" #include "geometry/geometry_constants.h" #include "util.h" using namespace std; using namespace Geometry; type...
// Copyright 2012 Cloudera 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 wr...
/* * (c) Copyright 1993, Silicon Graphics, Inc. * ALL RIGHTS RESERVED * Permission to use, copy, modify, and distribute this software for * any purpose and without fee is hereby granted, provided that the above * copyright notice appear in all copies and that both the copyright notice * and this permission noti...
/* Copyright 2020, RespiraWorks 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 writing, software d...
// ImGui - standalone example application for SDL2 + OpenGL // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // (SDL is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) // (GL3W is a helper library to acce...
#include "mjolnir/shortcutbuilder.h" #include "mjolnir/graphtilebuilder.h" #include <ostream> #include <sstream> #include <iostream> #include <set> #include <string> #include <vector> #include <map> #include <utility> #include <boost/property_tree/ptree.hpp> #include <boost/format.hpp> #include <boost/filesystem/opera...
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // 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 restrictio...
// -*- C++ -*- // // Package: RecoHI/HiJetAlgos/plugins/HiPuRhoProducer // Class: HiPuRhoProducer // /**\class HiPuRhoProducer HiPuRhoProducer.cc RecoHI/HiJetAlgos/plugins/HiPuRhoProducer.cc Description: Producer to dump Pu-jet style rho into event content Implementation: Just see MultipleAlgoIterator - re-i...
// Copyright 2020 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// This file is part of comma, a generic and flexible library // 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. Redistributions of source cod...
/* D S P _ B R E P . C P P * BRL-CAD * * Copyright (c) 2008-2022 United States Government as represented by * the U.S. Army Research Laboratory. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1...
/******************************************************************************************************************************************** * Saras * * Copyright (C) 2019, <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted pro...
//===-- X86AsmPrinter.cpp - Convert X86 LLVM code to AT&T assembly --------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <raimd/tib_msg.h> using namespace rai; using namespace md; namespace rai { namespace md { enum { TIB_NODATA = 0, TIB_MESSAGE = 1, TIB_STRING = 2, TIB_OPAQUE = 3, TIB_BOOLEAN = 4, TIB_INT = 5, TIB_UINT = 6, TIB_REAL = 7, TIB_ARRAY = 8, TIB_PART...
/* NVidia Display Driver Service (Nsvr) Exploit - Christmas 2012 - Bypass DEP + ASLR + /GS + CoE ============================================================= (@peterwintrsmith) ** Initial release 25/12/12 ** Update 25/12/12 - Target for 30 Aug 2012 nvvsvc.exe Build - thanks @seanderegge! Hey all! Here is...
/******************************************************************************* * * MIT License * * Copyright 2019-2021 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal *...
/** * @file llpartdata.cpp * @brief Particle system data packing * * $LicenseInfo:firstyear=2003&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Gen...
#include "Iterator.h" #include "Loop.h" #include "BasicBlock.h" #include "Variable.h" #include "IO.h" #include "Dependence.h" using namespace janus; using namespace std; static void getIteratorFinalValue(ExpandedExpr &boundExpr, Iterator &iterator); Iterator::Iterator(VarState *vs, janus::Loop *loop) :vs(vs),loop(lo...
/* START: libnice imports */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <ctype.h> #include <nice/agent.h> #include <nice/pseudotcp.h> /* END: libnice imports */ #include <glib-unix.h> #include <gloox/client.h> #include <gloox/connectionlistener.h> #include <gloox/connectiontcpclient.h> #inclu...
#include <modeller/modeller.h> #include <modeller/configuration.h> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/viz/viz3d.hpp> #include <vtkAutoInit.h> VTK_MODULE_INIT(vtkRenderingOpenGL); #include <vtkImageData.h> #include <vtkSTLWriter.h> #include <vtkPLYWriter.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 ...
#include<bits/stdc++.h> using namespace std; const int N = 3e5 + 9, mod = 998244353; struct base { double x, y; base() { x = y = 0; } base(double x, double y): x(x), y(y) { } }; inline base operator + (base a, base b) { return base(a.x + b.x, a.y + b.y); } inline base operator - (base a, base b) { re...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2016 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 "amount.h" #include "chain.h" #include "chainparams.h" #include "config.h" #in...
// Copyright 2010-2015 RethinkDB, all rights reserved. #include "clustering/table_contract/executor/exec_primary.hpp" #include "clustering/administration/admin_op_exc.hpp" #include "clustering/immediate_consistency/local_replicator.hpp" #include "clustering/immediate_consistency/primary_dispatcher.hpp" #include "clust...
/*************************************************** This is a library written for the Maxim MAX30105 Optical Smoke Detector It should also work with the MAX30102. However, the MAX30102 does not have a Green LED. These sensors use I2C to communicate, as well as a single (optional) interrupt line that is not cu...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "GraphEditorCommon.h" #include "ConnectionDrawingPolicy.h" DEFINE_LOG_CATEGORY(LogConnectionDrawingPolicy); ////////////////////////////////////////////////////////////////////////// // FGeometryHelper FVector2D FGeometryHelper::VerticalMiddleLef...
#include "psycho.h" #include <algorithm> #define LOG1(mess) namespace Psycho { //----( loudness transform )-------------------------------------------------- Loudness::Loudness ( size_t size, float frame_rate, float time_scale, float ss_factor) : m_size(size), m_frame_rate(frame_rate), m...
// Copyright 2020 TensorFlow Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
/* * ratefree.cpp * * Created on: Nov 3, 2014 * Author: minh */ #include "tree/phylotree.h" #include "ratefree.h" #include "rateinvar.h" #include "model/modelfactory.h" #include "model/modelmixture.h" const double MIN_FREE_RATE = 0.001; const double MAX_FREE_RATE = 1000.0; const double TOL_FREE_RATE = 0....
/* * Copyright (c) <NAME> 2013. * The following source file belongs to the open-source project Pikifen. * Please read the included README and LICENSE files for more information. * Pikmin is copyright (c) Nintendo. * * === FILE DESCRIPTION === * Animation editor drawing functions. */ #include <algorithm> #incl...
/////////////////////////////////////////////////////////////////////////// /// Kin2_mex.cpp /// /// Description: /// Kin2 class implementations. /// Define methods to initialize, and get images from sensor. /// It uses Kinect2 SDK from Microsoft. /// Copyright (c) Microsoft Corporation. All rights reserved...
// ********************************************************************* // ** // ** Informática Gráfica, curso 2019-20 // ** Declaraciones de la clase Objeto3D.hpp // ** // ********************************************************************* //#include <set> // std::set #include "ig-aux.h" #include "tuplasg.h" #in...
/*--------------------------------------------------------------------------------- Accelerometer - detect body movement and position MMA8452 - Digital Triaxial Accelerometer Inclination Provides basic accelerometer functionality over I2C protocol. User can select between 2g/4g/8g scale, select low power mod...
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
#include <cassert> #include <ap_int.h> #include <vector> #include <ap_fixed.h> #define OPTIMIZE_DSP // WARNING: in FIFO implementation, OPTIMIZE_FREQUENCY is unnecessary! //#define OPTIMIZE_FREQUENCY /* * Kernel data definations * TODO find a way to share .h file with host */ #define DRAM_NUM 4 typedef ap_uint<3...
#include "stbi_dds.h" #include "image_DXT.h" #include "stb_image.h" /// DDS file support, does decoding, _not_ direct uploading /// (use SOIL for that ;-) /// A bunch of DirectDraw Surface structures and flags /*typedef struct { unsigned int dwMagic; unsigned int dwSize; unsigned int ...
/* * clip_unix.cpp - Clipboard handling, Unix implementation * * SheepShaver (C) <NAME> and <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, ...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * * Copyright (c) 2008, Mozilla Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
#include <iomanip> #include <iostream> #include <string> #include <vector> #include <TCanvas.h> #include <TFile.h> #include <TH1D.h> #include <TH2D.h> #include <TTree.h> #include <TPaveStats.h> #include "DataFormats/Common/interface/Wrapper.h" #include "DataFormats/EcalRecHit/interface/EcalUncalibratedRecHit.h" #incl...
// // EditorButton.cpp // Project: humid // // All rights reserved. Use of this source code is governed by the // 3-clause BSD License in LICENSE.txt. #include <iostream> #include <nanogui/theme.h> #include <nanogui/opengl.h> #include <nanogui/widget.h> #include "editorwidget.h" #include "editorbutton.h" #include "...
#include <map> #include <stdlib.h> #include <stdio.h> #include "GregorianCalendarModule.h" #include "CalendarModule.h" #include "TimeRepresentation.h" GregorianCalendar::GregorianCalendar() { this->id.SetTo("Gregorian" ); this->fDaysInLongestMonth = 31; int i=1; BString builder; // Fill in the ...
#include "GLMultipleLights.h" #include <cmath> #include <QtMath> #include <QDebug> GLMultipleLights::GLMultipleLights(QWidget *parent) : QOpenGLWidget(parent) { connect(&timer,&QTimer::timeout,this,[this](){ rotate+=1; if(isVisible()){ update(); } }); timer.setInterv...
#include <list> #include <string> #include <iostream> #include <ros/ros.h> #include <sensor_msgs/Imu.h> #include <nav_msgs/Odometry.h> #include <sensor_msgs/LaserScan.h> #include <sensor_msgs/PointCloud.h> #include <sensor_msgs/PointCloud2.h> #include <visualization_msgs/Marker.h> #include <octomap_msgs/Octomap.h> #in...
/* * =============================================================== * Description: Shard hyperdex stub implementation. * * Created: 2014-02-18 15:32:42 * * Author: <NAME>, <EMAIL> * * Copyright (C) 2013-2014, Cornell University, see the LICENSE * file for licensing agr...
#include "Halide.h" #include <math.h> #include <stdio.h> #include <string.h> #include <cmath> #include <algorithm> #include <future> using namespace Halide; #ifdef _MSC_VER bool is_finite(double x) { return _finite(x); } #else bool is_finite(double x) { return std::isfinite(x); } #endif // Make some function...
//===----- CriticalAntiDepBreaker.cpp - Anti-dep breaker -------- ---------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/***************************************************************************************** * * * OpenSpace * * ...
/** * TEM.cpp * main program for running DVM-DOS-TEM * * It runs at 3 run-mods: * (1) site-specific * (2) regional - time series * (3) regional - spatially (not yet available) * * Authors: * <NAME> - the original codes * <NAME> - re-designing and re-coding for * (1) ea...
/******************************************************************** * This file includes functions that are used to add module nets * for direct connections between CLBs/heterogeneous blocks * in the top-level module of a FPGA fabric *******************************************************************/ #include <a...
/* * memory.cpp * * Created on: 2009/07/08 * Author: uchan */ #include <string.h> #include <bitnos/memory.h> #include <bitnos/funcs.h> #include <bitnos/int.h> // アライメントチェックフラグ #define EFLAGS_ACFLAG 0x00040000 #define CACHE_DISABLE 0x60000000 uint32_t GetPhysicalMemoryCapacitySub(uintptr_t begin, uintptr_t...
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) #define _CRT_SECURE_NO_WARNINGS #endif #include "../../3rdparty/imgui/imgui.h" #include <renderer.h> #include <opengl.h> #include <glcontext.h> #include <os/extensionfunctions.h> #include <os/glheaders.h> #include <stdio.h> #if defined(_MSC_VER) && _MSC_VER ...