text
stringlengths
3.08k
22k
#include "j1App.h" #include "j1Textures.h" #include "j1Input.h" #include "j1Render.h" #include "j1Enemy_Walking.h" #include "j1Collisions.h" #include "j1FadeToBlack.h" #include "j1Window.h" #include "j1Audio.h" #include <assert.h> #include <stdio.h> #include "p2Defs.h" #include "p2Log.h" #include "j1Map.h" #include "p2...
#define _CRT_SECURE_NO_WARNINGS #include "r_utils/r_time_utils.h" #include "r_utils/r_string_utils.h" #include "r_utils/r_exception.h" #include <string.h> #include <chrono> #include <sstream> #include <ctime> #include <iomanip> using namespace r_utils; using namespace std; using namespace std::chrono; s...
#include <iostream> #include <unistd.h> #include <opencv2/highgui/highgui.hpp> //for: VideoCapture #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/features2d.hpp> //for: getStructuringElement & findContours & cvtColorv using namespace std; using namespace cv; const int MAX_NUM_OBJECTS = 40; //max number of o...
#include "ofApp.h" using namespace cv; using namespace ofxCv; //-------------------------------------------------------------- void ofApp::setup() { settings.loadFile("settings.xml"); debug = (bool) settings.getValue("settings:debug", 1); useRpiCam = (bool) settings.getValue("settings:use_rpi_cam", 1); ...
//******************************************************************* // // LICENSE: LGPL see top level LICENSE.txt // // Author: // Description: Nitf support class // //******************************************************************** // $Id: ossimNitfDesInformation.cpp 23569 2015-10-05 19:32:00Z dburken $ #incl...
//- // ========================================================================== // Copyright 2015 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk // license agreement provided at the time of installation or download, // or which otherwise accompanies this softwa...
/* Copyright (c) 2020 <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, ...
#include "parameters.h" #include <vector> #include <stdio.h> #include <string.h> #include <getopt.h> #include "misc.h" #include <iostream> #include "parse_json.h" Parameters parameters; static struct ParameterDef { const char *name; PType datatype; const char *defval; char cmdline; } pdefs[]={ /* network *...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2009, <NAME>, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
// Copyright (C) 2010 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. // You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ...
/* * Train a controller by reverse-interpolating datapoints from a file on disk. * * Author: <NAME> * Web page: http://sites.google.com/site/jasonbunk * * Copyright (c) 2015 <NAME> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
#include "ComponentLabel.h" #include "ComponentTransform.h" #include "GameObject.h" #include "ReturnZ.h" #include "ResourceFont.h" #include "Application.h" #include "imgui/imgui_internal.h" #include "FileNode.h" #include "ResourceTexture.h" ComponentLabel::ComponentLabel(GameObject* attach, std::string text, float2 ...
#include "map.h" #include "animated_sprite.h" #include "graphics.h" #include "sprite.h" Map::Map(Graphics& graphics) { tile_sprites[Map::WATER] = std::shared_ptr<Sprite>(new AnimatedSprite(graphics, "map", 0, 0, 16, 16, 8)); tile_sprites[Map::OIL] = std::shared_ptr<Sprite>(new AnimatedSprite(graphics, "map", 0...
/*************************************************************************** qgmaptooltrimextendfeature.cpp - map tool to trim or extend feature --------------------- begin : October 2018 copyright : (C) 2018 by <NAME> email : <EMAIL> dot <EMAIL> at oslandi...
/* Copyright 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 in writing, software distr...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2019 Couchbase, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
#include <Switch/Switch> using namespace System; namespace Switch { namespace System { namespace Runtime { namespace Serialization { namespace Json { class JSonSerializer : public System::Runtime::Serialization::IFormatter { public: void Deserialize(const $<System::...
/** * Copyright (c) 2018, xehoth * 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 applicabl...
/* FILE: transformzeeman.cc -*-Mode: c++-*- * * Zeeman (applied field) energy, derived from Oxs_Energy class, * specified from a Tcl proc. This is a generalization of the * Oxs_ScriptUZeeman and Oxs_FixedZeeman classes. * */ #include <limits> #include <string> #include "oc.h" #include "nb.h" #include "...
/* * Copyright 1993-2007 NVIDIA Corporation. All rights reserved. * * NOTICE TO USER: * * This source code is subject to NVIDIA ownership rights under U.S. and * international Copyright laws. Users and possessors of this source code * are hereby granted a nonexclusive, royalty-free license to use this code * ...
#include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <sys/types.h> #include <dirent.h> #include <errno.h> #include <string> #include <iostream> #include <bits/stdc++.h> #include <stdio.h> #include <vector> #include <math.h> #include <opencv/cv.h> #include <opencv/highgui.h> #include <...
/*************************************************************************** * MACLookup.cc -- This relatively simple system handles looking up the * * vendor registered to a MAC address using the nmap-mac-prefixes * * database. * * ...
/* * Eye center detection algorithm by <NAME>. and <NAME>. * Implementation adapted from https://github.com/trishume/eyeLike */ #include "EyeCenterDetector.h" #include <opencv2/highgui/highgui.hpp> #include <iostream> #include <queue> #include <stdio.h> #include "Application.h" EyeCenterDetector::EyeCenterDetect...
#include "armordetector.h" bool ArmorBox::areaComparator(const ArmorBox &a, const ArmorBox &b) { return a.armor_rotated_rect.size.area() > b.armor_rotated_rect.size.area(); } //bool ArmorBox::ratioComparator(const ArmorBox &a, const ArmorBox &b) //{ // return fabs(a.armor_rect.size.aspectRatio()-1) < fabs(b.ar...
/** * @file main.cpp * * This module holds the main() function, which is the entrypoint * to the program. * * © 2018 by <NAME> */ #include "TimeKeeper.hpp" #include <Aws/Config.hpp> #include <Aws/SignApi.hpp> #include <chrono> #include <Http/Client.hpp> #include <Http/Request.hpp> #include <HttpNetworkTranspor...
/* * SoundBank.cpp * enigma * * Created by Rockford on 05/05/10. * Copyright 2010 Casual Games France. All rights reserved. * */ #include "KSysThread.h" #include "AutoCrit.h" #include "ThreadLoader.h" #include "Scene_Debug_Preload.h" #include "KPTK.h" #include "MyGame.h" #include "ESceneDirector.h" #inclu...
/* Mosh: the mobile shell Copyright 2012 <NAME> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Th...
// // $Id: StFgtSimpleClusterAlgo.cxx,v 1.25 2013/02/19 18:24:04 avossen Exp $ // $Log: StFgtSimpleClusterAlgo.cxx,v $ // Revision 1.25 2013/02/19 18:24:04 avossen // *** empty log message *** // // Revision 1.24 2012/03/08 17:43:40 avossen // added default cluster algo, made StFgtIClusterAlgo destructor =0 /...
/* * Copyright (C) 2006 <NAME> * Copyright (C) 2006 <NAME>, slax.org * * LICENSE follows the described one in lzma.txt. */ /* $Id: comp.cc,v 1.1.1.1 2007-11-22 06:05:47 steven Exp $ */ // extract some parts from lzma443/C/7zip/Compress/LZMA_Alone/LzmaAlone.cpp #include <stdio.h> #include <stdlib.h> #include <as...
#include <math.h> #include "player.h" #include "../main.h" #include "../../engine/engine.h" #include "../game/gameInput.h" #include "../../engine/graphics/graphics.h" #include "../../engine/common/log.h" #include "cameraController.h" #include "../game/ship.h" CPlayer::CPlayer() { gPlayer = this; l...
// The Computer Language Benchmarks Game // https://salsa.debian.org/benchmarksgame-team/benchmarksgame/ // // Contributed by <NAME>. // Modified slightly by <NAME>. // Converted from Java to C++ and added SSE support by <NAME>. // Converted from C++ to C by <NAME>. // Modified by <NAME>. // gcc/clang // times M1: 2...
// Generated by Haxe 3.4.7 #include <hxcpp.h> namespace hx { extern unsigned char __res_0[]; extern unsigned char __res_1[]; extern unsigned char __res_2[]; extern unsigned char __res_3[]; extern unsigned char __res_4[]; extern unsigned char __res_5[]; extern unsigned char __res_6[]; extern unsigned char __res_7[]; ex...
#include "ut70x.h" // <NAME> <<EMAIL>> #include <QThread> UT70X::UT70X(QObject* parent) : QSerialPort(parent) { } bool UT70X::checkData(unsigned char* d, int len) { qDebug("dump: %d\n", len); do { if (len == 1) break; if (len < 3) { qCritical("DE...
// Copyright (c) 2019 EPI-ONE Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "file_utils.h" #include "crc32.h" #include "spdlog/spdlog.h" #include "tinyformat.h" #include <filesystem> #include <regex> ...
/* MaBoSS (Markov Boolean Stochastic Simulator) Copyright (C) 2011-2018 Institut Curie, 26 rue d'Ulm, Paris, France MaBoSS is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either versi...
/* SPDX-License-Identifier: BSD-2-Clause */ /* * Copyright (C) 2020, Raspberry Pi (Trading) Ltd. * * net_output.cpp - send output over network. */ #include <arpa/inet.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include "net_output.hpp" NetOutput::NetOutput(VideoOptions const *options) : O...
#include "stdafx.h" #pragma hdrstop #include "Blender_Screen_SET.h" #define VER_2_oBlendCount 7 #define VER_4_oBlendCount 9 #define VER_5_oBlendCount 10 ////////////////////////////////////////////////////////////////////// // Construction/Destruction //////////////////////////////////////////////////////////////...
/* Copyright (C) 2018 <EMAIL> Overview: these code snippets are my practices of the book << Programming Pearls >>. Licence: MIT THE USER OF THIS CODE AGREES TO ASSUME ALL LIABILITY FOR THE USE OF THIS CODE. Any use of this code should display all the info above. */ /* COLUMN2 AHA! ALGORITHMS #problem1 ...
// This tool generates word embeddings from the Hellinger PCA. // // Copyright (c) 2015 Idiap Research Institute, http://www.idiap.ch/ // Written by <NAME> <<EMAIL>> // // This file is part of HPCA. // // HPCA is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public Licens...
// ImageGenerator.cpp: implementation of the ImageGenerator class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "ImageGenerator.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction //////////////////////////////...
#include "general.h" #include "folder.h" #include "utils.h" #include <mluisupp.h> #define CPP_FUNCTIONS #include <crtfree.h> // string displayed to represent missing data TCHAR g_szUnknownData[64]; int CompareVersion(LPCTSTR lpszVersion1, LPCTSTR lpszVersion2); ///////////////////////////////////////...
#include "common.h" const int TIMEOUT_IN_MS = 500; struct context { struct ibv_context * ctx; struct ibv_pd * pd; struct ibv_cq * cq; struct ibv_comp_channel *comp_channel; pthread_t cq_poller_thread; }; static struct context * s_ctx = NULL; static pre_conn_cb_fn s_on_pre...
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- * * $Id$ */ typedef scitbx::af::shared<int> shared_int; typedef scitbx::af::shared<double> shared_double; typedef scitbx::af::versa<bool, scitbx::af::flex_grid<> > shared_bool; /* column_parser cannot be const * * @param w Per-observat...
/*! @file * * @brief A low dispersion PRM planner. * * The idea of the LD-PRM is to capture the connectivity of the * configuration space with fewer samples, which reduces the * running time of the algorithm. Different to a simple PRM planner, * the samples generated by the LD-PRM must fufil an important cr...
/*============================================================================= Copyright (C) 2018 <NAME> <<EMAIL>> Copyright (C) 2018 yumetodo <<EMAIL>> Distributed under the Boost Software License, Version 1.0. (See https://www.boost.org/LICENSE_1_0.txt) ======================================================...
// Copyright (C) 2016 <NAME>, <NAME> and MIT CSAIL // Prophet // // This file is part of Prophet. // // Prophet is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at y...
#include "j1Render.h" #include "j1Textures.h" #include "j1App.h" #include "j1Collision.h" #include "j1Input.h" #include "p2Log.h" #include "j1Entity.h" j1Entity::j1Entity(EntityType type, pugi::xml_node config, fPoint position, p2SString id) { this->type = type; sprite_route = PATH(config.child("folder").child_valu...
/* * FPPalette.cpp * * FretPet X * Copyright © 2012 <NAME>. All rights reserved. * */ #include "TCarbonEvent.h" #include "FPPalette.h" #include "FPApplication.h" #include "FPPreferences.h" #include "FPDocWindow.h" FPPaletteList FPPalette::paletteList; //----------------------------------------------- // // ...
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * 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 "Character.h" #include "BVH.h" #include "DARTHelper.h" #include "Muscle.h" #include <tinyxml.h> using namespace dart; using namespace dart::dynamics; using namespace MASS; Character:: Character() :mSkeleton(nullptr),mBVH(nullptr),w_mTc(Eigen::Isometry3d::Identity()) { } void Character:: LoadSkeleton(const s...
/* * This file is part of the OpenKinect Project. http://www.openkinect.org * * Copyright (c) 2010 individual OpenKinect contributors. See the CONTRIB file * for details. * * This code is licensed to you under the terms of the Apache License, version * 2.0, or, at your option, the terms of the GNU General Public...
//---------------------------------- // (c) Reliable Software, 2006 //---------------------------------- #include "precompiled.h" #undef DBG_LOGGING #define DBG_LOGGING false #include "Model.h" #include "AltDiffer.h" #include "AttributeMerge.h" #include "PhysicalFile.h" #include "HistoricalFiles.h" #include "Feedbac...
/* Copyright (c) 2014, Intel Corporation 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 following disclaimer....
/* $Id$ */ /* * This file is part of OpenTTD. * OpenTTD 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. * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without...
// Copyright 2013-2014 [Author: <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 ...
#include "bodyParts.hpp" #include <boost/shared_ptr.hpp> #include <boost/make_shared.hpp> #include <set> #include <tuple> #include "creature.hpp" #include "world.hpp" #include "entity2DMap.hpp" #include "pheromoneMap.hpp" #include "obstacle.hpp" #include "point.hpp" #include "ant.hpp" // BodyPart bool BodyPart::i...
#include <ros/ros.h> #include <laser_geometry/laser_geometry.h> #include <sensor_msgs/LaserScan.h> #include <sensor_msgs/PointCloud.h> #include <pcl_ros/point_cloud.h> #include <pcl_conversions/pcl_conversions.h> #include <pcl/ModelCoefficients.h> #include <pcl/sample_consensus/method_types.h> #include <pcl/sample_con...
/* Copyright (C) 2006 Imperial College London and others. Please see the AUTHORS file in the main source directory for a full list of copyright holders. Dr <NAME> Applied Modelling and Computation Group Department of Earth Science and Engineering Imperial College London <EMAIL> This library is free software...
// CaboCha -- Yet Another Japanese Dependency Parser // // $Id: chunk_learner.cpp 50 2009-05-03 08:25:36Z taku-ku $; // // Copyright(C) 2001-2008 <NAME> <<EMAIL>> #include <crfpp.h> #include <fstream> #include <iostream> #include <iterator> #include <string> #include <vector> #include "cabocha.h" #include "chunker.h"...
#include "game_scene.hpp" Game_scene::Game_scene(SDL_Renderer* r, Scene* win_scene, Scene* lose_scene) { win = win_scene; lose = lose_scene; renderer = r; jack_rect = { 10,10, w, h }; g_logic = new Game(1); jack_sur = IMG_Load("resources/jack_stand.png"); jack_tex = SDL_CreateTextureFromSurface(renderer, jack_s...
#include <ros/ros.h> #include <tf/transform_listener.h> #include <visualization_msgs/Marker.h> #include <visualization_msgs/MarkerArray.h> #include <move_base_msgs/MoveBaseAction.h> #include <actionlib/client/simple_action_client.h> #include <sensor_msgs/JointState.h> #include <fremengrid/Entropy.h> #include <fremengr...
#define _CRT_SECURE_NO_WARNINGS #include <stdlib.h> #include <stdio.h> #include <string.h> #include "Logger.h" #include "Parser.h" #define MAX 10 #define INF 999 #define NAOMEMBRO 0 #define MEMBRO 1 #define NNOS 50 #define MAX_NOME 30 struct tnode { int no; int peso; char nome[MAX_NOME]; s...
#include "sh_calculator.h" #include <iomanip> #include <fstream> #include <numeric> #include <cstring> #include "core/math/spherical_harmonics.h" #include "core/profiler.h" #include "core/task_utils.h" SHCalculator::SHCalculator() { SSH.NumSamples( 4 /*AOS->lightingOptions.sphericalHarmonicsSamplesSquaredRooted*...
/* Copyright (c) 2006, NIF File Format Library and Tools All rights reserved. Please see niflib.h for license. */ //-----------------------------------NOTICE----------------------------------// // Some of this file is automatically filled in by a Python script. Only // // add custom code in the designated areas o...
#include <iostream> #include <fc/io/fstream.hpp> #include <fc/io/raw.hpp> #include "serial_tester.hpp" template<typename T> void _print_hex_char(T& out, char c) { static const char hex_digit[] = "0123456789abcdef"; out << hex_digit[(c >> 4) & 0x0F]; out << hex_digit[(c ) & 0x0F]; return; } temp...
#include "io.h" #include "string.h" #include "disk.h" #include "keyboard.h" #include "version.h" #include "pcb.h" #include "interrupt.h" #include "os_sem.h" //#include "os_msg.h" #include "port.h" #include "mem_base.h" #include "prog.h" #include "screen.h" const uint8_t UserNum = 4; uint16_t cursors[UserNum]; const u...
/* * Copyright (C) 2014 The Android Open Source Project * 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 ...
#include "AB.h" #define K 7 AB::AB(string name){ ifstream filein(name.c_str()); set<int> features; if(filein.is_open()) { string line; while (!filein.eof()){ getline(filein, line, '\n'); if(line == "") break; istringstream linestr(line); int cate; linestr >> cate; string temp; while(linestr ...
#include <iostream> #include <string> #include <vector> #include <optional> #define GLM_FORCE_RADIANS #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <imgui/imgui.h> #include <entt/entt.hpp> #include <GLFW/glfw3.h> #include "core.hpp" #include "random.hpp" #include <toolkit/render_window.hpp>...
/* ------------------------------------------------------------------------------- This file is part of OgreKit. http://gamekit.googlecode.com/ Copyright (c) 2006-2010 <NAME>. Contributor(s): none yet. ------------------------------------------------------------------------------- This software is p...
// <NAME> // <EMAIL> #include "dai_mapreduce.h" #include "boost/foreach.hpp" #include <time.h> // generate these via something like ./scripts/init.sh dat/bnets/asia.net 100 3 // TODO: make these args const char* EM_PATH = "dat/in/em"; const char* TAB_PATH = "dat/in/tab"; const char* FG_PATH = "dat/in/fg"; // run vani...
// Copyright (c) 1999-2018 <NAME> // See the file COPYING for more information #include <sqlrelay/sqlrclient.h> #include <sqlrelay/sqlrexportcsv.h> #include <sqlrelay/sqlrexportxml.h> #include <sqlrelay/sqlrutil.h> #include <rudiments/process.h> #include <rudiments/stdio.h> #include <config.h> #include <defaults.h> #i...
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
/* * Copyright (c) 2020 Huawei Technologies Co.,Ltd. * * openGauss is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ...
/*************************************************************************** * * Author: "<NAME>" * MRC Laboratory of Molecular Biology * * 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; e...
#include "../Discretes/Logit.h" #include "../Data.h" #include "../Loggers/Default.h" #include "../Loggers/Logger.h" #include "../Global.h" #include "../Member.h" #include "../Field.h" #include "../Location.h" #include "../Parameters.h" #include "../Obs.h" #include <gtest/gtest.h> namespace { class LogitTest : publi...
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <string> #include <algorithm> #include <utility> #include <vector> #include <map> #include <regex> #include <samples/common.hpp> #include <samples/slog.hpp> #include "utils.hpp" #ifdef USE_OPENCV #include <opencv2/core.h...
// --- Custom header files --- #include "AliPP13EpRatioSelection.h" // --- ROOT system --- // --- AliRoot header files --- #include <AliPP13EpRatioSelection.h> #include <AliAODTrack.h> ClassImp(AliPP13EpRatioSelection); //________________________________________________________________ void AliPP13EpRatioSelection...
#include "setting.h" #include "math/fft.h" #include "utils/logger.h" using namespace bacchus; //TEST(FFT_test, SlowGorner) { // matxcx x = {1,2,3,4}; // matxcx y = fft_slow_gorn(x, false); // PRINT(y); // matxcx resy = {{10,0}, {-2,2}, {-2,0}, {-2,-2}}; // int n = y.size(); // EXPECT_EQ(resy.size(),...
#include <stdlib.h> /* srand, rand */ #include <time.h> /* time */ #include <math.h> #include <iostream> #include <string> #include <vector> #include <bsoncxx/builder/stream/document.hpp> #include <bsoncxx/json.hpp> #include <mongocxx/client.hpp> #include <mongocxx/options/find.hpp> #include <mongocxx/inst...
//========================================================================= // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURPOSE...
#include "ParticleEmitter.h" #include "Particle.h" #include "Renderable.h" //TODO: ResourceCreator.h #include "imgui.h" #include <GLFW/glfw3.h> //#include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> //#include <gl_core_4_4.h> #include <assert.h> #include <memory> ParticleEmitter::ParticleEmitter(ParticleEmitterCon...
#include "openglwindow.hpp" #include <fmt/core.h> #include <imgui.h> #include <tiny_obj_loader.h> #include <cppitertools/itertools.hpp> #include <glm/gtx/fast_trigonometry.hpp> #include <glm/gtx/hash.hpp> #include <unordered_map> // Custom specialization of std::hash injected in namespace std namespace std { templat...
//! @file builtins.cc Definitions of builtin functions /* * Copyright (c) 2018-2019 <NAME> * All rights reserved. * * This software was developed at Memorial University of Newfoundland * under the NSERC Discovery program (RGPIN-2015-06048). * * Redistribution and use in source and binary forms, with or witho...
#include "copy_root_tree.hh" // Root tree copy function // // NOTE: I don't recommend trying to understand the variable buffer // classes until you see the general workflow. // // The main work is done in copy_root_tree below, skip down to that to // understand what is going on. // #include "HdfTuple.hh" #include "T...
/* Copyright (c) 2012-2015, <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: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
/* * File: MountPolling.c * * Copyright 2012 <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...
/* Copyright 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 in writing, soft...
// Copyright 2017 The Chromium OS 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 "bsdiff/endsley_patch_writer.h" #include <algorithm> #include <gtest/gtest.h> namespace { std::vector<uint8_t> VectorFromString(const std:...
// 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 <iostream> #include <vector> #include <string> #include <limits> #include <stdlib.h> #include <boost/regex.hpp> #include "saga/saga.hpp" #include "saga/...
#include<bits/stdc++.h> #define mt make_tuple #define mp make_pair #define pu push_back #define INF 1000000001 #define MOD 1000000007 #define ll long long int #define ld long double #define vi vector<int> #define vll vector<long long int> #define fi first #define se second #define sc(n) scanf("%d",&n); #define scll(n) ...
#include <cmath> #include <exception> #include <fstream> #include <iostream> #include <string> #include <sstream> #include <boost/algorithm/string.hpp> #include <boost/lexical_cast.hpp> #include <boost/program_options.hpp> #include <boost/tokenizer.hpp> #include <boost/numeric/ublas/vector.hpp> #include <boost/numeric...
//******************************************\\ // CrazyArts 2009 \\ // Made only by CrazyArts in 2009 year \\ // http://crazyarts.do.am/ \\ // Code is free for compiling and editing \\ //******************************************\\ ///////////////////////////////////////////////////////////// #include "cbase...
#include "PathTracer.h" #include <iostream> #include <thread> #include <glm/glm.hpp> #include <glm/gtc/random.hpp> #include "Ray.h" #include "Scene.h" #include "Camera.h" #include "Utils.h" #include "HitRecord.h" #include "Material.h" #include "Ray.h" #include "Types.h" #include "Timer.h" #include "BloomPostProcess....
#include <stdio.h> #include <string.h> #include <vector> #include <stdio.h> #include <stdlib.h> #include <string.h> /* somewhat unix-specific */ //#include <sys/time.h> //#include <unistd.h> /* curl stuff */ #include <curl/curl.h> #ifndef CURLPIPE_MULTIPLEX /* This little trick will just make sure t...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
/* ** buildtexture.cpp ** Handling Build textures (now as a usable editing feature!) ** **--------------------------------------------------------------------------- ** Copyright 2004-2006 <NAME> ** Copyright 2018 <NAME> ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without **...
/* Copyright 2005-2012 Intel Corporation. All Rights Reserved. The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its supplier...
#include <beacon_scanner.hpp> #include <range/v3/range/conversion.hpp> #include <range/v3/range/primitives.hpp> #include <range/v3/algorithm/find.hpp> #include <range/v3/view/cartesian_product.hpp> #include <range/v3/view/iota.hpp> #include <range/v3/view/split.hpp> #include <range/v3/view/transform.hpp> #include <al...
/* WebsocketClient, a websocket client for Spark Core based on Arduino websocket client Copyright 2011 <NAME> Copyright 2012 <NAME> Copyright 2014 <NAME> Copyright 2014 <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "S...