text
stringlengths
7
961k
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
#include "/Users/unicorn1343/Documents/GitHub/trdrop/3rdParty/opencv-4.5.2/modules/core/src/precomp.hpp" #include "/Users/unicorn1343/Documents/GitHub/trdrop/3rdParty/opencv-4.5.2/modules/core/src/convert.simd.hpp"
// Copyright (C) 2019 The Xaya developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef XAYAUTIL_CRYPTORAND_HPP #define XAYAUTIL_CRYPTORAND_HPP #include "uint256.hpp" namespace xaya { /** * Generator for secure ran...
// ========================================== // File: Assignment 3 starter code // Author: Matt Bubernak // Date: 1/29/2018 // Modified: Fall 2016 E.S.Boese, Fall 2018 Alex Curtiss // Fall 2018 S. Gupta // Description: Linked List Fun // ========================================== //github comment #include <iostream> ...
#include "stdafx.h" #include "HealthWidget.h" #include <GWCA/GameContainers/GamePos.h> #include <GWCA/Constants/Constants.h> #include <GWCA/GameEntities/Agent.h> #include <GWCA/GameEntities/Skill.h> #include <GWCA/Managers/ChatMgr.h> #include <GWCA/Managers/AgentMgr.h> #include <GWCA/Managers/MapMgr.h> #include <GW...
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2018, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
// OpenNN: Open Neural Networks Library // www.opennn.net // // L O S S I N D E X C L A S S // // Artificial Intelligence Techniques SL // artelnics@artelnics.com #include "loss_index.h" namespace OpenNN { /// Default constructor. /// It creates a default error term object, with all pointers initializ...
#include <cstdio> #include <cstdlib> #include <unistd.h> #include <zmq.h> #include "cereal/visionipc.h" #include "selfdrive/common/timing.h" #include "selfdrive/common/utilpp.h" #include "RawLogger.h" int main() { int err; VisionStream stream; VisionStreamBufs buf_info; while (true) { err = visionstre...
// Copyright (c) 2017 Lonny Wang <lonnywang@qq.com> // // URL: https://github.com/lonnywang/glibcmock // // 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 with...
/* All or part of this file was contributed by Intel under license: * Copyright (C) 2017-2018 Intel Corporation * SPDX-License-Identifier: MIT */ #include "tensors/cpu/backend.h" #include "tensors/tensor.h" #include "tensors/tensor_allocator.h" #if MKL_FOUND #include <mkl.h> #else #if BLAS_FOUND #include <cbla...
/** * Copyright (C) 2017 MongoDB Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
/****************************** Module Header ******************************\ * Module Name: SampleService.cpp * Project: sample-service * Copyright (c) Microsoft Corporation. * Copyright (c) Tromgy (tromgy@yahoo.com) * * Provides a sample service class that derives from the service base class - * CServiceBase. T...
#pragma once template <typename VecType> class CStateFunctionNone { public: static inline void apply(const VecType & p_v) { } };
// Copyright Marek Dalewski 2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <commander/algorithm.hpp> #include <boost/test/unit_test.hpp> #include "compare_helpers.hpp" ...
#include <bits/stdc++.h> #define int long long #define ii pair<int, int> #define ff first #define ss second #define vi vector<int> #define vii vector<ii> #define pb push_back #define MAX (int32_t(1e6)+1) #define INF (int32_t(1e9)+1) using namespace std; vi adj[MAX]; vii leafs; void dfs(int s, int nvl){ if(adj[s]....
// Copyright 2014 Samsung Electronics 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 "content/renderer/media/tizen/renderer_media_player_manager_tizen.h" #include "base/bind.h" #include "base/message_loop/message_loop.h" #incl...
/* * Copyright (c) 2019 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 func...
/* * ModSecurity, http://www.modsecurity.org/ * Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/) * * 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 * * If any of the files rela...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <memory> #include <assert.h> #include <gtest/gtest.h> #include <ReactABI34_0_0/attributedstring/AttributedString.h> #inc...
/** * Copyright (C) 2017 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be usef...
// FidelityFX Super Resolution Sample // // Copyright (c) 2021 Advanced Micro Devices, Inc. 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, includi...
#include <iostream> #include <chrono> #include <algorithm> #include <cassert> #include <hypergirgs/HyperbolicTree.h> #include <hypergirgs/Hyperbolic.h> using namespace std; using namespace chrono; int main(int argc, char* argv[]) { const auto n = 1000000; const auto alpha = 0.75; // ple = 2*alpha+1 cons...
#include <algorithm> #include "visuals.hpp" #include "../backtrack.hpp" #include "../options.hpp" #include "../helpers/math.hpp" #include "../helpers/utils.hpp" vgui::HFont esp_font; void Renders::CreateFonts() { VerdanaBold12 = g_VGuiSurface->CreateFont_(); icon = g_VGuiSurface->CreateFont_(); g_VGuiSurface->Se...
# ifndef CPPAD_CORE_ATOMIC_ATOMIC_TWO_HPP # define CPPAD_CORE_ATOMIC_ATOMIC_TWO_HPP /* -------------------------------------------------------------------------- CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-18 Bradley M. Bell CppAD is distributed under the terms of the Eclipse Public License...
/* * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/*** * * Copyright (c) 1996-2002, 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 * obje...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obtain...
/* * Copyright (c) 2016-2017 United States Government as represented by * the National Aeronautics and Space Administration. No copyright * is claimed in the United States under Title 17, U.S.Code. All Other * Rights Reserved. */ #include "DensityGridMovingPolys.h" #include <string> #include <map> #include <set>...
/* * Copyright 2019 Xilinx Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
#include "StdInc.h" #include <gtest/gtest.h> #include <pgBase.h> #include <rmcDrawable.h> #include <gtaDrawable.h> #include <phBound.h> //#include <fragType.h> #include <ShaderInfo.h> using namespace rage::five; void FatalError(const char* a, ...) { __debugbreak(); } class testClass : public pgBase { private: ch...
#include <iostream> int main() { int ind = 10; // tend operator, just a joke // in fact: `--`operator and `>` operator while(ind --> 0) { std::cout << ind << " "; } return 0; }
//OBJCORE- A Obj Mesh Library by Yining Karl Li //This file is part of OBJCORE, Coyright (c) 2012 Yining Karl Li #include <objUtil/objloader.h> #include <iomanip> #include <sstream> #include <iostream> #include <fstream> #include <string.h> #include <glm/glm.hpp> using namespace std; objLoader::objLoader(string file...
#include<iostream> #include"singly_linked_list.h" SinglyLinkedListNode* removeDuplicates(SinglyLinkedListNode* head) { auto list_iterator = head; int prev = head->m_data; LinkedList* temp = new LinkedList(); for (; list_iterator != nullptr; list_iterator = list_iterator->next) { if (list_iterator == head) { ...
#include <iostream> #include <cstring> using namespace std; // product = multiplicand * multiplier void multiplication( int multiplicand[], int multiplier[], int product[], int multiplicandSize, int multiplierSize, int &productSize ); int main() { char strX[ 251 ]; char strY[ 251 ]; whi...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "mkldnn_graph_optimizer.h" #include "mkldnn_extension_utils.h" #include "nodes/mkldnn_reshape_node.h" #include "nodes/mkldnn_pooling_node.h" #include "nodes/mkldnn_eltwise_node.h" #include "nodes/mkldnn_concat_node.h" #inc...
#include "../core_include/api.h" #include "../core_include/rect.h" #include "../core_include/cmd_target.h" #include "../core_include/wnd.h" #include "../widgets_include/label.h" #include "../source/ui_ctrl_ex/value_ctrl.h" #include "../include/ctrl_id.h" #include "nibp_value_xml.h" static c_label s_label_name; static ...
// Copyright Carl Philipp Reh 2006 - 2019. // 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) #ifndef SGE_RENDERER_BUFFER_TRAITS_CONST_VIEW_TPL_FWD_HPP_INCLUDED #define SGE_RENDERER_BUFFER_TRAI...
/* * Copyright (C) 2022 Smirnov Vladimir / mapron1@gmail.com * SPDX-License-Identifier: MIT * See LICENSE file for details. */ #include "StorageCache.hpp" #include "FileIOUtils.hpp" #include "CascStorage.hpp" #include "StormStorage.hpp" #include <cassert> namespace D2ModGen { IStorage::StoredData StorageCache:...
/* * Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) * * 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...
// C++ Program for counting sort //Obtenido de: https://www.geeksforgeeks.org/counting-sort/ #include <bits/stdc++.h> #include<time.h> #include <ctime> //Counting sort which takes negative numbers as well #include <iostream> #include <vector> #include <algorithm> using namespace std; void countSort(vector <i...
/* * Copyright 2018 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include <arcore_c_api.h> #include "platform_tools/android/apps/arcore/src/main/cpp/SkArCamera.h" #include "SkArUtil.h" std::unique_ptr<SkArCamera> SkArCamera::Make(SkArSessio...
/************************************************************************* * * Copyright 2016 Realm Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/lice...
#include "activity.hpp" #include "ability.hpp" #include "animation.hpp" #include "audio.hpp" #include "calc.hpp" #include "character.hpp" #include "character_status.hpp" #include "command.hpp" #include "config.hpp" #include "dmgheal.hpp" #include "enchantment.hpp" #include "fish.hpp" #include "food.hpp" #include "fov.h...
// Copyright (c) 2012-2021 The BIGKEYCOIN Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bench/bench.h> #include <interfaces/chain.h> #include <node/context.h> #include <wallet/coinselection.h> #includ...
// // ssl/detail/openssl_init.hpp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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) // #ifndef ASIO_...
/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2018 Clifford Wolf <clifford@symbioticeda.com> * Copyright (C) 2018 David Shah <david@symbioticeda.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided t...
// Copyright 2011 Google Inc. All Rights Reserved. // Author: rays@google.com (Ray Smith) /////////////////////////////////////////////////////////////////////// // File: tessclassifier.cpp // Description: Tesseract implementation of a ShapeClassifier. // Author: Ray Smith // Created: Tue Nov 22 14:16:2...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <stdio.h> #include <stdlib.h> #include <sqlite3.h> #include "util/histogram.h" #include "util/...
#include "StateMachine.hpp" namespace Sonar { void StateMachine::AddState(StateRef newState, bool isReplacing) { this->_isAdding = true; this->_isReplacing = isReplacing; this->_newState = std::move(newState); } void StateMachine::RemoveState() { this->_isRemoving = true; } void StateMachine::Process...
auto PPU::enable() const -> bool { return io.bgEnable || io.spriteEnable; } auto PPU::loadCHR(uint16 addr) -> uint8 { return enable() ? cartridge.readCHR(addr) : (uint8)0x00; } auto PPU::renderPixel() -> void { uint32* output = buffer + io.ly * 256; uint x = io.lx - 1; uint mask = 0x8000 >> (io.v.fineX + (...
/* Copyright (c) 2005-2016, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
/* * Copyright 2016 The Cartographer 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...
// Copyright 2009-2019 NTESS. Under the terms // of Contract DE-NA0003525 with NTESS, the U.S. // Government retains certain rights in this software. // // Copyright (c) 2009-2019, NTESS // All rights reserved. // // Portions are copyright of other developers: // See the file CONTRIBUTORS.TXT in the top level directo...
//================================================================================================= /*! // \file src/mathtest/operations/smatsmatmult/SCaUCb.cpp // \brief Source file for the SCaUCb sparse matrix/sparse matrix multiplication math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserve...
/* ******************************************************************************* * Copyright (c) 2020-2021, STMicroelectronics * All rights reserved. * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You...
#include "mysql/connection.hpp" #include <boost/asio/io_service.hpp> #include <boost/system/system_error.hpp> #include <iostream> /** * For this example, we will be using the 'mysql_asio_examples' database. * You can get this database by running db_setup.sql. * This example assumes you are connecting to a localhost...
/* * Copyright (c) 2018-present, aliminabc@gmail.com. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "AlULayerFilter.h" #include "AlPaintFilter.h" #include "HwNormalFilter.h" #include "AlAbsMFilterAction.h" #include "AlMPaintAct...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include <gtest/gtest.h> #include "graphqlservice/GraphQLGrammar.h" #include <tao/pegtl/contrib/analyze.hpp> using namespace graphql; using namespace graphql::peg; using namespace tao::graphqlpeg; TEST(PegtlCase, Parse...
// // __ __ __ // / / / /__ __ ____/ /_____ ____ // / /_/ // / / // __ // ___// __ \ // / __ // /_/ // /_/ // / / /_/ / // /_/ /_/ \__, / \__,_//_/ \____/ // /____/ // // ...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // Copyright (C) 2018 Intel Corporation #ifndef OPENCV_GAPI_OPERATOR_TESTS_COMMON_HPP #define OPENCV_GAPI_OPERATOR_TESTS_...
// SPDX-License-Identifier: BSD-3-Clause // Copyright (c) 2020-2021, The Monero Project. #include "CalcWidget.h" #include "ui_CalcWidget.h" #include <QList> #include "dialog/CalcConfigDialog.h" #include "utils/AppData.h" #include "utils/ColorScheme.h" #include "utils/config.h" CalcWidget::CalcWidget(QWidget *parent...
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // 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 restrictio...
//says that the function name is main and that it returns an integer //the {} indicate the start and end of the function int main () { }
#include <cstddef> #include <iostream> #include <vector> #include <sstream> #include <cstring> #include <map> //namespace { enum { INT, DOUBLE, STRING, VECTOR, MAP, NEEDS_FREEING, NEEDS_DELETING, NEEDS_DELETING_ARRAY }; class BasicObject { public: operator const std::string() const; const BasicObject...
// Copyright 2020 Lebedev Andrew #include <mpi.h> #include <vector> #include <string> #include <random> #include <ctime> #include <algorithm> #include "../../../modules/task_1/lebedev_a_matrix_max_elem/matrix_max_elem.h" std::vector<int> getRandomMatrix(int mtx_size) { std::mt19937 gen; gen.seed(static_cast<u...
// Copyright Microsoft. 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 to use, copy, modify, merge, ...
#include <stdlib.h> #include <fstream> #include <string> #include <iostream> #include <direct.h> int main() { using namespace std; ofstream outfile; const int n_cols = 20; //[-] Number of circumferential nodes around tube at any axial position const int n_rows = 20; double abs_flux[n_cols][n_rows]; for( ...
/* * MQTTInterface.cpp * * Created on: 1 Nov 2021 * Author: jondurrant */ #include "MQTTInterface.h" MQTTInterface::MQTTInterface() { // TODO Auto-generated constructor stub } MQTTInterface::~MQTTInterface() { // TODO Auto-generated destructor stub }
/* * Copyright (C) 2016 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...
// Copyright 2014 the V8 project 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 "src/compiler/node-cache.h" #include "test/unittests/compiler/graph-unittest.h" #include "test/unittests/test-utils.h" #include "testing/gmock-...
/* Itay Marom Cisco Systems, Inc. */ /* Copyright (c) 2016-2016 Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unle...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 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 "protocol.h" #include "chainparams.h" #include "util.h" #include "utilst...
// Copyright (c) 2021 Pei-Ru Wang, Cheryl Huang, Yuan Zhou. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * Project MyHttpServer * @author Pei-Ru Wang, Cheryl Huang, Yuan Zhou * @version 0.0.1 */ #include "HttpRequestPacket.h" /**...
#include "Player.h" #include <iostream> Player::Player(const sf::Texture& tex) { m_sprite = sf::Sprite(tex); m_position = sf::Vector2f(0.f, 0.f); m_speed = sf::Vector2f(0.f, 0.f); m_sprite.setOrigin(m_sprite.getLocalBounds().width/2.f, m_sprite.getLocalBounds().height / 2.f); m_health = 1000; m_max_healt = 10...
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE_camera_ctl_ui file in the root directory of this subproject. */ #include "CameraDiscoverButton.hpp" #include <iostream> using namespace surround360; using namespace Gtk; C...
static int __=[](){std::ios::sync_with_stdio(false);return 1000;}(); class Solution { public: int countNegatives(vector<vector<int>>& grid) { int sum =0; vector<int>::iterator lower; for(int i = 0 ; i <grid.size() ; i++){ lower = lower_bound(grid[i].begin(), grid[i].end(),-1 , s...
#include "Helpers.h" #include "..\Logger.h" #include "FilePath.h" #include <iostream> #include <fstream> #include <string> #include <locale> #include <clocale> #include <vector> #ifdef _WIN32 #include <windows.h> #endif #ifdef ANDROID #include "HelpersAndroid.h" #include "../StarEngine.h" #endif namespace star { con...
#include <bits/stdc++.h> using namespace std; constexpr int MN = 10'000; int pds[MN]; vector<int> solve(vector<int>& nums, vector<vector<int>>& ops) { if (nums.empty()) return nums; memset(pds, 0, sizeof(pds)); for (int i = 1; i < nums.size(); i++) { pds[i] = nums[i] - nums[i - 1]; } for (auto& op : ops) { ...
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h" #include "Geometry/ForwardGeometry/interface/CastorHardcodeGeometryLoader.h" #include "Geometry/ForwardGeometry/interface/IdealCastorTrapezoid.h" #include "Geometry/ForwardGeometry/interface/CastorGeometry.h" #include "Geometry/ForwardGeometry/src/CastorGeom...
// Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2021 The NEUTRON Core Developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <streams.h> #include "zerocoin.h" #include "hash.h" #include "util.h" #inc...
/** * Copyright (c) 2017, xehoth * All rights reserved. * 「BZOJ 4145」The Prices 10-10-2017 * DP * @author xehoth */ #include <bits/stdc++.h> namespace IO { inline char read() { static const int IN_LEN = 1000000; static char buf[IN_LEN], *s, *t; s == t ? t = (s = buf) + fread(buf, 1, IN_LEN, stdin) :...
// This is the answer to ex2 #include "systemc" using namespace sc_core; using namespace sc_dt; using namespace std; #include "tlm.h" // Initiator module generating generic payload transactions struct Initiator: sc_module, tlm::tlm_bw_transport_if<> { // TLM-2 socket, defaults to 32-bits wide, base protocol tlm...
// file : web/server/apache/log.hxx -*- C++ -*- // license : MIT; see accompanying LICENSE file #ifndef WEB_SERVER_APACHE_LOG_HXX #define WEB_SERVER_APACHE_LOG_HXX #include <httpd.h> // request_rec, server_rec #include <http_log.h> #include <http_config.h> // module #include <cstdint> // uint64_t #inc...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chromecast/base/device_capabilities_impl.h" #include <string> #include <utility> #include "base/macros.h" #include "base/memory/ptr_util.h" #i...
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "modules/serviceworkers/ServiceWorkerWindowClientCallback.h" #include "bindings/core/v8/ScriptPromiseResolver.h" #include "core/dom/DOMException...
/* * Copyright (c), Microsoft Open Technologies, Inc. * 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) 2016 François Trudel * * 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, inc...
/*========================================================================= Program: Visualization Toolkit Module: TestCosmicTreeLayoutStrategy.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. T...
#pragma once #include <Eigen/Dense> #include <iostream> #include <string> #include <vector> #define LEFT_ROBOT_SIDE 0 #define RIGHT_ROBOT_SIDE 1 #define MIDFOOT_TYPE 2 // Data container for a footstep class Footstep { public: Footstep(); Footstep(const Eigen::Vector3d &pos_in, const Eigen::Quaterniond &quat_in,...
// +--+ ummmfpu // +--+ Teaser Dragon CTF 2019 // +--+ by Gynvael Coldwind // +--+ HF GL! // // Arduino UNO uM-FPU (PDIP-18) // 13 (SCK) ----- (SCLK) 16 // 11 (MOSI) ----- (SIN) 12 // 12 (MISO) ----- (SOUT) 11 // 7 (input) ----- (SOUT) 11 // #include <SPI.h> #include <Fpu.h> ...
//////////////////////////////////////////////////////////// // // SFML - Simple and Fast Multimedia Library // Copyright (C) 2007-2016 Laurent Gomila (laurent@sfml-dev.org) // // This software is provided 'as-is', without any express or implied warranty. // In no event will the authors be held liable for any damages a...
/****************************************************** * This is the main file for the mips1 ArchC model * * This file is automatically generated by ArchC * * WITHOUT WARRANTY OF ANY KIND, either express * * or implied. * * For more information on ArchC, please...
#include "stdafx.h" #include "bvh.h" #include "rng.h" int box_x_compare(const void* a, const void* b) { AABB box_left, box_right; Hitable* ah = *(Hitable**)a; Hitable* bh = *(Hitable**)b; if (!ah->bounding_box(0.0f, 0.0f, box_left) || !bh->bounding_box(0.0f, 0.0f, box_right)) std::cerr << "no bounding box in ...
/* * Copyright (c) 2019-2020, NVIDIA 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 l...
// Copyright (c) 2016 The UUV Simulator Authors. // 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 ...
// Copyright (c) 2020 udv. All rights reserved. #ifndef REAL_WINDOWS_WINDOW #define REAL_WINDOWS_WINDOW #include "real/time/timestep.hpp" // TODO: remove api dependency completely #include "real/api/gl/gl_headers.hpp" #include "real/core.hpp" #include "real/window/base_window.hpp" namespace Real::Platform { struc...
// 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 <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints.h" #include "t...
#include "scene/scene.h" void draw(void* arg) { auto s = static_cast<scene*>(arg); s->render(); } int main() { scene test_scene; // Do something in the window emscripten_set_main_loop_arg(draw, &test_scene, 0, true); glfwSwapInterval(1); }
// Copyright 2019 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 <lib/zx/vmo.h> #include <map> #include <blobfs/format.h> #include <blobfs/journal/replay.h> #include <zxtest/zxtest.h> #include "journal/entry-...