text
stringlengths
3.08k
22k
#include <iostream> //#include <unordered_map> #include <vector> #include <algorithm> // Check for alternative Multiprecision Implementation from boost #if defined(CPP_INT) // alternative cpp_int (~4x slower than GMP) // no external linking required // use compile command with "-DCPP_INT" #include <boo...
/** * MIT License * * Copyright (c) 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 limitation the rights * to use, copy, modify,...
#include "processing/processing_service.hpp" #include <iostream> #include <boost/program_options.hpp> #include <boost/format.hpp> #include <libp2p/multi/multibase_codec/multibase_codec_impl.hpp> #include <libp2p/log/configurator.hpp> #include <libp2p/log/logger.hpp> using namespace sgns::processing; namespace { ...
// Copyright 2016 Open Source Robotics Foundation, 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 appli...
// <EMAIL> // hw14 #include <iostream> #include <vector> #include <cassert> #include <cstdlib> #include <ctime> using namespace std; const bool VERBOSE = false; /** * Performs calculations required to divide a region of an array into two roughly equal halves. * @param start array start index * @param length arra...
#include "network/bidirectional_network_graph.hpp" #include "network/heap.hpp" #include "network/network.hpp" #include "network/network_graph.hpp" #include "util/debug.hpp" #include <cmath> #include <iostream> #include <algorithm> #include <unordered_map> #include <queue> using namespace FMM; using namespace FMM::COR...
//===-- IntrinsicCleaner.cpp ----------------------------------------------===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
#include "SimulationCore_pcp.h" #include "Model_S2D_ME_s.h" #include "Step_S2D_ME_s.h" #include "Model_S2D_ME_s_hdf5_io_utilities.h" #include "TimeHistoryOutput_S2D_ME_s_elem_vol.h" int TimeHistoryOutput_S2D_ME_s_elem_vol::init(void) { if (is_init) return 0; is_init = true; switch (res_file->get_type()) { ca...
// // Sample: Illustrates getaddrinfo and getnameinfo // // Files: // resolver.cpp - this file // // Description: // This sample illustrates how to use the new name resolution APIs: // getaddrinfo and getnameinfo. This sample takes a hostname or address // and performs an address res...
#include "config.hpp" #include <pwd.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <cstdio> #include <cstdlib> #include <cstring> #include <string> #define MAX_LINE 300 Config config; Config::Config() { memset(&filename[0], 0, sizeof(filename)); } const char *Config::getHomeDir(...
#include "Chunk.h" Chunk::Chunk(void) : Entity(), Resource() { this->intersections = new std::vector<Intersection*>(); this->intersections->reserve(100); this->roads = new std::vector<Road*>(); this->cityBlocks = new std::vector<CityBlock*>(); this->setRenderRadius((Chunk::CHUNK_SIZE * 1.42f) / 2.0...
/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
#include <functional> #include <future> #include "kernel.h" #include "raster.h" #include "symboltable.h" #include "ilwisoperation.h" #include "binarymath.h" using namespace Ilwis; using namespace BaseOperations; OperationImplementation *BinaryMath::create(quint64 metaid, const Ilwis::OperationExpression &expr) { ...
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** * Qwt Widget Library * Copyright (C) 1997 <NAME> * Copyright (C) 2002 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the Qwt License, Version 1.0 *************************...
#include <stdio.h> #include <stdlib.h> #include <string.h> // strcpy() #include <sys/wait.h> // waitpid() #include <unistd.h> // vfork #include <string> #include <vector> #include "io.h" #include "split.h" using std::string; using std::vector; // 2019-06-13 16:31:28 1187056 regrets.x.0.0.0.0.p0.i // 2019-06-...
/** @defgroup MleParts Magic Lantern Parts */ /** * @file pcpal.h * @ingroup MlParts * * @author <NAME> * @date Jan 24, 2006 * * This file implements an abstract class for a Windows color palette. */ // COPYRIGHT_BEGIN // // Copyright (C) 2000-2007 Wizzer Works // // Wizzer Works makes available all conten...
/* Copyright (c) 2014-2015 <NAME> Distributed under the MIT/X11 software license, see the accompanying file LICENSE or http://www.opensource.org/licenses/mit-license.php. */ #include "main.hpp" #include "util.hpp" #include <boost/chrono/chrono.hpp> #include <boost/type_traits.hpp> #include <boost/chrono/system_clock...
// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/layout/utility_classes.cpp,v $ // $Revision: 1.3 $ // $Name: $ // $Author: ssahle $ // $Date: 2012/04/22 14:51:16 $ // End CVS Header // Copyright (C) 2012 - 2010 by <NAME>, Virginia Tech Intellectual // Properties, Inc., Unive...
#include <stdio.h> #include <iostream> #include "imgui.h" #include "imgui/imgui_impl_glfw.h" #include "imgui/imgui_impl_opengl3.h" #include <stb_image.h> #include "Editor/ImGuiRenderer.h" #include <glad/glad.h> // Initialize with gladLoadGL() #include <GLFW/glfw3.h> // Include glfw3.h after our OpenGL definitions...
#include <iostream> #include <conio.h> #include <windows.h> #include <dos.h> #include <time.h> #define MAXSNAKESIZE 100 #define MAXFRAMEX 119 #define MAXFRAMEY 29 using namespace std; HANDLE console = GetStdHandle(STD_OUTPUT_HANDLE); COORD CursorPosition; void gotoxy(int x, int y){ CursorPosition.X...
/* * Copyright (c) 2016 University of Cordoba and University of Illinois * All rights reserved. * * Developed by: IMPACT Research Group * University of Cordoba and University of Illinois * http://impact.crhc.illinois.edu/ * * Permission is hereby granted, free of charge, to ...
/* -*- c++ -*- */ /* * Copyright 2004 Free Software Foundation, Inc. * * This file is part of GNU Radio * * GNU Radio 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, or (at your opti...
/* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 <NAME> CppAD is distributed under the terms of the Eclipse Public License Version 2.0. This Source Code may also be made available under the following Secondary Lice...
//-- includes ----- #include "ClientTrackerView.h" #include "ClientLog.h" #include "MathGLM.h" #include "PSMoveProtocol.pb.h" #include "SharedTrackerState.h" #include <assert.h> #include <chrono> #include <sstream> #include <boost/interprocess/shared_memory_object.hpp> #include <boost/interprocess/mapped_region.hpp> #i...
/* * MIT License * Copyright (c) 2005- Claybird * 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) 2005-2013 Team XBMC * http://xbmc.org * * 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, or (at your option) * any later version. * * ...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "FinalInlineV2.h" #include <boost/variant.hpp> #include <unordered_set> #include <vector> #include "ConstantPropagation...
/* * Copyright (c) 2001-2007 * DecisionSoft Limited. All rights reserved. * Copyright (c) 2004-2007 * Oracle. 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...
#include "Randomize.hh" #include "G4ParticleTable.hh" #include <iostream> #include <fstream> #include <string> #include "SimG4Core/CustomPhysics/interface/CustomPDGParser.h" #include "SimG4Core/CustomPhysics/interface/HadronicProcessHelper.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/P...
/* * 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.0 (the * License); you ma...
// // Created by 19sou on 02-04-2021. // #include "Renderer.h" Renderer::Renderer(int frameWidth, int frameHeight, int samplesPerPixel): frameWidth(frameWidth), frameHeight(frameHeight), samplesPerPixel(samplesPerPixel) { cameraPosition = Vector3(); cameraDirection = Vector3(); } void Renderer::set...
/*++ Copyright (C) 1997-2001 Microsoft Corporation Module Name: MOFUTILSD.CPP Abstract: Support of trace output and internationalized strings. History: a-davj 13-July-97 Created. --*/ #include "precomp.h" #include <reg.h> #include "strings.h" #include <stdio.h> #include <st...
#include <Tools/MeshGenerators.h> #include <cstdint> #include <unordered_map> #include <vector> using namespace Osm; using namespace std; ////////////////////////////////////////////////////////////////////////////////////////// /// Generate Icosphere /// Based on code Written by <NAME> for Seed of Andromeda /// ht...
#include "SoapyNetSDR.hpp" #include <SoapySDR/Logger.hpp> #include <SoapySDR/Formats.hpp> #include <chrono> #include <thread> #include <algorithm> #include <cstddef> SoapySDR::Stream *SoapyNetSDR::setupStream( const int direction, const std::string &format, const std::vector<size_t> &channels, const SoapySDR::Kwar...
#include "stdafx.h" #include <imgui.h> #include <GWCA/Constants/Constants.h> #include <GWCA/GameContainers/Array.h> #include <GWCA/GameContainers/GamePos.h> #include <GWCA/GameEntities/Agent.h> #include <GWCA/GameEntities/Skill.h> #include <GWCA/Managers/MapMgr.h> #include <GWCA/Managers/AgentMgr.h> #include <GWCA/...
#include "MethodCache.h" #include "JniLocalRef.h" #include "JsArgToArrayConverter.h" #include "MetadataNode.h" #include "NativeScriptAssert.h" #include "Util.h" #include "V8GlobalHelpers.h" #include "ArgConverter.h" #include "V8StringConstants.h" #include "NumericCasts.h" #include "NativeScriptException.h" #include "Ru...
#include "RPC_internal.h" static struct rpmsg_endpoint rp_endpoints[4]; void rpc::client::post(RPCLIB_MSGPACK::sbuffer *buffer) { #ifdef CORE_CM7 RPC1.write(ENDPOINT_CM7TOCM4, (const uint8_t*)buffer->data(), buffer->size()); #else RPC1.write(ENDPOINT_CM4TOCM7, (const uint8_t*)buffer->data(), buffer->size()); #end...
/* Copyright (c) 2019, 2021 MariaDB 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; version 2 of the License. This program is distributed in the hope that it will be useful, but...
/******************************************************************************* * Copyright 2018 ROBOTIS 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....
// BigTerrain.cpp: implementation of the CBigTerrain class. // //--------------------------------------------------------------------------------------- #include "stdafx.h" #include "geticapp.h" #include "bigterrain.h" #include "view3d.h" #include "view2d.h" #include "document.h" #include "texadapter.h" #include "texs...
/* Copyright (c) 2021 M.A.X. Port Team * * 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, ...
/***************************************************************************************** * * * OpenSpace * * ...
/** * * Lunds tekniska högskola | LTH 2015 * <NAME> * * MIT License (MIT) * Copyright (c) 2015 <NAME> */ #include "tracker_patterns_node.h" TrackerPatterns::TrackerPatterns (void) { /// Init publishers heading_adj_pub = n.advertise<interaction_monitor::AnnotationVariable...
///////////////////////////////////////////////////////////////////////////// // Name: dMaterialNodeInfo.h // Purpose: // Author: <NAME> // Modified by: // Created: 22/05/2010 08:02:08 // RCS-ID: // Copyright: Copyright (c) <2010> <Newton Game Dynamics> // License: // This so...
// Copyright 2016 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 "printing/backend/cups_printer.h" #include <cups/cups.h> #include <string> #include <utility> #include "base/files/file.h" #include "base/file...
/** * @file llweb.cpp * @brief Functions dealing with web browsers * @author <NAME> * * $LicenseInfo:firstyear=2006&license=viewerlgpl$ * Second Life Viewer Source Code * Copyright (C) 2010, Linden Research, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms o...
#include "index_hash_calcer.h" #include "projection.h" #include <util/generic/utility.h> #include <util/generic/xrange.h> using namespace NCB; void CalcHashes( const TProjection& proj, const TQuantizedForCPUObjectsDataProvider& objectsDataProvider, const TFeaturesArraySubsetIndexing& featuresSubsetInd...
#include <cstdio> #include <vector> #include <algorithm> struct D { // Direction int i; static constexpr int d[4][2] = { {0, 1}, {1, 0}, {0, -1}, {-1, 0} }; static constexpr int g[4] = { 1, 2, 3, 0 }; inline D left() const { return {(i + 1) % 4}; } inline D right() const { return {(...
// // MIT License // // © ESI Group, 2015 // // 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, pu...
// matth-x/ESP8266-OCPP // Copyright <NAME> 2019 - 2021 // MIT License #include <ArduinoOcpp/Core/OcppOperation.h> #include <Variants.h> int unique_id_counter = 531531531; using namespace ArduinoOcpp; OcppOperation::OcppOperation(OcppMessage *ocppMessage) : ocppMessage(ocppMessage) { } OcppOperation::OcppOpera...
#ifdef WIN32_VC90 #pragma warning (disable : 4251) #endif #include "mesh.h" #ifdef WIN32 #include <windows.h> #endif #include <QDebug> // assimp include files. These three are usually needed. #include <assimp/cimport.h> #include <assimp/scene.h> #include <assimp/postprocess.h> using namespace std; #include <luabi...
// Copyright 2016 The Streamer Authors. 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 ...
#include <stdio.h> #include <memory> #include <random> #include <vector> #include <unordered_map> #include <deque> #include <chrono> #include "core.h" #include "decision_engine.h" #include "action_factories.h" #include "sarsa/sarsa_agent.h" #include "sarsa/sarsa_learner.h" #include "sarsa/sarsa_action_factories.h" #in...
// Generate PBS script based on SLiM input and parameters #include <iostream> #include <fstream> #include <string> #include <vector> #include <random> #include <sstream> #include "getopt.h" #include "generators.hpp" using std::string; using std::vector; // Define class member functions void FileGenerator::FileGenera...
#include "Graph/FlowGraphConnectionDrawingPolicy.h" #include "Asset/FlowAssetEditor.h" #include "Graph/FlowGraph.h" #include "Graph/FlowGraphSchema.h" #include "Graph/FlowGraphSettings.h" #include "Graph/FlowGraphUtils.h" #include "Graph/Nodes/FlowGraphNode.h" #include "FlowAsset.h" #include "Nodes/FlowNode.h" #incl...
#include "cube.h" #include <GL/glew.h> using namespace reload; cube::cube() { m_scale_matrix = glm::scale(glm::vec3(1.0f,1.0f,1.0f)); m_vertices = { -1.0f,-1.0f,-1.0f, -1.0f,-1.0f, 1.0f, -1.0f, 1.0f, 1.0f, 1.0f, 1.0f,-1.0f, -1.0f,-1.0f,-1.0f, -1.0f, 1.0f,-1.0f, ...
//===================== C++ ===================== #include <iostream> #include <fstream> #include <sstream> #include <string> //===================== C ===================== #include "system.h" #include "ipcData.h" #include "config.h" //===================== SDK ===================== #include "system_...
#include <cmath> #include <cstring> #include <cstdio> #include <cassert> #include <cstdlib> #include <algorithm> #include <iomanip> #include <iostream> #include <limits> #include <random> #include <vector> #include <sys/resource.h> #include "hashpack.h" #include "hashmap.h" #include "timers.hpp" using namespace std;...
// $Id$ /************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * * * Pri...
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id: NetManager.cc 121 2008-08-11 17:39:23Z sriramsrao $ // // Created 2006/03/14 // Author: <NAME> // // Copyright 2008 Quantcast Corp. // Copyright 2006-2008 Kosmix Corp. // // This file is part of Kosmos File System (KFS). // // Licens...
// // VROGLTFTest.cpp // ViroKit // // Copyright © 2018 Viro Media. 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"), to deal in the Software without restriction, including // without...
/* Problem: Implementation of Krushkal's algorithm using minheap for edge selection by storing the graph in adjacency list. */ #include<iostream> using namespace std; struct adj_list_node { int value; int weight; struct adj_list_node* next; }; struct adj_list_node* New_adj_list_node (int v,int w) { stru...
/*************************************************************************** * Copyright (C) 2007-2013 <NAME>, <EMAIL> * * All rights reserved. * * * * Contributed originally by <NAME>...
#include <cuda.h> #include <cuda_runtime.h> #include <stdio.h> #include <inttypes.h> #include <math.h> #include "utils.hpp" #include "update.hpp" #include "cuStinger.hpp" #include "static_triangle_counting/cct.hpp" #define CUDA(call, ...) do { \ cudaError_t _e = (call); ...
// Copyright 2017-2020, Institute for Artificial Intelligence - University of Bremen // Author: <NAME> (http://haidu.eu) #include "Utils/SLUuid.h" #include "Misc/Guid.h" #include "Misc/Base64.h" #include "Serialization/MemoryReader.h" #include "Serialization/BufferArchive.h" /* Encodings */ // Creates a new GUID and ...
/** * \file src/maths/Quast.cpp * \brief Implementation of Quast (non-template) * \author <NAME> * \version 0.1 */ #include "maths/PPLUtils.hpp" #include <vector> std::vector<LinearExpression_ppl> * maxlex(Polyhedron & p, std::vector<bool> & sign, size_t d1, size_t d2, size_t g) { std::vector<LinearExpression_...
/* * Copyright (C) 2021 FISCO BCOS. * SPDX-License-Identifier: Apache-2.0 * 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 * * Unl...
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2021, the Ginkgo authors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source co...
#include "instance.h" #include <array> #include <vector> #include <algorithm> #include <iostream> #include <cassert> #include <iomanip> #include <bitset> #include <chrono> #include <sstream> #include "threadpool.h" enum class Res { Ok, Opt, Infeas, Prune }; #define FIXED 21 struct Sol { std::arr...
#include "lexer.h" #include <fstream> #include <iostream> #include <sstream> #include <string> #include "types.h" #include "symbol.h" #include "token.h" #include "errors.h" #include "files.h" bool is_valid_symbol_start_char(char ch) { if(isalpha(ch)) return true; switch(ch) { case '_': return true; case...
// SPDX-License-Identifier: MIT //! [includes] #include <cmath> #include <iomanip> #include <iostream> #include <numeric> #include <ddc/ddc.hpp> //! [includes] // some parameters that would typically be read from some form of // configuration file in a more realistic code //! [parameters] // Start of the domain of...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
#include <solvers/smt/smt_conv.h> smt_astt smt_convt::overflow_arith(const expr2tc &expr) { // If in integer mode, this is completely pointless. Return false. if(int_encoding) return mk_smt_bool(false); const overflow2t &overflow = to_overflow2t(expr); const arith_2ops &opers = static_cast<const arith_2op...
#include"hypns.hpp" #include<sstream> #include<regex> #include <iterator> using namespace std; using namespace hns; template<typename Out> void split(const std::string &s, char delim, Out result) { std::stringstream ss; ss.str(s); std::string item; while (std::getline(ss, item, delim)) { *(res...
/*****************************************************************************/ // Jobs // // Author // <NAME> // // This application and all source files used in its construction, except // where noted, are licensed under the MIT License, and have been written // and are: // // Copyright (c) 2002 Haiku Project // ...
#include <cxxopts.hpp> #include <gm/base/constants.h> #include <gm/types/floatRange.h> #include <gm/types/intRange.h> #include <gm/types/vec2iRange.h> #include <gm/types/vec3f.h> #include <raytrace/ray.h> #include <gm/functions/clamp.h> #include <gm/functions/dotProduct.h> #include <gm/functions/lengthSquared.h> #in...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
#include "gtest\gtest.h" #include "Common.hpp" #include "..\Portal-stein\Geometry.hpp" #include "..\Portal-stein\Math.hpp" using namespace ps; class GeometryTest : public ::testing::Test { public: GeometryTest() : lsA(sf::Vector2f{ 0.0f, 1.0f }, sf::Vector2f{ 2.0f, 1.0f }), lsB(sf::Vector2f{ 1.0f, 2.0f }, sf::Ve...
/* Plugin-SDK (Grand Theft Auto Vice City) source file Authors: GTA Community. See more here https://github.com/DK22Pac/plugin-sdk Do not delete this comment block. Respect others' work! */ #include "CTheZones.h" // Variables eLevelName& CTheZones::m_CurrLevel = *(eLevelName*)0x97F204; short& CTheZones::TotalNumberOfM...
// bluetooth.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <wchar.h> #include <iostream> #include <stdlib.h> #include <stdio.h> #include <Winsock2.h> #include <Ws2bth.h> #include <BluetoothAPIs.h> #include <MSWSock.h> #pragma comment(lib, "Ws2_32.lib") // wskazuje na linke...
// Copyright information can be found in the file named COPYING // located in the root directory of this distribution. #include "T3D/examples/renderObjectExample.h" #include "math/mathIO.h" #include "scene/sceneRenderState.h" #include "core/stream/bitStream.h" #include "materials/sceneData.h" #include "gfx/gfxDebugEv...
#include "core.h" #include "mpicontroller.h" #include "move.h" #include "montecarlo.h" #include "analysis.h" #include "multipole.h" #include "docopt.h" #include "progress_tracker.h" #include <cstdlib> #include "spdlog/spdlog.h" #include <spdlog/sinks/null_sink.h> #include <spdlog/sinks/stdout_color_sinks.h> #include <i...
#include "abstractmetadataloader.h" #include "dbutils.h" #include "dbconnectionsettings.h" #include "metadatatable.h" #include "audiometadata.h" #include <QFileInfo> #include <QDirIterator> #include <QModelIndex> #include <QTime> #include <QSqlDatabase> #include <QSqlResult> #include <QSqlRecord> #include <QSqlField> ...
// Image Processing and Computer Vision // Assignment 03: Gesture Recognition // <NAME> - <NAME> - <NAME> #include <opencv2/objdetect/objdetect.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> #include <stdio.h> using namespace std; using namespace cv; void myNo...
/* * Copyright (c) 2008 <NAME> <<EMAIL>> * * 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 li...
#include <array> #include <functional> #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" #include <cstdio> #if defined(IMGUI_IMPL_OPENGL_ES2) #include <GLES2/gl2.h> // About Desktop OpenGL function loaders: // Modern desktop OpenGL doesn't have a standard portable header file to load OpenGL function poin...
#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <iostream> #include <cstring> #include "framework.h" #include "benchmark.h" #define IMAGE_DIV 2 typedef struct{ cv::Rect roi; int contour_idx = -1; }mask_object; using namespace cv; int co...
/* * Copyright (C) 2019, unclearness * All rights reserved. */ #include <stdio.h> #include <fstream> #include <iostream> #include <vector> #include "currender/rasterizer.h" #include "currender/raytracer.h" #include "ugu/util.h" // #define USE_RASTERIZER using currender::Camera; using currender::Depth2Gray; using...
/* * Copyright (c) 2020, EDEL LLC <http://www.edelsys.com> * All Rights Reserved * * Licensed under the MIT License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Permission is hereby granted, free of ch...
//(c) 2016 by Authors //This file is a part of ABruijn program. //Released under the BSD license (see LICENSE file) #include <limits> #include <algorithm> #include <iomanip> #include <stack> #include "../common/config.h" #include "../common/logger.h" #include "../common/parallel.h" #include "extender.h" Extender::E...
#include <stdexcept> #include <iostream> #include <fstream> #include <cstdlib> #include <set> #include "TGClient.h" #include "TGHtml.h" #include "TGButton.h" #include "TGMenu.h" #include "TGLabel.h" #include "TGTextEntry.h" #include "TPluginManager.h" #include "TUrl.h" #include "TSocket.h" #include "TSystem.h" #include...
#include "ImageWarper.h" ImageWarper::ImageWarper() : warper(570) { } ImageWarper::ImageWarper(float warper_scale, bool use_android) : warper(warper_scale) { Mat_<float> cameraParameters(3, 3); Mat_<float> distCoeffs(1, 5); //Logitech C920 calibration from video if (!use_android){ //cameraParameters(0, 0) = 6....
#include "GraphicsSystem.hpp" #include "GraphicsResourceManager.hpp" #include "Freight/FileIO.hpp" #include "Physics/PhysicsEvents.hpp" GraphicsSystem::GraphicsSystem() { } GraphicsSystem::~GraphicsSystem() { } void GraphicsSystem::start(fr::EventManager &em) { addOnWindowResizeEvent(em); addOnLoadEn...
#include "cloth.h" #include "../adjacency.h" #include "../timer.h" #include <iostream> #include <chrono> #include <memory> #include <unsupported/Eigen/SparseExtra> #include <igl/signed_distance.h> #include <igl/opengl/glfw/Viewer.h> #include <igl/opengl/glfw/imgui/ImGuiMenu.h> #include <igl/opengl/glfw/imgui/ImGuiHe...
#include <cassert> #include <cstdint> #include <cstdio> #include <cstring> #include <string> #include <unordered_map> #include <vector> #include <errno.h> #include <linux/perf_event.h> #include <sys/mman.h> #include <sys/ioctl.h> #include <sys/syscall.h> #include <sys/time.h> #include <unistd.h> static inline uint64_t...
/* Copyright (c) 2015, Google Inc. * * 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 copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS...
#include "buf_pool.h" #include <assert.h> //单例对象 buf_pool * buf_pool::_instance = NULL; //用于保证创建单例的init方法只执行一次的锁 pthread_once_t buf_pool::_once = PTHREAD_ONCE_INIT; //用户保护内存池链表修改的互斥锁 pthread_mutex_t buf_pool::_mutex = PTHREAD_MUTEX_INITIALIZER; //构造函数 主要是预先开辟一定量的空间 //这里buf_pool是一个hash,每个key都是不同空间容量 //对应的value是一个...
/* Copyright (c) 2010, <NAME> (bgld) 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 foll...
#include "TextKeys.hpp" using namespace std; TextKeys::TextKeys() { } TextKeys::~TextKeys() { } const string TextKeys::SW_TITLE = "SW_TITLE"; const string TextKeys::SW_TITLE_POEM = "SW_TITLE_POEM"; const string TextKeys::COPYRIGHT_NOTICE = "COPYRIGHT_NOTICE"; const string TextKeys::SW_TITLE_NEW_GAME = "SW_TITLE_...