text
stringlengths
7
961k
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following ...
/*========================================================================= Program: Visualization Toolkit Module: vtkImagePlaneWidget.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 softw...
// -*- coding: us-ascii-unix -*- // Copyright 2012 Lukas Kemmer // // 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 a...
#include <makeshift/tuple.hpp> #include <tuple> #include <gsl-lite/gsl-lite.hpp> // for index #include <catch2/catch.hpp> namespace { namespace mk = ::makeshift; namespace gsl = ::gsl_lite; TEST_CASE("tuple", "[flags]") { constexpr auto numbers = std::make_tuple(2, 3u); SECTION("foreach") { ...
// ColourPopup.cpp : implementation file // // Written by Chris Maunder (chrismaunder@codeguru.com) // Extended by Alexander Bischofberger (bischofb@informatik.tu-muenchen.de) // Copyright (c) 1998. // // Updated 30 May 1998 to allow any number of colours, and to // make the appearance closer to Off...
/* * Copyright (C) 2015 Open Source Robotics Foundation * * 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 appl...
/** \file AccessType.hh * * Auto generated C++ code started by /home/hongyu/gem5-fy/src/mem/slicc/symbols/Type.py:555 */ #include <cassert> #include <iostream> #include <string> #include "base/misc.hh" #include "mem/protocol/AccessType.hh" using namespace std; // Code for output operator ostream& operator<<(ostr...
class Solution { public: int XXX(vector<int>& prices) { int n = prices.size(); vector<int> dp(n+1); dp[0] = 0; int max_num = 0; for(int i=1; i<n; ++i){ if(prices[i] - prices[i-1] <= 0) dp[i] = dp[i-1]; else{ int temp = max(prices[i] - prices[i-1], pric...
/* 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 <gcdpp/source.h> GCDPP_NS_BEGIN struct DispatchSourceContext { DispatchWork registrationHandler; DispatchWork eventHandler; DispatchWork cancelHandler; static void destroy(void *ctx) { DispatchSourceContext *self = reinterpret_cast<DispatchSourceContext *>(ctx); delete self; ...
#include <absl/strings/str_split.h> #include <arpa/inet.h> #include <fmt/format.h> #include <netinet/in.h> #include <sys/socket.h> #include <chrono> #include <iostream> #include <string> #include <vector> #include "common/cmd_channel_impl.hpp" #include "common/cmd_channel_socket_utilities.hpp" #include "common/cmd_ha...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" #include "beatsaber-hook/shared/utils/il2cpp-utils-met...
/* Copyright 2017-2018 ccls 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 in writing, software...
//////////////////////////////////////////////////////////////////////////////// // ExTextureList.cpp #include "ExExporter.h" #include "ExTextureList.h" #include "FsFile.h" #include "PaMemoryResource.h" #include "PaArchive.h" //////////////////////////////////////////////////////////////////////////////// // pFind E...
// Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Copyright (c) 2018 The Quantlab developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-lice...
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2015-2017 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 "activemasternode.h" #include "db.h" #include "init.h" #include "main....
#include "PolygonTopology.h" #include "TopologyEdge.h" #include <map> #include <set> #include <data_structures/VectorOperations.h> PolygonTopology::PolygonTopology() { } PolygonTopology::PolygonTopology(const Faces& faces, ID nVertices) { init(faces, nVertices); } PolygonTopology::~PolygonTopology() { } voi...
//================================================================================================= /*! // \file src/mathtest/smatdmatschur/MCbHDb.cpp // \brief Source file for the MCbHDb sparse matrix/dense matrix Schur product math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // Thi...
#ifndef FSLBASE_LOG_MATH_PIXEL_FMTPXSIZE2D_HPP #define FSLBASE_LOG_MATH_PIXEL_FMTPXSIZE2D_HPP /**************************************************************************************************************************************************** * Copyright 2020 NXP * All rights reserved. * * Redistribution and use i...
/* * Copyright (c) 2021 Huawei Device 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 ...
/* * @name BookFiler Module - SSH * @author Branden Lee * @version 1.00 * @license MIT * @brief SSH module for BookFiler™ applications. */ #ifndef BOOKFILER_MODULE_SSH_TUNNEL_SERVER_LISTENER_H #define BOOKFILER_MODULE_SSH_TUNNEL_SERVER_LISTENER_H // config #include "config.hpp" // C++17 //#include <filesystem>...
//------------------------------------------------------------------------------ // // Copyright 2018-2020 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 License at // // ...
// 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 "components/bookmarks/browser/url_index.h" #include "base/containers/adapters.h" #include "base/guid.h" #include "components/bookmarks/browser/u...
/* ======================================================================== * Copyright (c) 2006, * Institute for Computer Graphics and Vision * Graz University of Technology * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that ...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
/* * Copyright (c) 2019-2021, Intel Corporation * * 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, p...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, instal...
#include<pcl/common/file_io.h> #include<pcl/point_cloud.h> #include<vector> #include<ctime> #include<fstream> #include<iostream> #include<utility> #include<Eigen/Dense> #include<Eigen/Geometry> #include <pcl/common/common_headers.h> #include <pcl/kdtree/kdtree_flann.h> using namespace std; namespace map...
// Copyright 2021 Apex.AI, 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 i...
// Crc32.cpp created on 2020-06-07 as part of xcikit project // https://github.com/rbrich/xcikit // // Copyright 2020 Radek Brich // Licensed under the Apache License, Version 2.0 (see LICENSE file) #include "Crc32.h" #include <zlib.h> namespace xci::data { inline uint32_t init_crc() { return (uint32_t) crc32_z...
// A llvm backend helper #include "taichi/llvm/llvm_context.h" #include "llvm/Transforms/Utils/Cloning.h" #include "llvm/ADT/APFloat.h" #include "llvm/ADT/STLExtras.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Function.h" #include "llvm/IR/IRBui...
// Copyright 2013 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 ...
//Data Structure includes #include<vector> #include<stack> #include<set> #include<map> #include<queue> #include<deque> #include<string> //Other Includes #include<iostream> #include<algorithm> #include<cstring> #include<cassert> #include<cstdlib> #include<cstdio> #include<cmath> #include<sstream> //some common functionn...
// no-networkit-format #include <cmath> #include <networkit/auxiliary/Log.hpp> #include <networkit/community/GraphClusteringTools.hpp> namespace NetworKit { namespace GraphClusteringTools { float getImbalance(const Partition &zeta) { float avg = std::ceil( (float)zeta.numberOfElements() / (float)...
/* Copyright (c) 2010, 2019, 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, version 2.0, as published by the Free Software Foundation. This program is also distributed with cer...
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 OpenFOAM Foundation ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under...
// 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 "chrome/browser/ui/toolbar/encoding_menu_controller.h" #include <string> #include "base/basictypes.h" #include "base/message_loop.h" #inclu...
/* 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) 2008-2022 the Urho3D project. // // 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, m...
#include<cmath> #include"core/data/utility/Configuration.h" #include <sys/types.h> // For stat(). #include <sys/stat.h> // For stat(). #include <stdio.h> #include <fstream> #include <stdlib.h> #include <algorithm> #include "core/data/mat/MatN.h" #include"core/data/utility/BasicUtility.h" #if Pop_OS==2 #ifdef _MSC...
// Copyright 2017 The Zeta 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...
#include "[command head file]" void [class name]::Init(ISessionService* session_service) { session_service_ = session_service; [do message logic init] PSS_LOGGER_DEBUG("[[class name]::Init]init."); } [command logic function achieve]
#include <Klein/Util/Gizmo.h> namespace Klein { Gizmo::Gizmo(QObject* parent) : QObject(parent) {} void Gizmo::update() { if (m_enabled) { ImGuizmo::BeginFrame(); const auto& io = ImGui::GetIO(); const auto viewMat = m_camera->viewMatrix(); const auto view = viewMat.constData(); ...
/////////////////////////////////////////////////////////////////////////////// // // // OldVDCPlane // // // ...
#include "pch.h" #include "db.h" namespace fourdb { db::db(const std::string& filePath) : m_db(nullptr) { int rc = sqlite3_open(filePath.c_str(), &m_db); if (rc != SQLITE_OK) throw fourdberr(rc, m_db); } db::~db() { if (m_db != nullptr) { ...
#include <boost/test/unit_test.hpp> #include "init.h" #include "main.h" #include "uint256.h" #include "util.h" #include "wallet.h" extern void SHA256Transform(void* pstate, void* pinput, const void* pinit); BOOST_AUTO_TEST_SUITE(miner_tests) static struct { unsigned char extranonce; unsigned int nonce; } bl...
// // OSDictionary.hpp // RealtekCardReader // // Created by FireWolf on 8/25/21. // #ifndef OSDictionary_hpp #define OSDictionary_hpp #include <libkern/c++/OSDictionary.h> static inline bool OSDictionaryAddStringToDictionary(OSDictionary* dictionary, const char* key, const char* value) { OSString* v = OSStri...
// // time_t_timer.cpp // ~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff 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) // #include <boost/asio.hpp> #include ...
// 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 "base/bind.h" #include "base/callback_helpers.h" #include "base/message_loop/message_loop.h" #include "media/base/gmock_callback_support.h" #...
#include "12.1string2.h" using namespace std; int main() { String s1(" and I am a C++ student."); String s2 = "Please enter your name: "; String s3; cout << s2; cin >> s3; s2 = "My name is " + s3; cout << s2 << ".\n"; s2 = s2 + s1; s2.stringup(); cout << "The string\n" << s2 ...
#include "huffman.h" #include "ui_huffman.h" #define TR(str) (QString::fromLocal8Bit(str)) //解决中文乱码 huffman::huffman(QWidget *parent) : QWidget(parent), ui(new Ui::huffman) { ui->setupUi(this); setWindowFlags(windowFlags()&~Qt::WindowMaximizeButtonHint); // 禁止最大化按钮 this->setWindowTitle(TR("哈夫...
/** * Code for calling Quick entrypoints. These are runtime entrypoints * that already existed for supporting the Quick backend. * * Here we might also call some additional entrypoints we have implemented * for the LLVM backend. * * Copyright (C) 2021 Paschalis Mpeis (paschalis.mpeis-AT-gmail.com) * * License...
// Copyright (c) 2006-2008 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/automation/url_request_failed_dns_job.h" #include "base/message_loop.h" #include "googleurl/src/gurl.h" #include "net/b...
#include "BooterChain.h" #include <cassert> void Booter::Chain::AddNode(Node * newNode) { assert(m_firstNode.load() != nullptr); Node* currentNode = m_firstNode.exchange(newNode); assert(currentNode->m_nextNode.load() == nullptr); currentNode->m_nextNode = newNode; } void Booter::Chain...
/* * 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 (C) 2021 hidenorly 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 wr...
/* * 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 (c) 2016 PaddlePaddle Authors. All Rights Reserve. 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 ...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkBlendMode.h" #include "include/core/SkCanvas.h" #include "include/core/SkColor.h" #include "include/core/SkColorFilter.h" #include ...
/********************************************************************** Copyright (c)2017 Advanced Micro Devices, Inc. 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...
#include "AliNanoFilterPID.h" #include <TObject.h> #include <AliAnalysisManager.h> #include <AliAODTrack.h> #include <AliESDtrackCuts.h> #include <AliInputEventHandler.h> #include <AliPIDResponse.h> #include <AliAnalysisTaskNucleiYield.h> #include <AliVEvent.h> AliNanoFilterPID::AliNanoFilterPID() : AliAnalysis...
// 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 "components/sync/engine_impl/cycle/mock_debug_info_getter.h" namespace syncer { MockDebugInfoGetter::MockDebugInfoGetter() {} MockDebugInfoGet...
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // ...
/* * This file is part of hipSYCL, a SYCL implementation based on CUDA/HIP * * Copyright (c) 2018 Aksel Alpay * 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 sou...
#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include "guiconstants.h" #include <QString> #include <QTranslator> #include <QDateTime> #include <QDoubleValidator> #include <QLineEdit> #include <QUrl> #include <QTextDocum...
//%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...
#include "duckdb/main/client_context.hpp" #include "duckdb/main/client_context_file_opener.hpp" #include "duckdb/main/query_profiler.hpp" #include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp" #include "duckdb/catalog/catalog_entry/scalar_function_catalog_entry.hpp" #include "duckdb/catalog/catalog_search_pat...
#include "TDES.h" std::string TDES::run(const std::string & data, const std::string & key, const bool & mode){ if (!keyset){ throw std::runtime_error("Error: Key has not been set."); } if (data.size() != 8){ throw std::runtime_error("Error: Data must be 64 bits in length."); } if ...
/* * Copyright (C) 2015 Open Source Robotics Foundation * * 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 appl...
/* Copyright (c) 2003, Daniel Wallin Copyright (c) 2003, 2009, 2011, 2013-2020, Arvid Norberg Copyright (c) 2016, 2018, Alden Torres Copyright (c) 2018-2019, Steven Siloti All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following co...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/autofill/core/browser/payments/full_card_request.h" #include <memory> #include "base/bind.h" #include "base/check_op.h" #include "b...
#include "libOTe/Base/BaseOT.h" #include <ios> #ifdef ENABLE_KKRT #include "KkrtDefines.h" #include "KkrtNcoOtReceiver.h" #include "libOTe/Tools/Tools.h" #include <cryptoTools/Common/Log.h> #include <cryptoTools/Crypto/RandomOracle.h> #include <mmintrin.h> using namespace std; namespace osuCrypto { void KkrtNcoOtRece...
/*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without m...
/*========================================================================= * * Copyright NumFOCUS * * 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 * * https://www.apache.o...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include "LegacySecAttr.h" namespace ArcSHCLegacy { static std::string empty_string; static std::list<std::string> empty_list; LegacySecAttr::LegacySecAttr(Arc::Logger& logger):logger_(logger) { } LegacySecAttr::~LegacySecAttr(void) { } static char const * parse_...
// Kolmogorov-Smirnov 1st order asymptotic distribution // Copyright Evan Miller 2020 // // Use, modification and distribution are subject to 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) // // The Kolmogorov-Smirnov test in statis...
#include "G4NistManager.hh" #include "G4UnitsTable.hh" #include "G4Region.hh" #include "G4ProductionCuts.hh" #include "G4UserLimits.hh" #include "G4RotationMatrix.hh" #include "G4FieldManager.hh" #include "G4UniformMagField.hh" #include "G4TransportationManager.hh" #include "G4ChordFinder.hh" #include "SHDetectorConst...
/* * This is a simple example use of ofArduino * * ofArduino currently only supports the standard Arduino boards * (UNO, Duemilanove, Diecimila, NG, and other boards based on the * ATMega168 or ATMega328 microcontrollers * The Arduio FIO and Arduino Mini should also work. * The Arduino MEGA and other variants ba...
/* *********************************************************************************************************************** * * Copyright (c) 2017-2021 Advanced Micro Devices, Inc. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
// #include <bits/stdc++.h> #include <iostream> #include <vector> #include <algorithm> using namespace std; #define ar array #define ll long long const int MAX_N = 1e5 + 1; const int MOD = 1e9 + 7; const int INF = 1e9; const ll LINF = 1e18; int solve(int n) { int d = n%100; return 100 - d; } int main() { ...
// 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 "extensions/common/permissions/settings_override_permission.h" #include "base/strings/utf_string_conversions.h" #include "extensions/common/perm...
/**************************************************************************\ * Copyright (c) Kongsberg Oil & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Red...
// Copyright Catch2 Authors // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) // SPDX-License-Identifier: BSL-1.0 #include <catch2/internal/catch_random_number_generator.hpp> namespace Catc...
//***************************************************************************** // Copyright 2017-2020 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://w...
/** @file @section license License 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, Versi...
// Copyright 2021 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/content/shortcut_customization_ui/backend/accelerator_configuration_provider.h" namespace ash { namespace shortcut_ui { AcceleratorConfigu...
/* * JailLocation.hpp * * Created on: 9 Sep 2014 * Author: Ashley Davis (SgtCoDFish) */ #include "Ashley/core/Component.hpp" #ifndef JAILLOCATION_HPP_ #define JAILLOCATION_HPP_ namespace stinkingRich { class JailLocation : public ashley::Component { }; } #endif /* JAILLOCATION_HPP_ */
// 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 "native_client/src/trusted/plugin/nexe_arch.h" #include "native_client/src/trusted/platform_qualify/nacl_os_qualify.h" namespace { // The li...
/* Copyright (c) DataStax, 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, so...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 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 "addresstablemodel.h" ...
/**************************************************************************** * * 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...
#include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int maxn = 100; const int INF = 10000; int n,a,b; int g[maxn][maxn],dis[maxn]; bool vis[maxn]; int main() {     int i,j,k,d;     while (scanf("%d%d%d",&n,&a,&b)==3)     {         a--; b--;         for (i=0;i<n;i++)             for (j...
// Copyright (c) 2012-2013 The Syscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "consensus/merkle.h" #include "merkleblock.h" #include "serialize.h" #include "streams.h" #include "uint256.h" #incl...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2015 Benoit Steiner <benoit.steiner.goog@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You ca...
/*------------------------------------------------------------------------- * Vulkan Conformance Tests * ------------------------ * * Copyright (c) 2015 The Khronos Group Inc. * Copyright (c) 2015 Samsung Electronics Co., Ltd. * Copyright (c) 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (...
#include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "walletmodel.h" #include "freicoinunits.h" #include "addressbookpage.h" #include "optionsmodel.h" #include "sendcoinsentry.h" #include "guiutil.h" #include "askpassphrasedialog.h" #include "base58.h" #include "main.h" #include <QMessageBox> #include...
class Solution { public: int divide(int dividend, int divisor) { if (dividend == INT_MIN && divisor == -1) return INT_MAX; int sign = (dividend < 0) ^ (divisor < 0) ? -1 : 1; long long a = labs(dividend); long long b = labs(divisor); int res = 0; while (a ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Completed includes // Type namespace: UnityEngine.R...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE190_Integer_Overflow__unsigned_int_max_multiply_82_goodG2B.cpp Label Definition File: CWE190_Integer_Overflow.label.xml Template File: sources-sinks-82_goodG2B.tmpl.cpp */ /* * @description * CWE: 190 Integer Overflow * BadSource: max Set data to the max value for uns...
/* Copyright (C) 2009 Carlo de Falco 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 3 of the License, or (at your option) any later version. This program is distribute...