text
stringlengths
7
961k
// $Id: remote_dgram_client_test.cpp 91670 2010-09-08 18:02:26Z johnnyw $ // Tests out the Internet domain IPC-SAP dgram abstraction. #include "ace/OS_main.h" #include "ace/OS_NS_stdlib.h" #include "ace/Mem_Map.h" #include "ace/SOCK_Dgram.h" #include "ace/INET_Addr.h" #include "ace/Get_Opt.h" #include "ace/Log_Msg.h"...
// Copyright (C) 2016 - 2020 European Spallation Source, ERIC. See LICENSE file //===----------------------------------------------------------------------===// /// /// \file /// /// \brief //===----------------------------------------------------------------------===// #include <gdgem/srs/BuilderVMM3.h> #include <gdg...
// Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. // // --------------------------------------------------------------------------- // // This file was generated by the CEF translato...
/* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist...
#include "wordcolor.h" #include "ui_wordcolor.h" WordColor::WordColor(QWidget *parent) : QDialog(parent), ui(new Ui::WordColor) { ui->setupUi(this); } WordColor::~WordColor() { delete ui; }
#include "Wiring.h" #include "piggy-prog.ino"
#include <bears/protocol/smt_operations.hpp> #include <bears/protocol/validation.hpp> #ifdef BEARS_ENABLE_SMT namespace bears { namespace protocol { void common_symbol_validation( const asset_symbol_type& symbol ) { symbol.validate(); FC_ASSERT( symbol.space() == asset_symbol_type::smt_nai_space, "legacy symbol...
/* Copyright 2015 Adobe Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ /**************************************************************************************************/ #ifndef STLAB_CONCURRENCY_FUTUR...
/* Copyright (C) 2010-2013 Le Hoang Quyen (lehoangq@gmail.com) This program is free software; you can redistribute it and/or modify it under the terms of the MIT license. See the file COPYING.txt included with this distribution for more information. */ #include "../HQPlatformDef.h" #include "../HQEngineCustomHeap...
/**************************************************************************** Copyright (c) 2014-2016 SDKBOX Inc ****************************************************************************/ #ifndef _PLUGIN_INMOBI_HPP_ #define _PLUGIN_INMOBI_HPP_ #include <string> #include <map> namespace sdkbox { class InM...
// //! @file cFloat.Tests.cpp // #include "pch.h" #include "cFloat.h" #include "cArray.h" #include "cTypes.h" namespace Gray { UNITTEST_CLASS(cFloat) { UNITTEST_METHOD(cFloat) { // Test basic assumptions about floats. cFloat32 f1(65536); cFloat32 f2; f2.m_v.u_f = 65536; UNITTEST_TRUE(f1.m_v.u_f =...
/* * The MIT License * * Copyright (c) 1997-2021 The University of Utah * * 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 * right...
#ifndef __RESOLVSERVICE_HPP__ #define __RESOLVSERVICE_HPP__ #include <atomic> #include <condition_variable> #include <functional> #include <mutex> #include <stdint.h> #include <string> #include <thread> #include <vector> class ResolvService { struct QueueItem { uint32_t ip; std::function<void(...
#include "ImageSettings.h" namespace imageio { ImageSettings::ImageSettings( std::string displayName, statistics_range_t statistics, ComponentType componentType, InterpolationMode interpMode ) : m_displayName( std::move( displayName ) ), m_componentType( std::move( comp...
#include "wspch.h" #include "Buffer.h" #include "Renderer.h" #include "Weasel/Platform/OpenGL/OpenGLBuffer.h" namespace Weasel { Ref<VertexBuffer> VertexBuffer::Create(uint32_t size) { switch (Renderer::GetAPI()) { case RendererAPI::API::None: WS_CORE_ASSERT(false, "RendererAPI:None is not supported"); return...
#include "geometryViewObject.h" #include "geometrySetViewData.h" #include <vtkPolyData.h> #include <vtkPointData.h> #include <vtkCellData.h> #include <vtkDataArray.h> #include "settings/busAPI.h" #include "settings/GraphOption.h" namespace MainWidget { GeometryViewObject::GeometryViewObject(ViewObjType type, int be...
// 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 "base/base_switches.h" #include "base/command_line.h" #include "base/stl_util.h" #include "build/build_config.h" #include "components/nacl/common...
/* * 3-D var-scanning code. * Generated automatically from the following pseudo-code: * * N = 2; * omp * loop (1..N - 1) * { * call (calc_block (bp, region_shift_num, nphases, phase, rank_idxs)); * } * */ #ifndef OMP_PRAGMA #define OMP_PRAGMA _Pragma("omp parallel for schedule(dynamic,1) proc_bind(spread)"...
#include <socket.h> #include <pthread.h> #include <errno.h> #include <fcntl.h> #include "url.h" #include "socket.h" #include "threads.h" #include "qstring.h" #include "dso.h" /* regex pattern for parsing href */ static const char * HREF_PATTERN = "href=\"\\s*\\([^ >\"]*\\)\\s*\""; /* convert header string to Header ...
// Copyright 2013 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/compiler/backend/code-generator.h" #include "src/base/overflowing-math.h" #include "src/codegen/assembler-inl.h" #include "src/codegen/ca...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-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 "chainparamsbase.h" #include "tinyformat.h" #include "util.h" #include <ass...
// Copyright 2020 The IREE Authors // // Licensed 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 //===- SPIRVTileAndDistribute.cpp -----------------------------------------===// // // This pass ...
// e.hpp class class_e;
#include <iostream> #include <stdexcept> #include <gtest/gtest.h> #include <common/LocalDateTime.h> void fillStackWithGarbage() { volatile uint64_t a = 0xAABBCCDDEEFF0011ULL; volatile uint64_t b = 0x2233445566778899ULL; std::cout << a + b << '\n'; } void checkComparison() { LocalDateTime a("2018-07-...
#pragma once #include <string> #include "cryptopp/sha3.h" #include "./detail/CryptoppHasher.hpp" namespace Ethereum{ typedef CryptoppHasher<CryptoPP::SHA3_256, 32> Sha3; }
// // Copyright (C) 2010-2014 Outracks Technologies // // 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, me...
// 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) 2017 Sony Interactive Entertainment Inc. * * 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 conditio...
#include <memory> #include <string> #include <Eigen/Core> #include <aslam/common/hash-id.h> #include <maplab-common/pose_types.h> #include <maplab-common/test/testing-entrypoint.h> #include <maplab-common/test/testing-predicates.h> #include <maplab-common/unique-id.h> #include <posegraph/unique-id.h> #include <vi-map...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2017 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 <rpc/blockchain.h> #include <amount.h> #include <chain.h> #include <chainpar...
#include "StringUtils.h" #include <unicode/uchar.h> bool CFF::isWhitespace(const UChar32 cp) { return u_isspace(cp); } bool CFF::isNewline(const UChar32 cp) { return cp == U'\n'; } bool CFF::isNumeric(const UChar32 cp) { return u_isdigit(cp); } bool CFF::isAlphabetic(const UChar32 cp) { return u_isalpha(cp...
#ifndef AMGCL_MPI_UTIL_HPP #define AMGCL_MPI_UTIL_HPP /* The MIT License Copyright (c) 2012-2021 Denis Demidov <dennis.demidov@gmail.com> Copyright (c) 2014, Riccardo Rossi, CIMNE (International Center for Numerical Methods in Engineering) Permission is hereby granted, free of charge, to any person obtaining a copy ...
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// // PakDoc.cpp : implementation file // #include "stdafx.h" #include "hammer.h" #include "PakDoc.h" #ifdef...
/** * Copyright (C) 2016 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 useful, * but WITH...
/***************************************************************************** $Id$ File: em.cpp Date: 06Apr06 Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved. Gmail: blackhedd This program is free software; you can redistribute it and/or modify it under the terms of either: 1) the GNU Gene...
/* * Copyright 2009-2010 Cybozu Labs, Inc. * Copyright 2011-2014 Kazuho Oku * 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 copy...
#include "include/window_to_front/window_to_front_plugin.h" #include <flutter_linux/flutter_linux.h> #include <gtk/gtk.h> #include <sys/utsname.h> #define WINDOW_TO_FRONT_PLUGIN(obj) \ (G_TYPE_CHECK_INSTANCE_CAST((obj), window_to_front_plugin_get_type(), \ WindowToFrontPlugin)) struct...
/* //@HEADER // ************************************************************************ // // KokkosKernels 0.9: Linear Algebra and Graph Kernels // Copyright 2017 Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, // the U.S. Government retain...
// MIT License // // Copyright (c) 2020, The Regents of the University of California, // through Lawrence Berkeley National Laboratory (subject to receipt of any // required approvals from the U.S. Dept. of Energy). All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy...
#include "Interface.h" #include "../Ares.h" #include <StringTable.h> #include <MessageBox.h> #include <Strsafe.h> #include <array> //! Overrides the default action and queue the user defined one. /*! Called from within the button click event to override the game's default action. Sets the user defined action and/...
/* 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...
// @HEADER // *********************************************************************** // // Panzer: A partial differential equation assembly // engine for strongly coupled complex multiphysics systems // Copyright (2011) Sandia Corporation // // Under the terms of Contract DE-AC04-94AL85...
/* 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...
Given the head of a linked list and an integer val, remove all the nodes of the linked list that has Node.val == val, and return the new head. Example 1: Input: head = [1,2,6,3,4,5,6], val = 6 Output: [1,2,3,4,5] Example 2: Input: head = [], val = 1 Output: [] Example 3: Input: head = [7,7,7,7], val = 7 Output: [] ...
/* 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...
#include<bits/stdc++.h> using namespace std; // By Miguel Ortiz https://github.com/miaortizma const int N = 5 * 1e5 + 10; int main() { ios_base::sync_with_stdio(0); cin.tie(NULL); int n; cin >> n; return 0; }
// Copyright (c) 2018 PaddlePaddle 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...
// Copyright (c) 2020 Chris Ohk // I am making my contributions/submissions to this project solely in our // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #ifndef YAHTZEE_MASTER_PYTHON_GAME_MANAGER_HPP #define YAHTZEE_MASTER_PYTHON_GAME_MANAGER_HPP #include <...
// 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 <stddef.h> #include <stdint.h> #include <memory> #include <vector> #include "base/stl_util.h" #include "components/webcrypto/algorithms/aes.h" ...
/********************************************************************** * Copyright (c) 2008-2014, 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 the...
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <IPersistFolder2.hpp> START_ATF_NAMESPACE typedef IPersistFolder2 *LPPERSISTFOLDER2; END_ATF_NAMESPACE
#include "Configuration.h" #include "solve.h" #include <iostream> int main(int const argc, char const* const argv[]) { using namespace ::spsolver; if (argc < 17) { std::cerr << "Usage: " << argv[0] << " Tile1 Tile2 ... Tile16\n"; return 1; } // returns true iff 'conf' is the 4x4 target configur...
/* __ _____ _____ _____ __| | __| | | | JSON for Modern C++ (test suite) | | |__ | | | | | | version 3.9.0 |_____|_____|_____|_|___| https://github.com/nlohmann/json Licensed under the MIT License <http://opensource.org/licenses/MIT>. SPDX-License-Identifier: MIT Copyright (c) 2013-2019 Niels Lo...
// 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 "chrome/browser/net/network_stats.h" #include "base/bind.h" #include "base/logging.h" #include "base/message_loop.h" #include "base/metrics/...
#include <bits/stdc++.h> #define sd(x) scanf("%d",&x) #define sd2(x,y) scanf("%d%d",&x,&y) #define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z) #define fi first #define se second #define pb push_back #define mp make_pair #define foreach(it, v) for(auto it=(v).begin(); it != (v).end(); ++it) #define _ ios_base::sync_with_stdi...
// Copyright 2020 The Autoware 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 applicable law or a...
#include <bits/stdc++.h> using namespace std; int main() { int t,kase = 1; cin>>t; while(t--) { int i,temp2,position = 0,n,ocr[100] = {0},temp; cin>>n; int numb[n]; for(int i = 0; i < n; i++) cin>>numb[i]; for(int i = 0; i < n; i++) { ...
/* Copyright (c) 2009-2010 Sony Pictures Imageworks Inc., et al. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of co...
#ifndef TEST_403_CC #define TEST_403_CC #include "DispatcherClient.h" #include "UseTemporaryAllocationBlock.h" #include "SharedEmployee.h" #include "StorageClient.h" #include "ResourceManagerServer.h" #include <iostream> /** * Test: Dispatcher Server and Client * * Prerequisites: Have the DispatcherServer (Test40...
#include <EditorFrameworkPCH.h> #include <EditorEngineProcessFramework/Gizmos/GizmoHandle.h> #include <EditorFramework/Assets/AssetDocument.h> #include <EditorFramework/Visualizers/DirectionVisualizerAdapter.h> #include <ToolsFoundation/Object/ObjectAccessorBase.h> ezDirectionVisualizerAdapter::ezDirectionVisualizerA...
//Prime number: #include <iostream> using namespace std; int main() { int a; cout << "enter the number you want to check"; cin >> a; if(a % 1 ==0 && a % 2 ==0 ||a % 3 ==0 ||a % 6 ==0 ){ cout<<a<<" not a prime number"<<endl; } else if(a % 1 ==0 && a % a ==0){ cout<<a<<" a prime number"<<endl; } el...
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <cpp_interfaces/impl/ie_executable_network_thread_safe_default.hpp> #include <ngraph/function.hpp> #include "template_async_infer_request.hpp" #include "template_config.hpp" #include "template_infer_request.h...
// 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/chromeos/login/saml/saml_offline_signin_limiter.h" #include <string> #include <utility> #include "base/bind.h" #include "base/b...
#include <iostream> namespace no_if { class Vector2D { double x_; double y_; public: Vector2D(double x, double y) : x_{x}, y_{y} {} template <std::size_t idx> double get(); }; template<> double Vector2D::get<0>() { return x_; } template<> double Vector2D::get<1>() { return y_; } } namespace with_if { cl...
/******************************************************************************* * * MIT License * * Copyright 2021-2022 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal *...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/BGL-config.h> #endif #include <init....
// // Copyright 2019 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 ...
/* MIT License Copyright (c) 2017 by Flix (https://github.com/Flix01) 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, mo...
#ifdef USE_CUDA #include <cmath> #include <sstream> #include <stdexcept> #include <gtest/gtest.h> #include <test/cpp/tensorexpr/test_base.h> #include <test/cpp/tensorexpr/padded_buffer.h> #include <torch/csrc/jit/tensorexpr/cuda_codegen.h> #include <torch/csrc/jit/tensorexpr/ir_simplifier.h> #include <torch/csrc/ji...
/* * 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 * distribut...
/* * 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 <Atom/RHI/Factory.h> #include <Atom/RHI/FrameGraphInterface.h> #include <Atom/RHI/FrameGrap...
//===- unittests/AST/CommentParser.cpp ------ Comment parser tests --------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "albumdestination.h" AlbumDestination::~AlbumDestination() { } AlbumDestination::AlbumDestination(QObject *parent) : QObject(parent) { } bool AlbumDestination::parseFilenames(QString filenamesJSON) { (void) filenamesJSON; bool ok = true; return ok; } bool AlbumDestination::parseDirectories(QSt...
#include <FoundationPCH.h> #include <Foundation/Application/Config/FileSystemConfig.h> #include <Foundation/IO/FileSystem/FileReader.h> #include <Foundation/IO/FileSystem/FileSystem.h> #include <Foundation/IO/FileSystem/FileWriter.h> #include <Foundation/IO/OSFile.h> #include <Foundation/IO/OpenDdlReader.h> #include <...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: linux dependant ASM code for CPU capability detection // // $Workfile: $ // $NoKeywords: $ //=============================================================================// #define cpuid(in,a,b,c,d) \ asm("push...
//***************************************************************************** // 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...
//===--- llvm/Support/DataStream.cpp - Lazy streamed data -----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// 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 "chrome/browser/web_applications/web_app_shortcut.h" #include <utility> #include "base/bind.h" #include "base/callback.h" #include "base/locati...
/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: $RCSfile: fltkShape3D.cxx,v $ Language: C++ Date: $Date: 2002/02/20 13:56:57 $ Version: $Revision: 1.8 $ Copyright (c) 2002 Insight Consortium. All rights r...
// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC") // // 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 <config.h> #include <util/stopwatch.h> #...
/* test/unittests/e_world.test.cpp * * Copyright (c) 2021 Mitya Selivanov * * This file is part of the Laplace project. * * Laplace is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See...
// Copyright (c) 2012-2013 The Bitcoin Core developers // Copyright (c) 2017-2019 The PIVX developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "random.h" #include "scheduler.h" #if defined(HAVE_CONFIG_H) #include...
#pragma once #include <sliding_window/argument_parsing/shared.hpp> namespace sliding_window::app { void init_build_parser(seqan3::argument_parser & parser, build_arguments & arguments); void run_build(seqan3::argument_parser & parser); } // namespace sliding_window::app
#include "Board.h" #include <cmath> namespace Hopper { Board::Board() { fenSet((const char*)STARTFEN); } void Board::fenSet(const char* fs) {//sets board to state outlined in FEN string cturn = 1; for (int i = 0; i < MEMORY; ++i) { fHist[i] = 0; cHist[i] = 0; vHist[i] = 0; mHist[i] = NULLMOV...
//===--- Type.cpp - Swift Language Type ASTs ------------------------------===// // // 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 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/ntp_snippets/category.h" #include "testing/gmock/include/gmock/gmock.h" #include "testing/gtest/include/gtest/gtest.h" namespace nt...
#ifndef STAN_MATH_REV_CORE_VDD_VARI_HPP #define STAN_MATH_REV_CORE_VDD_VARI_HPP #include <stan/math/rev/core/vari.hpp> namespace stan { namespace math { class op_vdd_vari : public vari { protected: vari* avi_; double bd_; double cd_; public: op_vdd_vari(double f, vari* avi, double b, double c) : var...
#include "StdAfx.h" #include "LogOptionsDlg.h" #include "logging/RhoLog.h" LRESULT CLogOptionsDlg::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { #ifdef OS_WINCE SHINITDLGINFO shidi; shidi.dwMask = SHIDIM_FLAGS; shidi.dwFlags = SHIDIF_SIZEDLGFULLSCREEN;//SHIDIF_DONEBUTTON | SHIDIF_SIZEDLG...
#ifndef REVERSE_INTEGER_HPP #define REVERSE_INTEGER_HPP // https://leetcode.com/problems/reverse-integer/description/ // Given a 32-bit signed integer, reverse digits of an integer. // Example 1: // Input: 123 // Output: 321 // Example 2: // Input: -123 // Output: -321 // Example 3: // Input: 120 // Output: 21 /...
// Copyright (c) 2014-2015 The Darkcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "darksend.h" #include "main.h" #include "init.h" #include "util.h" #include "masternodeman.h" #include "instantx.h" ...
#include "App.hpp" #include "Constants.hpp" #include "Log.hpp" #include "MainState.hpp" /////////// - StormKit::log - /////////// #include <storm/log/LogHandler.hpp> /////////// - StormKit::window - /////////// #include <storm/window/EventHandler.hpp> #include <storm/window/Window.hpp> /////////// - StormKit::render...
//----------------------------------*-C++-*-----------------------------------// /*! * \file cdi_ipcress/IpcressFile.t.hh * \author Kelly Thompson * \date Tue Aug 22 15:15:49 2000 * \brief Template Implementation file for IpcressFile class. * \note Copyright (C) 2016-2020 Triad National Security, LLC. * ...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
// OJ: https://leetcode.com/problems/find-smallest-letter-greater-than-target/ // Author: github.com/lzl124631x // Time: O(NlogN) // Space: O(1) class Solution { public: char nextGreatestLetter(vector<char>& letters, char target) { auto i = upper_bound(letters.begin(), letters.end(), target); return...
// // Created by Imran Thompson on 8/4/18. // #include <iomanip> #include "HexBlock.h" using namespace std; HexBlock::HexBlock() : fBuffer(), fSize(0) {} // file read function istream& HexBlock::read(istream &aIStream) { aIStream.read( (char*)this->fBuffer, 16); this->fSize = aIStream.gcount(); return ...
/* 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 2019 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...
//----------------------------------------------------------------------------- // MurmurHash3 was written by Austin Appleby, and is placed in the public // domain. The author hereby disclaims copyright to this source code. // Note - The x86 and x64 versions do _not_ produce the same results, as the // algorithms are ...
/* * Copyright (c) 2017 Daniel Koch, James Jackson and Gary Ellingson, BYU MAGICC Lab. * 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 a...
// 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 "base/test/test_simple_task_runner.h" #include "base/threading/thread_task_runner_handle.h" #include "components/gcm_driver/gcm_channel_status_re...