text
stringlengths
3.08k
12.5k
/* * Copyright (c) 2006 The Regents of The University of Michigan * Copyright (c) 2013 Advanced Micro Devices, Inc. * Copyright (c) 2013 <NAME> and <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condit...
/* Copyright (c) 2007 <NAME>. 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 require...
/* * * Copyright 2015 gRPC authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
/*----------------------------------------------------------------------------- * This file is part of the Colony.Apps Project. The Colony.Apps Project is an * open source project with a BSD type of licensing agreement. See the license * agreement (license.txt) in the top/ directory or on the Internet at * http://int...
/* * Copyright (c) 2018-2020, <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list ...
/* * Copyright (c) 2016-2019 <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 commercial appli...
// Copyright 2017 The Ray Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to i...
#include <libcxx/sstream> #include <libcxx/string> #include <libcxx/vector> #include "../Enclave.h" #include "Enclave_t.h" std::vector<char*> samFiles; unsigned int cntgCount = 0; unsigned int readCount = 0; int pCount = 0; std::string* alnName; char newline_delim[] = "\n"; void ecall_init_merge(unsigned int maxCt...
//===--- ModuleDependencyCollector.cpp - Collect module dependencies ------===// // // 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 <bits/stdc++.h> using namespace std; /// Constant: #define eps 0.000000001 #define pi 2*acos(0) #define P1 1000000007 #define P2 1000000009 #define INF 1000000000000000000ll #define fast() ios_base::sync...
#include <stdio.h> #include <math.h> // required precision of radius is 1 * 10^(-6) const double eps = 1e-6; // the radius has a range ra <= r <= rb double ra, rb, r; int x[25], y[25], n, i, len, px, py, cases; // the direction of an edge is representable by 1-byte char char dr; // check whether the heliport with ...
#include "kamerka.h" #include <iostream> #include <Windows.h> #include <Winuser.h> #include <Winable.h> using namespace cv; using namespace std; Kamerka::Kamerka() { capture = VideoCapture(0); window_name.push_back("Kamera"); window_name.push_back("Contour"); window_name.push_back("Binary"); wi...
/** * Copyright (c) 2014, Institute of Telematics, Karlsruhe Institute of Technology. * * This file is part of the PktAnon project. PktAnon is distributed under 2-clause BSD licence. * See LICENSE file found in the top-level directory of this distribution. */ #include "LibpcapRecordsHandler.h" #include "include...
// mc_game.cpp //////////////////////////////////////////////////////////////////////// #include <math.h> #include "SDL.h" #include "mc_game.hpp" #include "mc_application.hpp" #include "mc_sequence_data.hpp" #include "mc_util.hpp" #include "mc_input.hpp" #include "mc_audio.hpp" #include "mc_menu_screen.hpp" #include "...
/* * This source file is part of libRocket, the HTML/CSS Interface Middleware * * For the latest information, see http://www.librocket.com * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and assoc...
/* Boost check_gmp.cpp test file Copyright 2009 <NAME> Copyright 2009 <NAME> This file tests the odeint library with the gmp arbitrary precision types 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) */ #define B...
#include <sge_app.hh> sge::app::configuration config = {}; sge::app::content computation = {}; sge::app::extensions extensions = {}; struct PUSH { float time = 0.0f; } push; struct UBO { sge::math::vector3 position; float gamma = 1.2f; sge::math::quaternion orientati...
//===- module_builder.cpp -------------------------------------------------===// // // 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 // Also available under a BSD-style...
/*Copyright(c) 2016 RafalRebisz 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, sublic...
// Copyright 2017-2020 The Verible Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
/* Parallel program playing Conway's Game of Life that requires only MPI. Copyright 2015, 2016 <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 ab...
/* pxCore Copyright 2005-2018 <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 writing, software...
// Copyright (c) 2014 Baidu.com, Inc. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stdio.h> #include <signal.h> #include <unistd.h> #include <sys/time.h> #include <sofa/pbrpc/pbrpc.h> #include "echo_service.pb.h" static volatile...
#include <testtoken.hpp> ACTION testtoken :: deposit(name hodler, asset quantity, string memo) { if (hodler == get_self()) { print("These are not the droids you are looking for."); return; } check(quantity.amount > 0, "You must deposit at leat 1 tokens"); check(quantity.symbol == hodl_symbo...
// // SkyNet Project // Copyright (C) 2018 by Contributors <https://github.com/Tyill/skynet> // // This code is licensed under the MIT License. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files(the "Software"), to deal // in the So...
#include <Halide.h> using namespace Halide; Var x("x"), y("y"), c("c"); int main(int argc, char **argv) { bool can_vectorize = (get_target_from_environment().arch != Target::PNaCl); // First define the function that gives the initial state. { Func initial; // The initial state is a quan...
#include "Halide.h" #include <stdio.h> #include <future> using namespace Halide; template<typename A> const char *string_of_type(); #define DECL_SOT(name) \ template<> \ const char *string_of_type<name>() {return #name;...
#include <fc/crypto/private_key.hpp> #include <fc/utility.hpp> #include <fc/exception/exception.hpp> namespace fc { namespace crypto { using namespace std; struct public_key_visitor : visitor<public_key::storage_type> { template<typename KeyType> public_key::storage_type operator()(const KeyType& ke...
#include "stdafx.h" #include "UIProgressBar.h" CUIProgressBar::CUIProgressBar() { m_MinPos = 1.0f; m_MaxPos = 1.0f+EPS; Enable (false); m_bBackgroundPresent = false; m_bUseColor = false; AttachChild (&m_UIBackgroundItem); AttachChild (&m_UIProgressItem); m_ProgressPos.x = 0.0f; m_Progr...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is distributed in the hope that it will be us...
/* This program uses the Maxim Integrated DS3231 library to create a BBC MicroBit Real-Time Clock. Requires a DS3231 Real Time clock connected to pin 19(SCL) and 20(SDA). Recommended that an edge connector is used for DS3231 connection. Pressing Button A to display the Date Pressing Button B to display the Time Press...
// libraries #include <QDebug> #include <QFileDialog> #include <QFileIconProvider> #include <QStandardPaths> // local #include "settings_dialog.h" #include "ui_settings_dialog.h" #include "shared.h" SettingsDialog::SettingsDialog(QWidget* parent) : QDialog(parent), ui(new Ui::SettingsDialog) { ui-...
#include <iostream> #include "dlist.h" #include <string> #include <cassert> using namespace std; enum Status { REGULAR, SILVER, GOLD, PLATINUM, STATUSNUM }; const char *StatusNames[] = {"regular", "silver", "gold", "platinum", "ERROR_HAPPEND"}; class customer_duration_less_than_zero{ // OVERVIEW: an exception cla...
// $Id: server.cpp 84563 2009-02-23 08:13:54Z johnnyw $ #include "testS.h" #include "ace/Get_Opt.h" #include "tao/RTCORBA/RTCORBA.h" #include "tao/RTCORBA/RT_Policy_i.h" #include "tao/RTPortableServer/RTPortableServer.h" #include "tao/Strategies/advanced_resource.h" class Test_i : public POA_Test { // = TITLE // ...
#include <dis6/EnvironmentalProcessPdu.h> using namespace DIS; EnvironmentalProcessPdu::EnvironmentalProcessPdu() : SyntheticEnvironmentFamilyPdu(), _environementalProcessID(), _environmentType(), _modelType(0), _environmentStatus(0), _numberOfEnvironmentRecords(0), _sequenceNumber(0) { se...
#include <Arduino.h> #include "alt_types.h" #include "altera_avalon_i2c.h" #include "scd40.h" #include <system.h> // I2C address #define SCD40_I2C_ADDRESS 0x62 // command adress #define REINIT 0x3646 #define START_PERIODIC_MEASUREMENT 0x21b1 #define STOP_PERIODIC_MEASUREMENT 0x3f86 #define READ_MEASUREMENT 0xec05 #...
#include <string.h> #include <jni.h> #include <dlfcn.h> #include <stdint.h> #include <vector> #include <sstream> #include <string> #include <cstring> #include <time.h> #include <csignal> #include <sys/types.h> #include <sys/stat.h> #include <sstream> #include <iomanip> #include <getopt.h> #include <unistd.h> #inclu...
// character skills & gain tables #include "Pch.h" #include "Skill.h" //----------------------------------------------------------------------------- // List of all skills Skill Skill::skills[(int)SkillId::MAX] = { Skill(SkillId::ONE_HANDED_WEAPON, "one_handed_weapon", SkillGroupId::WEAPON, AttributeId::STR, Attribut...
#include <iostream> #include <vector> #include <cmath> #include <GL/glew.h> #include <GLFW/glfw3.h> // variaveis globais struct vertex { float x, y; }; struct build { GLenum mode; GLint first; GLsizei count; std::vector<GLfloat> color; }; class Polygon { std::vector<vertex> _vertices; ...
// ============================================================================ // SeqAn - The Library for Sequence Analysis // ============================================================================ // // Copyright (c) 2006-2018, <NAME> & Freie Universitaet Berlin // Copyright (c) 2016-2018, <NAME...
#include "globals.h" #include "decoders/decoders.h" #include "encoders/encoders.h" #include "brother.h" #include "crc.h" #include "readerwriter.h" #include "image.h" #include "arch/brother/brother.pb.h" #include "lib/encoders/encoders.pb.h" static int encode_header_gcr(uint16_t word) { switch (word) { #define ...
/* * Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/> * * Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/> * * Copyright (C) 2010 - 2012 ArkCORE <http://www.arkania.net/> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General P...
/*************************************************************************** * * messages.cpp * * $Id$ * *************************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file ...
#include "stdafx.h" #include "TextHelper.h" #include "BitmapFont.h" #include "Application.h" #include "WinUtil.h" #include "RenderPass.h" ITextHelper::ITextHelper() : showText(true), defaultFont(nullptr) { } ITextHelper::~ITextHelper() = default; void ITextHelper::Tidy(VulkanSystem& system) { std::set<Vulkan2DFont...
/* --------------------------------------------------------------------------- ** This software is implemented as part of the course Dynamic Algorithms ** (Q4 2015) at Aarhus Univerity Denmark. ** ** performance.h ** Implementation of the performance tests. ** ** Author: <NAME> and <NAME> ** ------------------------...
#include "monocle/Asset/JsonParser.h" #include <stack> #include <map> #include <cctype> using namespace mncl; using namespace asset; const std::map<std::string, JsonParser::TokenType> tokenMap = { {"true", JsonParser::TokenType::keyword_true}, {"false", JsonParser::TokenType::keyword_false}, {"null", JsonParser...
#include "player.h" #include "scene.h" #include "asteroid.h" #include "projectile.h" #include "explosion.h" #include "cycle_shadow.h" #include "player2.h" #include "star.h" #include "cube.h" #include <shaders/diffuse_vert_glsl.h> #include <shaders/diffuse_frag_glsl.h> // shared resources std::unique_ptr<ppgso::Mesh> ...
/***************************************************************************** * match-ors.cc * * * * Description: Contains the matchORs() functions for the EntList descen- * * ...
//******************************************************************* // // License: LGPL // // See LICENSE.txt file in the top level directory for more details. // // Author: <NAME> // // Description: This class gives access to the File Header Label // (HDR) of a DTED Level 1 file. // //************...
// Copyright (c) 2018 <NAME> <<EMAIL>> #include <algorithm> #include <exception> #include <fstream> #include <iostream> #include <streambuf> #include <string> #include <climits> #include <cstdlib> #include "cryptopals/aes.hpp" #include "cryptopals/assert.hpp" #include "cryptopals/base64.hpp" #include "cryptopals/err...
#include <iostream> #include "network.h" #include "math.h" using std::endl; using std::cout; using std::cin; struct user_info{ bool connected; SOCKET s; char buffer[256]; int last_responce; char ip[17]; long unsigned int number; }; int main(){ char ip[30]; char server_name[80]; user_...
/* * Copyright © 2018 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * above copy...
/* * Copyright (c) 2018 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 * * Unle...
/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
#include "metadata.h" #include "log.h" static std::string safe_url = ""; static const char *IAAS_ID="192.168.127.12:444"; static const char *ATTEST_ID="172.16.31.10:4144"; static const char *OBJ_OWNER = "alice"; static void populate_next_level_inst(const char *speaker, latte::MetadataServiceClient* client, ...
/********************************************************************** // @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. ...
/* Copyright 2021 <NAME> Licensed under the Apache License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0 */ #include <iostream> #include <fstream> #include <string> #include <unordered_map> #include <sstream> constexpr int start{0x1B0200}; constexpr int end{0x1DBFF8}; constexpr int maxi...
#include "Transcriptome.h" #include "ReadAlign.h" #include "serviceFuns.cpp" int alignToTranscript(Transcript &aG, uint trS1, uint8 trStr1, uint32 *exSE1, uint32 *exLenCum1, uint16 exN1, Transcript &aT) { //find exon that overlaps beginning of the read uint32 g1=aG.exons[0][EX_G]-trS1;//start of the align ...
/* * ----------------------------------------------------------------------------- * Created by <NAME> on 05/27/2020 at 08:54 PM * * Chapter21_Drill_Vector.cc * After each operation (as defined by a line of this drill) print the vector. * --------------------------------------------------------------------------...
#include <stdio.h> #include "imgui.h" #include "imgui_impl_sdl.h" #include "imgui_impl_opengl3.h" #include "gl3w.h" #define SDL_MAIN_HANDLED #include <SDL2/SDL.h> #include <filesystem> #include "clibretro.h" #include "cmdline.h" #define WIDTH 1280 #define HEIGHT 720 int selected_inp = 0; bool isselected_inp = false; ...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "tier1/strtools.h" #include "macro_texture.h" #include "bsplib.h" #include "cmdlib.h" #include "vtf/vtf.h" #include "tier1/utldict.h...
#include <cstdio> #include <queue> #include <stack> #include <map> #include <algorithm> using namespace std; // Representation of a state (x, y) // x and y are the amounts of water in litres in the two jugs respectively struct state { int x, y; // Used by map to efficiently implement lookup of seen states ...
//<NAME> //TAIS26 #include <iostream> #include <iomanip> #include <fstream> #include <string> #include "Matriz.h" #include <algorithm> #include <unordered_map> /* El problema consiste en encontrar el grado de separacion de una red determinada, que consiste en el maximo grado de la red entre 2 personas cualesquiera...
// // Copyright (c) 2017, Intel Corporation // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // Redistributions of source code must retain the above copyright notice, this // list of conditi...
/*======================================================================= Copyright (c) 2018 <NAME>. This software is distributed under the Apache License, Version 2.0. All copies must contain the full copyright notice licence.txt located at the base folder of the distribution. ==========================...
/*BEGIN_LEGAL Intel Open Source License Copyright (c) 2002-2016 Intel Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyr...
// ------------------------------------------------------------------------------------- // Author: <NAME> (cbrghostrider); Copyright - All rights reserved. // For email, run on linux (perl v5.8.5): // perl -e 'print pack "H*","736f75726162682e732e6a6f73686940676d61696c2e636f6d0a"' // --...
/* * drawWindow.cc * * Copyright (c) 2018 <NAME>. All rights reserved. */ #include "drawWindow.hh" #include <stdio.h> #include <string.h> DrawWindow::DrawWindow() { //Create Surface if( (Xdis=XOpenDisplay(NULL))==NULL ) exit(1); Xscreen = DefaultScreen(Xdis); Xda = XCreateSimpleWindow(Xdis,D...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com // PVS-settings // PVS-settings end #include<cstdio> #include<vector> #include<algorithm> #include<stack> #include<math.h> using namespace std; typedef pair<long long,...
#include "matrixutils.h" MES rotateMatrix270(MES in, Resolution vr) { MES out = {.x = 0, .y= 0}; out.x = vr.height - 1 - in.y; out.y = in.x; return out; } MES rotateMatrix90(MES in, Resolution vr) { MES out = {.x = 0, .y = 0}; out.x = in.y; out.y = vr.width - 1 - in.x; return out; } cv::Rect rotate90(cv:...
#include <iostream> #include <fstream> #include <cmath> #include <vector> #include <cstdio> #include <ctime> #include <cstring> #ifdef _WIN32 #include <SDL.h> #include <SDL_image.h> #include <SDL_ttf.h> #include <SDL_mixer.h> #elif defined __unix__ #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <SDL2/SD...
#include <stdio.h> //#include <windows.h> #include <GL/glew.h> #include <GL/glut.h> //#include "SOIL.H" //#include "device.h" //#include <cutil_inline.h> //#include <cutil_gl_inline.h> #include <cuda_runtime_api.h> #include <cuda_gl_interop.h> unsigned int width=640; unsigned int height=480; GLuint gl_tex; void displ...
// Written: fmckenna /* ***************************************************************************** Copyright (c) 2016-2017, The Regents of the University of California (Regents). All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the f...
#include "FuzzyNetworkPromiscuity.hpp" #include "PointGraphConverter.hpp" void FuzzyNetworkPromiscuity::PreInitialize() { for (size_t s = 0; s < num_species(); ++s) { m_spanningTree[s] = primm(CreateGraphFromPoints(E[s])); assert(m_spanningTree[s].size()+1 == E[s].size()); double avglength = 0.0; for...
/********************************************************************************** MIT License Copyright (c) 2020 JoseManuelVargas 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...
// Copyright (c) 2019-2022, Lawrence Livermore National Security, LLC and // other Serac Project Developers. See the top-level LICENSE file for // details. // // SPDX-License-Identifier: (BSD-3-Clause) #include "serac/physics/thermal_conduction_functional.hpp" #include "serac/physics/materials/thermal_functional_mater...
#include "mmap_utils.h" #include <sys/mman.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/fcntl.h> #include <errno.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "utils.h" constexpr int32_t INVALID_INT32 = -1; void *GetMmapBuff(void *start, size_t length, i...
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2014 <NAME> - www.xs-labs.com / www.digidna.net * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "...
//===--- DragonFly.cpp - DragonFly ToolChain Implementations ----*- 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 // //===---------------------------...
/*! * @file Adafruit_MPRLS.cpp * * @mainpage Adafruit MPRLS Pressure sensor * * @section intro_sec Introduction * * Designed specifically to work with the MPRLS sensor from Adafruit * ----> https://www.adafruit.com/products/3965 * * These sensors use I2C to communicate, 2 pins (SCL+SDA) are required * to int...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
#include "GlfwInstance.hpp" #include "GlfwRenderer.hpp" #include "GlfwTexture.hpp" #include "Event.hpp" #include <cmath> #include <cstdio> GlfwInstance::~GlfwInstance() { glfwTerminate(); } void GlfwInstance::run(const char* script) { GlfwInstance instance; if (!instance.init(script)) return; ...
#include "Teuchos_LAPACK.hpp" #include "Teuchos_SerialDenseMatrix.hpp" #include "Teuchos_SerialDenseVector.hpp" #include "Teuchos_Version.hpp" #include <cstdlib> void calcEigenPairs(int); typedef Teuchos::SerialDenseMatrix<int, double> SDM; void subMatrix(SDM&, int); int main(int argc, char* argv[]) { std::cou...
// // Created By <NAME> || Southern Methodist University : 2021-09-04 // #include "Start.h" // Default Constructor Start::Start(){ // Load in connection details to struct object fstream db_file ("db_env.bat"); if(!db_file) { std::cerr << "Error: Could not Open/Find file!\n"; exit; } std::string ...
//===- ComparisonCategories.cpp - Three Way Comparison Data -----*- 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 <iostream> #include <vector> #include <algorithm> #include "omp.h" #include "torch/extension.h" template<class Arg> void print(Arg arg) { std::cout << arg << "\n"; } template <class Arg, class... Args> void print(Arg arg, Args... args) { static const std::string sep = " "; constexpr int n = sizeof...(A...
/* * This source file is part of ArkGameFrame * For the latest info, see https://github.com/ArkGame * * Copyright (c) 2013-2018 ArkGame authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License a...
/* D8FLowPathExtremeUpmn Main program for function that evaluates the extreme (either maximum or minimum) upslope value from an input grid based on the D8 flow directions. It is similar to the minimum upslope function used Tarolli and Tarboton (2006). Numerically the extreme upslope value is computed recurs...
#ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN #endif #include <windows.h> #include <winsock2.h> #include <ws2tcpip.h> #include <iphlpapi.h> #include <string.h> #include <iostream> #include <iomanip> #include <thread> #include "Console.h" using namespace std; #pragma comment(lib,"Ws2_32.lib") #define DEFAU...
// File: TextureContainer.cpp // Author: <NAME> - Knights of the Compiler // Creation date: ma 21-07-2014 // Contact: http://plusminos.nl - @broervanlisa - gmail (bobrubbens) // Public #include "SDL2/SDL.h" // Private #include "nnb/graphics/TextureContainer.hpp" #include "nnb/log/log.hpp" nnb::TextureCon...
/* * Copyright (C) 2012 www.scratchapixel.com * * 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 License, or * (at your option) any later version. * * This progra...
/* * motor_control - provide motor drive via PWM. ukmarsey is a machine and human command-based Robot Low-level I/O platform initially targetting UKMARSBot For more information see: https://github.com/robzed/ukmarsey https://ukmars.org/ https://github.com/ukmars/ukmarsbot https://git...
////////////////////////////////////////////////////////////////////////////////////// // This file is distributed under the University of Illinois/NCSA Open Source License. // See LICENSE file in top directory for details. // // Copyright (c) 2016 <NAME> and QMCPACK developers. // // File developed by: <NAME>, <EMAIL>...
// SiguesAhi.cpp /// @include local library #include "SiguesAhi.h" /// @include library for each output #include "OutputPrinter.h" #include "OutputScreen.h" char server[] = "en.wikipedia.org"; // TODO: maybe this can be deleted? int status = WL_IDLE_STATUS; SiguesAhi::SiguesAhi(OutputType outputType)...
#include <Arduino.h> #include <RadioLib.h> #include<Wire.h> #include <axp20x.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include <TinyGPS++.h> #define HAS_SPI // Tbeam.h needs to know whether to use an SPI (7 wires) or I2C (4 wires) (inc. gnd and vcc) #include <TBeam.h> // Pins are set for display in...
#include <fstream> #include "photo.h" using namespace std; using namespace Image; Cphoto::Cphoto(void) { } Cphoto::~Cphoto() { } void Cphoto::init(const std::string name, const std::string mname, const std::string cname, const int maxLevel) { Cimage::init(name, mname, maxLevel); Ccamera::init(cname, maxLeve...
/** \example example.cpp This is a simple version of muparserx that works as follows... Input: Equation(s) Output: Result type and value of the equation(s) <pre> __________ ____ ___ _____ __ _\______ \_____ _______ ______ __________\ \/ / ...
/* This file is part of libDAI - http://www.libdai.org/ * * Copyright (c) 2006-2011, The libDAI 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 <dai/alldai.h> #include <strstream> #include <fstream> using namespa...
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
#include <iostream> #include <fstream> #include <sstream> #include "jiffy/storage/client/replica_chain_client.h" #include "jiffy/utils/time_utils.h" #include "jiffy/utils/signal_handling.h" #include "jiffy/utils/logger.h" #include "jiffy/utils/cmd_parse.h" #include "jiffy/directory/client/directory_client.h" #include "...