text
stringlengths
3.08k
22k
/*************************************************************************** * * Copyright (C) 2021 by fxzjshm * Licensed under the GNU General Public License, version 2.0 * ***************************************************************************/ #define BOOST_COMPUTE_DEBUG_KERNEL_COMPILATION #define HD_B...
// DynamicHeightMap.cpp: implementation of the CDynamicHeightMap class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "DynamicHeightMap.h" #include "../xrEngine/cl_intersect.h" const int tasksPerFrame = 1; const float limit_up = 100.f; const float li...
// // aurora.cpp // Draw My Aurora // // Created by <NAME> on 4/25/18. // Copyright © 2018 <NAME>. All rights reserved. // #include "aurora.hpp" #include <iostream> #define GLM_ENABLE_EXPERIMENTAL #include <glm/gtc/matrix_transform.hpp> #include "airtrans.hpp" #include "loader.hpp" #include "window.hpp" using ...
#include "filesystem.h" #include <iosuhax.h> #include <iosuhax_devoptab.h> #include <iosuhax_disc_interface.h> #include <fat.h> #include <sys/statvfs.h> #include "gui.h" #include "iosuhax.h" static bool systemMLCMounted = false; static bool systemUSBMounted = false; static bool discMounted = false; static bool SDMount...
#include "sweepscheduler.h" #include <chi_mpi.h> #include <chi_log.h> extern ChiMPI& chi_mpi; extern ChiLog& chi_log; #include <sstream> #include <algorithm> //################################################################### /**Initializes the Depth-Of-Graph algorithm.*/ void chi_mesh::sweep_management::SweepSch...
#include "Analyzers/Dig.h" #include "Debug.h" #include "Globals.h" #include "Item.h" #include "Saiph.h" #include "World.h" using namespace analyzer; using namespace std; Dig::Dig(Saiph* saiph) : Analyzer("Dig"), saiph(saiph), digging_tool(ILLEGAL_ITEM), dig_direction(NOWHERE) { } void Dig::analyze() { if (priority...
//========================================================================== // The ImGuiTexInspect version of this file is very based on the // ImGui version. All changes have been labelled with TEX_INSPECT_CHANGE //========================================================================== // Dear ImGui: standalone...
/* Cafu Engine, http://www.cafu.de/ Copyright (c) <NAME> and other contributors. This project is licensed under the terms of the MIT license. */ #include <time.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #include <algorithm> #include <iostream> #include "../../Common/World.hpp" // SHOULD *NOT* BE ...
// Copyright (c) 2007 <NAME> // Use, modification and distribution are subject to 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) // // Computes test data for the various bessel functions using // archived - deliberately naive - ...
#include <ctime> #if defined(_WIN32) #include <synchapi.h> #else #include <unistd.h> #endif #include "Mint.h" #include "../TxPool.h" #include "../MerkleTree.h" #include "../Chain.h" #include "../Network/Network.h" #include "../Tools/Log.h" #include "../Transaction/TransactionHelper.h" #include "../Consensus/VoteStore...
#pragma once #include "Core.hpp" #include <iostream> #include <unordered_map> #include <unordered_set> #include <cctype> #include <boost/algorithm/string.hpp> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> namespace Vex{ namespace Input{ const bool KEY_DOWN = true; const bool KEY_UP = false; ...
/* Copyright 2019-2021 Canaan 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 t...
/* * Copyright (c) 2011 lvqcl * * 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 "processing/ConvolutionPyramid.hpp" #include "graphics/ScreenQuad.hpp" #include "graphics/GPU.hpp" ConvolutionPyramid::ConvolutionPyramid(unsigned int width, unsigned int height, unsigned int inoutPadding) : _padding(int(inoutPadding)) { // Convolution pyramids filters and scaling operations. _downscale =...
/***************************************************************************** Copyright (c) 2004 SensAble Technologies, Inc. All rights reserved. OpenHaptics(TM) toolkit. The material embodied in this software and use of this software is subject to the terms and conditions of the clickthrough Development License Agr...
#include <iostream> #include <stdexcept> #include <chrono> #define STB_IMAGE_IMPLEMENTATION #include "third_party/stb_image.h" #include "infra/fmt.h" #include "infra/filepath.h" #include "math/constants.h" #include "math/trans_mat.h" #include "transform.h" #include "shader_util.h" #include "window.h" #include "app.h"...
// This file is part of the MAZE project // Licensing information can be found in the LICENSE file // (C) 2012 The MAZE project. All rights reserved. #include "MZPlatform.h" using namespace MAZE; // ------------------------------------------------------------------------------------------------ const Resource::Type ...
#include "../../csgo.hpp" classids_t classids = {}; #define GET_ID( var ) var = get( CT_HASH( #var ) ); void classids_t::init( ) { GET_ID( CAI_BaseNPC ); GET_ID( CAK47 ); GET_ID( CBaseAnimating ); GET_ID( CBaseAnimatingOverlay ); GET_ID( CBaseAttributableItem ); GET_ID( CBaseButton ); GET_ID( CBaseCombatChara...
// ============================================================== // Copyright (C) 2019 Intel Corporation // // SPDX-License-Identifier: MIT // ============================================================= // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associa...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2014 <NAME> This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute it and/or modif...
#include "InventoryState.hpp" #include "GameData.hpp" #include "InputManager.hpp" #include "Item.hpp" #include "Sprite.hpp" #include "Text.hpp" #include "Types.hpp" InventoryState::InventoryState() : inventoryCursorIndex(0), cursorIndex(Inventory) { GameObject* background_go = new GameObject(-1); Sprite* backg...
#include <string.h> #include <string> #include "Building.h" Building::Building() { } Building::StruType Building::s2StruType(string s) { transform(s.begin(), s.end(), s.begin(), ::toupper); if(s=="RM1") return RM1; if(s=="RM2") return RM2; if(s=="URM") retur...
// Copyright 2019 U.C. Berkeley RISE Lab // // 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...
//============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk 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; ei...
/*========================================================================= * * Copyright <NAME>, <NAME>, <NAME>. 2011. * * 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.o...
/** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you und...
// // Created by ycshan on 9/6/2018. // #include <iostream> #include <cstring> #include <cstdio> #include <map> #include <vector> #include <string> #include <ctime> #include <cmath> #include <cstdlib> #include <sstream> #include <fstream> #include "Train.h" using namespace std; Train::Train(Data...
#include "gilbreth_msgs/ObjectVoxel.h" #include "std_msgs/Int32MultiArray.h" #include "std_msgs/MultiArrayDimension.h" #include <XmlRpcException.h> #include <array> #include <boost/dynamic_bitset.hpp> #include <cstdlib> #include <cstring> #include <fstream> #include <iomanip> // setprecision #include <iostream> #includ...
#include "precompiled_stl.hpp" #include <filesystem> // namespace fs = std::filesystem; using namespace std; #include "utils.hpp" #include "read.hpp" // ========= // read.cpp // read and deal w files // ========= Sample::Sample(string filename) { vector<Image> train_input, train_output; vector<Image> test_input,...
#include <QCoreApplication> #include <QtDebug> #include <iostream> #include <fstream> #include <algorithm> #include <vector> //#include <stdio.h> //#include <stdlib.h> #include <time.h> #include <cerrno> #include <cmath> #include <thread> #include <mutex> #define OUTPUT_FILE "./trials.csv" #define NUMBER_THREADS 1 /...
/* * Copyright 2012 Open Source Robotics Foundation * * 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 l...
#include "gm_frontend.h" #include "gm_misc.h" #include "gm_builtin.h" static int gm_get_type_from_string(const char* s, int& required_iter_type) { required_iter_type = 0; assert(s!=NULL); if (gm_is_same_string(s, "Graph")) return GMTYPE_GRAPH; else if (gm_is_same_string(s, "Node")) ret...
/* * Copyright 2017-2020 NVIDIA Corporation. All rights reserved. * * Please refer to the NVIDIA end user license agreement (EULA) associated * with this source code for terms and conditions that govern your use of * this software. Any use, reproduction, disclosure, or distribution of * this software and related...
#include "obstacle_avoidance_base.h" using namespace srrg2_core; using namespace srrg2_navigation_2d; #define DEBUG(var) \ if (var) \ std::cerr static bool obs_avoidance_base_debug = false; using namespace std; static constexpr int ColumnOfNewImage = 500; static constexpr int RowsOfNewImage = 500; sta...
/*** * * Copyright (c) 1996-2002, Valve LLC. All rights reserved. * ****/ // updates: // 1-4-98 fixed initialization #include <chrono> #include <thread> #include <stdio.h> #include <windows.h> #include <gl\gl.h> #include <gl\glu.h> #define SDL_MAIN_HANDLED #include <SDL2/SDL.h> #include "mathlib.h" #undef DotProd...
#pragma once #include <Exception.hpp> #include <Math/Vect2.hpp> #include <cstdint> #include <iostream> #include <list> #include <memory> #include <queue> #include <string> #include <thread> #include <typeindex> #include <typeinfo> #include <unordered_map> #include "ECS/SerializerSystem.hpp" #include "Logger.hpp" usi...
//---------------------------------------------------------------------------- // includes //---------------------------------------------------------------------------- #include <fstream> #include <list> #include <networkio/http/http_server.h> using namespace networkio; using namespace networkio::http; using namesp...
#include <bits/stdc++.h> using namespace std; struct record { int id; string name; string phone; string blood_group; string city; }; struct record2 { int id; string name; int age; string phone; string profession; string vaccine="Not_vaccinated"; int choi...
/* Copyright 2001, 2019 IBM Corporation * * 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 * following d...
#include "stdafx.h" #include "../IO/Image.h" #include "Bitmap.h" #include "loadSome.hpp" // For filling the image, we want to avoid read-after-write latency at the end of every line, it's not insignificant. // This is unlike constructing the bitmap, where we only reading from the image but not writing. // That's why us...
#include "inventoryobject.h" #include "../../thirdParty/MBES-lib/src/math/Distance.hpp" #include "../../thirdParty/MBES-lib/src/utils/Exception.hpp" #include "../../thirdParty/MBES-lib/src/math/CoordinateTransform.hpp" #include "../../thirdParty/MBES-lib/src/sidescan/SideScanGeoreferencing.hpp" #include "../../thirdP...
#include <gl_core_4_4.h> #include "Mesh.h" Mesh::~Mesh() { // If the array does not equal zero, then delete the data glDeleteVertexArrays(1, &m_vao); glDeleteBuffers(1, &m_vbo); glDeleteBuffers(1, &m_ibo); } void Mesh::InitialiseQuad() { // Check if the mesh is not initialised already assert(m_vao == 0); // G...
#include "egl_x11.h" #include <cstdarg> #include <cstring> /****************************************************************************** Based on OGLES2 HelloAPI from the PowerVR SKD examples. ******************************************************************************/ /// Index to bind the attributes to vert...
#include "Arduino.h" #include "Wire.h" #include <LCD.h> #include "GameControl.h" #include "Buzzer.h" #include "Button.h" // Serial debugging #define SPrintln(a) (Serial.println(a)) #define SPrint(a) (Serial.print(a)) //#define SPrintln(a) //#define SPrint(a) // For final release replace line above with: #define SPrin...
#include <cmath> #include <type_traits> #include <vector> #include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/shape_inference.h" using namespace tensorflow; using std::vector; using std::decay; REGISTER_OP("Shuffle") .Attr("T: numbertype")...
// ImGui includes #include "imgui.h" #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" // OpenGL includes #include <GL/glew.h> #include <GLFW/glfw3.h> #include <nfd.h> #include <glm/glm.hpp> #include <glm/ext.hpp> // STL includes #include <string> #include <memory> // Local includes #include "material.h" ...
#include <Arduino.h> #include <FS.h> #include <ESP8266WiFi.h> #include <ArduinoJson.h> #include <ArduinoOTA.h> #include <PubSubClient.h> #include <DNSServer.h> #include <ESP8266mDNS.h> #include <WiFiUdp.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> #include <OneButton.h> #include <Ticker.h> /* ***********...
/* Copyright (c) <2009> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * inclu...
#include "InfoGPU.h" #include "SystemCommand.h" #include <Logging/LogMacros.h> TArray<FGPUInformation> FGPUInformationFetcher::FetchInfo() { // query gpus FSystemCommand gpusQuery("wmic path Win32_VideoController get /format: list"); if (gpusQuery.HasFailed()) { UE_LOG(LogSystemInfo, Error, TEXT("Failed to que...
#include "XMLWalker.hpp" #include "FileUtils.hpp" #include <iostream> /* Program : Spectrast Author : <NAME> <<EMAIL>> Date : 03.06.06 Copyright (C) 2006 <NAME> This library is free software; you can redistribute it and/or modify it und...
#include "rose.h" #include "instro/rose/core/RoseConstructSet.h" #include <fstream> #include <string> #include <vector> #include <map> // http://stackoverflow.com/questions/8520560/get-a-file-name-from-a-path struct MatchPathSeparator { bool operator()( char ch ) const { return ch == '/'; } }; s...
// // Created by <NAME> on 2020/06/04. // #include <iostream> #include <ostream> #include <vector> #include <array> #include <random> #include <cassert> #include <mpi.h> #include <Eigen/Dense> #include <fstream> #include "StrategyN2M3.hpp" // calculate the distribution of fixation probability rho // against randomly ...
#include <shogun/io/SGIO.h> #include <shogun/lib/common.h> #include <shogun/lib/Time.h> #include <shogun/mathematics/Math.h> #include <shogun/structure/PrimalMosekSOSVM.h> #include <shogun/structure/DualLibQPBMSOSVM.h> #include <shogun/structure/StochasticSOSVM.h> #include <shogun/structure/FWSOSVM.h> #include <shogun...
// Source file for the simple dijkstra algorithm // include files #include "Neuron/Neuron.h" #include <vector> // program arguments static int print_verbose = 0; static int print_debug = 0; static char *input_filename = NULL; // program variables static NeuronData *nd; static RNScalar...
#include <NinePatchGlue.h> #include <SkUnPreMultiply.h> #include <SkColorPriv.h> #include <SkTemplates.h> using namespace android; bool NinePatchGlue::isNinePatchChunk(const NativeArray<uint8_t>* objArray) { if (!objArray) return false; if (objArray->length() < (int)sizeof(Res_png_9patch)) return ...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
#include <stdio.h> #include <stdlib.h> #include <ugens.h> #include <mixerr.h> #include <Instrument.h> #include "SGRANR.h" #include <rt.h> #include <rtdefs.h> #include <math.h> // realtime stochastic grain maker based on sgran // <NAME> March 19, 2004 SGRANR::SGRANR() : Instrument() { branch = 0; grainoverlap...
/****************************************************************************** ** Copyright (C) 1997 by CEA ******************************************************************************* ** ** UNIT ** ** Version: 1.0 ** ** Author: <NAME> && <NAME> && <NAME> ** ** Date: 97/12/04 ** *...
// // Created by CoulsonChen on 2018/5/29. // #include "v8util.h" #include <fstream> #include <string> #include <stdio.h> #include <assert.h> #include "sun_engine.h" #include "graphics/GLUtils.h" #include "include/v8.h" #include "log.h" namespace v8::internal { void ReadNatives() {} void DisposeNatives() {} ...
#include <stdlib.h> #include <stdio.h> #include <math.h> #include <time.h> #include <string.h> #include <ilcplex/cplex.h> #include <glpk.h> #include "GraphDecomposition.h" void check_CPX_status(char *func, int status){ if(status){ fprintf (stderr, "CPX nonzero status after %s: %d\n",func,status); ...
#include <stdlib.h> #include <math.h> #include <vector> #include <map> #include <stdio.h> #include <gsl/gsl_cdf.h> #include "state_merger.h" #include "evaluate.h" #include "depth-driven.h" #include "alergia.h" #include "parameters.h" int EVAL_TYPE = 1; REGISTER_DEF_DATATYPE(alergia_data); REGISTER_DEF_TYPE(alergia)...
// Fill out your copyright notice in the Description page of Project Settings. #include "STrackerBot.h" #include "SCharacter.h" #include "Components/StaticMeshComponent.h" #include "NavigationSystem/Public/NavigationSystem.h" #include "NavigationSystem/Public/NavigationPath.h" #include "GameFramework/Character.h" #inc...
#include "atom_basic.h" #define c(name, c, m, y, k) \ { name, cmyk(c, m, y, k) } using namespace std; using namespace tex; map<string, tex::color> tex::ColorAtom::_colors{ {"black", black}, {"white", white}, {"red", red}, {"green", green}, {"blue", blue}, {"cyan", cyan}, {"magenta", magenta}, {"yel...
/* Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program i...
#include "JoinRoomScene.hpp" #include "glTextureLoader.hpp" #include "ApplicationRunLoop.hpp" using namespace std; JoinRoomScene::JoinRoomScene(const std::string & name, const std::string rootPath, struct nk_context *ctx) : BaseScene(name, rootPath, ctx) { memset(_room, 0, 20); } SceneType JoinRoomScene::Render...
/* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */ #include "DarkMatter.h" #include "TraceCorrector.h" using namespace std; Axion::Axion (SignalProcessingMasterFitter &_bkg) : bkg (_bkg) { } void Axion::AccumulateOneBead(BeadParams *p, reg_params *reg_p, int max_fnum, float my_residua...
// Copyright 2005 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
// Copyright (c) 2018 <NAME> // Copyright (c) 2018 <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 <phylanx/phylanx.hpp> #include <hpx/hpx_main.hpp> #include <hpx/util/lightweight_test.hpp> #in...
#include <iostream> #include <libgen.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dlfcn.h> #include <stdlib.h> #include <string.h> #include <sstream> #include <fstream> #include <iomanip> #ifdef _DMTCP #include "dmtcpaware.h" #endif #include "trick/DMTCP.hh" #include "trick/SimObject...
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; // 998244353; // 998244853; template <typename T> struct modular { constexpr modular() : val(0){} constexpr modular(const modular<T>& _m) : val(_m.val) {} template <typename U> constexpr modular(const U& _r = U()) { val = -...
#include "stdafx.h" #include "jwnGrapic.h" #define max 40 //함수지정 void maker(); void cursor_view(char s); void start(); void maker(); void map(); void Levelscore(); void player(); void playerout(); void out(); void out2(); void boom(); void menu(); //함수지정 //변수지정 int p = 0; int t=0; int score = 0; ...
#include <iostream> #include <algorithm> #include <numeric> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include "camFusion.hpp" #include "dataStructures.h" // Create groups of Lidar points whose projection into the camera falls into the same bounding box void clusterLidarWithROI( ...
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/leak_detection.h" #include "Chinese/parse/ch_STags.h" Symbol ChineseSTags::TOP = Symbol(L"TOP"); Symbol ChineseSTags::TOPTAG = Symbol(L"TOPTAG"); Symbol ChineseSTags::FRAG = Symbol(L"FRAG"); Symbol ChineseSTags::FR...
// // opencv_funcs.cpp // EasyBreath2 // // Created by <NAME> on 27/02/2016. // Copyright © 2016 <NAME>. All rights reserved. // #include <stdio.h> #include "opencv_funcs.h" // For our functions definitions #include "CvMat.hpp" // For recover() & makePtr() functions #include <opencv2/core.hpp> // OpenCV core #incl...
/* * gameplay/map_d.cpp * * Drawing routines of the Map class * */ #include "map.h" #include "../graphic/glob_gfx.h" #include "../other/user.h" #include "../other/help.h" // torus modulo void Map::draw(Torbit& target) { const bool z = zoom; int less_x = 0; int less_y = 0; // how much is the screen la...
#include "CubeModel.h" #include "Graphics.h" #include "Camera.h" #include "Game.h" static GLfloat CubeVertices[] = { // it's a cube model so it needs to know what a cube looks like -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, 0.5f, -0.5f, -0.5f, 1.0f,...
#include "OccupancyGrid/cvmat_serialization.h" #include "OccupancyGrid/occgrid.hpp" #include <cmath> #include <opencv2/opencv.hpp> #include <boost/filesystem/operations.hpp> #include <boost/format.hpp> #include "OccupancyGrid/loadData.h" #include <boost/program_options.hpp> namespace bfs = boost::filesystem; namespace...
/* $Id: QILabel.cpp $ */ /** @file * VBox Qt GUI - VirtualBox Qt extensions: QILabel class implementation. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redist...
/* * 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 of this software. * Permission is granted to anyone to use this software for...
#include "TestScene.h" #include "base/stringUtil.h" using namespace fei; //TODO: add Debug module, write some macro utilities void TestScene::init() { setCamera(&mainCam); _needInitUILayout = false; initUILayout(); testMath(); testPhysics(); testRender(); testAudio(); testFont(); testUtil(); } void Test...
#include <QFileInfo> #include "functions.h" #include "functions-test.h" void FunctionsTest::testFixFilenameWindows() { assertFixFilename(0, "", "C:\\test\\image.jpg", "C:\\test\\image.jpg"); assertFixFilename(0, "image.jpg", "C:\\test\\", "image.jpg"); assertFixFilename(0, "image", "C:\\test\\", "image"); assertF...
//////////////////////////////////////////////////////////////////////// // Copyright (c) 2010-2015, University of Washington and Battelle // Memorial Institute. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following cond...
#include <iostream> using namespace std; /** * Circular Linked List consists of multiple nodes, connected to each other * via their address. These nodes exist in heap, and are not necessarily * continious. Unlike SLL, the tail node in the end is connected to the * head node, thereby creating a continious loop of n...
#include <vector> #include <cstdio> #include <SDL/SDL.h> #include <linealg.h> #include <fixedpoint.h> #include "texture.h" #include "myassert.h" void TriangleSplit( std::vector<Vector4i>& vertexData, std::vector<Vector4i>& textureData ) { unsigned int len = vertexData.size(); for(unsigned int i...
/**************************************************************************** * * Copyright (c) 2020 PX4 Development Team. 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. Redistri...
/*Copyright (c) 2019, <NAME> All rights reserved. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ #import <opencv2/opencv.hpp> #import "fingerprint.h" #include <iostream> #include <algorithm> #include <vector> #include <limits> #include <iterat...
// ImGui - standalone example application for GLFW + OpenGL 3, using programmable pipeline // If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp. // (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.) // (...
#include "stateeditor.h" /* A StateEditor is able to modify the value of a state. * It is the only way the user can override the results of calculations and * place the simulated system in a state that would otherwise not be possible * (apart from deciphering and rewriting the binary data for .cst and .stt files) ...
#include "pch.h" /********************************************************************** <BR> This file is part of Crack dot Com's free source code release of Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for information about compiling & licensing issues visit this URL</a> <PRE> If...
/* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 <NAME> (Glaurung author) Copyright (C) 2008-2015 <NAME>, <NAME>, <NAME> Copyright (C) 2015-2019 <NAME>, <NAME>, <NAME>, <NAME> Stockfish is free software: you can redistribute it and/or modify it under the terms of t...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
/* * Copyright (c) 2021, Lawrence Livermore National Security, LLC and LvArray contributors. * All rights reserved. * See the LICENSE file for details. * SPDX-License-Identifier: (BSD-3-Clause) */ // Source includes #include "SparsityPattern.hpp" #include "CRSMatrix.hpp" #include "MallocBuffer.hpp" #if defined(U...
#include "../tomb5/pch.h" #include "autogun.h" #include "sound.h" #include "effect2.h" #include "items.h" #include "control.h" #include "lara_states.h" #include "switch.h" #include "../specific/3dmath.h" #include "sphere.h" #include "delstuff.h" #include "../specific/function_stubs.h" #include "effects.h" #include "tom...
// Copyright <NAME> 2021. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) #include "iso_15924.hpp" #include <array> struct iso_15924_info { std::string code; uint16_t nr; }; constexpr std::array<iso_1592...
/************************************************************************** * * * Algorithmic C (tm) Math Library * * * * Software Ver...
#include <boost/python.hpp> #include <boost/python/numpy.hpp> #include <iostream> #include "species.h" using namespace std; namespace p = boost::python; namespace np = boost::python::numpy; namespace bm = boost::math; template<typename T> static T det(const array<array<T, 3>, 3> &p) { T sum{}; for (size_t ...
/*========================================================================= Program: Visualization Toolkit Module: $RCSfile$ Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WA...
#include "MQTTHandler.h" /* Constructor. The object is created ony once */ MQTTHandler::MQTTHandler(lamp_status* lamp_status_request,timeSync* timer): CommunicationHandler(lamp_status_request,MQTT,timer), //jsonBuffer(250), m_mqtt_reconnect_counter(0), m_last_alive_tx(0), m_last_alive_rx(0) { } /* Start communica...
/// Copyright (c) 2020, FilipeCN. /// /// The MIT License (MIT) /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to /// deal in the Software without restriction, including without limitation the /// righ...
/**********\ * * Filename: ROT13.cpp * * Description: Implemetation of ROT13 * * Authors: <NAME> <<EMAIL>> * * Copyright 1995-2003 QUALCOMM, Incorporated Copyright (c) 2016, Computer History Museum All rights reserved. Redistribution and use in source and binary forms, with or without modification, are pe...