text
stringlengths
7
961k
/* * 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 ...
/* ================================================================================================== PoC Implememtation Calculating Sine Values via Data Points In a Table And Linear Interpolation ================================================================================================== */ #if __cplusplus < ...
#include "image_delegate.h" #include <QPixmap> #include <QPushButton> #include <QHBoxLayout> #include <QVBoxLayout> #include <QApplication> #include <QLabel> #include <QDesktopWidget> #include <QMessageBox> #include <QUrl> #include <QFile> #include <QNetworkAccessManager> #include <QNetworkReply> #include <QShortcut> #...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "beatsaber-hook/shared/utils/typedefs.h" #include "beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Xml.Schema.XmlSchemaObject #...
// Copyright (C) 2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "custom_kernels.hpp" #include <algorithm> #include <map> #include <memory> #include <stdexcept> #include <utility> #include <ie_core.hpp> #include <ie_data.h> #include <ie_layouts.h> #include <opencv2/gapi/core.hpp> #include <...
#if defined(LOCAL) #define PROBLEM_NAME "E" const double _max_double_error = 1e-9; #include "testutils.h" #endif #include <bits/stdc++.h> using namespace std; using vi = vector<int>; using vvi = vector<vi>; using ii = pair<int,int>; using vii = vector<ii>; using l = long long; using vl = vector<l>; using vvl = vector...
// 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 <algorithm> #include <string> #include "base/bind.h" #include "base/bind_helpers.h" #include "base/logging.h" #include "base/memory/ref_counted....
// Copyright (c) 2011 Conviersa Project. Use of this source code // is governed by the MIT License. #include <QFile> #include <QTemporaryFile> #include <QVariant> #include <QColor> #include <QDebug> #include "cv/ConfigManager.h" #include "json.h" namespace cv { ConfigManager::ConfigManager(const QString &defaultFile...
//-------------------------------------------------------------------------------------------------- // // File: m+m/m+mException.hpp // // Project: m+m // // Contains: The class declaration for objects thrown by exceptions within m+m. // // Written by: Norman Jaffe // // Copyright: (c) 2014 by H Plus ...
/** * @file statemachine/StateHandler.hpp * @brief Defines the Lock class */ #pragma once #include <vector> #include "switch/switch.hpp" #include "common/graphics/graphics.hpp" namespace id { class GameState; /** * @brief Handles a GameState */ class StateHandler { public: /** ...
/** * @file base_particle_dynamics.hpp * @brief This is the implementation of the template class for 3D build * @author Chi ZHang and Xiangyu Hu */ #pragma once #include "base_particle_dynamics.h" //=================================================================================================// namespace SPH { /...
//***************************************************************** // Copyright (c) 2013 Massachusetts Institute of Technology // // Developed exclusively at US Government expense under US Air Force contract // FA8721-05-C-002. The rights of the United States Government to use, modify, // reproduce, release, perform, ...
#include <array> #include <cstdint> #include <iostream> #include <list> #include <memory> #include <sstream> #include <string> #include <tuple> #include <vector> #if DBG_MACRO_CXX_STANDARD >= 17 #include <optional> #include <string_view> #include <variant> #endif #include <dbg.h> int main() { dbg("====== primitive...
//----------------------------------------------------------------------------- // TmxTile.cpp // // Copyright (c) 2010-2013, Tamir Atias // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * ...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QGraphicsScene> /******************************************************************************/ /*! * \brief MainWindow::MainWindow コンストラクタ * \param[in] parent 親クラスQWidgetポインタ */ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new...
// 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...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
#include "QtWidgets/QScrollBar/qscrollbar_wrap.h" #include <QWidget> #include "Extras/Utils/nutils.h" #include "QtWidgets/QWidget/qwidget_wrap.h" Napi::FunctionReference QScrollBarWrap::constructor; Napi::Object QScrollBarWrap::init(Napi::Env env, Napi::Object exports) { Napi::HandleScope scope(env); char CLASS...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2016 Torus Knot Software Ltd Also see acknowledgements in Readme.html You may use t...
/* Copyright 2018 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Test the minijail0 CLI using gtest. * * Note: We don't verify that the minijail struct was set correctly from these * flags as only libminijail...
#ifndef MIGRAPHX_GUARD_MIGRAPHLIB_RANGES_HPP #define MIGRAPHX_GUARD_MIGRAPHLIB_RANGES_HPP #include <algorithm> #include <vector> #include <initializer_list> #include <migraphx/rank.hpp> #include <migraphx/type_name.hpp> #include <migraphx/errors.hpp> #include <migraphx/requires.hpp> #include <migraphx/config.hpp> nam...
/* * Copyright (c) 2014 The devzhaoyou@dii_media 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. ...
// Copyright (c) 2014-2017, The Monero Project;Copyright (c) 2017-2018,The Wukong Project // // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are // permitted provided that the following conditions are met: // // 1. Redistributions of source code must ret...
/******************************************************************************* * Copyright 2018-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://www.apa...
#include<bits/stdc++.h> using namespace std; // By Miguel Ortiz https://github.com/miaortizma typedef long long ll; const int N = 1e4 + 10; ll cube[N]; unordered_set<ll> cubes; int main() { ios_base::sync_with_stdio(0); cin.tie(NULL); int t; cin >> t; for (int i = 1; i < N; ++i) { cube[i] = i * 1LL * i...
/* ISC License Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PR...
#include <FmodPluginPCH.h> #include <Core/Messages/CommonMessages.h> #include <Core/Messages/DeleteObjectMessage.h> #include <Core/ResourceManager/Resource.h> #include <Core/WorldSerializer/WorldReader.h> #include <Core/WorldSerializer/WorldWriter.h> #include <FmodPlugin/Components/FmodEventComponent.h> #include <Fmod...
#ifndef _WAILEA_UNDIRECTED_JTS_INLINE_HPP_ #define _WAILEA_UNDIRECTED_JTS_INLINE_HPP_ namespace Wailea { namespace Undirected { using namespace std; inline JTSTreeNode::JTSTreeNode(JTSTree& tree): mTree(tree), mNodeType(TypeUnknown), mParent(tree.nil()), mPertinentChildrenCountProcessed(0), mGe...
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD+Patents license found in the * LICENSE file in the root directory of this source tree. */ #include <cstdio> #include <cstdlib> #include <memory> #include <vector> #include <gtest/gtest.h> #in...
#ifndef _3126fdfc_a126_464d_8960_b6d102baedcc #define _3126fdfc_a126_464d_8960_b6d102baedcc # include "tracer.hxx" # include "lowlevel/intset.hxx" # include "lowlevel/digest.hxx" # include <unordered_map> # include <unordered_set> namespace programr { class TracerXml: public Tracer { struct Data { std::u...
//==---------------- vadd_raw_send.cpp - DPC++ ESIMD on-device test //-------------==// // // 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 "AudioQueue.h" #include "Decoder.h" AudioQueue::~AudioQueue(){ clear_queue(this->head); } void AudioQueue::clear_queue(AudioBuffer *&head){ std::lock_guard<std::mutex> lg(this->mutex); while (head){ auto next = NEXT(head); release_buffer(head); head = next; } } void AudioQueue::set_expected_format...
/*========================================================================= * * 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...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim: set ts=4 et sw=4 tw=80: */ /* 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 can obtain one at http://mozilla.org/MPL/2.0/. */ ...
#include <cstdint> #include <vector> #include <algorithm> #include <streambuf> #include <sstream> #include <iostream> #include <core/utils/io> #include "../io.h" #include "binscene.h" namespace { const std::size_t MaterialNameLength = 256; const std::size_t TextureNameLength = 256; const std::size_t TextureFile...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2020, Thierry Lelegard // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the f...
//***************************************************************************** // Copyright 2017-2019 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...
#include "KeyboardManager.h" namespace vidrevolt { const std::map<int, std::string> KeyboardManager::codes = KeyboardManager::makeCodeMappings(); std::vector<std::shared_ptr<Keyboard>> KeyboardManager::keyboards_; std::map<int, std::string> KeyboardManager::makeCodeMappings() { std::map<int, std::...
// 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/ledger/bin/app/page_delegate.h" #include <fuchsia/ledger/cpp/fidl.h> #include "gtest/gtest.h" #include "src/ledger/bin/app/active_page_mana...
/* 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...
class respawnWaves { file = "components\respawnWaves"; class respawnWave{}; class respawnWaveServer{}; class respawnDialogSupport{}; }; class respawnWaves_ui { file = "components\respawnWaves\ui_functions"; class respawnTitle_onLoad{}; };
// Copyright (c) 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 "assert.h" #include "chainparams.h" #include "main.h" #include "util.h" #inc...
// 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 "factory_reset.h" #include <fcntl.h> #include <fidl/fuchsia.device/cpp/wire.h> #include <fuchsia/hardware/power/statecontrol/cpp/fidl.h> #include...
#include <IO/ConcatReadBuffer.h> #include <IO/ReadBufferFromMemory.h> #include <Common/typeid_cast.h> #include <DataStreams/AddingDefaultBlockOutputStream.h> #include <DataStreams/AddingDefaultsBlockInputStream.h> #include <DataStreams/OwningBlockInputStream.h> #include <DataStreams/ConvertingBlockInputStream.h> #inc...
#include<stdio.h> #include<string.h> int main() { int i,j,k,t,n,cas; char ch[280]; scanf("%d",&t); for(cas=1;cas<=t;cas++) { int count=0; scanf("%d",&n); getchar(); for(i=0;i<n;i++) { scanf("%c",&ch[i]); } for(i=0;i<n;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 "gtest/gtest.h" #include "interception_workflow_test.h" namespace fidlcat { // zx_pmt_unpin tests. std::unique_ptr<SystemCallTest> ZxPmtUnpin(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 ...
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
#include "Sword.h" using namespace Zeni; using namespace std; Sword::Sword(const Zeni::Point2f &position_, const float &theta_, const Team& team_, Player* player_) : Weapon(position_, 50.0f, team_), owner(player_), dir(theta_) { } bool Sword::animation_over() { return ani...
#include <algorithm> #include "db.h" #include "netbase.h" #include "protocol.h" #include "serialize.h" #include "uint256.h" #define BITCOIN_SEED_NONCE 0x0539a019ca550825ULL using namespace std; class CNode { SOCKET sock; CDataStream vSend; CDataStream vRecv; unsigned int nHeaderStart; unsigned int nMessa...
// Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018-2019 The UNIGRID organization // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "masternode.h" #inclu...
/** * PANDA 3D SOFTWARE * Copyright (c) Carnegie Mellon University. All rights reserved. * * All use of this software is subject to the terms of the revised BSD * license. You should have received a copy of this license along * with this source code in a file named "LICENSE." * * @file eventHandler.cxx * @au...
#include "CFB.h" CFB::CFB(SymAlg * instance, const std::string & iv) : algo(instance) { blocksize = algo -> blocksize() >> 3; const_IV = iv; if (const_IV == ""){ const_IV = std::string(blocksize, 0); } } std::string CFB::encrypt(const std::string & data){ const std::string temp = pkcs5...
//========= Copyright Valve Corporation, All rights reserved. ============// // // REMOTE_CMDS.CPP // // Remote commands received by an external application and dispatched. //=====================================================================================// #include "vxconsole.h" remoteCommand_t *g_remoteCommand...
// // Copyright (c) 2014-2020 CNRS INRIA // #ifndef __eigenpy_eigen_from_python_hpp__ #define __eigenpy_eigen_from_python_hpp__ #include "eigenpy/fwd.hpp" #include "eigenpy/numpy-type.hpp" #include "eigenpy/eigen-allocator.hpp" #include "eigenpy/scalar-conversion.hpp" #include <boost/python/converter/rvalue_from_pyt...
#ifdef __cplusplus extern "C"{ #include "util.h" } #endif #include <string.h> #include <gtest/gtest.h> TEST(URIL, fly_util_strcpy) { char src[] = "Hello world"; char dist[100]; EXPECT_TRUE(fly_until_strcpy(dist, src, NULL, NULL) == 1); for (int i=0; i<strlen(src); i++) EXPECT_TRUE(src[i] == dist[i]); EXPECT...
// Copyright 2018 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 "run_test.h" #include <lib/fdio/spawn.h> #include <lib/syslog/cpp/log_settings.h> #include <lib/syslog/cpp/macros.h> #include <lib/zx/process.h> ...
/** * Copyright (C) 2012-2015 MongoDB Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be...
// Copyright 2010 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 ...
// 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 "gtest/gtest.h" #include "interception_workflow_test.h" namespace fidlcat { // zx_interrupt_create tests. std::unique_ptr<SystemCallTest> ZxInt...
// Copyright RedPortal, mujjingun 2017 - 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) // Example code for executing Multi-layer perception model // for the MNIST dataset. #include <algorit...
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2013 The PHP Group | +---------...
#include <string.h> #include <errno.h> #include "client.h" Client::Client() { memset(&sock4request, 0, sizeof(sock4request)); memset(&sock4reply, 0, sizeof(sock4reply)); } void Client::setServreID(const int &id) { this->id = id; } void Client::setHostname(const std::string &name) { this->hostname = ...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> #include <stdarg.h> #ifdef amigaos4 #include <proto/exec.h> #include <proto/dos.h> #include <proto/intuition.h> #include <proto/graphics.h> #include <proto/layers.h> #include <proto/retroMode.h> #else #include "os4_emu.h" #endif int scrolled...
#include "Mapper_000.h" Mapper_000::Mapper_000(uint8_t prg_banks_num, uint8_t chr_banks_num) : Mapper(prg_banks_num, chr_banks_num) { extend_space_.resize(0x8000 - 0x4020, 0); // mapping 0x4020 to 7ffff } Mapper_000::~Mapper_000() { } void Mapper_000::reset() { } bool Mapper_000::prg_addr(uint16_t addr, uint16...
/******************************************************************************* * Copyright 2018-2019 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.apa...
#include <animations/RandomSparklesAnimation.h> RandomSparklesAnimation::RandomSparklesAnimation(int length, const ColorPalette& palette) : AnimationPattern(length, palette) { } void RandomSparklesAnimation::stepAnimation(CRGB* buffer, int elapsedTime) { static int sparkleChance; int brightness = 0;...
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2012 */ #include "bitcoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "optionsdialog.h" #include "aboutdialog.h" #include "clientm...
#include <chrono> #include <ctime> #include "clock.h" namespace Utilities { Clock::Clock() : mLastTick(0), mPace(PACE::REAL), mSpeedMultiplier{ 0.25, 0.5, 1.0, 2.0, 4.0 } { resume(); } void Clock::increasePace() { if (mPace != PACE::QUAD) mPace = static_cast<PACE>(static_cast<int>(mPace) + 1); }...
#include "TFCustomerClient.h" #include "TFCustomerService.h" #include <time.h> #include <unistd.h> #include <string.h> #include "../PrintLog.h" #include "../EncryptWrapper.h" CTFCustomerClient::CTFCustomerClient( void* pServer,const char* szIP ) { struct timespec ts_now; clock_gettime(CLOCK_REALTIME,&ts_now);...
//-------------------------------------------------------------------------------------- // File: WICTextureLoader.cpp // // Function for loading a WIC image and creating a Direct3D runtime texture for it // (auto-generating mipmaps if possible) // // Note: Assumes application has already called CoInitializeEx // // Wa...
// Copyright 2012 Chris Jang (fastkor@gmail.com) under The Artistic License 2.0 #include "DeviceBase.hpp" using namespace std; namespace chai_internal { int DeviceBase::getDeviceNum(void) const { return _deviceNum; } bool DeviceBase::deviceIsCPU(void) const { return _deviceIsCPU; } MemInterp& DeviceBase::...
#include "RHGamestationConf.h" #include <iostream> #include <fstream> #include <boost/regex.hpp> #include "Log.h" #include <boost/algorithm/string/predicate.hpp> RHGamestationConf *RHGamestationConf::sInstance = NULL; boost::regex validLine("^(?<key>[^;|#].*?)=(?<val>.*?)$"); boost::regex commentLine("^;(?<key>.*?)=(?...
/* * 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...
/** * Copyright 2019 Adobe. All rights reserved. * This file is licensed to you 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) 2012-2015 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 "serialize.h" #include "streams.h" #include "hash.h" #include "test/test_hostmasternode.h" #include <stdint.h> #in...
// Copyright 2012 the V8 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. #include "src/base/numbers/strtod.h" #include <stdarg.h> #include <cmath> #include <limits> #include "src/base/numbers/bignum.h" #include "src/base/n...
#include <bits/stdc++.h> using namespace std; string removeTrailingSpaces(string A) { string B; int end = A.size() - 1; for (int i = A.size() - 1; i >= 0; i--) { if (A[i] == ' ') { end--; } else { break; } } for (int j = 0; j <= end; j++) { B.push_back(A[j]); } ...
#include <algorithm> #include "Alignment/Geners/interface/AbsReference.hh" #include "Alignment/Geners/interface/CatalogEntry.hh" #include "Alignment/Geners/interface/AbsArchive.hh" #include "Alignment/Geners/interface/IOException.hh" // Notes on implementation // // The following invariants should be preserved: // //...
// Tencent is pleased to support the open source community by making ncnn available. // // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy ...
// // Copyright (c) 2016-2020 Kris Jusiak (kris 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 <array> #include <boost/sml.hpp> #include <memory> #include <string> #include <typ...
#include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <iomanip> #include <ctime> #include <sstream> #include <cctype> #include <cmath> using namespace std; const int size = 50; // global variables void userGreetings(); void end(); void managerGreetings(string letter[], string name[], str...
// This file if part of the llir-opt project. // Licensing information can be found in the LICENSE file. // (C) 2018 Nandor Licker. All rights reserved. #include <iostream> #include <cstdlib> #include <llvm/Support/FileSystem.h> #include <llvm/Support/InitLLVM.h> #include <llvm/Support/MemoryBuffer.h> #include <llvm/...
#include <Basic/data.h> #include <Basic/process.h> using namespace std; using namespace NEDBnamespace; ///////////////////////////////////////////////////////////////////// void Table::InsertValues(string conditions, string values){ /* 在数据表中插入数据行 */ try{ /* Lock Check */ if(!Status...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2019 The BitRub Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <miner.h> #include <amount.h> #include <chain.h> #include <chainparams.h...
#include <cstdio> #include <string> #include <vector> #include "caffe/solver.hpp" #include "caffe/util/format.hpp" #include "caffe/util/hdf5.hpp" #include "caffe/util/io.hpp" #include "caffe/util/upgrade_proto.hpp" namespace caffe { template<typename Dtype> void Solver<Dtype>::SetActionFunction(ActionCallback func)...
#include "Pulse.hpp" namespace EnlightingLetters { Pulse::Pulse(std::shared_ptr<GlobalController> state, std::shared_ptr<LedController> controller) : mGlobalController(state), mController(controller) {} void Pulse::PerformUpdate() { mCurrentBrightness = (mIsAscending ? mCurrentBrightness + 5 : mCurrentBrightne...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED* taurusnetwork_strings[] = { QT_TRANSLATE_NOOP("purpleturtle-core", "" "(1 = keep tx meta data e.g. acc...
/** * 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 "logdevice/server/locallogstore/RocksDBSettings.h" #include <alloca.h> #inclu...
// BITSET2 // // Copyright Claas Bontus // // Use, modification and distribution is subject to the // Boost Software License, Version 1.0. (See accompanying // file LICENSE.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Project home: https://github.com/ClaasBontus/bitset2 // #ifndef BITSET2_ULLONG...
#include "IO.h" #include "ModelCommon.h" #include "Utilities.h" #include "Git.h" #include "Dependencies.h" #include <valarray> #include <fstream> #include <sstream> #include <iostream> #include <exception> namespace EERAModel { namespace IO { void ImportConsistencyCheck(const std::string& filePath, const unsigned in...
// Time: O(n + w^2), n = w * l, // n is the length of S, // w is the number of words, // l is the average of word lengths // Space: O(l) class Solution { public: string toGoatLatin(string S) { unordered_set<char> vowel{'a', 'e', 'i', 'o', 'u', '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" // Including type: System.Enum #include "System/Enum.h...
// 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 <stdint.h> #include "base/files/file_path.h" #include "base/strings/utf_string_conversions.h" #include "build/build_config.h" #include "cont...
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the...
/* Copyright 2018 The Blueoil 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 agre...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * 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 noti...
/* $info$ tags: LinuxSyscalls|syscalls-x86-64 $end_info$ */ #include "Tests/LinuxSyscalls/Syscalls.h" #include "Tests/LinuxSyscalls/Types.h" #include "Tests/LinuxSyscalls/x64/Syscalls.h" #include <stddef.h> #include <stdint.h> #include <time.h> #include <sys/syscall.h> #include <sys/time.h> #include <sys/times.h> #in...
#include "PreCompiled.h" #include "tsMenu.h" #include "Icons.h" #ifdef __WXMSW__ #include "VSMenuItem.h" #define WXMENUITEM VSMenuItem #else #define WXMENUITEM wxMenuItem #endif #ifdef _DEBUG #define new DEBUG_NEW #endif tsMenuArray tsMenu::s_AllMenus; tsMenu::tsMenu( const wxString& title, lon...