text
stringlengths
5
1.04M
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2008-2011 Bruno Lalande, Paris, France. // Copyright (c) 2009-2011 Mateusz Loskot, London, UK. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library ...
/*** * * Copyright (c) 1996-2001, Valve LLC. All rights reserved. * * This product contains software technology licensed from Id * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. * All Rights Reserved. * * This source code contains proprietary and confidential information of * Valve L...
#include <Arduino.h> #include "publisher.hpp" #include "subscriber.hpp" #include "parameter.hpp" #include <watchdog.h> // Node settings static constexpr uint32_t nodeID = 100; static constexpr uint8_t swVersion = 1; static constexpr uint8_t hwVersion = 1; static const char *nodeName = "org.arvp.example_node"; // appl...
// Copyright 2019 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/nigori/nigori_model_type_processor.h" #include <memory> #include <string> #include "base/bind.h" #include "base/callback_helpe...
/* GWEN Copyright (c) 2010 Facepunch Studios See license in Gwen.h */ #include <Gwen/Gwen.h> #include <Gwen/Skin.h> #include <Gwen/Controls/TabButton.h> #include <Gwen/Controls/TabControl.h> #include <Gwen/Controls/Highlight.h> #include <Gwen/DragAndDrop.h> using namespace Gwen; using namespace Gwen::Controls; ...
//===- MLIRContext.cpp - MLIR Type Classes --------------------------------===// // // 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 <click/config.h> #include "automarkipheader.hh" #include <click/args.hh> #include <clicknet/ip.h> #include <clicknet/ether.h> CLICK_DECLS AutoMarkIPHeader::AutoMarkIPHeader() : _ethertype_8021q(htons(ETHERTYPE_8021Q)), _ethertype_ip(htons(ETHERTYPE_IP)), _ethertype_ip6(htons(ETHERTYPE_IP6)) { } AutoMarkIPH...
// // AABox.cpp // libraries/octree/src // // Created by Brad Hefta-Gaub on 04/11/13. // Copyright 2013 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include "AABox.h" #include "AACube.h" #...
#include "ffmpges.h" #include <QDebug> #include <QFile> #include <QDateTime> extern "C" { // 设备 //#include <libavdevice/avdevice.h> // 工具(比如错误处理) #include <libavutil/avutil.h> #include <libavcodec/avcodec.h> #include <libavutil/imgutils.h> } FFmpges::FFmpges() { } void printErrorMessage(const char *message, int e...
// 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...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2012 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person ...
#line 17 "./glslang.l" // // Copyright (c) 2012-2013 The ANGLE 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. // // This file is auto-generated by generate_parser.sh. DO NOT EDIT! // Ignore errors in auto-generated code. #i...
//===----------- Triple.cpp - Triple unit tests ---------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "precomp.h" #include "ApiDetector.hpp" #include <VersionHelpers.h> #pragma hdrstop using namespace Microsoft::Console::Interactivity; // API Sets #define EXT_API_SET_NTUSER_WINDOW L"ext-ms-win-ntuser-window-l1-1-0" ...
/*============================================================================= Copyright (c) 2011-2019 Bolero MURAKAMI https://github.com/bolero-MURAKAMI/Sprout Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.tx...
/** @file @author Alexander Sherikov @copyright 2017-2018 Alexander Sherikov, Licensed under the Apache License, Version 2.0. (see @ref LICENSE or http://www.apache.org/licenses/LICENSE-2.0) @brief */ #define ARILES_API_VERSION 2 #include "utility.h" #include "ariles/adapters_all.h" #include "...
// // Created by Justin Provazza on 12/8/18. // #include <iostream> #include <complex> #include <cmath> #include "MQDS/twa.h" #include "MQDS/system.h" #include "MQDS/bath.h" #include "MQDS/calculation.h" #include "MQDS/io.h" #include "MQDS/universe.h" #include "MQDS/units.h" #include "MQDS/constants.h" void MQDS::TWA...
#include "EvadeSneak.h" #include "../../character/Character.h" #include "WanderSneak.h" #include "StandSneak.h" void EvadeSneak::enter(Character* stateMachine) { if (globals::debug) std::cout << *stateMachine << "enter evade sneak" << std::endl; stateMachine->setTarget(m_target); stateMachine->turnOnBeha...
#include "AST/read.hpp" // TODO ReadNode::ReadNode(const uint32_t line, const uint32_t col) : AstNode{line, col} {} // TODO: You may use code snippets in AstDumper.cpp void ReadNode::print() {} // void ReadNode::visitChildNodes(AstNodeVisitor &p_visitor) { // // TODO // }
/* MIT License Copyright (c) 2017 FMI Open Development / Markus Peura, first.last@fmi.fi 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 rig...
// // GeometryReverseSequence.cpp // MNN // // Created by MNN on 2020/05/29. // Copyright © 2018, Alibaba Group Holding Limited // #include "geometry/GeometryComputer.hpp" namespace MNN { class GeometryReverseSequence : public GeometryComputer { public: virtual bool onCompute(const Op* op, const std::vector<Te...
//============================================================================== // // Copyright (c) 2018-2019 Qualcomm Technologies, Inc. // All Rights Reserved. // Confidential and Proprietary - Qualcomm Technologies, Inc. // //============================================================================== #includ...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The taco developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcclient.h" #include "rpcprotoco...
#include "json/document.h" #include "json/filestream.h" #include "json/stringbuffer.h" #include "json/writer.h" #include "ConfigParser.h" // ConfigParser ConfigParser *ConfigParser::s_sharedInstance = NULL; ConfigParser *ConfigParser::getInstance(void) { if (!s_sharedInstance) { s_sharedInstance = new...
#include "DrawableObjectCommon.h" #include "mylog.h" #include <assert.h> #include "HelpFunction.h" #include "MatrixState3D.h" #include <string.h> DrawableObjectCommon::DrawableObjectCommon(float* vdataIn,int dataByteCount,int vCountIn,VkDevice& device,VkPhysicalDeviceMemoryProperties& memoryroperties) { this->d...
/** * Copyright 2021 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
#include <iostream> #include <memory> using namespace std; class Foo{ public: Foo(){ cout << "Creating foo at " << this << endl; } ~Foo(){ cout << "destructing Foo at " << this << endl; } }; class Bar{ private: std::shared_ptr<Foo> m_foo; public: Ba...
/** * @file load_arff.hpp * @author Ryan Curtin * * Load an ARFF dataset. */ #ifndef MLPACK_CORE_DATA_LOAD_ARFF_HPP #define MLPACK_CORE_DATA_LOAD_ARFF_HPP #include <mlpack/prereqs.hpp> namespace mlpack { namespace data { /** * A utility function to load an ARFF dataset as numeric features (that is, as * an Ar...
// Hash function hashlittle() // from lookup3.c, by Bob Jenkins, May 2006, Public Domain // bob_jenkins@burtleburtle.net #include "stddef.h" #include "vtkType.h" #include "hash.h" #define HASH_LITTLE_ENDIAN 1 // Intel and AMD are little endian #define rot(x,k) (((x)<<(k)) | ((x)>>(32-(k)))) /* ---------------...
//----------------------------------------------------------------------------// // // // ozz-animation is hosted at http://github.com/guillaumeblanc/ozz-animation // // and distributed under the MIT License (MIT). ...
//************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #include "BsRendererDecal.h" #include "BsRendererRenderable.h" #includ...
#include <occa/lang/attribute.hpp> #include <occa/lang/expr.hpp> #include <occa/lang/statement.hpp> #include <occa/lang/variable.hpp> namespace occa { namespace lang { //---[ Variable ]------------------- variable_t::variable_t() : vartype(), source(new identifierToken(filePosition(), "")) {} ...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" // Including type: Polyglot.LocalizedTextComponent`1 #include "Polyglot/LocalizedTextComp...
/** * Copyright (C) 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 use...
#include "p2Defs.h" #include "p2Log.h" #include "j1App.h" #include "j1Render.h" #include "j1Textures.h" #include "j1Map.h" #include "Entity_Book.h" #include "j1Input.h" #include "j1Window.h" #include "j1Collision.h" #include "j1Render.h" #include "j1Entitites.h" #include "j1Scene.h" #include "j1Gui.h" #include "j1FadeT...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
// // Copyright (c) 2011, Willow Garage, 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 retain the above copyright // notice, this list...
/*************************************************************************** * Copyright (C) by GFZ Potsdam * * * * You can redistribute and/or modify this program under the * * terms o...
/*========================================================================= Program: Visualization Toolkit Module: vtkHierarchicalGraphView.cxx ------------------------------------------------------------------------- Copyright 2008 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with S...
// Copyright (c) 2020 Bita Hasheminezhad // // 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 <phylanx/phylanx.hpp> #include <hpx/hpx_main.hpp> #include <hpx/modules/testing.hpp> #include <iostream> #inc...
// GROUP: X // ID: XXXXXXXX // Assign: 12 // Assign: KnapsackBT // UVA: 10130 // Name: XX STUDENT FULL NAME // UVA Username: UVA username of student #include <bits/stdc++.h> using namespace std; ///////////////////////////////////////////////////////////////////////////////////////////////////////////...
/*************************************************************************/ /* android_support.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/* This is a set of dummy definitions for the canonical machining functions given in canon.hh. These functions just print. On each output line is printed: 1. an output line number (sequential, starting with 1). 2. an input line number read from the input (or ... if not provided). 3. a printed representation of ...
/* 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...
//@ Project : ssTools //@ Copyright : Non-unruly (Git) //@ Git: https://github.com/Non-Unruly/ssTools //@ //@ Launch Date : 2020-06-27 //@ Update: 2020-12-15 #include "ssTools.h" std::vector<std::string> ssTools::ss_split(std::string str, std::string key) { std::vector<std::string> texts; int keyLen = key.length()...
/* Loop versioning pass. Copyright (C) 2018-2020 Free Software Foundation, Inc. This file is part of GCC. GCC 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, or (at your option) any later ve...
/* Servo253.cpp - Servo library for Arduino & Wiring Modified to operate using Timer2. Jon Nakane, 2009 April Based on Hernando Barragan's original C implementation Copyright (c) 2006 Nicholas Zambetti. All right reserved. This library is free software; you can redistribute it and/or modify it under t...
#include "catch.hpp" #include "Chip8.hpp" #include <iostream> TEST_CASE("OPCODE 00E0", "[opcode]") { Chip8 chip8; chip8.opcode = 0x00E0; memset(chip8.video, 0xFF, sizeof(chip8.video)); chip8.ExecuteOpcode(); bool allZero = true; for (int i = 0; i < CHIP8_VIDEO_WIDTH * CHIP8_VIDEO_HEIGHT; ++i...
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/password_manager/core/browser/leak_detection/leak_detection_request.h" #include "base/test/metrics/histogram_tester.h" #include "bas...
/** * @Author: Marcel Ruhf <marcelruhf> * @Email: m.ruhf@protonmail.ch * @Project: SoccerRL * @Filename: RobotTracker.hpp * @License: Licensed under the Apache 2.0 license (see LICENSE.md) * @Copyright: Copyright (c) 2017 Marcel Ruhf */ #ifndef SOCCERRL_TRACKER_ROBOTTRACKER_HPP_ #define SOCCERRL_TRACKER_ROBOTTRACKER_...
#include <QApplication> #include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #if QT_VERSION >= 0x050000 #include <QUrlQuery> #else #inclu...
/*- * Copyright (c) 2020-current, Terry Mathew Poulin <BigBoss1964@gmail.com> * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any damages arising from the * use of this software. * * Permission is granted to anyone to use this soft...
/*ckwg +5 * Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include "vgfNamespace.h" #include <qtUtil.h> #include <QIcon> //-------------------------...
// Modifications copyright (C) 2017, Baidu.com, Inc. // Copyright 2017 The Apache Software Foundation // 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. ...
#ifndef CAFFE_DATA_LAYERS_HPP_ #define CAFFE_DATA_LAYERS_HPP_ #include <vector> #include "caffe/blob.hpp" #include "caffe/data_transformer.hpp" #include "caffe/internal_thread.hpp" #include "caffe/layer.hpp" #include "caffe/proto/caffe.pb.h" #include "caffe/util/blocking_queue.hpp" namespace caffe { /** * @brief P...
#include "widgets.hpp" namespace rack { Widget *gHoveredWidget = NULL; Widget *gDraggedWidget = NULL; Widget *gDragHoveredWidget = NULL; Widget *gFocusedWidget = NULL; Scene *gScene = NULL; } // namespace rack
#include "denhac/data/Order.h" #include "denhac/ProductManager.h" Item::Item() { itemId = 0; productId = 0; quantity = 0; vended = 0; skip = false; } Item::Item(uint32_t itemId, uint32_t productId, uint8_t quantity, uint8_t vended) { this->itemId = itemId; this->productId = productId; this->quantity ...
/** * @cond doxygen-libsbml-internal * * @file PiecewiseValueMathCheck.cpp * @brief Ensures types returned by branches of a piecewise are consistent. * @author Sarah Keating * * $Id: PiecewiseValueMathCheck.cpp 12784 2011-02-08 07:37:42Z mhucka $ * $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/b...
#include "mod_manager.h" #include "meow_hash_x64_aesni.h" #include "anno/random_game_functions.h" #include "xml_operations.h" #include "absl/strings/str_cat.h" #include "spdlog/spdlog.h" #define ZSTD_STATIC_LINKING_ONLY /* ZSTD_compressContinue, ZSTD_compressBlock */ #include "fse.h" #include "zstd.h" #include "zst...
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Fre...
#include "Common.hpp" class Test_Base_Variant : public ::testing::Test {}; class TestRefObject1 : public RefObject {}; TEST_F(Test_Base_Variant, SetAndGet) { //* [ ] default Ref<Variant> v0 = makeVariant(); ASSERT_EQ(VariantType::Null, v0->type()); //* [ ] Bool { Ref<Variant> var = makeVariant(true);...
// Copyright 2019 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/assistant/assistant_notification_controller_impl.h" #include <map> #include <memory> #include <utility> #include "ash/assistant/assistant_...
/* SPDX-License-Identifier: BSD-2-Clause-Patent * * SPDX-FileCopyrightText: 2019-2020 the prplMesh contributors (see AUTHORS.md) * * This code is subject to the terms of the BSD+Patent license. * See LICENSE file for more details. */ #include <mapf/common/encryption.h> #include <mapf/common/logger.h> #include <...
/* * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include "ShutdownDialog.h" #include "TaskbarWindow.h" #include <AK/Debug.h> #include <AK/LexicalPath.h> #include <AK/QuickSort.h> #include <LibCore/ConfigFile.h> #include <LibCore/DirIterator.h> #includ...
//===- SelectionDAG.cpp - Implement the SelectionDAG data structures ------===// // // 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 <chainbase/chainbase.hpp> #include <fc/filesystem.hpp> #include <memory> namespace iwillio { namespace testing { /** * Utility class to create and tear down a temporary chainbase::database using RAII * * @tparam MAX_SIZE - the maximum size of the chainbase::database */ template<uint64_t MAX_SIZE> struct...
// UNSUPPORTED: cuda // REQUIRES: gpu,linux // RUN: %clangxx -fsycl %s -DINLINE_ASM -o %t.out // RUN: %t.out // RUN: %clangxx -fsycl %s -o %t.ref.out // RUN: %t.ref.out #include "include/asmhelper.h" #include <CL/sycl.hpp> #include <iostream> #include <vector> using dataType = cl::sycl::cl_int; template <typename T ...
#include <bits/stdc++.h> using namespace std; #define ll long long vector <ll> ans; bool check(ll n) { for(ll i = 30; i >= 0; i--) { ll val = (1LL << i) - 1; if(val == n) return 0; } return 1; } int main() { ll n; cin >> n; ll f = 0; for(ll i = 30; i >= 0; i-...
int main() { auto A = A; A.i; return 0; }
#include "ares-test.h" // library initialization is only needed for windows builds #ifdef WIN32 #define EXPECTED_NONINIT ARES_ENOTINITIALIZED #else #define EXPECTED_NONINIT ARES_SUCCESS #endif namespace ares { namespace test { TEST(LibraryInit, Basic) { EXPECT_EQ(EXPECTED_NONINIT, ares_library_initialized()); EX...
/* * Copyright 2012 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/core/SkImageFilter.h" #include "include/core/SkCanvas.h" #include "include/core/SkRect.h" #include "include/effects/SkComposeImageFilter...
// Copyright 2021 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/builtins/builtins-utils-inl.h" #include "src/builtins/builtins.h" #include "src/objects/bigint.h" #include "src/objects/js-temporal-object...
// Copyright © 2017-2021 Trust Wallet. // // This file is part of Trust. The full Trust copyright notice, including // terms governing use, modification, and redistribution, is contained in the // file LICENSE at the root of the source code distribution tree. #include <TrustWalletCore/TWTHORChainSwap.h> #include "prot...
// Autogenerated from CppHeaderCreator // Created by Sc2ad // ========================================================================= #pragma once // Begin includes #include "extern/beatsaber-hook/shared/utils/typedefs.h" #include "extern/beatsaber-hook/shared/utils/byref.hpp" // Including type: System.Enum #...
#include "ventilate_newuser.h" #include "ui_ventilate_newuser.h" #include <QDialog> #include <QString> #include <QMessageBox> #include <QAbstractButton> ventilate_newuser::ventilate_newuser(QWidget *parent) : QDialog(parent), ui(new Ui::ventilate_newuser) { ui->setupUi(this); } ventilate_newuser::~ventila...
// 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...
#include <axisDrag.hpp> AxisDrag::AxisDrag(GraphApp* app) : Tool{app}, m_axis_status{std::vector<bool>(m_linkedApp->getAxis()->size(), false)} { auto vert_shader = gl::load_shader_from_file("shaders/axis.vert", GL_VERTEX_SHADER); auto frag_shader = gl::load_shader_from_file("shaders/axis.frag", GL_...
#include<iostream> using namespace std; int main() { long double a,b; // float type variables cout<<"Enter two numbers:"<<endl; cout<<"First number: "; cin>>a; // ">>" Extraction operator cout<<"Second number: "; cin>>b; cout<<"The numbers are: "<<a<<" and "<<b<<endl;...
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrTextureToYUVPlanes.h" #include "effects/GrSimpleTextureEffect.h" #include "effects/GrYUVEffect.h" #include "GrClip.h" #include "GrContext.h" #include "GrRenderTarg...
#include "Vertex.h"
#include "movegen.h" #include <iostream> int pawnPushes(const Board &b, std::vector<Move> &moves) { int moveCount = 0; for (int i = 0; i < MAX_PAWNS; i++) { Square pawn = b.pawnSquares[i][b.side]; if (!pawn.isValid()) { break; } uint8_t file = pawn.file(); uint8_t rank = pawn.rank(...
#include "itemcomparator.h" #include "core/namespace.h" #include "nsselecter.h" namespace reindexer { bool ItemComparator::operator()(const ItemRef &lhs, const ItemRef &rhs) const { size_t firstDifferentExprIdx = 0; int exprCmpRes = 0; for (const auto &eR : ctx_.sortingContext.exprResults) { if (eR[lhs.SortExprR...
//================================================================================================= /*! // \file src/mathtest/smatdmatmult/MIbLDa.cpp // \brief Source file for the MIbLDa sparse matrix/dense matrix multiplication math test // // Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved // // Thi...
#include <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = {QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"), QT_TRANSLATE_NOOP("bitcoin-core", "" "%s, you must set a rpcpa...
#include <mscorlib/System/mscorlib_System_Activator.h> #include <mscorlib/System/mscorlib_System_Type.h> #include <mscorlib/System/mscorlib_System_String.h> #include <mscorlib/System/Runtime/Remoting/mscorlib_System_Runtime_Remoting_ObjectHandle.h> #include <mscorlib/System/mscorlib_System_Byte.h> #include <mscorlib/Sy...
/* 11048 : 이동하기 URL : https://www.acmicpc.net/problem/11048 Input #1 : 3 4 1 2 3 4 0 0 0 5 9 8 7 6 Output #1 : 31 Input #2 : 3 3 1 0 0 0 1 0 0 0 1 Output #2 : 3 Input #3 : 4 3 1 2 3 6 5 4 ...
#include "common.h" #include "../mocks.h" using ::testing::Return; using ::testing::_; namespace bpftrace { namespace test { namespace codegen { TEST(codegen, args_multiple_tracepoints) { auto bpftrace = get_mock_bpftrace(); test(*bpftrace, "tracepoint:sched:sched_one,tracepoint:sched:sched_two { " ...
// Scintilla source code edit control /** @file ScintillaBase.cxx ** An enhanced subclass of Editor with calltips, autocomplete and context menu. **/ // Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #inc...
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Vladimír Vondruš <mosra@centrum.cz> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
/********** 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 Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This libr...
#include <bits/stdc++.h> using namespace std; using ll = long long; using ld = long double; using db = double; using str = string; // yay python! using pi = pair<int,int>; using pl = pair<ll,ll>; using pd = pair<db,db>; using vi = vector<int>; using vb = vector<bool>; using vl = vector<ll>; using vd = vector<db>; ...
// Copyright (c) 2018-2019 AccelByte Inc. All Rights Reserved. // This is licensed software from AccelByte Inc, for limitations // and restrictions contact your company contract manager. #include "Blueprints/AccelByteCategoryBlueprints.h" #include "Api/AccelByteCategoryApi.h" #include "Core/AccelByteSettings.h" #inclu...
//========================================================================= // 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 // // ...
/*============================================================================= Copyright (c) 2001-2014 Joel de Guzman 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) =========================================...
// Copyright Carl Philipp Reh 2009 - 2018. // 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 <fcppt/from_std_string_locale.hpp> #include <fcppt/string.hpp> #include <fcppt/public_con...
#pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"") // Hide console window #include "ofMain.h" #include "ofApp.h" /* * kinect2share * * Created by Ryan Webber * http://www.DusXproductions.com * https://github.com/rwebber * * The goal of this project is to make as many Kinect2 features ava...
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/fnet/frt/frt.h> #include <vespa/fastos/app.h> class Server : public FRT_Invokable { private: Server(const Server &); Server &operator=(const Server &); public: Server(FRT...
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin Core developers // Copyright (c) 2014-2017 The Dash Core developers // Copyright (c) 2018 The Bobachain Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/...
// // Copyright 2012 Chung-Lin Wen // // 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 BOOST_GIL_EXTENSION_TOOLBOX_COLOR_SPACES_LAB_HPP #define BOOST_GIL_EXTENSION_TOOLBOX_COLOR_SPACES_LAB_HPP #...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) | | Copyrigh...