text
stringlengths
5.71k
33.7k
#include "Thermostat.h" Thermostat* Thermostat::getThermosObject; String Thermostat::modeCal; DomoticzBroadcaster * Thermostat::ldomo; Thermostat::Thermostat(String cal, String s, Application *c, SensorManager *se, IRManager *ir,DomoticzBroadcaster *domo) { lconfig=c; lsensor=se; lIR=ir; file=s; fileCal=cal; ldomo=dom...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set ts=8 sts=2 et sw=2 tw=80: * 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/. */ ...
// Semtech SX1231 / HopeRF RF69 FSK packet radio driver // // Notes on configuring the sx1231 receiver: // // The datasheet is somewhat confused and confusing about what Fdev and RxBw really mean. // Fdev is defined as the deviation between the center freq and the modulated freq, while // conventionally the frequency d...
/* Next player is o. states are represented by the number of index(i). bitset saves 2 bits. 00: default(draw) 10: win or draw (later draw) 01: win, 2*i=0 2*i+1=1 11: loss but it is difficult to create next states and find cymmetric states using indexNumber. we use this state. states are represented by long long. 0:em...
#include "pch.hpp" #include "MainScene.hpp" #include <EasyDx/Systems/SimpleRender.hpp> #include <DirectXColors.h> #include <numeric> using gsl::span; std::unique_ptr<dx::Object> MainScene::MakeFloor() const { using namespace DirectX; const dx::PositionType positions[] = { {-3.5f, 0.0f, -10.0f}, {-3.5...
/* Copyright 2020 Intel Corporation * * 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) 2021 Vivante Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without ...
// -*- c++ -*- // This file is part of the Collective Variables module (Colvars). // The original version of Colvars and its updates are located at: // https://github.com/colvars/colvars // Please update all Colvars source files before making any changes. // If you wish to distribute your changes, please submit them t...
/* * Copyright (C) 2015-2018 Vrije Universiteit Amsterdam * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
#include "encode.h" static AVFrame *alloc_picture(enum PixelFormat pix_fmt, int width, int height) { AVFrame *picture; uint8_t *picture_buf; int size; picture = avcodec_alloc_frame(); if (!picture) return NULL; size = avpicture_get_size(pix_fmt, width, height); picture_buf = (uint8_t*)av_malloc(size); if (!...
#include <math.h> #include <vector> #include "CopRobberGame.h" #include "MyHash.h" CopRobberGame::CopRobberGame( GraphEnvironment *_genv, unsigned int _num_cops, bool simultaneous, bool playerscanpass ): CopRobberEnvironment<graphState,graphMove>( (SearchEnvironment<graphState,graphMove>*) _genv, playerscanpass ), M...
/* TrimeshConvex.cpp */ #include <ode/ode.h> #include <drawstuff/drawstuff.h> #include <trimeshconvex.h> #include <geommanager.h> #include <cmath> #include <iostream> #include <exception> #include <stdexcept> using namespace std; static dReal scale_min_limit = 1e-5; inline int isRescale(dReal sc){ dReal f = ...
// // Created by david on 2018-02-07. // //#include <directory.h> #include <gitversion.h> #include <spdlog/spdlog.h> #include <io/class_hdf5_file.h> #include <sim_parameters/nmspc_sim_settings.h> class_hdf5_file::class_hdf5_file(const std::string output_filename_, const std::string output_folder_, bool overwrite_, boo...
#include "HotPlot.h" #include <QTime> #include <QMetaEnum> #include "../../src/radialbasisfunction.h" #include "../../src/kriginginterpolation.h" //[nx, ny] 实际color映射 //[datax, datay] 预计算大小,然后双线性插值到 [nx, ny] const int nx = 240; const int ny = 240; const int datax = 80; const int datay = 80; HotPlot::HotPlot(QWidget *...
#include <iostream> #include <fstream> #include <queue> #include <string> #include <limits> #include <boost/random.hpp> #include <boost/generator_iterator.hpp> #include <glog/logging.h> using boost::variate_generator; using boost::mt19937; using boost::exponential_distribution; #define ONLY_EVENT_TYPE 0 #define...
/** * This file contains the primary logic for your server. It is responsible for * handling socket communication - parsing HTTP requests and sending HTTP responses * to the client. */ #include "server.hh" #include <sys/resource.h> #include <sys/time.h> #include <sys/wait.h> #include <sys/types.h> #include <sys/st...
#include "writeClock.hpp" #include <fstream> #include <tuple> #include <list> #include <map> #include "GNSSambres.hpp" #include "navigation.hpp" #include "acsConfig.hpp" #include "constants.hpp" #include "station.hpp" #include "algebra.hpp" #include "preceph.hpp" #include "enums.h" /* macro defintions */ #define ...
/* * nn.cu * Nearest Neighbor * */ #include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include <stdio.h> #include <sys/time.h> #include <float.h> #include <vector> #include "../common.hpp" #define min( a, b ) a > b ? b : a #define ceilDiv( a, b ) ( a + b - 1 ) / b #define print( x ) printf( #x ": %lu\n", (unsig...
#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/ml/ml.hpp" #include <iostream> #include <fstream> #include <opencv/cv.h> #include <string> #include "opencv2/video/tracking.hpp" #include <opencv2/features2d/features2d.hpp> #include <time.h> // ./bin/buildModel ./KinectJoi...
/************************************************************************* Crytek Source File. Copyright (C), Crytek Studios, 2001-2004. ------------------------------------------------------------------------- $Id$ $DateTime$ ------------------------------------------------------------------------- History: - 07:02:2...
#include "Jornada.h" #include "../GameObjects/GrupoClientes.h" #include "../GameObjects/Player.h" #include "../GameObjects/Paella.h" #include "../GameObjects/Ingrediente.h" #include "../GameObjects/Muebles/Pila.h" #include "../GameObjects/Muebles/CajaHerramientas.h" #include "../GameObjects/Muebles/MueblesInclude.h" #...
/* WorldClientCommand.cpp (c)2003 Palestar Inc, <NAME> */ #include "Standard/CommandLine.h" #include "File/Path.h" #include "File/FileDisk.h" #include "WorldClient.h" //---------------------------------------------------------------------------- const char * META_CHAT_PREFIX = "<color;00aaaa>"; const char * META_...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include <iomanip> #include <string> #include "Eigen-3.3/Eigen/Dense" #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "helper.h" #i...
#include "X86GFreeAssembler.h" #include "X86GFreeUtils.h" #include "X86.h" #include "llvm/CodeGen/MachineFunction.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Support/TargetRegistry.h" #include "llvm/ADT/Statistic.h" #include "llvm/CodeGen/AllocationOrder.h" #inc...
#include"CollisionManager.h" #include"../Math/Vector2D.h" #include"../Math/Math2D.h" Shape::Shape(ShapeType Type) { mType = Type; mpOwnerBody = nullptr; } Shape::~Shape() { } ShapeCircle::ShapeCircle():Shape(CIRCLE) { mRadius = 0.0f; } ShapeCircle::~ShapeCircle() { } bool ShapeCircle::TestPoint(float PointX, floa...
#include "parser.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <algorithm> #include <vector> #include <deque> #include <fstream> #define NOT_ASSIGNED 0 #define NO_ANTEC -1 #define CLAUSE_SIZE_LIMIT 6 #define IS_DECISION 1 #define IS_IMPLICATION 0 #define FLIPPED 1 #define UNFLIPPED 0 #define RE...
/* * libjingle * Copyright 2004--2005, Google Inc. * * 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 and...
#include "common.hpp" #include "highfive_arma.hpp" #include "interface.hpp" using namespace HighFive; /** Write a STL vector of Armadillo matrices with the STL vector index as the first index. * */ template <typename T> void write(File &file, const std::string &name, const std::vector<arma::Mat<T>> &vec) { cons...
/** * Copyright (c) 2015, <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions a...
#ifdef HAVE_CONFIG_H #include <config.h> #else #define PACKAGE_VERSION "local" #define SVN_REVISION "unknown" #endif #include <cstdlib> #include <cstdio> #include <cstring> #include <getopt.h> #include <assert.h> #include <string> #include "bam.h" #include "sam.h" using namespace std; bool is_fastq=true; //default...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
#include <png.h> #include <iostream> #include <png++/png.hpp> #include <fstream> #include <string> #include <exception> #include <array> #include <vector> #include <utility> #include <tuple> #include <cmath> #include "linemanager.hpp" typedef png::image<png::rgba_pixel> ZImage; struct pixelGradient { double red = 0...
// MY HEADERS #include "OpenGL.h" #include "DEBUGGING.h" #include "PyramidModel.h" #include "MathEngine.h" #include "File.h" #include "GraphicsObjectFileHdr.h" // GL GLOBALS extern GLShaderManager shaderManager; // DEFINES #define USE_PYRAMID_FILE 1 // 1 - uses the data file "pyramid.cdm", 0 - creates and uses the f...
/* * MIT License * * Copyright (c) 2021 <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,...
#include "global.h" #include "ScoreKeeperMAX2.h" #include "GameState.h" #include "PrefsManager.h" #include "Steps.h" #include "PrefsManager.h" #include "ScreenManager.h" #include "ScreenGameplay.h" #include "GameState.h" #include "Course.h" #include "SongManager.h" #include "NoteDataUtil.h" #include "RageLog.h" #includ...
#include "Simulator.h" #include <iostream> #include <limits> #include <cmath> #include <stdlib.h> #include <algorithm> particle::Simulator::Simulator(const Point& min, const Point& max, double width, double duration, double simu_dt) : duration(duration), simu_dt(simu_dt), target(Point()) { // Box creation particle...
// 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...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2020 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Soft...
#include <algorithm> #include <vector> #include <string> #include <sstream> #include <cstring> #include <map> #include <cmath> #include <cctype> #include <iostream> #include "parser.h" using std::map; using std::string; using std::vector; const int64_t LENMAXINT{2}; const int64_t LENMAXSTR{128}; map<string, Factors>...
/* ************************************************************************ * Copyright 2015 Vratis, Ltd. * * 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/lice...
/* * CachedTiler.cpp * pixelbridge * * Created by <NAME> on 10/29/10.tile_map * Copyright 2010 <NAME>. All rights reserved. * */ #include <iostream> #include <zlib.h> #include "CachedTiler.h" /** * The CachedTiler is created based on the dimensions of the NDDI display that's passed in. If those * dimen...
/* // Author: <NAME>, BIWI, ETH Zurich // Email: <EMAIL> */ #include "CRTree.h" #include <fstream> #include <highgui.h> #include <algorithm> using namespace std; /////////////////////// Constructors ///////////////////////////// // Read tree from file CRTree::CRTree(const char* filename) { cout << "Load Tree " <<...
// Copyright (c) 2019, <NAME> // Purdue University // 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 ...
/// /// @file : Create Taylor term images from a cube /// /// Control parameters are passed in from a LOFAR ParameterSet file. /// /// @copyright (c) 2007 CSIRO /// Australia Telescope National Facility (ATNF) /// Commonwealth Scientific and Industrial Research Organisation (CSIRO) /// PO Box 76, Epping NSW 1710, Austr...
/******************************************************************************* * Copyright (C) 2018-2019 Intel Corporation * * SPDX-License-Identifier: MIT ******************************************************************************/ #include "inference_impl.h" #include "config.h" #include "gst_allocator_wra...
/* Copyright (C) 2010-2019, The Regents of The University of Michigan. All rights reserved. This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab under the direction of <NAME>, <EMAIL>. Use of this code is governed by an MIT-style License that can be found at "https://github...
/* $info$ tags: Bin|FEXLoader desc: Glues the ELF loader, FEXCore and LinuxSyscalls to launch an elf under fex $end_info$ */ #include "AOT/AOTGenerator.h" #include "Common/ArgumentLoader.h" #include "Common/RootFSSetup.h" #include "Common/SocketLogging.h" #include "ELFCodeLoader2.h" #include "Tests/LinuxSyscalls/Linux...
// $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/CalXtalResponse/src/CalDigi/XtalSignalTool.cxx,v 1.5.2.1 2010/10/18 20:15:55 heather Exp $ /** @file implement XtalSignalTool.h @author Z.Fewtrell */ // Include files // LOCAL #include "XtalSignalTool.h" #include "CalXtalResponse/ICalCalibSvc.h" // ...
#include <ws2812b.h> ws2812b::ws2812b( unsigned int numLED ){ numLEDs = numLED; } // Map 4k register memory for direct access from user space and return a user space pointer to it. // See: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka3750.html, // The pointer addresses a 32-bit WORD, not an 8-...
// Based on http://hamelot.io/visualization/opengl-text-without-any-external-libraries/ // and on https://github.com/rougier/freetype-gl #include <string> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/mat4x4.hpp> #include <glm/vec4.hpp> #include "utils.h" #include "dejavufont.h" #include <engine.hpp...
/* * Copyright (c) 2012-2016 <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions...
// ClientPattern.cc for Fluxbox Window Manager // Copyright (c) 2003 - 2006 <NAME> (fluxgen at fluxbox dot org) // and <NAME> (rathnor at users.sourceforge.net) // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (th...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2022 <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 Soft...
/** Copyright (C) 2017 European Spallation Source */ /** @file KafkaDriver.cpp * @brief C++ implementation file for an EPICS areaDetector Kafka-plugin. */ #include <epicsEvent.h> #include <epicsMessageQueue.h> #include <epicsThread.h> #include <epicsTime.h> #include <iocsh.h> #include <asynDriver.h> #include <ca...
// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration...
/*! \class SoKnot SoKnot.h \brief The SoKnot class is for rendering tubular curves in the Coin/OpenInventor graphics library. \ingroup InventorGroup For details about the Coin3D API and some more precise explanations about the structure of Coin see http://www.coin3d.org/doc/ The SoKnot class is a ...
// Copyright <NAME> #include "GHMD3ModelLoader.h" #include "GHModel.h" #include "GHXMLNode.h" #include "GHXMLObjFactory.h" #include "GHPlatform/GHFileOpener.h" #include "GHPlatform/GHFile.h" #include "GHMD3Structs.h" #include "GHMD3TagLoader.h" #include "GHMD3LoaderConfig.h" #include "GHGeometryRenderable.h" #include "...
#include "Utils.h" #include "PBitmapModif.h" //attention pas inclure dans le .h!!! Utils util; //extern dans le.h Utils::Utils() { show_progress_load = OFF; loading_in_progress =OFF; progress_exists = false; sel_length = 0 ; } // r,g,b values are from 0 to 1 // h = [0,360], s = [0,1], v = [0,1] // ...
#include <memory> #include <random> #include <chrono> #include <thread> #include <stdarg.h> #include <boost/container/vector.hpp> #include <boost/interprocess/managed_shared_memory.hpp> #include <boost/interprocess/allocators/allocator.hpp> #include <boost/interprocess/containers/string.hpp> #include <boost/interproc...
/* * Copyright 2015 Open Connectome Project (http://openconnecto.me) * Written by <NAME> (<EMAIL>) * * This file is part of FlashGraph. * * 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...
/** * The MIT License (MIT) * * Copyright (c) 2013-2018 <NAME> - http://www.igorski.nl * * 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...
// Copyright (c) 2015-2017, RAPtor Developer Team // License: Simplified BSD, http://opensource.org/licenses/BSD-2-Clause #include "repartition.hpp" void make_contiguous(ParCSRMatrix* A, std::vector<int>& off_proc_part_map) { int rank, num_procs; RAPtor_MPI_Comm_rank(RAPtor_MPI_COMM_WORLD, &rank); RAPtor_M...
// Copyright (c) 2019 <NAME> // // This file is part of the pylibtermkey library. It is currently hosted at // https://github.com/mvilim/pylibtermkey // // pylibtermkey is licensed under the MIT license. A copy of the license can be // found in the root folder of the project. #include <errno.h> #include <pybind11/pybi...
/* * Copyright (C) 2011 The Android Open Source Project * Copyright (C) 2013 <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 * * http://www.apache.org/licenses/L...
// CLASSIFICATION: UNCLASSIFIED /***************************************************************************/ /* RSC IDENTIFIER: ECKERT6 * * ABSTRACT * * This component provides conversions between Geodetic coordinates * (latitude and longitude in radians) and Eckert VI projection coordinates * (easting...
/* vcflib C++ library for parsing and manipulating VCF files Copyright © 2010-2020 <NAME> Copyright © 2020 <NAME> This software is published under the MIT License. See the LICENSE file. */ #include "Variant.h" #include "convert.h" #include "join.h" #include "split.h" #include <set> #include <get...
#include "Draft.h" #include "Util.h" #include <iostream> TDraft::TDraft(TMusicBox& music_box, int min_time, int max_time, int bar_len, int timing_strech) : m_finalized(false), m_music_box(music_box), m_min_time(min_time), m_max_time(max_time), m_bar_len...
/*This file is part of the PostView source code and is licensed under the MIT license listed below. See Copyright-PostView.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obta...
//===------ PreorderAST.cpp: An n-ary preorder abstract syntax tree -------===// // // The LLVM Compiler Infrastructure // // 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-...
// -*- C++ -*- // // <NAME> // california institute of technology // (c) 2010-2013 all rights reserved // // for the build system #include <portinfo> // for debugging # include <cassert> // externals #include <cmath> #include <iostream> #include <iomanip> #include <gsl/gsl_sys.h> #include <gsl/gsl_min.h> #include <...
#include <gmock/gmock.h> #include <facter/version.h> #include <facter/facts/collection.hpp> #include <facter/facts/scalar_value.hpp> #include <facter/ruby/api.hpp> #include <facter/ruby/module.hpp> #include <facter/util/regex.hpp> #include <facter/util/environment.hpp> #include <facter/logging/logging.hpp> #include <fa...
/* Copyright (c) 2015 Perutka, Ondrej 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,...
/* BSD 3-Clause License Copyright (c) 2021, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions ...
/* Cafu Engine, http://www.cafu.de/ Copyright (c) <NAME> and other contributors. This project is licensed under the terms of the MIT license. */ #include "Loader_lwo.hpp" #include "ConsoleCommands/Console.hpp" #include "MaterialSystem/Material.hpp" extern "C" { #include "lwo2.h" } #include <cassert> #include <cs...
/*************************************************************************\ C O P Y R I G H T Copyright 2003 Image Synthesis Group, Trinity College Dublin, Ireland. All Rights Reserved. Permission to use, copy, modify and distribute this software and its doc...
#include "RecoMET/METAlgorithms/interface/HcalNoiseAlgo.h" CommonHcalNoiseRBXData::CommonHcalNoiseRBXData(const reco::HcalNoiseRBX& rbx, double minRecHitE, double minLowHitE, dou...
// // Created by Administrator on 2018/8/14. // #include "ZWStreamPlayer.h" #include "ZWHardDecoder.h" #include "ZWStreamGLView.h" #include "Rtp808Frame.h" #define logd(...) LogMessageA(0, _task.key.c_str(), _task.channel, __VA_ARGS__) #define logi(...) LogMessageA(1, _task.key.c_str(), _task.channel, __VA_ARGS__) #d...
/*! @file */ /* Copyright (C) 2007, kobake This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial ap...
#include "ros/ros.h" #include "ros/master.h" #include "nav_msgs/Odometry.h" #include "geometry_msgs/Point.h" #include "geometry_msgs/PoseStamped.h" #include "geometry_msgs/PoseArray.h" #include "ackermann_msgs/AckermannDriveStamped.h" #include "tf2_geometry_msgs/tf2_geometry_msgs.h" #include <string> #include <sstream>...
/* * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list ...
// g2o - General Graph Optimization // Copyright (C) 2011 <NAME>, G.Grisetti, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must reta...
/* * EnergyMomentumTensor.cpp * * Created on: Oct 22, 2015 * Authors: <NAME>, <NAME> */ #include <math.h> // for math functions #include <stdio.h> #include <cstdlib> #include "../include/EnergyMomentumTensor.h" #include "../include/DynamicalVariables.h" #include "../include/LatticeParameters.h" #include "../in...
#include <iostream> #include "tempTrender.h" using namespace std; // ROOT library objects #include <TF1.h> // 1d function class #include <TF2.h> #include <TH1.h> // 1d histogram classes #include <TStyle.h> // style object #include <TMath.h> // math functions #include <TCanvas.h> // canvas object #include <fstream>...
#include "ofApp.h" #include <iostream> #include <string> #include <math.h> #include "../../common/pitchColours.h" PlayedMesh::PlayedMesh(PianoKey p) { x = p.x; targetX = p.targetX; y = p.y; targetY = p.targetY; w = p.w; h = p.h; white = p.white; active = p.active; copyNote(p.note); int basePitch ...
/* Copyright 2021 iwatake2222 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 dis...
#include "DQM/Physics/src/SMPDQM.h" using namespace std; using namespace reco; struct SortByPt { bool operator()(const TLorentzVector& a, const TLorentzVector& b) const { return a.Pt() > b.Pt(); } }; SMPDQM::SMPDQM(const edm::ParameterSet& iConfig) { //now do what ever initialization is needed muons_ = consume...
//===- AIECreateFlows.cpp ---------------------------------------*- C++ -*-===// // // This file is licensed 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 // // (c) Copyright 2019 Xilinx Inc. //...
#include <ros/ros.h> #include <tf/transform_listener.h> #include <tf/transform_broadcaster.h> // ROS messages #include <sensor_msgs/LaserScan.h> #include <nav_msgs/OccupancyGrid.h> #include <nav_msgs/Odometry.h> #include <geometry_msgs/PoseStamped.h> #include <visualization_msgs/Marker.h> #include <message_filters/su...
#include "MemoryTable.h" S1::POD S1::operator+(const POD& left, const POD& right) { switch (left.index() * 10 + right.index()) { case 00: return std::get<0>(left) + std::get<0>(right); break; case 01: return std::get<0>(left) + std::get<1>(right); break; case 02: return std::get<0>(left) + std::get<2>(right)...
#include "Standard.h" #include "Scene_MainMenu.h" #include "Application.h" #include "Resources.h" #include "Scene_LRZ.h" #include "S3Object.h" #include "LevelScene.h" #include "Scene_SSZ.h" #define Z_MID 0 #define Z_FRONT -1 #define Z_BACK 1 #define T(name) App->Textures[name] #define S(name) App->Sprites[name] // U...
/* Moving Peaks Function --- 10/99 */ /* movpeaks.c * Copyright (C) 1999 <NAME>. * This is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License. * * This module generates the Moving Peaks Evaluation Function, a * dynamic benchmark problem changing over tim...
#include <toynet/w2v.h> #define BOOST_TEST_MODULE toynet #include <toynet/stlio.h> #include <toynet/ublas/convert.h> #include <toynet/ublas/io.h> #include <toynet/ublas/test.h> #include <iostream> #include <boost/test/unit_test.hpp> using namespace toynet; BOOST_AUTO_TEST_CASE(get_context_6) { const std::vector<i...
/** \class pat::JetCorrFactorsProducer JetCorrFactorsProducer.h "PhysicsTools/PatAlgos/interface/JetCorrFactorsProducer.h" \brief Produces a ValueMap between JetCorrFactors and the to the originating reco jets The JetCorrFactorsProducer produces a set of correction factors, defined in the class pat::JetCo...
// SPDX-License-Identifier: MIT /* * Copyright (c) 2020 <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 ...
/* Copyright (c) 2014 <NAME>. All rights reserved. * License: This code is licensed under a 3-clause BSD license. See * the file named "LICENSE" for a full copy of the license. */ /** @file * @author <NAME> */ #include "windows-compat.h" #include <stdlib.h> #include <GL/glew.h> #include <GLFW/glfw3.h> #include ...
/* This code is public-domain - it is based on libcrypt * placed in the public domain by <NAME> and other contributors. */ #include "StdInc.h" // gcc -Wall -DSHA1TEST -o sha1test sha1.c && ./sha1test #include <stdint.h> #include <string.h> /* header */ #define HASH_LENGTH 20 #define BLOCK_LENGTH 64 ...
/*--------------------------------------------------------------------- * * Copyright © 2015 <NAME> * E-mail: <EMAIL> * * The source is written for the Graphics I and II modules. You are free * to use and extend the functionality. The code provided here is functional * however the author does not guarantee its perform...
/* <jhm/work_finder.h> Finds and runs all jobs necessary to create the needed files. Copyright 2010-2014 OrlyAtomics, 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...
/* The MIT License (MIT) Copyright (c) 2014 n@zgul <<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, mer...
/* Copyright 2014 <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 writing, software distribu...