text stringlengths 5 1.04M |
|---|
#ifndef _CHANGEBASE_HPP
#define _CHANGEBASE_HPP
#include "bind/bindedfunc.hpp"
#include "dot.hpp"
namespace vind
{
namespace core
{
class NTypeLogger ;
class CharLogger ;
}
namespace bind
{
struct ChangeBase : public BindedFunc {
template <typename String>
... |
// -*-Mode: C++;-*-
/* ---------------------------------------------------------------------- *//*!
*
* @file DataFragment.cc
* @brief Access methods for the RCE data fragments
* decoding a binary test file.
* @verbatim
* Copyright 2017
* ... |
//Copyright(c) 2016 Shuda Li[lishuda1980@gmail.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 use, copy, modify, merg... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2019 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
* ndn-cxx library is free software: you can redistribute it and/or modify it under the
... |
/*
Copyright (c) 2016-2019 Xavier Leclercq
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... |
/*
* 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) 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 <AzTest/AzTest.h>
#include <Common/RPITestFixture.h>
#include <Common/JsonTestUtils.h>
#i... |
/*
* Copyright (C) 2012 The Android 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// <IterableCollector.hpp> -*- C++ -*-
/*
*/
#ifndef __SPARTA_ITERABLE_OBJECT_COLLECTOR_HPP__
#define __SPARTA_ITERABLE_OBJECT_COLLECTOR_HPP__
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include <iterator>
#include <type_traits>
#include "sparta/utils/Utils.hpp"
#include "sparta/log/Me... |
#include <AK/LogStream.h>
#include <AK/PrintfImplementation.h>
#include <AK/ScopedValueRollback.h>
#include <AK/StdLibExtras.h>
#include <Kernel/Syscall.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#inc... |
// Copyright (c) 2015-2018 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#include "population_caller.hpp"
#include <typeinfo>
#include <unordered_map>
#include <deque>
#include <algorithm>
#include <numeric>
#include <iterator>
#include <functional>
#inc... |
namespace factor
{
#define VM_C_API extern "C"
#define NULL_DLL NULL
void c_to_factor_toplevel(cell quot);
void init_signals();
void early_init();
const char *vm_executable_path();
const char *default_image_path();
template<typename Type> Type align_stack_pointer(Type sp)
{
return sp;
}
}
|
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2006 Warren Chou
Copyright (C) 2007 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free so... |
/*
NMmrac2mu.cpp
Author: Benjamin A. Thomas
Copyright 2017 Institute of Nuclear Medicine, University College London.
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... |
/*
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#include "../avx512_vec.h"
int main()
{
avx512_int32vec_t input1;
avx512_int32vec_t input2;
std::cout << "Max 2 vector(int32_t)[" << avx512_int32vec_t::size() << "]\n";
read("input1", input1);
read("input2", input2);
auto avx1 = _mm512_load_si512(&input1);
auto avx2 = _mm512_load_si512(&... |
#include "Rom.hh"
#include "DeviceConfig.hh"
#include "HardwareConfig.hh"
#include "XMLElement.hh"
#include "RomInfo.hh"
#include "RomDatabase.hh"
#include "FileContext.hh"
#include "Filename.hh"
#include "FileException.hh"
#include "PanasonicMemory.hh"
#include "MSXMotherBoard.hh"
#include "Reactor.hh"
#include "Debug... |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... |
/* NxS Tabpages - written by Saivert */
#include "StdAfx.h"
#include "nxstabpages.h"
CNxSTabPages::~CNxSTabPages()
{
Clear();
}
HWND CNxSTabPages::SetTabCtrl(HWND NewTabCtrl)
{
HWND tmp;
tmp = m_hwTab;
if (IsWindow(NewTabCtrl))
{
if (GetCount()>0)
TabCtrl_DeleteAllItems(m_hwTab);
m_hwTab ... |
//--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Christian Schlegel (schlegel@hs-ulm.de)
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Informat... |
// Observing move semantics
#include <class-a.h>
#include <iomanip>
#include <type_traits>
#include <cassert>
// Remember the approximate scale of value types:
//
// (i) means has identity
// (m) means is movable
//
// glvalue - i
// lvalue - i & !m
// xvalue - i & m
// prvalue - !i & m
// rvalue - m
//
// (note ... |
/*
* Copyright (c) 2017-2018 InterlockLedger Network
*
* 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 appli... |
#include "StdAfx.h"
//#include "general/all.h"
//#include "private/all.h"
// #include "XML_GEN/ParamChantierPhotogram.h"
// NO MORE
eTypeGpsMod Str2eTypeGpsMod(const std::string & aName)
{
if (aName=="esingle")
return esingle;
else if (aName=="edgps")
return edgps;
else if (aName=="ekinematic")
... |
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1995 - 2000
//
// File: PropRec.cxx
//
// Contents: Record format for persistent property store
//
// Classes: CPropertyRecord
//
// History: 28-D... |
#include "trajopt/problem_description.hpp"
#include "trajopt/common.hpp"
#include <boost/foreach.hpp>
#include "utils/logging.hpp"
#include "sco/expr_ops.hpp"
#include "sco/expr_op_overloads.hpp"
#include "trajopt/kinematic_terms.hpp"
#include "trajopt/trajectory_costs.hpp"
#include "trajopt/collision_terms.hpp"
#inclu... |
//
// main.cpp
// Definite_integral_class_v2
//
// Created by wu yen sun on 2022/4/10.
//
#include <iostream>
using namespace std;
class DefInt
{
private:
double a, b;
double (*f)(double x);
public:
DefInt(double a_, double b_, double (*f_)(double x)): a(a_), b(b_), f(f_){}
double ByTrapezoid(int N... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/callback.h"
#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "base/stl_util.h"
#include "base/thread... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 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 <amount.h>
#include <chain.h>
#include <chainparams.h>
#include <consensus/co... |
/* Copyright (c) 2016 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 by applicable law or... |
// 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.ICloneable
#include "System/... |
/*------------------------------------------------------------*/
/* filename - tmenubox.cpp */
/* */
/* function(s) */
/* TMenuBox member functions ... |
#include "../geometric.hpp"
#include "../exponential.hpp"
#include "../trigonometric.hpp"
#include "../detail/type_vec1.hpp"
#include <cstdlib>
#include <ctime>
#include <cassert>
#include <cmath>
namespace glm{
namespace detail
{
template <length_t L, typename T, qualifier Q>
struct compute_rand
{
... |
// 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/chromeos/drive/file_system/move_operation.h"
#include "chrome/browser/chromeos/drive/file_change.h"
#include "chrome/browser/chr... |
#include "settings.hpp"
#include "xyz/openbmc_project/Common/error.hpp"
#include <phosphor-logging/elog-errors.hpp>
#include <phosphor-logging/lg2.hpp>
#include <sdbusplus/exception.hpp>
namespace settings
{
PHOSPHOR_LOG2_USING;
using namespace phosphor::logging;
using namespace sdbusplus::xyz::openbmc_project::Co... |
///////////////////////////////////////////////////////////////////////////////////////////
// INITIALIZE WINDOW AND HANDLE MAINLOOP
///////////////////////////////////////////////////////////////////////////////////////////
#include <windows.h>
#include <AvniInterfaces.h>
#include <ConfigurationManag... |
#include "prop.h"
/*
Static variables.
*/
std::vector <TEngine_Prop *>
TEngine_Prop::props
;
int
TEngine_Prop::free_id {-1}
;
/*
Functions.
*/
void TEngine_Prop::Set_Animation (sf::Texture * texture, unsigned max_frame, float change_time) /* public */
{
this -> prop_animation.texture ... |
#include "stdafx.h"
#include "lab6.h"
HINSTANCE hInst;
TCHAR* szTitle = _T("Some title");
TCHAR* szText = _T("Some text");
TCHAR* szWindowClass = _T("lab 6");
ATOM RegisterWindowClass(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE, int);
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
int APIENT... |
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2004-2009 Kitware, Inc.
Copyright 2004 Alexander Neundorf (neundorf@kde.org)
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt f... |
// Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Basic/Export.hpp"
#include "Pomdog/Graphics/detail/ForwardDeclarations.hpp"
#include <cstdlib>
#include <memory>
namespace Pomdog {
class GraphicsCommandList;
class POMDOG_EXPORT GraphicsCommandQueue final {
publi... |
#ifndef GBCPP_MEMORY_H
#define GBCPP_MEMORY_H
#include "common/common.hpp"
#include <cstdlib>
#include <cstdio>
class memory {
private:
byte* _memory;
int _size;
public:
explicit memory(int size);
memory() = delete;
~memory();
byte& operator[](int index);
};
#endif |
//==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#in... |
#ifndef __BOARD_CONFIG_HPP__
#define __BOARD_CONFIG_HPP__
#define BUTTON_L 38
#define BUTTON_M 37
#define BUTTON_R 39
#if defined (TTGO_T4_V12) || (TTGO_T4_V13)
#define TFT_CS 27
#define TFT_MOSI 23
#define TFT_CLK 18
#define TFT_RST 5
#define TFT_MISO 12
#define TFT_BL 4 // GPIO not managed ... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkTransformFeedback.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 soft... |
/* Unit testing for outcomes
(C) 2013-2020 Niall Douglas <http://www.nedproductions.biz/> (5 commits)
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this li... |
// Copyright (c) 2013 Thomas Heller
// Copyright (c) 2018 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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 <hpx/config.hpp>
#include <hpx/hpx.hpp>... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include "build/build_config.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/bookmarks/bookmark_model_fact... |
/*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation f... |
// RUN: %clang_cc1 -std=c++11 %s -verify
// expected-no-diagnostics
using size_t = decltype(sizeof(0));
template<typename T> struct check;
template<size_t N> struct check<const char[N]> {};
constexpr bool startswith(const char *p, const char *q) {
return !*q || (*p == *q && startswith(p + 1, q + 1));
}
constexpr bo... |
// Copyright (c) 2011-2013 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 "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbo... |
/*=============================================================================
Copyright (c) 2001-2003 Joel de Guzman
http://spirit.sourceforge.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)
====... |
#define WLED_DEFINE_GLOBAL_VARS //only in one source file, wled.cpp!
#include "wled.h"
#include "wled_ethernet.h"
#include <Arduino.h>
#if defined(ARDUINO_ARCH_ESP32) && defined(WLED_DISABLE_BROWNOUT_DET)
#include "soc/soc.h"
#include "soc/rtc_cntl_reg.h"
#endif
/*
* Main WLED class implementation. Mostly initializa... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <exception>
#include <iomanip>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include "flashlight/app/imgcl... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* DiamondTrap.cpp :+: :+: :+: ... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2017-2018 The HUZU developers
// Copyright (c) 2018-2019 The ZIJA developers
// Copyright (c) 2019 The 2PAY developers
/... |
// Copyright (c) 2019 The CounosH Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <logging.h>
#include <logging/timer.h>
#include <test/util/setup_common.h>
#include <chrono>
#include <boost/test/unit_... |
#include <iostream>
#include <string>
using namespace std;
/*
My first Calculator in C++
*/
// Defining some vars
int selectvar;
double num1;
double num2;
double outputresult;
// Defining functions
int add(double num1, double num2);
int sub(double num1, double num2);
// Writing operator functions
int add(double ... |
//
// Copyright (c) 2011-2012 Krzysztof Jusiak (krzysztof 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)
//
#ifndef QFSM_BACK_DETAIL_EXECUTION_STATE_HPP
#define QFSM_BACK_DETAIL_EXECUTION_STAT... |
// Copyright (c) 2012-2019 The TurboStake developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <kernel.h>
#include <chainparams.h>
#include <util.h>
#include <validation.h>
#include <streams.h>
#include <timed... |
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2018-2018 The VERGE Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <consensus/tx_verify.h>
#include <consensus/consensus.h>
#incl... |
/*=============================================================================
Copyright (c) 2011 Thomas Heller
Copyright (c) 2001-2011 Hartmut Kaiser
Copyright (c) 2011 Thomas Heller
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at ... |
//=================================================================================================
/*!
// \file src/mathtest/smatsvecmult/SCbVCa.cpp
// \brief Source file for the SCbVCa sparse matrix/sparse vector multiplication math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// Th... |
#include "main/lsp/requests/initialize.h"
#include "main/lsp/json_types.h"
using namespace std;
namespace sorbet::realmain::lsp {
const std::vector<std::string> InitializeTask::TRIGGER_CHARACTERS = {".", ":", "@"};
InitializeTask::InitializeTask(LSPConfiguration &config, MessageId id, std::unique_ptr<InitializePara... |
/*
* Copyright 2008, Haiku Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Alexandre Deckner <alex@zappotek.com>
*/
// Some math utils, useful for animation
#include "MathUtils.h"
#include <math.h>
float
MathUtils::EaseInOutCubic(float time, float start, float di... |
//==================================================================================
// Copyright (c) 2016 , Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file dmnConfigManager.cpp
///
//==================================================================================
... |
/*
* File: pr_loqo.c
* Purpose: solves quadratic programming problem for pattern recognition
* for support vectors
*
* Author: Alex J. Smola
* Created: 10/14/97
* Updated: 11/08/97
* Updated: 13/08/98 (removed exit(1) as it crashes svm lite when the margin
* ... |
/******************************************************************************/
/* */
/* Copyright (c) 2010, 2014 Sylwester Wysocki <sw143@wp.pl> */
/* ... |
// System::Web::Services::Description.SoapHeaderBinding
/*
The following example demonstrates the class 'SoapHeaderBinding'.
It takes as input a wsdl file. By using the 'Read' method
of 'ServiceDescription' class it gets a 'ServiceDescription' object.
It uses the SOAP protocol related classes and creates 'Binding' e... |
#include "Shader.hh"
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <sstream>
#include <glow/glow.hh>
#include <glow/util/DefaultShaderParser.hh>
#include <glow/common/log.hh>
#include <glow/common/profiling.hh>
#include <glow/common/shader_endings.hh>
#include <glow/common/str_u... |
/*
* This work is part of the Core Imaging Library developed by
* Visual Analytics and Imaging System Group of the Science Technology
* Facilities Council, STFC
*
* Copyright 2017 Daniil Kazantsev
* Copyright 2017 Srikanth Nagella, Edoardo Pasca
*
* Licensed under the Apache License, Version 2.0 (the "License")... |
#include <string>
#include <BWAPI/TechType.h>
#include <BWAPI/Race.h>
#include <BWAPI/Order.h>
#include <BWAPI/UnitType.h>
#include <BWAPI/WeaponType.h>
#include "../../Debug.h"
namespace BWAPI
{
// NAMES
template <>
const std::string Type<TechType, TechTypes::Enum::Unknown>::typeNames[TechTypes::Enum::MAX] =
... |
//===----- FunctionOrder.cpp - Utility for function ordering --------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
// 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 "extensions/browser/event_router.h"
#include <string>
#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#incl... |
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "Pixel2DAnimBlueprintNodeOptionalPinManager.h"
#include "UObject/UnrealType.h"
#include "Kismet2/BlueprintEditorUtils.h"
#include "Pixel2DAnimNode_Base.h"
#include "Pixel2DAnimGraphSchema.h"
#include "Pixel2DAnimGraphNode_Base.h"
FPixel2DAnimBluepr... |
#pragma once
#include <Vega/Std.hpp>
#include <Vega/Core/Core.hpp>
#include <Vega/Core/SharedObject.hpp>
namespace Vega::Core::Loader {
class PluginLoader final {
public:
explicit PluginLoader(boost::filesystem::path root) : mRoot(root) {
VEGA_RUNTIME_ERROR(!boost::filesystem::is_directory(mRoot), "Inv... |
// Copyright (c) 2019 The Bigbang developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "config.h"
#include <algorithm>
#include <boost/filesystem.hpp>
#include <exception>
#include <iostream>
#include <numeri... |
// Distributed under the BSD 2-Clause License - Copyright 2012-2021 Robin Degen
#include <aeon/rdp/parser.h>
#include <aeon/rdp/matchers.h>
#include <aeon/common/bom.h>
#include <gtest/gtest.h>
using namespace aeon;
TEST(test_rdp, test_advance_reverse_eof_bof_current)
{
rdp::parser parser{"123"};
EXPECT_FAL... |
// 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 "content/browser/webui/url_data_manager_backend.h"
#include <set>
#include "base/bind.h"
#include "base/command_line.h"
#include "base/comp... |
// Copyright (c) 2011 Bryce Lelbach
//
// 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)
#if !defined(HPX_3C373507_9301_4368_B718_39D25FDF06F4)
#define HPX_3C373507_9301_4368_B718_39D25FDF06F4
#include <hpx/hpx_f... |
/*
* 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
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__wchar_t_file_ifstream_06.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-06.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: file Read input from a file
* ... |
// Copyright Louis Dionne 2013-2016
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/assert.hpp>
#include <boost/hana/at.hpp>
#include <boost/hana/equal.hpp>
#include <boost/hana/experimental/view... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include "datalake_service_client_test.hpp"
#include <algorithm>
namespace Azure { namespace Storage { namespace Test {
const size_t c_FILE_SYSTEM_TEST_SIZE = 5;
std::shared_ptr<Files::DataLake::DataLakeServiceClient>
... |
// 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"
#include "tx... |
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
Var x("x"), y("y"), c("c");
Var xo("xo"), yo("yo"), xi("xi"), yi("yi");
uint8_t phase = 0;
class HalidePipeline {
public:
ImageParam input;
std::vector<Argument> args;
//Param<uint8_t> phase; // One bit each for x and y phase
Func padded... |
/*
* 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 "NFAtoDFA.h"
#include "RegexParser.h"
#include <fstream>
#include <sstream>
#include <string>
/**
* Processes a .lex file and produces .h and .cpp files which impl... |
/*
* Copyright (c) 2008-2010
* Nakata, Maho
* All rights reserved.
*
* $Id: Rstemr.cpp,v 1.3 2010/08/07 04:48:33 nakatamaho Exp $
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributi... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2009. 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/i... |
#include "globals.h"
#include "flags.h"
#include "fluxmap.h"
#include "usb.h"
#include "fluxsink/fluxsink.h"
FlagGroup hardwareFluxSinkFlags;
static bool high_density = false;
static IntFlag indexMode(
{ "--write-index-mode" },
"index pulse source (0=drive, 1=300 RPM fake source, 2=360 RPM fake source",
... |
// 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/compiler/simplified-operator.h"
#include "include/v8-fast-api-calls.h"
#include "src/base/lazy-instance.h"
#include "src/compiler/opcodes... |
#include <cstdio>
#include <cassert>
#include <queue>
#include <iostream>
#define MAX_NODES 600000
typedef struct
{
char state;
int par;
long long balls;
int left, right;
} node_t;
using namespace std;
node_t nodes[MAX_NODES + 1];
bool vis[MAX_NODES];
void dfs(int node)
{
if(node == 0 || vis[node])
return;
... |
#ifndef BOOST_SMART_PTR_DETAIL_SPINLOCK_NT_HPP_INCLUDED
#define BOOST_SMART_PTR_DETAIL_SPINLOCK_NT_HPP_INCLUDED
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
//
// Copyright (c) 2008 Peter Dimov
//
// Distributed under the Boost Software License, V... |
/* Copyright 2019 Google LLC. 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... |
/*
* Copyright (c) 2014 The WebRTC 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. All contribut... |
#ifndef STRING_H
#define STRING_H
#include <gdnative/string.h>
namespace godot {
class NodePath;
class Variant;
class PoolByteArray;
class PoolIntArray;
class PoolRealArray;
class PoolStringArray;
class String;
class CharString {
friend class String;
godot_char_string _char_string;
public:
~CharString();
in... |
// Copyright 2019 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 "ledger/LedgerManagerImpl.h"
#include "test/TestUtils.h"
#include "test/test.h"
#incl... |
#pragma once
#include "HotkeyCategory.hpp"
#include <QString>
#include <map>
namespace chatterino {
// ActionDefinition is an action that can be performed with a hotkey
struct ActionDefinition {
// displayName is the value that would be shown to a user when they edit or create a hotkey for an action
QStrin... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2020 The CryptoDev developers
// Copyright (c) 2020 The FunCoin developers
// Distributed under the MIT software license... |
#include "shellprv.h"
#pragma hdrstop
#include "ids.h"
#include "mtptl.h"
#include "hwcmmn.h"
#include "datautil.h"
// for now
#include "mixctnt.h"
#include "filetbl.h"
#include "apprmdlg.h"
#include "views.h"
#include <ddraw.h>
CDPA<PNPNOTIFENTRY> CSniffDrive::_dpaNotifs = NULL;
HANDLE ... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/cpu/activation/activations.h"
#include "activations.h"
namespace onnxruntime {
namespace contrib {
ONNX_CPU_OPERATOR_KERNEL(
ParametricSoftplus,
1,
KernelDefBuilder().MayInplace(0, 0).... |
//===-- Unittests for roundl ----------------------------------------------===//
//
// 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
//
//===---------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.