text
stringlengths
5
1.04M
#include <iostream> #include <cstring> #inclue <ctype> using namespace std; int main() { string tab[40]; int n = 0; do { cout<<"Podaj "<<n+1<<" lancuch znakow: "; getline(cin, tab[n]); n++; } while (n < 40 && tab[n-1] != ""); n--; string* tabp[40]; for (int i = ...
#include <bits/stdc++.h> using namespace std; bool f(int n){ return n&1; }
// // "$Id: Fl_Type.cxx 6012 2008-01-04 21:45:49Z matt $" // // Widget type code for the Fast Light Tool Kit (FLTK). // // Each object described by Fluid is one of these objects. They // are all stored in a double-linked list. // // They "type" of the object is covered by the virtual functions. // There will probably ...
#include "o2016/queue_manager/queue_manager.h" namespace o2016 { QueueManager& QueueManager::GetInstance() { static QueueManager instance; return instance; } MessageQueue<muan::proto::StackProto<PdpStatus, 512>>& QueueManager::pdp_status_queue() { return pdp_status_queue_; } muan::wpilib::DriverStationQueue& ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/il2cpp-ut...
#include <stdio.h> #include "mainwindow.h" #include "ui_mainwindow.h" #include <QGraphicsView> #include <QWindow> #include <QKeyEvent> #include <QPen> //void mainwindow::refresh_selected_hexgrid(){ refresh_hexgrid_cylinder(); } //void mainwindow::refresh_selected_hexgrid(){ refresh_hexgrid(); } void mainwindow::refr...
#ifndef PYTHONIC_INCLUDE_IO__IO_TEXTIOWRAPPER_WRITELINES_HPP #define PYTHONIC_INCLUDE_IO__IO_TEXTIOWRAPPER_WRITELINES_HPP #include "pythonic/include/builtins/file/writelines.hpp" PYTHONIC_NS_BEGIN namespace io { namespace _io { namespace TextIOWrapper { USING_FUNCTOR(writelines, builtins::file::fun...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, Thierry Lelegard // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that ...
//-------------------------------------------------------------------------------------------------- // Copyright (c) YugaByte, 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 // // ht...
// Copyright (c) 2018-2019 The worldwideweb Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <wallet/coincontrol.h> #include <util/system.h> CCoinControl::CCoinControl() { m_avoid_partial_spends = g...
#include <zerohour/storageresults.h> #include <util/convert.h> StorageResults::StorageResults(std::string const& _path){ path = _path + "/resultsDB"; options.create_if_missing = true; leveldb::Status status = leveldb::DB::Open(options, path, &db); assert(status.ok()); LogPrintf("Opened LevelDB success...
#include <stdio.h> #include <stdlib.h> #include <cstdio> //#include <cstdlib> #include <time.h> #include <math.h> #include <fstream> #include <chrono> #include "layers.hpp" #include "networks.hpp" #include <fstream> int main(void) { FILE **files; // if (fout.is_open()) printf("Is open\n"); unsigned char **...
// 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...
/** * @file RAECall.cc * @author * @brief implement the interfaces of RA ECalls * @version 0.1 * @date 2021-05-21 * * @copyright Copyright (c) 2021 * */ #include "../../include/RAECall.h" /* for remote attestation */ sgx_status_t Ecall_Enclave_RA_Init(sgx_ec256_public_t key, int b_pse, sgx_ra_context_t *c...
/************************************************************************************ * WrightEagle (Soccer Simulation League 2D) * * BASE SOURCE CODE RELEASE 2016 * * Copyright (c) 1998-2016 WrightEagle 2D Soccer Simulation Te...
#include "spi.h" #include <avr/io.h> #define SPI_DDR DDRB #define IO_SELECT_PORT PORTC #define SPI_MOSI_OFFSET (1 << 2) #define SPI_MISO_OFFSET (1 << 3) #define SPI_CLK_OFFSET (1 << 1) // this is an hardware abstraction layer // can't be unit tester ! // Please care on change, test on board void init_spi(void) { ...
#include "../avx2_vec.h" int main() { avx2_int32vec_t input1; std::cout << "Unsafe multiply vector(int32_t)[" << avx2_int32vec_t::size() << "] and scalar\n"; read("input1", input1); std::int32_t scale; std::cout << "scale: "; std::cin >> scale; auto avx1 = _mm256_load_si256(&input1); ...
#include <sstream> #include <iostream> #include "Tools/Exception/exception.hpp" #include "DVBS2_constants.hpp" #include "DVBS2_constants_64800.hpp" #include "DVBS2_constants_16200.hpp" using namespace aff3ct; using namespace aff3ct::tools; Sparse_matrix aff3ct::tools::build_H(const dvbs2_values& dvbs2) { Sparse_...
/* * * Copyright (C) 1997-2010, OFFIS e.V. * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation were developed by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmjpeg * * Author: Marco Ei...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
#ifndef BVHBUILDER_HPP_ #define BVHBUILDER_HPP_ #include "NaiveBvhNode.hpp" #include "Primitive.hpp" namespace Tungsten { namespace Bvh { class BvhBuilder { std::unique_ptr<NaiveBvhNode> _root; uint32 _depth; uint32 _numNodes; uint32 _branchFactor; public: BvhBuilder(uint32 branchFactor); ...
// 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 "chain.h" #include "util.h" #include "test/test_sprint.h" #include "test/test_random.h" #include <vector> #include...
// Copyright (c) 2014-2017 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAOCPP_PEGTL_INCLUDE_ANALYSIS_INSERT_RULES_HPP #define TAOCPP_PEGTL_INCLUDE_ANALYSIS_INSERT_RULES_HPP #include "../config.hpp" #include "grammar_info.hpp" #include "rule_inf...
// Copyright (c) 2011-2013 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 "addresstablemodel.h" #include "guiutil.h" #include "walletmodel.h" #include "base58.h" #include "wallet.h" #inclu...
/* * Guy.cpp * * Created on: 30 jan 2013 * Author: mattias */ #include "Guy.h" #include "common.h" #include <math.h> #include "WeaponCollection.h" #include "Blood.h" Guy::Guy() { TurnIT = -1; Weapons.Init(this); Weapons.AddWeapon("Klachnikow"); Weapons.AddWeapon("blaster"); } Guy::~Guy() { // TODO A...
#include "CallChain.h" #include "cmsis.h" #include "critical.h" namespace mbed { class CallChainLink { public: CallChainLink(): cb(), next(NULL) { // No work to do } CallChainLink(Callback<void()> &callback): cb(callback), next(NULL) { // No work to do } Callback<void()> cb; C...
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Level 2 and Level 3 source code contains trade secrets...
// Copyright (c) 2010 libmv authors. // // 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, publis...
//===----------------------------------------------------------------------===// // // 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 "VertexBufferObject.h" VertexBufferObject::VertexBufferObject(std::vector<float> &data) { glGenBuffers(1, &_Id); PRINT("VBO >> VBO generated " << data.size()); //LogBuffer(data); Bind(); glBufferData(GL_ARRAY_BUFFER, data.size() * sizeof(float), std::data(data), GL_STATIC_DRAW); } VertexBufferObject::~...
class Solution { public: bool canPlaceFlowers(vector<int>& flowerbed, int n) { /* if (flowerbed.size() == n) { return false; } */ if (n == 0) { return true; } int m = 0; for (int i = 0; i < flowerbed.size(); i+...
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.11 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. D...
/** * \file * \copyright * Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org) * Distributed under a Modified BSD License. * See accompanying file LICENSE.txt or * http://www.opengeosys.org/project/license * */ #include "ComponentTransportProcess.h" #...
// https://leetcode.com/problems/deepest-leaves-sum /** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode() : val(0), left(nullptr), right(nullptr) {} * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * TreeNod...
#if defined(__MK64FX512__) || defined(__MK66FX1M0__) #include "../../inc/MarlinConfig.h" #if HAS_SERVOS #include "HAL_Servo_Teensy.h" uint8_t servoPin[MAX_SERVOS] = { 0 }; int8_t libServo::attach(const int pin) { if (this->servoIndex >= MAX_SERVOS) return -1; if (pin > 0) servoPin[this->servoIndex] = pin; re...
// Copyright 1996-2021 Cyberbotics 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 or agr...
#include <cstdio> #include <vector> int ask(int L, int R) { printf("? %d %d\n", L + 1, R + 1); fflush(stdout); int ret; scanf("%d", &ret); return ret; } std::vector<int> solveSorted(int N) { std::vector<int> ans(N); for (int i = 1; i < N; ++i) { ans[i] = ans[i - 1] + (ask(i - 1, i) == 1 ? 0 : 1); ...
#include "UnitTest++/UnitTestPP.h" // We're really testing if it's possible to use the same suite in two files // to compile and link successfuly (TestTestSuite.cpp has suite with the same name) // Note: we are outside of the anonymous namespace SUITE(SameTestSuite) { TEST(DummyTest2) { } }
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "pch.h" #include "IslandWindow.h" #include "../types/inc/Viewport.hpp" #include "resource.h" extern "C" IMAGE_DOS_HEADER __ImageBase; using namespace winrt::Windows::UI; using namespace winrt::Windows::UI::Composition; us...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2017-2018 The Zio Coin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" #include "mai...
#include <iostream> double f(double x) { return (x*x*x - 3*x*x + 2*x); } int main() { double step = 0.001; // Smaller step values produce more accurate and precise results double start = -1; double stop = 3; double value = f(start); double sign = (value > 0); // Check for root at start if ( 0 == value ) s...
#include <iostream> #include"sortedtype.cpp" using namespace std; int main() { SortedType <int> s; int length= s.LengthIs(); cout<<length<<endl; s.InsertItem(5); s.InsertItem(7); s.InsertItem(4); s.InsertItem(2); s.InsertItem(1); length= s.LengthIs(); for(int i=0;i<length;i++...
/** * Copyright Soramitsu Co., Ltd. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ #include "util/proto_status_tools.hpp" #include <boost/preprocessor/repetition/repeat.hpp> #include <boost/preprocessor/tuple/elem.hpp> #include <optional> #include "common/bind.hpp" #include "util/status.hpp" using ...
/**************************************************************************** ** ** Copyright (C) 2016 Alex Trotsenko <alex1973tr@gmail.com> ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage ** Licensees holding v...
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <tack@gecode.org> * * Copyright: * Guido Tack, 2007 * * This file is part of Gecode, the generic constraint * development environment: * http://www.gecode.org * * Permission is hereby granted, fr...
#include "../../ipc/QueueFactory.h" #include "../../ipc/MessageQueueSenderIF.h" #include "MessageQueue.h" #include "RtemsBasic.h" QueueFactory* QueueFactory::factoryInstance = nullptr; ReturnValue_t MessageQueueSenderIF::sendMessage(MessageQueueId_t sendTo, MessageQueueMessageIF* message, MessageQueueId_t sentFrom...
/* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */ /* * $Header: /fuji/lewis/RCS/tMapping_LinkList.cc,v 1.4 1992/12/03 07:45:01 lewis Exp $ * * TODO: * * Changes: * $Log: tMapping_LinkList.cc,v $ * Revision 1.4 1992/12/03 07:45:01 lewis * Work around qGCC_SimpleClassStaticInitialize...
/* * Copyright (c) 2019, NVIDIA 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
/* Copyright (C) 2020 George Cave - gcave@stablecoder.ca 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 ap...
//--------------------------------------------------------------------------- #include "stdafx.h" #include <math.h> #include "OGLPipePresenter.h" #include "Colors.h" #include "Rotate.h" #include "GLFontRenderer.h" //#include "MainFrm.h" #ifdef __WXMAC__ #include "glu.h" #else #include "GL/glu.h" #endif //#include "reso...
#include "tcp_conn.h" #include<netinet/in.h> #include<netinet/tcp.h> #include"message.h" #include<fcntl.h> #include<string.h> #include<unistd.h> #include"tcp_server.h" void conn_rd_callback(event_loop *loop,int fd,void *args) { tcp_conn *conn=(tcp_conn*)args; conn->do_read(); } void conn_wt_callback(event_loop *loop...
/* * 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...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, insta...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <iostream> using namespace std; int main() { int i=1; do { cout<<"6*"<<i<<"="<<(6*i)<<endl; i++; } while(i<=10); return 0; }
// 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. // -------------------------------------------------------------------------------- // DomainFile.cpp // // --------...
// // Copyright (c) 2015-2020 CNRS INRIA // Copyright (c) 2015 Wandercraft, 86 rue de Paris 91400 Orsay, France. // #ifndef __pinocchio_multibody_data_hpp__ #define __pinocchio_multibody_data_hpp__ #include "pinocchio/math/tensor.hpp" #include "pinocchio/spatial/fwd.hpp" #include "pinocchio/spatial/se3.hpp" #include...
// Copyright (c) 2011-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #define BOOST_TEST_MODULE Moonkabobcoin Test Suite #include <banman.h> #include <net.h> #include <memory> #include <boost/...
/* * ----------------------------------------------------------------------------- * Created by Ulysses Carlos on 03/25/2020 at 09:49 PM * * Chapter20_06.cc * * Write a find-and-replace operation for Documents based on §20.6.2. * ----------------------------------------------------------------------------- */...
//===--- Refactoring.cpp ---------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/...
//! //! @file create_test.cpp //! @author jbruel //! @date 22/07/20 //! #include <jbr/reg/Manager.hpp> #include <jbr/reg/exception.hpp> #include <doctest.h> #include <fstream> TEST_CASE("jbr::reg::Manager::exist") { SUBCASE("Give empty input path.") { CHECK(!jbr::reg::Manager::exist("")); } S...
/*========================================================================= Program: Visualization Toolkit Module: vtkOpenGLLight.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 software i...
/* * 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 <quic/server/handshake/DefaultAppTokenValidator.h> #include <quic/QuicConstants.h> #include <quic/api/test/Mocks.h> #i...
// Copyright 2014 fotono Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "fcp/FCP.h" #include "crypto/Hex.h" #include "crypto/SHA.h" #include "fcp/LocalNode.h" ...
#include "stdafx.h" /* * * RayTrace Software Package, release 1.0, May 3, 2002. * * Mathematics Subpackage (VrMath) * * Author: Samuel R. Buss * * Software accompanying the book * 3D Computer Graphics: A Mathematical Introduction with OpenGL, * by S. Buss, Cambridge University Press, 2003. * ...
/* * 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 <ATL.h> #if !defined(AUDIO_RELEASE) #include <AzCore/Math/Color.h> #endif // !AUDIO...
#include "bitcoinunits.h" #include <QStringList> BitcoinUnits::BitcoinUnits(QObject *parent): QAbstractListModel(parent), unitlist(availableUnits()) { } QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits() { QList<BitcoinUnits::Unit> unitlist; unitlist.append(BTC); unitlist.append(mBT...
// Copyright (C) 1999 Microsoft Corporation // // Safe Mode Administrator password page // // 6-3-99 sburns #include "headers.hxx" #include "safemode.hpp" #include "resource.h" #include "state.hpp" #include "common.hpp" #include "ds.hpp" SafeModePasswordPage::SafeModePasswordPage() : DCPr...
#include "PathFollowPrivatePCH.h" #include "PFPathComponent.h" #include "SceneManagement.h" #include "PFPathFollowerComponent.h" #include "Runtime/Launch/Resources/Version.h" UPFPathComponent::UPFPathComponent() { bWantsInitializeComponent = true; } void UPFPathComponent::InitializeComponent() { Super::InitializeCo...
#define RAPIDJSON_HAS_STDSTRING 1 #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <fcntl.h> #include <iostream> #include <map> #include <string> #include <vector> #include "AccountService.h" #include "ClientError.h" #include "rapidjson/document.h" #include "rapidjson/prettywriter.h" #include "ra...
#include "PointMassPlaneConstraint.h" namespace rg { PointMassPlaneConstraint::PointMassPlaneConstraint( PointMass* pointMass, Plane* plane) : pointMass(pointMass) , plane(plane) { } void PointMassPlaneConstraint::apply() { Vector3 normal = plane->normal; float planeProj = glm::dot(normal, plane->position); f...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include "common_test_utils/test_constants.hpp" #include "subgraph_tests/basic_lstm.hpp" using namespace SubgraphTestsDefinitions; namespace { const std::vector<InferenceEngine::Precision> netPrecisions = { ...
/** * @file unit_uniform_dist.hpp * @author Charles Karney <charles.karney@sri.com> * @brief Definition of unit_uniform_dist * * Copyright (c) Charles Karney (2014) and licensed under the MIT/X11 License. * For more information, see http://exrandom.sourceforge.net/ */ #if !defined(EXRANDOM_UNIT_UNIFORM_DIST_HPP...
/* Copyright (c) 2014 Aerys 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, publish, distribute, sublicens...
#include<iostream> #include<vector> #include "datamodel.h" using namespace std; vector<Product> allProducts = { Product(1,"apple",26), Product(2,"mango",16), Product(3,"guava",36), Product(4,"banana",56), Product(5,"strawberry",29), Product(6,"pineapple",20), }; //Creating pointer function fo...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/comprehend/model/CreateDocumentClassifierRequest.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Comprehend::Model; using namespace Aws::Util...
// Copyright (c) 2014-2018 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/ #ifndef TAO_PEGTL_INTERNAL_SEQ_HPP #define TAO_PEGTL_INTERNAL_SEQ_HPP #include "../config.hpp" #include "skip_control.hpp" #include "trivial.hpp" #include "../apply_mode.hpp" #incl...
/* bai 7 ve hinh chu nhat cac so 1, 0 */ #include<stdio.h> int main (){ int i,j,n,m; scanf("%d%d", &n, &m); for(i=1;i<=n;i++){ for(j=1;j<=m;j++){ if(i%2==0){ printf("0"); } else printf("1"); } printf("\n"); } }
/* * 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...
/*********************************************************************************************************************/ /* File Name: ang/inline/object_wrapper.hpp */ /* Author: Ing. Jesus Rocha <chuyangel.rm@gmail.com>, July 2016. ...
/* * Copyright 2008-2009 NVIDIA 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
// // proxy.cpp // design-pattern // // Created by nelson lin on 8/21/18. // Copyright © 2018 nelson lin. All rights reserved. // #include "proxy.hpp" class Subject { public: virtual void execute() = 0; }; class Real : public Subject { public: Real(std::string s) : _str(s) {} void execute() override ...
// Copyright 2020 The XLS 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) 2018-2022 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/helpers/hw_info.h" #include "shared/source/debug_settings/debug_settings_manager.h" #include "shared/source/helpers/hw_helper.h" #include "hw_cmds.h" #include <algorithm> namespace NEO { HardwareInfo::...
/********************************************************************** * Copyright (c) 2008-2014, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published ...
/* * 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 <LmbrCentral_precompiled.h> #include <AzTest/AzTest.h> #include <Builders/LevelBuilder/Le...
// Copyright 2018 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. #ifndef V8_INTL_SUPPORT #error Internationalization is expected to be enabled. #endif // V8_INTL_SUPPORT #include "src/objects/js-number-format.h" #i...
#include <json.hpp> #include <deque> #include <list> #include <forward_list> #include <set> #include <unordered_map> #include <unordered_set> using json = nlohmann::json; int main() { // ============ // object types // ============ // create an object from an object_t value json::object_t object_...
// Copyright (c) 2012-2017 VideoStitch SAS // Copyright (c) 2018 stitchEm #pragma once #include "liveoutputsdi.hpp" /** * @brief Wrapper for a Decklink output */ class LiveOutputDecklink : public LiveOutputSDI { Q_OBJECT public: explicit LiveOutputDecklink(const VideoStitch::Ptv::Value* config, ...
/* * Copyright 2019-2021 Diligent Graphics LLC * Copyright 2015-2019 Egor Yusov * * 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/LICENS...
/** tutorial_pba_9.cpp * * (C) Copyright 2011 François Mauger, Christian Pfligersdorffer * * Use, modification and distribution is 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) * */ /** * The intent of this progr...
#pragma once #include <vector> inline std::vector<int> vgg16_grad_sizes() { return { 1728, 64, 36864, 64, 73728, 128, 147456, 128, 294912, 256, 589824, 256, 589824, 256, 1179648, 512, 2359296, 512, 2359296, 512, 2359296, 512, 2359296, 512, 2359296, 512, 1...
/* * @file aoc_day01_p1.cpp * @brief Advent of Code (AOC) 2015 Puzzle solution for: Day 01 Part 1. * * @author simon rowe <simon@wiremoons.com> * @license open-source released under "MIT License" * * @date originally created: 14 March 2022 * * @details Advent of Code (AOC) 2015 Puzzle solution. See: * https:...
/* * 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...
//================ Copyright (c) 2012, PG, All rights reserved. =================// // // Purpose: a simple slider // // $NoKeywords: $ //===============================================================================// #include "CBaseUISlider.h" #include "Engine.h" #include "Mouse.h" #include "AnimationHandler.h" #...
// license:BSD-3-Clause // copyright-holders:Aaron Giles /*************************************************************************** Killer Instinct hardware driver by Aaron Giles and Bryan McPhail Games supported: - Killer Instinct - Killer Instinct 2 Game by Rare, manufacturing/publishing by Midway. Nintendo was...
/*============================================================================= Copyright (c) 2001-2007 Joel de Guzman 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) =========================================...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
/* * Copyright (c) 2003-2021 Rony Shapiro <ronys@pwsafe.org>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php */ #include "PWSprefs.h" ...
// Copyright (c) 2020-2022 Intel Corporation // // 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,...