text stringlengths 5 1.04M |
|---|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "PakFilePrivatePCH.h"
#include "IPlatformFilePak.h"
#include "SecureHash.h"
#include "FileManagerGeneric.h"
#include "ModuleManager.h"
#include "IPlatformFileModule.h"
#include "IOBase.h"
#include "BigInt.h"
#include "SignedArchiveReader.h"
#include... |
// 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: Zenject.FromBi... |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* mergeTwoLists(ListNode* l1, ListNode* l2) {
if(l1 == NULL) return l2;
if(l2 == NULL) return l1;
if... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
// Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time
#define QUICKCPPLIB_PREVIOUS_COMMIT_REF 01e18d3e6549400646f41b79de318994eac95f25
#define QUICKCPPLIB_PREVIOUS_COMMIT_DATE "2019-02-11 10:00:33 +00:00"
#define QUICKCPPLIB_PREVIOUS_COMMIT_UNIQUE 01e18d3e
|
/**
* \class L1GtTriggerMask
*
*
* Description: L1 GT mask.
*
* Implementation:
* <TODO: enter implementation details>
*
* \author: Vasile Mihai Ghete - HEPHY Vienna
*
* $Date$
* $Revision$
*
*/
// this class header
#include "CondFormats/L1TObjects/interface/L1GtTriggerMask.h"
// system inclu... |
#include "Commit.h"
std::string EmailLine(std::string str)
{
int ipos;
while ((ipos = str.find("\n")) != std::string::npos)
{
str = str.replace(ipos, 1, "");
}
std::string strRetVal("-M \"");
strRetVal.append(str);
strRetVal.append("\" ");
return strRetVal;
}
void Commit::PopulateFromJson(Jso... |
#ifndef QRPROCESSES_HPP
#define QRPROCESSES_HPP
#include "QrDefinitions.hpp"
#include "QrDefinitions_Internal.hpp"
#include <string>
#include "QrMatrixFunction.hpp"
#include "QrAlignmentPatternLocations.hpp"
#include "QrMatrixData.hpp"
#include "QrMask.hpp"
#include "QrInformationStrings.hpp"
#include "QrErrorCorrectio... |
#ifndef PEDIDO_H
#define PEDIDO_H
#pragma once
#define MAX_PRATOS 10
#include <string>
namespace pkt_comanda {
class Pedido
{
private:
int quantidade, prato;
std::string cardapio[MAX_PRATOS] {"Executivo", "Churrasco", "Sopa suspeita", "Cafe", "Suco",
"Feijoada", "Salada", "Pipoca na mant... |
/** Benchmark different event implementations. */
#include <iostream>
#include <cuda.h>
#include "Al.hpp"
#include "benchmark_utils.hpp"
#include "wait.hpp"
class Event {
public:
virtual void record(cudaStream_t stream) = 0;
virtual bool query() = 0;
};
class CudaEvent : public Event {
public:
CudaEvent() {
... |
/*
* Copyright (c) 2016, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... |
#pragma once
#include "Base.hpp"
enum class CollisionKind { Asteroid, Projectile, Player };
struct CollisionEvent: public Event {
CollisionEvent(Entity* asteroid, Entity* collider, const CollisionKind kind):
asteroid{asteroid}, collider{collider}, kind{kind} {}
Entity* asteroid;
Entity* collider... |
#include <memory>
#define CATCH_CONFIG_DEFAULT_REPORTER "multiprocess"
#define CATCH_CONFIG_MAIN
#include "Catch/single_include/catch2/catch.hpp"
#include "uitsl/debug/MultiprocessReporter.hpp"
#include "uitsl/mpi/MpiGuard.hpp"
#include "uit/ducts/proc/impl/inlet/accumulating+type=span/s::IsendDuct.hpp"
#include "ui... |
/******************************************************************************\
* Author: Matthew Beauregard Smith *
* Affiliation: The University of Texas at Austin *
* Department: Oden Institute and Institute for Cellular and Molecular Biology... |
#pragma once
/*
MIT License
Copyright (c) 2017 ZetaChain_Native
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, ... |
// Copyright (c) 2012-2020 The Beans Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <rpc/client.h>
#include <rpc/server.h>
#include <rpc/util.h>
#include <core_io.h>
#include <interfaces/chain.h>
#incl... |
#include "../Ui/ProgressBar.h"
#include "../Graphics/Colour.h"
#include "../Graphics/Gfx.h"
#include "../Graphics/ImageIds.h"
#include "../Interop/Interop.hpp"
#include "../OpenLoco.h"
#include "../Ui/WindowManager.h"
#include "../Window.h"
#include <array>
#include <string>
#include <string_view>
using namespace Ope... |
//=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=================================================================... |
// 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.
// The history system runs on a background thread so that potentially slow
// database operations don't delay the browser. This backend processing is
... |
/*
* The MIT License (MIT)
*
* 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, publish, distrib... |
/**
* @file unit_test_fnd_concepts_regular_invocable.cpp
*
* @brief regular_invocable のテスト
*
* @author myoukaku
*/
#include <bksge/fnd/concepts/regular_invocable.hpp>
#include <bksge/fnd/config.hpp>
#if defined(BKSGE_HAS_CXX20_CONCEPTS)
# define BKSGE_REGULAR_INVOCABLE_TEST(B, ...) \
static_asse... |
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... |
// testmainmodule.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "testmainmodule.h"
#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>
typedef websocketpp::server<websocketpp::config::asio> WebsocketServer;
typedef WebsocketServer::message_p... |
#include "cwpch.h"
#include "Crowny/Scripting/Bindings/Utils/ScriptCompression.h"
#include <mono/metadata/object.h>
namespace Crowny
{
ScriptCompression::ScriptCompression() : ScriptObject() {}
void ScriptCompression::InitRuntimeData()
{
MetaData.ScriptClass->AddInternalCall("Internal_Compress",... |
#include <EnginePCH.h>
#include "TextureDX11.h"
#include "StructuredBufferDX11.h"
#include "RenderTargetDX11.h"
RenderTargetDX11::RenderTargetDX11( ID3D11Device2* pDevice )
: m_pDevice( pDevice )
, m_Width( 0 )
, m_Height( 0 )
, m_bCheckValidity( false )
{
m_pDevice->GetImmediateContext2( &m_pDev... |
#include "ConstantPool/ConstantFloatInfo.h"
#include "ClassReader.h"
#include <sstream>
namespace Compiler
{
std::string CConstantFloatInfo::ToString() const
{
std::ostringstream oss;
oss << "ConstantFloatInfo {" << std::endl;
oss << " Bytes: " << Bytes << std::endl;
... |
/*
* 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 2013 Matthew Harvey
*
* 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... |
#include <vector>
#include <iostream>
#include <queue>
#include <algorithm>
#include <string>
using namespace std;
int n, m;
int map[101][101];
bool visit[101][101];
vector<pair<int, int>> dxy = { {1, 0}, {-1, 0}, {0, 1}, {0,-1} };
void bfs(int start) { //1
int cnt = 1;
queue<pair<int, int>> q;
q.push({ start, sta... |
#include "dragon/operators/math/elementwise_op.h"
#include "dragon/core/workspace.h"
#include "dragon/utils/math_functions.h"
namespace dragon {
#define DISPATCH_WITH_TENSOR_TYPES(name, tensor_types, X_ref) \
template <class Context> \
void name##Op<Context>::RunOnDevice() { ... |
#include "qhotkey.h"
#include "qhotkey_p.h"
#include <QDebug>
#include <QX11Info>
#include <QThreadStorage>
#include <QTimer>
#include <X11/Xlib.h>
#include <xcb/xcb.h>
//compability to pre Qt 5.8
#ifndef Q_FALLTHROUGH
#define Q_FALLTHROUGH() (void)0
#endif
class QHotkeyPrivateX11 : public QHotkeyPrivate
{
public:
... |
/**
* Copyright (c) 2015 Parrot S.A.
* 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... |
#include "Display.h"
const double Display::LOGIC_VIEWPORT_SIZE_MUL = 2;
Display::Display()
{
}
Display::~Display()
{
}
void Display::draw()
{
// Render into buffer:
for (int x = 0; x < mViewportSize.width; x++) {
for (int y = 0; y < mViewportSize.height; y++) {
double shaderX = (static_cast<double>(x) - mVi... |
/**
* @file arc.cpp
* @author Petr Vana
* @brief Arc is a basic segment in Dubins maneuver
*/
#include "arc.h"
namespace opendubins {
State Arc::getState(double len) const {
return getStateByAngle(len * sgn(angle) / radius);
}
StateAtDistance Arc::getClosestStateAndDistance(con... |
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* 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) 2011 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 <limits>
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#i... |
// Filename: config_interrogatedb.cxx
// Created by: drose (01Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. ... |
class Solution {
public:
int maxSubArray(vector<int>& nums) {
int len = nums.size();
int sum = 0, maxSum = -2147483647;
for(int i=0; i<len; i++) {
sum += nums[i];
maxSum = max(maxSum, sum);
if(sum < 0) sum = 0;
}
return maxSum;
}
}; |
/*
* Souffle - A Datalog Compiler
* Copyright (c) 2020, The Souffle Developers. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/********************************************************... |
// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <utility>
#include "caf/detail/as_mutable_ref.hpp"
#include "caf/d... |
/*************************************************************************/
/* script_language.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime-sdk-meetings/model/TranscribeLanguageCode.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using na... |
// Copyright 1996-2018 Cyberbotics 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 or agr... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017 The LISYNetwork Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "arith_uint256.h"
#include "uint256.h"
#include "version.h"
#in... |
// MFCActiveSoftwareDlg.cpp: 实现文件
//
#include "pch.h"
#include "framework.h"
#include "MFCActiveSoftware.h"
#include "MFCActiveSoftwareDlg.h"
#include "afxdialogex.h"
#include "activity.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#include "CDlgMakeDlg.h"
#include "CDlgOkExit.h"
#include "md5.h"
// 用于应用程序“关于”菜单项... |
/* $Id$ */
/*
* Copyright (c) 2013 Roland van Rijswijk-Deij
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* not... |
#include "../features.hpp"
#include "../rage/backtrack.h"
extern hooks::draw_model_execute::fn draw_model_execute_original;
////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Smoke Shit */
std::vector<const char*> vistasmoke_mats =
{
"particle/vis... |
#pragma once
#include <filesystem>
#include <cereal/cereal.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/string.hpp>
#include <chopper/cereal/path.hpp>
namespace chopper::layout
{
struct configuration
{
std::string input_prefix{}; // provided by user
std::filesystem::path count_filename{}; ... |
// Copyright (c) 2020 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) 2017-2018 Hartmut Kaiser
//
// 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(PHYLANX_PRIMITIVES_BLOCK_OPERATION_OCT_08_2017_0757PM)
#define PHYLANX_PRIMITIVES_BLOCK_OPERATION_OCT_08_... |
// Copyright (C) 2008, 2009 International Business Machines and others.
// All Rights Reserved.
// This code is published under the Eclipse Public License.
//
// $Id$
//
// Authors: Andreas Waechter IBM 2008-08-31
#include "IpInexactSearchDirCalc.hpp"
namespace Ipopt
{
#if COIN_IPOPT_VERBOSITY > 0
s... |
/*
* Copyright (c) 2017-2018, The Alloy Developers.
*
* This file is part of Alloy.
*
* This file is subject to the terms and conditions defined in the
* file 'LICENSE', which is part of this source code package.
*/
#include <System/Dispatcher.h>
#include <System/ContextGroup.h>
#include <System/InterruptedExce... |
#using <system.dll>
using namespace System;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
namespace MiscCompModSamples
{
public ref class ComponentRenameEventArgsExample
{
public:
ComponentRenameEventArgsExample()
{
}
//<Snippet1>
public:
... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <cstddef>
#include <type_traits>
#include "DataStructures/DataBox/DataBox.hpp"
#include "Framework/ActionTesting.hpp"
#include "IO/Observer/Actions/GetLockPointer.hpp"
#include "IO/Observer/Observ... |
// Copyright 2015 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 "base/logging.h"
#include "media/formats/mp4/box_reader.h"
class NullMediaLog : publ... |
//------------------------------------------------------------------------------
/*
This file is part of MUSO: https://github.com/MUSO/MUSO
Copyright (c) 2012-2015 MUSO Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, pr... |
// 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 "content/browser/bluetooth/bluetooth_blocklist.h"
#include "base/check.h"
#include "base/metrics/histogram_macros.h"
#include "base/optional.h"
... |
#include <stdio.h>
#include <sys/types.h>
#include <sys/time.h>
#include "tiles.h"
void runit (int num=10, int ct=2048, int numt=1)
{
int i,j;
float vars[2];
int* the_tiles = (int*) malloc(numt*sizeof(int));
for (i=0; i<num; i++)
{
for (j=0; j<num; j++)
{
vars[0] = i*0.... |
/*!
@file
@author Alexander Ptakhin
@date 01/2009
*/
/*
This file is part of MyGUI.
MyGUI 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 3 of the License, or
(at your option) any ... |
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include "netbase.h"
#include "optionsmodel.h"
#include <QDir>
#include <QIntValidator>
#include <QLocale>
#include <QMessageBox>
OptionsDialog::OptionsDialog(QWidget *parent) :
QDialog(parent),
... |
/* Copyright 2020 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 "GameScene.h"
#include "Ship.h"
#include "MeteorSpawner.h"
GameScene::GameScene() {
ShipPtr ship = std::make_shared<Ship>();
addGameObject(ship);
MeteorSpawnerPtr meteorSpawner = std::make_shared<MeteorSpawner>();
addGameObject(meteorSpawner);
}
|
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or ... |
// Copyright 2020 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/component_updater/registration.h"
#include "base/feature_list.h"
#include "base/files/file_path.h"
#include "base/metrics/histog... |
/*
* Copyright 2021 The Modelbox Project 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 requi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include "mex.h"
#include "../src/TVopt.h"
/* solveTV.cpp
Solves 1-dimensional unweighted TV proximity problems by applying the most appropriate algorithm
Parameters:
- 0: reference signal y... |
#include "animation_gradientpattern.h"
#include "keyframes.h"
#include "data_set/data_set.h"
#include "data_set/data_animation_bits.h"
#include "assert.h"
#include "../utils/utils.h"
#include "nrf_log.h"
// FIXME!!!
#include "modules/anim_controller.h"
#include "utils/rainbow.h"
#include "config/board_config.h"
names... |
// Hossein Moein
// September 12, 2017
/*
Copyright (c) 2019-2022, Hossein Moein
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,... |
#include <iostream>
using namespace std;
typedef long long ll;
typedef long double ld;
#define rep(i, n) for (int i = 0; i < (int)(n); ++i)
#define rep3(i, m, n) for (int i = (m); i < (int)(n); ++i)
#define rrep(i, n) for (int i = (int)(n)-1; i >= 0; --i)
#define rrep3(i, m, n) for (int i = (int)(n)-1; i... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/IPoseBlendMethod.hpp>
namespace RED4ext
{
namespace anim {
struct PoseBlendMethod_Mask : anim::IPoseBlendMethod
{
... |
/*!
@file WaveTrackShifter.cpp
@brief headerless file injects method definitions for time shifting of WaveTrack
*/
#include "../../../ui/TimeShiftHandle.h"
#include "ViewInfo.h"
#include "../../../../WaveClip.h"
#include "../../../../WaveTrack.h"
class WaveTrackShifter final : public TrackShifter {
public:
Wave... |
// Copyright (c) 2020 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/strings/escape.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conve... |
/*
* 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
... |
// Copyright (c) 2009-2013 The Bitcoin developers
//Copyright (c) 2017-2020 The PIVX developers
//Copyright (c) 2020 The Bitcrore Coin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypter.h"
#include... |
#include <cstdint>
#include <memory>
#include <string>
#include "common/buffer/buffer_impl.h"
#include "common/common/empty_string.h"
#include "common/common/fmt.h"
#include "common/event/dispatcher_impl.h"
#include "common/network/address_impl.h"
#include "common/network/connection_impl.h"
#include "common/network/li... |
/*
* Copyright (c) 2021, Itamar S. <itamar8910@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "Parser.h"
#include "AST.h"
#include <AK/Debug.h>
#include <AK/ScopeGuard.h>
#include <AK/ScopeLogger.h>
#include <LibCpp/Lexer.h>
namespace Cpp {
Parser::Parser(const StringView& program, const String... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/GetMessagingSessionEndpointResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#inc... |
#include <aslam/cameras/camera.h>
#include <aslam/cameras/ncamera.h>
#include <aslam/cameras/yaml/camera-yaml-serialization.h>
#include <aslam/cameras/yaml/ncamera-yaml-serialization.h>
#include <aslam/common/memory.h>
#include <aslam/common/yaml-serialization.h>
namespace YAML {
//
bool convert<std::shared_ptr<aslam:... |
/*
* Copyright (c) 2014, Matias Fontanini
* 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 ... |
#include <iostream>
#include "LinkedList.h"
#include <iterator>
#include <string>
bool compare(std::string s1, std::string s2){
if ((s1.length() == s2.length()) || (s1.length() > s2.length())){
return false; // For some reason >= is not working in isSorted method
}
return true;
}
int main() ... |
/*
* Copyright (c) 2019 Michael Mathers
*/
#include <penguin/Timer.h>
#include <iostream>
#include <thread>
#include <type_traits>
namespace
{
bool test_basic_timer_ms(void)
{
Penguin::Timer<unsigned long long, std::milli> timer;
unsigned long long intermediate_split;
timer.... |
/*******************************************************************************
* Copyright 2019 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is h... |
/***************************************************
* Problem Name : 1140 - How Many Zeroes?(2).cpp
* Problem Link : http://lightoj.com/volume_showproblem.php?problem=1140
* OJ : LOJ
* Verdict : AC
* Date : 2019-01-28
* Problem Type : DigitDP
* Author Name : Saikat Sharma
* University ... |
#include "test_utils.h"
#include "variant/variant_header_builder.h"
#include "missing.h"
#include <set>
#include <boost/test/unit_test.hpp>
using namespace std;
using namespace gamgee;
template<class T>
void check_fields(T actual, T truth) {
std::sort(actual.begin(), actual.end());
std::sort(truth.begin(), trut... |
#ifndef CAFFE_DATA_LAYERS_HPP_
#define CAFFE_DATA_LAYERS_HPP_
#include <vector>
#include <mutex>
#include "caffe/common.hpp"
#include "caffe/blob.hpp"
#include "caffe/data_transformer.hpp"
#include "caffe/batch_transformer.hpp"
#include "caffe/internal_thread.hpp"
#include "caffe/layer.hpp"
#include "caffe/proto/caff... |
#include "Camera.h"
#include <glm/ext.hpp>
void SimpleCamera::MoveForward(float Scale)
{
ForwardScale = Scale;
}
void SimpleCamera::MoveRight(float Scale)
{
RightScale = Scale;
}
void SimpleCamera::MouseMove(float X, float Y)
{
if (bEnableMouseMovement)
{
glm::vec2 CurrentCursor{ X, Y };
glm::vec2 Delta = ... |
/*
** EPITECH PROJECT, 2019
** GBEmulator
** File description:
** Test_isVBlankInterrupt.cpp
*/
#include <criterion/criterion.h>
#include <iostream>
#include "../communism.hpp"
#include "../TestComponents.hpp"
Test(isVBlankInterrupt, no_interrupt)
{
Tests::GBTest gb;
gb.cpu._gpu._control = 0x80;
gb.cpu._gpu._cycl... |
// Tencent is pleased to support the open source community by making UnLua available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the MIT License (the "License");
// you may not use this file except in compliance with the License. You may obtain a copy of the... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#include <memory>
#include <string>
#include "db/db_test... |
/*
* PROGRAM: Client/Server Common Code
* MODULE: ClumpletWriter.cpp
* DESCRIPTION: Secure handling of clumplet buffers
*
* The contents of this file are subject to the Initial
* Developer's Public License Version 1.0 (the "License");
* you may not use this file except in compliance with the
* License. You... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2021-2021 ArangoDB GmbH, Cologne, Germany
///
/// 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 co... |
// 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
#include <utility>
#include "iree/compiler/Dialect/Flow/IR/FlowDialect.h"
#include "iree/compile... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright noti... |
// Copyright (C) 2013 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include "opaque_types.h"
#include <dlib/python.h>
#include <dlib/matrix.h>
#include <dlib/geometry.h>
#include <dlib/image_transforms.h>
#include <pybind11/stl_bind.h>
#include "indexing.h"... |
// 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: UnityEngine.Mo... |
// RUN: %clang_cc1 -verify -fopenmp -ferror-limit 150 -o - %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp -std=c++98 -ferror-limit 150 -o - %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp -std=c++11 -ferror-limit 150 -o - %s -Wuninitialized
// RUN: %clang_cc1 -verify -fopenmp-simd -ferror-limit 150 -o -... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/storage/blobfs/directory.h"
#include <fuchsia/device/c/fidl.h>
#include <lib/fidl-utils/bind.h>
#include <lib/sync/completion.h>
#include <s... |
#include "EditableModelView.hpp"
#include <QAbstractTableModel>
#include <QHBoxLayout>
#include <QHeaderView>
#include <QPushButton>
#include <QTableView>
#include <QVBoxLayout>
namespace chatterino {
EditableModelView::EditableModelView(QAbstractTableModel *model)
: tableView_(new QTableView(this))
, model_... |
// Copyright 2020 modio. All Rights Reserved.
// Released under MIT.
#include "BlueprintCallbackProxies/CallbackProxy_DownloadModfilesById.h"
#include "ModioSubsystem.h"
#include "Engine/Engine.h"
UCallbackProxy_DownloadModfilesById::UCallbackProxy_DownloadModfilesById(const FObjectInitializer &ObjectInitializer)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.