text
stringlengths
5
1.04M
// Copyright 2011 the V8 project authors. 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 // notice, this list of ...
#include "leetcode.hpp" /* 1625. 执行操作后字典序最小的字符串 给你一个字符串 s 以及两个整数 a 和 b 。 其中,字符串 s 的长度为偶数,且仅由数字 0 到 9 组成。 你可以在 s 上按任意顺序多次执行下面两个操作之一: 累加: 将 a 加到 s 中所有下标为奇数的元素上(下标从 0 开始)。 数字一旦超过 9 就会变成 0,如此循环往复。 例如,s = "3456" 且 a = 5,则执行此操作后 s 变成 "3951"。 轮转: 将 s 向右轮转 b 位。 例如,s = "3456" 且 b = 1,则执行此操作后 s 变成 "6345"。 请你返回在 s 上执行上述...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2019-2020 The ZNN developers // Copyright (c) 2021-2022 The FunCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-...
/*! @file */ #include "StdAfx.h" #include "CNative.h" //! 空っぽにする void CNative::Clear() { this->_GetMemory()->_SetRawLength(0); }
#include "duckdb/common/operator/subtract.hpp" #include "duckdb/common/operator/add.hpp" #include "duckdb/common/limits.hpp" #include "duckdb/common/types/value.hpp" #include "duckdb/common/types/interval.hpp" #include "duckdb/common/types/hugeint.hpp" #include <limits> using namespace std; namespace duckdb { //=...
// // Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com) // // 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) // // Official repository: https://github.com/boostorg/beast // //------------------...
#include <vector> #include <string> class Car { public: Car (const std::string& mark, const std::string& number, int fuel, int engineVolume, int speed): m_mark(mark), m_number(number), m_fuel(fuel), m_engineVolume (engineVolume), m_speed(speed) {} std::string get...
#include "BehaviourCreator.h" #include "ConditionCreator.h" #include "ConstraintCreator.h" #include <alica_tests/ConstraintTestPlanDummySolver.h> #include <alica_tests/TestWorldModel.h> #include "UtilityFunctionCreator.h" #include <communication/AlicaDummyCommunication.h> #include <engine/AlicaClock.h> #include <engin...
/* * Copyright 2012 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 agreed to...
// 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.Collections.Generic.I...
// 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 "mbr-device.h" #include <fuchsia/hardware/block/c/banjo.h> #include <fuchsia/hardware/block/partition/c/banjo.h> #include <inttypes.h> #include <...
// -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- // // Vector.cpp: Rcpp R/C++ interface class library -- Vector unit tests // // Copyright (C) 2012 - 2015 Dirk Eddelbuettel and Romain Francois // // This file is part of Rcpp. // // Rcpp is free software: you can redistribute it and/...
// 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 "frame.h" #include <zxtest/zxtest.h> #include <vector> #include "fcs.h" namespace { TEST(FrameTestCase, SerializeFrameEmpty) { const std::v...
/*! * \copyright Copyright (c) 2018 Governikus GmbH & Co. KG, Germany */ #include "DiagnosisItem.h" using namespace governikus; DiagnosisItem::DiagnosisItem(const QString& pText) : QObject() , QEnableSharedFromThis() , mText(pText) , mChildren() { } const QString& DiagnosisItem::getText() const { return mTe...
#include <bits/stdc++.h> #define vi vector<int> #define pi pair<int,int> #define vii vector<pi> #define ll long long using namespace std; int main() { #ifndef ONLINE_JUDGE freopen("/home/shiva/Learning/1.txt", "r", stdin); freopen("/home/shiva/Learning/2.txt", "w", stdout); #endif ios::sync_with_stdio(false); cin.ti...
/* Copyright (c) 2019 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "base/Base.h" #include "graph/FetchVerticesExecutor.h" #include "meta/SchemaProviderIf.h" #include "dataman/Sch...
//===-- AMDGPUSubtarget.cpp - AMDGPU Subtarget Information ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/*++ Copyright (c) 1995-1996 Microsoft Corporation Module Name : Context.cxx Abstract: The file contains the implementation of the Context object. A context job is an object which stored in the logging request queue. Author: Terence Kwan ( terryk ) ...
/* * * Copyright (c) 2021 Project CHIP 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...
/* ///////////////////////////////////////////////////////////////////////// * File: test/scratch/test.scratch.be.speech/test.scratch.be.speech.cpp * * Purpose: C++ example program for Pantheios. Demonstrates: * * - use of custom severity level information for tabbing output * ...
#include<bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n; cin >> n; long long dp[n + 1]; bool vis[n + 1]; memset(vis, false, sizeof(0)); function<long long(int)> fibo = [&](int n) { auto &ans = dp[n]; auto &seen = vis[n]; if (!...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
/* Copyright (C) Renata P. Baptista & Vinicius M. de Pinho - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by: Renata P. Baptista <rpbaptista@poli.ufrj.br * Vinicius M. de Pinho <viniciusmesquita@poli.ufrj.br> * * Dec...
/* * Copyright 2019 The Project Oak 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 o...
#ifndef AETHER_BOX_HPP #define AETHER_BOX_HPP #include "Aether/base/Texture.hpp" namespace Aether { /** * @brief A Box is a rectangle outline with no fill. * @note This element can not have the texture generation deferred yet! */ class Box : public Texture { private: /** @br...
#pragma once #include <memory> namespace krakoa { template<typename T> using Multi_Ptr = std::shared_ptr<T>; template<typename T> using Weak_Ptr = std::weak_ptr<T>; template<typename T> using Solo_Ptr = std::unique_ptr<T>; template<typename T, typename ...Ts, class = std::enable_if_t<std::is_construct...
/* * Independent parallel updates benchmark * for various containers */ #include "../bench.h" #include <libdash.h> #include <dash/Coarray.h> #include <array> #include <vector> #include <deque> #include <iostream> #include <iomanip> #include <unistd.h> using namespace std; #ifndef TYPE #define TYPE int #endif typ...
#include "pch.h" #include "Rtp.h" #include <sodium.h> namespace winrt::Unicord::Universal::Voice::Interop { void Rtp::EncodeHeader(uint16_t sequence, uint32_t timestamp, uint32_t ssrc, gsl::span<uint8_t> target) { if (target.size() < HEADER_SIZE) { throw hresult_invalid_argument(); ...
/* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retain...
#include "Vector3.h" #include "CornDirectX.h" #include <cmath> #include <algorithm> #include <iterator> Vector3::Vector3(const nlohmann::json& vectorJson) { x = vectorJson[0].get<float>(); y = vectorJson[1].get<float>(); z = vectorJson[2].get<float>(); } Vector3::Vector3(float x, float y, float z) { this->x = x; ...
/* * Copyright (c) 2018 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2025-05-25 * * On the date above, in accordance with the Business Source License, use * of this software will be g...
#include <cstdint> #include <iomanip> #include <iostream> #include <random> #include <string> #include <vector> #include "tuner_api.h" #if defined(_MSC_VER) const std::string kernelFilePrefix = ""; #else const std::string kernelFilePrefix = "../"; #endif #if KTT_CUDA_EXAMPLE const std::string defaultKerne...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
#include <iostream> #include <vector> using namespace std; int knapsack01(int *weight, int *prices, int n, int c) { // base case: if (n == 0 || c == 0) return 0; // recursive case: int inc = 0, exc = 0; // if we include the last item if (weight[n - 1] <= c) inc = prices[n - 1] ...
#include <algorithm> #include <cassert> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <iostream> #include <sstream> #include <string> #include <vector> using namespace std; int m, n; const int mod = 1000000009; int choose[51][51]; long long fastexp(long long n, long long k) { ...
//================================================================================================== /** EVE - Expressive Vector Engine Copyright : EVE Contributors & Maintainers SPDX-License-Identifier: MIT **/ //================================================================================================== #...
#include "pch.h" #include "RHICommandList.h" RHICommandListExecutor gRHICommandList; RHICommandListImmediate& RHICommandListExecutor::GetImmediateCommandList() { return gRHICommandList.ImmediateCommandList; }
#include <ast/AssertStatementNode.h> using namespace PythonCoreNative::RunTime::Parser::AST; using namespace PythonCoreNative::RunTime::Parser; AssertStatementNode::AssertStatementNode( unsigned int start, unsigned int end, std::shared_ptr<Token> op1, ...
#include <H4l/OverlapRemoval.h> #include "xAODEgamma/ElectronxAODHelpers.h" #include <iostream> #include <TVector2.h> using namespace std; void OverlapRemoval::applyOverlapRemoval( xAOD::ElectronContainer *m_el_pass, xAOD::MuonContainer *m_mu_pass, xAOD::JetContainer *m_j_pass, bool debug) ...
//===- STLExtrasTest.cpp - Unit tests for STL extras ----------------------===// // // 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 // //===---------------------------...
// This file has been automatically generated by the Unreal Header Implementation tool #include "FGProceduralStaticMeshActor.h" #if WITH_EDITOR void AFGProceduralStaticMeshActor::PreEditChange( UProperty* PropertyThatWillChange){ } void AFGProceduralStaticMeshActor::PostEditChangeProperty( FPropertyChangedEvent& prop...
#include "Pcre2Base.h" #include "flags/Compile.h" Pcre2Base::Pcre2Base() : _regex_string("") { _regex_compiled = NULL; _match_data = NULL; _mcontext = NULL; _jit_stack = NULL; compileFlags = 0; matchFlags = 0; } void Pcre2Base::__construct(Php::Parameters &p) { if (p.size() > 1 && !p[1].isNull()) compileF...
// 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...
// Copyright 2010-2017 Google // 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 wri...
// Copyright © 2017-2019 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include "../PrivateKey.h" #include "../PublicKey.h" #incl...
/* * vk_shader.cpp - vulkan shader module * * Copyright (c) 2018 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
/* Copyright 2016 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...
/* Given an array A of integers and another non negative integer k, find if there exists 2 indices i and j such that A[i] - A[j] = k, i != j. Example : Input : A : [1 5 3] k : 2 Output : 1 as 3 - 1 = 2 Return 0 / 1 for this problem. See Expected Output https://www.interviewbit.com/problems/diffk-ii/ */ int Solut...
//===--- SILMem2Reg.cpp - Promotes AllocStacks to registers ---------------===// // // 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/L...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *gaon_strings[] = { QT_TRANSLATE_NOOP("gaon-core", "" "(1 = keep tx meta data e.g. account owner and payment request information, 2 " "= dro...
#ifndef BOOST_MPL_REMOVE_IF_HPP_INCLUDED #define BOOST_MPL_REMOVE_IF_HPP_INCLUDED // Copyright Aleksey Gurtovoy 2000-2004 // Copyright David Abrahams 2003-2004 // // 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.tx...
#include <iostream> #include <cmath> using namespace std; int N; long long B; long long shift(long long x) { return x ^ ((x>>1) + ((x%2) << (N-1))); } int main() { cin>>N>>B; long long start=0; for (int i=1; i<=N; i++) { int x; cin>>x; start+= x * pow(2, N-i); } long long cur=...
/* Copyright 2017 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...
/* Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al. 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 notice, this list of co...
/****************************************************************************** * Copyright (C) 2012 by Jerome Maye * * jerome.maye@gmail.com * * * ...
// Copyright 2020 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/password_manager/core/browser/credential_manager_pending_prevent_silent_access_task.h" #include "base/test/task_environment.h" #incl...
#include <fstream> #include <gtest/gtest.h> #include "Fixtures.h" #include "config.h" #include "utils.h" using namespace std; using json = nlohmann::json; using namespace SpiceQL; TEST_F(TestConfig, FunctionalTestConfigConstruct) { json megaConfig = testConfig.globalConf(); ASSERT_EQ(megaConfig.size(), 28); }...
//===- unittests/BuildSystem/LaneBasedExecutionQueueTest.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 h...
// Copyright (c) 2016-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. #include <qt/paymentrequestplus.h> // this includes protobuf's port.h which defines its own bswap macos #include <qt/test/co...
// Copyright 2018 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 "mojo/public/cpp/platform/platform_channel.h" #include <cstddef> #include <cstdint> #include <string> #include "base/logging.h" #include "base/...
#pragma once #include <algorithm> #include <exception> #include <string> namespace hpx { namespace kokkos { namespace resiliency { namespace detail { struct resiliency_exception : public std::exception { std::string ex; resiliency_exception() : ex("Resiliency based exception occure...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "core/common/common.h" #include "core/framework/data_types.h" #include "core/framework/data_types_internal.h" #include "core/framework/op_kernel.h" #include "Featurizers/TruncatedSVDFeaturizer.h" #include "Featuri...
// Copyright (c) 2020-2021 The BIGKEYCOIN Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <blockfilter.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h>...
/* * Copyright 2014 Facebook, 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...
#ifndef TNT_INDEX_IMPL_HPP #define TNT_INDEX_IMPL_HPP #include <tnt/core/index.hpp> #include <tnt/utils/testing.hpp> #include <iostream> namespace tnt { inline Index::Index() noexcept {} inline Index::Index(const Shape& shape) { this->loc = std::vector<int>(shape.num_axes(), 0); this->shape = shape; } inl...
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Vicente J. Botet Escriba 2017. // 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) // ///////////////////////////////...
#pragma once #include <ice/base.hxx> namespace ice::render { class RenderDriver; class RenderDevice; class RenderSurface; class RenderSwapchain; class RenderQueue; class RenderCommands; class RenderFence; struct SurfaceInfo; struct RenderpassInfo; struct ResourceSetLayoutBindi...
/* 王道考研 p54 */ #include <iostream> #include <stdio.h> #include <stack> using namespace std; char s[220]; int mat[][5] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, }; stack<int> op; stack<double> in; void getop(bool &reto, int &retn, int &i) { if(i==0 && op.e...
#include <bits/stdc++.h> #include <math.h> #include <vector> #include <algorithm> using namespace std; int main() { long long int l,u,t,n,i,j,count=1,divisor=1,temp,c; vector<long long int>divcount; while (cin>>t) { while (t--) { cin>>l>>u; for(i=l;i<=u;i++) ...
#include <bits/stdc++.h> using namespace std; #define ll long long #define ld long double #define ar array #define _DEBUG #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/tree_policy.hpp> using namespace __gnu_pbds; template <typename T> using oset = tree<T, null_type, less<T>, rb_tree_tag, tree_order_st...
/* ** ClanLib SDK ** Copyright (c) 1997-2020 The ClanLib Team ** ** 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 a...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include <string.h> #include <ie_builders.hpp> #include "builder_test.hpp" using namespace testing; using namespace InferenceEngine; class NetworkBuilderTest : public BuilderTestCommon { protected: s...
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
/*============================================================================= Copyright (c) 2011-2015 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout 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.tx...
#include "DmsGame.h" #include "lib/rang.hpp" DmsGame::DmsGame() { constants = new DmsObject(); players = new DmsObject(); enemies = new DmsObject(); encounters = new DmsObject(); scenarios = new DmsObject(); } DmsGame::~DmsGame() { delete constants; delete players; delete enemies; ...
// Copyright (c) 2011-2016 The Harzcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "overviewpage.h" #include "ui_overviewpage.h" #include "harzcoinunits.h" #include "clientmodel.h" #include "guicon...
// Copyright (c) 2020 INRA 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 ORG_VLEPROJECT_IRRITATOR_EXTERNAL_SOURCE_2021 #define ORG_VLEPROJECT_IRRITATOR_EXTERNAL_SOURCE_2021 #include <irritator/core.hpp> ...
//////////////////////////////////////////////////////////// // // RubySFML - Ruby extension for the SFML library // Copyright (C) 2007 Sean O'Neil and Laurent Gomila // (sean.p.oneil@gmail.com and laurent.gom@gmail.com) // // This software is provided 'as-is', without any express or implied warranty. // In no e...
/* Copyright 2018 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...
/**************************************************************************** ** Meta object code from reading C++ file 'coincontroltreewidget.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1) ** ** WARNING! All changes made in this file will be lost! ***********************************************...
#ifndef LAYOUT_H #define LAYOUT_H namespace Layout { template<typename T> struct PictureSizeT { T width; T height; }; struct PictureMeta { const char * Name; const char * Id; const char * Colour; char16_t thumbnailSizes[3]; char NameLen; }...
/* * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. You may obtain a copy of the License at * * http://www.apache.org/li...
//============================================================================== // Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // Se...
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
/* * Copyright 2019 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 "CKCinematicNode.h" #include "File.h" #include "CKLogic.h" void CKCinematicNode::reflectMembers(MemberListener &r) { } void CKCinematicBloc::reflectMembers(MemberListener &r) { CKCinematicNode::reflectMembers(r); r.reflect(cbUnk0, "cbUnk0"); r.reflect(cbUnk1, "cbUnk1"); r.reflect(cbUnk2, "cbUnk2"); r.refl...
const unsigned short draw_object[] PROGMEM = { 0x7ff,0xfff, 0x8257,0xda7, 0x8000,0x7ff, 0x8257,0x257, 0x87ff,0x0, 0x8da7,0x257, 0x8fff,0x7ff, 0x8da7,0xda7, 0x87ff,0xfff, };
#include "stdafx.h" #include "CpDibHelper.h" FJCpDibHelper::FJCpDibHelper(void) { } FJCpDibHelper::~FJCpDibHelper(void) { }
/* * 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...
/* * The Apache Software License, Version 1.1 * * Copyright (c) 2001 The Apache Software Foundation. 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 sourc...
/* Copyright (c) 2019 vesoft inc. All rights reserved. * * This source code is licensed under Apache 2.0 License, * attached with Common Clause Condition 1.0, found in the LICENSES directory. */ #include "storage/StorageServer.h" #include <thrift/lib/cpp/concurrency/ThreadManager.h> #include "clients/storage/Int...
#pragma once #include <iostream> #define test_assert(x) \ if(!(x))\ {\ std::cout << "Test failed in\n" << __FILE__ << ":" << __LINE__ << "\ncondition \"" << #x << "\" is false" << std::endl;\ std::exit(-1);\ } #define test_assert_near(x,y, eps) test_assert(std::abs((x) - (y)) <= std::abs(eps) )
#include "config.h" #include <Arduino.h> #include <time.h> #include "gui.h" #include "ui/keyboard.h" #include "ui/message.h" #include "ui/loader.h" #include "ui/wifilist.h" #include "ui/navigationview.h" #include <WiFi.h> #include "string.h" #include <Ticker.h> #include "FS.h" #include "SD.h" #include "hardware/Wifi.h"...
#pragma once // ARKSurvivalEvolved (329.9) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalInventoryBP_WaterWell_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //------------------------------------------...
// Copyright 2012 the V8 project authors. 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 // notice, this list of ...
// REQUIRES: gwp_asan // RUN: %clangxx_gwp_asan %s -o %t // RUN: not %run %t 2>&1 | FileCheck %s // CHECK: GWP-ASan detected a memory error // CHECK: Invalid (wild) free at 0x{{[a-f0-9]+}} (1 byte to the right of a // CHECK-SAME: 1-byte allocation #include <cstdlib> int main() { char *Ptr = reinterpret_cast<...
/* * Copyright (c) [2020] Huawei Technologies Co., Ltd. All rights reserved. * * OpenArkCompiler is licensed under the Mulan Permissive Software License v2. * You can use this software according to the terms and conditions of the MulanPSL - 2.0. * You may obtain a copy of MulanPSL - 2.0 at: * * https://opensou...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2018,2020, by the GROMACS development team, led by * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, * and including many others, as listed in the AUTHORS file in the * top-level source directory and at http://ww...
#include <iostream> #include <fstream> #include <sstream> #include <string> #include <vector> #include "Constants.h" #include "Token.h" #include "Expressions/Expression.h" #include "Tokenizer.h" #include "Parser.h" using namespace std; int main() { ifstream file; while (true) { file.open("test.lang"); ...
// g2o - General Graph Optimization // Copyright (C) 2011 R. Kuemmerle, G. Grisetti, W. Burgard // 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 r...