text
stringlengths
5.71k
33.7k
// attributes.cpp : Defines the entry point for the console application. // #include <objbase.h> #include <wchar.h> #include <activeds.h> //Make sure you define UNICODE //Need to define version 5 for Windows 2000 #define _WIN32_WINNT 0x0500 int IS_BUFFER_ENOUGH(UINT maxAlloc, LPWSTR pszTarget, LPCWSTR pszSour...
/* $Id: UIVMCloseDialog.cpp 72887 2018-07-04 15:50:30Z vboxsync $ */ /** @file * VBox Qt GUI - UIVMCloseDialog class implementation. */ /* * Copyright (C) 2006-2018 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free s...
#include <iostream> #include <iomanip> #include <limits> #include <complex> #include <string> #include <utility> #include <typeinfo> #include "vnl/vnl_rational.h" #include "testlib/testlib_test.h" #include "vnl/vnl_math.h" #include "vnl/vnl_matrix_fixed.h" #include "vnl/vnl_rational_traits.h" #include "vnl/vnl_det.h" ...
/********************************************************************** *< FILE: bhkSphereObj.cpp DESCRIPTION: Collision Sphere Object Implementation CREATED BY: tazpn (Theo) HISTORY: V1.0 - Derived from 3ds max prim sphere example *> Copyright (c) 2006, All Rights Reserved. *************************************...
// // main.cpp // // Created by <NAME> on 2/1/2019. // #include "pch.h" using namespace RayTracer; int RayTracer::THREAD_NUMBER = 8; void checkLibpng() { std::cout << "libpng: " << PNG_LIBPNG_VER << std::endl; } int main() { checkLibpng(); std::chrono::time_point scene_start = std::chrono::high_resolu...
/* * Software License Agreement (BSD License) * * Copyright (c) 2019. Toyota Research Institute * 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 c...
#include "ros/ros.h" #include "std_msgs/String.h" #include "std_msgs/Float64.h" #include <geometry_msgs/PoseStamped.h> #include "transformations_ros/roombaPoses.h" #include "transformations_ros/roombaPose.h" #include <sstream> #include "matplotlibcpp.h" #include <cmath> #include <deque> #include <vector> #include <iost...
/* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. This program is distributed in the hope that it would...
#include <iostream> #include <SFML/Graphics.hpp> #include "SpeakingGrandMa.hpp" #include "CookingGrandMa.hpp" #include "CaramelGrandMa.hpp" #include "CakeGrandMa.hpp" #include "TvGrandMa.hpp" #include "AtkTower.hpp" #include "Logger.hpp" #include "Screen.hpp" #include "Tower.hpp" #include "Game.hpp" #include "Map.hpp" ...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
#include <cstdlib> #include <iostream> #include <limits> #include <vector> #include "gomory.h" Gomory::Gomory(const rapidjson::Value& root, std::string model_path_, std::string solution_path_) : BaseModel(root, model_path_, solution_path_) { // Loa...
#include "behavior.h" #include <iostream> #include <algorithm> #include <iterator> #include <map> #include <iomanip> #include <string> #include <vector> #include "cost.h" #include <cmath> #include "util.h" #include "settings.h" using std::string; using std::vector; #define RESET "\033[0m" #define BLACK "\033[30m"...
int G , tV9 ,Q, I3OE ,// Wp , H , PNa , //r K0I , qV, b,KU ,ueJ , rh , FL6 ,eG90, XXE , Iwu ,/*VfW*/ /*2*/oAgT , sX , u3N , M,ClA , Bs57r, I1viU; void f_f0 () {volatile int kQ, cTtzu , o5 , t, QsXY, J; {volatile int l9 , p5 , sV , zl , /*bIl*/ Yutkf ;{ {volatile int rNk , NH2 ; if (t...
/* * Code generation for system system '<S5>/Transmitter' * * Model : PhysicalLayerModel * Model version : 1.254 * Simulink Coder version : 8.5 (R2013b) 08-Aug-2013 * C++ source code generated on : Fri Jul 25 20:13:46 2014 * * Note that the functions contained in this file are ...
// Cloth.cpp #include "Cloth.h" #include "Image/tImage.h" #include "Math/Random.h" // OpenGL #include "GL/glew.h" // This needs to come after GLEW #include "GL/freeglut.h" #include <execution> Cloth::Cloth() { Cloth(40, 40, 1.0f, 1.0f, f3vec(0, 0, 0), .01f, 0.9f, TABLECLOTH); } Cloth::Cloth(int nx, int ny, float...
/* * Copyright (c) 2017, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
/* * Vega Strike * Copyright (C) 2001-2002 <NAME> & <NAME> * * http://vegastrike.sourceforge.net/ * * 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 License, or...
#include <uWS/uWS.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include "spline.h" #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" #define NUMBER_OF_CYCLES_PER_SEC (50U) #define CYCLE_TIME (0.02) // in milliseconds #...
// Written by FabriceA6 // https://www.instructables.com/Mandelbrot-and-Julia-Sets-on-ESP32/ // November 2019 // tweaked to run on TTGO-T-watch 2020 by W.F.Dudley October 2020 #include "config.h" #include "DudleyWatch.h" // choose the floating point resolution here: typedef float FPREC; // double or float // float ma...
/* ########################################################################## # If not stated otherwise in this file or this component's LICENSE # file the following copyright and licenses apply: # # Copyright 2019 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this...
/* * Copyright (c) 2018 Peerplays Blockchain Standards Association, and contributors. * * The 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, includi...
/* * Copyright 2011-2013,2016 <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 o...
#include "Ellipse.h" #include "MengeCore/Agents/Obstacle.h" #include "MengeCore/Math/geomQuery.h" #include <float.h> #include <cmath> #include <complex> #include <iostream> //////////////////////////////////////////////////////////////// // Implementation of Helper function //////////////////////////////////////...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: main.cpp * Author: aqq * * Created on 2017年3月28日, 下午5:29 */ #include <cstdlib> #include <stdio.h> #include "showSt...
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation the rights to use,...
#include "SymbolTable.h" #include "Node.h" #include <fstream> #include <stack> #include <regex> #include <cmath> #include <string> using namespace Phi; #define tableTop stack.back() Function::Value Function::call(Argument::List* listPtr) { // First: Check auto& list = *listPtr; if (list.size() != paramet...
/* * * random_match.cpp * Monte Carlo simulation of random match probabilites * */ #include <algorithm> #include <cstdint> #include <iostream> #include <memory> #include <random> #include <sstream> #include <stdlib.h> // #include "api.hpp" #include "random_match.hpp" #include "rng.hpp" // A, C, G, T // Just in ...
// // Created by Per-Arne on 24.02.2017. // #include "Unit.h" #include "../player/Player.h" #include "../Game.h" #include "../util/Pathfinder.h" #include "./UnitManager.h" #include <random> #include <climits> Unit::Unit(Player &player): game(&player.getGame()), config(player.config), player_(p...
/* DISCLAIMER: For sources and informations I used: http://devernay.free.fr/hacks/chip8/C8TECH10.HTM, https://austinmorlan.com/posts/chip8_emulator/#the-instructions, https://github.com/JamesGriffin/CHIP-8-Emulator/tree/master/src Test rom: https://github.com/Skosulor/c8int/tree/master/test I copied only few snippets...
#include <sstream> #include "OneVsOneQlModule.h" #include "BroodwarPrinter.h" #include "LogWriter.h" using namespace BWAPI; bool analyzed; bool analysis_just_finished; BWTA::Region* home; BWTA::Region* enemy_base; // LOGGING LogWriter gLog( "QLearning_v2.log" ); TableWriter gTable( "QLearning_v2_1Vs1.csv" ); Table...
/* Utility to do a parallel sync of remote ROOT files locally. As added value it allows to only sync the parts (TKeys) of a ROOT file which is match a provided regular expression. */ #include <sys/types.h> #include <sys/wait.h> #include <signal.h> #include <unistd.h> #include <cstdlib> #include <cassert> #inclu...
int t , SOAuU, /*N*/ No//3 ,KG, XLf , //K EgU ,eJ7w, LOLm , gce , B5 , krG, //Lb Wt , Mew//S ,//Mo cZgs ,//1o vu2, hPb , l0U ,aO ,/*ak*/g3Nd, IrhT , X ,//wV cq,hEjfX //ZqS , HnV , zGG, vE/*O*/ , VNc ,v5n, n2,fZZ;//8YJ void f_f0(){ int JsV6 ; volatile int Wwj0 , V, b5 , VsWP,ARS , y8CFG89, Nl...
/************************************** * * * Playing AVI Files In OpenGL * * using the avifile lib (>= 0.60) * * * * Linux version by * * <NAME> * * 2003 * * <...
#include <gtest/gtest.h> #include <src/config.hpp> #include "common.hpp" #include "updates.tri.hpp" using namespace updates; #define P01 1 #define P10 2 #define P11 3 #define P001 1 #define P010 2 #define P011 3 #define P100 4 #define P101 5 #define P110 6 #define P111 7 template <cost_func F> info<1> tri11(doubl...
/*************************************************************************** * * Copyright (C) 2007 <NAME> (<EMAIL>) * * 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 ...
#include "gui_event.h" #include <map> const Sint16 GUI::Action::joyaxis_tolerance = 5000; const Sint16 GUI::Action::min_mouse_motion = 3; bool GUI::Action::operator==( const SDL_Event& compare ) const { if ( event.type == compare.type ) { switch ( event.type ) { case SDL_KEYDOWN: c...
// Copyright 2017 Google 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 in...
#include "Collision.hpp" AABB::AABB(float x, float y, float w, float h){ tl.x = x; tl.y = y; br.x = tl.x+w; br.y = tl.x+h; } AABB::AABB(Vec tl, Vec br){ this->tl = tl; this->br = br; } void AABB::MoveTo(float x, float y){ float w = Width(), h = Height(); tl.x = x; tl.y = y; br...
/* // Copyright (c) 2017 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.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "assert.h" #include "random.h" #include "util.h" #include <bo...
#include "MlaaApp.h" #include "IvyDX.h" #include "IvyWindow.h" #include "IvyCamera.h" #include "DxShader.h" #include "DxShader.h" #include "DxTexture.h" #include "DxMesh.h" #include "IvyUtils.h" #include "stb_image.h" using namespace Ivy; MlaaApp* MlaaApp::Create() { return new MlaaApp(); } MlaaApp::MlaaApp()...
#include <iostream> #include <vector> #include <fstream> #include <sstream> #include <regex> using namespace std; #define FILENAME "./source.txt" #define OUTPUTPASS1_1NAME "./sic_pass1_SourceProgram_onlyLoc.txt" #define OUTPUTPASS1_2NAME "./sic_pass1_SymbolTable.txt" #define OUTPUTPASS2_1NAME "./sic_pass2_sourceProgr...
/* Copyright (C) 2018Intel Corporation SPDX-License-Identifier: BSD-3-Clause */ #include <iostream> #include <random> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/calib3d/calib3d.hpp> using namespace cv; using namespace std; typedef struct Tagparams{ int ...
/* ********************************************************** * Copyright (c) 2018 Google, Inc. All rights reserved. * **********************************************************/ /* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condi...
#include "TunisFontGenerator.h" #include "TunisGlyphLoader.h" #include <msdfgen/msdfgen.h> #include <msdfgen/msdfgen-ext.h> #include <libpng/png.h> #include <Poco/File.h> #include <Poco/Path.h> #include <Poco/String.h> #include <array> #include <iostream> #include <iomanip> #include <fstream> #include <cassert> #inc...
#include <GL/glew.h> #include <GLFW/glfw3.h> #include <stdio.h> #include <time.h> #include <stdarg.h> #include <assert.h> #include <math.h> #include "../utils/maths_funcs.h" #include "../utils/gl_utils.h" #include "../utils/obj_parser.h" #define WINDOW_TITLE "Ray Picking" #define NUM_SPHERES 4 #define MESH_FILE "sp...
#include <iostream> #include "tilecanvas.h" #include "tileedit.h" #include "QPainter" #include "QResizeEvent" TileCanvas::TileCanvas(QWidget *parent) : QWidget(parent) { m_tileedit = 0; m_lvl = 0; m_ilat0 = m_ilat1 = m_ilng0 = m_ilng1 = 0; m_tileBlock = 0; m_tileMode = TILEMODE_NONE; m_glyphMode = GLYPHMODE...
// Copyright 2015-2022 The ALMA Project Developers // // 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...
/*********************************************************************************************** Chorus ------ VCV Rack module based on Chorus by <NAME> from Airwindows <www.airwindows.com> Ported and designed by <NAME> Changes/Additions: - ensemble switch: changes behaviour to ChorusEnsemble - CV inputs fo...
#include <uWS/uWS.h> #include <fstream> #include <iostream> #include <string> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "helpers.h" #include "json.hpp" #include "spline.h" #include <bitset> // for convenience using nlohmann::json; using std::string; using std::vector; #d...
// jhcAliaRule.cpp : declarative implication in ALIA System // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2017-2019 IBM Corporation // Copyright 2020-2021 Etaoin Systems // // Licensed under the Apache License, Version 2.0 (the "License"...
/* File: Crunch.cpp All the mathy routines are here. Copyright 1999, Be Incorporated. All Rights Reserved. This file may be used under the terms of the Be Sample Code License. */ #ifndef _DEBUG_H #include <Debug.h> #endif #ifndef CRUNCH_H #include "Crunch.h" #endif /*------------------------------------------...
#define _CRT_SECURE_NO_WARNINGS 1 #define _SILENCE_ALL_CXX20_DEPRECATION_WARNINGS 1 #pragma warning(disable : 4996) #include <Windows.h> #include <iostream> #include <thread> #include <vector> #include <string> #include <fstream> #include <cstring> #pragma comment(lib, "ws2_32.lib") //#pragma comment(lib, "libprotobu...
#include <SFML/Graphics.hpp> #include <iostream> #include <sstream> #include <list> #include <iterator> #include "config.h" #include "player.h" #include "enemy.h" #include "moving_platform.h" #include "animation_manager.h" #include "view.h" #include "bullet.h" #include "health_bar.h" #include "menu.h" #...
#include <sph-simulation/simulation.hpp> #include <sph-simulation/components.hpp> #include <sph-simulation/sim_variables.hpp> #include <sph-simulation/transform.hpp> #include <sph-simulation/core/pipeline.hpp> #include <sph-simulation/core/pipeline_registry.hpp> #include <sph-simulation/core/shader_registry.hpp> #in...
#include <stdexcept> #include <iostream> #include <csignal> #include <boost/program_options.hpp> #include "cppkafka/consumer.h" #include "cppkafka/configuration.h" #include "cppkafka/utils/consumer_dispatcher.h" //------------------------------------- #include "flight_control_sample.cpp" #include "dji_linux_environme...
#include <rang.hpp> // Needs to be before anything including windows.h ... #include <iostream> #include <stdexcept> #include <stdio.h> #include <string> #include <array> #include <memory> #include <vector> #include <chrono> #include <ctime> #include <iomanip> #include <sstream> #include <thread> #include <regex> #inc...
/* * * Copyright (c) 2008, 2011, 2012, 2013 * <NAME>, <NAME>, <NAME> * * This file is part of EDENA. * * EDENA 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, ...
#include <cmath> #include <cstdlib> #include <fstream> #include <inttypes.h> #include <iomanip> #include <iostream> #include <chrono> constexpr bool dumpH2FAndF2H = false; // true; #include "util.h" #include "corecomm.h" #include "hal.h" #include "memory.h" #include "VMain.h" #include "VMain_Main.h" #include "VMain_...
#include "hw3_lib.h" #include "const.h" // Client side void *send_file(void *ffs) { FILE_STRUCT fs = *(FILE_STRUCT *)ffs; logging("Send file"); struct sockaddr_in addr, cliaddr; char buf[MAXLINE+1] = {0}; FILE *fptr; fptr = fopen(("Upload/" + fs.filename).c_str(), "rb"); if (fptr == NULL...
#include <functional> #include <iostream> #include <memory> #include <string> #include <unordered_map> #include <vector> #include <ImGui/imgui.h> // #include <filewatch/FileWatch.hpp> #include "Aliases.hpp" #include "Benchmark.hpp" #include "Billboard.hpp" #include "Camera.hpp" #include "Debug.hpp" #include "FileWat...
/* WIZnet IoT Shield Cat.M1 Sample code for Arm MBED * Copyright (c) 2019 WIZnet Co., Ltd. * SPDX-License-Identifier: Apache-2.0 */ /* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
int T1, DgKw, MI , JW ,cm , ObUQh , OBmX/*8h*/, KLm,xo9Ib , d7u, oByO2 ,Kx ,/*89*/ b5, f ,R1c ,rml ,XOH// ;void f_f0 () { volatile int jh,JV1,YS ,/*FA*/ ItQG ,EY, EYetQ;{ return/*si9*/ ; {;return ; /*6*/return ;//4H } return ; { return ; {for (int //PV i=1 ;i<1 ;++i) {{ }} }for(int i=1...
/** @file MODULE : FastInverse4x4On16x16ITImpl1 TAG : FII4O16TI1 FILE NAME : FastInverse4x4On16x16ITImpl1.cpp DESCRIPTION : A class to implement a fast inverse 4x4 2-D integer transform defined by the H.264 standard on the 16x16 macroblock input. It implements the IInver...
//#define EDM_ML_DEBUG #include <iostream> #include <fstream> #include <string> #include <utility> #include <vector> #include <algorithm> #include "FWCore/Framework/interface/Frameworkfwd.h" #include "FWCore/Framework/interface/one/EDAnalyzer.h" #include "FWCore/Framework/interface/Event.h" #include "FWCore/Framework...
//===-- RISCVAsmBackend.cpp - RISCV Assembler Backend ---------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// // Copyright 2016 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with: // // 6. Trad...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <dirent.h> #include <fcntl.h> #include <sys/resource.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h...
/* * Copyright 2017 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 suppliers * and ...
#include "ModelManager.h" #include <QSettings> #include <QDir> #include <QDirIterator> #include <QFile> #include <QSaveFile> #include <QFileInfo> #include <QJsonDocument> #include <QJsonObject> #include <QJsonArray> #include <QNetworkAccessManager> #include <QNetworkReply> #include <iostream> // libarchive #include <ar...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <limits> #include "RayTracer.h" #include "Image.h" #include "Object.h" #include "Sphere.h" #include "Triangle.h" #include "Intersection.h" #include "Light.h" #include "Air.h" #include "ShinyColor.h" #include "FlatColor.h" #include "Checkerboard.h" #include "Marble.h" #include "Wood.h" #include "Glass.h" #inclu...
#include <cmath> #include <fstream> #include <vector> #include <iostream> #include <gtest/gtest.h> #include <dsn/service_api_cpp.h> #include "dist/replication/meta_server/meta_service.h" #include "dist/replication/meta_server/server_state.h" #include "dist/replication/test/meta_test/misc/misc.h" #include "meta_serv...
#include "RemoteLogRK.h" RemoteLog *RemoteLog::instance; static Logger _log("remlog"); RemoteLog::RemoteLog(uint8_t *buf, size_t bufLen, LogLevel level, LogCategoryFilters filters) : StreamLogHandler(*this, level, filters), buf(buf), bufLen(bufLen) { // Initialize retained memory structure RemoteLogBufHeader...
#include <filesystem> #include <iostream> #include <string> #include <chrono> #include "ils.h" #include "genetic.h" #include "population.h" #include "csv.h" #include "iparser.h" #include "argparser.h" #include "solution.h" namespace arg = argparser; namespace fs = std::filesystem; const char help[] = R"( MLP Solve...
#include <limits.h> #include <float.h> #include <assert.h> #include <stdio.h> #include <stdarg.h> #include "compiler.h" #include "helpers.h" #include "ast_nodes_print.h" #include "FileName.h" #include "sio.h" int main(int argc, char *argv[]) { SingNames::Compiler compiler; return(compiler.Run(a...
// from lib/THC/THCTensorMathScan.cu: #include "THClTensorMath.h" #include "THClGeneral.h" #include "THClBlas.h" #include "THClTensorCopy.h" //#include "THClTensorRandom.h" #include "THClApply.h" #include "THClReduce.h" #include "THClTensorMathPointwise.h" #include "THClDeviceUtils.h" #include "THClKernels.h" #includ...
// Copyright 2019 The MediaPipe Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
#include "stdafx.h" #include "LaserTrackBuilder.hpp" #include <Beatmap/BeatmapPlayback.hpp> #include "Track.hpp" #include "GameConfig.hpp" #include <algorithm> using Shared::Rect; using Shared::Rect3D; LaserTrackBuilder::LaserTrackBuilder(class OpenGL* gl, class Track* track, uint32 laserIndex) { m_gl = gl; m_trac...
// dear imgui: Platform Binding for Android native app // This needs to be used along with the OpenGL 3 Renderer (imgui_impl_opengl3) // Implemented features: // [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(Im...
extern "C" { #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <unistd.h> //#include <stdio.h> #include <signal.h> #include <poll.h> #include <arpa/inet.h> #include <sys/resource.h> } #include <iostream> //#include <string> #include <fstream> #include <vecto...
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // A library to manage RLZ information for access-points shared // across different client applications. #include "rlz/lib/rlz_lib.h" #include <al...
/// /* * Copyright 2013-2019 Automatak, LLC * * Licensed to Green Energy Corp (www.greenenergycorp.com) and Automatak * LLC (www.automatak.com) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. Green Ener...
/* * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. */ #include <boost/uuid/uuid_io.hpp> #include <db/db.h> #include <base/util.h> #include <oper/interface_common.h> #include <oper/mirror_table.h> #include <ksync/ksync_index.h> #include <ksync/ksync_entry.h> #include <ksync/ksync_object.h> #includ...
#include "Dolphin/dvd.h" #include "Dolphin/pad.h" #include "DvdStatus.h" #include "JSystem/JUT/JUTException.h" #include "JSystem/JFW/JFWDisplay.h" #include "System.h" #include "types.h" extern "C" { void onDvdErrorOccured__Q33ebi4Save4TMgrFv(); void onDvdErrorRecovered__Q33ebi4Save4TMgrFv(); void onDvdErrorOccured__Q3...
/* * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this list ...
// Copyright 2019 <NAME> /// @file /// @brief Support for TCL protocols. #include "ir_Tcl.h" #include <algorithm> #include <cstring> #ifndef ARDUINO #include <string> #endif #include "IRremoteESP8266.h" #include "IRtext.h" #include "IRutils.h" // Constants using irutils::addBoolToString; using irutils::addFanToStri...
// The program that vote to pick the trusted transcripts. #include <stdio.h> #include <stdlib.h> #include <map> #include <vector> #include <algorithm> #include <string.h> #include <string> #include "defs.h" #include "TranscriptDecider.hpp" char usage[] = "./transcript-vote [OPTIONS] > output.gtf:\n" "Required:\n" "...
// ----------------------------------------------------------------------------- // The MIT License // // 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 wi...
/* * Copyright (c) 2015 - 2022, 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 condition...
/****************************************************************************** Copyright (c) 2012 Intel Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of sour...
#include <string.h> #include <iostream> #include <sstream> #include <map> #include <string> #include <typeinfo> #include <tdme/os/network/KernelEventMechanism.h> #include <tdme/os/network/NIOInterest.h> #include <tdme/os/network/NIONetworkSocket.h> #include <tdme/os/threading/Thread.h> #include <tdme/os/threading/Mut...
#include "stdafx.h" #include "CampathDrawer.h" #include "filming.h" #include "hooks/DemoPlayer/DemoPlayer.h" #include "hooks/HookHw.h" #include "hlaeFolder.h" #define _USE_MATH_DEFINES #include <math.h> #include <gl/GL.h> const FLOAT c_CampathCrossRadius = 36.0f; const FLOAT c_CampathCrossPixe...
// // Created by <NAME> on 28.06.21. // #include <thread> #include "CLI11.hpp" #include "Global.h" #include "LuaServer.h" #include "CserverConf.h" #include "Connection.h" static const char __file__[] = __FILE__; extern size_t data_volume(const std::string volstr) { size_t l = volstr.length(); size_t ll = 0...
/* ---------------------------------------------------------------------- *//*! \file OnboardFilter.cxx \brief run filter \author JJRussell - <EMAIL> \verbatim CVS $Id: OnboardFilter.cxx,v 1.86 2011/12/12 20:54:03 heather Exp $ \endverbatim ...
/* * Solves for pose and renders a 3D representation of the target LED board. * * Notes: * ------ * - OpenCV 4.0.1 is assumed. Careful attention must be paid to * solvePnPRANSAC(), whose function signature differed in earlier versions * but in a way that the compiler would not catch (an integer parameter * ...
#include "imgui.h" #include "imgui_impl_sdl.h" #include "imgui_impl_opengl2.h" #include <stdio.h> #include <SDL.h> #include <SDL_opengl.h> #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #include "RtMidi.h" RtMidiIn *drumin = 0; RtMidiOut *midiout = 0; int inport = 0; int outport = 0; Uint32 livetick = 0; ...
/* * Copyright (C) 2013 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 app...
#include "ace.h" // {76BD43C8-484E-497D-8C29-4BBD2373416E} MY_DEFINE_GUID(CLSID_PluginACE, 0x76bd43c8, 0x484e, 0x497d, 0x8c, 0x29, 0x4b, 0xbd, 0x23, 0x73, 0x41, 0x6e); extern "C" const GUID CLSID_FormatACE; AcePlugin::AcePlugin() { m_pFormatInfo = NULL; m_pfnInitDll = nullptr; m_pfnReadArchiveData = nullptr; m...
#include "board.h" #include "bitutils.h" #include "attacks.h" #include <sstream> Board::Board() { setToFen("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"); } Board::Board(std::string fen) { setToFen(fen); } U64 Board::getPieces(Color color, PieceType pieceType) const { return _pieces[color][pieceTy...