text
stringlengths
5.71k
33.7k
/* Created: 29 August 2017 Last Updated: 29 May 2018 <NAME> <EMAIL> Texas A&M University ----- Make histograms! */ #include "Analysis/goldilocks/interface/histogrammer.h" histogrammer::histogrammer( configuration& cmaConfig, std::string name ) : m_config(&cmaConfig), m_name(name), m_isMC(false), ...
// Copyright [2018] <<NAME>>" #include "SoapySidekiq.hpp" #include <SoapySDR/Formats.hpp> #include <cstring> // memcpy #include <sidekiq_types.h> std::vector<std::string> SoapySidekiq::getStreamFormats(const int direction, const size_t channel) const { std::vector<std::string> formats; formats.push_back(SOAPY_S...
#include "vsnet_socket.h" #include "vsnet_sockethttp.h" #include "vsnet_oss.h" #include "vsnet_err.h" #include "lin_time.h" #include "packet.h" #include "netui.h" VsnetHTTPSocket::VsnetHTTPSocket( const AddressIP &remote_ip, const std::string &host, const std::string &path, SocketSe...
// PointwiseIONetCDF.cpp // created by Kuangdai on 1-Jun-2017 // NetCDF IO for point-wise receivers #include "PointwiseIONetCDF.h" #include "Parameters.h" #include "NetCDF_Writer.h" #include "NetCDF_Reader.h" #include "XMPI.h" #include <sstream> #include <cstdio> #include "PointwiseRecorder.h" #include <fstream> voi...
// // Created by jieming on 20.10.20. // #include "common_func.h" /*** Franka Model: Dynamic Parameter Initialisation ***/ void FRANKA::franka_model_DeLuca_init( array<double, 16> F_T_EE, double m_ee, array<double, 3> F_x_Cee, array<double, 9> I_ee ) { // We assume that during operation the end effector will not ...
#include "uvccapture.h" #include "libuvc/libuvc.h" #include "qsemaphore.h" #include <QDebug> UVCCapture::UVCCapture(int buffer_size, QSemaphore *free_frames, QSemaphore *used_frames, QObject *parent) : QObject(parent), m_cap_buffer_free(free_frames), m_cap_buffer_used(used_frames) { m_frame_buffer.resize(buffe...
/********** Copyright (c) 2020, Xilinx, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
#include "FinalPrint.h" #include "Util.h" #include <iostream> #include <fstream> TFinalPrint::TFinalPrint(std::map<int, std::set<int> >& sequence, TMusicBox& music_box, const char* text1, const char* text2, double text1...
#include <glm/glm.hpp> #include "Material.h" #include "Camera.h" #include "Scene.h" #include "Sphere.h" #include "Lambertian.h" #include "Metal.h" #include "Dielectric.h" #include "Utils.h" #include "PathTracer.h" #include "ConstantTexture.h" #include "CheckerTexture.h" #include "FileTexture.h" #include "LightMaterial...
// Copyright 2018 IBM. // This code is licensed under the Apache License, Version 2.0. You may // obtain a copy of this license in the LICENSE.txt file in the root // directory of this source tree or at // http://www.apache.org/licenses/LICENSE-2.0. // Any modifications or derivative works of this code must retain t...
#include <iostream> #include <fstream> #include <libdnnf/cnf_theory.hxx> #include <libdnnf/cnf2dnnf.hxx> #include <libdnnf/dnnf_theory.hxx> #include "nff_dijkstra.hxx" // MRJ: Matrix for holding the states we sample from // the initial belief std::vector< std::vector< int > > models; int ALL_MODS; void make_initial...
/*************************************************************************** un7z.c Functions to manipulate data within 7z files. **************************************************************************** Copyright <NAME> All rights reserved. Redistribution and use in source and binary forms,...
/** * \file PnlWznmVitDetail.cpp * job handler for job PnlWznmVitDetail (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifdef WZNMCMBD #include <Wznmcmbd.h> #else #include <Wznmd.h> #endif #include "P...
// Code for raytracing images #include <cstdlib> #include <string> #include <vector> #include <optional> using namespace std; #include "spdlog/spdlog.h" #include "definitions.h" #include "geometry.h" #include "lights.h" #include "scene.h" #include "option_structs.h" #include "render.h" #include "cameras.h" #include...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * 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/. */ ...
//===--- DeadFunctionElimination.cpp - Eliminate dead functions -----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
/* generic.c */ /* Demo of BEOS Mesa rendering */ /* * See Mesa/include/GL/osmesa.h for documentation of the OSMesa functions. * * If you want to render BIG images you'll probably have to increase * MAX_WIDTH and MAX_HEIGHT in src/config.h. * * This program is in the public domain. * * BEOS output provided by...
//===-- SIRegisterInfo.cpp - SI Register Information ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
#include "ParseUtils.h" #include "rapidjson\document.h" #include "JSONTools.h" #include "BuildOrder.h" #include "StrategyManager.h" using namespace UAlbertaBot; void ParseUtils::ParseConfigFile(const std::string & filename) { rapidjson::Document doc; BWAPI::Race race = BWAPI::Broodwar->self()->getR...
//===--- FreeBSD.cpp - FreeBSD ToolChain Implementations --------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "tiles_generic.h" #include "konamiic.h" static void (*K053245Callback[2])(INT32 *code,INT32 *color,INT32 *priority); static UINT8 *K053245Ram[2]; static UINT8 *K053245Buf[2]; static UINT8 *K053245Gfx[2]; static INT32 K053245Mask[2]; static INT32 K053245_dx[2]; static INT32 K053245_dy[2]; static UINT16 *K053...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAME>....
// Copyright (c) 2012 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 "google_apis/gaia/gaia_oauth_client.h" #include <memory> #include <utility> #include "base/json/json_reader.h" #include "base/logging.h" #i...
// -*- tab-width: 4; -*- // vi: set sw=2 ts=4 sts=4 expandtab: // $Id: dce557a646cdbbc66a8a537e95a57dcf6aba8ecb $ // // ©2019 The Khronos Group, 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 th...
// Copyright (c) 2012 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 "media/audio/win/audio_unified_win.h" #include <Functiondiscoverykeys_devpkey.h> #include "base/debug/trace_event.h" #include "base/time.h"...
#include <iostream> #include <fstream> #include <string> #include <vector> #include <set> struct Constant_Info { uint8_t tag; union { struct { uint16_t first; uint16_t second; } index; uint32_t u32; float f32; uint64_t u64; double f64; } data; std::string utf8; void get(uint16_t& first) { ...
/** * Copyright <NAME> 2016. All rights reserved. */ #include <assimp/postprocess.h> #include <assimp/scene.h> #include <stb/stb_image.h> #include <assimp/Importer.hpp> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <iostream> #include <typeindex...
// Copyright 2005 Google Inc. All Rights Reserved. #include "s2cellunion.h" #include <algorithm> using std::min; using std::max; using std::swap; using std::reverse; #include <vector> using std::vector; #include "base/integral_types.h" #include "base/logging.h" #include "s2.h" #include "s2cap.h" #include "s2cell.h...
/****************************************************************************** * * Project: GDAL * Purpose: Implements R Raster Format. * Author: <NAME>, <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2016, <NAME>, <ev...
#include "gameInstance.hpp" /* (void) startGameInstance uses the passed struct (gameInstanceArgs) args to configure the new GameInstance. The args struct is defined as the following: int windowWidth - Defines the width of the application window int windowHeight - Defines the height of the application window vecto...
#include <obs-module.h> #include <media-io/video-scaler.h> #if defined(__APPLE__) #include <onnxruntime/core/session/onnxruntime_cxx_api.h> #include <onnxruntime/core/providers/cpu/cpu_provider_factory.h> #else #include <onnxruntime_cxx_api.h> #include <cpu_provider_factory.h> #endif #ifdef _WIN32 #include <dml_provid...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2013 Couchbase, 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 * * ...
/* Copyright 2017-present <NAME> (AI-TOOLKIT), All Rights Reserved You may use this file only if you agree to the software license: AI-TOOLKIT Open Source Software License - Version 2.1 - February 22, 2018: https://ai-toolkit.blogspot.com/p/ai-toolkit-open-source-software-license.html. Also included with the source...
/** * \file bundle_sam.cpp * * Created on: Feb 28, 2021 * \author: pettni * * Adopted from se2_sam.cpp, see that file for explanations. */ // manif #include "manif/Rn.h" #include "manif/SE2.h" #include "manif/Bundle.h" // Std #include <vector> #include <map> #include <list> #include <cstdlib> // Debug ...
/* Copyright (C) 2011 by <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, distribute,...
/* * * Functions to calculate the: * 1) drizzle overlap between a square and a circle (function `resample_circle` * by <NAME> 2012) * 2) Gaussian overlap between a circular Gaussian and a square grid (function * `inteGrauss2d` by <NAME> 2017) * * These calculations are the crucial step in drizzling, to kno...
/** * This file is part of the CernVM File System. * * This is the internal implementation of libcvmfs, not to be exposed * to the code using the library. This code is based heavily on the * fuse module cvmfs.cc. */ #define ENOATTR ENODATA /**< instead of including attr/xattr.h */ #include <sys/xattr.h> #incl...
/* * Copyright (C) 2012 www.scratchapixel.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This progra...
/* * Player - One Hell of a Robot Server * Copyright (C) 2000 <NAME> & <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your op...
/** * Copyright 2021 Comcast Cable Communications Management, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
#include <iostream> #include <unordered_map> #include <utility> #include <vector> #include <array> #include <algorithm> #include <iomanip> #include <memory> #include <iterator> #include <bit> #include <string_view> #include <thread> #include <syncstream> // nooby things in C++ // 1. using namespace std; (confusing bc...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2013 <NAME> Copyright (C) 2015 <NAME> Copyright (C) 2017 <NAME> Copyright (C) 2020 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http:...
/* DD-based simulator by JKU Linz, Austria Developer: <NAME>, <NAME> With code from the QMDD implementation provided by Michael Miller (University of Victoria, Canada) and <NAME> (University of Bremen, Germany). For more information, please visit http://iic.jku.at/eda/research/quantum_simulation If you have any que...
/* Copyright (C) 2017 Open Intelligent Machines Co.,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/licenses/LICENSE-2.0 Unless required by applicable law or ...
/* SBUS.cpp <NAME> <EMAIL> Copyright (c) 2016 Bolder Flight Systems 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, mo...
// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the top level of t...
#include "./optparse.hpp" #include "elementary.h" #define H5_USE_18_API #include <hdf5.h> #include <string> /* std::string */ #include <cerrno> /* errno */ #include <cstdio> /* stderr */ #include <cstdint> /* uintXX_t */ #include <cstdlib> /* exit */ #include <cstring> /* strerror */ #include <sstream> #include <cmat...
//! Code counter class methods for the Matlab language. /*! * \file CMatlabCounter.cpp * * This file contains the code counter class methods for the Matlab language. */ #include "CMatlabCounter.h" /*! * Constructs a CMatlab object. */ CMatlabCounter::CMatlabCounter() { classtype = MATLAB; language_na...
/*! * mintex. * app_account * * \date 02.05.19 * \author <NAME> (<EMAIL>) * \link https://github.com/edwardstock */ #include <boost/locale.hpp> #include <rang.hpp> #include <fort.hpp> #include "wallet/term.h" #include "wallet/app/account_controller.h" #include "wallet/gate/repository.h" #include "wallet/explor...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ /* QM Vamp Plugin Set Centre for Digital Music, Queen Mary, University of London. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published b...
#include "StdInc.h" #include "Hooking.h" #include <mutex> static std::unordered_map<void*, std::string> g_gamerInfoBuffer; static std::mutex g_gamerInfoBufferMutex; int SprintfToBuffer(char* buffer, size_t length, const char* format, const char* name) { int rv = _snprintf(buffer, length, format, name); buffer[leng...
//===- StatisticsTest.cpp --------------------------------------------------===// // // The ONNC Project // // See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include <skypat/skypat.h> #include <onnc/Analysis/Statistics.h> #in...
#include "../include/ecbs.hpp" const std::string ECBS::SOLVER_NAME = "ECBS"; const float ECBS::DEFAULT_SUB_OPTIMALITY = 1.1; ECBS::ECBS(Problem* _P) : Solver(_P) { sub_optimality = DEFAULT_SUB_OPTIMALITY; solver_name = ECBS::SOLVER_NAME + "-" + std::to_string(sub_optimality); } void ECBS::run() { // high-level...
// Copyright (C) 2011-2020 Internet Systems Consortium, Inc. ("ISC") // // 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/. /// \brief Test of TCPSocket /// /// Tests th...
/** * Copyright (c) 2021 OceanBase * OceanBase CE is licensed under Mulan PubL v2. * You can use this software according to the terms and conditions of the Mulan PubL v2. * You may obtain a copy of Mulan PubL v2 at: * http://license.coscl.org.cn/MulanPubL-2.0 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS...
#include "../include/waterMeshChunk.hpp" #include "../include/util/image.hpp" #include "../include/util/utility.hpp" #include <cmath> #include <iostream> #define WG_SIZE 8 using namespace std::complex_literals; static constexpr bool useTrueRandom = true; static uint rseed = 3907355480; // 3060 template<class T> inl...
#include "RecoEcal/EgammaClusterAlgos/interface/Multi5x5ClusterAlgo.h" // Geometry #include "Geometry/Records/interface/IdealGeometryRecord.h" #include "Geometry/CaloGeometry/interface/CaloSubdetectorGeometry.h" #include "Geometry/CaloGeometry/interface/CaloCellGeometry.h" #include "Geometry/CaloTopology/interface/Ec...
/* * Copyright (c) 2016 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2026-01-04 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
#include <stdlib.h> #include <UT/UT_DSOVersion.h> #include <GU/GU_Detail.h> #include <PRM/PRM_Include.h> #include <OP/OP_Director.h> #include <OP/OP_OperatorTable.h> #include <SOP/SOP_Node.h> #include <UT/UT_PNoise.h> #include <GU/GU_PrimPart.h> #include <OpenEXR/ImathRandom.h> #include <tbb/tbb.h> #include "SOP_Rai...
/*This file is part of the FEBio Studio source code and is licensed under the MIT license listed below. See Copyright-FEBio-Studio.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 per...
#include "ofApp.h" #include <algorithm> #include <math.h> #include "../../common/pitchColours.h" glm::vec3 randomMove(float x, float y, float theta, float speed) { if (((float) rand() / RAND_MAX) < SWITCH_DIRECTION_PROB) theta = ((float) rand() / RAND_MAX) * 2 * PI; float new_x = x + speed * cos(theta); if ...
#define BOOST_TEST_MODULE SplineTest /* * ######################################################################## * The contents of this file is free and unencumbered software released into the * public domain. For more information, please refer to <http://unlicense.org/> * ########################################...
#include "Enums.hpp" const double C_ExeTime = 0.01; // const units::time::second C_ExeTime = 0.01; const double C_RadtoDeg = 57.2958; const double C_Deg2Rad = 0.017453292519943295; const double C_PI = 3.14159265358979; const double C_Tau = 6.28318530717958647; static const int frontLeftSteerDeviceID = 1, frontLeftDri...
/***** Vsa_VOdometer Implementation *****/ /******************** ***** System ***** ********************/ #include "Vk.h" /****************** ***** Self ***** ******************/ #include "Vsa_VOdometer.h" /********************************* ********************************* ***** ...
/* Example use of libfreenect in AlloCore Build with: -lfreenect -lusb-1.0 -framework Carbon -framework IOKit Author: <NAME>, 2011 */ #include "allocore/al_Allocore.hpp" #include "allonect/al_Freenect.hpp" #include "alloutil/al_Lua.hpp" using namespace al; Graphics gl; SearchPaths paths; const char * man = "...
/* * Copyright 2016-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 w...
#include "split_pointer.hpp" #include "coo_matrix.hpp" #include "ell_matrix.hpp" #include "csr_matrix.hpp" #include "ell_page_rank.hpp" #include "csr_page_rank.hpp" #include "ell_benchmark.hpp" #include "csr_benchmark.hpp" #include "constants.hpp" #include "thread_buffer.hpp" #include <iostream> #include <ios> #inclu...
/* Author: @karngyan */ #ifndef BZF_MD5_H #define BZF_MD5_H #define S11 7 #define S12 12 #define S13 17 #define S14 22 #define S21 5 #define S22 9 #define S23 14 #define S24 20 #define S31 4 #define S32 11 #define S33 16 #define S34 23 #define S41 6 #define S42 10 #define S43 15 #define S44 21 #include <cstring> #in...
// AllocationSetupTests.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <array> #include <format> #include <fstream> #include <iostream> #include <map> #include <ranges> #define NOMINMAX 1 #include <Windows.h> #pragma warning(push) #pragma warning(disable : 4100 445...
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2016, <NAME> University and University of Cambridge, // all rights reserved. // // THIS SOFTWARE IS PROVIDED “AS IS” FOR ACADEMIC USE ONLY AND ANY EXPRESS // OR IMPLIED WARRANTIES WARRANTIES, INCLUDING, BUT NOT LIMITED TO,...
/// tlssh/src/tlsshd-ssl.cc /** * @addtogroup TLSSHD * @file src/tlsshd-ssl.cc * TLSSHD SSL middle-layer process. * * TLSSH SSLProc * * This file contains the code for the SSL-terminal "proxy" * process. It checks what user it should run as and then drops * privileges to that user. It also spawns the shell pro...
#include "launchControlComm.h" int parseLaunchControlInput(Serial &s, NAL9602 &sat) { char cmd[80]; char strOpt[80]; char c; bool reachedEnd = false; int numOpt, numOpt2, numOpt3, numOpt4, numOpt5, numOpt6; int status = 0; s.scanf("%79s", cmd); // GPS commands if (strcmp(cmd,"GPS")==0) { s.scanf(...
/* SPDX-License-Identifier: BSD-3-Clause-Clear */ /* * Copyright (C) 2021-2022, <NAME> * * The timelapse tab. GUI definition, callbacks, inter-thread communication. */ #include <iostream> #include <ctime> #include <cmath> #include "mainwin.h" #include "calc.h" #include "mylog.h" #include <FL/Fl.H> #ifdef __CLION_...
/* Copyright (C) 2014 <NAME> email: <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, merge, publish, di...
#include "path_planner.h" #include "helpers.h" #include <iostream> #include <limits> void PathPlanner::Initialize(double car_x, double car_y, double car_s, double car_d, double car_v, double car_yaw) { x = car_x; y = car_y; s = car_s; d = car_d; s_d = car_v * 0.44704; // mph to m/s yaw = car_ya...
#include <iostream> #include <string> #include <opencv2/opencv.hpp> #include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/registration/icp.h> #include <pcl/visualization/pcl_visualizer.h> #include <pcl/console/time.h> // TicToc #include <pcl/filters/voxel_grid.h> #include <pcl/comm...
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <GL/freeglut.h> #include <glm/glm.hpp> #include <glm/ext.hpp> #include <glm/gtx/vector_angle.hpp> #include <algorithm> #include <math.h> #include <vector> #include <limits> #include <fstream> #include <string> #include <sstream> #include <iterator> #in...
//----------------------------------------------------------------------------- // dirscan - Scan directories. // // Author: <NAME> - 2015 // http://landenlabs.com/ // // This file is part of LLFile project. // // ----- License ---- // // Copyright (c) 2015 <NAME> // // Permission is hereby granted, free of charge, to ...
// The code by <NAME> (https://svn.csail.mit.edu/rrtstar) has been modified and adapted for the implementation of Inteliigent Bidirectional-RRT* #define LIBBOT_PRESENT 0 #include <iostream> #include <ctime> #include <bot_core/bot_core.h> #include <lcm/lcm.h> #include <lcmtypes/lcmtypes.h> #include "rrts.hpp" #in...
/* <dory/dory_server.cc> ---------------------------------------------------------------------------- Copyright 2013-2014 if(we) 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 ...
#include <ftl/rgbd/snapshot.hpp> #include <nlohmann/json.hpp> using namespace ftl::rgbd; using cv::Mat; using Eigen::Matrix4d; using cv::imencode; using cv::imdecode; using std::string; using std::vector; using cv::FileStorage; // TODO: move to camera_params using ftl::rgbd::Camera; void to_json(nlohmann::json&...
#include <vlog/inmemory/inmemorytable.h> #include <vlog/fcinttable.h> #include <kognac/utils.h> InmemoryDict singletonDict; void dump() { ofstream ofs; ofs.open("dict", ofstream::out | ofstream::trunc); for (uint64_t i = 1; i <= singletonDict.getNTerms(); i++) { ofs << i << "\t" << singletonDict.get(i) ...
/* ############################################################################### # If you use PhysiCell in your project, please cite PhysiCell and the version # # number, such as below: # # ...
/* * symReference.c - write keys and ciphertext blobs, read them back * and decrypt on (possibly) a different platfrom. * Intended for use in testing multiplatform * compatibility (e.g. encrypt on 32 bit G4, decrypt * on 64-bit G5). * * Created by <NAME> 10/31/05. */ #include <s...
// Copyright 2019 Baidu, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
 #include "stdafx.h" #include "RhRdkPhysicalSkyTexture.h" #include "RhRdkTextureUtilities.h" #include "RhRcmBasicEnvironment.h" const wchar_t* EnglishPhysicalSkyString(e_PSS_StringId id) { switch(id) { case pss_date: return L"Date and Time"; case pss_use_doc_sun: return L"Use document sun"; case pss_show_sun...
/* * DrumKit.cpp * * Created on: 26 Nov 2016 * Author: mario * * This file is part of the Gecho Loopsynth & Glo Firmware Development Framework. * It can be used within the terms of CC-BY-NC-SA license. * It must not be distributed separately. * * Find more information at: * http://phonicbloom.com/...
#include "Draw.h" #include "MathsFunc.h" #include "Vector3D.h" #include "Face3D.h" #include <vector> #include <cmath> #include "Obj_Loader.h" #include "Matrix3D.h" #include <SDL_image.h> #include "kiss_sdl.h" #include "kiss_events_system.h" #include "VertexShader.h" #include "FragmentShader.h" #include "Tex_Loader.h" #...
#include "browse.h" #include "borealis/platforms/switch/swkbd.hpp" brls::Box* Browse::create() { return new Browse(); } const std::string horzHolder = R"xml( <brls:Box id="horzHolder" axis="row" width="100%" height="25%" marginBottom="10" marginTop="20" ...
#include "LivingEntities.h" #include "CWorld.h" #include "CGame.h" #include "CBomb.h" #include "CPickup.h" #include <vector> #include <cstdlib> #include <unistd.h> using namespace std; CLivingEntity::CLivingEntity(const CCoord & loc, const string & name, const CTile & tile, bool collide, bool AIControlled, const sta...
/* american fuzzy lop - LLVM-mode instrumentation pass --------------------------------------------------- Written by <NAME> <<EMAIL>> and <NAME> <<EMAIL>> LLVM integration design comes from Laszlo Szekeres. C bits copied-and-pasted from afl-as.c are Michal's fault. Copyright 2015, 2016 Google Inc. Al...
#include "bind.h" #include <enoki/autodiff.h> #include <enoki/idiv.h> #include <enoki/loop.h> #include <enoki/texture.h> #include <pybind11/stl.h> #include <pybind11/operators.h> extern void export_scalar(py::module_ &m); #if defined(ENOKI_ENABLE_PYTHON_PACKET) extern void export_packet(py::module_ &m); #endif #if d...
/* sexputil.c - Utility functions for S-expressions. * Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc. * Copyright (C) 2013 <NAME> * * This file is part of GnuPG. * * This file is free software; you can redistribute it and/or modify * it under the terms of either * * - the GNU Lesser General Pu...
#include "gtest/gtest.h" #include "jangine.h" TEST(Matrix, General) { // Ctors & operator[] jg::Mat<float, 2, 3> a{2.0f, 3.0f}; EXPECT_FLOAT_EQ(a.data[0], 2.0f); EXPECT_FLOAT_EQ(a.data[1], 3.0f); EXPECT_FLOAT_EQ(a.data[2], 0.0f); EXPECT_FLOAT_EQ(a[0].x, 2.0f); EXPECT_FLOAT_EQ(a[0].y, 3.0f...
/************************************************************************ Copyright 2017-2019 eBay Inc. Author/Developer(s): <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 https://www.a...
#include <unistd.h> #include <QVBoxLayout> #include <QApplication> #include <QDebug> #include "main.hh" ChatDialog::ChatDialog() { setWindowTitle("P2Papp"); socket = new NetSocket(); if (!socket->bind()) { exit(1); } else { portNum = socket->port; /* use port as a node id an...
//============================================================================ // Name : wav_templating_test.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ ...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTextureParamsAdjuster.h" #include "GrCaps.h" #include "GrContext.h" #include "GrDrawContext.h" #include "GrGpu.h" #include "GrGpuResourcePriv.h" #include "GrResou...
//===- PrefixModules.cpp - Prefix module names pass -------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...