text
stringlengths
5
1.04M
// Copyright 2022 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 <fidl/fuchsia.driver.framework/cpp/wire.h> #include <lib/async/cpp/executor.h> #include <lib/ddk/debug.h> #include <lib/driver2/devfs_exporter.h> ...
// Copyright (c) 2012 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 "chrome/browser/ui/ash/launcher/launcher_application_menu_item_model.h" #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_...
// Copyright 2012 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/objects.h" #include "src/assembler-inl.h" #include "src/bootstrapper.h" #include "src/counters.h" #include "src/date.h" #include "src/dis...
//===--- ClangdLSPServer.cpp - LSP server ------------------------*- 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 "RecoLocalCalo/HcalRecAlgos/interface/HcalSeverityLevelComputer.h" #include "CondFormats/HcalObjects/interface/HcalChannelStatus.h" #include "DataFormats/METReco/interface/HcalCaloFlagLabels.h" #include "DataFormats/METReco/interface/HcalPhase1FlagLabels.h" #include "DataFormats/HcalDetId/interface/HcalGeneric...
/* $Id: panama.c 216 2010-06-08 09:46:57Z tp $ */ /* * PANAMA implementation. * * ==========================(LICENSE BEGIN)============================ * * Copyright (c) 2007-2010 Projet RNRT SAPHIR * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associa...
// // Created by AUGUS on 2021/8/28. // #include "augus_list.hh" using namespace augus_list; ListSortSptr ListSort::instance() { static ListSortSptr _sptr = nullptr; if (_sptr == nullptr) { _sptr = std::make_shared<ListSort>(); } return _sptr; }
#pragma once #include <string> // std::String #include <unordered_map> // std::unordered_map #include <utility> // std::pair #include <vector> // std::vector #include <seqan/basic.h> #include <seqan/hts_io.h> // seqan::HtsFileIn, seqan::BamAlignmentRecord #include <seqan/sequence.h> #include <gra...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
/* This testcase is part of GDB, the GNU debugger. Copyright 2008-2017 Free Software Foundation, Inc. Contributed by Red Hat, originally written by Keith Seitz. 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...
// Copyright Dmitry Anisimov danston@ymail.com (c) 2017. // README: /* Implementation of the modified Catmull-Clark quad-based subdivision in R2 for computing barycentric coordinates. This class depends on: 1. Face.hpp 2. VertexR2.hpp 3. MeshR2.hpp */ #ifndef GBC_QUADSUBDIVISIONR2_HPP #defi...
#include <cstddef> #include <stdexcept> #include "join.hpp" #include "set_operations.hpp" #define SHRINK_MISSED_VLEN 256 namespace frovedis { std::vector<size_t> shrink_missed(std::vector<size_t>& to_shrink, std::vector<size_t>& missed) { size_t missedsize = missed.size(); if(m...
#include "atanhnode.h" ATanHNode::ATanHNode() { this->setTitle("ATanh"); this->setHeight(120); this->setWidth(140); this->setPanelColor(QColor(195,20,50)); this->setPanelGradColor(QColor(36,11,54)); this->functionName="math.atanh"; Port p1; p1.Parent=this; p1.Position=QPoint(20,75...
// Copyright (c) 2018 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 "quiche/quic/core/qpack/qpack_encoder.h" #include <algorithm> #include <utility> #include "absl/strings/str_cat.h" #include "absl/strings/s...
#include "../../../chain/include/eosio/chain/wasm_eosio_constraints.hpp" #include "Inline/BasicTypes.h" #include "Inline/Serialization.h" #include "Inline/UTF8.h" #include "WASM.h" #include "IR/Module.h" #include "IR/Operators.h" #include "IR/Types.h" #include "IR/Validate.h" using namespace Serialization; static voi...
//===-- lds_gaussian_fit_em.cpp - GLDS Fit (EM) ---------------------------===// // // Copyright 2021 Michael Bolus // Copyright 2021 Georgia Institute of Technology // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtai...
/** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/server/GOSSIP_onReceived.h" #include "logdevice/server/ServerWorke...
// Copyright 2014 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 "components/policy/core/browser/autofill_policy_handler.h" #include "base/prefs/pref_value_map.h" #include "base/values.h" #include "components/...
// MIT Licensed (see LICENSE.md). #pragma once namespace Zero { // Editor Resource management functions. These functions work with the // content system and the resource system to manage resources for the editor. // Add a new resource all resource adding goes through this function Resource* AddNewResource(ResourceMa...
#include<iostream> using namespace std; long long fast_pow(long long x, long long y, long long p) { long long res = 1; while(y > 0) { if( y % 2 != 0) { res = (res * x) % p; } x = (x * x) % p; y /= 2; } return res; } long long qwerty1(long long x, long long...
#include <iostream> #include <thread> #include <chrono> #include <string> #include <vector> #include <ncurses.h> #include <time.h> #include <sstream> #include <iomanip> #include "util.h" #include "SysInfo.h" #include "ProcessContainer.h" using namespace std; char* getCString(std::string str){ char * cstr = new c...
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved #include "SpatialReceiver.h" #include "EngineMinimal.h" #include "GameFramework/PlayerController.h" #include "TimerManager.h" #include "EngineClasses/SpatialActorChannel.h" #include "EngineClasses/SpatialNetConnection.h" #include "EngineClasses/SpatialPacka...
#include <precompiled.h> /// /// MIT License /// Copyright (c) 2018-2019 Jongmin Yun /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHAL...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2017-2020 Baldur Karlsson * * 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...
//===- YAMLRemarkSerializer.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 // //===---------------------------...
// // Copyright (c) 2017-2018 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, including without limitation the rig...
// RemoteNotifyInject.cpp : Defines the exported functions for the DLL application. // #include "stdafx.h" #include <Windows.h> #include <assert.h> #include <stdio.h> #include <string> #pragma data_seg("SHARED") HWND hTargetWnd = nullptr; bool hasMsg = false; HHOOK hHook = nullptr; #pragma data_seg() #pragma comment(...
/* * Copyright (c) 2013-2015, Roland Bock * 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 co...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
// Copyright 2017 Google 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 in ...
#include <iostream> #include <algorithm> #include <cassert> #include "Fetcher.hpp" #include "GPUTypes.hpp" #include "GPU.hpp" namespace nsfgbe { Fetcher::Fetcher(GPU &gpu, PixelFIFO &pixelFIFO) : gpu(gpu), pixelFIFO(pixelFIFO) {} void Fetcher::fetch(Word tileId, Byte verticalLine) { this->tileId = tileI...
#include "RecoVertex/VertexTools/interface/PerigeeLinearizedTrackState.h" #include "RecoVertex/VertexTools/interface/PerigeeRefittedTrackState.h" #include "TrackingTools/TrajectoryState/interface/PerigeeConversions.h" #include "RecoVertex/VertexPrimitives/interface/VertexException.h" #include "MagneticField/Engine/inte...
#include "parser.h" #include "vw.h" #include "parse_regressor.h" #include "parse_dispatch_loop.h" using namespace std; void dispatch_example(vw& all, example& ec) { all.learn(ec); as_singleline(all.l)->finish_example(all, ec); } namespace prediction_type { #define CASE(type) \ case type: \ return #typ...
// // OctreeQueryNode.cpp // assignment-client/src/octree // // Created by Stephen Birarda on 3/21/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "OctreeQueryNod...
#include "src/query.h" #include "src/query_parser/tokenizer.h" #include "src/stopwords.h" #include "src/extension.h" #include "src/ext/default.h" #include "gtest/gtest.h" #include <stdio.h> #define QUERY_PARSE_CTX(ctx, qt, opts) NewQueryParseCtx(&ctx, qt, strlen(qt), &opts); struct SearchOptionsCXX : RSSearchOptio...
#include <iostream> #include <cstdlib> #include <algorithm> bool almost_equal(float x, float gold, float rel_tol=1e-09, float abs_tol=0.0) { return std::abs(x-gold) <= std::max(rel_tol * std::max(std::abs(x), std::abs(gold)), abs_tol); } void test_target__teams__distribute() { const int N0 { 32768 }; const float ...
/* * (C) Copyright 1996- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the privileges and immunities * granted to it by virtue of its status as an interg...
#include "Window.h" #include "Input.h" #include "Stopwatch.h" #include "Triangle.h" #include <iostream> void version() { #ifdef _DEBUG std::string configuration = "Debug"; #else std::string configuration = "Release"; #endif SB_MESSAGE("Audio - Build: " << configuration << ", " << __DATE__ << ", " ...
//==----------- stl.hpp - basic STL implementation -------------------------==// // // 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 "DcTestDeserialize.h" #include "DataConfig/Deserialize/DcDeserializer.h" #include "DataConfig/Deserialize/DcDeserializeTypes.h" #include "DataConfig/Json/DcJsonReader.h" #include "DataConfig/Property/DcPropertyWriter.h" #include "DataConfig/Diagnostic/DcDiagnosticDeserialize.h" #include "DataConfig/Diagnostic/...
#include "../../CompanyManager.h" #include "../../Graphics/ImageIds.h" #include "../../Input.h" #include "../../Localisation/FormatArguments.hpp" #include "../../Objects/AirportObject.h" #include "../../Objects/CargoObject.h" #include "../../Objects/DockObject.h" #include "../../Objects/ObjectManager.h" #include "../.....
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2016 The Bitcoin Core developers // Copyright (c) 2017 The BitcoinSubsidium 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" #i...
#include<bits/stdc++.h> using namespace std; typedef long double ld; typedef long long int ll; vector<vector<ll> > adjlist; ll max(ll x,ll y){return (x>y)?x:y;} #define min(x,y) (x>y)?y:x #define sfor(a,n,i) for(ll i=a;i<n;i++) #define rfor(n,a,i) for(ll i=n;i>=a;i--) #define mod 1000000007 #define pb push_back #defi...
#include <muduo/base/Logging.h> #include <muduo/base/CurrentThread.h> #include <muduo/base/StringPiece.h> #include <muduo/base/Timestamp.h> #include <errno.h> #include <stdio.h> #include <string.h> #include <sstream> namespace muduo { /* class LoggerImpl { public: typedef Logger::LogLevel LogLevel; LoggerImpl...
/********************************************************************************** * Project: Eskapade * Class : TMsgLogger * * * * Description: ...
/* Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net, author Stephen Kelly <stephen@kdab.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Sof...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkCanvas.h" #include "include/core/SkImage.h" #include "include/core/SkString.h" #include "include/effects/SkImageFilters.h" #include "src/core/SkImageF...
/*========================================================================= * * Copyright NumFOCUS * * 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.or...
/*! \file NormalColorCommand.cpp \author Tody NormalColorCommand definition. date 2015/12/17 */ #include "NormalColorCommand.h" #include "NormalColor.h" void NormalColorCommand::doImp () { Mesh* mesh = _scene->mesh(); Eigen::MatrixXd N; mesh->vertexNormals ( N ); Eigen::Matr...
/* * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * THI...
#ifndef INCG_PHI_CORE_AS_CONST_HPP #define INCG_PHI_CORE_AS_CONST_HPP #include "phi/phi_config.hpp" #if PHI_HAS_EXTENSION_PRAGMA_ONCE() # pragma once #endif #include "phi/compiler_support/nodiscard.hpp" #include "phi/type_traits/add_const.hpp" DETAIL_PHI_BEGIN_NAMESPACE() template <typename TypeT> PHI_NODISCARD...
// Copyright 2010 Christophe Henry // henry UNDERSCORE christophe AT hotmail DOT com // This is an extended version of the state machine available in the boost::mpl library // Distributed under the same license as the original. // Copyright for the original version: // Copyright 2005 David Abrahams and Aleksey Gur...
/* * 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 "Color.h" namespace facebook { namespace react { SharedColor colorFromComponents(ColorComponents components) { const C...
/* * This software is distributed under BSD 3-clause license (see LICENSE file). * * Authors: Fernando Iglesias, Shashwat Lal Das, Thoralf Klein, * Soeren Sonnenburg */ #include <shogun/loss/SmoothHingeLoss.h> #include <shogun/io/SGIO.h> using namespace shogun; float64_t CSmoothHingeLoss::loss(float64...
// // Copyright 2016 Pixar // // 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: // // 6. Trad...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using namespace System; using namespace System::Reflection; using namespace System::Runtime::CompilerServices; using...
// Copyright 2014 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 "content/browser/renderer_host/media/content_video_capture_device_core.h" #include "base/basictypes.h" #include "base/bind.h" #include "base/cal...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE197_Numeric_Truncation_Error__int_rand_to_short_84a.cpp Label Definition File: CWE197_Numeric_Truncation_Error__int.label.xml Template File: sources-sink-84a.tmpl.cpp */ /* * @description * CWE: 197 Numeric Truncation Error * BadSource: rand Set data to result...
/****************************************************************************** CoolSparkFunBME280.h Modified by Mehdi Zemzem Originally SparkFunBME280.h BME280 Arduino and Teensy Driver Marshall Taylor @ SparkFun Electronics May 20, 2015 https://github.com/sparkfun/BME280_Breakout Resources: Uses Wire.h for i2c op...
//////////////////////////////////////////////////////////////////////////// // Module : ai_stalker_misc.cpp // Created : 27.02.2003 // Modified : 27.02.2003 // Author : Dmitriy Iassenev // Description : Miscellaneous functions for monster "Stalker" ////////////////////////////////////////////////////////////////...
#include "umlReflectionExec/OpaqueActionObject.hpp" //General Includes #include "abstractDataTypes/SubsetUnion.hpp" #include "uml/OpaqueAction.hpp" #include "umlReflection/UMLPackage.hpp" #include "fUML/Semantics/Loci/Locus.hpp" #include "uml/Class.hpp" //Includes From Composite Structures /*Not done for metamodel obj...
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. #include "UnrealCodeAnalyzerTestsPCH.h" #include "UseElifMacro.h" static int Function_UseElifMacro() { #if TEST_IF_MACRO return 0; #elif ELIF_MACRO return 1; #else return 2; #endif }
// Copyright (c) 2014-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "coins.h" #include "random.h" #include "script/standard.h" #include "uint256.h" #include "undo.h" #include "utilstre...
#include <iostream> #include <cassert> #include <csignal> #include "ASock.hpp" #include "../../msg_defines.h" /////////////////////////////////////////////////////////////////////////////// class EchoServer : public asock::ASock { public: EchoServer(){this_instance_ = this; } static void sigint_handler(int ...
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
// rocks_btree_impl_test.cpp /** * Copyright (C) 2014 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 ...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2013 - Raw Material Software Ltd. Permission is granted to use this software under the terms of either: a) the GPL v2 (or any later version) b) the Affero GPL v3 ...
#include "darksendconfig.h" #include "ui_darksendconfig.h" #include "bitcoinunits.h" #include "guiconstants.h" #include "optionsmodel.h" #include "walletmodel.h" #include "init.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> #include <QSettings> DarksendConfig::DarksendConfig(QWidget *parent) :...
#include <iostream> #include "talvos/Device.h" #include "talvos/Instruction.h" #include "talvos/Invocation.h" #include "talvos/Plugin.h" using namespace talvos; class CallbackTest : public Plugin { public: CallbackTest() { std::cout << "plugin created" << std::endl; } ~CallbackTest() { std::cout << "plugin dest...
// // // #include "UrlTile.h" ol::source::UrlTile::UrlTile() { } ol::source::UrlTile::~UrlTile() { }
#include <cmath> #include <gflags/gflags.h> #include "drake/common/drake_assert.h" #include "drake/examples/pendulum/pendulum_geometry.h" #include "drake/examples/pendulum/pendulum_plant.h" #include "drake/geometry/drake_visualizer.h" #include "drake/systems/analysis/simulator.h" #include "drake/systems/framework/dia...
/* * include/action.hh * * Copyright 2018 Brandon Gomes * * 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 applic...
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int k; cin >> k; int ca = 0, sf = 0, lt = 0; for(int i = 0; i < s.length(); i++) { if(s[i] == '?') ca++; else if(s[i] == '*') sf++; else lt++; } // cout << ca << " " << sf << " " << lt << endl; if(lt == k) { fo...
#include <stdio.h> #include <Kokkos_Core.hpp> #include <MemberTypes.h> #include <SellCSigma.h> #include <Distribute.h> #include <psAssert.h> using particle_structs::SellCSigma; using particle_structs::MemberTypes; using particle_structs::distribute_elements; using particle_structs::distribute_particles; int main(in...
#include <stdio.h> #include <math.h> #include <string.h> #include <time.h> #include <assert.h> #include <iostream> #include <vector> #include <list> #include <string> #include <algorithm> #include <deque> #include <queue> #include <stack> #include <set> #include <map> #include <complex> #include <distribution.h> #incl...
// Copyright (c) 2009-2010 Satoshi Nakamoto // 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 "util.h" #include "sync.h" #include "strlcpy.h" #include "version.h" #inc...
/******************************************************************************** * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
#include "_reg_ReadWriteImage.h" #include "_reg_ReadWriteMatrix.h" #include "_reg_localTrans.h" #include "_reg_tools.h" #include "AffineDeformationFieldKernel.h" #define EPS 0.0001 int main(int argc, char **argv) { if (argc != 6) { fprintf(stderr, "Usage: %s <refImage> <inputGrid> <expectedField> <useCom...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <AzNetworking/Framework/INetworking.h> #include <AzNetworking/UdpTransport/UdpNetworkInte...
/* 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 in writing, software dis...
#include "stdafx.h" #include "LightObject.h" LightObject::LightObject(ID3D11Device* pDevice, std::string& filename) :Model(pDevice, filename) { } LightObject::~LightObject() { }
#include<iostream> #include<math.h> using namespace std; int main(void){ float coeficientes[3],delta,x1,x2; int i; for(i=0;i<3;i++){ cout<<"Digite os coeficientes: "; cin>>coeficientes[i]; } cout<<"\n"; delta = (pow(coeficientes[1],2)) - (4*coeficientes[0]*coef...
//===-- MipsSubtarget.cpp - Mips Subtarget Information --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (c) 2020, The MKEcoin Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list of //...
#include "Boundary.h" #include <iostream> #include <fstream> using namespace std; extern float* Ez; extern float *E_nbd_up, *E_nbd_down, *E_nbd_right, *E_nbd_left; extern float *E_bd_up, *E_bd_down, *E_bd_right, *E_bd_left; extern int Nx; extern float dt, dz, coe_MUR; const float C = 3e8f; void Bd_proc_up(); void B...
/////////////////////////////////////////////////////////////////////// // File: pain_points.cpp // Description: Functions that utilize the knowledge about the properties // of the paths explored by the segmentation search in order // to "pain points" - the locations in the ratings matr...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "cuda_common.h" #include "cuda_execution_provider.h" #include "cuda_fence.h" #include "cuda_allocator.h" #include "core/framework/kernel_registry.h" #include "core/framework/compute_capability.h" #include "core/fra...
// Copyright (c), Firelight Technologies Pty, Ltd. 2012-2019. #include "FMODAssetTable.h" #include "FMODEvent.h" #include "FMODSnapshot.h" #include "FMODSnapshotReverb.h" #include "FMODBank.h" #include "FMODBus.h" #include "FMODVCA.h" #include "FMODUtils.h" #include "FMODSettings.h" #include "FMODFileCallba...
#include "GameNetClient.h" //#include "MessageHeader.h" #include "KMessage.h" //#include "LoginController.h" //#include "SceneController.h" //#include "PlayerController.h" //#include "PlayerData.h" //#include "GameUIController.h" //#include "TaskController.h" //#include "DialogController.h" //#include "Activi...
/* Copyright 2013-present Barefoot Networks, 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 in w...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "myriad_layers_slice_test.hpp" INSTANTIATE_TEST_CASE_P(accuracy, myriadLayersTestsSlice_smoke, ::testing::Values<SliceTestParams>( MAKE_STRUCT(SliceParams, {4, 8, 16,...
/* * Copyright 2013 Kyle Treubig * * 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...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers // Copyright (c) 2017-2018 The LitecoinZ developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "amount.h" #include "chai...
// 07/12/2021 // Purpose: Implements the quadratic equation formula. // (-b±√(b²-4ac))/(2a) #include <iostream> #include <cmath> // std::pow, std::sqrt #include <utility> // std::pair auto Quadf(const double& a, const double& b, const double& c) { using std::sqrt; using std::pow; double positiveX =...
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s template <int> int f(int); // expected-note {{candidate function}} #if __cplusplus <= 199711L // expected-note@-2 {{candidate function}} #endif template <signed ch...
/*************************************************************************** * Copyright (c) 2016, Johan Mabille, Sylvain Corlay and Wolf Vollprecht * * * * Distributed under the terms of the BSD 3-Clause License. * * ...
/* * Copyright (c), 2017, Adrien Devresse * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) * */ #include <iostream> #include <string> #include <vector> #include <h5gt/H5DataSet.hpp> #include <...
// codeforces/558div2/A/main.cpp // author: @___Johniel // github: https://github.com/johniel/ #include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; template<type...
#ifndef MESHSYSTEM_HPP #define MESHSYSTEM_HPP #include "enginesystem.hpp" #include "memory.hpp" #include "mesh.hpp" #include "vulkansystem.hpp" #include <set> #include <vector> #include <limits> #include <mutex> class MeshSystem : public EngineSystem { public: void configure( Engine *engine ) override; void unconf...
/** @file ***************************************************************************** Declaration of interfaces for initializing MNT6. ***************************************************************************** * @author This file is part of libff, developed by SCIPR Lab * and contributors (s...