text
stringlengths
3.08k
22k
#include <opencv2/opencv.hpp> #include <vector> #include <3D/clahe3d.hpp> #include <iostream> #include <numeric> using namespace cv; typedef Size3i int3; static inline int3 make_int3(int x, int y, int z) { return { x, y, z }; } class CLAHE3D_Impl : public CLAHE3D { public: CLAHE3D_Impl() = default; CLAHE3D...
#include <stdint.h> #include "spi-st7272a.h" #include "32blit.hpp" #include "display.hpp" extern char __ltdc_start, __ltdc_end; extern char __fb_start, __fb_end; void LTDC_IRQHandler() { // check that interrupt triggered was line end event if(LTDC->ISR & LTDC_ISR_LIF) { // disable line int...
/* * Copyright (C) 2018 ETH Zurich and University of Bologna * * 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 "sgx_report.h" #include "sgx_dcap_ql_wrapper.h" #include "sgx_pce.h" #include "sgx_error.h" #include "sgx_quote_3.h" #include "sgx_ql_quote.h" #include "sgx_dcap_quoteverify.h" #include "sgx_utils.h" #include "sgx_urts.h" #include "sgx_tcrypto.h" #include <sgx_ecp_types.h> #include "httplib.h" #include "Json....
/* * \brief Manager of all VM requested console functionality * \author <NAME> * \author <NAME> * \author <NAME> * \date 2012-07-31 */ /* * Copyright (C) 2011-2017 Genode Labs GmbH * Copyright (C) 2012 Intel Corporation * * This file is distributed under the terms of the GNU General Public License * vers...
#include "usart.h" extern RINGBUFFER ringBuf; UART_HandleTypeDef huart1; UART_HandleTypeDef huart3; DMA_HandleTypeDef hdma_usart3_rx; #define UART3_rxBuffer_size 20 uint8_t UART3_rxBuffer[UART3_rxBuffer_size]; uint8_t UART3_recv; #define UART1_rxBuffer_size 12 char UART1_rxBuffer[UART1_rxBuffer_size]; uint8_t UART1...
#include "ModelImporter.h" #include "Application.h" #include "ComponentTransform.h" #include "MeshImporter.h" #include "MaterialImporter.h" #include "ModuleImport.h" #include "ModuleObjectManager.h" #include "ModuleResources.h" #include "Brofiler/Brofiler.h" #include "Assimp/include/cimport.h" #include "Assimp/inclu...
/*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * obje...
/* * Copyright (c) 2013, The Linux Foundation. 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...
// // Copyright (c) 2012, <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 list of cond...
#include <iostream> #include <thread> #include <chrono> #include <fstream> #include <vector> #include <map> #include <thread> #include <chrono> #include <opencv2/opencv.hpp> #include <opencv2/highgui.hpp> #include <pcl/visualization/cloud_viewer.h> #include <pcl/features/normal_3d.h> #include <pcl/surface/gp3.h> #inclu...
#include "../include/ofApp.hpp" #include "../include/params.hpp" ofApp::ofApp(MAPFPlan* _P): P(_P) { flg_autoplay = true; flg_loop = true; flg_goal = true; flg_font = false; flg_focus = false; flg_logo_gen = false; line_mode = LINE_MODE::STRAIGHT; } ofApp::~ofApp() { delete P; } void ofApp::setup() ...
#pragma once #include <vector> #include <string> #include <unordered_map> #include <utility> #include <iostream> #include <cmath> #include "Eigen/Dense" #include <algorithm> #define PI 3.14159265358979323846f #define ODD_INTERIOR_WEIGHTS (Eigen::Vector2f(3.0f / 8.0f, 1.0f / 8.0f)) #define ODD_BOUNDARY_WEIGHTS (Eigen:...
#include "../utils/release_assert.h" #include "simpledb.h" #include "../utils/string_serialize.h" #include <stdio.h> extern Logging * lgn; SimpleDb::SimpleDb(const std::string & _name): name(_name),safe_writing(false) {max_file_size_bytes = 1<<30; }; void SimpleDb::Open(const std::string & _name){ this->name...
#include "CondFormats/SiStripObjects/interface/SiStripPedestals.h" #include "FWCore/Utilities/interface/Exception.h" #include <algorithm> bool SiStripPedestals::put(const uint32_t& DetId, InputVector& input) { // put in SiStripPedestals of DetId std::vector<unsigned char> Vo_CHAR; encode(input, Vo_CHAR); ...
/************************************************************************** * This file is property of and copyright by the ALICE HLT Project * * All rights reserved. * * * * Primary Autho...
/* * File: SimResStringPool.cpp * Author : angelToms * */ #include "SimResStringPool.h" #include "../../QupLog.h" #include "../../ByteOrder.h" #include "../../ResIncludes.h" #include "../../utils/String8.h" #include "../../utils/String16.h" #include "../ResTabHeader.h" SimResStringPool::SimResStringPool(u1* d...
/* * Original work Copyright (c) 2007 <NAME> http://www.box2d.org * Modified work Copyright (c) 2017 <NAME> https://github.com/louis-langholtz/Box2D * * 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...
//<NAME> //yuGiTest.cpp //test all methods for all objects #include "card.h" #include "monster.h" #include "player.h" using namespace std; void cardcpp() { Card *card1 = new Card(); Card *card2 = new Card("Test", "I am become test", 1337); cout << "Constructors" << endl; cout << "name: " << card1 ...
/* coding=utf-8 Copyright 2021 The OneFlow 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 ap...
// Copyright 2015 The Servo Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at ...
#include "RhoConf.h" #include "RhoFile.h" #include "RhoFilePath.h" #include "StringConverter.h" static const char* CONF_FILENAME = "apps/rhoconfig.txt"; static const char* CONF_CHANGES = ".changes"; static const char* CONF_TIMESTAMP = ".timestamp"; static const char* CONF_TIMESTAMP_PROP = "rho_conf_timestamp"; namespa...
// From acw_unstable branch #include <iostream> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <thread> #include <chrono> #include "SerialCan.hpp" #include "can_msgs/Frame.h" #include <geometry_msgs/Twist.h> #include <st...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> #include <random> #include <string> #include <vector> #include "helper_functions.h" #define EPS 1e-6 using s...
/*****************************************************************/ /** Microsoft LAN Manager **/ /** Copyright(c) Microsoft Corp., 1989-1990 **/ /*****************************************************************/ /* * Windows/Network Interface -- ...
/* * MIT License * * Copyright (c) 2018 <NAME>, <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, m...
/* @file serialise-double.cc * @brief functions to serialise and unserialise a double */ /* Copyright (C) 2006,2007,2008,2009 <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 wi...
/******************************************************************************* Copyright (c) 2005-2009 <NAME> 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...
#include <Python.h> #include "lexer.h" #include "parser.h" // The parser defines a token struct. Give it a shorter alias. typedef pytype::parser::token t; // pytypelex is generated in lexer.lex.cc, but because it uses semantic_type and // location, it must be declared here. int pytypelex(pytype::parser::semantic_typ...
#include "DataFormats/Common/interface/Handle.h" #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h" #include "FWCore/Framework/interface/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include <cstdio> #include <iostream> using namespace...
/** * wayland_client.cpp - Vitreous Engine [platform] * ===------------------------------------------------------------------=== * * Copyright (c) 2021 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain...
#include "Globals.h" #include "Application.h" #include "ModuleRenderer3D.h" #include "ModuleGUI.h" #include "WindowGame.h" #include "WindowHierarchy.h" #include "WindowEngineStats.h" #include "ModuleInput.h" #include "About.h" #include "ModuleFileSystem.h" ModuleGUI::ModuleGUI(Application* app, bool start_enabled) :...
/* LibreSolar MPPT charge controller firmware * Copyright (c) 2016-2018 <NAME> (www.libre.solar) * * 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/...
// Copyright (c) 2016-2018, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of con...
// Galaxa.cpp : Defines the entry point for the application. // #include "stdafx.h" //----------------------------------------------------------------------------- // Global variables //----------------------------------------------------------------------------- LPDIRECT3D8 g_pD3D = NULL; // Used t...
/* * Copyright 2018 The Polycube Authors * * 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 agree...
// QTM Connect For Unreal. Copyright 2018-2019 Qualisys // #include "QTMConnectLiveLinkSource.h" #include "ILiveLinkClient.h" #include "Windows/AllowWindowsPlatformTypes.h" #include "Windows/AllowWindowsPlatformAtomics.h" #include "RTProtocol.h" #include "Windows/HideWindowsPlatformAtomics.h" #include "Windows/HideWin...
// Author(s): <NAME> // Copyright: see the accompanying file COPYING or copy at // https://github.com/mCRL2org/mCRL2/blob/master/COPYING // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #include "lts_combin...
/* * board.cpp * * Last edited on: Sunday December 8th 2019 */ #include <iostream> #include <fstream> #include "board.h" Board::Board(int _height, int _width, int _amount, bool _player1, bool _player2) { height = _height; width = _width; amount = _amount; player1 = _player1; player2 = _playe...
#include "cube_dimension.h" #define MAX_NO_PLANES 5 float camera_position[3] = {0}; void cloud_cb (const sensor_msgs::PointCloud2ConstPtr& input) { std::cout << "PCL_VERSION: " << PCL_VERSION << std::endl; pcl::PointCloud<pcl::PointXYZ>::Ptr cloud(new pcl::PointCloud<pcl::PointXYZ>); pcl::PointCloud<pcl::...
// Copyright 2015 <NAME> <<EMAIL>> // // 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 t...
// // ELF object format helpers - x86:amd64 // // Copyright (C) 2004-2007 <NAME> // // 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,...
#include "render.hpp" #include <mutex> #include <ctime> // std::time, std::put_time, std::localtime #include <sstream> // std::ostringstream #include "features/visuals.hpp" #include "valve_sdk/csgostructs.hpp" #include "helpers/input.hpp" #include "menu.hpp" #include "options.hpp" #include "fonts/fonts.hpp" #include ...
//*********************************************************************************************** // //TremoloFx module for VCV Rack by <NAME> - AS - https://github.com/AScustomWorks/AS // //LFO code adapted from the Fundamentals plugins by <NAME> http://www.vcvrack.com //**********************************************...
/* Author(s): <NAME> and <NAME> Project: sweepc (population balance solver) Sourceforge: http://sourceforge.net/projects/mopssuite Copyright (C) 2008 <NAME>. File purpose: Implementation of the PAHInception class declared in the swp_PAHInception.h header file. Licence: This fil...
//////////////////////////////////////////////////////////////////////////////// // Copyright © 2018 <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, includin...
/* PROJECT: Medo * AUTHORS: <NAME>, Melbourne Australia * COPYRIGHT: Zen Yes Pty Ltd, 2019-2021 * DESCRIPTION: Effect / Move */ #include <cstdio> #include <cassert> #include <InterfaceKit.h> #include <interface/OptionPopUp.h> #include <translation/TranslationUtils.h> #include "Yarra/Render/Picture.h" #include...
#include <msp430.h> #include <stdint.h> #include <string.h> #include <gpio.h> #include <clocks.h> #include <wdt.h> #include <io.h> #include <timer.h> #include <nrf24.h> #include <flash.h> #include <adc.h> #ifdef __MSP430_HAS_USCI__ #include <usci_spi.h> #include <usci_uart.h> #else #include <usi_spi.h> #include <soft_...
#include<bits/stdc++.h> using namespace std; const int N = 2e5 + 9, D = 3; // N >= 2 * sqrt(n) const int mod = 1e9 + 7; using ll = long long; template <const int32_t MOD> struct modint { int32_t value; modint() = default; modint(int32_t value_) : value(value_) {} inline modint<MOD> operator + (mod...
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/extensions/api/networking_private/networking_private_crypto.h" #include <cert.h> #include <cryptohi.h> #include <keyhi.h> #includ...
/** @class */ /* -- heFFTe -- Univ. of Tennessee, Knoxville @date */ #include "test_fft3d.h" template<typename backend_tag, bool empty_input_boxes = false> void test_subcomm_cases(MPI_Comm const comm){ using location_tag = typename backend::buffer_traits<backend_tag>::location; using input_t...
/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ #include "../StroikaPreComp.h" #include "../Characters/Format.h" #include "../Execution/Logger.h" #include "../IO/FileSystem/FileInputStream.h" #include "../IO/FileSystem/FileOutputStream.h" #include "../IO/FileSystem/PathName.h" #include "...
/* ** ** $Filename: b3CameraColume.cpp $ ** $Release: Dortmund 2001 $ ** $Revision$ ** $Date$ ** $Author$ ** $Developer: <NAME> $ ** ** Blizzard III - Drawing the cameras view volume ** ** (C) Copyright 2001 <NAME> ** All Rights Reserved ** ** ** */ /***********************************************************...
#include "nau/geometry/meshPoseAnim.h" using namespace nau::geometry; MeshPoseAnim::MeshPoseAnim(): m_Length(0), m_Tracks() {} MeshPoseAnim::~MeshPoseAnim() { m_Tracks.clear(); } std::string MeshPoseAnim::getClassName() { return("MeshPoseAnim"); } void MeshPoseAnim::setLength(float aLength) { m_Length...
#include <grend/gameObject.hpp> #include <grend/utility.hpp> #include <math.h> using namespace grendx; gameObject::~gameObject() { std::cerr << "Freeing a " << idString() << std::endl; } // XXX: "key functions", needed to do dynamic_cast across .so boundries // Requires that the function be a "non-inline, non-...
#include <iostream> #include <ostream> #include <fstream> #include <algorithm> #include <vector> #include <map> #include <numeric> using namespace std; using grid_t = vector<vector<int>>; enum unit_t { WALL, FREE, ELF, GOBLIN }; const string unit_s = "#.EG"; struct point { public: int x; int y; int mand...
/* Copyright 2018 <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, sublicense, ...
/** * TermPong v1 * * File: coordinate.cpp * * Description: * A clone of the pong game using ncuses libay in C++ * * Author: * <NAME> (<EMAIL>) * * MIT License * * Copyright (c) 2021 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and as...
/* 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 <assert.h> #include <string.h> #include <stdlib.h> #include <string> #include <sstream> #include "native_client/src/debug_server/gdb_rs...
#include "Capture.h" /* * Copyright (c) 2019, NVIDIA 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: * * Redistributions of source code must retain the above copyright * no...
/* * Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt. */ #in...
#include "stdio.h" #include "fcntl.h" #include "memory.h" #include "stdlib.h" #include <unistd.h> #include "YangIni.h" #include "YangWinIni.h" #define SECTION_MAX_LEN 256 #define STRVALUE_MAX_LEN 256 #define LINE_CONTENT_MAX_LEN 256 #define FILEPATH_MAX 80 YangUtilFactory::YangUtilFactory() { } YangConfig* YangUtilFa...
#include "demoloop.h" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtx/rotate_vector.hpp> #include "math_helpers.h" #include "graphics/image.h" #include <array> using namespace std; using namespace demoloop; const uint32_t CYCLE_LENGTH = 10; const float radius = 5; // Icosahedron const float p = ( 1 + sqrt( ...
/* mbed Microcontroller Library * Copyright (c) 2020 ARM Limited * 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/li...
#if 0 #define TEST #endif // 1 #include <bits/stdc++.h> using namespace std; #if 1 // 61dd class CoolTimer { public: CoolTimer() : m_fn_name(nullptr) , m_fn_name_size(0) { } ~CoolTimer() { if (m_fn_name != nullptr) { delete[] m_fn_name; ...
// Copyright 2009-2020 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2020, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directory...
#include <math.h> #include <uWS/uWS.h> #include <iostream> #include <string> #include "json.hpp" #include "PID.h" #include <fstream> #include <iostream> // for convenience using nlohmann::json; using std::string; static int count_ = 0; static int iteration = 0; // For converting back and forth between radians and ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. #include "pch.h" #include "common.h" #include "SharedHelpers.h" #include "ColorConversion.h" Rgb::Rgb(double r, double g, double b) : r{ r }, g{ g }, b{ b }...
#include <vulkan/vulkan.h> #include "mo_device.h" #include "mo_example_utils.h" #include "mo_material.h" #include "mo_mesh.h" #include "mo_mesh_utils.h" #include "mo_node.h" #include "mo_pipeline.h" #include "mo_pipeline_utils.h" #include "mo_swapchain.h" #include <linalg.h> #include <experimental/filesystem> #inclu...
/* ** Copyright 2009-2013,2015, 2020-2021 Centreon ** ** 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...
/* MIT License Copyright (c) 2016-2017 <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 <Renderer.h> void Renderer::Framebuffer_Size_Callback(GLFWwindow* window, int width, int height) { glViewport(0, 0, width, height); } // TODO: Will be implemented void Renderer::Mouse_Callback(GLFWwindow* window, double xpos, double ypos) { } // TODO: Will be implemented void Renderer::Scroll_Callback(...
/*========================================================================== * * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved. * * File: wirecd.cpp * Content: * * History: * Date By Reason * ==== == ====== * 07/16/99 pnewson Created * 08/03/99 pnewson General cle...
/* Copyright 2013 Software Reliability Lab, ETH Zurich 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 applicabl...
/* * check_tcpbulkinsert.cpp * * Copyright 2010-2012 Yahoo! 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 requi...
/* Copyright (c) 2015-2019, <NAME> <<EMAIL>> 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 ALL W...
// RegDataItem.cpp: implementation of the CRegDataItem class. // ////////////////////////////////////////////////////////////////////// #include "RegDataItem.h" #include "RegFile.h" #include <tchar.h> ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////...
#include "dsp/digital.hpp" #include "util/math.hpp" #include "qwelk.hpp" #include "qwelk_common.h" #define GWIDTH 4 #define GHEIGHT 8 #define GSIZE (GWIDTH*GHEIGHT) #define GMID (GWIDTH/2+(GHEIGHT/2)*GWIDTH) #define LIGHT_SIZE 10 #define DIR_BIT_SIZE 8 namespace rack_plu...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * 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/. */ #include "OSPreferences.h" #includ...
#include "shell_manager.hh" #include "clock.hh" #include "context.hh" #include "buffer_utils.hh" #include "event_manager.hh" #include "file.hh" #include <cstring> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <stdlib.h> extern char **environ; namespace Kakoune { ShellManager::ShellManag...
/* * Copyright 2010-2015, Tarantool AUTHORS, please see AUTHORS file. * * Redistribution and use in source and iproto 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 lis...
#include <limits> #include <memory> #include <stdexcept> #include <unordered_map> #include <boost/filesystem.hpp> #include <Minigames-Services/Acores.hpp> #include <Minigames-Services/Bermudes.hpp> #include <Minigames-Services/Canaries.hpp> #include <Minigames-Services/ChatService.hpp> #include <Minigames-Services/Lobb...
/* MIT License Copyright (c) 2016 <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, d...
// TextReader.cpp // // MIMEReader class for reading in text/* MIME parts #include "stdafx.h" #include "resource.h" #include "rs.h" #include "Html2Text.h" #include "TextReader.h" #include "LineReader.h" #include "header.h" #include "mime.h" #include "uudecode.h" #include "hexbin.h" #include "pop.h" #include "fileutil...
#include "options.h" #include "file_name_manager.h" #include "message/line_parser.h" #include "message/iso_2022_jp_line_parser.h" #include "message/utf8_line_parser.h" #include "message/tiarra_iso_2022_jp_line_parser.h" #include "message/tiarra_line_parser.h" #include "message/madoka_iso_2022_jp_line_parser.h" #in...
#include <iostream> #include <string> #include <list> #include <thread> #include <couchbase/client/cluster.hxx> #include <couchbase/transactions.hxx> struct Player { int experience; int hitpoints; std::string json_type; int level; bool logged_in; std::string name; std::string uuid; }; voi...
#include <cstdlib> #include <cstdio> #define STB_RECT_PACK_IMPLEMENTATION #include "stb_rect_pack.h" #define STB_TRUETYPE_IMPLEMENTATION #include "stb_truetype.h" #define countof(a) (sizeof(a) / sizeof(a[0])) typedef struct TgaHeader { uint8_t idLength; uint8_t colorMapType; uint8_t imageType; uint16_t colo...
#include "SpikeAndDoubleSpikeCleaner.h" #include <cmath> namespace { std::pair<double,double> dCrack(double phi, double eta) { constexpr double oneOverCrystalSize=1.0/0.0175; constexpr double pi=M_PI; constexpr double twopi=2*pi; // the result below is from unrolling // the lazy-eval loop in PFC...
#include <algorithm> #include <fstream> #include <iostream> #include <map> #include <sstream> #include <string> #include <utility> #include <vector> using namespace std; const int DAY_TITLE_MAX_LENGTH = 10; const vector<string> DAYS = {"Saturday", "Sunday", "Monday", "Tuesday", ...
#include <nodge/BasicGraph.hh> #include "Algorithms.hh" /* TypeNodes */ /* Builder */ MetaSchema::Builder::Builder(Graph& model_graph, const string& name, unsigned id_val) : _model_graph(model_graph), _data_id_count(0), _node_id_count(0), _mem_id_count(0), _link_count(0) { model_spec tmp; tmp.name = name; tmp...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** Knuckle Joe ***************************************************************************/ #include "emu.h" #include "includes/kncljoe.h" /***********************************************...
#include <pangolin/pangolin.h> #include <SceneGraph/SceneGraph.h> #include <SceneGraph/SimCam.h> #include <functional> #include <Mvlpp/Mvl.h> #include "CVarHelpers.h" #include <cvars/CVar.h> using namespace std; namespace sg =SceneGraph; namespace pango =pangolin; /////////////////////////////////////////////////...
#include "LocalFreeList.h" #include "alloc.h" #include "free.h" #include "global.h" #include "util.h" #include <cassert> #include <cstring> using shared::FreeCode; template <typename Res, typename Arg> using NodeFor = Res (*)(header::Node *, Arg &); static bool node_in_range(const header::Node *const node, void *con...
//===- ExportQuartusTcl.cpp - Emit Quartus-flavored Tcl -------------------===// // // 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 <iostream> #include<climits> using namespace std; #include <stdio.h> int curt=0; int pred[20]; int max(int a[],int n) { int max=0; int x; for(int i=0;i<n;i++){ if(a[i]>max){ max=a[i]; x=i; } } return x; } #define SIZE 20 #define NUM 20 cl...
#include <numeric> #include <iostream> #include <fstream> #include <iomanip> #include <ml/ml.hpp> #include <database/database.hpp> // ---[ Used namespaces ]--- using namespace std; using namespace cv; // ---[ Namespace namespace machine { // ---[ Main traning function ]--- void ML::train( const Mat &data, con...
// Instructions: launch gazebo, and then run this file. An image of the the random forest created can be seen in the // paper "Real-Time Planning with Multi-Fidelity Models for Agile Flights in Unknown Environments [ICRA 2019] // If you want to visualize the markers in rviz, run first // rosrun tf static_transform_pub...
/* * Copyright (c) 2016-2016 <NAME> http://www.irlan.net * * 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, * inclu...
/////////////////////////////////////////////////////////////////// // Copyright <NAME> 2019. // // Distributed under the Boost Software License, // // Version 1.0. (See accompanying file LICENSE_1_0.txt // // or copy at http://www.boost.org/LICENSE_1_0.txt) ...
#include "renderer.h" #define GLEW_STATIC #include <GL/glew.h> #include <GLFW/glfw3.h> #include <glm\gtc\type_ptr.hpp> #include "window.h" #include "space.h" #include "texture.h" #include "shader.h" namespace { const GLenum COMPONENT_TYPE = GL_FLOAT; const auto SIZE_OF_COMPONENT = sizeof(float); const int POS...