text
stringlengths
7
961k
/*========================================================================= Program: Visualization Toolkit Module: TestGPURayCastDepthPeeling.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Thi...
#define DEBUG_TYPE "epp_profile" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/Statistic.h" #include "llvm/Analysis/CFG.h" #include "llvm/Bitcode/BitcodeWriter.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/CallSite.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Domin...
/* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed i...
// Copyright 2014 Renato Tegon Forti, Antony Polukhin. // Copyright 2015-2021 Antony Polukhin. // // 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 BOOST_DLL_SYSTEM_ERROR_HPP #define BOOST_DLL_SYSTEM_ERROR...
// // This file contains the C++ code from Program 9.8 of // "Data Structures and Algorithms // with Object-Oriented Design Patterns in C++" // by Bruno R. Preiss. // // Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved. // // http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs/...
#include <vector> #include <algorithm> #include <memory> #include "TrackingTools/PatternTools/interface/bqueue.h" #include <iostream> #include <cassert> typedef cmsutils::bqueue<std::unique_ptr<int>> Cont; inline void verifySeq(Cont const& cont, int incr = 0) { int n = cont.size(); for (auto const& item : cont) {...
#include <cif/ostream_debug.hpp> #include <boost/spirit/include/phoenix.hpp> using boost::phoenix::arg_names::_1; using boost::phoenix::val; namespace cif{ //table field vector iterator std::ostream& operator<<( std::ostream& os, const boost::mpl::at_c<table,1>::type::iterator& i ) { os << "FieldVectorIterator"; ...
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * 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 ...
// // FBXToJSON.cpp // libraries/model-serializers/src // // Created by Simon Walton on 5/4/2018. // Copyright 2018 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 "FBXToJSON.h" #inclu...
// Copyright 2021 <HuangJian 1342042894@qq.com> #include <math.h> #include <stdio.h> #include <algorithm> #include <fstream> // ifstream #include <iostream> #include <iterator> #include <list> #include <map> #include <memory> // unique_ptr, shared_ptr, weak_ptr #include <set> #include <sstream> // istringstream #in...
struct MBC5 : Interface { using Interface::Interface; Memory::Readable<n8> rom; Memory::Writable<n8> ram; Node::Input::Rumble rumble; auto load() -> void override { Interface::load(rom, "program.rom"); Interface::load(ram, "save.ram"); rumble = cartridge.node->append<Node::Input::Rumble>("Rumble"...
// ----------------------------------------------------------------------------------------------------- // Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin // Copyright (c) 2016-2021, Knut Reinert & MPI für molekulare Genetik // This file may be used, modified and/or redistributed under the terms of th...
#pragma once #include <vector> #include <engine/render/Window.hpp> #include <engine/render/vlk/VlkInclude.hpp> namespace experim { namespace vlk { class VulkanWindow final : public Window { public: VulkanWindow(int width, int height, const std::string& title); VulkanWindow(int width, int height, const std::...
// 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"); you may...
// (C) Copyright Gennadiy Rozental 2005-2008. // Use, modification, and distribution are subject to 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 http://www.boost.org/libs/test for the library home page. // // File ...
// This file was automatically generated on Tue Aug 17 16:27:31 2021 // by libs/config/tools/generate.cpp // Copyright John Maddock 2002-21. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/...
#include "arr_functions.h" int main() { const int SIZE = 5; int hours[SIZE] = { 5, 10, 30, 20, 7 }; int* hours_ptr = hours; iterate_array(hours_ptr, SIZE); return 0; }
/** \file * \brief Implementation of simple incremental node inserter * * \author Karsten Klein * * \par License: * This file is part of the Open Graph Drawing Framework (OGDF). * * \par * Copyright (C)<br> * See README.md in the OGDF root directory for details. * * \par * This program is free software; yo...
class Solution { public: int XXX(int m, int n) { backtrace(1,1,m,n); return ans; } int ans = 0; void backtrace(int i, int j, int m, int n){ if(i == m && j == n)//到终点了,更新ans ans++; if(i + 1 <= m)//如果能往下走,就向下移动 backtrace(i + 1, j, m, n); if(j...
/* ** File Name: copy_benchmark.cpp ** Author: Aditya Ramesh ** Date: 06/03/2014 ** Contact: _@adityaramesh.com */ #include <algorithm> #include <cassert> #include <cstdlib> #include <cstdint> #include <functional> #include <memory> #include <ccbase/format.hpp> #include <ccbase/platform.hpp> #include <configuration.h...
/* * Copyright 2021 Brian Raiter <breadbox@muppetlabs.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/LICENSE-2.0 * * Unless required by appli...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015 The Sibcoin developers // Copyright (c) 2018 The Surcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING o...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2017 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person ...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Original work Copyright (C) 2016-2021, Intel Corporation // Modified work Copyright (C) 2022, Vanilla Blue team // // SPDX-License-Identifier: MIT //////////////////////////////////////////////...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // //=============================================================================// #include "cbase.h" #include "usermessages.h" #include "shake.h" #include "voice_gamemgr.h" void RegisterUserMessages() { usermessages->Regi...
// 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 <stdint.h> #include <string> #include <vector> #include "base/bind.h" #include "base/callback_helpers.h" #include "base/location.h" #include "b...
/* * 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 ...
/*************************************************************************** * Copyright (C) by GFZ Potsdam * * * * You can redistribute and/or modify this program under the * * terms o...
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/leak_detection.h" #include "English/trainers/en_HeadFinder.h" #include "Generic/common/Symbol.h" #include "Generic/trainers/Production.h" #include "English/parse/en_STags.h" // called only after left, right, and number_of_ri...
/* Copyright 2015 Samsung Electronics Co., LTD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
/* * This file was generated by the CommonAPI Generators. * Used org.genivi.commonapi.core 3.1.12.v201801251447. * Used org.franca.core 0.9.1.201412191134. * * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. * If a copy of the MPL was not distributed with this file, You can obtain o...
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2020 RDK Management * * 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 cop...
/** * @file * @brief Spell casting and miscast functions. **/ #include "AppHdr.h" #include "spl-cast.h" #include <iomanip> #include <sstream> #include <cmath> #include "areas.h" #include "art-enum.h" #include "beam.h" #include "branch.h" #include "chardump.h" #include "cloud.h" #include "colour.h" #include "datab...
#include "stdafx.h" #include "ClassWithNoInterface.h" bool CLRCppCOMServerTest::ClassWithNoInterface::SelfTest() { return true; }
/* * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
// 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 "button_checker.h" #include <fcntl.h> #include <lib/fdio/fdio.h> #include <lib/zx/channel.h> #include <unistd.h> #include <cstring> #include <fi...
#include <entity.hpp> #include <iostream> #include <stdexcept> #include <regex> namespace duraark_rdf { template <typename T> T parse_builtin_(const std::string& str) { std::stringstream sstr; T result; sstr << str; sstr >> result; return result; } std::string type_prefix_(entity::type_t type) ...
#include <bits/stdc++.h> #include <fstream> using namespace std; typedef long long ll; #define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL) int findUnique(vector<int>v) { int n = v.size(); int finalAns = 0; for (int i = 0; i <n; i++) finalAns ^= v[i]; retur...
#ifndef MAIN_STATE_HPP #define MAIN_STATE_HPP #include <Navigator.hpp> #include <Neovim.hpp> #include <Nvim/Signals.hpp> #include <Navigator/Signals.hpp> #include <Backbone/State.hpp> #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Graphics/Font.hpp> #include <memory> class MainState: public State { p...
// 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/chromeos/ui/idle_logout_dialog_view.h" #include "base/memory/scoped_ptr.h" #include "chrome/browser/chromeos/kiosk_mode/mock...
// // SVParseMain.cpp // SVEngine // Copyright 2017-2020 // yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li // #include "SVParseMain.h" #include "../operate/SVOpParse.h" #include "../work/SVThreadPool.h" #include "../file/SVFileMgr.h" #include "../base/SVDataChunk.h" #include "../app/SVInst.h" #include ".....
/* ** EPITECH PROJECT, 2021 ** Bomberman ** File description: ** Cache */ #pragma once #include <memory> #include <unordered_map> #include <functional> #include <utility> #include <raylib.h> #include "Exceptions/RayError.hpp" #include <vector> #include <algorithm> #include <string> #include <iostream> namespace RAY {...
// Copyright 2013 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/policy/url_blacklist_policy_handler.h" #include "base/memory/scoped_ptr.h" #include "base/prefs/pref_value_map.h" #include "base...
#include "LLVM_Runtime_Linker.h" #include "LLVM_Headers.h" namespace Halide { using std::string; using std::vector; namespace { std::unique_ptr<llvm::Module> parse_bitcode_file(llvm::StringRef buf, llvm::LLVMContext *context, const char *id) { llvm::MemoryBufferRef bitcode_buffer = llvm::MemoryBufferRef(buf, i...
/*************************************************************************** * Copyright 1998-2020 by authors (see AUTHORS.txt) * * * * This file is part of LuxCoreRender. * * ...
/**************************************************************************** ** ** Copyright (c) 2009-2012 C.B. Barber. All rights reserved. ** $Id: //main/2011/qhull/src/libqhullcpp/QhullPointSet.cpp#5 $$Change: 1464 $ ** $DateTime: 2012/01/25 22:58:41 $$Author: bbarber $ ** ******************************************...
// 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/sync/glue/bookmark_change_processor.h" #include <stack> #include <vector> #include "base/location.h" #include "base/string1...
// Class Log // // This is where all logging and debugging is performed. // // JR: todo: complete this documentation #include "Log.h" Log* Log::m_Instance = nullptr; Log* Log::Instance() { if (!m_Instance) { m_Instance = new Log(); } return m_Instance; } /* * Start logging. * * Set applica...
// Copyright (C) 2015 The Regents of the University of California (Regents). // 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...
#include "node.h" #include <limits> namespace { using Airports::AirportID; } // namespace Node::Node() : estimated_cost(std::numeric_limits<double>::infinity()), geographic_path({}), charge_amounts({}) {} Node::Node(double cost, std::vector<AirportID> path, std::unordered_map<AirportID, ...
inline BOOL gzip_decompress (const void* inGz, size_t nSize, std::string& raw_data) { z_stream zs ; ZeroMemory (&zs, sizeof(zs)) ; std::vector<BYTE> temp_buf (8 * 1024) ; BOOL bRet = FALSE ; int nErr = inflateInit2 (&zs, 47) ; if (nErr == Z_OK) { zs.next_in = (BYTE*)const_...
#include "movebase_client.h" using namespace BT; NodeStatus MoveBase::tick() { // if no server is present, fail after 2 seconds // 如果伺服器沒有回應,在兩秒後回傳失敗 if(!_client.waitForServer(ros::Duration(2.0))) { ROS_ERROR("Can't contact move_base server"); return NodeStatus::FAILURE; } // Take the goal...
/* * This source file is part of an OSTIS project. For the latest info, see http://ostis.net * Distributed under the MIT License * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) */ #include "sc_struct.hpp" #include "sc_memory.hpp" #include "sc_template.hpp" ScSet::ScSet(ScMemory...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: https://github.com/coronalabs/corona // Contact: support@coronalabs.com // ////////////////////////...
#include "module_keygen.h" #include "options_keygen.h" #include <fstream> #include <vector> #include <ctime> void module_keygen::run(options *opts) { options_keygen *k_opts = (options_keygen*)opts; std::ifstream input; input.open(k_opts->input_fname); if( input.fail() ) { throw std::runt...
// Copyright (c) 2017 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/chromeos/policy/pre_signin_policy_fetcher.h" #include <utility> #include "base/bind.h" #include "base/callback.h" #include ...
/*========================================================================= Program: Visualization Toolkit Module: vtkConsoleOutputWindow.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This so...
#include "block.hpp" namespace BlockProps { bool IsSolid(Block b) { switch (b) { case Block::kAir: return false; case Block::kUndefined: return false; default: return true; } } float GetTextureIndex(Block b, BlockFace f) { switch (b) { case Block::kDirt: return 0.0f; ...
#include "m/SpinLock.h" #include "gtest/gtest.h" TEST(SpinLock, basic) { }
#include <stdio.h> #include <string.h> #include <RuntimeHost.h> using namespace System; using namespace Xunit; extern void runtimeTest0_host(cudaDeviceHeap &r); namespace Tests { static cudaDeviceHeap _deviceHeap; public ref class RuntimeITest { public: RuntimeITest() { // Choose which GPU to run on, chan...
/* A thread-safe version of Boost.Signals. Author: Frank Mori Hess <fmhess@users.sourceforge.net> Begin: 2007-01-23 */ // Copyright Frank Mori Hess 2007-2008 // Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // htt...
#include "Rules/ClassNamingRule.h" #include "Common/Context.h" #include "Common/OutputPrinter.h" #include "Common/RegexHelper.h" #include "Common/SourceLocationHelper.h" #include "Common/TagTypeNameHelper.h" #include <boost/format.hpp> using namespace clang; using namespace clang::ast_matchers; namespace clang { na...
#include<opencv2/core/core.hpp> #include<opencv2/highgui/highgui.hpp> #include<shogun/base/init.h> #include<shogun/features/DenseFeatures.h> #include<shogun/lib/SGMatrix.h> #include<shogun/preprocessor/PCA.h> #include<shogun/preprocessor/FisherLDA.h> #include<shogun/distance/EuclideanDistance.h> #include<shogun/lib/Op...
#include <catch.hpp> #include "resource.h" #include <boost/filesystem.hpp> #include "../ris_lib/ris_json_resources.h" #include "../ris_lib/ris_yaml_resources.h" #include "../ris_lib/ris_resource_loader.h" #include "../ris_lib/ris_resources.h" class fixture { protected: boost::filesystem::path test_data; public:...
#include <iostream> using namespace std; int main() { int n; cout<<"Enter Number Of Rows:"<<endl; cin>>n; for(int i=n;i>=1;i--) { for(int j=n-1;j>=i;j--) { cout<<" "; } for(int k=1;k<=i;k++) { cout<<"*"; } ...
// // Copyright (c) 2016, Scientific Toolworks, Inc. // // This software is licensed under the MIT License. The LICENSE.md file // describes the conditions under which this software may be distributed. // // Author: Jason Haslam // #include "FilterList.h" namespace git { FilterList::FilterList(git_filter_li...
/******************************************************************************* * Copyright 2021-2022 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
#include <bits/stdc++.h> #define ll long long int using namespace std; int main(){ int t; ll a; for(scanf("%d", &t); t--; ){ scanf("%lld", &a); a /= 6; printf("%lld\n", (ll)sqrt(a)); } return 0; }
// Copyright (c) 2013 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/common/extensions/extension_file_util.h" #include <map> #include <vector> #include "base/file_util.h" #include "base/files/file_enu...
#define BOOST_TEST_MODULE "odbc/Redis.hpp tests" #include <boost/test/unit_test.hpp> #include <string> #include <vector> #include "Shared.hpp" #include "odbc/Redis.hpp" BOOST_AUTO_TEST_SUITE(Redis) BOOST_AUTO_TEST_CASE(RedisInit) { bool success = wsf::redis::init().get(); BOOST_CHECK_EQUAL(success, true);...
/*************************************************************************** * Copyright ESIEE Paris (2018) * * * * Contributor(s) : Benjamin Perret * * ...
/* * Copyright (c) 2014 Eran Pe'er. * * This program is made available under the terms of the MIT License. * * Created on Mar 10, 2014 */ #pragma once #ifndef __clang__ #include <mushroom\mockutils\gcc\is_simple_inheritance_layout.hpp> #endif namespace fakeit { struct VirtualTableBase { static Vi...
#include <iostream> #include <fstream> #include <sstream> // pybind11 imports #include "../pybind11/include/pybind11/embed.h" namespace py = pybind11; std::string readMainPyFile() { // File path for the main python file std::string pyFile = "../py/main.py"; // Return read contents return pyFile; } ...
#include<iostream> #include<cstring> using namespace std; int main(int argc, char** argv) { ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int test_case; int T; cin >> T; int numArr[10]; for (test_case = 1; test_case <= T; ++test_case) { memset(numArr, 0, sizeof(numArr)); int X = 0; cin >> ...
#pragma once #include "../../../JObject.hpp" namespace android::content { class LocusId; } namespace android::view::contentcapture { class DataRemovalRequest; } namespace android::view::contentcapture { class DataRemovalRequest_LocusIdRequest : public JObject { public: // Fields // QJniObject forward t...
#ifdef TEST #include "division.hpp" #include "evaluation/operand/mock/argument_compiler_mock/argument_compiler_mock.hpp" #include <catch2/catch_test_macros.hpp> using namespace std::string_view_literals; namespace expression::evaluate { std::unique_ptr<division> divide(const std::vector<std::string_view> &values); ...
#include "mod.h" #include "re/nextbot.h" #include "re/path.h" #include "stub/objects.h" #include "stub/tfbot.h" class CTFBotMvMEngineerIdle : public Action<CTFBot> {}; namespace Mod::AI::EngieBot_Wrangler { class CTFBotMvMEngineerDisableAutopilot : public IHotplugAction<CTFBot> { public: CTFBotMvMEngineerDisab...
/* * 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"); you ma...
/* WebServe Copyright 2018-2022 Peter Pearson. 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 "joint_mapping_editor.h" #include <ImathEuler.h> #include <QComboBox> #include <QHeaderView> JointMappingEditor::JointMappingEditor() : m_widget(new QTreeWidget()), m_signalsBlocked(false) { m_widget->setRootIsDecorated(false); m_widget->headerItem()->setText(0, "from"); m_widget->headerItem()->setText(...
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992 - 2000. // // File: cconcf.hxx // // Contents: Class factory for LDAP Connection objects. // // Interface: IClassFactory. // // History: 03-12-00 AjayR ...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2019 ArangoDB GmbH, Cologne, Germany /// /// 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...
//------------------------------------------------------------------------------ // File: allocpresenter.cpp // // Desc: DirectShow sample code - Custom allocator-presenter // // Copyright (c) 2000-2001 Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------...
/* * Copyright (C) 2022 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...
//============================================================================== /* Software License Agreement (BSD License) Copyright (c) 2003-2016, CHAI3D (www.chai3d.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted prov...
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #include "frc/commands/CommandGroup.h" #include "frc/Errors.h" using namespace frc; CommandGroup::CommandGroup(const ...
// NewAXControlWiz.cpp : Defines the initialization routines for the DLL. // #include "stdafx.h" #include "resource.h" #include <initguid.h> #include <afxdllx.h> #include <initguid.h> #include "NewAXControlWiz.h" #include "NewActiveXControlWizAddin.h" CComModule _Module; BEGIN_OBJECT_MAP(ObjectMap) OBJECT_ENTRY(C...
// Copyright 2013 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/prefs/pref_value_map.h" #include "base/values.h" #include "chrome/browser/policy/file_selection_dialogs_policy_handler.h" #include "chrome/...
/* Copyright (c) 2004, 2019, 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 cer...
// 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"); you may...
// include statements // #include "Keyboard.hpp" #include "Constants.cpp" // class // // constructors Keyboard::Keyboard(SerLCD& lcd, PS2Keyboard& kb): display(lcd), keyboard(kb) { } // destructor Keyboard::~Keyboard() { } // member functions // KeyboardInput* Keyboard::read() { Serial.println("reading keybo...
/* * ctl_rs485.cpp * * Created on: 2019-02-18 * Author: Luiz Fernando Souza Softov <softov@brbyte.com> * Author: Guilherme Amorim de Oliveira Alves <guilherme@brbyte.com> * * Copyright (c) 2018 BrByte Software (Oliveira Alves & Amorim LTDA) * Todos os direitos reservados. All rights reserved. * * R...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/wafv2/model/DescribeManagedRuleGroupResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #includ...
#include "TestShapeSpawner.hpp" CG::Test::TestShapeSpawner::TestShapeSpawner() : _fov { 45 } { _sloader = std::make_unique<ShaderLoader>(); _sloader->load("./res/shaders/square.shader"); _sloader->attach("triangle"); _sloader->attach("color"); _sloader->createExecutable(); } CG::Test::TestShapeSpawner::~TestSh...
#include "NetworkUtils.h" #include "core/BinaryData.h" #include "network/HTTPClient.h" #include "utils/GeneralUtils.h" #include "utils/PlatformUtils.h" #include "utils/Log.h" #include <fstream> #include <iostream> #include <iomanip> #include <istream> #include <ostream> #include <sstream> #include <string> #include <c...
class Solution { public: int divide(int dividend, int divisor) { // Start typing your C/C++ solution below // DO NOT write int main() function long long a = abs((long long)dividend); long long b = abs((long long)divisor); long long d =0; long long n=1; long lo...
// ----------------------------------------------------------------------------------------------- // Copyright 2015 André Bergner. 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 <thread> #include <iostream> #include <random> #include <vector> #include <utility> #include <mutex> #include <chrono> #include <random> int main() { unsigned int numElements = 1000000; unsigned int n = 4; std::mutex myMutex; int totalSum = 0; std::vector<int> input; input.reserve(numElements); ...
// // Copyright (c) 2016 - 2017 Mesh Consultants 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, modify, ...