text
stringlengths
5.71k
33.7k
// Copyright 2020-present pytorch-cpp Authors #include <torch/torch.h> #include <iostream> #include <iomanip> #include <sstream> #include <vector> #include <chrono> #include "cxxopts.hpp" #include "vocabulary.h" #include "data_utils.h" #include "caption_dataset.h" #include "encoder_cnn.h" #include "decoder_rnn.h" #inc...
#include <stdio.h> #include "gm_builtin.h" #include "gm_backend_gps.h" #include "gm_error.h" #include "gm_code_writer.h" #include "gm_frontend.h" #include "gm_transform_helper.h" #include "gm_rw_analysis.h" // defined in opt_find_nested_foreach_loops.cc extern void gm_gps_find_double_nested_loops(ast_node* p, std::map...
#include "compare_main.h" void setup_compare_subcommand(CLI::App& app) { auto opt = std::make_shared<CompareOptions>(); auto* compare_subcmd = app.add_subcommand("compare", "Quasi-map reads from multiple samples to an indexed PRG, infer the " "sequence of present loci in each sample, and call v...
/** * @file * @brief Menu button used in non-game menus **/ #include "AppHdr.h" #include <unordered_map> #include "cio.h" #include "outer-menu.h" #include "tileweb.h" #include "unwind.h" using namespace ui; bool MenuButton::focus_on_mouse = false; void MenuButton::_render() { #ifdef USE_TILE_LOCAL m_buf.dra...
/** * ============================================================================ * * Copyright (C) 2018, Hisilicon Technologies Co., Ltd. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
/* # # UFFBAPS - Unified Force Field for Binding And Protein Stability # Copyright (C) 2010 <NAME> & <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 3 of the Licen...
//DFA_to_REGEX #include <bits/stdc++.h> #include <cstdio> #include <cstring> using namespace std; /* <NAME> Nume | Variabila | Tip ========================================================================= nr stari ...
/* C++ version: Copyright (c) 2016 <NAME>. All rights reserved. Copyright (c) 2015 <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 mus...
/****************************************************************************//* * Copyright (C) 2021 <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, includ...
#include "art/Framework/Core/EventSelector.h" #include "art/Framework/Services/Registry/ActivityRegistry.h" #include "art/Framework/Services/Registry/ServiceRegistry.h" #include "art/Framework/Services/Registry/ServicesManager.h" #include "art/Framework/Services/System/TriggerNamesService.h" #include "canvas/Persistenc...
// LocatorAPI.cpp: implementation of the CLocatorAPI class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #pragma hdrstop #pragma warning(disable:4995) #include <io.h> #include <direct.h> #include <fcntl.h> #include <sys\stat.h> #pragma warning(default:4995)...
/* * Tencent is pleased to support the open source community by making PhoenixGo * available. * * Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); * you may not use this file except in compliance with the License. * You may ...
#include <assert.h> #include <openssl/rand.h> #include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <sys/time.h> #include <sys/types.h> #include <time.h> #include <unistd.h> #include "ququ_wrapper.h" typedef void *(*rand_init)(uint64_t maxoutputs, __uint128_t maxvalue, ...
#include "core/plan/runner.hpp" #include "base/color.hpp" #include <boost/tokenizer.hpp> #include <cmath> DEFINE_string(url, "", "The url for hdfs file"); DEFINE_int32(kNumPartition, 2, ""); DEFINE_int32(kNumItem, 3, ""); DEFINE_int32(kNumUser, 3, ""); // DEFINE_double(eta, 0.1, ""); DEFINE_double(lambda, 0.1, "")...
/** * You are given an n by n grid of distinct numbers. A number is a local minimum if it is smaller than all of its neighbors. * (A neighbor of a number is one immediately above, below, to the left, or the right. Most numbers have four neighbors; numbers on the side have three; the four corners have two.) * Use the...
#include "test_utils.h" #include "variant/variant_header_builder.h" #include "missing.h" #include <set> #include <boost/test/unit_test.hpp> using namespace std; using namespace gamgee; template<class T> void check_fields(T actual, T truth) { std::sort(actual.begin(), actual.end()); std::sort(truth.begin(), trut...
// Copyright (c) 2009 hp-FEM group at the University of Nevada, Reno (UNR). // Distributed under the terms of the BSD license (see the LICENSE // file for the exact terms). // Email: <EMAIL>, home page: http://hpfem.org/ #include "transforms.h" // print details for every element for debugging purposes int DEBUG_SOL...
/********************************************************************************** * Copyright (C) 2016, Copyright Holders of the ALICE Collaboration * * All rights reserved. * * ...
//===- opt.cpp - The LLVM Modular Optimizer -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "subgraph_extraction.hpp" #include <onnx/onnx_pb.h> #include <functional> #include <stack> #include "ngraph/check.hpp" using namespace ov::onnx_editor; enum class PortType { InputPort, OutputPort }; namespace { void v...
// // Created by Acer on 2020/3/15. // #include "WonderfulOpenCv.h" WonderfulOpenCv::WonderfulOpenCv(const char *faceModelPath) { this->faceModelPath = new char[strlen(faceModelPath) + 1]; strcpy(this->faceModelPath,faceModelPath); } WonderfulOpenCv::~WonderfulOpenCv() { } /** * rgb转灰度,这里为了学习矩阵的操作都是直接对矩阵进...
/*************************************************************************** qgstessellator.cpp -------------------------------------- Date : July 2017 Copyright : (C) 2017 by <NAME> Email : wonder dot sk at <EMAIL> dot <EMAIL> ***************************************...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <getopt.h> #include <sys/stat.h> #include <sys/types.h> #include <string> #include <vector> #include <fovis/fovis.hpp> #include "lodepng.h" #include "draw.hpp" //#define dbg(...) do { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); } while(0) ...
// Copyright (c) 2019 University of Paderborn // (<NAME> <<EMAIL>>, // <NAME> <<EMAIL>>, // <NAME> <<EMAIL>>) // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentat...
//===-- AllocaManager.cpp -------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/*** * * Copyright (c) 1999, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * Use, distribution, and modification of this source code and/or resulting * object...
#include "Tactical/SoldierFind.h" #include "Editor/EditorMercs.h" #include "GameSettings.h" #include "SGP/Debug.h" #include "SGP/English.h" #include "SGP/MouseSystem.h" #include "SGP/Random.h" #include "SGP/VObject.h" #include "Strategic/Assignments.h" #include "Tactical/AnimationControl.h" #include "Tactical/Animatio...
#include "glia_base.hxx" // Label, f_true, f_null, perr #include "glia_image.hxx" // LabelImage, RealImage #include "type/big_num.hxx" // BigInt #include "type/point.hxx" // Point #include "type/tuple.hxx" // TTriple #include "type/region_map.hxx" // TRegionMap #include "type/bound...
#include <iostream> #include "v1/application/http1.h" #include "v1/application/websocket.h" #include <reader.h> #include <net_helper.h> //#include <coroutine> #include <mutex> #include <deque> #include <filesystem> #include <fileio.h> #ifdef _WIN32 #include <direct.h> #else #define _chdir chdir #endif /* templa...
/** * This is an example of using EntityX. * * It is an SFML2 application that spawns 100 random circles on a 2D plane * moving in random directions. If two circles collide they will explode and * emit particles. * * This illustrates a bunch of EC/EntityX concepts: * * - Separation of data via components. * -...
/* 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...
// fragmentshaders.cpp // OpenGL SuperBible, Chapter 17 // Demonstrates fragment shaders // Program by <NAME> #include "../../shared/gltools.h" // OpenGL toolkit #include "../../shared/glframe.h" // OpenGL toolkit #include <stdio.h> #define SIMPLE 0 #define GRAYSCALE 1 #define SEPIA 2 #define ...
// // Created by nigel on 06/12/18. // #include "eightpoint.hpp" using namespace cv; EightPoint::EightPoint(){ //initialize random seed for ransac srand((unsigned)time(NULL)); } void EightPoint::setRansacParameters(double probability, int minSet, int maxIteration, double maxError) { ransacMaxIt = ma...
/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2010 Interactive Visualization and Data Analysis Group. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softwar...
#include "parsetree.hpp" #include "cwa.hpp" #include <iostream> #include <cassert> int task_id_counter = 0; void general_formula::negate(){ if (this->type == EMPTY) return; else if (this->type == AND) this->type = OR; else if (this->type == OR) this->type = AND; else if (this->type == FORALL) this->type = EXISTS;...
#pragma once #include "Wheel.h" #include "Track.h" #include "Application.h" #include "Highscore.h" #include "HighScoreScreen.h" #include "Menu.h" #ifndef COMPLETE #define COMPLETE true #endif #ifndef INCOMPELTE #define INCOMPLETE false #endif Wheel::Wheel() { } void Wheel::Initialize() { model = Load::Obj(".\\mode...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "AdvectDiffuseUtils.H" #include "ParmParse.H" #include "CoarseAverag...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2013 <NAME>. All rights reserved. *...
// include core Wiring API #include <stdlib.h> #include <stdint.h> #include <HardwareSerial.h> #include <FS.h> #include "Devices.h" #include "Device.h" const char* SensorTypeName(SensorType st) { switch(st) { case Invalid: return "invalid"; case ChildDevice: return "device"; case Numeric: return "num...
#pragma once #include <cstddef> #include <functional> #include <iostream> #include <random> #include <tuple> #include <vector> #include <pybind11/eigen.h> #include <pybind11/functional.h> #include <pybind11/pybind11.h> #include <pybind11/stl.h> #include "myfm/FM.hpp" #include "myfm/FMLearningConfig.hpp" #include "my...
#include "asmgen.hpp" #include "llvm/ADT/Statistic.h" #include "llvm/IR/IRBuilder.h" #include "llvm/Passes/PassBuilder.h" #include "llvm/Passes/PassPlugin.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include <iostream> #include <string> using namespace llvm; std::map<Value *, int> var_id; int var_count; std...
//////////////////////////////////////////////////////////////////////////////// // // // This file is part of NCrystal (see https://mctools.github.io/ncrystal/) // // ...
#include "util.h" #include "dedupdef.h" #include "encoder.h" #include "debug.h" #include "hashtable.h" #include "config.h" #include "hashtable_private.h" #include "rabin.h" #include "queue.h" #include "binheap.h" #include "tree.h" #include "ktiming.h" #include <vector> #include <pthread.h> #include "tbb/pipeline.h" #...
// // Matrix Computation Algorithms (double) // #include <iostream> #include <vector> #include <cmath> #include <cstdio> #include <algorithm> #include <functional> using namespace std; #define fst first #define snd second #define all(c) ((c).begin()), ((c).end()) template <class T> ostream &operator<<(ostream &os, ...
// serialization_simple.cpp // // Copyright (c) 2007, 2008, 2013 <NAME> (<EMAIL>) // // This file is part of SolidFrame framework. // // 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 <...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com // Original code is licensed as follows: /* * Copyright 2008 ZXing authors * ...
#include <sqlite_orm/sqlite_orm.h> #include <iostream> #include <cassert> using std::cout; using std::endl; struct MarvelHero { int id; std::string name; std::string abilities; short points; }; struct Contact { int id = 0; std::string firstName; std::string lastName; std::string phon...
#include "functions.h" // containers vector<graph> graphSeq; vector<string> graphs; // read in a graph sequence void ReadIn(string name){ double st = get_wall_time(); cout << "\nRead in..." << endl; string fileName = "./graphSequences/" + name + "/" + "info.txt"; string temp; ifstream fin(file...
#include <iostream> #include <OptiXRenderView.hpp> #include <optixu/optixpp_namespace.h> #include <optixu/optixu_math_namespace.h> #include <iostream> #include <GLUTDisplay.h> #include <ImageLoader.h> #include "GPUManager.hpp" #include <cstdlib> #include <cstring> #include <sstream> #include <math.h> #include <vect...
/*=========================================================*/ // PROGRAM STRUCTURE /*=========================================================*/ /* Version 2.0 Updated Code Preface (MTMCC 13) ||==============================================|| || WARNING: REQUIREMENT || ||------...
#include "SPlisHSPlasH/Common.h" #include "SamplingBase.h" #include "Utilities/Timing.h" #include "Utilities/OBJLoader.h" #include "SPlisHSPlasH/TriangleMesh.h" #include "Utilities/PartioReaderWriter.h" #include "Utilities/Version.h" #include "Utilities/FileSystem.h" using namespace SPH; using namespace Eigen; using ...
/******************************************************************************* procmon, Copyright (c) 2014, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved. If you have questi...
//============================================================================== /* Software License Agreement (BSD License) Copyright (c) 2003-2016, CHAI3D. (www.chai3d.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted pro...
/** * @file capturing.cpp * @brief Network traffic capture sources * @author <NAME> <<EMAIL>> * @date * - Created: 18.02.2017 22:45 * - Edited: 23.06.2017 12:00 * @todo name: ncap, netcat, ncat, netcap, necai * @todo determine platform in scripts * @todo IPv6 implem...
/* * Player - One Hell of a Robot Server * Copyright (C) 2000 * <NAME>, <NAME>, <NAME>, & <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 Lice...
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
/* Copyright (c) 2014 Author: <NAME> <<EMAIL>> Created: 2014-Mar-26 12:27 (EDT) Function: plan the job - what task runs where? */ #define CURRENT_SUBSYSTEM 'j' #include "defs.h" #include "diag.h" #include "config.h" #include "misc.h" #include "network.h" #include "runmode.h" #include "thread.h" #include "lock...
#include <unordered_set> #include <vector> #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <string> #include <stack> using namespace std; #include "defines.h" #include "sourceGen.h" #include "headerGen.h" #include "string.h" #include "file.h" #include "line.h" #include "extensionHa...
int P8YHM,tgm, BEXrTQ ,y6V,kLL ,HMYKf , wt , P, l , fP ,ujBG,/*F*/X4m //S , awUm,hZ , NhH,sYR , es, yzla,cNEQZzwFE,w , CDG ,OSCBp8 , T7PD , gVD ,Lga5 ,/*s*/Rf1 ,/**/xc,//1 je ,UYg,nVX7 , /*cy*/PBEr ,oP3 , gr4 , dD8 , GJDEz , B , qj , Mb ,db2 ; void f_f0() {volatile int kL , ...
#include <iostream> #include <string> #include <sstream> #include <iomanip> #include <stdexcept> #include <opencv2/core/utility.hpp> #include "opencv2/cudastereo.hpp" #include "opencv2/cudaarithm.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" using namespace cv; using namespace std; #define RESOLU...
//===================================================================== // Newlib System Call //===================================================================== #include <stdlib.h> #include <stdio.h> #include <stdint.h> #include <string.h> #include <ctype.h> #include <string> #include <sys/time.h> #include <uni...
#include <cfloat> #include <cmath> #include <iomanip> #include "Camera.h" using namespace std; using namespace Isis; //#include "f2c.h" /* Table of constant values */ static int c__4 = 4; /* Builtin functions */ // double sqrt(doublereal), asin(doublereal); extern int moved_(doublereal *arrfrm, integer *ndim, do...
#include <iostream> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <cmath> #include "Shader.h" #include "stb_image.h" #include "Camera.h" #include "utils.h" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include <assimp/Importer.hpp> #include <assimp/scene.h> ...
/*========================================================================* * * * Distributed by Whiteley Research Inc., Sunnyvale, California, USA * * http://wrcad.com * * Copyright (...
#include <kinova_driver/jaco_trajectory_controller_two_arms.h> using namespace std; JacoTrajectoryController::JacoTrajectoryController() : pnh("~"), smoothTrajectoryServer(pnh, "trajectory", boost::bind(&JacoTrajectoryController::executeSmoothTrajectory, this, _1), false) { pnh.param("max_curvature", maxCurvature...
/* Copyright 2019 Cirque Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writi...
#include "lib/common/DslWriter.h" #include "lib/common/Log.h" #include "lib/common/ZipWriter.h" #include "lib/common/bformat.h" #include "lib/common/overloaded.h" #include "lib/common/version.h" #include "lib/common/WavWriter.h" #include "lib/common/filesystem.h" #include "lib/duden/AdpDecoder.h" #include "lib...
#pragma once #include <glad/glad.h> #include <GLFW/glfw3.h> #include "imgui.h" #include "imgui_impl_glfw.h" #include "imgui_impl_opengl3.h" #include "HW4.h" #include <iostream> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "Camera.h" void framebuffer_size_callb...
#include <Arduino.h> #include <U8g2lib.h> #include "WiFiConnection.h" #include "Logger.h" #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) #define OLED_CLOCK 15 #define OLED_DATA 4 #define OLED_RESET 16 #define POWER_DETECTION 37 U8G2_SSD1306_128X64_NONAME_F_HW_I2C g_OLED(U8G2_R0, OLED_RESET, OLED_CLOCK, OLED_DATA...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2017-2020, Waterplus http://www.6-robot.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License ve...
/** * \file BrlyBase.cpp * Brly operation pack global code (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 11 Jan 2021 */ // IP header --- ABOVE #ifdef BRLYCMBD #include <Brlycmbd.h> #else #include <Brlyopd.h> #endif #include "BrlyBase.h"...
#include "lineslam.h" #include "utils.h" #define LINEDIST_6D // use 6-d error for line distance extern cv::Mat K, distCoeffs; extern SystemParameters sysPara; struct Data_LBA { int numView, frontPosIdx, frontFrmIdx; vector<int> idx2Opt; // idx of key points to optimize vector<int> idx2Rpj_notOpt; ...
#include <cuda_graph_types.hpp> #include <gtest/gtest.h> #include <logger.hpp> #include <test_support.hpp> #include <embedding_lists.hpp> #include <cuda_computation_parameters.hpp> #include <cuda_datastructures.hpp> #include <cuda_gspan_ops.hpp> #include <cuda_tools.hpp> #include <algorithm> #include <thrust/device_ptr...
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2010) by the // // Broad Institute. All rights are reserved. This software is supplied // ...
#include "mainwin.h" #include "entrydialog.h" #include <sstream> #include <fstream> #include <iomanip> Mainwin::Mainwin() : store{nullptr} { // ///////////////// // G U I S E T U P // ///////////////// set_default_size(800, 600); set_title("ELSA"); // Put a vertical box container as the Wi...
#include "User.h" #include "UserCollection.h" using std::cerr; using std::cout; using std::endl; using std::list; using std::map; using std::pair; using std::priority_queue; using std::set; using std::string; using std::vector; /* Constructor */ User::User(string n, string h){ this->hostmask = h; this->in = true; /...
#include <cmath> #include <vector> #include <cfloat> #include "object_interface.hpp" #include "light.h" #include <queue> struct vec3 { float x; float y; float z; inline vec3 operator+(const vec3& b) const { return {x+b.x, y+b.y, z+b.z}; } inline vec3 operator-(const vec3& b) const { ...
//=--ArrayBoundsInferenceConsumer.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 // //===---------------------------...
/** * ---------------------------------------------------------------------------- * ESP32 Web Controlled Thermostat * ---------------------------------------------------------------------------- * Author: <NAME> * Date: April 2020 * ---------------------------------------------------------------------------- ...
/* * Library classs includes */ #include <Wire.h> #include <main.h> #include <TwiHost.h> #include "SwitchHandler.h" #define CMD_RESET 0xF0 /* No param */ #define CMD_CHANNEL_SELECT 0xC3 /* Param: Channel byte - DS2482-800 only */ #define CMD_MODE 0x69 /* Param: mode byte */ #define ...
/* * Copyright (C) 2008-2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
#include <windows.h> #include <stdio.h> #include <string> #include <vector> #include <io.h> #include <zlib.h> #include <iostream> #include <algorithm> #define DEFAULT_COMPRESSION_LVL 9 int compressionLvl; std::string pathToPack; typedef void(__cdecl *TioMsgCb)(const char *msg); typedef void(__cdecl *TioPackFuncs)(Ti...
/* * Copyright (c) 2003-2015 <NAME> <<EMAIL>>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ /// \file Util.cpp //----------------...
// Copyright (c) 2011-2015 Zeex // 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 an...
/*======================================================================== * COSC 363 Computer Graphics (2017) * Ray tracer * See Lab07.pdf for details. *========================================================================= */ #include <iostream> #include <cmath> #include <vector> #include <glm/glm.hpp> ...
// Copyright 2019 Zhupengfei and others // Licensed under the MIT License. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHOR...
#include <unistd.h> #include <getopt.h> #include <iostream> #include <signal.h> #include <queue> #include "TAudioFileWriter.h" #include "TJackSynth.h" #include "TFileAudioPort.h" #include "TGlobal.h" #include "TSpeedTest.h" unsigned TGlobal::SampleRate; unsigned TGlobal::NyquistFrequency; jack_client_t* Client; jack...
/* transfer_eisenstein.cc - This file is part of MUSIC - a code to generate multi-scale initial conditions for cosmological simulations */ #include "transfer_function.hh" // forward declaration of WDM class class transfer_eisenstein_wdm_plugin; struct eisenstein_transfer { //Cosmology m_Cosmology; dou...
#include "fast++.hpp" struct file_wrapper { std::ifstream in; bool doswap = false; explicit file_wrapper(std::string filename) : in(filename, std::ios::binary) { in.exceptions(in.failbit); } static void swap_endian(char& t) {} template<typename T> static void swap_endian(T& t) { ...
/********************************************************************************** Copyright 2021 <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...
// license:BSD-3-Clause // copyright-holders:<NAME> /*************************************************************************** Gaelco CG-1V/GAE1 based games Functions to emulate general aspects of the machine (RAM, ROM, interrupts, I/O ports) ************************************************************...
#include <tkn/singlePassApp.hpp> #include <tkn/bits.hpp> #include <tkn/levelView.hpp> #include <tkn/transform.hpp> #include <tkn/render.hpp> #include <ny/mouseButton.hpp> #include <nytl/approxVec.hpp> #include <nytl/mat.hpp> #include <nytl/matOps.hpp> #include <vpp/sharedBuffer.hpp> #include <vpp/pipeline.hpp> #include...
/* Copyright (C) 2011 by <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, distribute,...
/// \copyright Simmypeet - Copyright (C) /// This file is subject to the terms and conditions defined in /// file 'LICENSE', which is part of this source code package. #include <Axis/Core> #include <Axis/Graphics> #include <Axis/System> #include <Axis/Window> using namespace Axis; using namespac...
#include<iostream> using namespace std; //--------FUNCTIONS & VARIABLES--------- int balcony(); int bedroom(); int dining(); int basement(); int wrench = 0; int cabinet(); int lighter = 0; int ignite(); int key = 0; int dark(); int zombies_killed = 0; static int visited_balcony = 0; static int visited_bedroom = 0; st...
#include <math.h> #include <wchar.h> #include <iostream> #include <vector> #include <string> #include "gtest/gtest.h" #include "spider_solitare.h" const std::vector<std::wstring> TEST_STRINGS = { L"", L"x", L"xy", L"X", L"XY", L"1", L"12", L"♣", L"♣♠", L"xX1♣xyXY12♣♠", L"Spider Solit...
#include "StdH.H" #include <Engine/World/World.h> #include <Engine/Templates/StaticStackArray.cpp> #include <Engine/Templates/AllocationArray.h> #include <Engine/Templates/AllocationArray.cpp> #include <Engine/Base/MemoryTracking.h> #define DEBUG_COLLIDEWITHALL 0 #if DEBUG_COLLIDEWITHALL #include <Engine/Templates...
#include "data.h" //create the linked list void data::createNodes() { NODE* node1 = new NODE; NODE* node2 = new NODE; NODE* node3 = new NODE; NODE* node4 = new NODE; NODE* node5 = new NODE; NODE* node6 = new NODE; NODE* node7 = new NODE; NODE* node8 = new NODE; NODE* node9 = new NODE; NODE* node10 = new NODE...