text
stringlengths
5
1.04M
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //===========================================================================// #include "cbase.h" #include <crtmemdebug.h> #include "vgui_int.h" #include "clientmode.h" #include "iinput.h" #inc...
// Copyright (c) 2018-2020, The Investcoin Project, GRIF-IT #include "gtest/gtest.h" #include "IWalletLegacy.h" #include "crypto/crypto.h" #include "CryptoNoteCore/Account.h" #include "CryptoNoteCore/Currency.h" #include "CryptoNoteCore/TransactionApi.h" #include "Logging/ConsoleLogger.h" #include "Transfers/Transfe...
// Copyright Aleksey Gurtovoy 2000-2004 // // 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) // // See http://www.boost.org/libs/mpl for documentation. // $Id$ // $Date$ // $Revision$ #include <boost/mpl/fold.hp...
#include "library/common/extensions/key_value/platform/config.h" #include "envoy/config/common/key_value/v3/config.pb.h" #include "envoy/config/common/key_value/v3/config.pb.validate.h" #include "envoy/registry/registry.h" #include "library/common/api/external.h" #include "library/common/data/utility.h" #include "lib...
#include <iostream> #include <utility> #include <vector> #include <string> int main() { std::vector<std::pair<std::string, int>> vec; std::string s; int i; while (std::cin >> s >> i) { vec.push_back(std::make_pair(s, i)); // vec.push_back(std::pair<std::string, int>(s, i)); // vec...
// // RenderableZoneEntityItem.cpp // // // Created by Clement on 4/22/15. // Copyright 2015 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 "RenderableZoneEntityItem.h" #include <gpu/...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2016 by EMC Corporation, 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...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrOnFlushResourceProvider.h" #include "GrContextPriv.h" #include "GrDrawingManager.h" #include "GrProxyProvider.h" #include "GrSurfaceProxy.h" sk_sp<GrRenderTarget...
// Problem # : 349A // Created on : 2018-Oct-30 23:58:37 #include <bits/stdc++.h> #define FR(i, n) for (int i = 0; i < (int)(n); ++i) using namespace std; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; int main() { ios_base::sync_with_stdio(false); cin.tie(0); ...
/** * Copyright 2017-2020 Stefan Ascher * * 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, pub...
// // SPDX-License-Identifier: BSD-3-Clause // Copyright (c) Contributors to the OpenEXR Project. // //----------------------------------------------------------------------------- // // class TileOffsets // //----------------------------------------------------------------------------- #include "Iex.h" #include "Imf...
// float2bin_file-bin_file2float-simple.cc #include "pch.h" // Uncomment this in Visual Studio // References // Input/output with files - C++ Tutorials, http://www.cplusplus.com/doc/tutorial/files/ // How to write binary file in C++, https://codeyarns.com/2013/12/27/how-to-write-binary-file-in-c/ // How to fin...
// Copyright 2010-2020, Google 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 of condit...
/* * Copyright (C) 2015 Dato, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero 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 distribu...
/* * @Author: gpinchon * @Date: 2021-09-26 00:00:00 * @Last Modified by: gpinchon * @Last Modified time: 2021-09-26 14:26:36 */ #pragma once #include <Handle.hpp> #include <PhysicalDevice.hpp> #include <Queue/Queue.hpp> #include <vector> #include <string> OCRA_DECLARE_HANDLE(OCRA::Device); namespace OCRA { stru...
/* * 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 ...
#include <errno.h> // errno #include <fcntl.h> // open() #include <stdio.h> // printf() et. al. #include <termios.h> // tcgetattr() et. al. #include <unistd.h> // tcgetattr() et. al. #include <string.h> // memset(), strerror() #include <sys/ioctl.h> // FIONREAD #include "serial_link.h" SerialLink::Seri...
/* * djnn v2 * * The copyright holders for the contents of this file are: * Ecole Nationale de l'Aviation Civile, France (2018) * See file "license.terms" for the rights and conditions * defined by copyright holders. * * * Contributors: * Mathieu Poirier <mathieu.poirier@enac.fr> * */ #incl...
#include <gmock/gmock.h> #include <gtest/gtest.h> #include "../cppaudit/gtest_ext.h" #include "../../game.h" #include <vector> using ::testing::HasSubstr; // TESTS // Basic check to make sure the program is not identifying a blank or "_" as a // player's move TEST(TTT, BlankBoard) { const std::vector<std::vector<st...
// 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 "ppapi/host/resource_message_filter.h" #include "base/bind.h" #include "base/message_loop/message_loop.h" #include "base/message_loop/messag...
#include "stdafx.h" #include "../xrcdb/ispatial.h" #include "irenderable.h" IRenderable::IRenderable() { renderable.xform.identity (); renderable.visual = NULL; renderable.pROS = NULL; renderable.pROS_Allowed = TRUE; ISpatial* self = imdexlib::fast_dynamic_cast<ISpatial*> (this); if (self) sel...
class Solution { public: string XXX(string s, int numRows) { string result; if (s.size() <= numRows||numRows == 1) { return s; } else { for (int i = 0; i < numRows; i++) { int k = 0; int d = i; while (1) { if (i == 0||i == numRows-1) { d = i+(2 * numRows - 2)*k; } else { ...
//================================================================================================= /*! // \file src/mathtest/dmatdmatmult/SU3x3bSU3x3a.cpp // \brief Source file for the SU3x3bSU3x3a dense matrix/dense matrix multiplication math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved...
/*========================================================================= Program: Visualization Toolkit Module: TestPShadowMapPass.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 softwa...
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrContext.h" #include "SkSurface.h" #include "GLWindowContext.h" #include "gl/GrGLDefines.h" #include "gl/GrGLUtil.h" #include "GrRenderTarget.h" #include "GrCont...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "txdb.h" #include "wallet.h" #include "walletdb.h" #include "crypter.h" #...
// Copyright (c) 2012-2019 The Cicoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <bloom.h> #include <clientversion.h> #include <key.h> #include <key_io.h> #include <merkleblock.h> #include <primiti...
/* * Copyright 2006 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/SkMatrix.h" #include "include/core/SkPoint3.h" #include "include/private/SkNx.h" #include "include/private/SkTPin.h" #include "inclu...
// ---------------------------------------------------------------------------- // - Open3D: www.open3d.org - // ---------------------------------------------------------------------------- // The MIT License (MIT) // // Copyright (c) 2018 www.open3d.org // // Permissio...
/******************************************************************************* * Copyright 2012-2018 Esri * * 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....
// Copyright (c) 2009-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 <util.h> #include <chainparamsbase.h> #include <random.h> #include <ser...
/*################################################################################ # TargomanBuildSystem # # Copyright(c) 2021 by Targoman Intelligent Processing <http://tip.co.ir> # # Redistribution and use in source and binary forms are allowed under the # terms of BSD License 2.0. See LICENSE file ##########...
// Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // Copyright (c) 2013, Facebook, Inc. All rights reserved. // This source code is licensed under the BSD-style license found in the // LICENSE file in the root dire...
// ====================================================================== // \title AssertFatalAdapter/test/ut/Tester.hpp // \author tcanham // \brief hpp file for AssertFatalAdapter test harness implementation class // // \copyright // Copyright 2009-2015, by the California Institute of Technology. // ALL RIGHTS RES...
/****************************************************************************/ /// @file GUIBusStop.cpp /// @author Daniel Krajzewicz /// @author Jakob Erdmann /// @author Michael Behrisch /// @date Wed, 07.12.2005 /// @version $Id$ /// // A lane area vehicles can halt at (gui-version) /***********************...
// Copyright (c) 2018-2019, CUT coin // Copyright (c) 2014-2018, The Monero 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 retain th...
/*----------------------------------------------------------------------------/ Lovyan GFX - Graphics library for embedded devices. Original Source: https://github.com/lovyan03/LovyanGFX/ Licence: [FreeBSD](https://github.com/lovyan03/LovyanGFX/blob/master/license.txt) Author: [lovyan03](https://twitter.com/lov...
/* ======================================== * TPDFWide - TPDFWide.h * Copyright (c) 2016 airwindows, All rights reserved * ======================================== */ #ifndef __TPDFWide_H #include "TPDFWide.h" #endif AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new TPDFWide(audioMas...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2014-2020 The Dash Core developers // Copyright (c) 2014-2020 The Martkist Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/...
#include <instances.h> #include <clocks.h> #include <clock_helpers.h> #include <gpio.h> #define DELAY 1000000 #ifdef DISCOVERY typedef mk_subport<GPIOD,14,15> leds; #define EN RCC::GPIODEN #else typedef mk_subport<GPIOE,0,1> leds; #define EN RCC::GPIOEEN #endif enum { XTALFreq = 20000000, // Hz SysFreq = ...
/* * Copyright 2021 Assured Information Security, 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 a...
/* 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 "...
#include "ChangeRotationModeAction.h" #include <Engine/Core/AssetLibrary/AssetLibrary.h> #include <Engine/Core/Trigger/Trigger.h> ChangeRotationModeAction::ChangeRotationModeAction(void) {} ChangeRotationModeAction::ChangeRotationModeAction(int32 _type): AbstractAction(_type) {} void ChangeRotationModeAction::Up...
// Generated by using Rcpp::compileAttributes() -> do not edit by hand // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #include <Rcpp.h> using namespace Rcpp; // sendWSMessage void sendWSMessage(SEXP conn, bool binary, Rcpp::RObject message); RcppExport SEXP _httpuv_sendWSMessage(SEXP connSEXP, SEXP binaryS...
/* Copyright 2018 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
//===- WasmObjcopy.cpp ----------------------------------------------------===// // // 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 2014 Stellar Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "bucket/BucketManager.h" #include "crypto/Hex.h" #include "crypto/SHA.h" #include "her...
/*################################################################################ ## ## Copyright (C) 2011-2021 Keith O'Hara ## ## This file is part of the StatsLib C++ library. ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance...
#include <bits/stdc++.h> #define x first #define y second #define pb push_back #define all(v) v.begin(),v.end() #pragma gcc optimize("O3") #pragma gcc optimize("Ofast") #pragma gcc optimize("unroll-loops") using namespace std; const int INF = 1e9; const long long llINF = 1e18; long long mod; typedef long long ll; type...
/* A handle to a pipe (C) 2015-2019 Niall Douglas <http://www.nedproductions.biz/> (20 commits) File Created: Nov 2019 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 in the accompanying file Licence....
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers // Copyright (c) 2014-2018, The Monero Project // Copyright (c) 2018-2019, The TurtleCoin Developers // // Please see the included LICENSE file for more information. ///////////////////////// #include "MinerManager.h" //////////////////////...
/*========================================================================= Program: ALBA (Agile Library for Biomedical Applications) Module: vtkALBADataPipe Authors: Marco Petrone Copyright (c) BIC All rights reserved. See Copyright.txt or This software is distributed WITHOUT ANY WARRANTY; without even the...
#include <graph_editor.h> #include <iostream> #include <string> int main() { cse::GraphEditor node_window; node_window.create_window(); while (node_window.run_window_loop_iteration()) { // Check if data is ready std::string graph; if (node_window.get_serialized_graph(graph)) { std::cout << "Graph saved...
// Copyright (c) 2012-2013 The Dealtoken developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "leveldbwrapper.h" #include "util.h" #include <leveldb/env.h> #include <leveldb/cache.h> #include <leveldb/filter_...
/********************************************************************** * * Name: mitab_ogr_datasource.cpp * Project: MapInfo Mid/Mif, Tab ogr support * Language: C++ * Purpose: Implementation of OGRTABDataSource. * Author: Stephane Villeneuve, stephane.v@videotron.ca * and Frank Warmerdam, war...
/// @file bealab/extensions/control/baytrack.hpp /// Implementation of Bayesian tracking techniques. #ifndef _BEALAB_BAYTRACK_ #define _BEALAB_BAYTRACK_ #include <bealab/core/blas.hpp> #include <bealab/scilib/stats.hpp> #include <bealab/scilib/optimization.hpp> #include <bealab/extensions/control/linsys.hpp> #include...
#include "environment.h" #include <webdriverxx/webdriver.h> #include <gtest/gtest.h> namespace test { using namespace webdriverxx; class TestFinder : public ::testing::Test { protected: static void SetUpTestCase() { WebDriver& driver = GetDriver(); driver.Navigate(GetTestPageUrl("finder.html")); driver.FindEl...
/* MIT License Copyright (c) 2017 Chris McArthur, prince.chrismc(at)gmail(dot)com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to u...
/************************************************************************* * * Copyright 2016 Realm 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/lice...
/* * Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. */ #include "bgp/mvpn/mvpn_route.h" #include <algorithm> #include <string> #include <vector> #include "base/string_util.h" #include "bgp/mvpn/mvpn_table.h" using std::copy; using std::string; using std::vector; MvpnPrefix::MvpnPrefix() : type_(M...
/************************************************************************************************************************ Copyright (c) 2016, Imagination Technologies Limited and/or its affiliated group companies. All rights reserved. Redistribution and use in source and binary forms, with or without modification, ...
/* * Copyright (c) 2014 ARM Limited * All rights reserved * * Copyright (c) 2001-2006 The Regents of The University of Michigan * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistrib...
// Copyright 2021 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 #include "iree/compiler/Codegen/PassDetail.h" #include "iree/compiler/Codegen/Passes.h" #include ...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // // ProfAttach.cpp // // // Definitions of functions that help with attaching and detaching profilers // // =...
// Copyright 2017 The Abseil 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
#include<stdio.h> int main() { int a ; int b ; /* int result = 0; int *result;*/ scanf("%d %d", &a , &b); int *aptr; int *bptr; aptr = &a; bptr = &b; printf(" a degiskenin degeri %d\n",a); printf("a degiskenin adersi %p\n", &a); printf(" a degiskenin degeri %d\n", *aptr); printf(" a degiskenin adr...
// Copyright 2019 DeepMind Technologies Ltd. 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 require...
#include "Application.h" #include "TimeManager.h" TimeManager::TimeManager(Application* app, bool start_enabled) : Module(app, start_enabled) { } TimeManager::~TimeManager() { } bool TimeManager::Start() { return true; } update_status TimeManager::PreUpdate() { return UPDATE_CONTINUE; } update_status TimeManag...
#define _CRT_SECURE_NO_WARNINGS 1 #include "../sk_math.h" #include "../sk_memory.h" #include "model.h" #include "../libraries/stref.h" #include "../systems/platform/platform_utils.h" #include <stdio.h> #include <string.h> #include <float.h> namespace sk { /////////////////////////////////////////// model_t model_c...
/* * Copyright (c) David Connet. All Rights Reserved. * * License: See License.txt */ /** * @file * @brief Test misc functions * @author David Connet * * Revision History * 2019-10-13 Move config test to TestARB * 2019-08-15 Fix tests on unix. * 2019-06-28 Moved ConfigPath to TestUtils * 2019-01-06 fmt 5....
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2019 The PIVX developers // Copyright (c) 2020-2021 The PENGOLINCOIN developers // Distributed under the MIT software license, see the accompanying // file COPYIN...
//===-- RISCVInstPrinter.cpp - Convert RISCV MCInst to asm syntax ---------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * BMPImage.cpp * * Created on: 13-Dec-2009 * Author: Ashley */ #include <fstream> #include <iostream> #include <stdio.h> #include <stdlib.h> #include "BMPImage.h" #include "../../UI/ErrorDialog.h" #include "../../Util/StringUtil.h" using std::ios; using std::ifstream; namespace ARK { namespace Graphi...
// // Copyright (c) 2018 The nanoFramework project contributors // See LICENSE file in the project root for full license information. // #include <nanoHAL.h> #include <nanoHAL_v2.h> #include <nanoWeak.h> #include "Esp32_os.h" #include "targetHAL_ConfigStorage.h" #include <target_platform.h> // NVS parameters for Inte...
// Copyright 2007-2009 Daniel James. // 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) // clang-format off #include "../helpers/prefix.hpp" #include <boost/unordered_set.hpp> #include <boost/unordered_map.hp...
/* Copyright © 2019 Haoran Luo * * 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, publis...
/* Copyright © 2017-2020 ABBYY Production LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
// Boost.Geometry (aka GGL, Generic Geometry Library) // This file is manually converted from PROJ4 (projects.h) // Copyright (c) 2008-2012 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2017, 2018. // Modifications copyright (c) 2017-2018, Oracle and/or its affiliates. // Contribu...
/*========================================================================= Library: TubeTK Copyright 2010 Kitware Inc. 28 Corporate Drive, Clifton Park, NY, 12065, USA. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Lic...
/*========================================================================= * * 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...
version https://git-lfs.github.com/spec/v1 oid sha256:b9e8a9b925a815d26bd1ce94741581f3568027d3b93993f0372a0cc84c650115 size 3429
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2020 The Bitcoin Core developers // Copyright (c) 2021 The BazCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <outputtype.h> #inclu...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2015, xuewen.chu * 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 sourc...
#define CATCH_CONFIG_MAIN #include <catch/catch.hpp>
#include <bits/stdc++.h> #define each(i, c) for (auto& i : c) #define unless(cond) if (!(cond)) using namespace std; typedef long long int lli; typedef unsigned long long ull; typedef complex<double> point; template <typename P, typename Q> ostream& operator<<(ostream& os, pair<P, Q> p) { os << "(" << p.first << ...
#include "greedy/batch_wrapper.h" #include <algorithm> #include <iostream> #include <ctime> #include <cmath> #include <limits> #include "base/raw_situation.h" namespace lss { namespace greedy { static constexpr double kMinValue = std::numeric_limits<double>::lowest(); BatchWrapper::BatchWrapper(RawBatch raw_batch)...
/* ----------------------------------------------------------------------- * * $Id$ * * Copyright 2010, Kim, Tae-Sung. All rights reserved. * See copyright.txt for details * * -------------------------------------------------------------------- */ #include <stdlib.h> #include <math.h> #include <ctype...
/* * Copyright © 2011,2012,2014 Google, Inc. * * This is part of HarfBuzz, a text shaping library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any purpose, provided that the * ...
#ifdef ONLINE_JUDGE #define __algo_gcd(x, y) __gcd(x, y) #endif #include <bits/stdc++.h> #define gc getchar_unlocked() #define pc(x) putchar_unlocked(x) template<typename T> void scan(T &x){x = 0;register bool _=0;register T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=...
// Copyright (c) 2010 Google 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 of conditio...
/*------------------------------------------------------------------------- * drawElements Quality Program OpenGL ES 3.1 Module * ------------------------------------------------- * * Copyright 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not ...
//===-- SBFile.cpp --------------------------------------------------------===// // // 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) 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 <boost/assign/list_of.hpp> // for 'map_list_of()' #include <boost/foreach.hpp> #include "checkpoints.h" #i...
/* icqAccount Copyright (c) 2008 by Rustam Chakin <qutim.develop@gmail.com> *************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * ...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The GRINC developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsentry.h" #in...
// XTPCalendarControlView.cpp : implementation of the CXTPCalendarControlView class. // // This file is a part of the XTREME CALENDAR MFC class library. // (c)1998-2011 Codejock Software, All Rights Reserved. // // THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE // RE-DISTRIBUTED BY ANY MEANS WHA...
#include "common/nats/codec_impl.h" #include "envoy/nats/codec.h" #include "common/common/stack_array.h" namespace Envoy { namespace Nats { std::string Message::toString() const { return fmt::format("\"{}\"", asString()); } std::string &Message::asString() { return string_; } const std::string &Message::asStrin...
#include "SpplJit.h" using namespace std; using namespace llvm; using namespace llvm::orc; using namespace jit; using namespace common; SpplJit::SpplJit() : CodeGen(Drv), ScopeGen(&Drv.Global), TypeChecker(&Drv.Global), CompileLayer(ObjectLayer, SimpleCompiler(*CodeGen.Machine)) { sys::DynamicLibrary::...
#include "_clanglite.h" class ::clang::QualType (::clang::InjectedClassNameType::*method_pointer_1d0b02b1a8555241ab131dd0393ed651)()const= &::clang::InjectedClassNameType::getInjectedSpecializationType; class ::clang::TemplateSpecializationType const * (::clang::InjectedClassNameType::*method_pointer_91a7bf06e7a55f5b...