text
stringlengths
3.08k
12.5k
/* UPCxx_DepSpawn: UPC++ Data Dependent Spawn library Copyright (C) 2021-2022 <NAME>. Universidade da Coruna Distributed under the MIT License. (See accompanying file LICENSE) */ /// \file bench_ping_pong.cpp /// \brief Benchmark ping pong pattern for different problem sizes /// \author <NAME> <basilio....
/* 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 a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to i...
#include <iostream> #include <iomanip> #include <ctime> #include "../src/kdtree.hpp" #include "state_sampler.hpp" template <typename _State> struct Node { _State key_; Node(const _State& key) : key_(key) { } }; struct GetKey { template <typename _State> constexpr const _State& operato...
#include "profiler.h" #include <algorithm> #include <atomic> #include <cstring> #include <mutex> #include <sstream> #include <stdio.h> #include <vector> #include <thread> // Compute the timespec duration between \p i_start and \p i_stop. static timespec _ComputeDuration(const timespec& i_start, ...
// Copyright (c) 2019-2021, Lawrence Livermore National Security, LLC and // other Serac Project Developers. See the top-level LICENSE file for // details. // // SPDX-License-Identifier: (BSD-3-Clause) #include "serac/physics/utilities/functional/detail/metaprogramming.hpp" #include "serac/physics/utilities/functional...
#include "graphemesplitter.hpp" #include <fstream> #include <iostream> #include <string> using namespace graphemesplitter; using namespace std; std::vector<std::string> split_graphemes(const char *str, size_t length) { std::vector<std::string> result; size_t pos = 0; while(pos < length) { size_t next_pos = next_...
// Program Entry #include <iostream> #include <sstream> #include <utility> #include <fstream> #include <signal.h> // Handle Ctrl-C #include <time.h> #include <unistd.h> #include <wiringPi.h> // GPIO #include <mosquittopp.h> #include "include/config.h" #include "res/strings.h" #include "res/integers.h"...
#include <string> #include <boost/timer/timer.hpp> #include <chrono> #include <thread> #include "posix_serial.c" #include "BoostClientCross.h" #include <boost/program_options.hpp> namespace po = boost::program_options; #define timer timer_class #include <boost/progress.hpp> #undef timer int robotMoving(BoostClientC...
#pragma once #include "build_info.hpp" #include "elements.hpp" #ifdef ASGARD_USE_MPI #include "mpi.h" #endif #include <map> #include <vector> // simple struct for representing a range within the element grid struct grid_limits { grid_limits(int const start, int const stop) : start(start), stop(stop){}; grid_limit...
#include "ctDefs.h" #include "ctLog.h" #include "ctApp.h" #include "ctInput.h" #include "ctRender.h" #include "ctInputCombo.h" #include "ctPerfTimer.h" #include "ctEntities.h" #include "Player.h" #include "InputEvent.h" #include "Combo.h" //#include "Brofiler\Brofiler.h" ctInputCombo::ctInputCombo() : ctModule() { ...
#include "Animation.h" #include "Printer.h" #include "SquareBlock.h" #include "Utilities.hpp" #include <algorithm> static const uint8_t TEMPLATE_COLS = 23; static const uint8_t TEMPLATE_ROWS = 6; static std::thread ANIMATION_THREAD; Animation::Animation(const Coordonates2D & position) : mPosition(position) ,...
#include <iostream> #include <string> #include "learn\learn.h" #include"include/ds.h" #include <chrono> #include <list> #define log(x) std::cout<<x; int main() { //srand((unsigned int)time(NULL)); learn::List<int> test; for (size_t i = 0; i < 10; i++) { test.insert(rand() % 101); } test.display(); size_t var ...
/* <stig/import.cc> Stig import utility. Copyright 2010-2014 Tagged 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 Un...
//======================================================================= // Copyright 1997, 1998, 1999, 2000 University of Notre Dame. // Authors: <NAME>, <NAME>, <NAME> // // This file is part of the Boost Graph Library // // You should have received a copy of the License Agreement for the // Boost Graph Libra...
#include <iostream> #include <sstream> #include <optional> #include "llvm/IR/LegacyPassManager.h" #include "llvm/Support/Host.h" #include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetOptions.h" #include "llvm/Support/FileSyste...
// This is an example of a plugin implemented in C++ // // It lacks certain features of the Rust library, but should be // detailed enough to describe every typical plugin usage. #include <stdio.h> #include <string.h> #include "bindings.h" #include <vector> #include <unordered_map> // Data of the main features key va...
#include "RFile.h" bool RFile::Corrupt() const { return _Corrupt; } string RFile::FileName() const { return tag->FileName();} RenamerTag RFile::Tag() const { RenamerTag ret = *tag; return ret; } RFile::RFile(){ isDuplicate = false; isOriginal = false; DuplicateCount = 0; _Cor...
/** * Copyright (c) <NAME> * All rights reserved. * * MIT License * * 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 ...
#include <BlackBox/Renderer/FrameBufferObject.hpp> #include <BlackBox/Renderer/OpenGL/Debug.hpp> #include <iostream> #include <cassert> #include <algorithm> using namespace std; FrameBufferObject::FrameBufferObject(BufferType type, int width, int height, int nColors) : type(type), id(-1), rbo(-1), viewPort(...
#include "_puzzle_mxn_algo.h" //#define DEBUG #ifdef DEBUG #include <stdlib.h> #include <stdio.h> #endif CPuzzleMxN g_Cpuzzle; //1 void PGInit( void *g_c ) { g_c = &g_Cpuzzle; } //2 // Return -1 is no answer, n is answer and total move paths number int PGGetAnswer( unsigned char pSrcData[][MAX_PUZZLE_SIZE_W], ...
#include "explorer_camera_controller.h" using namespace explorer_camera_controller; CameraController::CameraController() {} CameraController::~CameraController() {} bool CameraController::init(hardware_interface::PositionJointInterface *joint_handle_, ros::NodeHandle &root_nh, ...
#include "parseSymbols.h" #include <libutils/rasserts.h> struct image_position { cv::Mat image; cv::Point position; image_position(cv::Mat img, cv::Point pos) : image(img), position(pos) { } }; std::vector<cv::Mat> splitSymbols(cv::Mat img) { std::vector<cv::Mat> symbols; // TODO 101: чт...
/* * Dht11.cpp * * Version 0.6 * * DHT11 Temperature and humidity sensor library for eBOX. * * See http://playground.arduino.cc/main/DHT11Lib * * License: GPL v3 (http://www.gnu.org/licenses/gpl.html) * Datasheet: http://www.micro4you.com/files/sensor/DHT11.pdf * * Modification History: * - <NAME> ...
//======================================================================= // Copyright 2001 University of Notre Dame. // Authors: <NAME>, <NAME>, <NAME> // // 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 "../include/exhaustive_knn.h" #include <stdio.h> #include <cstdlib> #include <iostream> #include <vector> #include <queue> using namespace std; template <typename NumCDataType> ExhaustiveKnn<NumCDataType>::ExhaustiveKnn(int numOfNeighbors){ this->numOfNeighbors = numOfNeighbors; } template <typename N...
#include "SKolejka_prio.hh" template<typename TYP> Kolejka_Priorytetowa<TYP>::Kolejka_Priorytetowa() { Glowa = new Element<TYP>; // Dodanie węzła ropoczynającego kolejkę Ogon = new Element<TYP>; // Dodanie węzła kończonceko kolejkę Glowa->setNastepny(Ogon); // Ustawianie wskaźnika na koniec kolejki Ogon->s...
#include "ocproxy.h" #include "ocval.h" #include "ocstreamingpool.h" #include "ocpermutations.h" #include "octhread.h" #include "sharedmem.h" #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h> #include <sys/wait.h> #include <unistd.h> #if defined(OC_FORCE_NAMESPACE) using namespace OC; #endif #...
// Copyright 2018 <NAME>. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Pinout describes how relays are connected to the up board // The numbers represent the (linux) gpio pin #include <time.h> #include <stdio.h> #include <stdlib.h> #i...
// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and <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 ...
#include <iostream> #include <fstream> #include <stdio.h> #include <math.h> #include <vector> #include <string> #include <tuple> #include <limits> #include <algorithm> #include <iomanip> #include <dirent.h> #include <sys/stat.h> #include "mail.h" #include "matrix.h" typedef std::tuple<std::string,double,double> Resu...
// Busylight - A web accessible busylight // (c) 2021 <NAME> <<EMAIL>> // This code is licensed under MIT license (see LICENSE for details) #include <config.h> #include <Arduino.h> #include <ESP8266WiFi.h> #include <statuses.h> WiFiClient wifi; WiFiClientSecure wifi_secure; char current_state[20]; #ifdef ENABLE_WEBS...
#include "usm.h" #include "eos/eos.h" #include <iomanip> real rate_PP(real density, real temperature, real X_H) { real t6 = temperature / 1.0e6; real e_pp = 2.38e6 * density * pow(X_H, 2.0) * pow(t6, -2.0/3.0) * exp(-33.80/pow(t6,1.0/3.0)); return e_pp; } real rate_CNO(real density, real temperature, real X_H, ...
// Main client program // Invokes various apps. #include "diskcache.hpp" #include "fs123/acfd.hpp" #include "fs123/sharedkeydir.hpp" #include "fs123/content_codec.hpp" #include <iostream> #include <core123/strutils.hpp> #include <core123/pathutils.hpp> #include <core123/diag.hpp> #include <core123/sew.hpp> #include <c...
////////////////////////////////////////////////////////////////////// // LineSearch.ipp // // This file contains an implementation of a safeguarded // backtracking line search algorithm for cubic polynomial // interpolation. ////////////////////////////////////////////////////////////////////// template<class Real> L...
#include "misc.h" #include <boost/foreach.hpp> void MyObserver::view(const ElementVoid *elem, const StateBase *state) { /* bool is_bpm = (std::string(elem->type_name()) == std::string("bpm")); std::cout << "Observed element: " << elem->index << " | " << elem->name << " | " << el...
/********************************************************************* Author: <NAME> <<EMAIL>> pReal -- Copyright (C) 2014 - 2014, <NAME> pReal is free software: you can redistribute it and/or modify it under the terms of the MIT License. pReal is distributed in the hope that it will be useful, but WITHOUT ANY WARR...
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 <NAME> * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this dis...
/*************************************************************************/ /* gdproceuler.h */ /*************************************************************************/ #include "src/primitives/gdproceuler.h" void GDProcEuler::_bind_methods() { ClassDB::bin...
auto SH2::serialize(serializer& s) -> void { s(R); s(PC); s(PR); s(GBR); s(VBR); s(MACH); s(MACL); s(CCR); s(SR.T); s(SR.S); s(SR.I); s(SR.Q); s(SR.M); s(PPC); s(PPM); s(ET); s(ID); s(exceptions); s(cache); s(intc); s(dmac); s(sci); s(wdt); s(ubc); s(frt); s(bsc); ...
/** * \file HostSim.cpp * * \author <NAME> * * \brief A super class of MultiThreadedSim and SingleThreadedSim classes. */ #include "HostSim.h" /** * Allocate all matixes that are used for updating the network. * @param[in] psi Pointer to the simulation information. * @post All data structur...
#include <string> #include <iostream> #include "Logger.h" #include "Harness.h" #include "Renderer.h" // Static initializations int Renderer::free_buf = -1; int Renderer::free_bindpoint = -1; Renderer::Renderer(GLuint &VAO, GLuint *buf) : VAO(VAO), buf(buf) { // Buffers you want to pre-setup enable...
#include <stdio.h> #include "spikehw.h" #ifdef REGISTER_SPIKE_DEVICES #include <riscv/decode.h> #include <riscv/devices.h> #include <map> #include <vector> #include <functional> #endif static SpikeHw *spikeHw; #ifdef REGISTER_SPIKE_DEVICES // spike stubs std::map<reg_t, std::function<abstract_device_t*()>>& devices...
#include <iostream> #include <cstdio> #include <cstring> #include <cassert> #include <cctype> using namespace std; typedef long long lint; #define ni (next_num<int>()) #define nl (next_num<lint>()) template<class T>inline T next_num(){ T i=0;char c; while(!isdigit(c=getchar())); while(i=i*10-'0'+c,isdigit(c=getchar(...
/* * 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 * distribut...
// YellowLISP (c) 2020 <NAME> (MIT license) #include "Yellow.h" #include "Interpreter.h" #include "Coverage.h" #include "Console.h" #include "CommandLine.h" void PrintTitleASCII(Console* console) { const char* titleASCII = R"TITLE( __ __ ____ __ _________ ____ _______ \ \/ /_...
// Copyright (C) 2007 Id Software, Inc. // #include "../precompiled.h" #pragma hdrstop #if defined( _DEBUG ) && !defined( ID_REDIRECT_NEWDELETE ) #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif #include "WaterEffects.h" #include "Wakes.h" sdWaterEffects::sdWaterEffec...
#include "SimRadio.hpp" #include <protobuf/grSim_Commands.pb.h> #include <protobuf/grSim_Packet.pb.h> #include <Geometry2d/Util.hpp> #include <Network.hpp> #include <Robot.hpp> #include <Utils.hpp> #include <stdexcept> #include <iostream> #include "ShittyPacket.hpp" #include "firmware-common/robot2015/cpu/status.h" ...
#include "CommonFunction.h" // convert int to string string itos( int i ){ string result; stringstream buf; buf<<i; buf>>result; buf.clear(); return result; } void Split( string line, string label, vector<string> *column ){ column->clear(); char * cstr, *p; cstr = new char [line.length()+1]; strcpy (cstr, ...
/** * CLIENT SIDE * Projet Reseau * @teacher <NAME> <<EMAIL>> <https://pablo.rauzy.name/teaching.html#rmpp> * * @autor <NAME> <<EMAIL>> * @collegues: <NAME> * Nourdine --- * * 21/04/2019 */ #include "eventshandler.hpp" /* * Constructeur */ EventHandler::EventHandl...
/* ------------------------------------------------ * * The MIT License (MIT) * Copyright (c) 2020 <EMAIL> * ------------------------------------------------ */ #include "util_trt.h" #include "trt_classification.h" #define UFF_MODEL_PATH "./models/mobilenet_v1_1.0_224.uff" #define PLAN_MODEL_PATH "./model...
/** * Copyright (c) 2022 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, ...
#include "config.h" #include "iotests.h" #include "internal.h" #include <map> class ErrmapUnitTest : public MockUnitTest { protected: virtual void createErrmapConnection(HandleWrap& hw, lcb_t& instance) { MockEnvironment::getInstance()->createConnection(hw, instance); ASSERT_EQ(LCB_SUCCESS, lcb_cnt...
// Copyright (c) 2018 <NAME> // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #ifdef _MSC_VER #pragma warning(disable: 4244) #endif #include <pch.h> #include <fbs_helpers.h> #include ...
#include <fstream> #include <array> #include <random> #include <mutex> #include <iostream> #include <map> #include <memory> #include <mpi.h> #include "tasktorrent/tasktorrent.hpp" #include "../common.hpp" /** * n_rows rows of tasks over n_cols columns * with n_edges deps between [i,j] and [i+k,j+1] for 0 <= k < n_e...
#include <string> #include <GL/glew.h> #include <SDL2/SDL.h> #include <SDL2/SDL_opengl.h> #include <glm/gtc/matrix_transform.hpp> #include <oglwrap/oglwrap.h> #include <oglwrap/shapes/cube_shape.h> SDL_Window* window = NULL; SDL_GLContext context = NULL; const int SCREEN_WIDTH = 600; const int SCREEN_HEIGHT = 600; bo...
// task.cpp,v 1.5 1999/09/22 03:13:49 jcej Exp #include "task.h" #include "block.h" #include "work.h" /* Construct the Task with zero or more subtasks. If subtasks are requested, we assign our next_ pointer to the first of those and let it worry about any remaining subtasks. */ Task::Task (int...
#include "mainwindow.h" #include "./ui_mainwindow.h" #include "../SNMP/TrapListener.h" #include <thread> #include <string> #include "../Utility/IPRangeCalculator.h" #include <vector> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { // stets up UI ui->setupUi(this)...
#include "Sorts.h" template <class RandomAccessIterator, class Compare> void insertionSort(RandomAccessIterator first, RandomAccessIterator last, Compare comp, RandomAccessIterator start) { for (RandomAccessIterator i = start; i < last; ++i) { typename std::iterator_traits<RandomAccessIterator>::val...
// // ruvi base // // includes #include "memory.hh" #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #define NOMINMAX #include <string> #include <string_view> #include <windows.h> #include <winternl.h> #endif struct dlinfo_t { std::size_t size = 0; std::uintptr_t address = 0; #ifndef _WIN32 const char *library = nu...
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved // CIM_COMObjectAccessSetting.cpp // ///////////////////////////////////////////////// #include "precomp.h" #include "Win32_ImplementedCategory.h" #include <comcat.h> Win32_ImplementedCategory MyWin32_ImplementedCategory ( W...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ //ENVIRONMENT AND MAXIMILIAN ofSetFrameRate(60); ofSetVerticalSync(true); ofEnableAlphaBlending(); ofEnableSmoothing(); ofBackground(0,0,0); sampleRate = 44100; /* Audio sampling r...
#include <algorithm> #include <chrono> #include <iostream> #include <queue> #include <set> #include <unordered_map> #define ROUNDS 50000 using namespace std; typedef priority_queue<pair<double, int>> queue_type; typedef set<pair<double, int>> set_type; class timer { typedef std::chrono::high_resolution_clock cl...
/******************************************************************************* * * (C) COPYRIGHT 2000, MICROSOFT CORP. * * TITLE: CCamMicro.cpp * * VERSION: 1.0 * * DATE: Dec 13, 2000 * * DESCRIPTION: * Implementation of a simple class that wraps a camera microdriver DLL. * This ...
/* * Chapter 2: Linked Lists * Write code to partition a linked list around a value x, such that all * nodes less than x come before all nodes greater than or equal to x. * If x is contained within the list, the values of x only need to be after * the elements less than x. The partition element can appear anywher...
//===- CodeMetrics.cpp - Code cost measurements ---------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/************************************************************************* > File Name: EffiEVD.cpp > Author: ma6174 > Mail: <EMAIL> > Created Time: Sun 22 Mar 2015 02:37:07 PM CST ************************************************************************/ #include "SimMatEVD.h" void SimMatEVD::run(int...
#include "math.h" #include "../tools.h" #include "renderer.h" #include "../eventtypes.h" using namespace Engine; RendererAndroid::RendererAndroid( ANativeWindow *setWindow, const unsigned int setScreenWidth, const unsigned int setScreenHeight ) :Renderer( setScreenWidth, setScreenHeight ), display( EGL_NO_DISPLAY )...
/******************************************************************************* * Copyright 2017-2018 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
/* Example application of ESP_8_BIT color composite video generator library on ESP32. Connect GPIO25 to signal line, usually the center of composite video plug. Plays an animated GIF using the AnimatedGIF library by <NAME> [bitbank2] https://github.com/bitbank2/AnimatedGIF Lightly modified from AnimatedGIF library's...
#include "battery.hpp" #include <gtk-utils.hpp> #include <iostream> #include <algorithm> #define UPOWER_NAME "org.freedesktop.UPower" #define DISPLAY_DEVICE "/org/freedesktop/UPower/devices/DisplayDevice" #define ICON "IconName" #define TYPE "Type" #define STATE "State" #define PERCENTAGE...
//// DspMetric.CPP - Display font metrics // // #include "precomp.hxx" #include "global.h" void AnnotateHeight( Graphics &g, Color c, Font &f, REAL x, REAL y1, REAL y2, WCHAR *id ) { SolidBrush brush(c); Pen pen(&brush, ...
#include <iostream> #include "limex_wrapper.h" #include "cam_residual.h" using namespace std; using namespace Camflow; using namespace Gadgets; extern "C" { typedef void (*ResidFcn) (int* n, int* nz, doublereal* y, doublereal* f, doublereal* b, int* ir, int* ic, int* FcnInfo ); typed...
/* * Copyright (c) 2020-2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
// // main.cpp // Main file for reference implementation of the TriplClust algorithm. // // Author: <NAME>, <NAME>, <NAME> // Date: 2019-04-02 // License: see ../LICENSE // #include <cmath> #include <fstream> #include <iostream> #include <stdexcept> #include <vector> #include "cluster.h" #include "dnn.h" #inc...
#include "example_layer.h" #include<imgui/imgui.h> #include<glm/gtc/matrix_transform.hpp> #include<glm/gtc/type_ptr.hpp> Example_Layer::Example_Layer( void ) : camera_controller_( 1280.0f / 720.0f, true ), Layer( "Example" ) { vertex_array_ = Brain::Vertex_Array::create(); float verts[] ...
#include "amulet.h" struct t_face_component { int v; int t; int n; t_face_component() { v = 0; t = 0; n = 0; } }; typedef std::vector<t_face_component> t_face; char *skip_line(char *str) { while (*str != '\n' && *str != '\0') { str++; } if (*str == '\0...
/**************************************************************************** ** ** Copyright 2019 <EMAIL> ** ** Permission is hereby granted, free of charge, to any person obtaining ** a copy of this software and associated documentation files (the "Software"), ** to deal in the Software without restriction, including...
#include "utils.h" #include "soft_clustering.h" #include "hard_clustering.h" #include <type_traits> #include <unistd.h> #include <iostream> #include <omp.h> #include <fstream> #include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_oarchive.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/p...
#include "DataFormats/GeometryVector/interface/GlobalPoint.h" #include <cstdio> #include <iostream> #include <cmath> struct HFCellParameters { HFCellParameters(int f_eta, int f_depth, int f_phiFirst, int f_phiStep, int f_dPhi, ...
// Copyright (c) 2008 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/browser/extensions/user_script_master.h" #include <fstream> #include "base/file_path.h" #include "base/file_util.h" #include "base/...
/****************************************************************************/ /// @file AGBusLine.cpp /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @author <NAME> /// @date July 2010 /// @version $Id$ /// // Bus line of the city: contains all the buses of this line /*******...
/* FCE Ultra - NES/Famicom Emulator * * Copyright notice for this file: * Copyright (C) 2009 CaH4e3 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Licen...
#include<glad/glad.h> #include<iostream> #include<glfw/glfw3.h> #include<glm/glm.hpp> //#include<stb/stb_image.h> #include"Mesh.h" #include"Model.h" #include"Camera.h" #define STB_IMAGE_IMPLEMENTATION #include"stb_image.h" int createWindow(GLFWwindow*& window, int width, int height, std::string title="Car Game")...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim:set ts=2 sw=2 sts=2 et cindent: */ /* 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....
/* Copyright © 2014-2016 by The qTox Project Contributors This file is part of qTox, a Qt-based graphical interface for Tox. qTox is libre 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 versi...
#include <gtest/gtest.h> #include <util/kitti_utils.h> // from original KITTI devkit. #include "matrix.h" using namespace std; namespace devkit { // static parameter // float lengths[] = {5,10,50,100,150,200,250,300,350,400}; float lengths[] = {100, 200, 300, 400, 500, 600, 700, 800}; int32_t num_lengths = 8; str...
/* * Copyright 2007, <NAME> <<EMAIL>>. * All rights reserved. Distributed under the terms of the MIT License. */ #include "BoxTest.h" #include <stdio.h> #include <Box.h> #include <Button.h> #include <Message.h> #include "CheckBox.h" #include "GroupView.h" #include "RadioButton.h" #include "TestView.h" // messa...
#include <cstdint> #include <array> #include <stdexcept> #include <sys/mman.h> #include <cassert> #include <cstring> /* KerboString is a version of std::string that has a small memory footprint. * It also uses pool allocation. */ /* Max length on 16 inputs, 16 outputs: 1048576 bits -> 131072 bytes (17 bits) ...
#include "Tetris.h" Tetris::Tetris(const int h, const int w) :piece(new Tetromino), nextPiece(new Tetromino), screen(h,w) { initOccupied(); screen.Draw(Window::playWin, piece.get()->getOccupied(), piece.get()->getColor()); screen.Draw(Window::previewWin, nextPiece.get()->getPreview(), nextPie...
#include<cstdio> #include<algorithm> #include<cstdlib> #include<cstring> #include<utility> #include<complex> using namespace std; #define MS(m,z) memset(m,z,sizeof(m)) typedef unsigned U; typedef pair<int,int > P; typedef long long ll; void inp(); namespace EPS{ const double eps=1e-10; int dcmp(double x){ if(fabs(x)<...
/**************************************************************************** * * Copyright (c) 2008 by <NAME>, all rights reserved. * * Author: <NAME> * Contact: <EMAIL> * * This software is partly based on the following open source: * * - OpenCV * **********************************************************...
#include "Window.hpp" #include <iostream> #include <GL/glew.h> renderer::Window::Window(const char* title, Mode windowMode, GLFWmonitor* monitor) : _title(title), _input(std::make_shared<Input>(nullptr)) { setMode(windowMode, monitor); } void renderer::Window::destroy() { glfwDestroyWindow(_window); } bool rend...
#include <ros/ros.h> #include <iostream> #include <string> #include <lightweight_vicon_bridge/MocapMarkerArray.h> #include <visualization_msgs/Marker.h> #include <visualization_msgs/MarkerArray.h> #include <Client.h> visualization_msgs::Marker make_marker_viz(const std::string &tracker_frame_name, const ros::...
// jhcOcv3VSrc.cpp : reads videos using OpenCV infrastructure // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2018-2019 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file excep...
#include "EmbeddingBag.h" #include "csrc/autocast/autocast_mode.h" #include "csrc/jit/cpu/kernels/Embeddingbag.h" #include "csrc/quantization/AutoCast.hpp" #include "csrc/utils/rw_lock.h" #include <ATen/Parallel.h> #include <ATen/Tensor.h> #include <ATen/quantized/Quantizer.h> #include <c10/util/Exception.h> #include ...
// // Created by florian on 8/15/17. // #include "vehicle.h" vehicle::vehicle() {} vehicle::~vehicle() {} void vehicle::UpdatePosition(double car_x, double car_y, double car_s, double car_d, double car_yaw, double car_speed, double ref_vel, int car_lane) { curr_x = car_x; curr_y = car_y; curr_s = car_s;...
/* Copyright (c) 2020, Oracle and/or its affiliates. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certain software (including but n...
//******************************************************** // Syzygy is licensed under the BSD license v2 // see the file SZG_CREDITS for details //******************************************************** #include "arPrecompiled.h" #include "arRay.h" #include "arGraphicsHeader.h" // arFrustumPlanes computations lift...
#include <stingraykit/collection/ByteData.h> #include <stingraykit/io/AsyncByteStream.h> #include <stingraykit/io/MemoryByteStream.h> #include <stingraykit/log/Logger.h> #include <stingraykit/Random.h> #include <gtest/gtest.h> using namespace stingray; namespace { template < typename ContainerType_ > class Delaye...
#include <unistd.h> // chdir, getcwd, unlink, access, getpid, gethostname #include <dirent.h> // opendir #include <sys/stat.h> // mkdir, stat #include <cerrno> #include <cstdio> // remove #include <cstdlib> // getenv #include <cstring> // strcmp #include <string> #include <fstream> #include <vector> #include <iostrea...