text
stringlengths
3.08k
12.5k
// // hmmtocken.cpp // tocken // // Created by tuRen on 2021/5/20. // #include "hmmtocken.hpp" #include "probs.hpp" #include <float.h> #include <regex> #include <iostream> #define DOUBLE_MIN -3.14e100 extern unordered_map<char, double> begin_p; extern unordered_map<char, unordered_map<char, double>> trans_p; exte...
#include "GlobalFccGrid.hh" #include <algorithm> #include <cstdio> #include "MC_Vector.hh" #include "Tuple.hh" using std::vector; using std::min; using std::max; namespace { const vector<Tuple>& getFaceTupleOffset(); } GlobalFccGrid::GlobalFccGrid(int nx, int ny, int nz, double lx, d...
#include <stdio.h> #include <string.h> #include <signal.h> #include <stdlib.h> #include <sys/param.h> #include <unistd.h> #include "th_assert.h" #include "libbyz.h" #include "Statistics.h" #include "simple.h" int mem_size; char *mem; int used_mem; int first_read=1; int debug=0; int get_segment(int n, char **page) ...
/* * Copyright (C) 2011-2012 ProjectStudioMirage <http://www.studio-mirage.fr/> * Copyright (C) 2011-2012 https://github.com/Asardial */ #include "ScriptPCH.h" #include "throne_of_the_tides.h" #define SPELL_SQUEEZE DUNGEON_MODE(76026,95463) #define SPELL_ENRAGE 76100 #define SPELL_CURSE_O...
////////////////////////////////////////////////////////////////// // example92.cpp // // Copyright (c) 2015 <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 <iostream> // ********************...
#include <bits/stdc++.h> bool sortByFirstThenBySecond(const std::tuple<float,float, int> &a, const std::tuple<float,float, int> &b) { return (std::get<0>(a) == std::get<0>(b)) ? std::get<1>(a) > std::get<1>(b) : std::get<0>(a) > std::get<0>(b); } /* Create vector of cost_benefit O(M) */ void getCostBenefi...
/* BAREOS® - Backup Archiving REcovery Open Sourced Copyright (C) 2007-2012 Free Software Foundation Europe e.V. This program is Free Software; you can redistribute it and/or modify it under the terms of version three of the GNU Affero General Public License as published by the Free Software Foundation...
// Copyright (c) 2020, <NAME> // 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 of conditions a...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
#include <gtest/gtest.h> #include <iostream> #include <string> #include "CPUGraph.h" #include "GraphIO.h" #include "GraphPartition.h" #include "PreprocessGraph.h" #include "CPUBFS.h" #include "CPURBFS.h" #include "CPUVF2.h" #include "CPUWCOJ.h" const long long ans[2][kQueryType] = { {2224385LL, 55107655LL, 10504...
#include "zinfandel.h" #include "parse_args.h" #include "tensorOps.h" #include "threads.h" #include <Eigen/SVD> #include <complex> // Helper Functions Eigen::MatrixXcf GrabSources( Cx3 const &ks, float const scale, Index const n_src, Index const s_read, Index const n_read, std::vector<Index> const &spoke...
#include "include/progressive/incremental.h" #include "include/progressive/progressive_indexing.h" #include "include/util/file_manager.h" #include <algorithm> #include <chrono> #include <ctime> #include <iostream> #include <math.h> #include <stdlib.h> #include <string> #include <vector> #pragma clang diagnostic ignor...
/* scp, The sequential clique percolation algorithm. Copyright (C) 2011 Aalto University 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 (at your option) any late...
#include <bulk_load.h> void generate_tree( std::map<std::string, unsigned> &configU ) { std::string backing_file = "bulkloaded_tree.txt"; unlink( backing_file.c_str() ); std::vector<Point> all_points; std::optional<Point> next; if( configU["distribution"] == CALIFORNIA ) { PointGenerato...
// Active Directory Display Specifier Upgrade Tool // // Copyright (c) 2001 Microsoft Corporation // // class Repairer // // keeps a list of the localeIds to be extracted from the dcpromo.csv file, // and a list of operations to be represented in an LDIF file. // // 7 Mar 2001 sburns #include "headers....
//===- Packet.cpp - Packet Encode/Decode ------------------------*- C++ -*-===// // /// \file /// Encode/Decode TCP/IP layer packet. // // Author: zxh // Date: 2021/10/24 21:19:24 //===----------------------------------------------------------------------===// #include <vxproxy/Packet.h> #include <vxproxy/Route.h>...
#include "include/hdf5_getAlleleFreq.h" double calc_freq(NumericVector x) { int len = x.size(); std::vector<double> xc = Rcpp::as<std::vector<double> >(x); int n0 = std::count (xc.begin(), xc.end(), 0); int n1 = std::count (xc.begin(), xc.end(), 1); double maf = (double(n0)/len) + 0.5...
#include "BaseAuRegClass.h" /* The MIT License (MIT) Copyright (c) 2015, <NAME> <https://github.com/EthanRiley> Copyright (c) contributors 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...
// Author: <NAME> // Copyright (c) 2022 #include "smallbank_db.h" #include "unistd.h" #include "util/json_config.h" /* Called by main. Only initialize here. The worker threads will populate. */ void SmallBank::LoadTable(node_id_t node_id, node_id_t num_server, MemS...
// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it wil...
#include "Log.h" #include "PostSmoothing.h" nlohmann::json Log::_json = {{"runs", nlohmann::json::array()}}; nlohmann::json Log::_currentRun; void Log::instantiateRun() { auto time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); char mbstr[100]; std::strftime(mbstr, sizeof(mbstr)...
/* * Copyright (C) 2016 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 appl...
// Licensed under the Apache License, Version 2.0 (the 'License'); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2016, 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 de...
/* * MIRACL C++ functions zzn.cpp * * AUTHOR : <NAME> * * PURPOSE : Implementation of class ZZn functions using Montgomery * representation * NOTE : Must be used in conjunction with big.h and big.cpp * * Copyright (c) 1988-1997 Shamus Software...
// grappa #include <Grappa.hpp> #include <Collective.hpp> // stl #include <vector> #include <unordered_map> // query library #include "relation_io.hpp" #include "Query.hpp" // queries #include "squares.hpp" #include "squares_partition.hpp" #include "squares_bushy.hpp" #include "squares_partition_bushy.hpp" // graph...
/** * Copyright (C) 2016-2020 Xilinx, Inc * * Licensed under the Apache License, Version 2.0 (the "License"). You may * not use this file except in compliance with the License. A copy of the * License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
#include <iostream> #include <memory> #include <chrono> #include <numeric> #include <sys/stat.h> #include <future> #include <opencv2/opencv.hpp> #include "faceDetection.h" #include "faceRecognition.h" #include "faceAntiSpoofing.h" #include "cppSocket.h" const int g_numClass = 192; std::unordered_map<std::string, std:...
#include <cage-core/tasks.h> #include <cage-core/enumerate.h> #include <cage-core/pointerRangeHolder.h> #include "generate.h" #include <vector> #include <queue> #include <algorithm> namespace { typedef std::pair<uint32, uint32> QueueNode; // distance, tile typedef std::priority_queue<QueueNode, std::vector<QueueNo...
#include <iostream> #include <cmath> #include <queue> #include "anographk.hpp" #include "hcms.hpp" #include "utils.hpp" using namespace std; AnographK::AnographK(string _algorithm, string _dataset_name, int _time_window, int _edge_threshold, int _rows, int _buckets, int _topK) { algorithm = _algorithm; dataset_nam...
#include <ros/ros.h> #include <sensor_msgs/PointCloud2.h> #include <std_msgs/Empty.h> #include <std_msgs/Duration.h> #include <tf/transform_listener.h> #include <iostream> #include <fstream> sensor_msgs::PointCloud2 pcl; int32_t num; float* data; std::string path; ros::Publisher pub; ros::Subscriber offset_sub; FILE...
#include "image.h" #include <iostream> #include <fstream> Image::Image(Size2 s, uint16_t cc, Color *plt, uint8_t *alphas, uint8_t *pd) { this->hasIndexedColors = true; this->size = s; this->colorCount = cc; this->palette = plt; this->alphas = alphas; this->pixelData = pd; } Image::Image(Size2 ...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <cmath> using namespace std; vector<double> X, Y; vector< vector<double> > D; inline double sqr(double x) { return x*x; } inline double dist(i...
/* * Convert_Bionano.cpp * * Created on: Jun 20, 2016 * Author: fsedlaze */ //83 228 1 1 835435.0 864300.7 230129707.0 230159791.0 -1.00 deletion 181 182 -1 101 107 23768 23776 #include "Convert_Bionano.h" short trans_type_bio(std::s...
//------------------------------------------------- // // Class: L1MuGMTLFSortRankEtaQLUT // // // // Author : // <NAME> HEPHY Vienna // // Migrated to CMSSW: // <NAME> // //-------------------------------------------------- //----------------------- // This Class's Header -- //-------------------...
#include "Geometry/MTDNumberingBuilder/plugins/DDDCmsMTDConstruction.h" #include <utility> #include <sstream> #include "DetectorDescription/Core/interface/DDFilteredView.h" #include "DetectorDescription/Core/interface/DDCompactView.h" #include "Geometry/MTDNumberingBuilder/interface/GeometricTimingDet.h" #include "Ge...
#include "ragebot.h" // used: cheat variables #include "../core/variables.h" // used: cheat variables #include "../core/variables.h" // used: max distance, classindex, itemdefinitionindex #include "../sdk/definitions.h" // used: angle/vector calculations #include "../utilities/math.h" // used: is key pressed for bind...
#include "io.h" #include "utils.h" // Declare private prototypes void showHelpMenu(); void failWithError(std::string errorDescription); // Define public procedures void IO::parseInput(int argc, char** argv, InputData& inputData) { // Setup default values inputData.outputFolder = std::filesystem::curren...
#include "range_query_process.h" #include "../valid_doc_filter.h" RangeQueryProcess::RangeQueryProcess(const Json::Value& value, uint32_t ui_query_type) : QueryProcess(value) , ui_query_type_(ui_query_type) { } RangeQueryProcess::~RangeQueryProcess() { } int RangeQueryProcess::ParseContent(){ return Pars...
#include<GL/glut.h> #include<stdio.h> #include<string.h> #include<stdlib.h> void *currentfont; #define size 5 #define MAX 10 class button { int x1,y1,x2,y2; int state; char str[10]; public: button() { } button(int x11,int y11,int x22,int y22,char *str1) { x1=x11; y1=y11; x2=x22; y2...
// Keylogger.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include "pch.h" #define _CRT_SECURE_NO_WARNINGS //To Suppress time conversion Warning #define _FILE_PATH "C:\\Users\\<NAME>\\Desktop\\logs.txt" #include<Windows.h> #include <iostream> #incl...
# include "WorkList.h" LatticePoint* WorkList::getInitialInfo() { LatticePoint *latticePoint = NULL; if (analysisType == ConstantPropagation) { latticePoint = new CPLatticePoint(true, false, map<Value*, ConstantInt*>()); } else if (analysisType == CommonSubexpressionElimination) { latticePoint = new CSELat...
//============================================================================================================= /** * @file averagesceneitem.cpp * @author <NAME> <<EMAIL>>; * <NAME> <<EMAIL>>; * <NAME> <<EMAIL>>; * @version 1.0 * @date October, 2014 * * @section LICENSE * * Copyright (C)...
#include <string> #include <iostream> #include <sstream> #include "player.h" #include "font.h" #include "display.h" #include "game.h" #include "misc.h" #include "retreat.h" #include "audio.h" #include "items.h" #include "trolls.h" #include "lyrics.h" #include "automap.h" string trollLyricsFilename; void shopTroll...
//////////////////////////////////////////////////////////////////////////////// // // // This file is part of NCrystal (see https://mctools.github.io/ncrystal/) // // ...
//-***************************************************************************** // Copyright (c) 2001-2013, <NAME>. 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 so...
/* * Label.cpp * Roguelike * * Created by Daniel on 2/04/10. * Copyright 2010 qu<EMAIL>. All rights reserved. * */ #include "Label.h" #include "Roguelike.h" Label::Label() { Label(""); } Label::Label(std::string text) { parent = NULL; this->text = text; colour = Colour::white(); bgColour = Colour::bl...
#include "tensorflow/core/framework/op.h" #include "tensorflow/core/framework/op_kernel.h" #include "tensorflow/core/framework/shape_inference.h" #include "tensorflow/core/framework/common_shape_fns.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_types.h" #include "../compres...
// -------------------------------------------------------------------------------- // // EpicBasic Embedded Debugger // // -------------------------------------------------------------------------------- #define _ebD_Debugger 1 enum { _ebD_Debugger_Flag_LineTrace, _ebD_Debugger_Flag_CallTr...
#include <stdio.h> #include <stdlib.h> #include <time.h> #include <unistd.h> #include <sys/wait.h> #include <arpa/inet.h> #include <fcntl.h> #include <string.h> #include <signal.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <utility> #include <string> #include <i...
#include "StochSimulator.hpp" #include "libs/common.h" #include "simparams.h" Doub do_normal_partitioning_single ( Doub level , Doub proba , StochSimulator* stoch_simulator ) { Doub new_level = 0. ; for (Int m=0;m<level;m++) { if ( stoch_simulator->ran.doub () < proba ) new_level ++ ; } re...
/** path_test.cc <NAME>, 10 April 2016 Copyright (c) 2015 mldb.ai inc. All rights reserved. This file is part of MLDB. Copyright 2016 mldb.ai inc. All rights reserved. Test of coordinate classes. */ #include "mldb/plugins/tabular/transducer.h" #include "mldb/block/memory_region.h" #include "mldb/blo...
#define STR(x) #x #define STRING(x) STR(x) #include <flens/lapack/interface/include/config.h> namespace flens { namespace lapack { extern "C" { //-- dgerfs -------------------------------------------------------------------- void LAPACK_DECL(dgerfs)(const char *TRANS, const INTEGER...
// // Created by LHospital // #include "../include/ImageHandle.h" #include "../include/LaneFitting.h" #include <iostream> #include <ros/ros.h> #include <std_msgs/Float32.h> #include <libconfig.h++> using namespace libconfig; void config(Config &conf, ImageHandle_Paras *ih_paras, LaneFitParas *lf_paras); int main(i...
#include <cstdio> #include <cstring> #include <climits> #include <vector> #include <queue> #include <algorithm> using namespace std; #define NMAX 200000 struct Edge { int from; int to; int capacity; Edge *reverse_edge; }; static int n, m; static int s, t, ds, dt; static vector<int> N[NMAX + 10]; sta...
/* BAREOS® - Backup Archiving REcovery Open Sourced Copyright (C) 2000-2007 Free Software Foundation Europe e.V. Copyright (C) 2016-2016 Bareos GmbH & Co. KG This program is Free Software; you can redistribute it and/or modify it under the terms of version three of the GNU Affero General Public Lice...
// VCA.cpp // // By <NAME>, 2011. #include <iostream> #include <fstream> #include <vector> #include <baclibrary.h> #include "ASC.h" #include "VCA.h" using namespace std; using namespace sr; // Given an ASC and an alphabet size, determine the number of rows in the problem. int numRows(const ASC &asc, int v) { int s...
/* Starshatter OpenSource Distribution Copyright (c) 1997-2004, Destroyer Studios LLC. 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 t...
#include <ncurses.h> #include <boost/thread/thread.hpp> #include <boost/thread/mutex.hpp> #include <boost/bind.hpp> #include <stdlib.h> #include <time.h> #include "GameBoard.h" #include "Piece.h" #include "Style.h" void initwin(); void gameThread(); void keyPress(char ch); void fastClear(WINDOW* win); void draw(); vo...
#include "mysql_connection.h" #include <cppconn/driver.h> #include <cppconn/exception.h> #include <cppconn/resultset.h> #include <cppconn/statement.h> #include <cppconn/prepared_statement.h> #include "../config/config.cpp" #include <stdexcept> #include <string> #include <curl/curl.h> #include <iostream> #include <rege...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "gmm_vector_d.h" #include <cmath> #include <vector> #include "../../shared/defs.h" #include "../../shared/matrix.h" using std::vector; #include "../../shared/gmm.h" #include "../manualEigen/gmm_d.h" #include "../../shared/gmm_eigen...
#include "stdafx.h" #include "elements.h" // ### GAME BALANCING ### #define STEAL 10 // Stealing amount by Pirate #define REPAIR 5 // Repair cost on Repair #define CHANCET 3 // Chance of Treasure #define CHANCEL 1 // Chance of Port // ###################### using namespace std; int Ship::count1 = 0; // int S...
/************************************************************************************************* GBDHash -- Copyright (c) 2020, <NAME>, KIT - Karlsruhe Institute of Technology Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwa...
#include "tour.hh" #include "tsp_prob.hh" #include "meta_utility.hh" #include <iostream> using namespace std; tour::tour() : A(), B() { // create a cannonical tour const unsigned size=tsp_prob::instance().size(); A.reserve(size); B.reserve(size); for (unsigned i=0; i<size; ++i) { A.push_back(i); } ...
#include "CEditorApplication.h" #include "CUIRelay.h" #include "MacOSExtras.h" #include "UICommon.h" #include <Common/Log.h> #include <Core/NCoreTests.h> #include <Core/Resource/Script/NGameList.h> #include <QApplication> #include <QIcon> #include <QStyleFactory> #include <QtGlobal> // Redirect qDebug output to the ...
/* * @Date: 2020-06-15 15:24:41 * @LastEditors: LHD * @LastEditTime: 2020-06-19 19:58:27 * @FilePath: \c++exercise\liantong.cpp * @Description: */ #include <opencv2\opencv.hpp> #include <iostream> #include <vector> #include <stack> using namespace std; using namespace cv; typedef struct _Feathe...
// LA4128 Steam Roller // <NAME> #include<cstdio> #include<cstring> #include<queue> using namespace std; const int INF = 1000000000; const int maxn = 50000 + 10; struct Edge { int from, to, dist; }; struct HeapNode { int d, u; bool operator < (const HeapNode& rhs) const { return d > rhs.d; } }; struct D...
#include "command.h" #include <string> #include <deque> #include <iostream> //extern oe_enclave_t *enclave; #include <boost/algorithm/string/split.hpp> #include <boost/algorithm/string/classification.hpp> #include "../include/command.h" long int openvdap::Command::ms = 0; void openvdap::Command::time_log(const char *t...
// Copyright 2018 Obelisk Inc. #include "CgMinerTypes.h" #include "Crow.h" #include "utils/CgMinerUtils.h" #include "utils/SafeQueue.h" #include "utils/utils.h" #include <array> #include <boost/asio/buffer.hpp> #include <boost/asio/io_service.hpp> #include <boost/asio/ip/tcp.hpp> #include <boost/asio/write.hpp> #inclu...
/*- * Copyright 2017-2018 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions ...
#include "record_and_replay_module.h" using namespace std; record_and_replay_module::record_and_replay_module() :RobotInterface(){ } record_and_replay_module::~record_and_replay_module(){ } RobotInterface::Status record_and_replay_module::RobotInit(){ print("Record & Replay module::init"); // initializeing...
#include <iostream> #include <vector> #include <sstream> #include <string> #include <algorithm> #include <array> #include <numeric> #include <utility> extern char const* pTest; extern char const* pData; using Answer = size_t; using Age = int; namespace part1 { using Fish = std::vector<int>; void print_fish(...
#include <vector> #include <string> #include <cstring> #include <cstdint> #include <cassert> #include <netinet/ip.h> #include <sys/time.h> #include <prism_switch/prism_switch_client.h> struct psw_config_req { uv_udp_t super; uv_buf_t sbuf; psw_config_cb user_cb; void *user_data; uv_timer_t retry_timer; ui...
/** * Copyright (C) 2020 Tristan. All Rights Reserved. * This file is licensed under the BSD 2-Clause license. * See the COPYING file for licensing information. */ #include "connection/connection.hpp" #define TLS_LIBRARY_OPENSSL #include <sstream> #include <cerrno> #include <ctime> #include <sys/socket.h> #inc...
#include "Definitions.h" #include <ctime> #include "HaarDetector.h" #include "LocalSettings.h" #include "Visualizer.h" #include <iomanip> using namespace std; using namespace cv; HaarDetector::HaarDetector(const string& name) : name_(name), cascadeName_("haarcascade_frontalface_alt.xml"), scaleFactor...
// Copyright (c) 2022 <NAME> // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merg...
#include <Urho3D/Core/Context.h> #include <Urho3D/Graphics/StaticModel.h> #include <Urho3D/Graphics/StaticModelGroup.h> #include <Urho3D/IO/Log.h> #include <Urho3D/Graphics/Model.h> #include <Urho3D/Graphics/Material.h> #include "Grass.h" #include "GlobalVars.h" using namespace Urho3D; Grass::Grass(Context *context)...
#include "Diff.hpp" #include <algorithm> #include <cassert> #include <git2/diff.h> #include "Commit.hpp" #include "Delta.hpp" #include "Tree.hpp" static_assert(std::is_move_assignable_v<gitpp::Diff>, ""); static_assert(std::is_move_constructible_v<gitpp::Diff>, ""); namespace { template <typename DeltaT> int file...
#define XK_MISCELLANY #define XK_LATIN1 #include <X11/keysymdef.h> #include <X11/Xlib.h> // will include X11 which #defines None... Don't mess with order of includes. #include <X11/Xutil.h> #include <unistd.h> // syscall #undef None #include <filesystem> #include <stdio.h> #include "imgui.h" #include "imgui_impl_bgfx.h...
// // Created by akaimo on 2018/11/28. // #include <stdio.h> #include <stdlib.h> #include <pcap.h> #include <netinet/ip.h> #include <net/ethernet.h> #include <arpa/inet.h> #include <gvc.h> #include <string> #include <map> #include <set> void ethernetPacketHandler(u_char *userData, const struct pcap_pkthdr *pkthdr, co...
#include "Application.h" #include "Globals.h" #include "GameObjectManager.h" #include "GameObject.h" #include "ComponentMesh.h" #include "ComponentMaterial.h" #include "ComponentCamera.h" #include "ModuleFileSystem.h" #include "JsonSerializer.h" #include "MathGeoLib\include\MathGeoLib.h" #include "Assimp\Assimp\incl...
/* * MagStripe - Read data from a magnetic stripe card. * * Copyright (c) 2010 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without...
/*++ THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. Copyright (C) Microsoft Corporation. All rights reserved. */ #include <windows.h> #in...
/* This software and supporting documentation are distributed by * Institut Federatif de Recherche 49 * CEA/NeuroSpin, Batiment 145, * 91191 Gif-sur-Yvette cedex * France * * This software is governed by the CeCILL-B license under * French law and abiding by the rules of distribution of free soft...
#include <iostream> #include <fstream> #include <sstream> #include "modeltoretopo.h" #include "topologypoint.h" #include "topologyhelpertriangle.h" #include "topologyhelperquad.h" using namespace std; ModelToRetopo::ModelToRetopo() { } void ModelToRetopo::importModelAsRetopo(const char *fileName, Topology *topology...
// Author: <NAME> // Stegnography // Compile as ` g++ -std=gnu++11 stegno.cpp -lgdi32 ` #include <iostream> #include <fstream> #include <vector> #include <exception> #include "D:/CodeSoftwareSetup/CImg-2.7.1/CImg.h" #define COLOR 1 #define BITS_PER_CHAR 8 #define MAX_BITS_SIZE 20 #define C_UCHAR const unsigned char #...
// // Balls.cpp // Balls_and_links // // Created by <NAME> on 03/02/2014. // // #include "Balls.h" BouncingBall::BouncingBall(){} BouncingBall::BouncingBall( ofPoint posin, ofVec2f speedin ){ pos = posin; speed = speedin; size = 10; thresh = 0.00001; bounce = false; ...
#include "game.hpp" /* Constructor No input provided and the default board is used */ Game::Game() : initial_board(this->build_initial_board(std::string())) { } /* Constructor Input string provided for the board */ Game::Game(const std::string& clistr) : initial_board(this->build_initial_board(clistr)) { } ...
#include "WebServer.h" #include <Arduino.h> #include <ESPAsyncWebServer.h> #include <Preferences.h> #include <SPIFFS.h> #include <Wifi.h> #include <WifiConfig.h> #define CORS_HEADER "Access-Control-Allow-Origin" #define CONTENT_TYPE_JSON "application/json" #define CONTENT_TYPE_PLAIN "text/plain" #define CONTENT_TYPE_H...
#include "stdafx.h" #include "stdio.h" #include "FlyCapture2.h" #include <iostream> #include <sstream> #include <iomanip> #include <vector> #include <future> #include <chrono> #include <ctime> #include <thread> #include <string> #include <sys/param.h> #include <unistd.h> using namespace FlyCapture2; using namespace s...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright ( _c) 2000-2009 Torus K<NAME> Ltd Permission is hereby granted, free of charge, to any person obta...
#pragma once #include <boost/mpi.hpp> #include <boost/functional/hash.hpp> #include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_iarchive.hpp> #include <boost/archive/binary_oarchive.hpp> #include <boost/archive/binary_iarchive.hpp> #include <boost/serialization/unordered_map.hpp> #include "tcp_ada...
#include <Rcpp.h> //#include <RcppArmadillo.h> #include <math.h> #include <cmath> # define M 1000 using namespace Rcpp; // [[Rcpp::export]] NumericVector rngCppScalar() { NumericVector x(4); x[0] = 1; x[1] = 2; x[2] = 3; x[3] = 4; return(x); } /*** R k <- 3 #Numero de kluster deseados test:3, 4 set...
#include <gtest/gtest.h> #include <list> #include <limits> #include <string> #include <stdexcept> #include <integer/integer.hpp> TEST(Constructor, Empty_constructor) { Integer a; EXPECT_EQ(a, 0); EXPECT_EQ((int)a, 0); EXPECT_EQ(a, Integer(a)); // Test copy constructor } TEST(Constructor, Int_constructor) { ...
#include "p2Defs.h" #include "p2Log.h" #include "Application.h" #include "QuestManager.h" #include "FileSystem.h" #include "SceneManager.h" #include "QuestHUD.h" #include "Gui.h" QuestManager::QuestManager() : Module() { name = ("quest"); } QuestManager::~QuestManager() { for (std::list <Quest*>::iterator it = All...
#include <bits/stdc++.h> using namespace std; // Macros #ifdef D3BUG #define cerrd if (D3BUG) cerr #else #define cerrd if (false) cerr #endif // Types template<class T> using vector1D = vector<T>; template<class T> using vector2D = vector<vector1D<T>>; template<class T> using vector3D = vector<vector2D<T>>; ...
// SPDX-License-Identifier: BSD-3-Clause #include <cstdint> #include <cstring> #include <substrate/index_sequence> #include <tm4c123gh6pm/platform.hxx> #include <tm4c123gh6pm/constants.hxx> #include <usb/core.hxx> #include "platform.hxx" #include "tm4c123gh6pm.hxx" constexpr uint32_t applicationBaseAddr{0x00002000U}; ...
#include "TestShadowScene.h" #include <glm/gtc/matrix_transform.hpp> #include <iostream> TestShadowScene::TestShadowScene() { lightPos = glm::vec3(-2.0f, 4.0f, -1.0f); simpleDepthShader = new Shader("Resources/Shaders/DepthShader.vs", "Resources/Shaders/DepthShader.fs"); shader = new Shader("Resources/Sha...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> #include <cmath> using namespace std; double sqr(double x) { return x*x; } double dist(double x1, double y1, double x2, double y2) { return sqrt(sqr(x1...
// // Created by peeweep on 2019-10-18. // #include "couponList.h" #include <QApplication> #include <QComboBox> #include <QDateTime> #include <QDebug> #include <QDir> #include <QFileInfo> #include <QIcon> #include <QJsonArray> #include <QJsonDocument> #include <QJsonObject> #include <QLabel> #include <QLayout> #include...