text
stringlengths
8.71k
38.4k
// This file is subject to the terms and conditions defined in 'LICENSE' in the source code package #include "gui/menus_debug.h" #include <algorithm> #include <fstream> #include <imgui.h> #include <ostream> #include "jactorio.h" #include "core/execution_timer.h" #include "core/resource_guard.h" #include "game/input...
/* The MIT License Copyright 2021 Krishna <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 limitation the rights to use, copy, modify, mer...
/** ********************************************************************* ************************************************************************* *** *** \file FileEventWatcher.cpp *** \brief FileEventWatcher class body *** ***************************************** ***************************************** ...
/* * SpectrumAlgorithm-test.cpp * * Copyright (C) 2011 <NAME> * Copyright (C) 2011 <NAME> * * This file is part of the Mass Spectrometry Toolkit (MSTK). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...
#include <iostream> #include <iomanip> #include <string> #include <fstream> #include "clpp.hpp" #include <type_traits> #include <unordered_map> #include <map> #include <random> namespace utility { auto readFile(std::string const& filePath) -> std::string { std::ifstream ifs{filePath}; std::string content{ st...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "Eigen-3.3/Eigen/Core" #include "Eigen-3.3/Eigen/QR" #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json; // For conver...
#include <iostream> #include <iomanip> #include <numbers> #include <captal/engine.hpp> #include <captal/texture.hpp> #include <captal/sound.hpp> #include <captal/view.hpp> #include <captal/physics.hpp> #include <captal/text.hpp> #include <captal/shapes.hpp> #include <captal/components/node.hpp> #include <captal/compo...
#include <fstream> #include <math.h> #include <uWS/uWS.h> #include <chrono> #include <iostream> #include <thread> #include <vector> #include <string> #include "json.hpp" #include "spline.h" using namespace std; // for convenience using json = nlohmann::json; double deg2rad(double x) { return x * M_PI / 180; } double...
#include <algorithm> #include <gtest/gtest.h> #include <memory> #include <string> #include "vector.hpp" ft::vector<int>::size_type init_capacity = 0; TEST(TestVectorConstructors, TestVectorDefaultConstructor) { ft::vector<int> v1; ft::vector<std::string> v2; ft::vector<float, std::allocator<float>> v3; ASSE...
/* * Copy_right 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * y_ou may_ not use this file ex_cept 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_ ...
#include <math.h> #include <cvode/cvode.h> // prototypes for CVODE fcts. and consts. #ifdef SUNDIALS2 #include <cvode/cvode_spgmr.h> // prototypes & constants for CVSPGMR #elif SUNDIALS3 #include <cvode/cvode_spils.h> //#include <sunlinsol/sunlinsol_spgmr.h> #elif SUNDIALS4 //#include <sunlinsol/sunlin...
// // TrafficNet.cpp // Travel-Simulation-System I // // Created by YeWenting. on 16/4/10. // Copyright © 2016年 <NAME>, 404. All rights reserved. // //小函数写宏 #include <cstdlib> #include <ctime> #include <cmath> #include <sstream> #include <deque> #include <cstring> #include "trafficNet.h" #include ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2018-2020 The Ion Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "pow.h" #include "arith_uint25...
int gRUaal ,Yd2,Gh ,//NO qI ,A, COJ2b,bXu, tSFV ,fVZ6 , h9 ,HFp , nm , gvO ,E, XjXs , lL, o6 , u24J, O,/*1j*/ LSG, ZAG //Jm , mhpn ,xp,hWtL ,e79 , AP , SQJz , rmC,// asxfR , Y //Yef ,p , kM , EL, cS , Mg2, Yz ,hOL /*0x*/ , cL ,Zp , Ea ,//I DeI ,d , hGpc ,InPw/*gO*/, NO, Rz2 , G9HQ, h ...
// Copyright (c) 2009-2010 <NAME> // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2019-2020 The GlobalSalaryCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "db.h" #include "addrma...
// Copyright © 1996-2018, Valve Corporation, All rights reserved. #include "tier1/convar.h" #include <cstdio> #include <cstdlib> #include <cstring> #include "Color.h" #include "icvar.h" #include "tier0/include/basetypes.h" #include "tier0/include/dbg.h" #include "tier0/include/memdbgon.h" #include "tier1/characterset...
/* * actionYacc.h * auto generated by SeuYacc::output_action() * action source file: Cminus.y */ #include "DataStructureDefine.h" #include "generateHead.h" using namespace std; string p; pair<unsigned int, string> performAction(unsigned int index, map<string, string>& reduceHead) { size_t stackSize = Stack.size()...
/* ------------------------------------------------- _ _ ___ __ _| |_ _ _(_)___/ __| __ __ _ _ _ _ _ ___ _ _ / _` | _| '_| / -_)__ \/ _/ _` | ' \| ' \/ -_) '_| \__, |\__|_| |_\___|___/\__\__,_|_||_|_||_\___|_| |___/ gtrieS...
/*------------------------------------------------------------------------ * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2019 The Khronos Group Inc. * Copyright (c) 2019 Google Inc. * Copyright (c) 2017 Codeplay Software Ltd. * * Licensed under the Apache License, Version 2.0 (the "Lic...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "assert.h" #include "chainparams.h" #include "main.h" #include "util.h" #include <boos...
/******************************************************************************* * Copyright (c) 2016 manxinator * * 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, includi...
/***************************************************************************** * SV_SplitRead.cpp * (c) 2012 - <NAME> * Hall Laboratory * Quinlan Laboratory * Department of Computer Science * Department of Biochemistry and Molecular Genetics * Department of Public Health Sciences and Center for Public Health Gen...
// Palanteer viewer // Copyright (C) 2021, <NAME> <<EMAIL>> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version...
/************************************************************************** *** *** Copyright (c) 1995-2000 Regents of the University of California, *** <NAME>, <NAME> and <NAME> *** Copyright (c) 2000-2010 Regents of the University of Michigan, *** <NAME>, <NAME>, <NAME> and *** ...
/** * @file MessageDigestSHA256.cpp * * Copyright (c) 2015 <NAME>. All rights reserved. * * SPDX-License-Identifier: BSL-1.0 * * based on: * sha256.h and sha256.cpp * from hash-library by <NAME> * (http://create.stephan-brumme.com/hash-library) * * Copyright (c) 2014 <NAME>. All rights reserved. * see http...
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001-2003 <NAME>. * * All rights reserved. Email: <EMAIL> Web: www.q12.org * * ...
#include "motion_estimator.hpp" #include <iomanip> #include <iostream> #include <map> namespace { template <typename Ord> inline Ord median(Ord a, Ord b, Ord c) { if (a < b) { if (b < c) { return b; } // a < b < c if (a < c) { return c; } // a < c <= b { return a; } // c <= a < b } els...
/////////////////////////////////////////////////////////////////////////////////////// // Data Analysis Code Project for the External Target Facility, HIRFL-CSR, @IMP // // // // BINGER/inc/etf/TACtrlPara.cxx // // TACtrlPara.cxx -- source f...
/* Minetest Copyright (C) 2013 celeron55, <NAME> <<EMAIL>> 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 2.1 of the License, or (at your option) any later version. This progr...
#include <iostream> #include <set> #include <queue> #include <utility> using namespace std; class MyLess { public: bool operator()(const pair<int, int> &p1, const pair<int, int> &p2) const { return (p1.first < p2.first || (p1.first == p2.first && p1.second < p2.second)); } }; class MyGreater { public: bool ope...
// This file is part of: // gnss-sim: A GNSS Signal Simulator // // Copyright (c) 2020 <NAME> // SPDX-License-Identifier: MIT // // Derived from https://github.com/osqzss/gps-sdr-sim (MIT Licence): // Copyright (c) 2015-2020 <NAME> #include "gpssim.h" #include "gps_channel.h" #include "gps_time.h" #include "gps_ephem....
#include "hlt/hlt.hpp" #include "hlt/navigation.hpp" #include "raf/raf.hpp" #include <map> #include <set> static const char *BOT_VERSION = "RafBot32"; // TODO // // Fix ship crash issue // // Tune loop to ensure ships go to nearest planet rather than assign in indexed order. // https://halite.io/play/?game_id=2207205&...
/******************************************************************************* * Copyright (c) 2000, 2019 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at http://ec...
/** * Copyright 2020-2021 Huawei Technologies Co., Ltd * * 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 applicabl...
/* This code and all the code in this package is publicly released on CRAN under the license GPL 3.0 available at https://cran.r-project.org/web/licenses/GPL-3 See DESCRIPTION for further information about the authors. */ #include <iostream> #include <algorithm> #include <string> #include <numeric> // std:...
//+------------------------------------------------------------------------- // // Microsoft Windows // // Copyright (C) Microsoft Corporation, 1998 - 1999 // // File: connection.cpp // //-------------------------------------------------------------------------- #include "pch.h" #include <SnapBase....
#include <ros/ros.h> #include <tf/transform_listener.h> #include <visualization_msgs/Marker.h> #include <visualization_msgs/MarkerArray.h> #include <move_base_msgs/MoveBaseAction.h> #include <geometry_msgs/PoseArray.h> #include <lifelong_benchmarking/PlanAction.h> #include <actionlib/server/simple_action_server.h> #inc...
//#include "OBB.hpp" #include <stdio.h> // ifstream::is_open #include <fstream> #include <rwsim/dynamics/OBRManifold.hpp> #include <vector> #include <rw/math/LinearAlgebra.hpp> #include <rw/math/Vector3D.hpp> #include <rwsim/dynamics/ContactPoint.hpp> #include <rwsim/dynamics/ContactCluster.hpp> #include <boost/nume...
#include "../include/Decimal.h" using namespace std; // default constructor Decimal::Decimal() { size = 1; content = new char[size]; content[0] = '0'; } // helper function that return the number of digits of a int int countDigit(int inputNum) { int count = 1; while (inputNum / 10 != 0) { ...
// Copyright 2019 <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, s...
#include "LocusAFX.h" #include "./Console.h" #include "./ResMan.h" #include "./Time.h" #include "./ConsoleFunctions.h" //#include "./Application.h" ConVarsMap CVmap; // Карта изменяемых переменных CConsole * MainCon = NULL; char upcase ( char a ) { if (a == 'a') return 'A'; if (a == 'b') return 'B'...
#include <glad/glad.h> #include <GLFW/glfw3.h> #include <string> #include <fstream> #include <sstream> #include <iostream> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> float vertices[] = { -0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -1.0f, 0.5f, -0.5f, -0.5f, 0.0f, 0.0f, -...
//rdata ProfileStruct bnprofiles[4] = { { "profile\\sex", '\x01', 1128, 8 }, { "profile\\age", '\x01', 1130, 4 }, { "profile\\location", '\x01', 1132, 40 }, { "profile\\description", '\x01', 1134, 200 } }; int profilemsg1[6] = { 1125, 1127, 1129, 1131, 1133, 0 }; int profilemsg2[6] = { 1126, 112...
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics> * * 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, *...
/*! @file ShapeLayout.cpp Distributed under Open Software License 3.0 http://www.opensource.org/licenses/osl-3.0.php @verbatim $Id: ShapeLayout.cpp 15 2006-03-30 15:34:42Z henry_groover $ ShapeLayout.cpp: implementation of the CShapeLayout class. */ #include "stdafx.h" #include "PaperCut...
#include "d3_flow.h" #include <cstdint> #include <cstdio> #include <cstdlib> #include <algorithm> #include <assert.h> #include <iomanip> #include "../coresim/event.h" #include "../coresim/flow.h" #include "../coresim/packet.h" #include "../coresim/queue.h" #include "../coresim/topology.h" #include "../run/params.h" ...
#include "Grid.hpp" #include "Rectangular.hpp" #include "SnowParticle.hpp" #include "Sphere.hpp" #include "Triangle.hpp" #include "camera.hpp" #include "extra.hpp" #include "simDomain.hpp" #include <GL/glut.h> #include <iostream> namespace { // Global variables here. // This is the camera Camera camera; // These are...
/******************************************************** * mergebin * Written by <NAME> (<EMAIL>) * * Released to the public domain, use at your own risk! ********************************************************/ #include "stdafx.h" #include "MetaData.h" #include "MetaDataTables.h" #include "TableData.h" void ...
#include <SDL.h> #include <SDL_audio.h> #include <chrono> #include <condition_variable> #include <cstring> #include <deque> #include <emscripten/bind.h> #include <emscripten/emscripten.h> #include <emscripten/val.h> #include <fmt/format.h> #include <mutex> #include <spdlog/spdlog.h> #include <thread> #include <vector> ...
#include "refidcollection.hpp" #include <stdexcept> #include <memory> #include <components/esm/esmreader.hpp> #include "refidadapter.hpp" #include "refidadapterimp.hpp" #include "columns.hpp" CSMWorld::RefIdColumn::RefIdColumn (int columnId, Display displayType, int flag, bool editable, bool userEditable) : Co...
// PhoeniX OS Memory subsystem // Copyright © 2017 <NAME> a.k.a. PhoeniX #include "pagetable.hpp" #include "efi.hpp" #include "multiboot_info.hpp" #include "sprintf.hpp" #include "kprint.hpp" #include "memop.hpp" #include "rand.hpp" using PTE = Pagetable::Entry; Mutex Pagetable::page_mutex; uintptr_t Pagetabl...
/*************************************************************************** * text_area.cpp - description * -------------------------- * begin : January 10, 2002 * copyright : (C) 2002 by...
#include "PCH.h" cpurt::Ray::CameraParams::CameraParams(const rfw::CameraView &view, uint samples, float epsilon, uint width, uint height) { pos_lensSize = glm::vec4(view.pos, view.aperture); right_spreadAngle = vec4(view.p2 - view.p1, view.spreadAngle); up = vec4(view.p3 - view.p1, 1.0f); p1 = vec4(view.p1, 1.0f)...
#include <iostream> #include <fstream> #include <string> #include <cassert> #include <vector> #include <cstdlib> #include <stdexcept> #include <iostream> #include <sstream> #include <map> #include <stack> #include <exception> #include <stdio.h> #include <stdlib.h> using namespace std; enum RichtTyp...
#include "rs-tl/compact-array.hpp" #include "rs-unit-test.hpp" #include <string> #include <utility> #include <vector> using namespace RS::TL; using namespace RS::UnitTest; namespace { std::string repeat_string(const std::string& str, size_t n, const std::string& delimiter) { if (n == 0) retur...
/* * Copyright (c) 2015 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
/* File QuadProgf++.cc see QuadProg++.cc, modified by <NAME> to use float instead of float. */ #include <iostream> #include <algorithm> #include <cmath> #include <limits> #include <stdexcept> #include <sstream> #include "QuadProg++.hh" // Utility functions for updating some data needed by the solution metho...
// Include the standard C++ headers #include <cmath> #include <math.h> #include <cfloat> #include <cstdio> #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <sys/stat.h> #include <time.h> // Include the header file of FDPS #include <particle_simulator.hpp> // Include the header file o...
/* * Copyright 2004-2018 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is 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 * *...
/* Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distributed in the hope...
/* ------------------------------------------------------------------------- * * dfmgr.c * Dynamic function manager code. * * Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * src/backend/util...
#if __longELLISENSE__ //solve longellisence error on arm mac. #undef __ARM_NEON //see https://github.com/microsoft/vscode-cpptools/issues/7413 #undef __ARM_NEON__ #endif #include <iostream> #include <fstream> #include <exception> #include <iostream> #include <algorithm> #include "MyHEMesh.h" using std::vector; u...
// Driver program to assemble code #include "driver.h" int main(int argc, char** argv) { const char *infile; std::string outfile; bool big_endian, standard_output, file_traceability, full_traceability = 0; char output_type = 0; // 0:normal, 1:hex, 2:concat included char dasm_flags = 0; unsi...
// // ofxEleksDraw // // Created by <NAME> on 11/7/19. // #include "ofxEleksDraw.hpp" void ofxEleksDraw::setup(){ //set some defaults max_speed = 10000; speed = 5000; pressure = 60; circle_resolution = 50; plotter_x_limit = 80; plotter_y_limit = 80; show_transit_lines = tru...
/*========================================================================= Program: Visualization Toolkit Module: vtkCirclePackFrontChainLayoutStrategy.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This softwa...
/****************************************************************************** IrstLM: IRST Language Model Toolkit, compile LM Copyright (C) 2006 <NAME>, ITC-irst Trento, Italy This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publ...
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. #define BOOST_TEST_MODULE CTCInferenceCodeletTest #include "CTCInferenceCodeletTestConnection.hpp" #include <poplar/Engine.hpp> #include <poplar/Graph.hpp> #include <poplar/IPUModel.hpp> #include <poplar/Type.hpp> #include <poplibs_support/Algorithm.hpp> #incl...
int VLE , /*MbA*/El3 ,C,udN , /**/J ,cb,unl /*f*/,t ,Xm ,noO, TeO ,uZtTS , uc, YKSoh ,//wiem nhMB ,gL ,rK1 ,CCbAv ,Bmu,x9zYE,yTH, yPG2 ,Gd , HP , KE,// /*LET*/pSWr ,/*zE*/ Sw, zFi ,//mD /*L*/G4P ,hP , Okt,mXpDT , fq /*Tr3r9*/, H6j// ,AA, q //H ,T84T , RZ,IpJlm, pz,li ,HJM ,hAL,D8Esk ,// sLJ //o , aN,...
/* $Id: tstIprtMiniString.cpp 69111 2017-10-17 14:26:02Z vboxsync $ */ /** @file * IPRT Testcase - RTCString. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can red...
#include "vapor/LayeredGrid.h" #include "vapor/utils.h" #include <cfloat> #include <cmath> #include <iostream> #include <stdio.h> #define INCLUDE_DEPRECATED_LEGACY_VECTOR_MATH #include "vapor/LegacyVectorMath.h" #include "vapor/VAssert.h" using namespace std; using namespace VAPoR; void LayeredGrid::_layeredGrid(cons...
#include "extfuncs.hpp" #include "functions.hpp" #include "window.hpp" #include <wx/menu.h> #include <wx/button.h> #include <wx/statline.h> #include <wx/msgdlg.h> #include <string> #include <vector> #include <unordered_set> using namespace std; bool is_numeric(string inp, bool include_fractions = true); string join...
#include "../renderer.h" #include "movies.h" // 10 frames #define VIDEO_BUFFER_SIZE 10 // 20 seconds #define AUDIO_BUFFER_SIZE 20 #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 #define STACK_MAX_NAME_LENGTH 256 inline double round(double x) { return floor(x + 0.5); } #define LAG (((now - start_time) - (timer_freq /...
#include <GL/freeglut.h> #include "tinyxml2.h" #include "utils.h" #include "player.h" #include "bullet.h" #include "circle.h" #include <time.h> #include <math.h> #include <list> // -----------------------------Trabalho 4 CG -------------------------- Prof TOD Santos ---------------------------- Aluno: <NAME> bool keyF...
#pragma once #include <iostream> #include "json_data.hpp" string read_option(string line){ std::istringstream oss(line); std::vector<std::string> option_string{ std::istream_iterator<std::string>{oss}, std::istream_iterator<std::string>{}}; // assert(option_string.size() == 2); return option_strin...
/* * iaf_psc_alpha_canon.cpp * * This file is part of NEST. * * Copyright (C) 2004 The NEST Initiative * * NEST 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, o...
// Copyright 2017 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 #include "xfa/fxfa/parser/cxfa_rectangle.h" #include <cmath> #include <utilit...
// // Copyright 2019 DreamWorks Animation // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and replaced with...
#include "textfield.h" #include "textfile.h" #include "text.h" #include <algorithm> #include <fstream> #include "scheduler.h" #include "unicode.h" #include "regex.h" #include "wrappedtextiterator.h" #include "projectexplorer.h" #include "controlmanager.h" #include "statusbar.h" #include "style.h" #include "inmemory...
/* Copyright (c) 2018-2020 <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, sub...
/* Copyright (c) 2015, The Linux Foundation. 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 ...
/* * Copyright (c) 2015-2016 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the ...
#include <iostream> #include <stdlib.h> #include <math.h> // Necessary to declare constant for OPS. double dx, dy, dt; // Step for each dimension and time. double nx, ny; #define PREVIOUS 0 #define CURRENT 1 #define NEXT 2 #define M_PI 3.14159265358979323846 #define BORDER_SIZE 20 #define CPML 20 #define SOURCE_LOCAT...
/* Copyright 2018 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
#include <string> using namespace std; struct customcolour { int red; int green; int blue; }; int main(int argc, char *argv[]) { customcolour Snow; Snow.red = 255; Snow.green = 250; Snow.blue = 250; customcolour Snow_2; Snow_2.red = 238; Snow_2.green = 233; Snow_2.blue = 233; customcolour Sno...
int LD ,llYp ,cL , NhnN ,Jbt ,/*nHXK*/ /*tbh*/nEov,pyG , jGu , j4t46 , YG, spCS , tm/*t*/ , ySP , x ,ZHW , pOZugs16 ,Srp ,PcEXF /*KCu*/, nk ,//Wze TQJ46 ,X0i, cGV2 ,HAm ,RqTPN/**/,Ha , X ,i,dkj,YJP, Fe , //1 mjdZk ,W2vh ,//uo cBEo, uXWR , iyyFX, Cz,WG, oX7V//wuij , IrU, XFPZK ,z, /*Sk*/ ...
int bmA ,Jv, ZHrY ,eRz//G ,ZYM6 , GM , RGY, Mnz, sSK8, //Vx he , NNtV ,kI,fCS/**/, BM, B , zRf,bSTlVb,A , ipSJU , f , S61, mjU /*i*/, Jx9QP, x8l ,fen, xKs , dt ,wo2P/*PDG*/,iwuWr , N0 ,RyW,Pjg , ix , G9Xk6 ,t9 ,d , U8sG ,bw2 , p ; void f_f0/*9*/ () /*UO*/ { {volatile int RyR /*UR*/, O2H,Uj...
// Copyright (c) 2020 <NAME>. // See LICENSE.txt for details. #include "avro/ValidSchema.hh" #include "services/kafka_producer_impl.h" #include "services/kafka_consumer_impl.h" #include "services/kafka_client.h" #include "services/kafka_callbacks.h" #include "tc_schema/cdm.h" #include "serialization/utils.h" #include...
#include "OCL_Device.h" #define ENABLE_RELEASE_LOGGING #include "misc_log_ex.h" OCL_Device::OCL_Device(unsigned int iPlatformNum, unsigned int iDeviceNum, unsigned int iWorkSize, unsigned int iKernelType, const char* sKernel) { ok = false; m_platform_num = iPlatformNum; m_device_num = iDeviceNum; m_type = iKernel...
#include "MPU6050.h" MPU6050::MPU6050(void) { } //============================================================================== //====== Set of useful function to access acceleration. gyroscope, //====== and temperature data //============================================================================== float M...
/** <NAME> * Loading ateneam statues from wavefront object file * In the init I call loadObject with the file and vectors address then * Using stringstreams and vectors I read the file and find the * corresponding prefix for each vector to hold the corresponding values: * vertex, normals, faces(indices). Ea...
/* Copyright (C) 2003 MySQL AB 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; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT AN...
#include "mainwindow.h" #include "ui_mainwindow.h" #include "statusbar.h" #include "newdatapackdialog.h" #include "settingsdialog.h" #include "aboutdialog.h" #include "disclaimerdialog.h" #include "globalhelpers.h" #include "tabbeddocumentinterface.h" #include "parsers/command/minecraftparser.h" #include "imgviewer.h"...
//#Estos scripts estan escritos en c++, por eso su extension es cpp. //#Cada uno de los archivos en la carpeta src representa un nodo. //#Los siguientes son los topics que se manejan en estos nodos: //#------suscribir a------------------/current_cylinder_blocks //#------suscribir a------------------/cylinder_blocks_po...
#include <stdio.h> #include <iostream> #include <cstring> #include <stdlib.h> #include <random> #include <cstdlib> #include <ctime> using namespace std; //Definindo o structure Carta e seus atributos. struct Carta { int ID; string nome; int vitalidade; int inteligencia; int forcaBruta; int velo...
//LIC// ==================================================================== //LIC// This file forms part of oomph-lib, the object-oriented, //LIC// multi-physics finite-element library, available //LIC// at http://www.oomph-lib.org. //LIC// //LIC// Copyright (C) 2006-2022 <NAME> and <NAME> //LIC// //LIC// This lib...
// file: MainWind.cpp // Class: CS5800 // Project: Turing Machine Simulator // Author: <NAME> // Date: 4/08/2018 // Description: // // #include "MainWind.h" #include "util.h" #include "TuringMachine.h" #include "Transition.h" #include "TuringMachineFactory.h" #include <chrono> #include <thread> #include <fstream> #i...
/******************************************************************************************************* * Copyright 2018 Alliance for Sustainable Energy, LLC * * NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC * ("Alliance") under Contract No. DE-AC36-08GO28308 with the...
// Test things to judge what an NPC might be thinking. (want to do) // But take no actions here. #include "graysvr.h" // predef header. CREID_TYPE CChar::NPC_GetAllyGroupType(CREID_TYPE idTest) // static { ADDTOCALLSTACK("CChar::NPC_GetAllyGroupType"); switch ( idTest ) { case CREID_MAN: case CREID_WO...
/* * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In jurisdict...
#include "MeshNode.h" MeshNode::MeshNode(unsigned short _listeningPort, std::string _name): listeningPort(_listeningPort), name(_name) { listener = std::unique_ptr<sf::TcpListener>(new sf::TcpListener); selector = std::unique_ptr<sf::SocketSelector>(new sf::SocketSelector); // Set the listener to be block...