text stringlengths 7 961k |
|---|
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
#include <DataTypes/NestedUtils.h>
#include <DataTypes/DataTypeArray.h>
#include <Common/escapeForFileName.h>
#include <Compression/CachedCompressedReadBuffer.h>
#include <Columns/ColumnArray.h>
#include <Interpreters/inplaceBlockConversions.h>
#include <Storages/MergeTree/IMergeTreeReader.h>
#include <Common/typeid_ca... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/history/history_types.h"
#include <limits>
#include "base/logging.h"
#include "base/stl_util.h"
#include "chrome/browser/hi... |
#include "Geometry/MTDNumberingBuilder/interface/MTDTopology.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
MTDTopology::MTDTopology(const int& topologyMode, const ETLValues& etl)
: mtdTopologyMode_(topologyMode), etlVals_(etl) {}
bool MTDTopology::orderETLSector(const GeomDet*& gd1, const GeomDet*&... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2017 The Khronos Group Inc.
* Copyright (c) 2018 NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2020, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
#include "VoxelMeshBatched.h"
namespace pgt {
VoxelMeshBatched::VoxelMeshBatched(BATCH_VARIANT v)
: variant(v),
_parent_batch(nullptr),
_disabled(false),
_pos_in_buffer(-1),
_submitted_vertex_count(0),
_requires_update(true),
_transformation(mat4:... |
/*******************************************
Copyright 2017 OOO "LMS"
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 ... |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth 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; e... |
/**
* Copyright 2014 Google Inc. 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 requir... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
#include "LoadExecuter.h"
#include "OperandType.h"
#include "MessageException.h"
#include "StringHelper.h"
namespace bnssemulator {
static const int32_t UNSIGNED_BYTE_MASK = 0x000000ff;
static const int32_t UNSIGNED_WORD_MASK = 0x0000ffff;
static const int32_t SIGNED_BYTE_TEST = 0x00000080;
static const int32_t ... |
#import "TargetConditionals.h"
#if TARGET_OS_SIMULATOR
#include "SkBitmapProcState_opts_none.cpp"
#include "SkBlitMask_opts_none.cpp"
#include "SkBlitRow_opts_none.cpp"
//#include "SkOpts.cpp"
//#include "SkOpts_ssse3.cpp"
//#include "SkOpts_sse41.cpp"
#else
#include "SkBitmapProcState_arm_neon.cpp"
#include "SkBit... |
#ifndef ASLAM_BACKEND_MATRIX_EXPRESSION_HPP
#define ASLAM_BACKEND_MATRIX_EXPRESSION_HPP
#include <eigen3/Eigen/Core>
#include <boost/shared_ptr.hpp>
#include <aslam/backend/JacobianContainer.hpp>
#include "HomogeneousExpression.hpp"
#include "EuclideanExpression.hpp"
#include "TransformationExpression.hpp"
#include <s... |
/*******************************************************************************
* Copyright 2019-2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... |
#include "stdafx.h"
#define _CRT_SECURE_NO_WARNINGS
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include <Windows.h>
#include <stdio.h>
#include <tchar.h>
#include <string.h>
#include <iostream>
#include <WinSock2.h>
#include "Comms.h"
#include "GetMacAddress.h"
#include "GetUsername.h"
#include "GetIP.h"
#include "Get... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
#include "Application.h"
#include "../Behaviours/Behaviour.h"
#include "../Graphics/Cores/MainAPI/Graphics.h"
#include "../Graphics/Cores/Renderer/RendererCore.h"
#include "../Graphics/Externals/SceneAndDrawCall.h"
//SCENES
//#include "../Game/SampleScene.tits.h"
#include "../Game/GameMain.h"
#include "../Editor/Edit... |
/*
*
* Copyright (c) 2021 Project CHIP 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_SpaceWhale_AIController_BP_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------------------... |
/**
* \file
*
* \author Mattia Basaglia
*
* \copyright Copyright (C) 2015 Mattia Basaglia
*
* This program 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
*... |
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2018-2019 FXTC developers
// Copyright (c) 2019 EXOSIS developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <governance-votedb.h>
CGovernan... |
/*/////////////////////////////////////////////////////////////////////////////////
/// An
/// ___ ____ ___ _____ ___ ____
/// / _ \ / ___|_ _|_ _/ _ \| _ \
/// | | | | | _ | | | || | | | |_) |
/// | |_| | |_| || | | || |_| | _ <
/// \___/ \____|___| |_| \___/|_| \_\
/// ... |
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QString>
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#include <QUrl>
#include <QTextDocument> // For Qt::escape
#include ... |
/*************************************************************************/
/* spin_box.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <algorithm>
#include <iterator>
#include "polo_api.h"
#include "polo_aux.hpp"
#include "polo/algorithm/proxgradient.hpp"
#include "polo/smoothing/adagrad.hpp"
extern "C" {
polo_error_t polo_adagrad_s(polo_value_t *fval, polo_value_t *xbegin,
polo_value_t *xend, polo_loss_t loss_f... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) ... |
/*
Copyright 2019 Alain Dargelas
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, softwar... |
//matrix mul, like a stream
#include <iostream>
#include <vector>
#include "../definition.hpp"
int main() {
source_matrixpair_stage s;
drain_matrix_stage d;
map_matrix_mul_stage m;
auto start = std::chrono::high_resolution_clock::now();
while (s.has_next()) {
auto mm = s.next();
auto ms = new matr... |
// Copyright 2016 The Fuchsia Authors
// Copyright (c) 2014 Travis Geiselbrecht
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include "vm/page.h"
#include <inttypes.h>
#include <lib/console.h>
#include <stdio.h>
#... |
#include<cassert>
template<class T>
T func(T* t){return *t;}
template<class T>
T func(T t){ return t;}
int main()
{
int x = 10;
assert(func<int>(&x) == func<int>(x));
} |
/**
* \class L1GtAlgorithmEvaluation
*
*
* Description: Evaluation of a L1 Global Trigger algorithm.
*
* Implementation:
* <TODO: enter implementation details>
*
* \author: Vasile Mihai Ghete - HEPHY Vienna
*
*
*/
// this class header
#include "L1Trigger/GlobalTrigger/interface/L1GtAlgorithmEv... |
// Copyright (c) 2013-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "hash.h"
#include "utilstrencodings.h"
#include "test/test_iqcash.h"
#include <vector>
#include <boost/test/unit_t... |
#include <string.h>
#ifdef WIN32
#define _MSC_STDINT_H_
#include <iostream>
#include <stdint.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#else
#include <strings.h>
#include <errno.h>
#endif
#include <assert.h>
#includ... |
/* Copyright 2018 Nils Bore (nbore@kth.se)
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following discla... |
#include <tuple>
#include <memory>
#include "toggle.h"
#include "sdk_status.h"
namespace api
{
Toggle::Toggle()
{
auto status = SdkStatusImpl(NvAPI_Initialize());
if (!status.IsSuccessful)
{
// std::cerr << status.Message;
}
}
Toggle::~Toggle()
{
... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin >> N;
cin.ignore(numeric_limits<streamsize>::max(), '\n');
if ((N%2 == 1 &&N > 1 && N < 6) || (N%2 == 0 && N > 5 && N < 21) || (N%2 == 1 && N > 20)) {
cout << "Weird";
} else {
cout << "Not Weird";
}
... |
// Copyright 2018 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 "third_party/blink/renderer/core/css/css_test_helpers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/renderer/bin... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/compiler/backend/code-generator.h"
#include <limits>
#include "src/base/overflowing-math.h"
#include "src/compiler/backend/code-generato... |
// Copyright (c) 2017-2019 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 <consensus/tx_check.h>
#include <primitives/transaction.h>
#include <consensus/validation.h>
#include <script/stand... |
#include <iostream>
CoordPair closest_point(double vx, double vy, double x, double y)
{
double len=std::sqrt(vx*vx+vy*vy);
double u=(x*vx+y*vy)/len;
CoordPair c;
c.x=u*vx;
c.y=u*vy;
return c;
}
double deg_to_rad(double deg)
{
return deg*(3.14159265/180.0);
}
double rad_to_deg(double rad)... |
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentatio... |
/*
* Copyright (C) 2015 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
/**********************************************************************
This source file is a part of Demi3D
__ ___ __ __ __
| \|_ |\/|| _)| \
|__/|__| || __)|__/
Copyright (c) 2013-2014 Demi team
https://github.com/wangyanxing/Demi3D
Released under the MIT License
https://github.com/wangyanxing/De... |
/**********************************************************************
AudMonkey: A Digital Audio Editor
ExportFLAC.cpp
Frederik M.J.V
This program is distributed under the GNU General Public License, version 2.
A copy of this license is included with this source.
Based on ExportOGG.cpp by:
Joshua Haberman
Porti... |
/******************************************************************************
*
* Project: GDAL Utilities
* Purpose: Command line application to list info about a file.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
* ****************************************************************************
* Copyrigh... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Normal HUD mode
//
// $Workfile: $
// $Date: $
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "hud_chat.h"
#include "clientmode_tfnorma... |
--- liboriutil/thread_posix.cc.orig 2014-01-17 06:40:03 UTC
+++ liboriutil/thread_posix.cc
@@ -150,6 +150,8 @@ threadid_t Thread::getID() {
return pthread_mach_thread_np(pthread_self());
#elif defined(__linux__)
return ::syscall(SYS_gettid);
+#elif defined(__DragonFly__)
+ return ::syscall(SYS_lwp_gettid)... |
#ifndef BOOST_MPL_AUX_PTR_TO_REF_HPP_INCLUDED
#define BOOST_MPL_AUX_PTR_TO_REF_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2003-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... |
#include <cstdio>
#include <fmt/format.h>
#include "log.hpp"
#include "test_profiler.hpp"
#include "test_tracing_data.hpp"
namespace l {
namespace {
thread_local std::string span_context;
} // namespace
void set_span_context(const std::string& span_ctx) {
span_context = span_ctx;
}
void set_span_context(std::str... |
#include "LowerThanFloatProcessor.hpp"
#include <type-system/types/logical/comparison/LowerThanFloat.hpp>
#include <utility>
namespace inexor::visual_scripting {
using namespace inexor::entity_system;
using namespace inexor::entity_system::type_system;
using LowerThanFloat = entity_system::type_system::LowerThanFlo... |
/*
Copyright (c) 2005-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable la... |
/****************************************************************************
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017 Iakov Sergeev <yahont@github>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "So... |
class Solution {
public:
string countAndSay(int n) {
if (n < 1) return "1";
return countAndSay(n - 1, "1");
}
private:
string countAndSay(int n, const string& cur) {
if (n == 0) return cur;
stringstream ss{};
auto i = 0;
auto last = cur[i];
auto c... |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
/*
+----------------------------------------------------------------------+
| PHP-OpenCV |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled wi... |
// Copyright (c) 2012-2016 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 "cuckoocache.h"
#include "script/sigcache.h"
#include "test/test_islamic_digital_coin.h"
#include "random.h"
#inclu... |
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from portal.djinni
#pragma once
#include <cstdint>
#include <string>
#include <utility>
namespace ai {
struct Message final {
int32_t field;
std::string content;
Message(int32_t field_,
std::string content_)
: field... |
/*
Validate Stack Sequences
========================
Given two sequences pushed and popped with distinct values, return true if and only if this could have been the result of a sequence of push and pop operations on an initially empty stack.
Example 1:
Input: pushed = [1,2,3,4,5], popped = [4,5,3,2,1]
Output: true
Ex... |
#include "timer.hpp"
namespace chr {
chr_timer_t::chr_timer_t(uint32_t interval_ms, timer_callback_t &cb)
{
m_trigger = channel_t<int>::create();
m_cb = std::move(cb);
m_interval_ms = interval_ms;
}
chr_timer_t::~chr_timer_t()
{
}
int chr_timer_t::select(int wait_ms)
{
if (!m_running) {
ret... |
#include <ice/asset_module.hxx>
#include <ice/allocator.hxx>
#include <ice/module_register.hxx>
#include <ice/log_module.hxx>
#include "mesh_pipeline/mesh_pipeline.hxx"
#include "image_pipeline/image_pipeline.hxx"
namespace ice
{
class IceshardShaderPipeline final : public ice::AssetPipeline, public ice::AssetLo... |
/*
* Adapted from OpenColorIO with this license:
*
* Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of... |
// An example from OpenCV website
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main( int argc, char** argv )
{
if( argc != 2)
{
cout <<" Usage: display_image ImageToLoadAndDisplay" << endl;
return -1;
... |
// Copyright 2013 The Flutter 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 "flutter/shell/platform/common/cpp/incoming_message_dispatcher.h"
namespace shell {
IncomingMessageDispatcher::IncomingMessageDispatcher(
Fl... |
/*
* Copyright (c) 2014-2015 Advanced Micro Devices, 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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* th... |
/* $OpenBSD: chacha.h,v 1.1 2013/11/21 00:45:44 djm Exp $ */
/*
chacha-merged.c version 20080118
D. J. Bernstein
Public domain.
*/
#ifndef CHACHA_HPP
#define CHACHA_HPP
#include <libtorrent/span.hpp>
struct chacha_ctx {
unsigned int input[16];
};
#define CHACHA_MINKEYLEN 16
#define CHACHA_NONCELEN 8
#defin... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#pragma once
// PUBG FULL SDK - Generated By Respecter (5.3.4.11 [06/03/2019]) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "PUBG_UiReplayList_classes.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//-----------------------------------... |
//
// Created by Bkg2k on 07/02/2020.
//
#include <string>
#include <utils/storage/HashMap.h>
#include <utils/Strings.h>
#include "Regions.h"
Regions::GameRegions Regions::FullNameToRegions(const std::string& region)
{
static HashMap<std::string, GameRegions> sFullNameToRegions
({
// { "djibouti", Ga... |
#include "unique_ptr.hpp"
#include <iostream>
#include <memory>
#include <string>
#include <cstdlib>
#include <utility>
#include <vector>
#include <algorithm>
#include <cassert>
#include <fstream>
#include <functional>
// Blog: http://blog.csdn.net/fengbingchun/article/details/52203664
namespace unique_ptr_ {
//////... |
//#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MAIN // in only one cpp file
#include <boost/test/unit_test.hpp>
#include <zcpm/core/processor.hpp>
// This module tests some CPU/register functionality. Note that it's not practical to test all combinations, this
// test code aims to cover a useful sample to test for... |
#include "gtest/gtest.h"
#include <algorithm>
#include <vector>
class Solution {
public:
std::vector<int> corpFlightBookings(const std::vector<std::vector<int>>& bookings, int n)
{
std::vector<int> res(n, 0);
std::for_each(bookings.cbegin(), bookings.cend(), [&res](const auto& booking) {
... |
// Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef V8_INTL_SUPPORT
#error Internationalization is expected to be enabled.
#endif // V8_INTL_SUPPORT
#include "src/objects/intl-objects.h"
#inclu... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <map>
#include <memory>
#include <string>
#include <ie_blob.h>
#include <ie_common.h>
#include <ie_preprocess.hpp>
#include <ie_compound_blob.h>
#include <ie_algorithm.hpp>
#include <debug.h>
#include <cpp_interfaces/inter... |
/* NiuTrans.Tensor - an open-source tensor library
* Copyright (C) 2018, Natural Language Processing Lab, Northestern University.
* 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... |
# include "xdp/profile/plugin/ocl/ocl_power_profile.h"
namespace xdp {
OclPowerProfile::OclPowerProfile(xrt::device* xrt_device,
std::shared_ptr<XoclPlugin> xocl_plugin,
std::string unique_name)
: status(PowerProfileStat... |
// Copyright (c) 2007-2008 Anshul Tandon
// 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_APPLIER_JUNE_05_0115PM)
#define HPX_APPLIER_JUNE_05_0115PM
... |
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/app_list/views/app_list_bubble_apps_page.h"
#include "ash/app_list/test/app_list_test_helper.h"
#include "ash/constants/ash_features.h"
#in... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008, Image Engine Design 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:
//
// * Re... |
# pragma once
# include <Siv3D.hpp>
# include "Entity.hpp"
# include "Pointer.hpp"
namespace cre
{
namespace Behaviour
{
class Node
{
public:
virtual ~Node() = default;
virtual void setEntity(const stupid_ptr<Entity>& entity) = 0;
virtual void init() {};
virtual void entry() {};
virtual Opt... |
// Copyright (c) 2017-2022 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_BASIC_VALUE_HPP
#define TAO_JSON_BASIC_VALUE_HPP
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <map>
#include <memory>
#include <optional>
#includ... |
#include <bits/stdc++.h>
#define ll long long
#define ls id << 1
#define rs id << 1 | 1
#define mem(array, value, size, type) memset(array, value, ((size) + 5) * sizeof(type))
#define memarray(array, value) memset(array, value, sizeof(array))
#define pb(x) push_back(x)
#define st(x) (1LL << (x))
#define pii pair<int, i... |
/*********************************************************\
* File: Frontend.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... |
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include <iostream>
#include <dirent.h>
#include <cstring>
#include <errno.h>
#include <attr/xattr.h>
#include "../BaseTestCase.h"
#include "../../user_tools/api/workload.h"
#include "../../user_tools/api/actions.h"
... |
/***** Vsa_IEvaluation Implementation *****/
#define Vsa_IEvaluation
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Sel... |
// ****************************************************************************
// This file is part of the Integrating Vision Toolkit (IVT).
//
// The IVT is maintained by the Karlsruhe Institute of Technology (KIT)
// (www.kit.edu) in cooperation with the company Keyetech (www.keyetech.de).
//
// Copyright (C) 2014 K... |
// Copyright 2018-2020 Coen Tempelaars (Falcons)
// SPDX-License-Identifier: Apache-2.0
/*
* simworldGameData.cpp
*
* Created on: Nov 21, 2018
* Author: Coen Tempelaars
*/
#include "int/simworldGameData.hpp"
#include "int/ballCapabilities.hpp"
#include "int/robotCapabilities.hpp"
#include "int/obstacle.hpp"... |
#pragma once
#include <cstdint>
#include <function2/function2.hpp>
#include <sdeventplus/clock.hpp>
#include <sdeventplus/internal/utils.hpp>
#include <sdeventplus/source/base.hpp>
#include <sdeventplus/types.hpp>
#include <systemd/sd-event.h>
namespace sdeventplus
{
namespace source
{
namespace detail
{
template <C... |
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:30 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
#include "utils/i... |
/*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_stream/command_stream_receiver_hw.h"
#include "shared/source/gen11/reg_configs.h"
#include "shared/source/helpers/hw_helper.h"
#include "shared/test/unit_test/cmd_parse/hw_parse.h"
#include "shared... |
/*
* 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 t... |
#include<algorithm>
#include<cstdio>
#include<cstring>
#include<iostream>
#define ll long long
using namespace std;
int n;
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}
int main()
{
while(cin>>n)
{
ll res=1;
for(int i=1;i<=n;i++)
{
ll x;cin>>x;
res=lcm(res,x);
}
cou... |
// RUN: %clang_cc1 -DA=1 -DB=1 -E %s | grep 'int a = 927 == 927'
// RUN: %clang_cc1 -E %s | grep 'int a = 927 == 927'
// RUN: %clang_cc1 -DA=1 -DB=2 -E %s | grep 'int a = 37 == 37'
#if A not_eq B
#define X 37
#else
#define X 927
#endif
#if A != B
#define Y 37
#else
#define Y 927
#endif
int a = X == Y; |
/*
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR C... |
/*
* This file is part of qpOASES.
*
* qpOASES -- An Implementation of the Online Active Set Strategy.
* Copyright (C) 2007-2017 by Hans Joachim Ferreau, Andreas Potschka,
* Christian Kirches et al. All rights reserved.
*
* qpOASES is free software; you can redistribute it and/or
* modify it under the terms of ... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2015, ITU/ISO/IEC
* All rights reserve... |
#include "request.h"
#include "core/http/cookie.h"
#include "web_application.h"
#include "http_session.h"
#include "session_manager.h"
HTTPSession *Request::get_or_create_session() {
if (session) {
return session;
}
session = SessionManager::get_singleton()->create_session();
return session;
}
const std::s... |
// Copyright (c) 2014-2020, The Monero Project
// Copyright (c) 2018-2021, The Scala Network 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 co... |
// The MIT License (MIT)
//
// Copyright (c) 2016-2017 CERN
//
// Author: Przemyslaw Karpinski
//
// 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 lim... |
/*
* @lc app=leetcode id=1 lang=cpp
*
* [1] Two Sum
*
* https://leetcode.com/problems/two-sum/description/
*
* algorithms
* Easy (40.26%)
* Total Accepted: 1.4M
* Total Submissions: 3.5M
* Testcase Example: '[2,7,11,15]\n9'
*
* Given an array of integers, return indices of the two numbers such that the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.