text
stringlengths
5.71k
33.7k
/** Similarity Search “© Copyright 2017 Hewlett Packard Enterprise Development LP 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 conditi...
//////////////////////////////////////////////////////////////////////////////// /// @brief heartbeat thread /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "Licens...
#include <stdio.h> #include <vector> #include <cmath> #include <string> #include <iostream> #include "chrono_parallel/physics/ChSystemParallel.h" #include "chrono/utils/ChUtilsCreators.h" #include "chrono/utils/ChUtilsGenerators.h" #undef CHRONO_OPENGL #ifdef CHRONO_OPENGL #include "chrono_opengl/ChOpenGLWindow.h" #e...
/** * 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, ...
/* Copyright (c) 2011, UT-Battelle, LLC 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 and the follow...
#include <windows.h> #include <GL/freeglut.h> #include <stdio.h> #include <unistd.h> #include "Headers/TexLoader.h" #include "Headers/MTL_Loader.h" #include "Headers/OBJ_Loader.h" #include "Headers/StlLoader.h" #include "Headers/ScreenShot.h" #include "Headers/File.Dialog.h" float Width, Height; //****NO...
#include "sdk/sdk.hpp" #include "csgo/engine.hpp" #define CRC32_INIT_VALUE 0xFFFFFFFFUL #define CRC32_XOR_VALUE 0xFFFFFFFFUL #define NUM_BYTES 256 SpoofedConVar::SpoofedConVar(const char* var_name) { m_cvar_restore = csgo::m_cvar->FindVar(var_name); Spoof(); } SpoofedConVar::SpoofedConVar(ConVar* cvar) { m_cvar...
/******************************************************************** * This file includes functions to write a Verilog module * based on its definition in Module Manager * * Note that Verilog writer functions are just an outputter for the * module definition. * You should NOT modify any content of the module ma...
//////////////////////////////////////////////////////////////////////////////////// // 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: ...
/* * Copyright (c) 2012-2014 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the ...
/* ISC License Copyright (c) 2016-2017, Autonomous Vehicle Systems Lab, University of Colorado at Boulder Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copie...
/* * Alexa Voice On/Off/Brightness Control. Emulates a Philips Hue bridge to Alexa. * * This was put together from these two excellent projects: * https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch * https://github.com/probonopd/ESP8266HueEmulator */ /* * @title Espalexa library * @version 2.2.0 ...
#include <stdlib.h> #include <string.h> #include <assert.h> #include "image.h" #include "math_util.h" typedef unsigned char byte; const static byte image_magic_header[] = { 'F', 'W', 'I', 'M', 'G', '\0' }; const static int image_magic_header_len = 6; const static int CODING_MAX_BITS = 64; const stati...
// // Simple path tracer // Author: <NAME> // #ifndef M_PI #define M_PI 3.1415926f #endif #include <stdio.h> #include <cassert> #include <algorithm> #include <chrono> #include <vector> #include <glm/vec3.hpp> #include <glm/vec4.hpp> #include <glm/geometric.hpp> #include "ray.h" #include "TgaImage.h" #include "rand...
/* * editor.cpp * */ #include "../other/myalleg.h" #include <fstream> #include "editor.h" #include "../api/manager.h" // mouse ground #include "../graphic/glob_gfx.h" #include "../graphic/gra_lib.h" #include "../level/obj_lib.h" #include "../other/hardware.h" #include "../other/help.h" #include "../other/user.h" ...
/* ****************************************************************** ** ** OpenSees - Open System for Earthquake Engineering Simulation ** ** Pacific Earthquake Engineering Research Center ** ** ** ** ...
#include "utils.h" //#include "facedetect-dll.h" //#pragma comment(lib,"libfacedetect.lib") // project the global shape coordinates to [-1, 1]x[-1, 1] cv::Mat_<double> ProjectShape(const cv::Mat_<double>& shape, const BoundingBox& bbox){ cv::Mat_<double> results(shape.rows, 2); for (int i = 0; i < shape.rows;...
#include "../include/Mutations.hh" #include <iostream> #include "TMath.h" #include "TGraph.h" #include "TAxis.h" Mutations::Mutations(unsigned int x, unsigned int y, int N, int Nvertices) : fDisx(x), fDisy(y), fNtries(N), fNvertices(Nvertices) { fNPixels = fDisx * fDisy; fTri = sf::VertexArray(sf::Triangles,3)...
/* Copyright 2011-2021 <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 i...
#include <iostream> // For debug purposes. #include <iomanip> #include <fstream> #include <bitset> #include <exception> #include <cstdlib> // rand and srand. #include <ctime> // to seed rand. #include "chip8.h" #include "dataTypes.h" #include "characterSet.h" chip8::chip8() { reset(); } /// /brief Resets chip8 clas...
#include <iostream> #include <sstream> #include <cmath> #include <fstream> #include <cstdlib> #include <string> #include <vector> #include <time.h> #include "Clustering.h" #include "ClassicClustering.h" #include "LshClustering.h" #include "HypercubeClustering.h" #include "../Functions_for_both_algorithms/Reading.h" ...
/* Copyright (C) 2003-2014 by <NAME> <<EMAIL>> 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 commercia...
/* -*- 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/. */ ...
// // Created by <NAME> on 2019-07-25. // #include "Worker.h" unsigned char cflow_cap[] = { 0x00, 0x09, 0x00, 0x12, 0xc3, 0x0b, 0xfb, 0x2a, 0x53, 0xe0, 0xbd, 0x96, 0xa5, 0xba, 0xb7, 0xef, 0x00, 0x00, 0x00, 0xc8, 0x00, 0x00, 0x00, 0x90, 0x01, 0x03, 0x00, 0x09, 0x00, 0x08, 0x00, 0x04, 0...
/* pcmsolver_copyright_start */ /* * PCMSolver, an API for the Polarizable Continuum Model * Copyright (C) 2013-2016 <NAME>, <NAME> and contributors * * This file is part of PCMSolver. * * PCMSolver is free software: you can redistribute it and/or modify * it under the terms of the ...
//SFML library #include <SFML/Graphics.hpp> //For string manipulation #include <sstream> //For SFX #include <SFML/Audio.hpp> using namespace sf; //Function declaration void updateBranches(int seed); const int NUM_BRANCHES = 6; Sprite branches[NUM_BRANCHES]; //Branch positions and player positions. enum class side...
extern "C" { #include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <math.h> #include <sys/stat.h> }; #include "ngx_xapian_search.h" typedef struct { ngx_flag_t enabled; ngx_array_t* directory; ngx_str_t index; ngx_str_t tmpl; void* tmpl_contents; } ngx_xap...
/* This is part of the netCDF package. Copyright 2006 University Corporation for Atmospheric Research/Unidata. See COPYRIGHT file for conditions of use. This is an example which reads some 4D pressure and temperatures. The data file read by this program is produced by the companion program pres_temp_4D_...
/*! @file Edge.cpp Distributed under Open Software License 3.0 http://www.opensource.org/licenses/osl-3.0.php @verbatim $Id: Edge.cpp 16 2006-04-15 06:39:12Z henry_groover $ Edge object. Edges are attached to vertices and belong to faces. */ #include "stdafx.h" #include "PaperCut.h" #incl...
#include<bits/stdc++.h> #define all(x) (x).begin(), (x).end() using namespace std; template<class ver = string> class uGraph { using edgeList = list<pair<ver, float>>; map<ver, edgeList> adj; edgeList &neighbours(ver u) { return adj[u]; } list<ver> &vertices() { static list<ver> vLis...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "clientversion.h" #include "coins.h" #include "cor...
#include "condor_common.h" #include "condor_classad.h" #include "utc_time.h" #ifdef WIN32 #define CURL_STATICLIB // this has to match the way the curl library was built. #endif #include <curl/curl.h> #define MAX_RETRY_ATTEMPTS 20 int send_curl_request( char** argv, int diagnostic, CURL* handle, ClassAd* stats ); in...
#include <typeinfo> #include <iostream> #include <fstream> #include <string> #include <stdio.h> #include <stdlib.h> #include <vector> #include <algorithm> #include <errno.h> #include <cstring> #include <cmath> #include <complex> #include <sys/types.h> #include <dirent.h> #include <sys/stat.h> #include <unistd.h> #inclu...
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/extensions/extension_file_util.h" #include <map> #include <vector> #include "base/file_util.h" #include "base/files/file_enu...
/**************************************************************************** * Authors: * <NAME> * <NAME> ****************************************************************************/ #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/stream/EDProducer.h" #include "FWCor...
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/ioctl.h> #include <string> #include "capsicum.h" #include "capsicum-test.h" #include "syscalls.h" // Check an open call works and close the resulting fd. #define EXPECT_OPEN_OK(f) do { \ int fd = f; \ EXPECT_OK(fd); ...
#include "global.h" #include "workspace/workspace.h" #include "workspace/segdef.h" #include "surface.h" using namespace Maths; // Shortens some of the commands below SurfacePicker::SurfacePicker() : m_Seg( NULL ), COGMode(true) { m_AtomTypePicker = PickCAAtoms(); } SurfacePicker::~SurfacePicker() { } SurfacePicker...
// Copyright 2019-2021 Alpha Cephei 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 ...
// Copyright 2018 The Fuchsia 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 <ctype.h> #include <fuchsia/boot/c/fidl.h> #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default.h> #include <lib/fdio/fdio.h> #in...
#include "include/logger.h" #include <QDebug> using namespace dvrk; Logger::Logger(QString active_arm_) : isRec(false) , vid_writer(NULL) , m_us_writer(NULL) , stereo_rgb8_img_(cv::Mat()) , frame_count (1) , m_record_source (UNKNOWN) { m_stereo_updated = false; ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <octomap/octomap_timing.h> #include <octomap/octomap.h> #include <octomap/math/Utils.h> #include "testing.h" using namespace std; using namespace octomap; void printUsage(char* self){ std::cerr << "\nUSAGE: " << self << " inputfile.bt [max_depth]...
/******************************************************************************* * Copyright 2018 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.a...
// license:BSD-3-Clause // copyright-holders:<NAME> /* ======================================================================== */ /* =============================== COPYRIGHT ============================== */ /* ======================================================================== */ /* G65C816 CPU Emulator V0.90 ...
/** @file ssl_key_utils.cc - Deal with STEK @section license License 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 t...
//////////////////////////////////////////////////////////////////////////// // Module : ai_crow.cpp // Created : 13.05.2002 // Modified : 13.05.2002 // Author : <NAME> // Description : AI Behaviour for monster "Crow" //////////////////////////////////////////////////////////////////////////// #include "...
/** @file Implementation of Parent Proxy routing @section license License 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 fil...
/*! \file SiPixelTemplateDBObject_PayloadInspector \Payload Inspector Plugin for SiPixelTemplateDBObject \author <NAME> \version $Revision: 1.0 $ \date $Date: 2020/04/16 18:00:00 $ */ #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "CondCore/Utilities/interface/PayloadInspectorModule.h" #...
// // #include "PhysicsTools/KinFitter/interface/TKinFitter.h" #include "PhysicsTools/KinFitter/interface/TAbsFitParticle.h" #include "PhysicsTools/KinFitter/interface/TFitConstraintM.h" #include "PhysicsTools/KinFitter/interface/TFitParticleEMomDev.h" #include "PhysicsTools/KinFitter/interface/TFitParticleEScaledMomD...
#include "hgx.h" #include "zlib.h" #include <memory> #include "BmpWriter.h" #pragma comment(lib ,"zlib.lib") struct HG3HDR { unsigned char signature[4]; // "HG-3" unsigned long unknown1; unsigned long unknown2; unsigned long unknown3; unsigned long entry_count; }; struct HG3TAG { char signature[8]; ...
/* * SoftplusTest.cpp * * Created on: Dec 30, 2016 * Author: ken */ #include "SoftplusTest.hpp" SoftplusTest::SoftplusTest() {} SoftplusTest::~SoftplusTest() {} void SoftplusTest::feedForwardTest1() { Softplus s; arma::Cube<double> x1(1, 1, 3); x1(0, 0, 0) = 1; x1(0, 0, 1) = 5; x1(0, 0, 2) = 3; arm...
#include <algorithm> #include <functional> #include <iostream> #include <sstream> #include <fstream> #include <cmath> #include <string> #include <set> #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/split.hpp> #include <filesystem> #include "CLHEP/Random/RandomEngine.h" #include...
#include "mazda_mop.h" namespace bp = benchmark_problem; #include <iostream> #include <vector> #include <cmath> #include <algorithm> using namespace std; #include "g01_SUV_FrFL.h" #include "g02_SUV_ODB.h" #include "g03_SUV_ODB.h" #include "g04_SUV_ODB.h" #include "g05_SUV_SIDE.h" #include "g06_SUV_SIDE.h" #include "g...
#include "VHud.h" #include "GPS.h" #include "TextureMgr.h" #include "RadarNew.h" #include "HudNew.h" #include "HudColoursNew.h" #include "Utility.h" #include "VHud.h" #include "FontNew.h" #include "MenuNew.h" #include "CRadar.h" #include "CMenuManager.h" #include "CWorld.h" #include "CGeneral.h" #include "CTheScripts....
// Copyright 2017 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
// // Lexer.cppc // Compiler // // Created by <NAME> on 23.07.2020. // Copyright © 2020 <NAME>. All rights reserved. // #include "Lexer.hpp" Cursor *cursor; int tokens_count; Token *tokens; int i = 0; char character; char* code; unsigned long stringCount; int value_length = 0; // value length char* value = (char...
/* * ank25: Legacy soot function headers (public) void initialize(int nCells, Sprog::Mechanism &mech, realVector &mSolnVec); void sootReactions(int cell, realVector& conc, realVector& mom, int nSpec, doublereal T, doublereal p); /* /* * ank25: Legacy soot function headers (...
#define _USE_MATH_DEFINES #include <chrono> #include <exception> #include <fstream> #include <iostream> #include <math.h> #include <mpi.h> #include <omp.h> #include <set> #include <sstream> #include <stdio.h> #include <stdlib.h> #include <string> #include <vector> using namespace std; using namespace std::chrono; // ...
/****************************************************************************/ /* This is a simple demo program written for CSE167x by <NAME> */ /* This program corresponds to the final OpenGL lecture on shading. */ /* */ /* This progra...
#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string> #include <string.h> #include<iostream> using namespace std; FILE *source = fopen("input.txt","r"); FILE *listing=stdout; #define MAXRESERVED 12 // 保留字个数 #define MAXTOKENLEN 40 typedef enum { START,INASSIGN,INCOMMENT,INNUM,INID,DONE } ...
/* FILE: randomsiteexchange.cc -*-Mode: c++-*- * * 6 neighbor exchange energy on random links on rectangular mesh, * with random A. * */ #include <string> #include "nb.h" #include "director.h" #include "mesh.h" #include "meshvalue.h" #include "oxswarn.h" #include "simstate.h" #include "threevector.h" ...
// ================================================================================================= // ADOBE SYSTEMS INCORPORATED // Copyright 2006 Adobe Systems Incorporated // All Rights Reserved // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms // of the Adobe lic...
#include "skepu_convolutional.hpp" #include <milli.hpp> #include "proto/caffe.pb.h" using namespace caffe; /* * each user function will perform a dot product between coresponding weights and image(s if color channels * exists) */ [[skepu::userfunction]] double conv_batch(skepu2::Index1D index, const double* wei...
/********************************************************************************** Copyright 2021 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without...
#include "ImporterSPC.h" #include <core/consumer_factory.h> #include <date/date.h> #include <iostream> #include <core/util/logger.h> struct __attribute__ ((packed)) Header { int16_t INFTYP; //Must be 1 int16_t FILTYP; //Must be 1 or 5 int16_t ContentsFlag; //Bit 0 = 1 for long filename, Bit 1 = 1...
/* * Logger2.cpp * * Created on: 15 Jun 2012 * Author: thomas */ #include "Logger2.h" #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> Logger2::Logger2(int width, int height, int fps, bool tcp, std::string logFolder) : dropping(std::pair<bool, int64_t>(false, -1)), lastW...
#include "CAreaCooker.h" #include "CScriptCooker.h" #include "Core/CompressionUtil.h" #include "Core/GameProject/DependencyListBuilders.h" #include <Common/Log.h> const bool gkForceDisableCompression = false; CAreaCooker::CAreaCooker() : mGeometrySecNum(-1) , mSCLYSecNum(-1) , mSCGNSecNum(-1) , mColli...
#include <elf.h> #include <climits> #include <cassert> #include <stdexcept> #include <string> #include <algorithm> #include "ElfExecutable.h" #include "ElfRelocObject.h" #include "Section.h" #include "Symbol.h" #include "Debug.h" #define PAGE_SIZE 4096 #define PROGRAM_HEADERS_MAX 4 #define INVALID_SECTION_ID ((Se...
/////////////////////////////////////////////////////////////////////////////// //FILE: 'actuator.cpp' //Contains 'actuator' module of class 'Missile' // //030607 Created by <NAME> /////////////////////////////////////////////////////////////////////////////// #include "class_hierarchy.hpp" using namespace std; ////...
#include <opencv/cv.h> #include <pcl/point_cloud.h> #include <pcl/point_types.h> #include <pcl/range_image/range_image.h> #include <pcl/filters/filter.h> #include <pcl/filters/voxel_grid.h> #include <pcl/kdtree/kdtree_flann.h> #include <pcl/common/common.h> #include <pcl/registration/icp.h> #include <vector> #includ...
/* * Copyright 2020 The Magma Authors. * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, *...
#include "offscreen_render_target.hpp" #include "opengl.hpp" #include <bnb/effect_player/utility.hpp> #include <bnb/postprocess/interfaces/postprocess_helper.hpp> namespace bnb { const char* vs_default_base = " precision highp float; \n " " layout (location = 0) in vec3 aPos; \n" ...
/** @file MODULE : RateControlImplQuad TAG : RCIQ FILE NAME : RateControlImplQuad.cpp DESCRIPTION : A class to hold the model for the frame buffer rate rate control to match an average rate stream. This class models the RD curve with an inverse quadratic function...
#include "airtarget.h" #define square_destroy_range 40000 AirTarget::AirTarget(id_type id, MsgChannelCarrier &carrier, std::ostream& log) : Model{id, carrier, log} { declareteQueue(recieve_msg); } Vector3D GeoToLocal(GeodezicCoodinates GD, GeocentricCoodinates GC, GeocentricCoodinates GC0) { double sinL...
// ScintillaEdit.cpp: implementation of the CScintillaEdit class. // ////////////////////////////////////////////////////////////////////// #include "StdAfx.h" #include "ScintillaEdit.h" #include "Path.h" #include "File.h" #include "MultiLanguage.h" #include "textstream_reader.h" #include "logging.h" us...
/* * <NAME> - Dice Game */ #include <string> #include <iostream> #include <time.h> using namespace std; void DiceGame(int scores[], string players[]); void diceHeader(); void diceLogos(); void diceRules(); void diceHowTo(); void resetFlags(); void rollDice(int arr[], int freq_arr[], int n); int scorePointDice(int a...
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, 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...
// Based on the example Winboard protocol driver by H.G.Muller // http://www.open-aurec.com/wbforum/viewtopic.php?f=24&t=51739 #include <engine/Position.hpp> #include <engine/Search.hpp> #include <display/ConsoleDisplay.hpp> #include <fen_parser/FenParser.hpp> #include <cstdio> #include <string> #include <chrono> us...
// arithmetic_multiply.cpp: test suite runner for posit multiplication // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. // Configure the posit template environment // first: enable general or spec...
//******************************************************************************** // Copyright (c) 2009-2014 Intel Corporation. All rights reserved. ** // ** // Redistribution and use in source and binary forms, with or without ...
/* * pibt_mapd.cpp * * Purpose: PIBT_MAPD * * <NAME>., <NAME>., <NAME>., & <NAME>. (2019). * Priority Inheritance with Backtracking for Iterative Multi-agent Path Finding. * arxiv:1901.11282 * * Created by: <NAME> <<EMAIL>> */ #include "pibt_mapd.h" #include <algorithm> #include <bits/stdc++.h> #include <ran...
// // LiveVideoPublisher.cpp // FFmpegiOS // // Created by Jason on 2021/4/13. // Copyright © 2021 Jason. All rights reserved. // #include "LiveVideoPublisher.h" #include "LivePlatformCommon.h" #include <libavutil/opt.h> #define is_start_code(code) (((code) & 0x0ffffff) == 0x01) int get_sr_index(unsigned int samp...
#include "stdafx.h" #include "../libs/libutils/logging.h" #include "../libs/libutils/thread.h" #include "../libs/libutils/Exception.h" #include "../libs/librf/spidev_lib++.h" #include "../libs/librf/RFM69OOKregisters.h" #include "../libs/librf/RFM69OOK.h" #include "../libs/librf/RFProtocolNooLite.h" #include ...
#include "DataFormats/CSCDigi/interface/CSCComparatorDigi.h" #include "DataFormats/CSCDigi/interface/CSCStripDigi.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "Geometry/CSCGeometry/interface/CSCChamberSpecs.h" #include "Geometry/CSCGeometry/interface/CSCLayer.h" #include "Geometry/CSCGeometry/i...
//--------------------------------------------------------------------------- // Copyright (C) 2000 Dallas Semiconductor Corporation, All Rights Reserved. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // t...
#include "partition.h" using namespace std; using namespace Eigen; tuple<vector<int>,vector<int>> SpMat2CSC(SpMat& A) { int size = A.rows(); assert(A.cols() == A.rows()); vector<int> colptr(size+1); vector<int> rowval; colptr[0] = 0; for(int i = 0; i < size; i++) { colptr[i+1] = colptr...
#include "InGameEditor.h" #include <gplay-engine.h> #include <thirdparty/bgfxcommon/imgui/bgfximgui.h> #include <thirdparty/dear-imgui/widgets/gizmo.h> using namespace gplay; namespace gpeditor { //-----------------------------------------------------------------------------------------------------------------------...
#include "Quaternion.h" #include "Angle.h" #include <algorithm> #include <assert.h> #define _USE_MATH_DEFINES #include <cmath> #include <math.h> #include <cstdlib> #include <float.h> #include "Log.h" using namespace Supernova; Quaternion::Quaternion() : w(1), x(0), y(0), z(0){ } Quaternion::Quaternion( const fl...
/*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 writing, software distri...
/*----------------------------------------------------------------------------- - - - ItsyBitsy-BLE-LED - - Copyright (c) 2020 andrew - ...
/* * Copyright (c) 2014, The Linux Foundation. All rights reserved. * Not a Contribution. * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Lice...
/* * This file is part of Poedit (https://poedit.net) * * Copyright (C) 2015-2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without l...
#include <iostream> #include <cmath> #include <random> #include <vector> #include <cstdlib> #include <chrono> #include <cstdio> #include <fstream> using namespace std; // global parameters double tau1; // incubation time double tau2; // time from infection to recovery; tau2 > tau1 double tau3; // characteristic vehic...
/* * main.cpp * * Created on: 21. 5. 2019 * Author: ondra */ #include <iostream> #include <unordered_map> #include <rpc/rpcServer.h> #include <imtjson/operations.h> #include "proxy.h" #include <shared/linear_map.h> #include <brokers/api.h> using namespace json; class Interface: public AbstractBrokerAPI {...
#include<iostream> #include<math.h> #include<string> #include<stdlib.h> #include <fstream> #include<time.h> using namespace std; //Prime Number long int p, q; //First part of public key : n = p * q long int n; //Value Phi : phi = (p - 1) * (q - 1) long int phi; //Encryption Key long int e; //Decryption key long in...
#pragma once #include <memory> #include <mutex> #include <thread> #include <boost/asio.hpp> #include <boost/asio/ssl.hpp> #include <boost/beast.hpp> #include <boost/iostreams/stream.hpp> #include <boost/optional.hpp> #include <boost/signals2.hpp> #include <boost/signals2/signal_type.hpp> #include <boost/thread/thread...
// @@@ START COPYRIGHT @@@ // // 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...
/* * This file is part of the chess-at-nite project [chess-at-nite.googlecode.com] * * Copyright (c) 2009-2010 by * <NAME> * <NAME> * <NAME> * <NAME> * * For the full copyright and license information, please visit: * http://chess-at-nite.googlecode.com/svn/trunk/doc/LICENSE */ #include "evaluate....
/*****************************************************************************\ Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. This file is licensed under the Snes9x License. For further information, consult the LICENSE file in the root directory. \*************************...
/////////////////////////////////////////////////////////////////////////////// /// \file tokens.cpp /// \author Dr. <NAME> /// \brief This file will have some functions to display tokens /////////////////////////////////////////////////////////////////////////////// #include "tokens.h" ///////////////////////////...
#include <math.h> // smallpt, a Path Tracer by <NAME>, 2008 #include <stdlib.h> // Make : g++ -O3 -fopenmp smallpt.cpp -o smallpt #include <stdio.h> // Remove "-fopenmp" for g++ version < 4.2 #include <pthread.h> #include <unistd.h> #include <AS3/AS3.h> #include <AS3/AS3++.h> struct Vec { // Usage: tim...