text
stringlengths
5
1.04M
#include "algorithm-median.hpp" #include "../include-opencv.hpp" #include <fmo/processing.hpp> namespace fmo { void registerMedianV1() { Algorithm::registerFactory( "median-v1", [](const Algorithm::Config& config, Format format, Dims dims) { return std::unique_ptr<Algorithm>(new...
//****************************************************************** // // Copyright 2014 Samsung Electronics All Rights Reserved. // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Versio...
// Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT #include "azure/template/template_client.hpp" #include "azure/template/version.hpp" #include <string> using namespace Azure::Template; std::string const TemplateClient::ClientVersion() { return Version::VersionString(); }...
// // Created by piotrek on 27.12.16. // #ifndef CSSP_FOR_HPP #define CSSP_FOR_HPP #include <list> #include "lib/types.hpp" #include "lib/ast/node/Node.hpp" namespace CSSP { class Generator; namespace AST { class For : public Node { public: /** * Constructor ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: System.Enum #include "System/Enum.hpp" // Completed includes // Type...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE415_Double_Free__new_delete_char_34.cpp Label Definition File: CWE415_Double_Free__new_delete.label.xml Template File: sources-sinks-34.tmpl.cpp */ /* * @description * CWE: 415 Double Free * BadSource: Allocate data using new and Deallocae data using delete ...
/**************************************************************************** * TMesh * * * * Consiglio Nazionale delle Ricerche * * Istituto ...
#include <iostream> using namespace std; class Random { public: Random() { cout << "A constructor is called." << endl; } ~Random() { cout << "A destructor is called." << endl; } }; int main() { Random r1, r2; return 0; } /** OUTPUT: A constructor...
//===- TestConvertGPUKernelToHsaco.cpp - Test gpu kernel hsaco lowering ---===// // // 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 <iostream> #include <cmath> using namespace std; int main() { int a, b, c; cout << "a=?, b=?, c=?" << endl; cin >> a >> b >> c; float d = pow(b, 2) - 4 * a * c; if (d < 0) { cout << "No Real Solutions." << endl; } if (d == 0) { ...
/* * Copyright(c) 2020-present simplelog contributors. * Distributed under the MIT License (http://opensource.org/licenses/MIT) */ #include <gmock/gmock.h> #include <gtest/gtest.h> #include <sstream> #include "config_parser.h" using namespace simplelog; using namespace testing; TEST(config_parser_tests, empty_str...
#include "mapnik_map.hpp" #include "utils.hpp" #include "mapnik_color.hpp" // for Color, Color::constructor #include "mapnik_image.hpp" // for Image, Image::constructor #include "mapnik_layer.hpp" // for Layer, Layer::constructor #include "mapnik_palette.hpp" // for palette_ptr, Palette, etc // mapnik #include <m...
#include <bits/stdc++.h> #define endl '\n' using namespace std; // Primo grande: 291077 struct Node { string data; int index; Node *link; }; class Stack { private: Node *top = NULL; int topIndex = 0; public: bool isEmpty() { return (top == NULL) ? true : false; } void pus...
#ifndef WYRAZENIEZESP_HH #define WYRAZENIEZESP_HH #include "LZespolona.hh" /*! * Modeluje zbior operatorow arytmetycznych. */ enum Operator { Op_Dodaj = '+', Op_Odejmij = '-', Op_Mnoz = '*', Op_Dziel = '/' }; /* * Modeluje pojecie dwuargumentowego wyrazenia zespolonego */ struct WyrazenieZesp { LZesp...
/// /// Copyright(c) 2018 Aimin Huang /// Distributed under the MIT License (http://opensource.org/licenses/MIT) /// #include "trading_day.h" #include <time.h> #include <boost/date_time/gregorian/gregorian.hpp> std::string current_trading_day(){ time_t rawtime = 0; ::time(&rawtime); struct tm * timeinfo = ::localt...
#include "string.hpp" #include <cassert> #include <iostream> //=========================================================================== int main () { { //------------------------------------------------------ // SETUP FIXTURE // TEST String str("qw"); // ...
// Copyright (c) 2007-2013 Hartmut Kaiser // // 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) #if !defined(HPX_COMPRESSION_SNAPPY_FEB_26_2013_0415AM) #define HPX_COMPRESSION_SNAPPY_FEB_26_2013_0415AM #include <h...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2005, 2006 Klaus Spanderen This file is part of QuantLib, a free-software/open-source library for financial quantitative analysts and developers - http://quantlib.org/ QuantLib is free software: you can redistribute ...
#pragma once #include <boost/optional/optional.hpp> #include <utility> template< typename A, typename F > auto optional_apply( A&& val, F func ) -> decltype( boost::make_optional( func( *std::forward< A >( val ) ) ) ) { if( val ) { return boost::make_optional( func( *std::forward< A >( val ) ) ); } else ...
//================================================================================================= /*! // \file src/mathtest/operations/dvecsvecouter/V6bVCa.cpp // \brief Source file for the V6bVCa dense vector/sparse vector outer product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "pch.h" #include "Header Files/CalcEngine.h" using namespace std; using namespace CalcEngine; constexpr int C_NUM_MAX_DIGITS = MAX_STRLEN; constexpr int C_EXP_MAX_DIGITS = 4; void CalcNumSec::Clear() { value...
/// @file /// /// Copyright Matus Chochlik. /// 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 EAGINE_MATH_CONSTANTS_HPP #define EAGINE_MATH_CONSTANTS_HPP #include <cmath> namespace eagine::math { /...
// Copyright 2018 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <lib/syslog/global.h> #include <lib/syslog/logger.h> #include <initializer_list> #include <string> #include "logger.h" namespace syslog { zx_s...
/** * All rights reserved. * License: see LICENSE.txt * * 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 the...
/* MIT License Copyright (c) 2017 FMI Open Development / Markus Peura, first.last@fmi.fi 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...
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #...
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2016 INRIA. * * 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 * *...
/* * Copyright 2010-2016 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...
// Ivan Carvalho // Solution to https://www.urionlinejudge.com.br/judge/problems/view/1026 #include <cstdio> int main(){ unsigned int x,y; while(scanf("%u %u",&x,&y) != EOF) printf("%u\n",(x^y)); return 0; }
/*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, instal...
/* Open Asset Import Library (assimp) ---------------------------------------------------------------------- Copyright (c) 2006-2018, assimp team All rights reserved. Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following condition...
/* Copyright (C) 2013 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. 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, either version 2 of the License, or * (at your option) any later version. *...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: Unity.Collections.NativeArray`1 #in...
/* dogleg_method.cpp * * Created on: 11 Nov 2020 * Author: Fabian Meyer */ #include <lsqcpp.h> // Implement an objective functor. struct ParabolicError { void operator()(const Eigen::VectorXd &xval, Eigen::VectorXd &fval, Eigen::MatrixXd &) const { // omit calculation of jaco...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofBackground(60); ofEnableSmoothing(); ofSetCircleResolution(6); } //-------------------------------------------------------------- void ofApp::update(){ } //-----------------------------------------------...
// Copyright (c) 2018 Graphcore Ltd. All rights reserved. #include <onnxutil.hpp> #include <poprithmshosttensor.hpp> #include <popart/ces/castce.hpp> #include <popart/op/cast.hpp> #include <popart/tensor.hpp> namespace popart { ConstExprCast::ConstExprCast(Op *op_) : ConstExprOp(op_) {} std::vector<char> ConstExprCa...
/*========================================================================= Program: Visualization Toolkit Module: $RCSfile$ 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 is distrib...
/****************************************************************************** * * Project: OpenGIS Simple Features Reference Implementation * Purpose: Implement ERMapper projection conversions. * Author: Frank Warmerdam, warmerdam@pobox.com * *****************************************************************...
#include <cassert> #include <cctype> #ifndef _MSC_VER #include <dirent.h> #include <unistd.h> #endif #include <cinttypes> #include <cstdio> #include <cstdlib> #include <cstring> #include <algorithm> #include <chrono> #include <cstring> #include <fstream> #include <iomanip> #include <iostream> #include <map> #include ...
/** * @file src/bin2llvmir/providers/abi/x64.cpp * @brief ABI information for x86_64. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #include "retdec/bin2llvmir/providers/abi/x64.h" using namespace llvm; namespace retdec { namespace bin2llvmir { AbiX64::AbiX64(llvm::Module* m, Config* c...
/************************************************************************* * libjson-rpc-cpp ************************************************************************* * @file testredisserver.cpp * @date 24.08.2017 * @author Jacques Software <software@jacques.com.au> * @license See attached LICENSE.txt ***...
//----------------------------------*-C++-*----------------------------------// // Copyright 2020 UT-Battelle, LLC, and other Celeritas developers. // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: (Apache-2.0 OR MIT) //-------------------------------------------------------------------------...
/* * ServerKnobs.cpp * * This source file is part of the FoundationDB open source project * * Copyright 2013-2018 Apple Inc. and the FoundationDB project 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 obta...
// This file is made available under Elastic License 2.0. // This file is based on code available under the Apache license here: // https://github.com/apache/incubator-doris/blob/master/be/src/olap/rowset/segment_v2/zone_map_index.cpp // Licensed to the Apache Software Foundation (ASF) under one // or more contribut...
#include <gli/gli.hpp> #include <vbte/graphics/texture.hpp> namespace vbte { namespace graphics { texture::texture(const gli::texture2D& texture) noexcept : width_(texture.dimensions().x), height_(texture.dimensions().y), target_(GL_TEXTURE_2D) { glGenTextures(1, &id_); glBindTexture(target_, id_); appl...
/* * Copyright (c) 2011-2019, The DART development contributors * All rights reserved. * * The list of contributors can be found at: * https://github.com/dartsim/dart/blob/master/LICENSE * * This file is provided under the following "BSD-style" License: * Redistribution and use in source and binary forms, w...
// Copyright (c) 2020 ETH Zurich // Copyright (c) 2014 Grant Mercer // 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) /// \file parallel...
#include "appinforeader.h" #include <QJsonDocument> #include <QJsonArray> #include <QJsonObject> #include <QFile> #include <QDebug> #include "appi18n.h" AppInfoReader::AppInfoReader() { } QList<Application*>* AppInfoReader::readFromPath(QString fileName){ QFile file(fileName); file.open(QIODevice::ReadOnly)...
/* $Id: VBVABase.cpp $ */ /** @file * VirtualBox Video driver, common code - VBVA initialisation and helper * functions. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (t...
/************************************************************ * * CmdKillOffer.cpp * */ /************************************************************ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * OPEN TRANSACTIONS * * Financial Cryptography and Digital Cash * Library, Protocol...
#include "Rendering/RenderDebugSettings.hpp" namespace kokko { RenderDebugSettings::RenderDebugSettings() : debugEntity(Entity::Null), featureFlags(0) { } Entity RenderDebugSettings::GetDebugEntity() const { return debugEntity; } void RenderDebugSettings::SetDebugEntity(Entity entity) { debugEntity = entity; } ...
/** * Copyright (c) 2016-present, Facebook, Inc. * 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. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include "...
/* * 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...
/** * 10.1 概述 * @Author Bob * @Eamil 0haizhu0@gmail.com * @Date 2017/9/20 */ #include <iostream> #include <vector> using namespace std; int main() { /** * 大多数算法并不直接操作容器,而是遍历由两个迭代器指定的一个元素范围来进行操作。 * 迭代器令算法不依赖于容器,但算法依赖于元素类型的操作。 * 算法永远不会执行容器的操作:可以改变或者移动元素,但永远不会改变容器的大小。 */ int val = 42;// 要查找的元素,类型要与...
//===- VectorToSCF.cpp - Conversion from Vector to mix of SCF and Std -----===// // // 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-2021 Mikhail Komarov <nemo@nil.foundation> // Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation> // Copyright (c) 2021 Ilias Khairullin <ilias@nil.foundation> // // MIT License // // Permission is hereby gr...
// Autogenerated from CppHeaderCreator on 7/27/2020 3:09:53 PM // Created by Sc2ad // ========================================================================= #pragma once #pragma pack(push, 8) // Begin includes #include "utils/typedefs.h" // Including type: System.Diagnostics.Tracing.TraceLoggingTypeInfo`1 #include "...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The LightPayCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode.h" #include...
#include <iostream> using namespace std; int main() { int iterations; int square_size = 2; cin >> iterations; for (int i = 0 ; i < iterations; i++){ square_size += square_size -1; } cout << square_size*square_size << "\n"; return 0; }
/*++ Copyright (c) Microsoft Corporation. Licensed under the MIT License. Abstract: MsQuic API Unittest --*/ #include "precomp.h" #ifdef QUIC_CLOG #include "ApiTest.cpp.clog.h" #endif #pragma warning(disable:6387) // '_Param_(1)' could be '0': this does not adhere to the specification for the functi...
// @file threadedtests.cpp - Tests for threaded code // /** * Copyright (C) 2008 10gen 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 ...
/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2018, Raghavender Sahdev. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
#include<cstdlib> #include<iostream> #include"../include/graph.hpp" using namespace Graph; ListGraph::ListGraph(){ this->nodes = (List::LinkedList<int>**) malloc(sizeof(List::LinkedList<int>*)); this->nodes[0] = new List::LinkedList<int>(); } ListGraph::ListGraph(int nodes){ this->size = nodes; this...
#include <iostream> #include "Test.h" int main(int argc, char** argv) { // English language Language lang; readDictionary("data/dict/english.txt", lang.dictionary); lang.wordMatchRatio = 0.4f; lang.maxTextLengthPerSpace = 7.0f; lang.minTextLengthPerSpace = 3.0f; /* std::cout << testHex() << std::endl; std::c...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ /* */ /* This file is part of the program */ /* GCG --- Generic Column Generation */ ...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2011 EMC Corp. // // @filename: // CQueryContext.cpp // // @doc: // Implementation of optimization context //--------------------------------------------------------------------------- #include "gpos/...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include "common.h" #include "appdomain.hpp" #include "peimagelayout.inl" #include "field.h" #include "strongnameinternal.h" #include "excep.h" #include "eeconfig.h" #include "gche...
// // EnvironmentData.cpp // libraries/environment/src // // Created by Andrzej Kapolka on 5/6/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 <cstring> #include...
// 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. // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! #include "config.h" #include "V8WebGLActiveInfo.h" #include "bindings/core/...
#include <sql.hpp> #include <mutex> /********************************************************** _SQLStatisticsRSB Column bindings for result set for SQLStatistics. **********************************************************/ static sCOLBIND _SQLStatisticsRSB[12] = { _colbindChar(1,sSQLSTATISTICSRESULTSET...
// { Driver Code Starts #include<bits/stdc++.h> const int mod=1e9+7; using namespace std; int lcs(int, int, string, string); int main() { int t,n,k,x,y; cin>>t; while(t--) { cin>>x>>y; // Take size of both the strings as input string s1,s2; cin>>s1>>s2; // ...
// Copyright (C) 2018-2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "softmax.h" #include <ie_parallel.hpp> #include <cpu/x64/jit_generator.hpp> #include <cpu/x64/injectors/jit_uni_eltwise_injector.hpp> #include <onednn/dnnl.h> #include "utils/bfloat16.hpp" #include "emitters/jit_bf16_emitt...
//================================================================================================= /*! // \file src/mathtest/smatsmatsub/MCbLCa.cpp // \brief Source file for the MCbLCa sparse matrix/sparse matrix subtraction math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This f...
/* * 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 <AzCore/Asset/AssetManagerBus.h> #include <AzCore/Component/TickBus.h> #include <AzCore/I...
//----------------------------------------------------------------------------- // Copyright (c) 2013 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restrictio...
#pragma once #include "Clove/Graphics/GhaPresentQueue.hpp" #include <MetalKit/MetalKit.h> @class MetalView; namespace clove { class MetalPresentQueue : public GhaPresentQueue { //VARIABLES private: id<MTLCommandQueue> commandQueue; MetalView *view{ nullptr }; //FUNCTIONS public: MetalPresentQueue() ...
/* * Copyright 2020 Autoware Foundation. 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 b...
#include "util.h" #include "Option.h" /* 1) Initialize all factor matrices and a core tensor, and 2) Build a test tensor if there exists a test input */ void Initialize(double ***&FactorMat, Tensor &G, int *&Dims, Tensor &Xtest) { printf("Initializing all factor matrices and a core tensor ... "); int n, i,...
// link to the problem: // https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ #include <algorithm> #include <array> #include <iostream> #include <iterator> #include <numeric> #include <sstream> #include <string> #include <unordered_map> #include <vector> // Definition for a Node. class Node { ...
// KRATOS __ __ _____ ____ _ _ ___ _ _ ____ // | \/ | ____/ ___|| | | |_ _| \ | |/ ___| // | |\/| | _| \___ \| |_| || || \| | | _ // | | | | |___ ___) | _ || || |\ | |_| | // |_| |_|_____|____/|_| |_|___|_| \_|\____| APPLICATION // // License: BSD License // ...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2015-2017 The WIRE developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "merkleblock.h" #include "has...
// 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 <QApplication> #include "bitcoingui.h" #include "transactiontablemodel.h" #include "optionsdialog.h" #include "abou...
// VK tests // // Copyright (c) 2015-2019 The Khronos Group Inc. // Copyright (c) 2015-2019 Valve Corporation // Copyright (c) 2015-2019 LunarG, Inc. // Copyright (c) 2015-2019 Google, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with ...
// 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/public/browser/context_factory.h" #include "content/public/common/result_codes.h" #include "content/shell/browser/shell_browser_context....
/* * (C) Copyright 2015 ETH Zurich Systems Group (http://www.systems.ethz.ch/) and others. * * 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...
#include <fstream> #include "Filesystem/File.h" namespace FILESYSTEM { /// Attempts to read all data in binary format from the specified file. /// @param[in] path - The path of the file to read. /// @return All binary data from the file, if successfully read; empty otherwise. std::string File::ReadBin...
//========================================================================= // Copyright (C) 2012 The Elastos 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 // // ...
// Copyright Larry Gritz (et al) // SPDX-License-Identifier: BSD-3-Clause #include <Proto/Proto.h> #include <pybind11/pybind11.h> namespace py = pybind11; #if PY_MAJOR_VERSION == 2 // Preferred Python string caster for Python2 is py::bytes, so it's a byte // string (not unicode). # define PY_STR py::bytes #else...
#include "Data.hpp" template <typename Type> class Stack { Data <Type> *first; unsigned long int count; public: Stack(); ~Stack(); const unsigned int length(); const bool empty(); const Type top(); void push(Type data); void pop(); void show(); }; template <typename Type> Stack<Type>::Stack() { first = n...
#include <iterator> #include <efsw/String.hpp> #include <efsw/Utf.hpp> namespace efsw { const std::size_t String::InvalidPos = StringType::npos; std::vector < std::string > String::split ( const std::string& str, const char& splitchar, const bool& pushEmptyString ) { std::vector < std::string > tmp; std::string tm...
#include <stdlib.h> #include "Solution.h" #include <algorithm> #include <fstream> #include <iostream> #include <sstream> #include <math.h> #include <cmath> #include "cuda.h" #include "cuda_runtime.h" using namespace std; Solution::Solution(){ } Solution::Solution(int _total_nodes) { //ctor total_nodes = _t...
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #...
#include "planta.h" void planta::abrirMalla() { objmodel_ptr = NULL; if (!objmodel_ptr) { objmodel_ptr = glmReadOBJ("./modelos/planta1.obj"); if (!objmodel_ptr) exit(0); glmUnitize(objmodel_ptr); glmFacetNormals(objmodel_ptr); glmVertexNormals(objmodel_p...
/*============================================================================= Copyright (c) 2001-2011 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) =========================================...
/* MIT License Copyright 2002 Ifara Tecnologias S.L. 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, publ...
#include <dmzEventConsts.h> #include <dmzEventModule.h> #include "dmzNetExtPacketCodecEventBasic.h" #include <dmzNetModuleAttributeMap.h> #include <dmzObjectModule.h> #include <dmzRuntimeConfigToTypesBase.h> #include <dmzRuntimeDefinitions.h> #include <dmzRuntimeEventType.h> #include <dmzRuntimeObjectType.h> #include <...
/* ############################################################################### # # Temboo Arduino library # # Copyright 2016, Temboo 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 ...
#include "projectionwidget.h" projectionWidget::projectionWidget(QWidget *parent) : QWidget(parent) { setPalette(QPalette(QColor(251,251,251))); setAutoFillBackground(true); } void projectionWidget::paintEvent(QPaintEvent*) { QPainter* ptr = new QPainter(this); ptr->translate(52, 102); o3d.ShowProj...
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include <cassert> #include <cstdint> #include <cstdlib> #include <memory> #include <new> #include <stdexcept> #include <string> #include <string_view> #include <type_traits> #include <utility> #include <vec...
// Copyright 2016 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/task_scheduler_util/common/variations_util.h" #include "base/command_line.h" #include "base/logging.h" #include "base/strings/string...