text
stringlengths
7
961k
#include <stdio.h> #include <component477/lib1.h> int component477_1 () { printf("Hello world!\n"); return 0; }
/**************************************************************************/ /* */ /* WWIV Initialization Utility Version 5 */ /* Copyright (C)1998-2021, WWIV Software Services */ /* ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE36_Absolute_Path_Traversal__wchar_t_file_ofstream_63a.cpp Label Definition File: CWE36_Absolute_Path_Traversal.label.xml Template File: sources-sink-63a.tmpl.cpp */ /* * @description * CWE: 36 Absolute Path Traversal * BadSource: file Read input from a file * GoodSou...
/* SerialInterface.cpp - Library for interfacing with serial ports Created by Scott Williams, 05/07/2012 */ #include "Arduino.h" #include "string.h" #include "SerialInterface.h" #define BUFFSIZE 200 #define DELAY 40 HardwareSerial *USBSerial; SoftwareSerial *GSMSerial; SerialInterface::SerialInterface() { } void...
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018 www.open3d.org // // Permissio...
#include <zephyr.h> #include <ztest.h> #include <stdio.h> #include <pid.h> #include <lowpass.h> #include <mixer/mixer.hpp> #include "test_data.inc" #include "test_data_px_airmode.inc" #define USE_ONLY_COMMAND(var) {var[0], var[1], var[2], var[3]} void test_simple_mixer() { float outputs[4] = {}; for (int i=0; i<...
/// @file #pragma once #include <vector> #include "CommonTypes.hpp" #include "core/ICmdRegistry.hpp" struct SCmd { SCmd(const tString &asName, pfnCmdCallback afnCallback, const char *asDescription = "") : msName(asName), mfnCallback(afnCallback), msDesc(asDescription){} tString msName{""}; tString msDesc{""}...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2016 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 "base58.h" #include "amount.h" #include "chain.h" #include "chainparams.h" #i...
/* * Copyright 2020 Rockchip 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 2021 Google LLC * * 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 ...
// // Coypright (c) 2020 Singular Inversions Inc. (facegen.com) // Use, modification and distribution is subject to the MIT License, // see accompanying file LICENSE.txt or facegen.com/base_library_license.txt // #include "stdafx.h" #include "FgSimilarity.hpp" #include "FgMatrixSolver.hpp" #include "FgBounds.hpp" #in...
// 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 "media/base/fake_text_track_stream.h" #include <stdint.h> #include "base/bind.h" #include "base/callback_helpers.h" #include "base/single_threa...
//============================================================================== /// /// File: ThreadTaskQueue.cpp /// /// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved. /// /// This file is subject to the terms and conditions defined in /// file 'LICENSE.txt', which is part of this so...
// 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: System.Xml.Serialization.XmlTypeMap...
#include <iostream> #include <list> using namespace std; int main() { list<int> ilist; ilist.push_front(22); ilist.push_front(44); ilist.push_front(55); ilist.push_front(66); int size = ilist.size(); for(int i=0;i<size;i++) { cout<<ilist.front()<<" "; ilist.pop_fro...
//*************************************************************************************** // GeometryGenerator.cpp by Frank Luna (C) 2011 All Rights Reserved. //*************************************************************************************** #include "pch.h" #include "GeometryGenerator.h" #include <algorithm> u...
//===-- SMTLIBLoggingSolver.cpp -------------------------------------------===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmap.h" #include "SkRect.h" #include "Test.h" static const char* boolStr(bool value) { return value ? "true" : "false"; } // these are in the same order as...
// ====================================================================== // \Title HexRouterImpl.cpp // \author mereweth // \brief cpp file for HexRouter component implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RESERVED. United States Governmen...
#include "trueos-xdgutils.h" QList<XDGFile> XDGUtils::allApplications(bool showhidden, bool showinvalid){ //Get the list of places to look for applications based on the current path settings QStringList paths = QString( getenv("XDG_DATA_DIRS") ).split(":"); paths.prepend(QDir::homePath()+"/.local/share"); //make...
#ifndef _RIVE_BONE_HPP_ #define _RIVE_BONE_HPP_ #include "rive/generated/bones/bone_base.hpp" #include <stdio.h> #include <vector> namespace rive { class Constraint; class Bone : public BoneBase { private: std::vector<Bone*> m_ChildBones; std::vector<Constraint*> m_PeerConstraints; public: StatusCode onAd...
// Copyright 2017 The Fuchsia Authors // // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT #include "object/mbuf.h" #include <lib/counters.h> #include <lib/user_copy/user_ptr.h> #include <fbl/algorithm.h> #include <fbl/...
// 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 <windows.h> #include <limits> #include <utility> #include "base/debug/alias.h" #include "base/logging.h" #include "base/memory/platform_shared_...
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "util/arena.h" #include "util/random.h" #include "util/testharness.h" namespace leveldb { c...
/** * Copyright (c) 2011-2020 Bill Greiman * This file is part of the SdFat library for SD memory cards. * * MIT License * * 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 rest...
//===--- ImportDecl.cpp - Import Clang Declarations -----------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
#include <string> #include "SLP_Examples.h" static void show_usage(std::string name) { std::cerr << "Usage: " << name << " <option>\n" << "Options:\n" << "\thelp\t\tShow this help message\n" << "\tORPerceptron\tSee how ORPerceptron works\n" << "\tANDPerceptron\tSee how ANDPerceptron works\n" << std::endl; }...
// Copyright 2010-2015 RethinkDB, all rights reserved. #include "rdb_protocol/terms/write_hook.hpp" #include <string> #include "clustering/administration/admin_op_exc.hpp" #include "containers/archive/string_stream.hpp" #include "rdb_protocol/btree.hpp" #include "rdb_protocol/error.hpp" #include "rdb_protocol/func.hp...
// Copyright (c) 2017-2018 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "multisigdialog.h" #include "forms/ui_multisigdialog.h" #include "askpassphrasedialog.h" #include "primitives/transacti...
// // File: rm_manager.cc // Description: RM_Manager class implementation // #include <cstdio> #include <cstring> #include <cassert> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include "rm.h" // // RM_Manager // // Desc: Constructor - intended to be called once at begin...
#include <src/detail/reverse.hpp> #include <src/util/nurbs_util.hpp> #include "config/adaptor.hpp" #include "../test.hpp" #include <iostream> #include <cmath> using namespace nurbs; void basic_reverse(){ { size_t degree = 2; std::vector<dvec3> points = { {0, 0, 1}, {1, 1, 0.5}, {2, 1, 0.5}, {3, 0, 1}...
/** ****************************************************************************** * This file is part of the TouchGFX 4.10.0 distribution. * * @attention * * Copyright (c) 2018 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file ...
/* [名称]:13_polynomial_expresion.cpp [示范]:1.设计一个C++程序,计算两个已知多项式的和,并输出最后的结果。 A=3X^3 + 4X + 2 B=6X^3 + 8X^2 + 6X + 9 */ #include <iostream> using namespace std; class list //声明链表结构 { public: int coef,exp; class list *next; }; typedef class list node; typedef node *link; link create...
/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/effects/GrMatrixConvolutionEffect.h" #include "src/gpu/GrTexture.h" #include "src/gpu/GrTextureProxy.h" #include "src/gpu/glsl/GrGLSLFragmentProcessor.h" #in...
// Copyright (c) 2019 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...
// Write a program to compute the area of a rhombus #include <iostream> using namespace std; int main() { double d1, d2; cout << "Enter the length of diagonal 1 : "; cin >> d1; cout << "Enter the length of diagonal 2 : "; cin >> d2; double area = (d1 * d2) / 2; cout << "\nThe area of the...
// salsa.cpp - originally written and placed in the public domain by Wei Dai // use "cl /EP /P /DCRYPTOPP_GENERATE_X64_MASM salsa.cpp" to generate MASM code #include "pch.h" #include "config.h" #ifndef CRYPTOPP_GENERATE_X64_MASM #include "salsa.h" #include "argnames.h" #include "misc.h" #include "cpu.h" #if CRYPTO...
#include <bits/stdc++.h> using namespace std; /* Alex just got a new hula hoop, he loves it but feels discouraged because his little brother is better than him Write a program where Alex can input (n) how many times the hoop goes round and it will return him an encouraging message :) If Alex gets 10 or more hoops, r...
#include "../AudioAttributes.hpp" #include "../../os/Parcel.hpp" #include "../../../JString.hpp" #include "./MediaController_PlaybackInfo.hpp" namespace android::media::session { // Fields JObject MediaController_PlaybackInfo::CREATOR() { return getStaticObjectField( "android.media.session.MediaController$Play...
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
/**************************************************************************** * * Copyright 2018 Samsung Electronics 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...
/* Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> Copyright (C) 2011 Cosmin Truta <ctruta@gmail.com> Copyright (C) 2012 University of Szeged Copyright (C) 2012 Renata Hodovan <reni@webkit.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Li...
// Copyright Carl Philipp Reh 2006 - 2019. // 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 SGE_INPUT_JOYPAD_EVENT_BASE_HPP_INCLUDED #define SGE_INPUT_JOYPAD_EVENT_BASE_HPP_INCLUDED ...
#include "fundot/fundot.h" namespace fundot { class Printer::Impl { public: std::ostream& print(const Object& object, std::ostream& os) const; }; std::ostream& operator<<(std::ostream& os, const Boolean& boolean) { return os << std::boolalpha << boolean.value << std::noboolalpha; } std::ostream& operator<<(...
// ------------------------------------------------------------------------ // // Copyright 2021 SPTK Working Group // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // y...
//============================================================================ // Copyright (c) Kitware, Inc. // All rights reserved. // See LICENSE.txt for details. // // This software is distributed WITHOUT ANY WARRANTY; without even // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR // PURP...
#include "importers/state_machine_importer.hpp" #include "animation/state_machine.hpp" using namespace rive; StateMachineImporter::StateMachineImporter(StateMachine* machine) : m_StateMachine(machine) { } void StateMachineImporter::addLayer(StateMachineLayer* layer) { m_StateMachine->addLayer(layer); } void St...
/****************************************************************************** * * * metapath - The universal Explorer-like Plugin * * DropSource.cpp * OLE drop source functionality * * See Readme.txt for more information about this source code. * Please send me your comments to this work. * * See License.txt for de...
/* Copyright 2017 R. Thomas * Copyright 2017 Quarkslab * * 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 2017 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) **/ //====================================...
#include "easytool.h" /* * @breif 将16进制字符串转换为对应的字节序列 */ QByteArray EasyTool::HexStringToByteArray(QString HexString) { bool ok; QByteArray ret; HexString = HexString.trimmed(); HexString = HexString.simplified(); QStringList sl = HexString.split(" "); foreach (QString s, sl) { if(!...
// Copyright Carl Philipp Reh 2006 - 2019. // 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 <sge/cegui/impl/log_name.hpp> #include <fcppt/text.hpp> #include <fcppt/log/name.hpp> fcp...
// Copyright 2015-2019 Carnegie Mellon University. See LICENSE file for terms. #include <atomic> #include <boost/format.hpp> #include <boost/optional.hpp> #include <rose.h> #include <AstTraversal.h> // For isNOP(). #include <sageInterfaceAsm.h> #include <BinaryUnparser.h> #include <BinaryUnparserBase.h> #include ...
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Electronic Arts Inc. All rights reserved. /////////////////////////////////////////////////////////////////////////////// #include <eathread/eathread_callstack.h> #include <stdlib.h> #if defined(EA_PLATFORM_UNIX) || defi...
/* Copyright (c) 2012, 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 in the hope t...
/*----------------------------------------------------------------------- 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 ...
//%LICENSE//////////////////////////////////////////////////////////////// // // Licensed to The Open Group (TOG) under one or more contributor license // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with // this work for additional information regarding copyright ownership. // Each contributor lice...
/* * Copyright (c) 2021, Federico Guerinoni <guerinoni.federico@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include "ToDoEntriesWidget.h" #include "HackStudio.h" #include "ToDoEntries.h" #include <LibGUI/BoxLayout.h> #include <LibGfx/FontDatabase.h> namespace HackStudio { class ToDoEntriesModel fina...
/* * Copyright 2017 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...
#include <tdp/utils/file.h> #include <sstream> #include <pangolin/utils/file_utils.h> namespace tdp { std::string MakeUniqueFilename(const std::string& filename) { if(pangolin::FileExists(filename) ) { const size_t dot = filename.find_last_of('.'); std::string fn; std::string ext; if(...
/** * Copyright (C) 2021 All rights reserved. * * FileName :result.cpp * Author :C.K * Email :theck17@163.com * DateTime :2021-03-19 19:52:27 * Description : */ #include <algorithm> //STL 通用算法 #include <string> //字符串类 #include <vector> //STL 动态数组容器...
#pragma once #include <vector> namespace sstd{ template <class T> using vec = std::vector<T>; template <class T> using vvec = std::vector<std::vector<T>>; }
/**********************************************************************/ /** Microsoft Windows/NT **/ /** Copyright(c) Microsoft Corp., 1991 **/ /**********************************************************************/ /* ENUMNODE.CXX ...
/* Copyright (c) 2005-2017, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
#include <bits/stdc++.h> using namespace std; //Filename: Leetcode1771.cpp // //Author: dezhonger - csdisassembly@gmail.com //Create: 2021-04-03 13:59:50 const int N = 1010; int f[N][N]; int f2[N][N]; int f3[N][N]; class Solution { public: void cal(string s, int f[][N]) { int n = s.size(); for (...
/*============================================================================= 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 un...
/* * 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...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2017 - ROLI Ltd. JUCE is an open source library subject to commercial or open-source licensing. The code included in this file is provided under the terms of the ISC...
// ------------------------------------------------------------------------------------------------- // Copyright 2017 - NumScale SAS // // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE.txt or copy at // ...
// @HEADER // *********************************************************************** // // Panzer: A partial differential equation assembly // engine for strongly coupled complex multiphysics systems // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85...
#include "envoy/config/accesslog/v2/als.pb.h" #include "envoy/service/accesslog/v2/als.pb.h" #include "common/buffer/zero_copy_input_stream_impl.h" #include "common/common/version.h" #include "common/grpc/codec.h" #include "common/grpc/common.h" #include "test/common/grpc/grpc_client_integration.h" #include "test/int...
/**************************************************************************** Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation file...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Bastoji 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_CONFIG_H) #include "config/bastoji-config.h" #endif ...
// Intermediate representations #include "taichi/ir/ir.h" #include "taichi/ir/transforms.h" #include "taichi/ir/analysis.h" #include <numeric> #include <thread> #include <unordered_map> #include "taichi/ir/frontend.h" #include "taichi/ir/statements.h" TLANG_NAMESPACE_BEGIN #define TI_EXPRESSION_IMPLEMENTATION #inc...
#pragma once #include "../util/AndroidRuntimeException.hpp" class JString; namespace android::content { class ReceiverCallNotAllowedException : public android::util::AndroidRuntimeException { public: // Fields // QJniObject forward template<typename ...Ts> explicit ReceiverCallNotAllowedException(const c...
// 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/browser/chromeos/accessibility/accessibility_manager.h" #include <stddef.h> #include <stdint.h> #include <memory> #include <utility...
/* Copyright 2020 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...
#include "LocalHeadPosTask.hpp" #include <Configuration.h> #include <Dynamics/FloatingBaseModel.h> #include <Dynamics/Quadruped.h> #include <Math/orientation_tools.h> #include <Utilities/Utilities_print.h> template <typename T> LocalHeadPosTask<T>::LocalHeadPosTask(const FloatingBaseModel<T>* robot) : Task<T>(3),...
// Created 2014-2016 Vladimir Alyamkin. MIT license #include "VaOceanShaders.h" #include "VaOceanPluginPrivatePCH.h" IMPLEMENT_SHADER_TYPE(, FUpdateSpectrumCS, TEXT("/Plugin/VaOceanPlugin/Private/VaOcean_CS.usf"), TEXT("UpdateSpectrumCS"), SF_Compute); IMPLEMENT_SHADER_TYPE(, FRadix008A_CS, TEXT("/Plugin/VaOceanPlugi...
#include "../common/sphere_library/sstringobjs.h" #include "../common/assertion.h" #include "../common/CLog.h" #include "CWorld.h" #include "CSectorList.h" CSectorList::CSectorList() : _SectorData{} { _fInitialized = false; } CSectorList::~CSectorList() { Close(); } const CSectorList* CSectorList::Get() noexcept /...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * Copyright (c) 2021 Kohei Yoshida * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated document...
#include <eigen3/Eigen/Dense> #include <cassert> using Eigen::MatrixXf; int main(void) { MatrixXf m(1, 1); m(0, 0) = 1.0; assert(m(0, 0) == 1.0); return 0; }
#ifndef TIMER_HH_ #define TIMER_HH_ #include <ctime> namespace biu { /** * Timer class to measure runtime in milliseconds. * * @author Martin Mann <mmann@@informatik.uni-freiburg.de> */ class Timer { private: //! starting time clock_t t0; public: //! Sets starting time. void start(vo...
/* Copyright (C) 2012-2014 Soomla Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkCanvas.h" #include "include/core/SkSpan.h" #include "include/core/SkSurface.h" #include "include/gpu/GrDirectContext.h" #include "src/gpu/ganesh/GrDir...
// // Copyright 1999-2002 Jeff Bush // // 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<iostream> using namespace std; class num { int n,i,r,j,flag; public: void getdata() { cout<<"enter a number :"; cin>>n; } void loop() { for(i=1;i<=n;i++) if(prime(i)==1) cout<...
/* * Copyright (c) 2006-2007 Erin Catto http://www.gphysics.com * * 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, ...
#include<iostream> using namespace std; void heapify(int element[],int number,int index) { int parent=index; int left=2*index+1; int right=2*index+2; int temp; if(left<number&&element[left]>element[parent]) { parent=left; } if(right<number&&element[right]>element[parent]) { ...
/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include <tuple> #include <unordered_set> #include <functional> #include <lean/interrupt.h> #include <lean/buffer.h> #include "library/max_sharing.h" names...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
#include "sticking.hpp" #include <cmath> namespace dynamics { Sticking::Sticking(const Parameters &parameters):phase_converter(parameters.get_forcing_frequency()) { if (1 <= parameters.get_obstacle_offset()) { // No sticking phase_in = 0; phase_out = 0; } else if (-1 >= parameters.get_obstacle_offset() ||...
#include "js.h" #include <sstream> #include <GLFW/glfw3.h> #include <v8/include/libplatform/libplatform.h> #if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" #endif #include <v8/src/debug/debug-interface.h> #if defined(__clang__) #pragma clang diagnost...
//================================================================================================== /*! @file @copyright 2016 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //===========================...
/*@ XOC Release License Copyright (c) 2013-2014, Alibaba Group, All rights reserved. compiler@aliexpress.com 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 c...
// 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 "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #...
#include <stdlib.h> #if 0 # include <assert.h> #else # define assert(x) #endif #include <string.h> #include <inttypes.h> #include <stdio.h> #include <unistd.h> #include <math.h> #include <time.h> #include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h> #include <fstream> #include <algorithm> #include <stdexcept> ...
#include "moja/flint/compositetransform.h" #include "moja/flint/flintexceptions.h" #include "moja/flint/ilandunitcontroller.h" #include "moja/flint/ivariable.h" #include <boost/algorithm/string.hpp> namespace moja { namespace flint { void CompositeTransform::configure(DynamicObject config, const ILandUnitController...
// 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/power_monitor/power_monitor_device_source.h" #include "base/message_loop/message_loop_current.h" #include "base/power_monitor/power_monito...
/* The following is a summary of the licenses involved in this project. Please also refer to the LICENSE folder in this github repository for full licensing information. LICENSE SUMMARY: ------------------------------------------ BSD License applies to: - ros, Copyright (c) 2008, Willow Garage, Inc. - st...