text
stringlengths
3.08k
22k
#include <iostream> #include <string> #include "ArgumentParser.hpp" #include "Evaluator.hpp" #include "FileHandler.hpp" #include "LSHNearestNeighbours.hpp" #include "hyper_cube.hpp" #include "GenericLSHSolver.hpp" using namespace std; // default sampling rate #define F_S 0.5 #define DEFAULT_K_LSH 4 #define DEFAULT...
/* * File text viewer */ #include <stdlib.h> #include <ctype.h> #include "sysdep.h" #define BUFSIZE 512 const char *displaylines(const char *txt, const char *begintxt, int8u); void displaybuffer(const char *txt, const char *); const char *backline(const char *start, const char *curtxt); const char *nextline(const ...
/* * Copyright (C) 2015 <NAME> */ #include <algorithm> #include <map> #include <fstream> #include <set> #include <string> #include <vector> #include "include/InstLabeler.h" #include "include/InstPrinter.h" #include "include/lib/UnusedFunctions.h" #include "include/lib/DynAlias.h" #include "include/lib/IndirFcnTarge...
/** * Copyright 2017 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 License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
/* -- (c) Copyright 2018 Xilinx, Inc. All rights reserved. -- -- This file contains confidential and proprietary information -- of Xilinx, Inc. and is protected under U.S. and -- international copyright and other intellectual property -- laws. -- -- DISCLAIMER -- This disclaimer is not a license and does not grant any ...
#include "AssemblerDirectiveHandler.h" #include <Expression.h> #include <Assembler.h> #include "AssemblerTypes.h" #include "AssemblyState.h" #include "Operation.h" #include <cassert> #include <unordered_map> namespace assembler { using expression::NumericConstantExpression; /** * Notes on the behavior of EQU. *...
#include "MarchingCubes.h" #include <iostream> #include <Tables.h> #define NOISE_SSB_BP 0 #define VERTICES_SSB_BP 1 #define CUBES_SSB_BP 2 #define TRITABLES_SSB_BP 3 #define NORMALS_SSB_BP 4 #define TRIANGLES_SSB_BP 5 MarchingCubes::MarchingCubes() { } MarchingCube...
#include <iostream> #include <float_def.h> #include <chrono> #include <math/vec3.h> #include <math/ray.h> #include <hitable_list.h> #include <sphere.h> #include <limits> #include <camera.h> #include <random> #include <material.h> #include <lambertian.h> #include <dielectric.h> #include <metal.h> using namespace RT; ...
#include "Application.h" #include "PanelConfiguration.h" #include "Window.h" #include "Input.h" #include "Renderer3D.h" #include "SDL.h" #include "SDL_cpuinfo.h" #include "GL/glew.h" #include "mmgr/mmgr.h" #include <stdio.h> #include <string> #include "mmgr/mmgr.h" ConfigPanel::ConfigPanel() { active = true; ...
// // ObjectActionSpring.cpp // libraries/physics/src // // Created by <NAME> 2015-6-5 // Copyright 2015 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "QVariantGLM.h" #include "Obje...
/* * Ultra-lightweight process control * * Author: <NAME>, <<EMAIL>> 2013 * */ #include <iostream> #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <signal.h> #include <time.h> #include <sys/time.h> #include <glib.h> // for configuration files #include "../../LCM/lcmt_process_control.h" #incl...
/* Copyright (c) <2003-2021> <<NAME>, Newton Game Dynamics> * * 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, *...
# include <iostream> #include "itkCommand.h" #include "itkVector.h" #include "itkImage.h" #include "itkCastImageFilter.h" #include "itkRescaleIntensityImageFilter.h" #include "itkRGBPixel.h" #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "TraceNode.h" #include "tinyxml.h" typedef itk::Image...
// Copyright (c) 2018 Baidu, Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applic...
#include <cassert> #include <iostream> #include <unistd.h> #include <cmath> #include <utility> #include "eigen.h" #include "matrix.h" #include "lanczos.h" #include "cycle_timer.h" #define THREADS_PER_BLOCK 256 // Forward declarations template <typename T> class k_multiply_inplace; template <typename T> class k_saxp...
#include <water_simulation.hpp> #include <algorithm> #include <cassert> #include <iterator> #include <limits> #include <ostream> #include <regex> #include <unordered_map> Simulation parseInput(std::string_view input) { std::regex rx_line(R"((\w)=(\d+), (\w)=(\d+)\.\.(\d+))"); using regex_it = std::regex_iter...
/* ============================================================================================== * * * * Galaxia Blockchain * * ...
/* 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 distribu...
#include <SFML/Graphics/RenderWindow.hpp> #include <SFML/System/Clock.hpp> #include <SFML/Window/Event.hpp> #include <fmt/format.h> #include <imgui-SFML.h> #include <imgui.h> constexpr auto font_filename = "share/calibri-font-family/calibri-regular.ttf"; constexpr auto font_size = 22.0f; template<typename std::size_t...
//Written by <NAME> and <NAME> //Created on January 16 at 9:40am PST //This program has a handful of fun short games to play #include <algorithm> #include <cstdlib> #include <ctime> #include <filesystem> #include <fstream> #include <iomanip> #include <iostream> #include <random> #include <string> #include <vector> us...
#include <iostream> #include <iomanip> #include <fstream> #include "List.h" #include "SList.h" #include "BST.h" #include "Skup.h" #include "Benchmark.h" #ifdef max #undef max #endif #define BUFFER_SIZE 1000 const unsigned long Benchmark::seed = 879521352; SList<int> Benchmark::vel_lst={50,200,1000,10000,100000,1000...
#include "Flagella.h" Flagella::Flagella(const int argc, const char **argv) : rsmall(0.0), rlarge(0.0), head(0.0), cell1(0.0), cell2(0.0) {} // Units in this case are mm/g/s REAL Flagella::_flagellaRun() { vector<Rod *> rodPtrs; // Dumping frequencies (number of frames/dumps per unit time) const REAL diag...
#include "IOMC/EventVertexGenerators/interface/BeamProfileVtxGenerator.h" #include "FWCore/Utilities/interface/Exception.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "CLHEP/Geometry/Transform3D.h" #include "CLHEP/Random/RandFlat.h" #in...
/*** This file is part of PulseAudio. PulseAudio 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. PulseAudio is distribut...
/* * BP-BingScraper.cc * * Created on: Sep 6, 2010 * Author: root */ /* * BP-BingScraper.cc * ----------------------------------------------- * This file holds the routines responsible for extracting and storing results from google searches. It * only uses libcurl and libxml for making requests/scrapin...
#include <map> #include <randar/Render/Shader.hpp> #include <randar/Utility/String.hpp> // Default constructor. randar::Shader::Shader() : randar::GraphicsContextResource(nullptr) { } // Primary constructor. randar::Shader::Shader(GraphicsContext& context) : randar::GraphicsContextResource(&context) { } // Destruc...
#include <stdio.h> #include <stdlib.h> #include "iregraph.hpp" #include "../ithelib.h" extern void (*darken_bitmap)(IREBITMAP *image, unsigned int level); extern void (*merge_blit)(unsigned char *dest,unsigned char *src, int pixels); extern void darken_init(int bpp); extern void IRE_SetPixelFormat(int bpp); int _IRE_...
#include "GamepadsWidget.h" GamepadsWidget::GamepadsWidget(Hosting& hosting) : _hosting(hosting), _gamepads(hosting.getGamepads()) { } bool GamepadsWidget::render() { static ImVec2 dummySize = ImVec2(0.0f, 5.0f); AppStyle::pushTitle(); ImGui::SetNextWindowSizeConstraints(ImVec2(400, 380), ImVec2(800,...
#include "PlayStationMobileExporter.h" #include <FileReader.h> #include <Files.h> #include "ImageTool.h" #include "StringHelper.h" using namespace kmd; using namespace hake; using namespace kake; namespace { std::string readFile(std::string filename) { kmd::FileReader reader(filename.c_str()); return s...
#pragma warning (disable : 4530) // complaint about exception handler #include <fstream> #include <string> #include <map> #include <vector> #include <algorithm> #include <array> #include <assert.h> #include <cstdlib> #include <sstream> #include "SceneImporter.h" enum VariableType{ kTypeUndefined, kTypeModel, kTy...
#include "Tools/general_utils.h" #include "Tools/Exception/exception.hpp" #include "Module/Puncturer/NO/Puncturer_NO.hpp" #include "Module/Puncturer/Turbo/Puncturer_turbo.hpp" #include "Puncturer_turbo.hpp" using namespace aff3ct; using namespace aff3ct::factory; const std::string aff3ct::factory::Puncturer_turbo_n...
#include "Boss.h" Boss::Boss(const std::string& filename, const Quaternion& q, const Vector& vec): Object(filename, vec[0], vec[1], vec[2]) { state = AI_WAIT; m_ForwardVelocity = 0.0f; slerpCounter = 0.0f; mPosition = vec; mOrientation = q; mDirectionVector = Vector::ZERO; bossColor[0] = 0.0f; bossColor[1] ...
#include <iostream> #include "vec.hpp" // ---------------------------------------------------------------------------------------------------------- // test constexpr auto myvec = vec<float, 3>(0.f, 1.f, 2.f); constexpr auto minus_myvec = -myvec; constexpr auto myvec_length_stuff = myvec.length_sqr() + length_sq...
/* Linked List ADT implementation in C++*/ #include <iostream> using namespace std; /* Defining the class for Linked List ADT*/ template <typename T> class List { public: // This method is used to access the contents of the Linked List in a manner similar to arrays i.e like a[0] to acces the first element using...
/* * Copyright (C) 2007-2015 <NAME>. * * Use of this source is governed by a BSD-style license that can be * found in the LICENSE file. * */ #include <flux/testing/TestSuite> #include <flux/stdio> #include <flux/crypto/Aes> namespace flux { namespace crypto { namespace aes { Ref<ByteArray> keyExpansion(ByteArra...
/** * @file client1.cpp * @brief * This example illustrates the use of coroutines * in combination with Boost ASIO to implement a client application. * This example uses 1 CommClient object. * * @author <NAME> (<EMAIL>, <EMAIL>) */ #include <string> #include "corolib/print.h" #include "corolib/async_operatio...
/* Copyright (c) Stanford University, The Regents of the University of * California, and others. * * All Rights Reserved. * * See Copyright-SimVascular.txt for additional details. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated doc...
#include <iostream> #include <sstream> #include <stdlib.h> #include <string.h> #include <math.h> #include <cassert> #include <cmath> #include "OpenCLDeviceInfo.h" #include "OptionParser.h" #include "support.h" #include "Event.h" #include "ProgressBar.h" #include "ResultDatabase.h" #include "aocl_utils.h" #include "con...
// Standalone Stromgren sphere test. #include <cassert> #include <iostream> #include <vector> #include <cmath> #include <mpi.h> #include "aton_cpp.h" double time_step(double dx, double c_light) { const double cfl = 0.9; return cfl*dx/c_light/3; } double calc_dx(double L) { int ncellx, ncelly, ncellz, nbound;...
#include "mex.h" #include <math.h> #include "edison_wrapper_mex.h" /* * * image - of type single, after permuting [3 2 1] */ /* * main enterance point */ void mexFunction( int nlhs, /* number of expected outputs */ mxArray *plhs[], /* mxArray output pointer array */ int nrhs,...
/* * This file is part of RCBot. * * RCBot by <NAME> adapted from Botman's HPB Bot 2 template. * * RCBot 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, o...
/* * Audacious bs2b effect plugin * Copyright (C) 2009, <NAME> <<EMAIL>> * Copyright (C) 2009, <NAME> <<EMAIL>> * Copyright (C) 2010, <NAME> <<EMAIL>> * Copyright (C) 2011, <NAME> <<EMAIL>> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public Li...
#include "ofApp.h" #include "SharedUtils.h" void ofApp::setup() { sharedSetup(); setupGui(); video.load("recording"); thresholdValue = 26; prevThresholdValue = 0; blurKernelSize = 4; blurredStrengthWeight = 0.07; handyFloat01 = 0; minLaplaceEdgeStrength = 218; //184; bHandyBool = false; bDoAd...
// Copyright (c) 2018-2019 The Navcoin Core developers // Copyright (c) 2019 The DeVault Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "zerochain.h" #include "zerotx.h" using namespace libzerocoin; C...
#include "stdafx.h" #include "Elements/Font.h" #include "GL/GLTexture2D.h" #include "GL/GLArrayBuffer.h" #include "GL/GLVertexArray.h" #include "GL/GLSetting.h" #include "Utils/MathUtils.h" namespace ROC { extern const glm::vec2 g_emptyVec2; const int g_fontDefaultAtlasSize = 256; const float g_fontDefaultAtlasOffs...
/**************************************************************************** * Copyright (c) 2015 - 2016, CEA * 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 mus...
#include "EnemyGO.h" #include "../../ConstSettings.h" #include "../../Random.h" #include <SFML/Graphics/Sprite.hpp> #include <cmath> #include "../../engine/ParticleSystem.h" #include "../../particles/SmokeParticle.h" EnemyGO::EnemyGO(ResourceLoader *resourceLoader1, int maxHealthPoints1, EnemyType enemyType) : Damagea...
/* Solid voxelization based on the Schwarz-Seidel paper. */ #include "voxelize.h" #define float_error 0.000001 // use Xor for voxels whose corresponding bits have to flipped inline void setBitXor(unsigned int* voxel_table, size_t index) { size_t int_location = index / size_t(32); unsigned int bit_pos = size_...
/************************************************************************* * Copyright (C) [2019] by Cambricon, Inc. 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 a...
/* ========================================================================== */ /* */ // <NAME>, December 2017 // // Sequencer Generic // // The purpose of this code is to provide an example for how to best // sequence a set of periodic service...
#include <stdint.h> #include <stdio.h> #include <unistd.h> #include <errno.h> #include <stdio.h> #include <time.h> #include <string.h> #include <stdlib.h> #include <iostream> #include <QFile> #include <QDataStream> #include <QTextStream> #include <QCommandLineParser> #include <QDateTime> #include <QDebug> #include <Qt...
#include "GUI_Common.h" #include "LayoutElement.h" #include "LayoutField.h" #include "LayoutRow.h" #include "GUI_Layout.h" int GUI_Layout::pixel_per_em = 16; GUI_Layout::GUI_Layout() { } GUI_Layout::~GUI_Layout() { } void GUI_Layout::AddRow(vector<LayoutField> fields, double height) { LayoutRow newrow; newrow.he...
/* * MIT License * * Copyright (c) 2020 <NAME> and <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...
#include "Renderer2d.h" #include "../util/IoUtils.h" #include "../util/Shader.h" #include "../util/Texture.h" const static std::string DEFAULT_FONT { "/font/SourceSansPro-Regular.ttf" }; const static GLuint gSlot = 0; static constexpr const char* _vs[] = { "attribute vec2 vertex;" "attribute vec2 uv;" "uniform mat...
/* * Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra * * This file is part of Essentia * * Essentia is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation (FSF), either version...
#include "Integrator.h" void PathIntegrator::Render(std::shared_ptr<Image> image, std::shared_ptr<Flags> flags) { Tile tile; // Fetch new tile while (tiler->FetchTile(&tile)) { // For each pixel for (int y = tile.yEnd - 1; (int)tile.yStart <= y; y--) { for (int x = tile.xStart; x < (int)tile.xEnd; x++) { ...
/** * * @file HMW_graph_1.cpp */ /* * $Author: hkmoffa $ * $Date: 2006/07/07 16:31:52 $ * $Revision: 1.2 $ */ #include <stdio.h> #ifdef SRCDIRTREE #include "ct_defs.h" #include "logger.h" #include "ThermoPhase.h" #include "HMWSoln.h" #include "importCTML.h" #else #include "ThermoPhase.h"...
/*----------------------------------------------------------------------- <NAME> 2017 http://trederia.blogspot.com crogine - Zlib license. 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. Per...
/* * If not stated otherwise in this file or this component's license file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 cop...
/************************************************************************** * * * Catapult(R) MatchLib Toolkit Example Design Library * * * * Software Ver...
#include <gflags/gflags.h> #include <stddef.h> #include <algorithm> #include <cstdint> #include <initializer_list> #include <iterator> #include <string> #include <vector> #include "ncode/common.h" #include "ncode/file.h" #include "ncode/logging.h" #include "ncode/strutil.h" #include "ncode/substitute.h" #include "ncod...
//==--------- PostEnqueueCleanup.cpp --- Scheduler unit tests --------------==// // // 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 "MyWindow.hpp" #include "RigidBody.hpp" #include "CollisionInterface.hpp" #include <cstdio> #include <iostream> using namespace Eigen; void MyWindow::displayTimer(int _val) { if (mPlaying) { mPlayFrame += mDisplayTimeout; if (mPlayFrame >= mBakedStates.size()) mPlayFrame = 0; }else if (mSim...
#include <vector> #include <map> #include <math.h> #include <float.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "EVXTimer.h" #include "EVXLEDController.h" #include "EVXAudioRecorder.h" #include "biquad.h" #include "notch.h" #include "ramp.h" #include "blinky_functions.h" #include "dip_switch.h...
/* This a header file that includes every standard library. You can use it to save time. NOTE: This header file may not be recognized by compilers other than gcc. */ #include <bits/stdc++.h> /* //Use this if the above header file doesn't work. #include <iostream> #include <algorithm> #include <list> #include <map> #...
#include <string.h> #include <stdio.h> #include "types.h" #include "console.h" #include "snes.h" #include "snstate.h" void SnesSystem::SaveState(void *pState, Int32 nStateBytes) { if (nStateBytes == sizeof(SnesStateT)) { SaveState((SnesStateT *)pState); } } void SnesSystem::Restor...
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
/*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>, <NAM...
/* * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 * ri...
#include "typo.hpp" #include "costs.hpp" #include "layout.hpp" #include <algorithm> #include <iomanip> #include <iostream> auto operator<<(std::ostream &stream, const TypoKind kind) -> std::ostream & { switch (kind) { case TypoKind::None: { break; } case TypoKind::Substitute: { stream << "Substitute";...
#include "ofMain.h" // declare the ButtonPad class and methods class ButtonPad { public: // enumerators allow us to assign more interesting names to values of an integer // we could use an integer to the same effect, // e.g. "int button_state = 0", when our button is down // and "int button_state = 1"...
/* Graphic User Interface * <NAME>, Ingeniería informática */ #include <stdio.h> #include <gtkmm.h> #include <signal.h> #include <unistd.h> #include <sys/types.h> #include <glibmm/thread.h> #include <iostream> #include "Args.h" #include "Client.h" #ifdef ENABLE_NLS # include <libintl.h> #endif #define UI_FILE "../...
/* Written by <NAME> at May 8, 2021 Modified by <NAME> at May 10, 2021 This function is used for displaying the search result and offer some interactions. It can receive the pointer of the float array which stores the relative score of each course and print out the search result form the high relative to the low relat...
/** * @File: FootTrajectoryGenerator.cpp * * @author <a href="mailto:<EMAIL>"><NAME></a> * foot trajectory for walking */ #include "FootTrajectoryGenerator2018.h" #include "Tools/Math/CubicSpline.h" using namespace std; void FootTrajectoryGenerator2018::execute(){ const Step& executingStep = getStepBuffer...
#include "Heap.h" #include <arch.h> #include <arch/spinlock.h> #include <log.h> #include "mem/PhysicalAllocator.h" #include "sched/Task.h" #include "vm/Map.h" #include "vm/MapEntry.h" #include "dlmalloc/dlmalloc.h" using namespace mem; bool Heap::gLogAlloc = false; bool Heap::gLogMmap = false; /// base address a...
/* * Copyright (C) 2014 - 2016 Intel Corporation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice(s), * this li...
#include "qclab/QCircuit.hpp" #include "f3c/SquareCircuit.hpp" #include "f3c/TriangleCircuit.hpp" #include "f3c/qgates/functors.hpp" #include <random> #include <cstring> #ifdef _OPENMP #include <omp.h> #endif template <typename F> auto triangleCircuit( const int n ) { using T = typename F::value_type ; using G = ...
#include <stdarg.h> //va_list... #include <fcntl.h> //open #include <unistd.h> #include <sys/time.h> //gettimeofday #include <stdio.h> #include "ngx_conf.h" #include "ngx_global.h" #include "ngx_macro.h" #include "ngx_log.h" extern "C" { #include "ngx_string.h" } /* err_levels: Level of logs * * Level of logs c...
#include <string.h> #include <cmath> #include <cstdio> #include <iostream> #include <list> #include <boost/filesystem.hpp> #include "nlohmann/json.hpp" #include "decision_forest.h" #include "neighbor_attack.h" #include "timing.h" #include "utility.h" using nlohmann::json; using namespace cz; namespace cz { namesp...
#include <pdf_tin/Document.hpp> #include <pdf_tin/NoSuchPageError.hpp> #include <gtest/gtest.h> #include <algorithm> #include <sstream> #include <math.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <iostream> #include <iomanip> using namespace pdf_tin; namespace pdf_tin { std::ostream& ope...
//***********************************************************************// // // // - "Talk to me like I'm a 3 year old!" Programming Lessons - // // // // $Author: DigiBen <EMAIL> // // // // $Program: ...
#include"../head.hpp" string R_NAME; string R_DATA; string S_NAME; string S_DATA; string W_NAME; //设定的默认参数 string R_PUNC; string S_PUNC; string W_PUNC; void ParaCtrlThread(int threadid) { //读取配置文件进行初始化配置 //cout<<"input config source:"<<endl; string cfg_filename = "run.cfg"; //cin >> ...
//===- AffineDataCopyGeneration.cpp - Explicit memref copying pass ------*-===// // // 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 <_gadget/gadget.button.h> #include <_type/type.gadget.helpers.h> #include <_controller/controller.font.h> void _button::setStrValue( wstring val ) { if( this->strValue == val ) return; // Set Value... this->strValue = val; // Inform that maybe, size should change now this->update(); ...
// Copyright 2015 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. // +build #include <fcntl.h> #include <limits.h> #include <linux/futex.h> #include <string.h> #include <sys/ioctl.h> #include <sys/prctl.h> #include <sys/...
#include "PickingScene.h" #include "FrameBufferObjects.h" #include "Shader.h" #include "ShaderProgram.h" #include "GeometryObject.h" #include <AABB.h> #include "Player.h" #include <Ray.h> #include <Triangle.h> #include "Square.h" #include "Texture2D.h" #include "input.h" #include "settings.h" #include "Model.h" #inc...
/* Copyright (c) 2014 Aerys 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, sublicens...
/************************************************************************* * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved. * Modifications Copyright (c) 2019-2020 Advanced Micro Devices, Inc. All rights reserved. * * See LICENSE.txt for license information **************************************...
#include <unistd.h> #include <errno.h> #include <sys/stat.h> #include <string.h> #include <time.h> #include <stdlib.h> #include "game.h" #include "io.h" #include "os.h" #include "wizard.h" #include "rogue.h" #include "level.h" #include "death.h" #include "score.h" #define LOCKFILE ".rogue14_lockfile" struct score {...
#include "Light.h" #include "Plane.h" #include "Ray.h" #include "Sphere.h" #include <QColor> #include <QImage> #include <QOpenGLFunctions> #include <QVector3D> #include <cmath> #include <memory> constexpr auto WIDTH = 1280; constexpr auto HEIGHT = 960; constexpr auto PI = 3.14159265358979323846; constexpr auto FOV = P...
#include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include <float.h> #include "helper_functions.h" #include "multiv_gauss.h" using std::string; using std::vector; using std::normal_distrib...
/////////////////////////////////////////////////////////////////////////////// // Filename: FWidViewShader.cpp /////////////////////////////////////////////////////////////////////////////// #include "FWidViewShader.h" #include "..\..\..\..\Core\Camera\FCamera.h" #include "..\..\..\..\Core\Resource\Texture\FTexture.h"...
// -*- C++ -*- // // Package: FWCore/ParameterSet // Filename: edmWriteConfigs.cpp // // This program takes as input the name of // a shared object library that is associated // with a plugin(s). For each module that is // defined in that library it determines // which labels have predefined configurations // d...
#include <IntervalTimer.h> #include "Config.h" #include "Demo.h" #include "Controls.h" #include "MIDIManager.h" #include "Synth.h" #include "Utility.h" #define NOTEDEMO 1 #define CHORDDEMO 2 #define POLYDEMO 3 #define MONODEMO 4 int curDemoPlaying = 0; IntervalTimer timer; typedef struct { int beat; byte note...
/* * Software License Agreement (BSD License) * * Copyright (c) 2014-2015, <NAME>, Social Robotics Lab, University of Freiburg * Copyright (c) 2011, <NAME>, Social Robotics Lab, University of Freiburg * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ar...
#include "bootstrapping.hpp" void help() { std::cout << "Bootstrapping code for a learning based detector that takes uses "; std::cout << "a detection and ground truth file to generate additional hard "; std::cout << "negatives and positives based on false positives and false negatives.\n"<< std::endl; std::...
#include <ndt_mcl/3d_ndt_mcl.h> void NDTMCL3D::updateAndPredict(Eigen::Affine3d Tmotion, pcl::PointCloud<pcl::PointXYZ> &cloud){ Eigen::Vector3d tr = Tmotion.translation(); Eigen::Vector3d rot = Tmotion.rotation().eulerAngles(0,1,2); double t_start = getDoubleTime(); pf.predict(Tmotion, tr[0]*0.1, tr[...
/** * Copyright (C) 2019 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
// ============================================================================= // 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...
//===--- SourceLoc.hpp - Source Locations & Ranges --------------*- C++ -*-===// // Part of the Sora project, licensed under the MIT license. // See LICENSE.txt in the project root for license information. // // Copyright (c) 2019 <NAME> //===----------------------------------------------------------------------===// ...