text
stringlengths
5.71k
33.7k
#include <iostream> #include <stdio.h> #include <sys/stat.h> #include <sys/time.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <dirent.h> #include <errno.h> #include <memory> #ifdef HAVE_SETXATTR #include <sys/xattr.h> #endif #include <grpc++/grpc++.h> #include <grpc/grpc.h> #include <grpcpp/...
/*++ Copyright (c) 2015 Microsoft Corporation --*/ #include "bv_simplifier_plugin.h" #include "arith_decl_plugin.h" #include "ast_pp.h" #include "reg_decl_plugins.h" class tst_bv_simplifier_plugin_cls { class mgr { public: mgr(ast_manager& m) { reg_decl_plugins(m); } }; a...
/* * Copyright 2020 ReliaSolve, 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...
#include "global.h" #include "InputHandler_Win32_ddrio.h" #include "RageLog.h" #include "RageUtil.h" #include "RageInputDevice.h" #include <windows.h> #include <process.h> #include "PrefsManager.h" typedef int (*thread_create_t)( int (*proc)(void*), void* ctx, uint32_t stack_sz, unsigned int priority); typedef void ...
/************************************** **** 2017-7-25 ****************** **** <NAME> **************** **** <EMAIL> **************** ***************************************/ #include "Fast_DiMaC.h" #include "Profiler.h" // ======================================================================== F_DiMaC::F_DiM...
#include "utilities.h" #include "state.h" #include "geometry.h" #include "variables.h" #include <math.h> using namespace utils; // ----------------------------------------------------------------------------- // This function calculates the forces on each node using the CCH update method void get_force_cch(){ ...
#include <cstdio> #include <cstdlib> #include <dlfcn.h> #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #include "Vhdd.h" #include "verilated.h" #include "verilated_vcd_c.h" #include "shared_mem.h" //---------------------------------------------------------...
#include "glsl_cross_compiler.h" #include <thirdparty/glslang/glslang/Public/ShaderLang.h> #include <thirdparty/glslang/SPIRV/SpvTools.h> #include <thirdparty/glslang/SPIRV/GlslangToSpv.h> #include <thirdparty/spirv-cross/spirv_cross.hpp> #include <thirdparty/spirv-cross/spirv_glsl.hpp> #include <thirdparty/spirv-cross...
// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com #include "zeusbot.h" #include "..\misc\misc.h" #include "..\misc\logs.h" #include "..\autowall\autowall.h" #include "..\misc\predicti...
// Copyright 2020 <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 #include <avr/io.h> #include <avr/interrupt.h> #include <u...
#include "GCdbYank.h" #include "GBase.h" #include <ctype.h> #define ERR_READ "GCdbYank: error reading from file.\n" #define ERR_READFMT "GCdbYank read error: incorrect file format.\n" #define ERR_RANGEFMT "Sequence range parsing error for key '%s'\n" #define ERR_RANGE_INVALID "Invalid range (%d-%d) specified for seque...
#include "Simulation.h" #include "helper/SignalLink.h" #include "helper/benchmark_helper.h" #include <random> #include <vector> #include <memory> #include <chrono> #include <algorithm> #include <string> #include <boost/thread/thread.hpp> #include <boost/thread/barrier.hpp> #include <boost/filesystem.hpp> #include <SFML...
/* * Utils.cpp * * Created on: 28/12/2011 * Author: arturo */ #include "Utils.h" #include <algorithm> #include <Poco/DirectoryIterator.h> #include <Poco/DateTimeFormatter.h> #include <Poco/LocalDateTime.h> #include <iostream> #include <fstream> #include <string> #include <algorithm> #include <iostream> #in...
/* $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...
//HEADER_GOES_HERE #include "../types.h" void *optbar_cel; BOOLEAN byte_634464; // weak void *PentSpin_cel; TMenuItem *sgpCurrItem; void *BigTGold_cel; int dword_634474; // weak char byte_634478; // weak void(__cdecl *dword_63447C)(); TMenuItem *dword_634480; // idb void *option_cel; void *sgpLogo; int...
#include "viewerinteractor.h" #include "mainwindow.h" #include <qcoreapplication.h> #include <pcl/common/angles.h> #include <pcl/filters/project_inliers.h> #include <pcl/common/transforms.h> #include <pcl/visualization/pcl_visualizer.h> #include <eigen3/Eigen/Eigen> #include <QMessageBox> #define PI 3.14159265 v...
/** * Legends of Code and Magic - https://www.codingame.com/ide/puzzle/legends-of-code-magic * * Code is a bit messy due to the "all-in-one-file" and "class precedence" rules. * * WIP (Work-in-Progress) - Final version will use a Monte-Carlo (or better) search/simulation approach. * * @author <NAME...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> #include <cmath> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored...
//***************************************************************************** // Copyright 2017-2018 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
#include "qrw/FootTrajectoryGenerator.hpp" // Trajectory generator functions (output reference pos, vel and acc of feet in swing phase) FootTrajectoryGenerator::FootTrajectoryGenerator() : gait_(NULL) , dt_tsid(0.0) , k_mpc(0) , maxHeight_(0.0) , lockTime_(0.0) , feet() , t0s(Vector4::Zero...
/* This file is part of solidity. solidity 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. solidity is distributed in the hope that i...
/*********************************************************************************** Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. (c) Copyright 1996 - 2002 <NAME> (<EMAIL>), <NAME> (<EMAIL>) (c) Copyright 2002 - 2004 <NAME> (c) Copyright 2002 - 2005 <NA...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <vector> #include <time.h> #include <float.h> #include "alfe/user.h" #include "alfe/main.h" #include "alfe/minimum_maximum.h" #include "alfe/colour_space.h" double random(double maximum) { return (static_cast<double>(rand())*maximum)/static_cast<dou...
//----------------------------------------------------------------------------// /* * Copyright (c) 2009 Sony Pictures Imageworks Inc * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
#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...
// Copyright 2019 The Fuchsia 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 <fcntl.h> #include <new> #include <fbl/auto_call.h> #include <fbl/auto_lock.h> #include <fbl/function.h> #include <fbl/intrusive_double_list.h> ...
/* C++ STL includes */ #include <iostream> /* std::cout, std::cin */ #include <numeric> /* std::accumulate */ #include <cstdlib> /* calloc, free */ #include <cstdio> /* printf */ #include <cmath> /* sqrt, pow */ #include <ctime> #include <string> #include <csignal> /* MOAB includes */ #include "moab/Core.hpp" #includ...
// ObjectView.cpp #include <stdio.h> #include <Application.h> #include <Bitmap.h> #include <Catalog.h> #include <Cursor.h> #include <Message.h> #include <MessageQueue.h> #include <Region.h> #include <Shape.h> #include <String.h> #include <Window.h> #include "ObjectView.h" #include "States.h" #undef B_TRANSLATION_CO...
//===-- MipsSEInstrInfo.cpp - Mips32/64 Instruction Information -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include <iostream> #include <cmath> #include <cstdlib> #include <cstring> #include <fstream> #include <iomanip> using namespace std; struct wnode { char id; int n; //编号 char text[20]; wnode *next; }; struct Gnode //存储产生式 { string gen; int id; }; char *Pathname = (char *)"data/"; char Filenam...
#include "recording.h" //#include "conversions.h" #include <set> #include <sstream> #ifdef XDFZ_SUPPORT #include <boost/algorithm/string/predicate.hpp> #include <boost/iostreams/device/file_descriptor.hpp> #include <boost/iostreams/filter/zlib.hpp> #endif // Thread utilities using Clock = std::chrono::high_resolution...
/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: examples/fit-model.cpp * * Copyright 2016 <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...
#include "bitpack_maximal_clique.hpp" BPMaximalClique::BPMaximalClique() { v_num = 0; e_num = 0; align_malloc((void**)&pool_base, 32, sizeof(int) * PACK_NODE_POOL_SIZE); align_malloc((void**)&pool_state, 32, sizeof(PackState) * PACK_NODE_POOL_SIZE); align_malloc((void**)&pool_mc, 32, sizeof(int) * ...
#include <Arduino.h> #include <Audio.h> #include <MIDI.h> #include <SD.h> #include <SerialFlash.h> #include <SPI.h> #include <Wire.h> #include <Constants.h> #include <Hardware.h> #include <MIDICC.h> #include <Voice.h> // Methods void noteOn(byte channel, byte note, byte velocity); void noteOff(byte channel, byte note...
/** \file ot-ex-snd.cpp \author <EMAIL> \copyright ABY - A Framework for Efficient Mixed-protocol Secure Two-party Computation Copyright (C) 2019 ENCRYPTO Group, TU Darmstadt This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public L...
// // Pad.mm // MarkPad Project // // (c) <NAME> - http://www.telecom-paristech.fr/~elc // (c) <NAME> - http://brunofruchard.com/ // Copyright (c) 2017/2020. All rights reserved. // #include <iostream> #include <cmath> #include "Conf.h" #include "MarkPad.h" #include "Pad.h" #include "Actions.h" #include "DataLogg...
#include <stdio.h> #include <iostream> #include <list> #include <thread> #include "avkid.hpp" using namespace avkid; #define NUMBER 15 #define MAXCHANELCOUNT 10 #define _PCM_MAX_ 1.0 #define _PCM_MIN_ (-1.0) AVFrame *yuv_scale(enum AVPixelFormat srcPixformat, int iSrcW, int iSrcH, const int lines...
/* * Copyright (C) 2018 Monument-Software GmbH * * 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 la...
#include "motis/railviz/railviz.h" #include "utl/erase_if.h" #include "utl/to_vec.h" #include "utl/verify.h" #include "tiles/fixed/convert.h" #include "tiles/fixed/fixed_geometry.h" #include "motis/hash_map.h" #include "motis/core/common/logging.h" #include "motis/core/access/bfs.h" #include "motis/core/access/edg...
#include "mainwindow.h" #include "./ui_mainwindow.h" #include <QtWidgets/QMessageBox> #include <QtWidgets/QPushButton> #include <exception> #include <vector> MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent) , ui(new Ui::MainWindow) { memset(enable_, 0, sizeof(enable_)); ui->setupUi(this); ...
//-***************************************************************************** // // Copyright (c) 2009-2013, // <NAME> Imageworks, Inc. and // Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd. // // All rights reserved. // // Redistribution and use in source and binary forms, with or wit...
/*************************************************************************** This is modified/forked driver from Adafruit's original BNO055 Driver/Library This is a library for the BNO055 orientation sensor Designed specifically to work with the Adafruit BNO055 Breakout. Pick one up today in the adafruit shop...
/* * Copyright © 2010 Intel Corporation * * 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, pub...
/* export.c - Export certificates and private keys. * Copyright (C) 2002, 2003, 2004, 2007, 2009, * 2010 Free Software Foundation, Inc. * * This file is part of GnuPG. * * GnuPG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as publish...
#include "tiger/regalloc/regalloc.h" #include "tiger/output/logger.h" extern frame::RegManager *reg_manager; template <typename T> std::set<T> Union(std::set<T> &s1, std::set<T> &s2) { std::set<T> result; std::set_union(s1.begin(), s1.end(), s2.begin(), s2.end(), std::inserter(result, result.begin())); return ...
/*Open a window that ask the user to click on a button called "Neighbor images". Another dialogbox pops up for the user to select image files to be montaged. Set the number of columns and rows. The neighboring image files are matched and saved in a text file (neighborimage.txt) */ #include "window.h" MainWindow::M...
// Simple decompiler to examine generated opcodes in TorqueScript // (e.g. to identify potential performance issues) // // NOTE // Only decompiles bytecode which has just been compiled, i.e. // this is not intended to decompile .dso's. // // Refer to LICENSE for license details. // static const char *evalStrin...
// Copyright (c) 1999, California Institute of Technology // U. S. Government sponsorship under NASA contract is acknowledged ////////////////////////////////////////////////////////////////////////////// // // SfocTime.cc // // This class defines the standard SFOC time object. It defines the // mechanism to inse...
// Blender_Recorder.cpp: implementation of the CBlender_Compile class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #pragma hdrstop #include "Layers/xrRender/ResourceManager.h" #include "Blender_Recorder.h" #include "Blender.h" void fix_texture_name(pstr); static int...
/* What is this? ~~~~~~~~~~~~~ This is my implementation of the code originally developed by javidx9 for a 2D shadow casting algorithm using the olcPixelGameEngine. License (OLC-3) ~~~~~~~~~~~~~~~ Copyright 2018 OneLoneCoder.com Redistribution and use in source and binary forms, with or without ...
#include <cstdlib> #include <cmath> #include <string> #include <vector> #include <cmath> #include "glsl.h" #include "glutwindow.h" #include "glApplication.h" #include <GL/freeglut.h> #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtc/matrix_transform.hpp> #include "FileHandling.hpp" #include "Fre...
#include <iostream> #include <cstdlib> #include <iomanip> #include <string> #include <fstream> #include <cmath> using namespace std; void add2Nom(); void encryptWord(); void calcGlassCost(); void productName_Price(); void largestInt(); void calcTemp(); void sum_N_Noms(); void sum_Avg_IO(); void char_IO(); void balanc...
// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 <NAME>. (aka PistonMiner) #include "elf2rel.h" #include <elfio/elfio.hpp> #include <boost/program_options.hpp> #include <boost/algorithm/string.hpp> #include <iostream> #include <fstream> #include <tuple> #include <deque> std::map<std::string, uint32_t...
/************************************************************/ /* NAME: <NAME> */ /* ORGN: UNH */ /* FILE: CourseChangeMRAS.cpp */ /* DATE: 2015-12-06 */ /**********...
#include "vm.hpp" #include "objectmemory.hpp" #include "global_cache.hpp" #include "gc/gc.hpp" #include "vm/object_utils.hpp" #include "builtin/array.hpp" #include "builtin/class.hpp" #include "builtin/fixnum.hpp" #include "builtin/array.hpp" #include "builtin/list.hpp" #include "builtin/lookuptable.hpp" #include "bu...
// // Created by mineozelot on 8/12/18. // #include <iostream> #include <unordered_set> #include "Level.hpp" #define TEXT_NEXT "Next:" #define TEXT_GAMEOVER "Game Over" #define TEXT_SCORE "Score:" #define TEXT_LINES "Lines:" #define TEXT_TETROMINOES "Tetrominoes:" #define SCORE_PER_ROW 40 #define SCORE_SPEED_MULT 0....
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
/* KeePass Password Safe - The Open-Source Password Manager Copyright (C) 2003-2021 <NAME> <<EMAIL>> 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 (a...
/* * DEBUG: section 58 HTTP Reply (Response) * AUTHOR: <NAME> * * SQUID Web Proxy Cache http://www.squid-cache.org/ * ---------------------------------------------------------- * * Squid is the result of efforts by numerous individuals from * the Internet community; see the CONTRIBUTORS file for ...
// Copyright 2019 iGEM Team Freiburg 2019 #include "finDrVS.h" void mImage(const std::string pdb) { // Read receptor file std::ifstream t(pdb); t.seekg(0, std::ios::end); size_t size = t.tellg(); std::string buffer(size, ' '); t.seekg(0); t.read(&buffer[0], size); t.close(); std::string output; //...
/* Copyright (c) 2021 Skyward Experimental Rocketry * Authors: <NAME>, <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the righ...
#include <iostream> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <chrono> #include <math.h> #include <omp.h> #define POLYNOMIAL_DEGREE 7 #define p_Nggeo 7 #define p_G00ID 1 #define p_G01ID 2 #define p_G02ID 3 #define p_G11ID 4 #define p_G12ID 5 #define p_G22ID 6 #define p_GW...
#include "ukf.h" #include "Eigen/Dense" #include <iostream> #include <fstream> using namespace std; using Eigen::MatrixXd; using Eigen::VectorXd; using std::vector; /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ign...
// File: gsGame.cpp // Author: <NAME> - Knights of the Compiler // Creation date: 2014-11-07 // Contact: http://plusminos.nl - @broervanlisa - gmail (bobrubbens) // Public #include <cmath> #include <SDL2/SDL.h> #include <string> #include <sstream> // Private #include "gamestates/gsGame.hpp" #include "mai...
#include "CPFMatchingExp.h" #include "ResourceManager.h" using namespace texpert; #define M_PI 3.14159265359 CPFMatchingExp::CPFMatchingExp() { m_verbose = false; m_render_helpers = true; m_verbose_level = 0; m_multiplier = 10.0; float angle_step_rad = m_params.angle_step / 180.0f * static_cast<float>(M_PI); ...
#define SK_GL const char* fileName = "assets/Ball.flr";//O const char* animationName = "Bounds"; //const char* fileName = "assets/Filip.flr"; //const char* animationName = "idle"; // const char* fileName = "assets/Teddy.flr"; // const char* animationName = "test"; #include "GrBackendSurface.h" #include "GrContext.h" ...
//=--3C.cpp-------------------------------------------------------*- C++-*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include <dirent.h> #include <string> #include "../types.h" #include "stubs.h" #ifndef NO_GLOBALS void *diabdat_mpq; void *patch_rt_mpq; void *prealpha_mpq; _SNETVERSIONDATA fileinfo; WNDPROC CurrentProc; int gbActive; #endif char gszVersionNumber[260]; char gszProductName[260]; char HeroUndecided...
/** * * @file Projet Puissance 4 * * @author <NAME>, <NAME>, <NAME>, <NAME> * * @date 21/12/12 * * @brief Puissance 4 * **/ #include <string> #include <iostream> #include <vector> #include <iomanip> // setw() #include <ctime> // clock() #include <cctype> // toupper() #include <cstdlib> //...
#include "IO.hpp" #undef DEBUG // TODO zorgvuldig alle switch events checken op geldigheid // Komen ze wel van een actieve matrix-node??? // Filteren direct bij input van matrix scanner. // Input filter bitmap construeren in switchMap()??? // soll[row][col] = filter[row][col] & (... // default switchMap( 0, 0, ...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
// -*- coding: utf-8 -*- // Copyright (C) 2012, 2013, 2014, 2015, 2016 Laboratoire de Recherche et // Développement de l'Epita (LRDE). // // This file is part of Spot, a model checking library. // // Spot is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License as ...
#include "ions.h" #include <assert.h> #include <cmath> #include <fstream> #include "arbitrary_electron_beam.h" #include "functions.h" #include <chrono> void Ions::set_twiss(Twiss& t) { twiss.bet_x = t.bet_x; twiss.bet_y = t.bet_y; twiss.alf_x = t.alf_x; twiss.alf_y = t.alf_y; twiss.disp_x = t.di...
#include <rrt_planners/planners/simple/SimpleQuickRRTstar.h> RRT::SimpleQuickRRTstar::SimpleQuickRRTstar() : Planner() { maxRange_ = 0.5; useKnearest_ = false; depth_ = 1; k_rrt_ = 0.0; r_rrt_ = 0.0; rewire_factor_ = 1.1; // useFirstPathBiasing_ = false; // pathBias_ = 0.0; // pathBias_stddev_ = 0.0...
/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2013-2019 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
/*========================================================================* * * * Whiteley Research Inc, Sunnyvale, CA USA, http://wrcad.com * * Copyright (C) 2017 Whiteley Research Inc, all rights reserved. * * ...
// Intel_Ipp_Test.cpp : Diese Datei enthält die Funktion "main". Hier beginnt und endet die Ausführung des Programms. // #include "gtest/gtest.h" #include "ipp.h" #include <stdio.h> #include <exception> #include <vector> #include <string> #include <chrono> #include <iostream> #include "FIR_StreamFilter.h" #include "...
#include "RendererWorld.hpp" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <optick.h> #include "DebugInfo.hpp" #include "Frustum.hpp" #include "Event.hpp" #include "AssetManager.hpp" #include "Renderer.hpp" #include "Shader.hpp" #include "GameState.hpp" #include "Section.hpp" #inclu...
// lab_2.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы. // #include <iostream> #include <fstream> #include "matrix.h" #include <random> #include <ctime> #include <intrin.h> #include <string.h> typedef short int Word; void fillRandom(Matrix<Word>& mat);...
#define DOCTEST_CONFIG_IMPLEMENT #include <doctest/doctest.h> #include "mpicontroller.h" #include "montecarlo.h" #include "analysis.h" #include "multipole.h" #include "docopt.h" #include "progress_tracker.h" #include "spdlog/spdlog.h" #include "move.h" #include <spdlog/sinks/null_sink.h> #include <spdlog/sinks/stdout_c...
// @(#) $Id: AliHLTTPCCAParam.cxx,v 1.2 2016/06/21 03:39:45 smirnovd Exp $ // ************************************************************************** // This file is property of and copyright by the ALICE HLT Project * // ALICE Experiment at CERN, All rights reserved. * // ...
#include "dataStructures.h" #include "matching2D.hpp" #include <opencv2/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/features2d.hpp> #include <iostream> #include <fstream> #include <iomanip> #include <vector> #include <cmath> #include <algorithm> #include <...
#include "editor_view.h" #include "render.h" #include "app.h" #include "util.h" #include "view_controls.h" #include "popup_view.h" #include "search.h" #include "indexer.h" #include <algorithm> #define COMPLETER_WIDTH 40 #define COMPLETER_HEIGHT 12 void editor_view_t::render() { if (!isVisible()) { ...
/** * Simplest Librtmp Receive * 本程序用于接收RTMP流媒体并在本地保存成FLV格式的文件,264文件及AAC-LC 48KHZ 16bit采样位数文件。 */ #include <stdio.h> #include "rtmp_sys.h" #include "log.h" #include <string.h> #include <stdlib.h> #include <cmath> using namespace std; /* *注意,这里的packetLen参数为raw aac Packet Len + 7; 7 bytes adts header */ static voi...
#include "cpp_includes_graph.hpp" #include "macro_tokenizer.hpp" #include "macro_parser.hpp" #include "utilities.hpp" #include <algorithm> // std::transform std::to_lower #include <fstream> #include <iostream> // std::cout #include <string> #include <string_view> #include <unordered_map> #include <unordered_set> n...
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: $RCSfile: ExtractSlice.cxx,v $ Language: C++ Date: $Date: 2008/03/13 23:32:41 $ Version: $Revision: 1.3 $ Copyright (c) Insight Software Consortium....
#include <limits> #include <tuple> #include <vector> #include "gtest/gtest.h" #include "qpp.h" using namespace qpp; // Unit testing "number_theory.hpp" /******************************************************************************/ /// BEGIN std::vector<idx> compperm(const std::vector<idx>& perm, /// const st...
#include <sstream> #include <iostream> #include <vector> #include <cassert> #include <cmath> #include "config.h" #ifdef HAVE_MPI #include <boost/mpi/timer.hpp> #include <boost/mpi.hpp> namespace mpi = boost::mpi; #endif #include <boost/shared_ptr.hpp> #include <boost/program_options.hpp> #include <boost/program_optio...
// // bitblt.cpp // Smalltalk-80 // // Created by <NAME> on 2/20/20. // Copyright © 2020 <NAME>. All rights reserved. // // MIT License // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Softw...
/* * rmparser.cpp * * Created on: 7. 3. 2021 * Author: ondra */ #include "rmparser.h" #include <cmath> #include <iomanip> #include <queue> #include <imtjson/object.h> json::NamedEnum<Drawing::Color> Drawing::strColor({ {Color::black, "black"}, {Color::white, "white"}, {Color::gray, "gray"} }); json::...
/* * File: ft_index.cpp * Copyright (C) 2008 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS) */ #include "common/errdbg/d_printf.h" #include "tr/ft/ft_index.h" #include "tr/btree/btree.h" #include "expat.h" #include "tr/ft/ft_cache.h" #include "tr/executor/base/sorted_seq...
// font.cpp // font loading and text display // Copyright 2015 <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 u...
#include <fnmatch.h> #include <celib/memory/allocator.h> #include <celib/macros.h> #include <celib/fs.h> #include <celib/containers/buffer.h> #include "celib/id.h" #include "celib/config.h" #include "celib/memory/memory.h" #include "celib/api.h" #include "celib/module.h" #include <celib/containers/hash.h> #include <c...
/* * Copyright (c) 2011 Samsung Electronics Co., Ltd 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 ...
/* <NAME> Assignent #2 Due Friday November. 4th 2016 This program will simulate a fish vendor who sells his storage based on the criteria that the oldest fish must be sold first. The command line is used to specify if a customer wants to buy fish, or if the merchant wants to stock his fish. There are se...
#include <iostream> #include <fstream> #include <cstdint> #include <cstdlib> #include <functional> #include <vector> #include <string> #include <set> #include <thread> #include <mutex> #include "hts.h" #include "vcf.h" #include "synced_bcf_reader.h" #include "TypeSwitcher.h" #include <boost/program_options.hpp> #includ...
#define LUA_LIB #include "ls_script_lib.h" #include <ls_base/ls_malloc.h> #include <ls_base/ls_socket.h> #include <lua.hpp> #include <assert.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #define QUEUESIZE 1024 #define HASHSIZE 4096 #define SMALLSTRING 2048 #define TYPE_DATA 1 #define TYPE_MORE 2 ...
#include "stdafx.h" #include "GraphicsUtils.h" #include "Shader.h" #include "PlanarTextureRenderer.h" #include "FrameBufferWrapper.h" #include "LifeContext.h" static const double UiWidth = 250.0; static const std::string BufferRendererVert = "data/life.vert"; static const std::string BufferRendererFrag = "data/life.f...
#include <cstdlib> // std::srand, std::rand #include <algorithm> #include <ros/ros.h> #include <tf/transform_listener.h> #include <std_msgs/Bool.h> #include <std_msgs/ColorRGBA.h> #include <geometry_msgs/Point.h> #include <geometry_msgs/PoseStamped.h> #include <nav_msgs/OccupancyGrid.h> #include <nav_msgs/MapMetaData.h...