text
stringlengths
5.71k
33.7k
/*********************************************************************** * Copyright 1998-2020 CERN for the benefit of the EvtGen authors * * * * This file is part of EvtGen. * * ...
// -*- Mode: C++ -*- // SeqStore.cc // #include "SeqStore.h" // LIFECYCLE ------------------------------------------------------------ SeqStore::SeqStore(BaseRep *rep) : mBaseRep(rep), mStore(NULL), mN(0), mOwnStore(false), mUnfolded(false), mInsertPoint(0) {} SeqStore::SeqStore(...
#include "Pozyx-Linux-library/Pozyx.h" #include "Pozyx-Linux-library/Pozyx_definitions.h" #include "Pozyx-Linux-library/helpers.hh" #include <ros/ros.h> #include <std_msgs/String.h> #include <sensor_msgs/Imu.h> #include <sensor_msgs/MagneticField.h> #include <sensor_msgs/PointCloud.h> #include <geometry_msgs/PointStam...
// Copyright 2016 Dr <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 ...
#include "CHardklorParser.h" using namespace std; CHardklorParser::CHardklorParser(){ vQueue = new vector<CHardklorSetting>; } CHardklorParser::~CHardklorParser(){ delete vQueue; } //Takes a command line and breaks it into tokens //Tokens are then read and used to set global and local parameters void CHardklorP...
//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2015, <NAME>, <NAME>. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without res...
/****************************************************************************************** * Project Name: one * * Honbey, <EMAIL> * Created On 2020-01-07 * Copyright (c) 2020. All rights reserved. * * Date: 2019-01-07 * * Description: the 1st learning record of OpenCV. * C++ program for learning OpenCV. ...
//===- SPUInstrInfo.cpp - Cell SPU Instruction Information ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* Minetest Copyright (C) 2010-2014 celeron55, <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This ...
/* ----------------------------------------------------------------------------- Software License for The Fraunhofer FDK AAC Codec Library for Android © Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. All rights reserved. 1. INTRODUCTION The Fraunhofer FDK AAC Codec Lib...
#include <cstdlib> #include <dlfcn.h> #include <fstream> #include <iostream> #include <memory> #include <string> #include <vector> #include <SDL2/SDL.h> #include "omp.h" #include "vec2.hpp" #include "vec3.hpp" #include "vec4.hpp" #include "cube.hpp" #include "disk.hpp" #include "plane.hpp" #include "sphere.hpp" #i...
#include <mina/mina.h> struct Opcode { Opcode() {}; Opcode(const Opcode &op) { this->opcode = op.opcode; this->group = op.group; this->op1 = op.op1; this->op2 = op.op2; this->op3 = op.op3; this->op4 = op.op4; this->op5 = op.op5; } Op...
#include "pch.h" #include "NDSInstrSet.h" #include "VGMRgn.h" using namespace std; // INTR_FREQUENCY is the interval in seconds between updates to the vol for articulation. // In the original software, this is done via a hardware interrupt timer. // After calculating the number of volume updates that will be made for...
#include <shared_mutex> #include <eigen3/Eigen/Dense> #include "common/phonebook.hpp" #include "common/pose_prediction.hpp" #include "common/data_format.hpp" #include "common/plugin.hpp" using namespace ILLIXR; class pose_prediction_impl : public pose_prediction { public: pose_prediction_impl(const phonebook* con...
/** * This file is part of dvo. * * Copyright 2012 <NAME> <<EMAIL>> (Technical University of Munich) * For more information see <http://vision.in.tum.de/data/software/dvo>. * * dvo is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
#include "mriimage.h" template<typename T> Cube<T> swapCube(const Cube<T> &in, uchar direction) { Cube<T> out = Cube<T>(); if (direction == SWAP_XY) { // swap XY out = Cube<T>(in.n_cols,in.n_rows,in.n_slices); for (uint i =0; i< in.n_slices;i++) out.slice(i) = in.sli...
// Copyright 2017 <NAME> // SPDX-License-Identifier: Apache-2.0 #include <arpa/inet.h> #include <netdb.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include <unistd.h> #include "tcp_socket.hpp" using namespace std; tcp_socket::tcp_...
#include "ros/ros.h" #include "sensor_msgs/Imu.h" #include "custom_msgs/gnssSample.h" // #include "nav_msgs/Odometry.h" #include "position_estimator/home.h" #include "position_estimator/estimated_position.h" #include "std_msgs/Float64.h" #include "math.h" #include "donkey_rover/Rover_Track_Speed.h" // TODO here includ...
#include <iostream> #include <string> /* the sample code to create a convolution and do calculation */ #include "tengine_c_api.h" int int8_mismatch(int8_t* a, int8_t* b, int size) { int i = 0; for(i = 0; i < size; i++) { int8_t off = a[i] - b[i]; if(off != 0) break; } ...
#include <cstdio> #include <csignal> #include <cstdarg> #include <cstring> #include <unistd.h> #include <functional> #include <memory> #include <string> #include <libvirt/libvirt.h> #include <vpx/vpx_encoder.h> #include <vpx/vp8cx.h> using namespace std; // A flag to store whether we are in the main record it and a s...
#include <stdio.h> #include <iostream> #include <vector> #include <map> #include "util.h" #include "parser.h" #include "tokenize.h" // Extended BEDMAS precedence order int precedence(Node tok) { std::string v = tok.val; if (v == ".") return -1; else if (v == "!" || v == "not") return 1; else if (v=="^"...
/*Begining of Auto generated code by Atmel studio */ #include <Arduino.h> /*End of auto generated code by Atmel studio */ //#include "PID_v1.h" #include <PID.h> #include <Servo.h> //Beginning of Auto generated function prototypes by Atmel Studio void setupInterrupts(); bool setupComm(); void setupESCs(); void setupP...
#define _CRT_SECURE_NO_WARNINGS #include <bangtal.h> using namespace bangtal; #include <iostream> using namespace std; #include <ctime> #include <cmath> #include <fstream> #include <cstring> typedef struct { ObjectPtr object; int location; }Puzzle; typedef struct { ScenePtr scene; int x, xd, y, yd, sqrtN, num;...
#include "extractor.hpp" #include "variables.hpp" #include "parameter.hpp" #include "exception.hpp" #include "macros.hpp" #include <fstream> #include <sstream> #include <iostream> #include <queue> #include <vector> #include <set> #include <string.h> /// Column number in csv static int ts_col = -1; static int ip_src_co...
/*************************************************************************************************************************** * * Author: bingo * Email: <EMAIL> * Time: 2019.10.14 * Description: lidar collision vfh v1.0 * *************************************************************************************************...
/** * File : popc_search_node.cc * Author : <NAME> * Description : Implementation of the POP-C++ Search Node. This parallel object is responsible of the resource discovery. * Creation date : * * Modifications : * Authors Date Comment * clementval 2010/04/19 All code added for the semester project begins wi...
#include "SampleRaycastCar.h" #include <GL/glut.h> #define TERRAIN_SIZE 33 #define TERRAIN_NB_VERTS TERRAIN_SIZE*TERRAIN_SIZE #define TERRAIN_NB_FACES (TERRAIN_SIZE-1)*(TERRAIN_SIZE-1)*2 #define TERRAIN_OFFSET 0.0f #define TERRAIN_WIDTH 20.0f #define TERRAIN_CHAOS 70.0f //150.0f static NxVec3* gTerrainVerts = NUL...
#include "utils.h" /****************************************************************** * 函数功能:生成随机颜色 */ static cv::Scalar randomColor(cv::RNG& rng) { int icolor = (unsigned)rng; return cv::Scalar(icolor&0xFF, (icolor>>8)&0xFF, (icolor>>16)&0xFF); } /*********************************************************...
/****************************************************************************** ******************************************************************************* Easy GL2D Sprites example Shows a some sprite capabilities of easy GL2D Relminator (<NAME> BSN RN) Http://Rel.Phatcode.Net Thanks to: <NAME> for let...
/* * Copyright 2005-2011, Haiku. * Distributed under the terms of the MIT License. * * Authors: * <NAME>, <EMAIL> */ #include "ScreenMode.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include <InterfaceDefs.h> #include <String.h> #include <compute_display_timing.h> /* Note, this headers d...
#include <iostream> #include <sstream> #include <array> #include <string> #include <type_traits> #include <GLFW/glfw3.h> #include <glscbinding/Version.h> #include <glscbinding/Binding.h> #include <glscbinding/glsc/types.h> #include <glscbinding/glsc/enum.h> #include <glscbinding/glsc/functions.h> #include <glscbin...
/*------------------------------------------------------------------------- * * array_expanded.c * Basic functions for manipulating expanded arrays. * * Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFIC...
#include "input.hpp" #include <iostream> void inputManager::initializeKeyRepeat() { repeatTimer.start(); KeyRepeatPauseTime = .500f; KeyRepeatTimePerRepeat = .1f; } inputManager::inputManager(sf::RenderWindow* newWin) { sfWin = newWin; initializeKeyRepeat(); } inputManager::inputManager(window* newWin) { sfWin...
//$Id: dfadi.cpp 2754 2011-01-02 20:57:07Z jsibert $ #include "coff_t.h" #include "trace.h" extern ofstream clogf; void dftridag(dvector& a, dvector& b, dvector& c,dvector& r, dvector& bet, dvector& gam, dvector& dfa,dvector& dfb,dvector& dfc,dvector& dfr, dvector& dfbet, dvector& dfgam, dvector& u, dvector& dfu, int ...
// Copyright 2011 The Native Client Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can // be found in the LICENSE file. #include "examples/graphics/photo/photo.h" extern "C" { // These files are installed into the NaCl toolchain by the $(LIB_JPEG) target // in the Mak...
#include <cmath> #include <ros/ros.h> #include <std_srvs/Empty.h> #include <sensor_msgs/Joy.h> #include <sensor_msgs/JoyFeedback.h> #include <tf/transform_listener.h> #include <tf/transform_broadcaster.h> #include <opencv2/imgcodecs.hpp> #include "vive_ros/vr_interface.h" #include "vive_ros/hellovr_opengl_main.h" voi...
/*eLiSe06/05/99 Copyright (C) 1999 <NAME> eLiSe : Elements of a Linux Image Software Environment 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 yo...
#include "UCR.h" #include <ESP8266WiFi.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <ArduinoJson.h> #ifdef DEBUG #define D(x) (x) #else #define D(x) do{}while(0) #endif #define D(x) (x) #define IN_BUTTONS "b" #define IN_AXES "a" #define IN_DELTAS "d" #define IN_EVENTS "e" #define OU...
// Copyright (c) 2014-2018 Bauhaus-Universita<NAME>ar // This Software is distributed under the Modified BSD License, see license.txt. // // Virtual Reality and Visualization Research Group // Faculty of Media, Bauhaus-Universitaet Weimar // http://www.uni-weimar.de/medien/vr #include <lamure/types.h> #include <lamur...
// -*- C++ -*- // CMS includes #include "DataFormats/FWLite/interface/Handle.h" #include "DataFormats/PatCandidates/interface/Jet.h" #include "DataFormats/PatCandidates/interface/Muon.h" #include "DataFormats/HepMCCandidate/interface/FlavorHistory.h" #include "DataFormats/HepMCCandidate/interface/GenParticle.h" #inclu...
#include <qtmanagers.h> N::TextDocument:: TextDocument(void) { clear ( ) ; } N::TextDocument:: TextDocument(Plan * p,SUID u) { clear ( ) ; loadPlainText ( p , u ) ; } N::TextDocument:: TextDocument(const TextDocument & d) { ME = d ; } N::TextDocument::~TextDocument(void) { deleteBlocks ( ) ;...
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- // // Unit tests for the AP_Math polygon code // #include <AP_HAL/AP_HAL.h> #include <AP_Math/AP_Math.h> const AP_HAL::HAL& hal = AP_HAL::get_HAL(); static const struct { Vector2f wp1, wp2, location; bool passed; } test_points[] = ...
/*! \file level_1.cpp * \brief * \author <NAME> < kevin @ somervill dot org > * \date 2018-07-29 */ #include <allegro5/allegro.h> #include "level_1.h" //#include "enemy.h" #include "enemy_controller.h" #include <iostream> using std::cerr; using std::endl; #include <string> using std::string; level_1::level_1() ...
/* * Test suite similar to autodiff, but dedicated to convolution-related * operations. The functions will be tested in a similar way */ #include <gtest/gtest.h> #include <math.h> #include "../include/tensorslow.h" TEST(Convolution, Convolution) { // Tests a convolution operation // In this example, we try to de...
/* Author: <NAME> 2020 */ #include "spirv.h" #include <algorithm> #include <cstdio> #include <sstream> #include "DirStackFileIncluder.h" #include "book.h" #include "keywords.h" thread_local std::list<Shader> shaders; thread_local std::vector<unsigned int> spirv; thread_local KeywordCombo shaderHashes; thread_local ...
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * jlp_decod_process_scidar.cpp * JLP_Decode Class * int ProcessCubeScidarLog(AWORD* CubeImage, int nx, int ny, int nz_cube); int ProcessCubeScidarLin(AWORD* CubeImage, int nx, int ny, int nz_cube); * * ProcessingMode = 0 : no processing (on...
/// /// Copyright (C) 2015-2017, Cyberhaven /// All rights reserved. /// /// Licensed under the Cyberhaven Research License Agreement. /// #include <assert.h> #include <errno.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> //#define BIT(n) (1 << (n)) #include <cpu/kvm.h> #ifdef CONF...
#include <stdio.h> #include <fcntl.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <unistd.h> #include <AccelStepper.h> void loop(); void setup(); //fd_set readset; //struct timeval tv; //struct termios ttystate, ttysave; #ifdef __APPLE__ #include <GLUT/glut.h> /* Open GL Util ...
#include <datawidgets.h> N::TagsEditor:: TagsEditor (QWidget * parent,Plan * p) : ItemEditor ( parent, p) , TagsManager ( p) , TagsCheckable (false ) { WidgetClass ; Configure ( ) ; } N::TagsEditor::~TagsE...
/* * Copyright (C) 2008-12 <NAME> * All rights reserved. * * This file is part of the HessianAffine detector and is made available under * the terms of the BSD license (see the COPYING file). * */ #include <vector> #include <string.h> #include <algorithm> #include <tuple> #include <thread> #include <chrono> #i...
#include <image2images/Image.h> #include <iostream> #define NUM_OBJECTS 3 // Init unique id val long Image::m_uniq_id = 1; void Image::display() { std::stringstream winName; winName << "Image " << m_name << " # " << m_id; cv::namedWindow(winName.str(), cv::WINDOW_AUTOSIZE); cv::imshow(winName.str(), ...
#include "parseConnectionStates.h" #include "players.h" #include <sstream> #include <stdexcept> #include <time.h> #include "easylogging++.h" #include "players.h" #include "CustomFiberThread.h" #include <sstream> #include "simpleMath.h" #include <time.h> #include "easylogging++.h" #include "playerSkins.h" #include "ani...
/* * Copyright 2020 KT AI Lab. * * 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 i...
/// @file /// @brief Contains Switch::System::Windows::Forms::AccessibleRole enum. #pragma once #include <Switch/System/Enum.hpp> /// @brief The Switch namespace contains all fundamental classes to access Hardware, Os, System, and more. namespace Switch { /// @brief The Switch::System namespace contains fundamental...
#include <SDL.h> #include <GL/glew.h> #include <GL/glu.h> #include <SDL_opengl.h> #include <stdio.h> #include <string> #include <cstdlib> #include <openvr.h> #include "shared/lodepng.h" #include "shared/Matrices.h" #include "shared/pathtools.h" #include <iostream> class MainApp { }; struct FramebufferDesc { GLui...
#include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> #include <string> #include <iostream> #include <sstream> #include "audio.h" #include "createCharacter.h" #include "player.h" #include "font.h" #include "display.h" #include "misc.h" // extern Player plyr; extern sf::Sound cityGate2Sound; extern sf::Sound cityGa...
/* tip_analysis_plugin.cpp * This is a test plugin, you can use it as a demo. * 2016-11-3 : by YourName */ #include "v3d_message.h" #include <vector> #include "tip_analysis_plugin.h" #include <boost/lexical_cast.hpp> #include "../AllenNeuron_postprocessing/sort_swc_IVSCC.h" #include "../../../released_plugins/v3...
#include <stdio.h> #include <string.h> #include <string> #include <vector> #include <openssl/ec.h> // for EC_GROUP_new_by_curve_name, EC_GROUP_free, EC_KEY_new, EC_KEY_set_group, EC_KEY_generate_key, EC_KEY_free #include <openssl/ecdsa.h> // for ECDSA_do_sign, ECDSA_do_verify #include <openssl/obj_mac.h> // for ...
int BnCFW , brb1c ,O5u, U/*IY*/ ,zu4 ,Yq/*bW*/ , DKY , E2b , oYdq , JVQJ/*CbZ*///Sjn , SX , zRK ,PGs1 , KO ,s7 , ibsTm,Ck//jr , B ,szM , RQg,qPPT , yNDc,BA8 , wc ,Yufh/*BqW*///m , Ztp, hFU , frL , AM , Ia4Kp , Pf , DM ; void //c f_f0//pp (){return ; {{// volatile int C7JaR , OqZqr...
#include <iostream> #include <mimkl/data_structures.hpp> #include <mimkl/definitions.hpp> #include <mimkl/kernels.hpp> #include <mimkl/kernels_handler.hpp> #include <mimkl/linear_algebra.hpp> #include <mimkl/models.hpp> #include <pybind11/eigen.h> #include <pybind11/functional.h> #include <pybind11/pybind11.h> #include...
/* * Copyright (c) 2017-2021, Alibaba Group Holding Limited * 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 applica...
/* Tutorial and copyright: https://lodev.org/cgtutor/raycasting.html Semi 3D raycasting engine. Takes a map (2d matrix of integers which represent what is there) and draws elements "3D" by varying the height based on distance. This has limitations: there is no height difference in map (stairs) or jum...
// Copyright (c) 2020 [<NAME>]. All rights reserved. #include "my_app.h" #include "cinder/ImageIo.h" #include <cinder/gl/draw.h> #include <cinder/gl/gl.h> #include <iostream> #include "cinder/params/Params.h" #include <cinder/app/App.h> #include "cinder/gl/Texture.h" #include <string> #include <cinder/audio/audio.h> ...
// RUN: %check_clang_tidy %s performance-type-promotion-in-math-fn %t // CHECK-FIXES: #include <cmath> double acos(double); double acosh(double); double asin(double); double asinh(double); double atan2(double, double); double atan(double); double atanh(double); double cbrt(double); double ceil(double); double copysig...
/** * Copyright (c) 2009 <NAME> University. * 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 * * ...
//===--- LinearLifetimeChecker.cpp ----------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
///////////////////////////////////////////////// // Web-Page-Fetch-Event class TWebPgFetchEvent: public TSockEvent{ private: TWebPgFetch* Fetch; int FId; PUrl TopUrl; TStr ProxyStr; PUrl CurUrl; TStrV UrlStrV; TStrV IpNumV; TStrQuV CookieKeyValDmPathQuV; PSockHost SockHost; PSock Sock;...
/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include <math.h> #include <ctype.h> #include "parse_example.h" #include "hash.h" #include "cache.h" #include "unique_sort.h...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * -----------...
/*************************************************************************** * NASA Glenn Research Center, Cleveland, OH * Released under the NASA Open Source Agreement (NOSA) * May 2021 * * Scheduler - sends events on link availability based on contact plan * schedule to storage and ingress ******************...
/* =========================================================================== Doom 3 GPL Source Code Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?). Doom 3 Source Code is free software: you can redistribute it and/or modify...
/***************************************************************************** YASK: Yet Another Stencil Kit Copyright (c) 2014-2021, Intel Corporation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Soft...
// Source file for the mesh viewer program // include files #include "R3Graphics/R3Graphics.h" #include "R3GridArray.h" #include "R2Shapes/R2Shapes.h" #include <fglut/fglut.h> #include <vector> #include <algorithm> // program variables static char *input_name; static int print_verbose = 0; sta...
// See the file "COPYING" in the main distribution directory for copyright. #include "zeek-config.h" #include "NetVar.h" #include "Var.h" #include "EventHandler.h" #include "Val.h" RecordType* conn_id; RecordType* endpoint; RecordType* endpoint_stats; RecordType* connection_type; RecordType* fa_file_type; RecordType...
//////////////////////////////////////////////////////////////////////////////// /// @brief Library to build up VPack documents. /// /// DISCLAIMER /// /// Copyright 2015 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compl...
#include "gui.h" /** GUI helper function for displaying messages * @param msg The message we wish to display in the popup window */ void gui::alert_error(std::string msg) { tk_messageBox() -defaultbutton("ok") -messagetext(msg) -messagetype(ok); } /** GUI helper function for displaying converting time read fr...
// Copyright (c) 2022 CNES // // All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "pyinterp/rtree.hpp" #include <pybind11/eigen.h> #include <pybind11/numpy.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include <sstream> ...
/* OFX Genereator 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: ...
#include <memory> #include <sstream> #include <curl/curl.h> #include <jwt-cpp/base.h> #include <jwt-cpp/jwt.h> #include <jwt-cpp/picojson.h> #include <openssl/bn.h> #include <openssl/ec.h> #include "scitokens_internal.h" using namespace scitokens; namespace { struct CurlRaii { CurlRaii() {curl_global_init(CURL_G...
/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * *************************************...
//===-- ManifestLoader.cpp ------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
/* * PeanoPatch.cpp * * Created on: 16 Oct 2017 * Author: dan */ #include "PeanoPatch.h" #include "PeanoConverter.h" #include "PeanoPatchData.h" #include "PeanoVariable.h" #include <string> #include <unordered_map> #include <vector> #include "vtkImageData.h" #include "vtkSmartPointer.h" #include "vtkDoubl...
#include "proXml.h" #include <cstdio> #include <cctype> using namespace std; vector<pair<string,string> > Xml::sv_code; //--- class XmlTokenizer ------------------------------------------- class XmlTokenizer { public: /// constructor form a string XmlTokenizer(const std::string & str) : s(str), i(0), tagMod...
#include "Core/Application.h" #include "Assets/Texture.h" #include "Animation/Spritesheet.h" #include "Assets/Font.h" #include "Layer.h" #include "ChessPieces.h" #include "ChessBoard.h" #include "SpritesheetParser.h" #include "ChessNotation.h" int BOARD_SQUARE_WIDTH = 64; int BOARD_SQUARE_HEIGHT = 64; const std::stri...
/* MIT License Copyright (c) 2020 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
extern const char *help; const char *help = "USAGE\n" " re2c [OPTION...] INPUT [-o OUTPUT]\n" "\n" " re2go [OPTION...] INPUT [-o OUTPUT]\n" "\n" "OPTIONS\n" " -? -h --help\n" " Show help message.\n" "\n" " -1 --single-pass\n" " Deprecated. Does nothing (single pass is ...
/* * Copyright (c) 2020 Particle Industries, 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...
/* * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2008 Collabora, Ltd. 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 sourc...
// hostsample.cpp : a simple ASIO host example. // - instantiates the driver // - get the information from the driver // - built up some audio channels // - plays silence for 20 seconds // - destruct the driver // Note: This sample cannot work with the "ASIO DirectX Driver" as it does // not have a valid Applicat...
#include "Item.h" #include <cstdio> #include <stdlib.h> #include <ostream> #include "Globals.h" /* parse text */ #define ITEM_CALLED " called " #define ITEM_NAMED " named " #define ITEM_PARSE_TEXT "%7s %127[^\t\n]" #define ITEM_PARSE_BLESSED "blessed " #define ITEM_PARSE_UNCURSED "uncursed " #define ITEM_PARSE_CURSED...
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2019, the Ginkgo authors 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 co...
// MFEM Example 24 - Parallel Version // // Compile with: make ex24p // // Sample runs: mpirun -np 4 ex24p -m ../data/star.mesh // mpirun -np 4 ex24p -m ../data/square-disc.mesh -o 2 // mpirun -np 4 ex24p -m ../data/beam-tet.mesh // mpirun -np 4 ex24p -m ...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2022 <NAME> and <NAME> //LIC// //LIC// This lib...
// This is bbasd/bgld/algo/bgld_biarc.cxx //: // \file #include "bgld_biarc.h" #include <vnl/vnl_math.h> #include <vgl/vgl_vector_2d.h> #include <vcl_cassert.h> #define bgld_biarc_e_angle 0.0001 //Epsilon for angles #define bgld_biarc_e_k 0.00001 //Epsilon for curvature 0.0001 #define bgld_biarc_k_large 100000 /...
#include "connection.h" #include <bits/stdint-intn.h> #include <cstdint> #include <iostream> #include "../utils/dataUtils.h" using namespace net; using namespace std; char message[32]; connection::connection(unsigned short _protocolID, float _timeout, unsigned int _maxSequence) { InitializeSockets(); m_protocol...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ #define PARALLEL 0 #define NONADAPTIVE #undef ADAPTIVE #define DYADIC #undef BASIS #define FRAME #undef DIRICHLET #define NEUMANN ...
// P2PHost.cpp // UDP hole punching using STUN for the RocketPlugin plugin. // // Author: Stanbroek // Version: 0.6.3 15/7/20 // // References: // https://en.wikipedia.org/wiki/UDP_hole_punching // https://www.ietf.org/rfc/rfc3489.txt // https://www.ietf.org/rfc/rfc5389.txt #include "Networking.h" #prag...
/** * \file src/opr/test/utility.cpp * MegEngine is Licensed under the Apache License, Version 2.0 (the "License") * * Copyright (c) 2014-2021 Megvii Inc. All rights reserved. * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" B...
#include "Sync_Audio.h" #include "Blip_Buffer.h" #include "SDL.h" #include "soundengine.h" #include "gameboy.h" #include <math.h> #include <time.h> SoundEngine::SoundEngine(Gameboy* g) { lfsr = 0xffff; bufferPosition = 0; chanPolarity[0] = 1; chanPolarity[1] = 1; chanPolarity[2] = 1; chanPol...
#include <framework/Common.h> #include "SampleApp.h" #include "Scene.h" #include <framework/RenderDevice.h> #include <framework/Ray.h> static const char* vertex_shader_src = " \ #version 150 \n\ uniform mat4 model_view_projection_matrix; \ uniform mat4 model_view_matrix; \ \ in vec3 vertex_position; \ in vec3...