text stringlengths 5 1.04M |
|---|
/* Copyright (c) 2020 UATC, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
d... |
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include... |
//----------------------------------------------------------------------
// Copyright 2004-2011 Synopsys, Inc.
// Copyright 2010 Mentor Graphics Corporation
// Copyright 2010-2011 Cadence Design Systems, Inc.
// Copyright 2013-2014 NXP B.V.
// All Rights Reserved Worldwide
//
// Licensed under the Apache Li... |
#include <bits/stdc++.h>
using namespace std;
#define fast ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
typedef long long ll;typedef long double ld;typedef pair<int,int> pii;
#define F first
#define S second
#define PB push_back
#define MP make_pair
const ll mod = 1e9+7, N = 2e6+7, M = 2e6+7, INF = INT_MAX/10;
ll po... |
// Copyright (c) 2011-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 <qt/recentrequeststablemodel.h>
#include <qt/bitcoinunits.h>
#include <qt/guiutil.h>
#include <qt/optionsmodel.h>
... |
//HEADER_GOES_HERE
#include "../types.h"
int invflag;
void *pInvCels;
int drawsbarflag; // idb
int sgdwLastTime; // check name
const InvXY InvRect[73] =
{
{ 452, 31 }, // helmet
{ 480, 31 }, // helmet
{ 452, 59 }, // helmet
{ 480, 59 }, // helmet
{ 365, 205 }, // left ring
{ 567, 205 ... |
#include <boost/metaparse/one_of_c.hpp>
|
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The nativecoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoinunits.h"
... |
/*
* This file is part of Matrix.
*
* See the COPYRIGHT file at the top-level directory of this distribution
* for details of code ownership.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Founda... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2017-2020 The Qtum Core developers
// Copyright (c) 2020 The BCS Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/m... |
/*
* Copyright (C) 2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "gtest/gtest.h"
#include "usm_linked_list/usm_linked_list.hpp"
#include "test_harness/test_harness.hpp"
TEST(UsmLinkedListSystemTests,
ApplicationReturnsSkipStatusGivenHelpMessageIsRequested) {
compute_samples::UsmLin... |
// Copyright (C) 2007, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... |
#ifndef CONNECT___SERVER__HPP
#define CONNECT___SERVER__HPP
/* $Id: server.hpp 364724 2012-05-30 14:57:38Z ivanovp $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* ... |
// { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
//Function to find minimum time required to rot all oranges.
int orangesRotting(vector<vector<int>>& grid) {
// Code here
int n = grid.size();
int m = grid[0].size... |
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int getHeight(TreeNode *node) {
if (!node) {
return 0;
}
... |
#include <check.h>
#include <stdint.h>
#include "signals.h"
#include "diagnostics.h"
#include "lights.h"
#include "config.h"
#include "pipeline.h"
#include "power.h"
namespace diagnostics = openxc::diagnostics;
namespace usb = openxc::interface::usb;
using openxc::pipeline::Pipeline;
using openxc::signals::getCanBuse... |
/******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
https://www.etlcpp.com
Copyright(c) 2020 jwellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associat... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_main.cpp :+: :+: :+: ... |
/*
Copyright: © 2018 SIL International.
Description: Implementation of the context API functions using internal
data structures and functions.
Create Date: 27 Sep 2018
Authors: Tim Eves (TSE)
History: 27 Sep 2018 - TSE - Initial implementation.
5 Oct 2018 - TSE ... |
// Copyright (c) 2014 BitPay Inc.
// Copyright (c) 2014-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 <stdint.h>
#include <vector>
#include <string>
#include <map>
#include <univalue.h... |
// Dear ImGui: standalone example application for DirectX 11
// If you are new to Dear ImGui, read documentation from the docs/ folder + read the top of imgui.cpp.
// Read online: https://github.com/ocornut/imgui/tree/master/docs
#include "imgui.h"
#include "imgui_impl_win32.h"
#include "imgui_impl_dx11.h"
#include <d... |
// Copyright 2021 Kuznetsov Nikita
#include <gtest/gtest.h>
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
|
#pragma once
#include <eosio/eosio.hpp>
#include <eosio/asset.hpp>
#include <eosio/system.hpp>
using namespace eosio;
using namespace std;
namespace mixin {
class [[eosio::contract("mtg.xin")]] mvmcontract : public eosio::contract {
public:
using contract::contract;
struct [[eosio::table]] tx_log {
... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iot/model/DynamoKeyType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
na... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 "Application.h"
#include "Window.h"
#include "Menu.h"
#include "Shader.h"
#include "../Engine/Renderer.h"
#include "../Engine/Camera.h"
#include "../Engine/Scene.h"
#include "../path.h"
float lastTime = 0;
long int currentFrame = 0;
namespace Viewer
{
static const inline std::vector<std::string> CONFIGS ... |
#include <_economy_history_dataDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::_economy_history_dataInit2_ptr _economy_history_dataInit2_next(nullptr);
Info::_economy_history_dataInit2_clbk _economy_history_dataInit2_user(nullptr);
... |
#include <dae.h>
#include <dae/daeDom.h>
#include <1.5/dom/domMatrix.h>
#include <dae/daeMetaCMPolicy.h>
#include <dae/daeMetaSequence.h>
#include <dae/daeMetaChoice.h>
#include <dae/daeMetaGroup.h>
#include <dae/daeMetaAny.h>
#include <dae/daeMetaElementAttribute.h>
namespace ColladaDOM150 {
daeElementRef
domMatrix:... |
class Solution {
public:
int minSubArrayLen(int s, vector<int>& nums) {
if (nums.size() == 0) return 0;
int ans = INT_MAX;
int count = 0;
int sum = 0;
for (int i = 0; i < nums.size(); i++) {
sum += nums[i];
count++;
while (sum >= s) {
... |
#include<fstream>
#include<math.h>
using namespace std;
ifstream cin("triplet.in");
ofstream cout("triplet.out");
long long n, pp[200000005], i, j, li, ls, mij ;
int cautbin1(int x)
{
li=1; ls=n;
while(li<ls)
{ mij=(li+ls)/2;
if(pp[mij]==x) return 1;
else if(pp[mij]>x) ls=mij-1;
else li=mi... |
#include "lipch.h"
#include "RenderCommand.h"
#include "Platform/OpenGL/OpenGLRendererAPI.h"
namespace Lilith {
RendererAPI* RenderCommand::s_RendererAPI = new OpenGLRendererAPI;
} |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/typedefs-... |
/**********************************************************************************
* MIT License
*
* Copyright (c) 2018 Antoine Beauchamp
*
* 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 So... |
/**
*
* @file regist.cpp
* @brief
* @author rururu
*
*/
#include <windows.h>
#include "winamp/in2.h"
#include "winamp/wa_ipc.h"
#include "interface.hpp"
#include "version.hpp"
namespace FmPmd {
In_Module module = {
IN_VER,
PLUGIN_DETAIL,
0, /* hMainWindow (filled in by winamp after init() ) */
0, /* ... |
/*
* 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 ... |
/** \file MaskPredictorIndex.hh
*
* Auto generated C++ code started by /home/magnus/gem5-stable_2014_12_14/src/mem/slicc/symbols/Type.py:444
*/
#ifndef __MaskPredictorIndex_HH__
#define __MaskPredictorIndex_HH__
#include <iostream>
#include <string>
// Class definition
/** \enum MaskPredictorIndex
* \brief ...... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
/* libs/pixelflinger/scanline.cpp
**
** Copyright 2006, 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... |
/******************************************************************************
* Copyright 2017 The Apollo 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
... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrConfigConversionEffect.h"
#include "GrContext.h"
#include "GrRenderTargetContext.h"
#include "GrInvariantOutput.h"
#include "GrSimpleTextureEffect.h"
#include "SkM... |
// Copyright (c) 2019, NVIDIA CORPORATION. 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 condi... |
/****************************************************************************************
* @author: kzvd4729 created: Sep/14/2018 00:55
* solution_verdict: Accepted language: GNU C++14
* run... |
// Copyright Louis Dionne 2015
// Distributed under the Boost Software License, Version 1.0.
#include <cassert>
#include <cstddef>
#include <sstream>
#include <tuple>
#include <utility>
// sample(transform)
template <typename ...T, typename F, std::size_t ...i>
auto transform_impl(std::tuple<T...> const& tuple, F co... |
// Copyright (c) 2009-2018 The Emircoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/emircoin-config.h>
#endif
#include <cstring>
#if HAVE_DECL_STRNLEN == 0
size_t... |
/*
Copyright 2021 MacKenzie Strand
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... |
#include <qt/test/wallettests.h>
#include <qt/test/util.h>
#include <interfaces/node.h>
#include <qt/bitcoinamountfield.h>
#include <qt/callback.h>
#include <qt/optionsmodel.h>
#include <qt/platformstyle.h>
#include <qt/qvalidatedlineedit.h>
#include <qt/sendcoinsdialog.h>
#include <qt/sendcoinsentry.h>
#include <qt/t... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... |
/*
* 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 "include/core/SkTypes.h"
#if SK_SUPPORT_GPU
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "sampleco... |
/*
* Copyright (C) 2016 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... |
// Copyright (c) 2011-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.
// Unit tests for denial-of-service detection/prevention code
#include "chainparams.h"
#include "keystore.h"
#include "net.h... |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2016-2021, Intel Corporation
//
// SPDX-License-Identifier: MIT
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////... |
/* Copyright (c) 2022, NVIDIA CORPORATION. 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 condi... |
//
// Author: Jon Trulson <jon@radscan.com>
// Copyright (c) 1994-2018 Jon Trulson
//
// The MIT License
//
// 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, includin... |
// Timer for the HPCSE I course
//
#ifndef HPCSE15_TIMER_HPP
#define HPCSE15_TIMER_HPP
#include <sys/time.h>
class timer {
public:
timer() {
start_time.tv_sec = 0;
start_time.tv_usec = 0;
stop_time.tv_sec = 0;
stop_time.tv_usec = 0;
}
inline void start() {
gettimeofday(&start_time, NULL);
}
inlin... |
//
//
//
#include "MotorCtrl.h"
#include "ValueFunDefine.h"
int MotorCtrl::MotorCw(void)
{
MotorStop();
delay(3);
digitalWrite(RelayPin0, LOW);
digitalWrite(RelayPin1, HIGH);
return 1;
}
int MotorCtrl::MotorCcw(void)
{
MotorStop();
delay(3);
digitalWrite(RelayPin0, HIGH);
digitalWrite(RelayPin1, LOW);
... |
// stdafx.cpp : source file that includes just the standard includes
// KG_Goddess.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "Precompile.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
|
// Copyright 2018 The gVisor 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 required by applicable law or agree... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Form.hpp :+: :+: :+: ... |
// Boost.Geometry
// Unit Test
// Copyright (c) 2016-2019 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Copyright (c) 2018 Adeel Ahmad, Islamabad, Pakistan.
// Contributed and/or modified by Adeel Ahmad, as part of Google Summer of Code 2018 program
// Use,... |
#include "distance.h"
#include "pointprocessed.h"
Distance::Distance()
{
}
Distance::Distance(PointProcessed* point, double distance){
p = point;
d = distance;
}
double Distance::getDistance(){
return d;
}
PointProcessed* Distance::getPoint()const {
return p;
}
bool Distance::operator<(Distance dis... |
/*
* 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... |
// Scintilla source code edit control
/** @file LexKix.cxx
** Lexer for KIX-Scripts.
**/
// Copyright 2004 by Manfred Becker <manfred@becker-trdf.de>
// The License.txt file describes the conditions under which this software may be distributed.
// Edited by Lee Wilmott (24-Jun-2014) added support for block comments
... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/common.h"
#include "core/providers/cuda/cuda_common.h"
#include "core/providers/cuda/nn/conv.h"
#include "core/providers/cuda/shared_inc/fpgeneric.h"
namespace onnxruntime {
namespace cuda {
// Op... |
#include "Control/ControlDialect.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/IR/TypeUtilities.h"
#include "llvm/ADT/TypeSwitch.h"
using namespace mlir;
using namespace hail::control;
#include "Control/ControlOpsDialect.cpp.inc"
#d... |
//ETarget.cpp
// Copyright (c) 2008-2010, Petr Kobalicek <kobalicek.petr@gmail.com>
// Copyright (c) Querysoft Limited 2012
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to... |
/**
* Copyright (C) 2013 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... |
/**
* Created by Crow on 2/9/19.
* Copyright (c) 2019 Crow All rights reserved.
* @author Crow
* @brief HTTP party headers
*/
#ifndef PLATINUM_INCLUDE_HTTP_HPP
#define PLATINUM_INCLUDE_HTTP_HPP
#include "protocol/http/request.h"
#include "protocol/http/request_parser.h"
#include "protocol/http/response.h"
#incl... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <string>
#include "DataStructures/DataBox/Tag.hpp"
#include "DataStructures/DataBox/TagName.hpp"
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Tensor/EagerMath/DotProduct.hpp"
#include "DataStructures/Tens... |
/*
* Copyright (c) 2017, 2018, 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 ... |
//
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2015 Michael Fink
//
/// \file ImagePropertyRibbonCombobox.hpp Image property ribbon combobox
//
#pragma once
// includes
#include "ImageProperty.hpp"
#include "IImagePropertyControl.hpp"
#include "RemoteReleaseControl.hpp"
#include "CameraEx... |
#pragma once
template<typename T>
inline T GetTypedProcAddress(HMODULE hModule, LPCSTR lpProcName)
{
T Func = reinterpret_cast<T>(GetProcAddress(hModule, lpProcName));
if (!Func)
{
const char* ProcName = lpProcName;
CE_LOG_ERROR("Failed to load " + std::string(ProcName));
}
return ... |
#include <bits/stdc++.h>
using namespace std;
typedef long double ld;
typedef long long int ll;
vector<vector<ll>> adjlist;
ll max(ll x, ll y) { return (x > y) ? x : y; }
ll min(ll x, ll y) { return (x > y) ? y : x; }
#define sfor(a, n, i) for (ll i = a; i < n; i++)
#define rfor(n, a, i) for (ll i = n; i >= a; i--)
#d... |
#include "../../std.h"
#include "grammar_define.h"
////////////////////////////////////////////////////////////////////////////////
// CGrammarDefine类
KC::grammar::two_level::CGrammarDefine::CGrammarDefine(IWebPageData& page, ICurrentParsePos& currPos,
const one_level::CGrammarBase& base,
... |
#include "game_car_unit.h"
GameCar::GameCar(float x, float y): Car(x, y), pointList(Controller::currentController()->getMap().GetMapPoints()) {
}
GameCar::~GameCar() {
}
bool GameCar::update(float delta) {
Car::update(delta); // inherit
Controller& cont = *Controller::currentController();
if(poin... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 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 copy of... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2013 The Paycoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "wallet.h"... |
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
/*
* Copyright (c) 2010-2011 frankee zhou (frankee.zhou at gmail dot com)
*
* Distributed under 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 1998-2018 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
#include <errno.h>
#include <time.h>
#include <optional>
#include <Common/ProfileEvents.h>
#include <Common/Stopwatch.h>
#include <Common/Exception.h>
#include <Common/CurrentMetrics.h>
#include <IO/ReadBufferFromFileDescriptor.h>
#include <IO/WriteHelpers.h>
#include <IO/Progress.h>
#include <sys/stat.h>
#ifdef HAS_... |
#include "caching_metric.h"
#include "metric.h"
#include "description_utils.h"
#include "classification_utils.h"
#include "kappa.h"
#include <catboost/libs/helpers/dispatch_generic_lambda.h>
#include <catboost/libs/helpers/math_utils.h>
#include <catboost/libs/helpers/vector_helpers.h>
#include <catboost/private/libs/... |
// -*- C++ -*-
//
// $Id: Method_Request_Updates_T.inl 1861 2011-08-31 16:18:08Z mesnierp $
#include "tao/debug.h"
#include "orbsvcs/Notify/Peer.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
template <class SEQ, class PROXY, class SEQ_PARAM, class PROXY_PARAM> ACE_INLINE int
TAO_Notify_Method_Request_Updates_T<SEQ, PROXY, S... |
/* Copyright 2017 - 2022 R. Thomas
* Copyright 2017 - 2022 Quarkslab
*
* 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 req... |
extern const BulletStepFunc bullet_9d9f287906e0540e2a8dc3a6d1211be4_d2333f29a4c9742a90a78c7706523640[] = {
stepfunc_a82599f300e4b150f54085b7056bd26d_d2333f29a4c9742a90a78c7706523640,
stepfunc_c2db9f05d4f182941e7e9906f14f63c0_d2333f29a4c9742a90a78c7706523640,
stepfunc_d2b0356cea9b35dc55335e5a82562c63_d2333f29a4c9742a90... |
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include <fcntl.h>
#include <unistd.h>
using std::cout;
using std::endl;
int main(const int argc, const char * argv []) {
if (argc != 2) {
cout << "Usage: " << argv[0] << " FILE" << endl;
exit(0);
} // if
const char * filename... |
#include <cstdlib>
#include <memory>
#include <algorithm>
#include <complex>
#include <iostream>
#include <fstream>
#include <map>
#include <utility>
#include <vector>
#include <numeric>
#if defined(USE_MPI)
#include <mpi.h>
#endif
#include <boost/version.hpp>
#include "io/hdf_multi.h"
#include "io/hdf_archive.h"
#in... |
struct C
{
int d;
};
struct B
{
C c;
C* operator->()
{
return &c;
}
};
struct A
{
B b;
B& operator->()
{
return b;
}
};
int main()
{
A a;
a->d = 2;
assert(a.b.c.d==2);
}
|
#include <pomegranate/pomegranate.hpp>
#include "embed/shader/basic_frag_spv.hpp"
#include "embed/shader/basic_vert_spv.hpp"
#include "embed/img/empty_png.hpp"
#include <spirv_reflect.hpp>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
struct Vertex {
pom::maths::vec3 pos;
pom::Color color;
po... |
#include <okiidoku/puzzle/ua_set.hpp>
#include <okiidoku/detail/contract.hpp>
#include <array>
#include <okiidoku/puzzle/solver/cand_elim_find.macros.hpp>
namespace okiidoku::mono { namespace {
// outer dimension for lines of chute.
// inner dimension maps syms to house-cells.
template<Order O> requires(is_orde... |
#pragma once
#include <array>
#include <optional>
namespace ruckig {
using Limits = Profile::Limits;
using JerkSigns = Profile::JerkSigns;
//! Mathematical equations for Step 1 in position interface: Extremal profiles
class PositionStep1 {
double p0, v0, a0;
double pf, vf, af;
double _vMax, _vMin, _aMa... |
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*******... |
/*
Title:
322. Coin Change
322. 零钱兑换
Description:
给定不同面额的硬币 coins 和一个总金额 amount。编写一个函数来计算可以凑成总金额所需的最少的硬币个数。
如果没有任何一种硬币组合能组成总金额,返回 -1。
说明:
你可以认为每种硬币的数量是无限的。
测试用例:
输入: coins = [1, 2, 5], amount = 11
输出: 3
解释: 11 = 5 + 5 + 1
Address:
https://leetcode-cn.com/probl... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkPolyDataGeodesicDistance.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
//
// Sphere.hpp
// src
//
// Created by David María Arribas on 3/10/17.
// Copyright © 2017 David María Arribas. All rights reserved.
//
#ifndef Sphere_hpp
#define Sphere_hpp
#include <stdio.h>
#include "BasePrimitive.hpp"
class Sphere : public BasePrimitive {
float radius = 0.0f;
public:
Sphere();... |
//
// Created by furture on 2018/8/25.
//
#include <render/core/parser/StyleUpdater.h>
#include <render/core/rendering/RenderParagraph.h>
#include "SpanView.h"
namespace weexuikit {
SpanView::SpanView(UIContext *context, Node *node) : View(context, node) {
}
blink::RenderObject* SpanView::createRenderO... |
/*
Copyright 2017-2019 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 required by applicable law or agreed t... |
/*
* Copyright (c) 2012-2014 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the ... |
#include "Tools/TexturePacker/ResourcePacker2D.h"
#include "Tools/TexturePacker/DefinitionFile.h"
#include "Tools/TexturePacker/TexturePacker.h"
#include <CommandLine/CommandLineParser.h>
#include <Engine/Engine.h>
#include <FileSystem/FileSystem.h>
#include <FileSystem/FileList.h>
#include <Core/Core.h>
#include <Uti... |
/*************************************************************************/
/* polygon_2d_editor_plugin.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#ifndef VARIANT_VARIANT_HPP
#define VARIANT_VARIANT_HPP
#include <stdexcept>
#include <type_traits>
#include <limits>
#include <algorithm>
namespace util::detail {
using index_t = size_t;
}
namespace util {
inline constexpr detail::index_t variant_npos = std::numeric_limits<decltype(variant_npos)>::max();
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.