text
stringlengths
3.08k
12.5k
// takens estimator for the correlation dimension (D_2) // // <NAME> 1998 #include "mextools/mextools.h" // this includes the code for the nearest neighbor searcher and the prediction routines #include "NNSearcher/point_set.h" #include "include.mex" template<class METRIC> void compute(int nlhs, mxArray...
// Copyright (c) 2014, <NAME> #include "./charmove.h" #include <GLFW/glfw3.h> #include <algorithm> #include "engine/game_engine.h" CharacterMovement::CharacterMovement(engine::GameObject *parent, float horizontal_speed, float rotationSpeed_PerS...
// rrrobot_node.cpp #include <algorithm> #include <vector> #include <string> #include <stdlib.h> #include <time.h> #include <fstream> #include <iostream> #include <ros/ros.h> #include <osrf_gear/LogicalCameraImage.h> #include <osrf_gear/Order.h> #include <osrf_gear/Proximity.h> #include <osrf_gear/VacuumGripperState...
#include<bits/stdc++.h> #include<iostream> #include<string> #include<vector> #include<cmath> #include<list> #include <algorithm> #include<vector> #include<set> #include <cctype> #include <cstring> #include <cstdio> #include<queue> #include<stack> #include<bitset> #include<time.h> #include<fstream> /******************...
#pragma once #include "stdafx.h" #include "os_input.h" #include "os_support.h" #define checkhf(expr, format, ...) if (FAILED(expr)) \ { \ fprintf(stdout, "CHECK FAILED: %s:%d:%s " format "\n", __FILE__, __LINE__, __func__, ##__VA_ARGS__); \ CString dbgstr; ...
#include "smartverticalflowlayout.h" #include <QtWidgets> SmartVerticalFlowLayout::SmartVerticalFlowLayout(QWidget *parent) : QLayout(parent), m_hSpace(-1), m_vSpace(-1), m_maxRowCount(-1), m_isLayoutModified(false) { setContentsMargins(-1, -1, -1, -1); } SmartVerticalFlowLayout::~SmartVert...
/** @author - <NAME> Problem - Idea - Concept - */ #include <bits/stdc++.h> #define m0(a) memset(a , 0 , sizeof(a)) using namespace std; /************************************** END OF INITIALS ****************************************/ /** * Linear time Manacher's algorithm to find longest palindromic substr...
#include <config.h> #include <boost/config.hpp> #include "am++/am++.hpp" #include <iostream> #include <pthread.h> #include <boost/thread.hpp> #include <boost/thread/barrier.hpp> #include <boost/bind.hpp> #define TRANSPORT_HEADER <am++/BOOST_JOIN(TRANSPORT, _transport).hpp> #include TRANSPORT_HEADER #include <time.h> #...
#include <genecis/graphics/sphere.h> #include <ctime> #include <cstring> using namespace genecis::graphics ; /** * Constructor */ Sphere::Sphere(integral_type radius, size_type rings, size_type sectors) : _vertices(rings * sectors * 3, 0), _normals(rings * sectors * 3, 0), _texcoords(rings * sectors...
// This file is part of AsmJit project <https://asmjit.com> // // See asmjit.h or LICENSE.md for license and copyright information // SPDX-License-Identifier: Zlib #include <asmjit/core.h> #if !defined(ASMJIT_NO_X86) #include <asmjit/x86.h> #endif #include <stdio.h> using namespace asmjit; static char accessLetter...
#include <iostream> #include <iomanip> #include <string> #include <map> #include <random> #include <cmath> #include <set> #include <array> // g++ -g -O3 search.cpp -Wno-c++11-extensions -o search std::random_device r; std::default_random_engine e1(r()); //largest K to search for const uint MAX_K = 20; class hyperg...
/* gammaGenerator.cpp - This file is part of the Bayesembler (v1.1.1) The MIT License (MIT) Copyright (c) 2014 <NAME> and <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 restric...
#include "controller.h" #include "classes/topping/topping.h" #include "classes/container/container.h" #include "classes/scoop/scoop.h" #include "classes/order/order.h" #include <string> #include <iostream> void Controller::cli() { int cmd = -1; while (cmd != 0) { cmd = m_view.select(); execute(cmd); } } ...
#include "RipleyK.h" void RipleyK(char * outfile, simplmat <float>& ftr, int numAnn, float widAnn, int treeDensity, int xDist, int yDist ) { simplmat <float> ripknl(100); simplmat <float> pairs(100); simplmat <float> kripley(100); simplmat <float> lripley(100); simplmat <float> ce95(100); simplmat <floa...
#include <string> #include "quad.hpp" double QuadTree::Node::diffThreshold = 45.0; std::map<char, Color> QuadTree::Node::colorMap = QuadTree::Node::initializeColorMap(); std::map<char, Color> QuadTree::Node::initializeColorMap() { std::map<char, Color> res; res['k'] = Color::BLACK; res['b'] = Color::BLUE; res['g...
/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2009-2012, <NAME>, Inc. * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
#include "Player.h" Player::Player(Level *level, SDL_Texture* sprite, float x, float y, int id) : Entity(sprite, x, y) , m_level(level) { std::printf("Player position: %fx%f\n", m_x, m_y); m_leftPressed = false; m_rightPressed = false; m_upPressed = false; m_downPressed = false; m_onG...
#include "markovdp.h" void move(const std::valarray<int>&, const std::valarray<int>&, std::map<std::valarray<int>, double, valarray_comp>&,double&); void move_rdm(const std::valarray<int>&, const std::valarray<int>&, std::map<std::valarray<int>, double, valarray_comp>&,double&); void warp(const std::valarray<int>&, st...
#include "CapstoneChunk.h" using namespace minidis; #define MAX_ARG_NUM 4 bool CapstoneChunk::fetchTargetAddr(const size_t argNum, TargetValue &targetVal, cs_detail *m_detail) const { if (!m_detail) return false; size_t cnt = static_cast<size_t>(m_detail->x86.op_count); if (argNum >= cnt) return false; ...
/// @example mirror/chai_on_mirror.cpp /// /// Copyright <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 <mirror/chaiscript.hpp> #include <mirror/sequence.hpp> #include <cassert> #include <...
// Copyright 2010 <NAME>. // #include <sstream> #include <iostream> #include <dynamic-graph/entity.h> #include <dynamic-graph/factory.h> #include <dynamic-graph/exception-factory.h> #include <dynamic-graph/pool.h> #include <dynamic-graph/signal-ptr.h> #include <dynamic-graph/signal-time-dependent.h> #define BOOST_TES...
#include <iostream> #include <vector> using namespace std; void fun(vector<int>& ary) { const int n = ary.size(); if (n == 1) { cout << ary[0] << '\n'; return; } vector<vector<int>> sols(n); sols[n - 1].push_back({ary[n - 1]}); sols[n - 2].push_back({ary[n - 2]}); vector<i...
#include "MainWindow.h" #include <QApplication> #include <opencv2/core/utility.hpp> #include <opencv2/photo.hpp> #include <opencv2/imgcodecs.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/highgui.hpp> #include <opencv2/imgproc/imgproc_c.h> #include <iostream> using namespace cv; using namespace std; #define ER...
/** json_utils.cc <NAME>, 10 November 2013 Copyright (c) 2013 mldb.ai inc. All rights reserved. This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. Utilities for JSON values. */ #include <algorithm> #include "json_utils.h" #include "mldb/utils/string_functions.h" #include "mld...
// testQtrCPP.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <iostream> #include <d3d11_1.h> #include <DirectXMath.h> #include "SimpleMath.h" #include "Stopwatch.h" #include <chrono> // for high_resolution_clock #include <stdio.h> #include <conio.h> #include "dcm_t....
#include<bits/stdc++.h> using namespace std; #define ls (x<<1) #define rs (ls|1) const int maxN=310; const int maxM=11; const int maxNN=maxN*maxM*9; const int maxMM=maxNN*8; const int inf=1000000000; class Edge { public: int v,flow,w; }; int n,m; int ecnt=-1,Hd[maxNN],Nt[maxMM],idcnt=2,S=1,T=2; Edge E[maxMM]; int I...
#include <boost/program_options.hpp> //#include <experimental/filesystem> #include <boost/filesystem.hpp> #include <iostream> #include <string> #include <regex> #include <cstdlib> #include <armadillo> #include "atomsciflow/parser/cif.h" #include "atomsciflow/parser/xyz.h" #include "atomsciflow/base/crystal.h"...
#include "silvia_display.h" #include "silvia_modes.h" SilviaDisplay::SilviaDisplay(TwoWire* twi) : Adafruit_SSD1306(SCREEN_WIDTH, SCREEN_HEIGHT, twi, -1) , mass_subscriber_("brew_mass", &SilviaDisplay::massCallback, this) , t_power_on_(0) , power_status_last_update_(false) , mass_(0) , t_mass_u...
/* 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...
#include <stddef.h> #include <type_traits> #include <iostream> #include <cassert> #include <functional> #include <vector> #include <upcxx/upcxx.hpp> #include "util.hpp" using namespace upcxx; volatile bool cuda_enabled; upcxx::cuda_device *gpu_device; upcxx::device_allocator<upcxx::cuda_device> *gpu_alloc; std::vec...
/**************************************** * NDS NeHe Lesson 11 * * Author: Dovoto * ****************************************/ // include your ndslib #include <nds.h> #include <malloc.h> #include <stdio.h> //needed to load pcx files #include <nds/arm9/image.h> #include <nds/arm9/trig_lut.h> #include...
#include<glad/glad.h> #include<GLFW/glfw3.h> #include<iostream> void FramebufferSizeCallback(GLFWwindow* window, int width, int height); void ProcessInput(GLFWwindow* window); //setting const unsigned int SCR_WIDTH = 800; const unsigned int SCR_HEIGHT = 600; const char* vertexShaderSource = "#version 33...
//======================================================================== // poly-symm.cc //======================================================================== // Ported from the PolyBench benchmark suite // // Reference: // ---------- // http://www.cs.ucla.edu/~pouchet/software/polybench/ // // Description: // -...
#include "Contour.h" #include <algorithm> bool cmpByY(const Coord2 &a, const Coord2 &b) { return a.y() < b.y(); } Contour::Contour(const SegmentContour &segCont) { if (segCont.size() < 2) { return; } // TODO: analyze and fix resize(segCont.size()); (*this)[0] = segCont[0].from; for (unsigned i = 1; i < size();...
#include <iostream> #include <cstdint> #include <utility> #include <glad/glad.h> #include <GLFW/glfw3.h> struct triangle { GLuint vao = 0; GLuint vbo = 0; triangle(GLuint vao = 0, GLuint vbo = 0) noexcept : vao{vao}, vbo{vbo} {}; triangle(const triangle&) noexcept = delete; triangle(triang...
/* * Copyright 2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
#include <json/json.h> #include "MandCEnvironment.h" #include <iostream> #include "MandCEnvironmentState.h" #include <vector> #include "StateNode.h" #include "MandCAction.h" void MandCEnvironment::loadEnvironment(string fileName) { StateNode *initialNode = NULL; MandCEnvironmentState *initialState = new MandCE...
/* * Copyright <NAME> 2010 */ #include <nds.h> #include "colourpicker.h" #include "button.h" #include "sliderhorizontal.h" #include "woopsifuncs.h" using namespace WoopsiUI; ColourPicker::ColourPicker(s16 x, s16 y, u16 width, u16 height, const WoopsiString& title, u16 colour, GadgetStyle* style) : Ami...
/************************************************************************* * * * Vega FEM Simulation Library Version 2.2 * * * * "corotational lin...
#include <algorithm> #include <cstdio> #include <cstring> #include <map> #include <queue> #include <stack> #include <vector> #define int ll void fuck(bool exp) { while (!exp) exp = 0; } typedef long long ll; const int N = 3e4 + 43, M = 2e6 + 62, K = 2e3 + 32; struct { struct edge { int to, next, w; } e[M << 1]; ...
/* * libews_c_subscribe.cpp * * Created on: Jan 5, 2015 * Author: stone */ #include "libews.h" #include <memory> #include <stdlib.h> #include <map> #include <string> #include <stdio.h> using namespace ews; #define ON_ERROR_RETURN(x) \ if ((x)) { \ if (pp_err_msg) \ *pp_err_msg = strdup(error.GetEr...
extern "C" { #include "cec17.h" } #include <iostream> #include <vector> #include <random> #include <math.h> using namespace std; //int TOTAL_EVALS=0; // Parámetros float INIT_CELERITY = 1; float DECREASE_SUCCESS = 0.99; float DECREASE_FAIL = 0.9; float BASE_WEIGHT = 0.2; float PROB_SPLIT = 0.9; // Coeficiente que ...
// Copyright (c) 2013 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distr...
#include "telabrium/mesh.h" std::vector<Mesh*> Mesh::meshes{}; Mesh::Mesh(std::vector<Vertex> vertices, std::vector<unsigned int> indices, std::vector<Texture> texs, std::vector<std::shared_ptr<Material>> mats, glm::mat4 transform){ this->vertices = vertices; this->indices = indices; this->textures = texs; ...
/* Copyright 2016 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "Shader.h" #include "Camera.h" #include "World.h" #include "State.h" #include "Menu.h" #include "Crosshair.h" #include "Light.h" #include <iostream> #include <functio...
/* * 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<array> #include<cstdint> #include<algorithm> #include<random> #include<iostream> static constexpr unsigned int LG_NUM_BLOCKS=3; static constexpr unsigned int NUM_BLOCKS=1U << LG_NUM_BLOCKS; using handle_t=uint8_t; using index_t=uint_fast8_t; using mask_t=std::uint8_t; static constexpr unsigned int MASK_SIZE...
#include "thread_pool.h" #include "job.h" #include <Windows.h> //****************************************************************************************** // @name : staticEntryPoint // // @description : This is the static thread entry point. This is used as a wrapper // ...
#include <cstdio> #include <iostream> #include <numeric> // Fraction in integers of integers class Fraction { int numerator; int denominator; void simplify(); public: Fraction(int, int); void set(int, int); double toDouble() const; // operators Fraction operator+(const int&) const; ...
/** * @file trajectoryError.cpp * @author <NAME> (<EMAIL>) * @brief * @version 0.1 * @date 2020-10-29 * * @copyright Copyright (c) 2020 * */ #include "config.hpp" #include "common/glfwEntry.hpp" #include <sophus/se3.hpp> #include <iostream> #include <fstream> using namespace Sophus; using namespace std; ...
/* * dragon_tbb.c * * Created on: 2011-08-17 * Author: <NAME> <<EMAIL>> */ #include <iostream> extern "C" { #include "dragon.h" #include "color.h" #include "utils.h" } #include "dragon_tbb.h" #include "tbb/tbb.h" #include "TidMap.h" using namespace std; using namespace tbb; class DragonLimits { public: ...
// This C++ header is part of the sprpwr library. // With this library multivariate formal power // series can be expanded. // // Author: <NAME> // License: MIT // Copyright 2019 #include <iostream> #include <iterator> #include <algorithm> #include <chrono> #include <functional> #include <cmath> #include <gmpxx....
/** * * A program to test a Serriform Neural Network * Author: <NAME> * Date: 2016/07/27 * */ #include "SerriformNetwork.h" #include "DatasetAdapter.h" #include "OutputTarget.h" #include <vector> #include <iostream> #include <sstream> #include <fstream> #include <string.h> #include <sys/time.h> #include <stdlib....
/* * 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 full * details. Many organizations have provided support for Sq...
// 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 "net/test/spawned_test_server/local_test_server.h" #include <poll.h> #include <vector> #include "base/command_line.h" #include "base/files...
#include <robobreizh/grasp_plotter.h> GraspPlotter::GraspPlotter(ros::NodeHandle& node, const gpd::candidate::HandGeometry& params) { std::string rviz_topic; node.param("rviz_topic", rviz_topic, std::string("")); rviz_pub_ = node.advertise<visualization_msgs::MarkerArray>(rviz_topic, 1); hand_depth_ = params...
#include "loader.hpp" #include <stdlib.h> #include "format.hpp" #define ensure(cond) { \ if(!(cond)) { \ throw _LOADER_ERR_MAILFORMED; \ } \ } #define valid_number_char(c) (((c) <= '9' && (c) >= '0') || (c) == 'e' || (c) == '.' || (c) == '-') Loader::Loader(Lua *L) { this->L = L; this->nesting = 0; this->ite...
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #include <game/server/gamecontext.h> #include <engine/shared/config.h> #include "growingexplosion.h" #include "merc-bomb.h" CMercenaryB...
//////////////////////////////////////////////////////////////////////////////// // // Copyright 2015 - 2018, <NAME>, <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 wit...
/* * 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. */ #include "Game.hpp" SDL_Renderer* Game::renderer = nullptr; Game::Game() { Maplvl = 0; menu = true; instruc...
#include "pch.h" #include "Puzzle.h" Cell Puzzle::GetCell(int x, int y) const { x = Mod(x); if (!SafeCell(x, y)) return Cell::Undefined(); return grid[x][y]; } Cell::Color Puzzle::GetLine(int x, int y) const { return grid[x][y].color; } void Puzzle::NewGrid(int newWidth, int newHeight) {...
#include <boost/filesystem.hpp> #include <memory> #include <boost/program_options.hpp> #include <cstdio> #include <cmath> #include <iostream> #include "reader/reader_factory.h" #include "garland/models/quadric/3x3/quadric3.h" #include "garland/models/quadric/6x6/quadric6.h" #include "garland/models/quadric/9x9/quadric...
/******************************************************************************** * ReactPhysics3D physics library, http://www.reactphysics3d.com * * Copyright (c) 2010-2022 <NAME> * ********************************************************************************* *...
// Concord // // Copyright (c) 2018 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). // You may not use this product except in compliance with the Apache 2.0 // License. // // This product may include a number of subcomponents with separate copyright ...
/* * Hexxagon board game. * Copyright (C) 2001 <NAME>. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * ...
// Copyright (c) 2019-2020 The Bitcoin Core and Devcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <crypto/chacha_poly_aead.h> #include <crypto/poly1305.h> // for the POLY1...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2010 Couchbase, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * h...
// Copyright (c) 2011 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 "chrome/installer/util/delete_tree_work_item.h" #include <algorithm> #include <limits> #include "base/files/file_util.h" #include "base/log...
#include "shared/scene/VtxData.h" #include <algorithm> #include <assert.h> #include <stdio.h> MeshFileHeader loadMeshData(const char* meshFile, MeshData& out) { MeshFileHeader header; FILE* f = fopen(meshFile, "rb"); assert(f); // Did you forget to run "Ch5_Tool05_MeshConvert"? if (!f) { printf("Cannot open...
/************************************************************************* * * FADA-CATEC * __________________ * * [2013] FADA-CATEC * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of FADA-CATEC and its suppliers, * if any. The intellectual and technical ...
/** * Non-metric Space Library * * Main developers: <NAME>, <NAME>, <NAME>, <NAME>, <NAME> * * For the complete list of contributors and further details see: * https://github.com/nmslib/nmslib * * Copyright (c) 2013-2018 * * This code is released under the * Apache License Version 2.0 http://www.apache.org/l...
//===--- AccessMarkerElimination.cpp - Eliminate access markers. ----------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
#include "track.h" Track::Track() : kf_(8, 4) { /*** Define constant velocity model ***/ // state - center_x, center_y, width, height, v_cx, v_cy, v_width, v_height kf_.F_ << 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1,...
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
/** * @file * @copyright defined in oac/LICENSE.txt */ #pragma once /** * @defgroup varint Variable Length Integer * @ingroup types * @{ */ struct unsigned_int { unsigned_int( uint32_t v = 0 ):value(v){} template<typename T> unsigned_int( T v ):value(v){} //operator uint32_t()const { retur...
// Software License Agreement (BSD License) // // Copyright (c) 2017 <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 cop...
#include "ThreeOpt.h" #include "CandidateLists.h" #include <iostream> using namespace std; // Code inspired and derived from http://tsp-basics.blogspot.com/2017/04/3-opt-with-neighbor-lists-and-dlb.html ThreeOpt::ThreeOpt(Tour* tour, CandidateLists* cl) { this->tour = tour; this->cl = cl; dontLookBit = ne...
// // Created by Amrik on 28/10/2018. // #include "TrainingGround.h" TrainingGround::TrainingGround(uint16_t populationSize, uint16_t nGenerations, uint32_t nTicks, shared_ptr<ONFSTrack> training_track, shared_ptr<Car> training_car, std::shared_ptr<Logger> logger, GLFWwindow *gl_window) : window(gl_window), raceNetRe...
/**************************************************************************** Copyright (c) 2017-2018 <NAME> Co., Ltd. http://www.cocos2d-x.org 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...
/* * Copyright (C) 2019 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable la...
// // Created by penguin on 20-1-15. // #include <iostream> #include <fstream> #include "llvm/Support/SourceMgr.h" #include "llvm/AsmParser/Parser.h" #include "llvm/Support/TargetSelect.h" #include "llvm/IR/BasicBlock.h" #include "llvm/ExecutionEngine/MCJIT.h" #include "llvm/ExecutionEngine/GenericValue.h" #include "...
#include <math.h> #include "Common.h" #include "gles2N64.h" #include "OpenGL.h" #include "Debug.h" #include "RSP.h" #include "RDP.h" #include "N64.h" #include "F3D.h" #include "3DMath.h" #include "VI.h" #include "ShaderCombiner.h" #include "DepthBuffer.h" #include "GBI.h" #include "gSP.h" #include "Textures.h" //#defi...
#pragma once auto compressBlockLZ77(array_view<u8> input) -> vector<u8> { vector<u8> output; output.resize(256 * 1024, 0x00); u32 source = 0; u32 target = 0; while(source < input.size()) { u32 longestOffset = 0; u32 longestLength = 0; for(u32 window = 1; window < 2048; window++) { u32 len...
#include "Library.h" #include "Paths.h" #include "Registry.h" #include <QDir> #include <QDebug> LibraryItem::LibraryItem(const QString &name, const QString &fileToInstantiate, LibraryItem *parent) { m_parentItem = parent; m_name = name; m_file = fileToInstantiate; } LibraryItem::~LibraryItem() { qDele...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
#include <gtest/gtest.h> #include <gmock/gmock.h> #include <stdint.h> #include <sys/stat.h> #include <string> #include <stout/gtest.hpp> #include <stout/json.hpp> #include <stout/stringify.hpp> #include <stout/strings.hpp> using std::string; using boost::get; TEST(JsonTest, DefaultValueIsNull) { JSON::Value ...
#include <stdexcept> #include <string> #include "OnlineDB/Oracle/interface/Oracle.h" #include "OnlineDB/EcalCondDB/interface/ODPedestalOffsetsDat.h" using namespace std; using namespace oracle::occi; ODPedestalOffsetsDat::ODPedestalOffsetsDat() { m_env = NULL; m_conn = NULL; m_writeStmt = NULL; m_readStmt = ...
/** * @file secret_application.cpp * @brief a program that unveils its real functionality only to those who the secret passphrase... */ #include <fstream> #include <iostream> #include <cerrno> #include <cstring> #include <termios.h> #include <unistd.h> #include <sys/prctl.h> #include <sys/ptrace.h> #include ...
/*************************************************************************/ /* */ /* Centre for Speech Technology Research */ /* University of Edinburgh, UK */ /* ...
//===- Target.cpp ---------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
/* SoLoud audio engine Copyright (c) 2013-2015 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercia...
#include "JointDemo.h" #include "FixedFunctionPrimitives.h" #include "glad/glad.h" #include "imgui/imgui.h" #include <iostream> extern double GetMilliseconds(); void JointDemo::Initialize(int width, int height) { DemoBase::Initialize(width, height); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); float val[] = { 0.5...
#include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <arpa/inet.h> // inet_ntoa #include <fcntl.h> // O_WRONLY #include <sys/stat.h> // mkfifo #include <sys/wait.h> // waitpid #include <sstream> #include "utility.hpp" void die(const char *format, ...) { ...
#include "icsneo/communication/decoder.h" #include "icsneo/communication/communication.h" #include "icsneo/communication/message/serialnumbermessage.h" #include "icsneo/communication/message/resetstatusmessage.h" #include "icsneo/communication/message/readsettingsmessage.h" #include "icsneo/communication/command.h" #in...
// Written: fmckenna // Purpose: the typical Qt main for running a QMainWindow #include <MainWindowWorkflowApp.h> #include <QApplication> #include <QFile> #include <QThread> #include <QObject> #include <QDebug> #include <AgaveCurl.h> #include <WorkflowAppWE.h> #include <QTime> #include <QTextStream> #include <Googl...
/* -*- C++ -*- */ /*============================================================================= // // // This file is part of the TypeAccess/C-Super-Script software package. // // // // Copyright (C) 1995 <NAME>, <NAME>, // // <NAME>, and Carnegie Mellon University ...
/** * This example showcases the usage of the BasisConstruction module. This reads * matrices from files and builds a basis and a dual for an `IntLatticeBasis` * object. The files this is set to use are in the `bench.zip` archive. To * execute the program, the archive should be unziped and the `bench` folder * sho...
#include "vector.h" #include "Header.h" bool UseTxPixel = false; int main() { Vector vec1(1, 1, 1); Vector vec2(23, -1, 0); Vector vec3 = vec1 ^ vec2; Vector vec4 = vec1 - vec2; PRINT_VEC(vec3); PRINT_VEC(vec4); vec1.print(); vec1 += vec2; vec1.print(); double r = 200; txCreateWindow(800, 600); txT...
// // this file shows how to use the basic features of libxml2 // // #include <libxml/parser.h> #include <libxml/tree.h> #include <libxml/xinclude.h> #include <libxml/xpath.h> #include <libxml/xmlIO.h> #include <iostream> #include <vector> #include <map> #include <sstream> #include <string.h> //--------------------...