text
stringlengths
7
961k
// 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 "ui/views/accessible_pane_view.h" #include "ui/base/accelerators/accelerator.h" #include "ui/views/controls/button/text_button.h" #include "...
#include <iostream> #include <string> #include <vector> using namespace std; bool path(char *matrix, int rows, int cols, int i, int j, char *str, int k, vector<bool> flag) { int index = i * cols + j; if (i < 0 || i >= rows || j < 0 || j >= cols || matrix[index] != str[k] || flag[index]) return false; ...
#pragma once #include "base/math.hpp" #include <cmath> #include <sstream> #include <string> namespace m3 { template <typename T> class Point { public: constexpr Point() : x(T()), y(T()), z(T()) {} constexpr Point(T const & x, T const & y, T const & z) : x(x), y(y), z(z) {} T Length() const { return std::sqrt(...
/* * Copyright (C) 2009 Advanced Micro Devices, Inc. All Rights Reserved. */ /* * Copyright (C) 2007, 2008 Pathscale, LLC. All Rights Reserved. */ /* * Copyright (C) 2006, 2007. QLogic Corporation. All Rights Reserved. */ /* * Copyright 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved. */ /* ...
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // Se...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2006-2011 // (C) Copyright Markus Schoepflin 2007 // (C) Copyright Bryce Lelbach 2010 // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // ...
// Autogenerated from KST: please remove this line if doing any edits by hand! #include <boost/test/unit_test.hpp> #include "valid_fail_max_int.h" #include <iostream> #include <fstream> #include <vector> #include "kaitai/exceptions.h" BOOST_AUTO_TEST_CASE(test_valid_fail_max_int) { std::ifstream ifs("src/fixed_st...
/* * Copyright 2009-2017 Alibaba Cloud 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...
/* Copyright 2016 Kristofer Björnson * * 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 "CarPawnSimApi.h" #include "AirBlueprintLib.h" #include "UnrealSensors/UnrealSensorFactory.h" #include "CarPawnApi.h" #include <exception> using namespace msr::airlib; CarPawnSimApi::CarPawnSimApi(const Params& params, const CarPawnApi::CarControls& keyboard_controls, UWheeledVehicleMovementComponent* m...
#include "turtpch.h" #include "OpenGLRendererAPI.h" #include "glad\glad.h" namespace Turtle { void OpenGLRendererAPI::Init() { TURT_PROFILE_FUNCTION(); glEnable(GL_BLEND); // glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_DEPTH_TEST...
class Solution { public: vector<int> nextGreaterElements(vector<int>& nums) { int N = nums.size(); stack<int> s; vector<int> ans(N, -1); for (int i = 0; i < 2 * N; ++i) { int n = nums[i % N]; while (s.size() && nums[s.top()] < n) { ans[s.top()] = n; s.pop(); } s...
// 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/webui/devtools_ui.h" #include <string> #include "base/memory/ref_counted_memory.h" #include "base/memory/scoped_ptr.h" #...
#include <iostream> #include <vector> using namespace std; class Solution { public: int search(vector<int>& nums, int target) { if (nums.empty()) { return 0; } int left = 0, right = nums.size() - 1; while (left <= right) { int mid = (left + right) / 2; ...
#include "TrackStopMessage.h" TrackStopMessage::TrackStopMessage(std::string abstractId, AbstractType type, MessageTransType transType ,PriorityType priority , MessageDistriubite distribute ) :BaseMessage(Track_Stop_Message, transType, priority, distribute) { mAbstractId = abstractId; mAbstractType = type;...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Unpay developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "base58.h" #include "core.h" #...
/* * Interactive disassembler (IDA). * Copyright (c) 1990-2015 Hex-Rays * ALL RIGHTS RESERVED. * */ #ifndef _LLONG_HPP #define _LLONG_HPP #pragma pack(push, 1) // IDA uses 1 byte alignments! //--------------------------------------------------------------------------- #if defined(__BORLA...
/////////////////////////////////////////////////////////////////////////////// // // @@@ START COPYRIGHT @@@ // // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright o...
/* PROBLEM LINK:- https://codeforces.com/problemset/problem/749/A */ #include<bits/stdc++.h> #define ll long long #define test ll t; cin >> t; while(t--) #define FOR for(ll i = 1; i <= n; i++) #define vi vector<int> #define nn "\n" using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0...
/* MIT License Copyright (c) 2017 Alexander Zaitsev 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, co...
/*============================================================================= Library: CppMicroServices Copyright (c) The CppMicroServices developers. See the COPYRIGHT file at the top-level directory of this distribution and at https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT . Licensed under the Ap...
/****************************************************************************** * * Project: SEG-Y Translator * Purpose: Implements OGRSEGYLayer class. * Author: Even Rouault, <even dot rouault at mines dash paris dot org> * ****************************************************************************** * Cop...
#include "Etterna/Globals/global.h" #include "Etterna/Models/Misc/BackgroundUtil.h" #include "Etterna/Singletons/GameManager.h" #include "Etterna/FileTypes/MsdFile.h" #include "Etterna/Models/Misc/NoteTypes.h" #include "NotesLoaderSM.h" #include "Etterna/Singletons/PrefsManager.h" #include "RageUtil/File/RageFileManage...
/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); y...
/* * 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...
/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2016-2018 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include "co...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | +---------...
// Includes #include <cassert> #include <fstream> #include <iostream> #include <xolotl/io/XFile.h> #include <xolotl/solver/PetscSolver.h> #include <xolotl/solver/handler/PetscSolver0DHandler.h> #include <xolotl/solver/handler/PetscSolver1DHandler.h> #include <xolotl/solver/handler/PetscSolver2DHandler.h> #include <xol...
#include "LayoutGeneration.hh" #include <LayoutEmbedding/Util/Assert.hh> #include <polymesh/algorithms/decimate.hh> #include <set> namespace LayoutEmbedding { void make_layout_by_decimation(EmbeddingInput& _input, int _n_vertices) { LE_ASSERT_G(_input.t_m.vertices().size(), 0); _input.l_m.copy_from(_input...
// Copyright (c) 2017-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 ...
/// @ref core /// @file glm/detail/type_mat4x2.hpp #pragma once #include "../fwd.hpp" #include "type_vec2.hpp" #include "type_vec4.hpp" #include "type_mat.hpp" #include <limits> #include <cstddef> namespace glm { template<typename T, qualifier Q> struct mat<4, 2, T, Q> { typedef vec<2, T, Q> col_type; typedef...
// Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2018 The Lunex Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "chainparams.h" #include "netfulfilledman.h" #include "util.h" CNe...
// // Created by yehonatan on 14/01/2020. // #include "matrix_builder.h" void MatrixBuilder::addRow(string row) { vector<string> string_vector; string_vector = Stringer::doRegex(row, REGEX); setValuesInVector(string_vector); } void MatrixBuilder::setValuesInVector(vector<string> & string_vector) { vector<...
/* * libjingle * Copyright 2004--2005, Google Inc. * * 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 conditions and...
/*******************************<GINKGO LICENSE>****************************** Copyright (c) 2017-2022, the Ginkgo authors 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 co...
// // Created by Sam Gondelman 10/19/2017 // Copyright 2017 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 "PickManager.h" PickManager::PickManager() { setShouldPickHUDOperator([]()...
class Solution { public: void solve(string lastch,string Nstr,int cur,int &N,bool &flag) { if(cur==Nstr.size()) { if(stoi(lastch)<=stoi(Nstr)) N=stoi(lastch),flag=true; } else { for(int i=9;i>=(lastch.back()-'0')&&flag==false;i--) ...
// Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. // 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 UUID_51968952D30A11DFAFE78CE3DFD72085 #define UUID_51968952D30A11DFAFE78CE3DFD72085 #in...
// Copyright 2021 The Dawn Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
/* Copyright (c) 2010-2018, Delft University of Technology * All rights reserved * * This file is part of the Tudat. Redistribution and use in source and * binary forms, with or without modification, are permitted exclusively * under the terms of the Modified BSD license. You should have received *...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
#include "editdialog.h" #include "ui_editdialog.h" #include "ssvalidator.h" #include "ip4validator.h" #include "portvalidator.h" EditDialog::EditDialog(Connection *_connection, QWidget *parent) : QDialog(parent), ui(new Ui::EditDialog), connection(_connection) { ui->setupUi(this); /* initialisatio...
// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel // Copyright (C) 2007-2008 Steven Watanabe // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_...
/* * createFinalRes.cpp * * Created on: Dec 1, 2014 * Author: rohitgirdhar */ #include <glog/logging.h> #include <leveldb/db.h> #include <leveldb/write_batch.h> #include <algorithm> #include <string> #include <iostream> #include <fstream> #include <vector> #include <set> #include <algorithm> #include <libg...
#include "events.h" #include <stdio.h> #include <assert.h> #include <algorithm> #include "sequencer.h" /*****************************************************************************************************/ /* Event. */ ControlFlow Event::execute(JackEngine *jack, Sequencer *seq) { return {false, false, false}; }...
#pragma once #include <cassert> namespace util { bool parseInt(const char *s, int *res) { if(sscanf(s, "%d", res) != 1) return false; return true; } } // namespace util
#include <bits/stdc++.h> typedef long long int64; typedef unsigned long long uint64; using namespace std; int main(int argc, char* argv[]) { ios::sync_with_stdio(false); int N; cin >> N; cout << N - 2 << "\n"; return 0; }
//! //! Copyright (c) 2015, The casual project //! //! This software is licensed under the MIT license, https://opensource.org/licenses/MIT //! #include "common/unittest.h" #include "common/server/service.h" #include "common/server/context.h" #include "xatmi.h" namespace casual { namespace common { na...
// Licensed under the Apache License, Version 2.0. // Author: Jin Qing (http://blog.csdn.net/jq0123) #include "client_async_reader_writer_impl.h" #include <grpc_cb_core/client/channel.h> // for MakeSharedCall() #include "common/impl/complete_cb.h" // for CompleteCb #include "cqtag/client_reader_read_cqt...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2019 The LeopardCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CO...
// Copyright 2017, 2019 Peter Dimov. // // 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 // See library home page at http://www.boost.org/libs/system #include <boost/config.hpp> #if defined( BOOST_GCC ) && BOO...
// Used for working with commutative operations #pragma once #include "MVCCTypes.hh" namespace commutators { template <typename T> class Commutator { public: // Each type must define its own Commutator variant Commutator() = default; virtual void operate(T&) const { always_assert(false, "Should...
// ***************************************************************************** // // Copyright (c) 2017, Southwest Research Institute® (SwRI®) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met:...
/**************************************************************************** * * This is a part of TOTEM offline software. * Authors: * Maciej Wróbel (wroblisko@gmail.com) * Jan Kašpar (jan.kaspar@cern.ch) * Marcin Borratynski (mborratynski@gmail.com) * Seyed Mohsen Etesami (setesami@cern.ch) * Laurent Forth...
#include <GameEnginePCH.h> #include <GameEngine/AI/PointOfInterestGraph.h> struct ezDummyPointType { EZ_DECLARE_POD_TYPE(); ezUInt32 value; }; static void CompileDummy() { ezPointOfInterestGraph<ezDummyPointType> graph; graph.Initialize(ezVec3::ZeroVector(), ezVec3::ZeroVector()); auto& pt = graph.AddPoin...
// quadtree class & functions #include <math.h> #include <iostream> #include <vector> #include <algorithm> // std::min, std::max #include <utility> // std::unique_ptr #include <set> #include <GL/glut.h> #include <GL/gl.h> #include "quadtree.h" // constructor Quadtree::Quadtree(std::shared_ptr<BoundaryBox> BB_init,...
#include "../../headers/robot_data_fetcher.h" std::string save_path = "data.csv"; int main(int argc, char** argv) { Robot_Data_Fetcher rdf; rdf.set_auth_details("Default User", "robotics"); rdf.set_url("http://192.168.0.3/rw/rapid/tasks/T_ROB_L/motion?resource=robtarget&tool0&wobj=wobj0"); // Wait for point clou...
// ------------------------------------------------------------------------------------------------- // // // ------------------------------------------------------------------------------------------------- #include "smoke/EquatableInterface.h" #include "smoke/PointerEquatableInterface.h" namespace smoke { EquatableIn...
//Generic main test runner. #include <stdexcept> #include <iostream> #include "gtest/gtest.h" int main(int ac, char **av) { int result; ::testing::InitGoogleTest(&ac, av); //Run tests. result = RUN_ALL_TESTS(); return result; }
// 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 "base/bind.h" #include "base/prefs/pref_service.h" #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #i...
#include "interpreter.tpp" #include "../elpa/runtime.h" using namespace kcon; using namespace elpa; template class KConInterpreter<Debug, SimpleScheme, TestAllocator>; template class KConInterpreter<Debug, SimpleScheme, SimpleAllocator>; template class KConInterpreter<Safe, OptScheme, OptAllocator>; template class KC...
// Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and University of // of Connecticut School of Medicine. // All rights reserved. // Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and Th...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
/*========================================================================= * * 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...
// Copyright 2019 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 "third_party/blink/renderer/platform/scheduler/main_thread/compositor_priority_experiments.h" #include "third_party/blink/renderer/platform/sche...
// -*- C++ -*- // Copyright (C) 2021 Dmitry Igrishin // // 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, // i...
#include "SpringJoint.h" SpringJoint::SpringJoint(RigidBody * a_connection1, RigidBody * a_connection2, float a_springCoefficient, float a_damping) { m_connections[0] = a_connection1; m_connections[1] = a_connection2; m_springCoefficient = a_springCoefficient; m_damping = a_damping; m_restLength = glm::length(m_c...
// Copyright (c) 2009 - Decho Corporation #include "socket.h" #include <boost/bind.hpp> #include "assert.h" #include "fiber.h" #include "iomanager.h" #include "string.h" #include "version.h" #ifdef WINDOWS #include <mswsock.h> #include <IPHlpApi.h> #include "runtime_linking.h" #pragma comment(lib, "ws2_32") #prag...
#pragma once #include <geometry/point3.hpp> #include <memory> #include <vector> struct Segment3 { Point3 p1; Point3 p2; // Move copies obj into struct, similar to passing by reference, saves memory Segment3(Point3 p1, Point3 p2) : p1(std::move(p1)), p2(std::move(p2)) {} float length() const; ...
// Copyright (c) 2011-2013 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #define BOOST_TEST_MODULE quantic Test Suite #include "main.h" #include "random.h" #include "txdb.h" #include "ui_interf...
/* * Copyright (c) 2016 Assured Information Security, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy,...
//===-- ConstraintElimination.cpp - Eliminate conds using constraints. ----===// // // 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 // //===---------------------------...
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar #include <java/lang/Double.hpp> extern void unimplemented_(const char16_t* name); java::lang::Double::Double(const ::default_init_tag&) : super(*static_cast< ::default_init_tag* >(0)) { clinit(); } java::lang::Do...
#ifndef PROXY_UTIL_URLS_HPP #define PROXY_UTIL_URLS_HPP #include <boost/tuple/tuple.hpp> #include <string> #include <vector> namespace proxy { namespace util { /** * Return <success, host, port, path> */ [[nodiscard]] boost::tuple<bool, bool, std::string, std::string, std::string> extract_url_parts(std::string &ur...
/** * @author : Maruf Tuhin * @College : CUET CSE 11 * @Topcoder : the_redback * @CodeForces : the_redback * @UVA : the_redback * @link : http://www.fb.com/maruf.2hin */ #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long l...
/*========================================================================= * * 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...
// Copyright (c) 2018 Christopher Ogle // Copyright (c) 2020 Hartmut Kaiser // Copyright (c) 2021 Akhil J Nair // // SPDX-License-Identifier: BSL-1.0 // 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 <...
//////////////////////////////////////////////////////////////////////////////// // // Copyright 2006 - 2021, Tomas Babej, Paul Beckingham, Federico Hernandez. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to d...
/* * Copyright (c) 2003-2016, John Wiegley. 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 c...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
// // Created by mathis on 13/02/2020. // #ifndef DAFT_ENGINE_CUBESPHERE_HPP #define DAFT_ENGINE_CUBESPHERE_HPP #include <src/Engine/Geometry/Model.hpp> /** A Model that draws a sphere from a cube. */ class CubeSphere : public Model { public: /** Constructor. * * @param resolution - resolution of the...
/* Q Light Controller inputpatch.cpp Copyright (c) Heikki Junnila 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.txt Unless require...
/* * Copyright (C) 2013 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
// Fill out your copyright notice in the Description page of Project Settings. #include "TankAimingComponent.h" #include "TankBarrel.h" #include "TankTurret.h" #include "Projectile.h" #include "GameFramework/Actor.h" #include "Components/StaticMeshComponent.h" #include "UnrealMathUtility.h" #include "UObject/Construct...
// // 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...
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/execution_environment/execution_environment.h" #include "shared/source/execution_environment/root_device_environment.h" #include "shared/source/gmm_helper/gmm.h" #include "shared/source/gmm_helper/gmm_helper.h"...
#include <bits/stdc++.h> #define PB emplace_back #define C cout << #define E << "\n" #define _ << " " << #define gc getchar_unlocked #define fpp(i, a, b) for (i = a; i < b; i++) #define fmm(i, a, b) for (i = b; i-- > a;) #define v(t) vector<t> const double EPS = 1e-6; using namespace std; typedef long long l; typedef l...
// Copyright 2020 Nikolay Prudnikov. All Rights Reserved. #include "iOS/PrFirebasePerformanceModule_iOS.h" #if WITH_FIREBASE_PERFORMANCE && PLATFORM_IOS #include "PrFirebaseDefines.h" #include "Async/Async.h" #include "Misc/CoreDelegates.h" #import <Firebase.h> #import <Foundation/NSProcessInfo.h> void UPrFirebase...
//===- SLPVectorizer.cpp - A bottom up SLP Vectorizer ---------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// // heap.cpp // // Created by Edmund Kapusniak on 02/10/2019. // Copyright © 2019 Edmund Kapusniak. // // Licensed under the MIT License. See LICENSE file in the project root for // full license information. // #include "heap.h" #include <stdint.h> #include <limits.h> #include <assert.h> #include <stdio.h> #inc...
/* Copyright 2018 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...
/* * Copyright (c) 2008 Princeton University * Copyright (c) 2016 Georgia Institute of Technology * 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 retai...
#include "impl_org_webRtc_VideoFramePlanarYuvaBuffer.h" #include "impl_org_webRtc_VideoFramePlanarYuvBuffer.h" #include "impl_org_webRtc_VideoData.h" #include "impl_org_webRtc_enums.h" #include "impl_org_webRtc_pre_include.h" #include "api/video/video_frame_buffer.h" #include "impl_org_webRtc_post_include.h" using ::...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/game/data/AITicketFilter_Record.hpp> namespace RED4ext { namespace game::data { struct AISquadFilterOwnTargetSpotted_Record : game::data::AITicketFilt...
// Copyright (c) 2022 PaddlePaddle 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...
//! \file //! \brief Subroutine to Enter Data From Scope/KB //! #pragma module entr_4specialkeys "V3.6 Calico" /* * Include files */ #include <stdio.h> #include <string.h> #include <smg/smg.h> #include "preferences.h" #include "cmcfun.h" #include "scopedef.h" //!! \brief Subroutine to Enter Data From Scope/KB //! ...
/* * ompt-general.cpp -- OMPT implementation of interface functions */ //===----------------------------------------------------------------------===// // // 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-Iden...
/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...