text
stringlengths
3.08k
22k
// Incompressible Flow Solver // Copyright (C) 2005 <NAME> //------------------------------------------------------------------------------ // Date: 05 Apr 2005 // Update: 05 Apr 2005 //------------------------------------------------------------------------------ #include "face_bnd_wall_dir.h" #include "cell.h" ...
#include "Model.h" Model::Model() { time = 0; Pokemon* p1 = new Pokemon("Pikachu", 2, 23, 3, 6, 12, 1, 'P', Point2D(5, 1)); PokemonCenter* c1 = new PokemonCenter(1, 1, 100, Point2D(1, 20)); PokemonGym* g1 = new PokemonGym(10, 1, 2, 3, 1, Point2D(0, 0)); BattleArena* a1 = new BattleArena(3, 3, 2.5, 1, Point2D...
/* * Copyright (c) 2008, 2018, 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, version 2.0, as * published by the Free Software Foundation. * * This program is also distributed with...
/********************************************************************** * * MIT License * * Copyright (c) 2018 <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, in...
/* * Copyright 2016 <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...
#include "model.hpp" #include <float.h> #include <limits.h> #include <string.h> #include <algorithm> #include <cmath> #include <fstream> #include <iostream> #include <sstream> #include <string> #include <unordered_map> #include <unordered_set> #include "utils.hpp" // Helper to read vertex void Model::read_vertex(std::...
/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkPatchGrid.h" #include "SkPatchUtils.h" SkPatchGrid::SkPatchGrid(int rows, int cols, VertexType flags, SkXfermode* xfer) : fRows(0) , fCols(0) , fModeF...
/* * Copyright 2018, * * <NAME> * * LAAS, CNRS * * This file is part of Yoyoman01Controller. * */ #include <fstream> #include <map> #if DEBUG #define ODEBUG(x) std::cout << x << std::endl #else #define ODEBUG(x) #endif #define ODEBUG3(x) std::cout << x << std::endl #define DBGFILE "/tmp/sot-yoyoman-device.t...
/* * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. * * 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 ...
/* * Copyright (c) 2020 <NAME> * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <iostream> #include <cmath> #ifdef EMSCRIPTEN # include <emscripten/emscripten.h> # define GLFW_INCLUDE_ES3 #else # include <glad/glad.h> #end...
// For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifdef WIN32 #include <winsock2.h> #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "effect-zone.h" /* * Some code was taken from OpenAL Reverb Example * OpenAL Reverb Exam...
/** The MIT License (MIT) Copyright (c) 2014-2015 Dong-hee,Na 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, mod...
/////////////////////////////////////////////////////////////////////////////////// /// An /// ___ ____ ___ _____ ___ ____ /// / _ \ / ___|_ _|_ _/ _ \| _ \ /// | | | | | _ | | | || | | | |_) | /// | |_| | |_| || | | || |_| | _ < /// \___/ \____|___| |_| \___/|_| \_\ /// ...
#include <Arduino.h> // TCP/IP Fixes extern "C" { // Headers #include "lwip/ip.h" #include "lwip/tcp.h" #include "lwip/tcp_impl.h" #include "user_interface.h" // TCP/IP Max Socket Client Connections uint8 espconn_tcp_get_max_con(void); sint8 espconn_tcp_set_max_con(uint8 num); void tcpFixes() { uint8 maxtcp = espco...
#include "./fs_const_archiver.hpp" #include <cstring> #include <mm/logger.hpp> #define LOG_CRIT(...) __LOG_CRIT( "Filesystem", __VA_ARGS__) #define LOG_ERROR(...) __LOG_ERROR("Filesystem", __VA_ARGS__) #define LOG_WARN(...) __LOG_WARN( "Filesystem", __VA_ARGS__) #define LOG_INFO(...) __LOG_INFO( "Filesystem", __V...
// Copyright 2018 The Fuchsia 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 <ctype.h> #include <sstream> #include <stdio.h> #include <utility> #include <fbl/string.h> #include <fbl/vector.h> #include <fuchsia/boot/c/fidl....
//===- Symbols.cpp --------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------...
#include <boost/asio.hpp> #include "vdf.h" using boost::asio::ip::tcp; const int max_length = 2048; const int kMaxProcessesAllowed = 3; std::mutex socket_mutex; int process_number; void PrintInfo(std::string input) { std::cout << "VDF Client: " << input << "\n"; } void CreateAndWriteProof(integer D, form x, int...
/** * MIT License * * Copyright (c) 2018 <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...
#include <iostream> #include <fstream> #include <sstream> #include "CommonHeader.h" #include <omp.h> #include "NonlinearOptimizerInfo.h" static Robot SimRobotObj; static std::vector<double> RefConfiguration; static std::vector<int> EndEffectorLink2Pivotal; static Vector3 RefAvgPos; static std::vector<LinkInfo> RobotLi...
#include <getopt.h> #include <iostream> #include <fstream> #include <sstream> #include <vector> #include <set> #include <map> #include <list> #include <sys/stat.h> #include "dbconnector.h" #include "select.h" #include "netdispatcher.h" #include "netlink.h" #include "producerstatetable.h" #include "portsyncd/linksync.h"...
/*========================== begin_copyright_notice ============================ Copyright (C) 2021 Intel Corporation SPDX-License-Identifier: MIT ============================= end_copyright_notice ===========================*/ #include "vc/Support/PassManager.h" #include "vc/Support/PassPrinters.h" #include <llvm...
/* Stockfish, a UCI chess playing engine derived from Glaurung 2.1 Copyright (C) 2004-2008 <NAME> (Glaurung author) Copyright (C) 2008-2015 <NAME>, <NAME>, <NAME> Copyright (C) 2015-2016 <NAME>, <NAME>, <NAME>, <NAME> Stockfish is free software: you can redistribute it and/or modify it under the terms of t...
#include <iostream> #include <stdexcept> #include <unordered_map> enum class Token { Plus, Minus, Mult, Div, Num, OpenBracket, CloseBracket, Word, End, Invalid, }; class Tokenizer { public: void set(const char* str) { this->str = str; value = 0; currentToken = Token::Invalid; } int getToken() { ...
/* * Copyright 2015 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
#include <iostream> #include <vector> #include <cstring> #include <algorithm> #include <fstream> #include <random> #include <time.h> #include "graphics.h" #define CENTERX 250 #define CENTERY 250 #define NUMBEROFLINES 20 using namespace std; time_t timer; struct tm y2k = { 0 }; unsigned long long seconds,crt=0; uns...
#include "src/om_log.h" #include "src/CmdLineOptions.h" #include "src/MicroCore.h" #include "src/OpenMoneroRequests.h" #include "src/ThreadRAII.h" #include <iostream> #include <memory> #include <cstdlib> using namespace std; using namespace restbed; using boost::filesystem::path; // signal exit handler, addpated f...
// Copyright 2022 <NAME> #include "../../../modules/task_3/cheremushkin_a_matrix_multiplication_tbb/ComplexMatrix.h" #include <tbb/tbb.h> #include <omp.h> #include <vector> #include <string> #include <stdexcept> #include <complex> #include <iostream> #include <random> #include <cstring> MatrixComplex::MatrixComplex() :...