text
stringlengths
7
961k
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. #ifndef GUARD_NEURALNET_SUBGRAPHOP_HPP #define GUARD_NEURALNET_SUBGRAPHOP_HPP #include <popart/op.hpp> #include <popart/transforms/autodiff/calledgraphgradophelper.hpp> namespace popart { class SubgraphOp : public Op { public: static bool existsInBodyInputs...
// Generated from /POI/java/org/apache/poi/sl/draw/DrawPaint.java #pragma once #include <java/awt/fwd-POI.hpp> #include <org/apache/poi/sl/draw/fwd-POI.hpp> #include <org/apache/poi/sl/usermodel/fwd-POI.hpp> #include <java/lang/Object.hpp> #include <org/apache/poi/sl/usermodel/PaintStyle_SolidPaint.hpp> struct defau...
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2020 Ryo Suzuki // Copyright (c) 2016-2020 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # include <Siv3D/ParseFloat.hpp> # include <Si...
#include <torch/csrc/jit/tensorexpr/ir_cloner.h> #include <torch/csrc/jit/tensorexpr/ir.h> #include <torch/csrc/jit/tensorexpr/ir_simplifier.h> #include <torch/csrc/jit/tensorexpr/reduction.h> #include <c10/util/irange.h> namespace torch { namespace jit { namespace tensorexpr { template <typename Op> static ExprPtr...
/******************************************************************************* * This file was auto-generated using the AutoGemm.py python script. * DO NOT modify this file! Instead, make changes to scripts in * clBLAS/src/library/blas/AutoGemm/ then re-generate files * (otherwise local changes will be lost a...
/*************************************************************************/ /* vector2.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/*========================================================================= Program: Visualization Toolkit Module: vtkPlotEdges.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 is dis...
#include <iostream> #include <foxspace/checks.hpp> #include <foxspace/file.hpp> int main() { std::cout << "Your local user config directory: " << Fox::get_user_config_folder() << '\n'; std::cout << "Directory inside of your local user config dir: " << Fox::get_user_config_folder("f...
// Copyright (c) 2011 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/sys_info.h" #include "base/basictypes.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/lazy_instance.h" #incl...
#include <Databases/DatabaseWithDictionaries.h> #include <Common/StatusInfo.h> #include <Common/ExternalLoaderStatus.h> #include <Interpreters/ExternalDictionariesLoader.h> #include <Interpreters/ExternalLoaderTempConfigRepository.h> #include <Interpreters/ExternalLoaderDatabaseConfigRepository.h> #include <Dictionarie...
/* * 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 "include/core/SkBitmap.h" #include "include/core/SkCanvas.h" #include "include/core/SkPoint3.h" #include "include/core/SkTypes.h" #include "include/effects/SkImageFil...
#include "ParticleSystem.h" #include "Emiter.h" #include "Particle.h" ParticleSystem::ParticleSystem() : j1Entity(entityType::NO_TYPE) { position = { 0, 0 }; active = true; } ParticleSystem::ParticleSystem(float x, float y) : j1Entity(entityType::NO_TYPE) { position = { x, y }; active = true; } ParticleSystem...
#include "masterproblem.ih" #include <sstream> /* * Define all first-stage contraints. */ void MasterProblem::createFirstStageConstraints() { std::ostringstream oss; IloInt nbORs = d_params.nbORs; IloInt nbSurgeries = d_params.nbSurgeries; // Surgery should be assigned to open OR for (IloInt operat...
/* This is the source file of SD class of FCal Author: Zhaoyuan Cui (Maxwell) Edited by Anson Kost with the help of Professor John Rutherfoord, May 2019. */ #include "FCalEmCalorimeterHit.hh" #include "FCalEmCalorimeterSD.hh" #include "FCalAnalysis.hh" #include "G4HCofThisEvent.hh" #include "G4Step.hh" #include "G4...
#include "SceneRenderFactory.h" #include "Renderer/IGPUBufferArray.h" #include "Resources/Mesh.h" #include "Resources/Material.h" #include "Memory/Handle.h" #include "SceneRenderer/RenderInfo/MeshRenderInfo.h" #include "SceneRenderer/RenderInfo/SkinMeshRenderInfo.h" #include "ResourceManagers/ShaderManager.h" namesp...
#include "pch.h" #include "GameEngineImpl.h" namespace Graphics { extern EnumVar DebugZoom; } ExpVar m_SunLightIntensity("Application/Sun Intensity", 4.0f, 0.0f, 16.0f, 0.25f); NumVar m_SunOrientation("Application/Sun Orientation", -0.5f, -100.0f, 100.0f, 0.1f); NumVar m_SunInclination("Application/Sun Inclination"...
/*! @file Defines `boost::hana::detail::unpack_flatten`. @copyright Louis Dionne 2013-2016 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_HANA_DETAIL_UNPACK_FLATTEN_HPP #define BOOST_HANA_DETAIL_UNPACK_FLATTEN...
#pragma once #include "Record.hpp" namespace oless { namespace excel { namespace records { class Excel9FileRecord : public Record { public: Excel9FileRecord(unsigned short type, std::vector<uint8_t> data) : Record(type, data) { } }; } } }
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__strdup_delete_char_15.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__strdup_delete.label.xml Template File: sources-sinks-15.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routi...
// // ProcessesTestSuite.cpp // // Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. // and Contributors. // // SPDX-License-Identifier: BSL-1.0 // #include "ProcessesTestSuite.h" #include "ProcessTest.h" #include "NamedMutexTest.h" #include "NamedEventTest.h" #include "SharedMemoryTest.h" Cpp...
// Copyright (c) 2015-2018 LG Electronics, 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...
#include<iostream> #include<cmath> #include<stack> using namespace std; class Node { public: int data; Node* next; }; Node* head = new Node; Node* second = new Node; void create(int A[], int n) { Node* temp; Node* tail; head->data = A[0]; head->next = nullptr; tail = head; for(int ...
#include "tcg.hpp" #include "audio.hpp" #include "config/config.hpp" #include "ctrl_file.hpp" #include "data/types/type_asset.hpp" #include "draw.hpp" #include "elona.hpp" #include "filesystem.hpp" #include "i18n.hpp" #include "input.hpp" #include "input_prompt.hpp" #include "macro.hpp" #include "random.hpp" namespace...
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2001, 2002, 2003 Sadruddin Rejeb 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 redistr...
// Copyright (c) 2020 Tom Hancocks // // 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, ...
/** \page dg_tutorial_inverted_pendulum_python Python module \section dg_tutorial_inverted_pendulum_python_intro Introduction Generating python bindings for new Entity classes is straightforward. We only need to add the following lines into file <c>src/CMakeLists.txt</c>: <code> DYNAMIC_GRAPH_PYTHON_MODULE("tutorial...
/* * Copyright (c) 2018-2019, The Mybtcfx Developers. * Portions Copyright (c) 2012-2017, The CryptoNote Developers, The Bytecoin Developers. * * This file is part of 4xBIT. * * This file is subject to the terms and conditions defined in the * file 'LICENSE', which is part of this source code package. */ #incl...
/** * @file mysqlmon_detect_standalone_master.cpp MySQL Monitor Standalone Master Test * - block all nodes, but one * - wait for monitor (monitor_interval), monitor should select remaining node as master * - check that queries work * - unblock backend nodes * - wait for monitor * - check that monitor is still us...
/* * 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 ...
#include "../../include/FileHandling/FileParser.h" #include <algorithm> #include <iostream> FileParser::FileParser(){ } FileParser& FileParser::instance(){ static FileParser *instance = new FileParser(); return *instance; } void FileParser::ParseFile(File& f){ FileMetadata metaData(f.fullPath); GetFi...
/* * Copyright (C) 2017 Google 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 agree...
/* * 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; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be use...
/* * 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 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 /// #include <eagine/math/scalar.hpp> #define BOOST_TEST_MODULE EAGINE_math_scalar #include "../unit_test_begin.inl" BOOST_AUTO_TES...
/*========================================================================= Program: Visualization Toolkit Module: vtkOTDensityMap.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 ...
#include <iostream> class Solution { public: bool canWinNim(int n) { return n % 4; } }; int main() { return 0; }
// // KeyStore.cc // // Copyright (c) 2014 Couchbase, Inc 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 // // Unles...
// 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 "chrome/browser/apps/platform_apps/api/browser/browser_api.h" #include <memory> #include <string> #include "chrome/browser/extensions/extension...
#ifndef GAMELOGIC_BOARD_HPP #define GAMELOGIC_BOARD_HPP #include <vector> namespace GameLogic { class CellSet; /** * Provides a basic game board (grid) and methods to add/remove tokens on the board. * * When creating a board it is necessary to specify the dimensions and a value which represents an * empty cell....
#include "stdafx.h" #include "LoggerBridge.h" using namespace System; using namespace System::Runtime::InteropServices; LoggerBridge::LoggerBridge(ManagedTools::IManagedLogger^ managedLogger) { ManagedTools::FileLogger::WriteLine("Unmanaged object created in domain: " + AppDomain::CurrentDomain->FriendlyName + " (" ...
#include <cmath> #include "tire_models.h" #include "mpc_types.h" #include "utilities.h" /* returns fy according to the fiala tire model */ double fiala(double alpha_rad, double Ca_Nprad, double mu, double fx_N, double fz_N) { double tanAlpha = std::tan(alpha_rad); double fy_max_N = calc_fy_max(mu, fx_N, fz_N)...
/* * Copyright (c) 2018 ARM Limited. * * SPDX-License-Identifier: MIT * * 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 ...
// Copyright (c) 2017 The Chromium Embedded Framework 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 was generated by the CEF translato...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/compute-optimizer/model/AccountEnrollmentStatus.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; nam...
#include "AST.h" #define IfNullThenReturn(ptr) if(!ptr)return nullptr; using namespace tutorial; using namespace llvm; LLVMContext theContext; std::unique_ptr<Module> theModule; std::unique_ptr<KaleidoscopeJIT> theJIT; std::unique_ptr<legacy::FunctionPassManager> theFPM; std::map<std::string, std::unique_ptr<tutorial...
// cref.cc -- cross reference for gold // Copyright (C) 2008-2021 Free Software Foundation, Inc. // Written by Ian Lance Taylor <iant@google.com>. // This file is part of gold. // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published...
#include "base-object-inl.h" #include "inspector_agent.h" #include "inspector_io.h" #include "node_internals.h" #include "v8.h" #include "v8-inspector.h" namespace node { namespace inspector { namespace { using v8::Context; using v8::Function; using v8::FunctionCallbackInfo; using v8::FunctionTemplate; using v8::Hand...
#include <boost/python.hpp> #include "pyspk_main.hpp" BOOST_PYTHON_MODULE(_pyspk) { //Registering class definitions //Attention: base class must be registered prior to derived class. if not, a runtime error will occur. //各クラス定義の登録を実行 //注意: 基底クラスは先に登録しないと実行時エラー //Core init_SPK_DEF_h(); init_SPK_Registerable_h(...
// Copyright (c) 2014-2018, The Monero Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, this list o...
/* * Portions Copyright (c) Huawei Technologies Co., Ltd. 2021. * Portions Copyright (c) 2010-2012, PostgreSQL Global Development Group * * subscription_walreceiver.cpp * * Description: This file contains the subscription-specific parts of apply worker. * * IDENTIFICATION * src/gausskernel/storage/replicatio...
/////////////////////////////////////////////////////////////////////////////// // File: DDMuonAngular.cc // Description: Position inside the mother according to (eta,phi) /////////////////////////////////////////////////////////////////////////////// #include <cmath> #include <algorithm> #include "FWCore/MessageLog...
#include "D3D11TextureSamplerState.hpp" #include <Graphics/Components/D3D11/Device/D3D11Device.hpp> #define D3D11SetSamplers(SHADER) [=](UINT unit){ Device::getDeviceContext()->SHADER##SetSamplers(unit, 1, cpD3DSampler.GetAddressOf()); } namespace cg { namespace d3d11 { TextureSamplerState::TextureSampler...
/* * Copyright 2019-2020 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...
/* * 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 ...
/* * Raw3DRelativeMouseInput.cpp * * Copyright (C) 2011 by Universitaet Stuttgart (VISUS). * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "View3DSpaceMouse.h" #include "Raw3DRelativeMouseInput.h" #include "vislib/assert.h" #include "vislib/sys/Log.h" #include "vislib/StringConverter.h" #include "vis...
/* Copyright (c) 2006-2020, Universities Space Research Association (USRA). * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright ...
// Copyright 2021 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 <lib/arch/x86/descriptor-regs.h> #include <lib/arch/x86/descriptor.h> #include <phys/arch.h> namespace { // System-wid...
#ifndef SUBEVENT_UDP_INL #define SUBEVENT_UDP_INL #include <cassert> #include <subevent/network.hpp> #include <subevent/udp.hpp> #include <subevent/thread.hpp> #include <subevent/socket.hpp> #include <subevent/socket_controller.hpp> SEV_NS_BEGIN //--------------------------------------------------------------------...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2017-2019 The ALQO & Bitfineon developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "recentrequ...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ #include "faiss_wrapper.h...
// Boost.Units - A C++ library for zero-overhead dimensional analysis and // unit/quantity manipulation and conversion // // Copyright (C) 2003-2008 Matthias Christian Schabel // Copyright (C) 2008 Steven Watanabe // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.tx...
/* * A Bedrock Implementation * Nana C++ Library(http://www.nanapro.org) * Copyright(C) 2003-2018 Jinhao(cnjinhao@hotmail.com) * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://nanapro.sourceforge.net/LICENSE_1_0.txt) * * @file: nana/gui...
#include "stdafx.h" #include "traprcvr.h" #include "MibLoadStatus.h" #include "MibParser.h" #include "MibDb.h" extern MibDb gDb; MibLoadStatus::MibLoadStatus(CWnd* pParent) :CDialog(MibLoadStatus::IDD, pParent), mStatus(FALSE), mOtherList(NULL), mSizeInitialized(FALSE) { //{{AF...
//=---------------------------------------------------------------------= // // This file was GENERATED for the AAF SDK // // $Id$ $Name$ // // The contents of this file are subject to the AAF SDK Public Source // License Agreement Version 2.0 (the "License"); You may not use this // file except in compliance with the ...
/* ** Make sure we don't have duplicated symbols by compiling a pair of objects ** and linking them */ #include <iostream> #include <iomanip> #include "Tunings.h" double symbolcheck2() { auto k = Tunings::tuneNoteTo(60, 200); return k.tuningFrequency; } int main(int argc, char **argv) { extern double sym...
/* __ _____ _____ _____ __| | __| | | | JSON for Modern C++ | | |__ | | | | | | version 3.9.1 |_____|_____|_____|_|___| https://github.com/nlohmann/json Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2013-2019 Niels Lohmann <http:/...
// 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 <algorithm> #include <list> #include <map> #include "base/strings/utf_string_conversions.h" #include "chrome/browser/chrome_notification_typ...
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * 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. */ #include <proxygen/lib/http/session/test/HQUpstreamSessionTest.h> #include <proxygen/lib/http/code...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE401_Memory_Leak__char_realloc_72b.cpp Label Definition File: CWE401_Memory_Leak.c.label.xml Template File: sources-sinks-72b.tmpl.cpp */ /* * @description * CWE: 401 Memory Leak * BadSource: realloc Allocate data using realloc() * GoodSource: Allocate data on the sta...
#include <QtCore/QtCore> #include <QtWidgets> #include "PreviewWindow.hpp" #include "ShapePainter.hpp" #include "MainWindow.hpp" #include "CoreProfileContext.hpp" #include "primitives/TriangleMesh.hpp" #include "cameras/Camera.hpp" #include "opengl/OpenGL.hpp" #include "opengl/MatrixStack.hpp" #include "io/FileUti...
// 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 "services/preferences/tracked/tracked_atomic_preference.h" #include "base/values.h" #include "services/preferences/public/mojom/tracked_preferen...
#include <cstdio> #include <exception> #include <iostream> //#include "ConnectedComponent/Interface/ConnectedComponent.h" #include "ConnectedComponent/CPU/ConnectedComponent_CPU.h" #include "ConnectedComponent/CUDA/ConnectedComponent_CUDA.h" //#include "ConnectedComponent.h" #include <vector> #include <gtest/gtest.h> ...
//--------------------------------------------------------- // Copyright 2016 Ontario Institute for Cancer Research // Written by Jared Simpson (jared.simpson@oicr.on.ca) //--------------------------------------------------------- // // nanopolish_train_poremodel_from_basecalls - train a // new pore model from the FAS...
/* * Copyright 2017 MapD Technologies, 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 o...
/* Description: This is the first version of the software. Author Sahib Athwal sahibathwal@gmail.com Sepcial Thanks @javidx9 For ideas and skeleton on impelemntating this software. */ #include <list> #include <iostream> #include <algorithm> using namespace std; #define FTYPE double #include "olcNoiseMake...
/* * KdTree.cpp * RVO2 Library * * Copyright 2008 University of North Carolina at Chapel Hill * * 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/...
/* * Copyright (c) 2020, Systems Group, ETH Zurich * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list...
/********************* */ /*! \file arith_rewriter.cpp ** \verbatim ** Original author: Tim King ** Major contributors: Morgan Deters ** Minor contributors (to current version): Dejan Jovanovic ** This file is part of the CVC4 project. ** Copyright (c) 2009-2...
// dear imgui, v1.83 WIP // (widgets code) /* Index of this file: // [SECTION] Forward Declarations // [SECTION] Widgets: Text, etc. // [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.) // [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.) /...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; class TheBoringGameDivTwo { public: vector <int> find(int SA, int KA, int SB, int KB, int SF, int KF) { if (KF-SA-SB != KA+KB-SF) { ...
/* Copyright 2010 Antonie Jovanoski * * 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) 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 "aboutdialog.h" #include "ui_aboutdialog.h" #include "clientmodel.h" #include "clientversion.h" // Copyright year (...
// Copyright (c) 2011-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. #if defined(HAVE_CONFIG_H) #include "config/bitcoin-config.h" #endif #include "askpassphrasedialog.h" #include "ui_askpassph...
/********************************************************************* Copyright (c) 2018 Audi Autonomous Driving Cup. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code ...
/* ========================================================================= * * * * OpenMesh * * Copyright (c) 2001-2015, RWTH-Aachen University * * ...
// Copyright 2008 and onwards Google Inc. All rights reserved. // // The following only applies to changes made to this file as part of YugaByte development. // // Portions Copyright (c) YugaByte, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except // in complian...
// Copyright 2017 The Ray 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 to i...
/* * (C) Copyright 2017-2020 Ryan Honeyager (ryan@honeyager.info) * (C) Copyright 2020-2021 UCAR * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ /*! \addtogroup ioda_internals_engines_hh * * @{ * \file HH-...
// 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 "src/media/audio/audio_core/reporter.h" #include <lib/syslog/cpp/macros.h> #include <queue> #include "src/media/audio/audio_core/audio_driver.h" #...
// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in bin...
#include <memory> #include "source/common/access_log/access_log_manager_impl.h" #include "source/common/filesystem/file_shared_impl.h" #include "test/common/stats/stat_test_utility.h" #include "test/mocks/access_log/mocks.h" #include "test/mocks/api/mocks.h" #include "test/mocks/event/mocks.h" #include "test/mocks/fi...
/* EDITABLE TERRAIN MANAGER for Ogre Copyright (C) 2007 Holger Frydrych <h.frydrych@gmx.de> 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; either version 2 of the License, or (at your option) any l...
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "BsGLGpuBuffer.h" #include "Debug/BsDebug.h" #include "Profil...
#include "onlinetranslator.h" #include <QList> #include <QStringList> QString OnlineTranslator::encodeURL(QString const &content) { return QString::fromStdString(QUrl::toPercentEncoding(content).toStdString()); } QString OnlineTranslator::encodeParams(QMap<QString, QString> const &params) { auto list = QList<QSt...
/********** 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 by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This librar...
/** * @file string_methods.cpp * * @brief often used methods for string-operations * * @author Tobias Anker <tobias.anker@kitsunemimi.moe> * * @copyright MIT License */ #include <libKitsunemimiCommon/common_methods/string_methods.h> namespace Kitsunemimi { /** * @brief sptrit a string at...
// generated from rosidl_generator_cpp/resource/msg__traits.hpp.em // generated code does not contain a copyright notice #ifndef LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES__REQUEST__TRAITS_HPP_ #define LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES__REQUEST__TRAITS_HPP_ #include <stdint.h> #include <type_traits> namespace...
/** * Tencent is pleased to support the open source community by making Tars available. * * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except * in compliance with the License. You may obtain a ...
//============================================================================| // _______ _________ _______ _______ | // ( ____ \\__ __/|\ /|( ____ \( ____ ) | // | ( \/ ) ( | ) ( || ( \/| ( )| | ...
/*************************************************************************/ /* rasterizer_canvas_gles3.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...