text
stringlengths
7
961k
#include <bits/stdc++.h> using namespace std; #define ll long long #define ull unsigned long long #define dd double #define ld long double #define sl(n) scanf("%lld", &n) #define si(n) scanf("%d", &n) #define sd(n) scanf("%lf", &n) #define pll pair <ll, ll> #define pii pair <int, int> #define mp make_pair #define pb ...
// Copyright (c) 2009 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 <gtk/gtk.h> #include "app/gfx/gtk_util.h" #include "app/l10n_util.h" #include "base/message_loop.h" #include "chrome/browser/gtk/options/url...
#include<string> #include<cctype> #include<iostream> #include<vector> #include<fstream> #include<list> #include<deque> /* std::vector read_f(std::string path) { std::fstream pf{path}; std::vector code; if(pf.good()){ //std::string tmpString; std::stringstream tmpString; while (std::getline(pf,tmpString)) {...
/********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
#include <cstdlib> #include <iostream> using namespace std; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { use_io_optimizations(); int x; int y; int steps; cin >> x >> y >> steps; int shortest_path {abs(x) + abs(y)}; if ...
#include "SpriteSheet.h" #include <SDL2/SDL.h> #include "Texture.h" #include <stdio.h> SpriteSheet::SpriteSheet() { texture = new Texture(); } SpriteSheet::~SpriteSheet() { delete texture; } bool SpriteSheet::LoadSpriteSheet(SDL_Renderer * renderer, const char * filepath) { if (texture->LoadTexture(renderer, f...
/** * SPOJ Problem Set (classical) * 11736. Prime Time * Problem code: PTIME * * For your math homework this week your teacher gave you five large * numbers and asked you to find their prime factors. However these * numbers aren't nearly large enough for someone with knowledge of * programming like yourself. So...
#include "xcore/xcore.h" #include <stdio.h> #include <QIcon> #include <QDebug> #include <QPainter> #include <QFileDialog> #include <QTemporaryFile> #include <QTextCodec> #include "debuger.h" #include "dbg_sprscan.h" #include "filer.h" #include "xgui.h" QColor colPC(32,200,32); // pc QColor colBRK(200,128,128); // b...
/** * Copyright (c) 2017-present, Facebook, Inc. and its 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 "ZookeeperConfigSource.h" #include <atomic> #include <condition_variable> #in...
class Solution { public: bool isInterleave(string s1, string s2, string s3) { if (s1.size() + s2.size() != s3.size()) return false; int len1 = s1.size(); int len2 = s2.size(); vector<vector<bool>> check(len1+1, vector<bool>(len2+1, false)); for (int i = 0; i <= len1; i ++) ...
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com /* * MIT License (http://www.opensource.org/licenses/mit-license.php) * * Copyright (c) 2021, Viachaslau Tratsiak (aka restorer) * * Permission is ...
/// \file delegate.hpp /// \brief Classes and functions that implement delegate. /// \bug No known bugs. #ifndef DELEGATE_HPP #define DELEGATE_HPP #include <algorithm> #include <list> /// Contains classes and functions that extend the C++ STL. namespace stdex { /// Non-specialized template class that implements...
/*This file is part of the FEBio source code and is licensed under the MIT license listed below. See Copyright-FEBio.txt for details. Copyright (c) 2020 University of Utah, The Trustees of Columbia University in the City of New York, and others. Permission is hereby granted, free of charge, to any person obtaining ...
// 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 "ftdi-i2c.h" #include <fuchsia/hardware/ftdi/llcpp/fidl.h> #include <fuchsia/hardware/serialimpl/cpp/banjo.h> #include <lib/fake_ddk/fake_ddk.h> ...
// ProgressMt.h #include "StdAfx.h" #include "ProgressMt.h" void CMtCompressProgressMixer::Init(unsigned numItems, ICompressProgressInfo *progress) { NWindows::NSynchronization::CCriticalSectionLock lock(CriticalSection); InSizes.Clear(); OutSizes.Clear(); for (unsigned i = 0; i < numItems; i++) { InS...
/*Question:16- WAP to reverse the order of the elements in the stack using a additional stack.*/ #include<iostream> using namespace std; template <class T> class Stack { public: T *tack; int size,top; Stack(int n) { top=-1; size=n; tack=new T[size]; } void PUSH(int); void POP(); void Display...
// 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/extensions/proxy_overridden_bubble_controller.h" #include "base/metrics/histogram.h" #include "chrome/browser/extensions/extensi...
/********************************************************************************** Copyright (C) 2012 Syed Reza Ali (www.syedrezaali.com) 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 wi...
// Copyright (c) 2012-2016 The Ilcoin Core developers // All Rights Reserved. ILCoin Blockchain Project 2019© #include "consensus/merkle.h" #include "merkleblock.h" #include "serialize.h" #include "streams.h" #include "uint256.h" #include "arith_uint256.h" #include "version.h" #include "test/test_ilcoin.h" #include "t...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2018 The FlatEarth Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/lice...
#include "Core/Core.h" #include "PackFile.h" #include <lz4\lz4.h> namespace asset { FileSpan::FileSpan() : offset(0), size(0), compressedSize(0), assetType(AssetType::Unknown) { } PackFile::PackFile() : _file(nullptr) { } PackFile::~PackFile() { if (_file != nullptr) { ...
//===----------------------------------------------------------------------===// // // 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 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 "base/task/sequence_manager/sequence_manager_impl.h" #include <queue> #include <vector> #include "base/bind.h" #include "base/bit_cast.h" #incl...
/* ============================================================================ * Copyright (c) 2009-2016 BlueQuartz Software, LLC * * 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...
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/Scripting/Natives/Generated/quest/IGameManagerNodeType.hpp> namespace RED4ext { namespace quest { struct SetTimer_NodeType : quest::IGameManagerNodeType { static constexpr co...
#ifndef _RAR_HEADERS_ #define _RAR_HEADERS_ #define SIZEOF_MARKHEAD 7 #define SIZEOF_OLDMHD 7 #define SIZEOF_NEWMHD 13 #define SIZEOF_OLDLHD 21 #define SIZEOF_NEWLHD 32 #define SIZEOF_SHORTBLOCKHEAD 7 #define SIZEOF_LONGBLOCKHEAD 11 #define SIZEOF_SUBBLOCKHEAD ...
#pragma once //------------------------------------------------------------------------------ // // Copyright 2018-2019 Fetch.AI Limited // // 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 Licen...
#pragma once #include <Register/Utility.hpp> namespace Kvasir { //Interrupts namespace IntreqDrqsel{ ///<DMA Request Selection Register using Addr = Register::Address<0x40031000,0x00000000,0x00000000,unsigned>; ///The interrupt signal of the external interrupt ch.3 is output as a transfer reques...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_char_memcpy_14.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.string.label.xml Template File: sources-sink-14.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Allocat...
// ----------------------------------------------------------------------------- // LowSocket.cpp // ----------------------------------------------------------------------------- #include "LowSocket.h" #include "LowSocketDirect.h" #include "LowTLSContext.h" #include "low_alloc.h" #include "low_config.h" #include "lo...
// Copyright 2018 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 in w...
///////////////////////////////////////////////////////////////////////////// // Name: defaultsettings.cpp // Purpose: // Author: Ake Hedman // Modified by: // Created: Thu 23 Oct 2009 16:00:29 CEST // RCS-ID: // Copyright: Copyright (C) 2007 eurosource // Licence: //////////////////...
// Copyright (c) 2016 ASMlover. 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 ofconditions and...
/* Ucglib.cpp ucglib = universal color graphics library ucglib = micro controller graphics library Universal uC Color Graphics Library Copyright (c) 2014, olikraus@gmail.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted prov...
/* * 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 (c) 2018 Francis James Franklin * * 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 of c...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include "pal_config.h" #include "pal_errno.h" #include "pal_networkchange.h" #include "pal_types.h" #include "pal_...
// 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 "ppapi/tests/test_net_address.h" #include <cstring> #include "ppapi/cpp/net_address.h" #include "ppapi/tests/test_utils.h" #include "ppapi/test...
#include "catch.hpp" #include <inser.h> SCENARIO("SORT_INSERT") { int nums1[] = { 9,1,7,2,5,8,3,6,4 }; int nums_proverka1[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; inser(nums1, nums1+9); for (int i = 0; i < 9; ++i) { REQUIRE(nums1[i] == nums_proverka1[i]); } }
#pragma once #include "coding/endianness.hpp" #include "coding/files_container.hpp" #include "coding/memory_region.hpp" #include "coding/reader.hpp" #include "coding/succinct_mapper.hpp" #include "coding/varint.hpp" #include "coding/write_to_sink.hpp" #include "coding/writer.hpp" #include "base/assert.hpp" #include "...
// // Copyright (c) 2015-2018 CNRS // Copyright (c) 2016 Wandercraft, 86 rue de Paris 91400 Orsay, France. // #ifndef __pinocchio_spatial_fwd_hpp__ #define __pinocchio_spatial_fwd_hpp__ #include "pinocchio/fwd.hpp" #include "pinocchio/macros.hpp" namespace pinocchio { template<typename Scalar, int Options=0> st...
/** * Copyright 2019-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 applicabl...
/* * * Copyright 2018 Asylo 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 agree...
#include "MethodArg.h" MethodArg::MethodArg(const char* value, ArgType type) : argValue(value), argType(type) {} std::string MethodArg::GetValue() const { return argValue; } ArgType MethodArg::GetType() const { return argType; }
#pragma once #include "Base.hpp" #include <iostream> using namespace std; class Derived:public Base{ // a will be public // b will be protected // c will not be accessible private: int double_value; public: Derived(); Derived(int x); void access_base_members(){ ...
/* * Copyright (c) 2011-2022, 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...
#include "Effect.h" Effect::Effect(){ } void Effect::run(Adafruit_NeoPixel *strip, EffectData data){ } void Effect::randomize(){ } void Effect::off(Adafruit_NeoPixel *strip){ for(uint8_t i = 0; i < LED_COUNT; i++){ strip -> setPixelColor(i, 0); } } // Input a value 0 to 255 to get a color value. // The colo...
/** * Copyright (c) 2016-present, 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 ...
// 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 "ash/common/wm/dock/docked_window_layout_manager.h" #include "ash/aura/wm_window_aura.h" #include "ash/common/ash_switches.h" #include "ash/...
//===- AArch64RegisterInfo.cpp - AArch64 Register Information -------------===// // // 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 <miopen/scgemm/conv.hpp> #include <miopen/logger.hpp> #include <miopen/scgemm/scgemm.hpp> #include <boost/algorithm/string.hpp> #include <cstring> #include <vector> #include <unordered_map> namespace miopen { namespace scgemm { bool is_fconv(const std::string& kernel_name) { return kernel_name.find("sco...
/** * @file array_schema.cc * * @section LICENSE * * The MIT License * * @copyright Copyright (c) 2017-2021 TileDB, Inc. * @copyright Copyright (c) 2016 MIT and Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation...
// // https://codeforces.com/problemset/problem/282/A // #include <iostream> using namespace std; int main() { int n = 0; cin >> n; int result = 0; for (int i = 0; i < n; ++i) { string op; cin >> op; if (op.find("++") != string::npos) { ++result; } else ...
// // Copyright (c) 2011-2012 Krzysztof Jusiak (krzysztof at jusiak dot net) // // 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 <gtest/gtest.h> #include <boost/mpl/vector.hpp> #include "QFsm/Back/Detail/...
#include "diablo.h" DEVILUTION_BEGIN_NAMESPACE BYTE L5dungeon[80][80]; BYTE L5dflags[DMAXX][DMAXY]; BOOL setloadflag; int HR1; int HR2; int HR3; int VR1; int VR2; int VR3; BYTE *pSetPiece; const ShadowStruct SPATS[37] = { // clang-format off // strig, s1, s2, s3, nv1, nv2, nv3 { 7, 13, 0, 13, 144, 0, 142 ...
#include "Log.h" #include "EU4ToVic2Converter.h" #include "Mappers/VersionParser/VersionParser.h" int main(const int argc, const char * argv[]) { try { const mappers::VersionParser versionParser; LOG(LogLevel::Info) << versionParser; LOG(LogLevel::Info) << "Built on " << __TIMESTAMP__; if (argc >= 2) { ...
#ifndef WAYPOINTS_H #define WAYPOINTS_H #include <QStandardItemModel> #include "dji_vehicle.hpp" #include "sdk_widgets.hpp" #include <QWidget> namespace Ui { class MissionWidget; } class QWaypoints : public QWidget { Q_OBJECT public: explicit QWaypoints(QWidget* parent = 0, DJI::OSDK::Vehicle* vehicle = 0); ...
#pragma once #include <cassert> #include <ostream> namespace zasm { enum class Error { None = 0, // Generic. InvalidMode, NotInitialized, InvalidOperation, // Program LabelNotFound, UnresolvedLabel, InvalidLabel, // Decoder. ...
/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.1 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *zencoin_strings[] = { QT_TRANSLATE_NOOP("zencoin-core", "" "(1 = keep tx meta data e.g. account owner and payment request information, 2 " "=...
#include "Random.h" static const int A = 48271; static const int M = 2147483647; static const int Q = M / A; static const int R = M % A; /** * Construct with initialValue for the state. */ Random::Random( int initialValue ) { if( initialValue < 0 ) initialValue += M; state = initialValue; if( s...
#include "MetaImageExporter.hpp" #include "FAST/Data/Image.hpp" #include <fstream> #include <zlib/zlib.h> namespace fast { MetaImageExporter::MetaImageExporter() : FileExporter() { createInputPort<Image>(0); mIsModified = true; mUseCompression = false; } MetaImageExporter::MetaImageExporter(std::string f...
/** * Copyright (c) 2015 by Contributors */ #include <unistd.h> #include <thread> #include <chrono> #include "ps/internal/postoffice.h" #include "ps/internal/message.h" #include "ps/base.h" namespace ps { Postoffice::Postoffice() : van_(new Van()) { const char* val = NULL; val = CHECK_NOTNULL(getenv("DMLC_NUM_W...
// // Character.cpp for Character in /home/gwendoline/Epitech/Tek2/Piscine_cpp/piscine_cpp_d09/ex00 // // Made by Gwendoline Rodriguez // Login <gwendoline@epitech.net> // // Started on Thu Jan 14 09:51:59 2016 Gwendoline Rodriguez // Last update Thu Jan 14 11:52:35 2016 Gwendoline Rodriguez // #include "Character....
/* * 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 ...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
/* Project : mainmenu Author : Mohammad Al-Husseini Description : Displays the main menu for the Serendipity Project. */ /////////////////////////////////////////////////////////////////////////////////////////////////// #include <iostream> // cout object for command line output #include "cashier.h" #include "boo...
#ifndef LOWI_HEADER_REGISTERS_CL_HH #define LOWI_HEADER_REGISTERS_CL_HH #include <lowi/register_type.hh> namespace lowi { namespace registers { class cl final : public register_type { public: cl(); cl(const cl& cl) = default; cl(cl&& cl) noexcept = default; virtual ~cl() override = default; pub...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
#include "voxel_terrain.h" #include "../edition/voxel_tool_terrain.h" #include "../streams/voxel_stream_file.h" #include "../util/macros.h" #include "../util/profiling_clock.h" #include "../util/utility.h" #include "../voxel_string_names.h" #include "voxel_block.h" #include "voxel_map.h" #include <core/core_string_nam...
/* * * Copyright 2019 gRPC 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 agree...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #incl...
/* BSD 2-Clause License Copyright (c) 2017 - 2020, FORNO 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 conditio...
#include <atomic> #include <chrono> #include <cstdlib> #include <cstring> #include <errno.h> #include <inttypes.h> #include <memory> #include <mutex> #if !defined(_WIN32) #include <pthread.h> #include <signal.h> #include <unistd.h> #endif #include "thread.h" #include <setjmp.h> #include <stdint.h> #include <stdio.h> #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 "src/cobalt/bin/system-metrics/memory_stats_fetcher_impl.h" #include <fcntl.h> #include <fuchsia/cobalt/cpp/fidl.h> #include <fuchsia/sysinfo/c/...
// Implementation based on: // - DHT 12 Component #include "tmp117.h" #include "esphome/core/log.h" namespace esphome { namespace tmp117 { static const char *const TAG = "tmp117"; void TMP117Component::update() { int16_t data; if (!this->read_data_(&data)) { this->status_set_warning(); return; } if...
#ifndef TERMOX_PAINTER_PALETTE_TELETEXT_HPP #define TERMOX_PAINTER_PALETTE_TELETEXT_HPP #include <termox/painter/color.hpp> namespace ox::teletext { constexpr auto Black = Color::Background; constexpr auto Blue = Color{4}; constexpr auto Red = Color{1}; constexpr auto Magenta = Color{5}; constexpr auto Lime ...
/* * See header file for a description of this class. * * $Date: 008/03/21 15:13:57 $ * $Revision: 1.2 $ * \author Paolo Ronchese INFN Padova * */ //----------------------- // This Class' Header -- //----------------------- #include "CondTools/DT/test/validate/DTROMapValidateHandler.h" //------------------...
/* Copyright (c) 2018, Ford Motor Company * 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 condition...
/****************************************************************************** * $Id: ogrgeojsonutils.cpp 33714 2016-03-13 05:42:13Z goatbar $ * * Project: OpenGIS Simple Features Reference Implementation * Purpose: Implementation of private utilities used within OGR GeoJSON Driver. * Author: Mateusz Loskot, ...
#include "uml/impl/JoinNodeImpl.hpp" #ifdef NDEBUG #define DEBUG_MESSAGE(a) /**/ #else #define DEBUG_MESSAGE(a) a #endif #ifdef ACTIVITY_DEBUG_ON #define ACT_DEBUG(a) a #else #define ACT_DEBUG(a) /**/ #endif //#include "util/ProfileCallCount.hpp" #include <cassert> #include <iostream> #include <sstream> #...
/*************************************************** * Problem Name : CUTBOARD.cpp * Problem Link : https://www.codechef.com/problems/CUTBOARD * OJ : Codechef * Verdict : AC * Date : 2020-05-10 * Problem Type : * Author Name : Saikat Sharma * University : CSE, MBSTU ******************...
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */ #include <sstream> #include <limits> #include "ifcpp/model/AttributeObject.h" #include "ifcpp/model/BuildingException.h" #include "ifcpp/model/BuildingGuid.h" #include "ifcpp/reader/ReaderUtil.h" #include "ifcpp/writer/WriterUtil.h" #include "ifcpp/I...
// Copyright 2015-2020 Tier IV, 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 // // Unless required by app...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
#include "MCP3426.h" MCP3426::Config::Config() { // Default configuration mode = MODE_ONESHOT; channel = CHANNEL1; resolution = RESOLUTION_16BIT; gain = GAIN_1X; } MCP3426::Config::Config(unsigned char channel, unsigned char mode, unsigned char resolution, unsigned char gai...
// 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 "walletframe.h" #include "bitcoingui.h" #include "walletview.h" #include <cstdio> #include <QHBoxLayout> #include ...
#ifndef DIY_DECOMPOSITION_HPP #define DIY_DECOMPOSITION_HPP #include <vector> #include <algorithm> #include <iostream> #include <cmath> #include <sstream> #include <stdexcept> #include "link.hpp" #include "assigner.hpp" #include "master.hpp" namespace diy { namespace detail { template<class Bounds_, class Enable =...
/* * Nimrod/G Agent * https://github.com/UQ-RCC/nimrodg-agent * * SPDX-License-Identifier: Apache-2.0 * Copyright (c) 2019 The University of Queensland * * 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 ...
// 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 "gpu/command_buffer/service/shader_translator.h" #include <string.h> #include <GLES2/gl2.h> #include <algorithm> #include "base/at_exit.h" ...
#ifndef VK_RENDERDEVICE_HPP #define VK_RENDERDEVICE_HPP #include <cstddef> #include <cstdint> #include <deque> #include <unordered_map> #include <unordered_map> #include <vector> #include <shared_mutex> #include <vulkan/vulkan.hpp> #include "Core/Profiling.hpp" #include "Core/RenderDevice.hpp" #include "Core/BarrierM...
// Copyright Contributors to the OpenVDB Project // SPDX-License-Identifier: MPL-2.0 #include "Archive.h" #include "GridDescriptor.h" #include "DelayedLoadMetadata.h" #include "io.h" #include <openvdb/Exceptions.h> #include <openvdb/Metadata.h> #include <openvdb/tree/LeafManager.h> #include <openvdb/util/logging.h> ...
#include <iostream> #include <vector> #include <string> using namespace std; class Solution { public: vector<vector<char>> updateBoard(vector<vector<char>>& board, vector<int>& click) { } }; int main(){ return 0; }
///////////////////////////////////////////////////////////////////////////// // // Copyright (c) 1996-1997 Microsoft Corporation // // Module Name: // BarfClus.cpp // // Abstract: // Implementation of the Basic Artifical Resource Failure entry points // for CLUSAPI functions. // // Author: // David Potter (davidp)...
/* * If not stated otherwise in this file or this component's LICENSE file the * following copyright and licenses apply: * * Copyright 2021 RDK Management * * 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 cop...
//===--- SimplifyCFG.cpp - Clean up the SIL CFG ---------------------------===// // // 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...
/* * 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 "MotionSetsWindowPlugin.h" #include <QPushButton> #include <QLabel> #include <QWidget> #i...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 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 "irc.h" #include "net.h" #include "strlcpy.h" #include "base58.h" using ...
/* =========================================================================== The Open Game Libraries. Copyright (C) 2007-2010 Lusito Software Author: Santo Pfingsten (TTK-Bandit) Purpose: Dynamic Buffer ----------------------------------------- This software is provided 'as-is', without any express or implied warr...
// // AnalyticsManager.cpp // Implementation of the AnalyticsManager class. // #include "pch.h" #include "AnalyticsManager.h" #include "TimeSpanHelper.h" #include "DateTimeHelper.h" #include "HitBuilder.h" using namespace GoogleAnalytics; using namespace Platform; using namespace Platform::Collections; using namespac...