text stringlengths 7 961k |
|---|
// 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 "base/bind.h"
#include "base/callback.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.... |
/*
* Copyright 2017-2018 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "... |
//
// Created by crocdialer on 11/20/20.
//
#pragma once
#include <cereal/cereal.hpp>
#include <cereal/archives/json.hpp>
#include <cereal/archives/binary.hpp>
#include <vierkant/math.hpp>
#include <vierkant/Window.hpp>
#include <vierkant/PBRDeferred.hpp>
#include <vierkant/PBRPathTracer.hpp>
#include <vierkant/Dep... |
/*
* Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundat... |
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2017 Yermalayeu Ihar.
*
* 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 limi... |
//Copyright (c) 2009 Benjamin Dobell, Glass Echidna
//
//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, mer... |
#include <iostream>
#include <tuple>
#include "minimization_helper.hpp"
using namespace abo::minimization;
using std::cout;
using std::endl;
int main()
{
cout << "size f;size fhat;error rate;average case error;runtime\n";
std::vector<std::tuple<int, double>> parameters = {
{8, 7}
// ,... |
/******************************************************************************
* 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
... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland.
// This file was modified by Oracle on 2017, 2018, 2019.
// Modifications copyright (c) 2017-2019 Oracle and/or its affiliates.
// Contribut... |
//===--- SILInstructions.cpp - Instructions for SIL code ------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/*
* Copyright 2019 Google, LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "fuzz/Fuzz.h"
#include "src/core/SkDescriptor.h"
#include "src/core/SkScalerContext.h"
DEF_FUZZ(SkDescriptor, fuzz) {
int32_t numEntries;
fuzz->next(&numEntr... |
/*
* 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
... |
#include <thread>
#include <mutex>
#include <chrono>
#include <set>
#include <map>
#include <condition_variable>
#include <catch.hpp>
#include "cppkafka/producer.h"
#include "cppkafka/consumer.h"
#include "cppkafka/utils/compacted_topic_processor.h"
using std::string;
using std::to_string;
using std::stoi;
using std::... |
//
// Config.cpp
// cpp-test
//
// Created by Albert on 28/10/2016.
// Copyright © 2016 albeva. All rights reserved.
//
#include "Config.hpp"
#include <sstream>
using namespace fbide;
bool Config::operator == (const Config & rhs) const noexcept
{
if (m_cnt == rhs.m_cnt) {
return true;
}
i... |
// Copyright 2019 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/nfc/nfc_permission_context.h"
#include "components/content_settings/browser/page_specific_content_settings.h"
#include "componen... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotwireless/model/GetNetworkAnalyzerConfigurationRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoTWireless::Model;
using namespace ... |
/**
* Autogenerated by Thrift Compiler (0.9.3)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
#include "RPCMessage_types.h"
#include <algorithm>
#include <ostream>
#include <thrift/TToString.h> |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Patrick Pekczynski <pekczynski@ps.uni-sb.de>
*
* Copyright:
* Patrick Pekczynski, 2004
*
* This file is part of Gecode, the generic constraint
* development environment:
* http://www.gecode.org
*
* Permiss... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
#include <System/Path.h>
// Conditional compilation (differences between Windows and Linux)
#ifdef WIN32
#include <windows.h>
::std::string System::Path::executable()
{
char result[ MAX_PATH ];
std::string res( result, GetModuleFileNameA( NULL, result, MAX_PATH ) );
int index = res.find_last_of('\\') ;
return r... |
#include PCH_HEADER
#include "DockWindow.h"
#include "DockWindowInfo.h"
#include <ToolBase/Module.h>
#include "MiscIfs.h"
namespace MoonGlare {
namespace QtShared {
BaseDockWindowModule::BaseDockWindowModule(SharedModuleManager modmgr): iModule(std::move(modmgr)) {
m_DisplayName = "{?}";
m_DisableMainMenu = true... |
#include "script.h"
#include "ScriptSettings.hpp"
#include "VehicleData.hpp"
#include "UpdateChecker.h"
#include "Constants.h"
#include "Compatibility.h"
#include "CustomSteering.h"
#include "WheelInput.h"
#include "SteeringAnim.h"
#include "VehicleConfig.h"
#include "AtcuLogic.h"
#include "Camera.h"
#include "Misc.h"... |
#include "../../include/gpd/grasp_detector.h"
GraspDetector::GraspDetector(ros::NodeHandle& node)
{
Eigen::initParallel();
// Create objects to store parameters.
CandidatesGenerator::Parameters generator_params;
HandSearch::Parameters hand_search_params;
// Read hand geometry parameters.
node.param("fin... |
#pragma once
#include <mbgl/style/image.hpp>
#include <mbgl/util/immutable.hpp>
#include <exception>
#include <vector>
namespace mbgl {
namespace style {
class Image;
} // namespace style
class SpriteLoaderObserver {
public:
virtual ~SpriteLoaderObserver() = default;
// NOLINTNEXTLINE(performance-unnecess... |
/**
* Copyright 2017 MongoDB 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,
... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
#include "common.h"
#include "testhookmgr.h"
#include "appdomain.hpp"
#include "appdomain.inl"
#include "final... |
// Copyright (c) 2003-2019 Xsens Technologies B.V. or subsidiaries worldwide.
// 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 a... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
#include "b_qt.hpp"
#include <b_mc.hpp>
namespace b_qt {
/// @brief A source local QObject based class
class Source_QObject : public QObject
{
Q_OBJECT
public:
Source_QObject() {}
~Source_QObject() {}
std::string str;
};
std::string mocs_compilation()
{
// Create and destroy QObject based classes
Header... |
// This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#include "../../cfileselector.h"
#include <unistd.h>
#include <string>
//-------------------------------------------... |
#include <Storages/StorageMaterializedView.h>
#include <Parsers/ASTSelectQuery.h>
#include <Parsers/ASTSelectWithUnionQuery.h>
#include <Parsers/ASTCreateQuery.h>
#include <Interpreters/Context.h>
#include <Interpreters/InterpreterCreateQuery.h>
#include <Interpreters/InterpreterDropQuery.h>
#include <Interpreters/In... |
//------------------------------------------------------------------------------
/*
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 hereby ... |
// -------------------------------------------------------------------------------------------------
// Copyright 2016 - NumScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or copy at
// ... |
#include <Windows.h>
#include "CCmdlineParams.h"
std::map<std::string, std::string> CCmdlineParams::m_paramMap;
UINT CCmdlineParams::Process(const char* pChar)
{
m_paramMap.clear();
size_t pos = 0;
std::string str(pChar), substr;
while ((pos = str.find(" -")) != std::string::npos)
{
substr = str.substr(0, po... |
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2016-2018 The PIVX developers
// Copyright (c) 2018 The BLTG developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "swifttx.h"
#include "activema... |
//==============================================================================
// Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief This file contains some functions shared between OCL and HSA API Trace modules
//===========================... |
/*
* Copyright 2004-2016 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... |
#include "core.h"
#include "vector2.h"
#include "matrix.h"
#include "mathcore.h"
#include "vector.h"
#include "vector4.h"
#include "simplestring.h"
Vector2::Vector2() : x(0.0f), y(0.0f) {}
Vector2::Vector2(float _x, float _y) : x(_x), y(_y) {}
Vector2::Vector2(const Vector2& v) : x(v.x), y(v.y) {}
Vector2::Vector2(con... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
#ifndef STAN_MATH_REV_CORE_OPERATOR_MINUS_EQUAL_HPP
#define STAN_MATH_REV_CORE_OPERATOR_MINUS_EQUAL_HPP
#include <stan/math/rev/core/var.hpp>
#include <stan/math/rev/core/operator_subtraction.hpp>
#include <stan/math/prim/meta.hpp>
namespace stan {
namespace math {
template <typename T>
inline var_value<T>& var_valu... |
#include <QApplication>
#include "datalist.h"
Datalist::Datalist()
{
}
Datalist::~Datalist()
{
}
bool Datalist::ArgProcessing()
{
QRegExp argrx("(\"-[a-zA-Z]\")|(\"--[a-zA-Z]*\")");
QStringList arguments = QCoreApplication::arguments();
int n=0;
if (arguments.count() < 2)
return true;
... |
/* Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
/* Copyright 2015 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... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/StringView.h>
#include <Kernel/FileSystem/Inode.h>
#include <Kernel/FileSystem/InodeFile.h>
#include <Kernel/FileSystem/OpenFileDescription.h>
#include <Kernel/FileSystem/VirtualFileSystem.h... |
//========= Copyright Valve Corporation ============//
#define VR_API_EXPORT 1
#define VR_API_PUBLIC
#include "openvr.h"
#include "ivrclientcore.h"
#include "pathtools_public.h"`
#include "sharedlibtools_public.h"
#include "envvartools_public.h"
#include "hmderrors_public.h"
#include "vrpathregistry_public.h"
#include... |
// Copyright (c) 2018-2020, 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 ... |
#include "MeshLoadStateException.h"
namespace customexceptions {
MeshLoadStateException::MeshLoadStateException(
std::string errorMessage,
size_t rowNumber,
size_t columnNumber) :
errorMessage_(errorMessage),
... |
// This file has been automatically generated by the Unreal Header Implementation tool
#include "FGWheeledVehicleMovementComponent6W.h"
float FVehicleEngineData6W::FindPeakTorque() const{ return float(); }
#if WITH_EDITOR
void UFGWheeledVehicleMovementComponent6W::PostEditChangeProperty( FPropertyChangedEvent& Proper... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2017 The PIVX developers
// Copyright (c) 2018 The Myce developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#i... |
#include "src/server/chunk_server/chunk_data_cache_manager.h"
#include <thread>
#include "gtest/gtest.h"
#include "tests/utils.h"
using namespace gfs::server;
using namespace tests;
class ChunkDataCacheManagerTest : public ::testing::Test {
protected:
void SetUp() override {
chunk_data_cache_mgr_ = ChunkDat... |
/***
DEVSIM
Copyright 2013 Devsim 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, soft... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <AzCore/Casting/numeric_cast.h>
#include <AzQtComponents/Components/Widgets/Card.h>
#inc... |
/*
*
* Copyright 2015 gRPC 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... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
//===- FuzzerUtilPosix.cpp - Misc utils for Posix. ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include<iostream>
using namespace std;
int f[10005][10005];
int volume[10005], value[10005];
int n, m;
int main(void){
cin>>n>>m;
for(int i=1; i<=n; i++){
cin>>volume[i]>>value[i];
}
for(int i=1; i<=n; i++){
for(int j=1; j<=m; j++){
f[i][j] = f[i-1][j];
if(j>=volume[i]){
f[i][j] = max(f[i][j], f... |
// Space can be optimized using bitset by a factor of 1/32 and removing even numbers
// effectively reduces space by 1/32/2 = 1/64. But premature optimization is the
// root of all evil. So simple segmented sieve.
// Can be modified to use multiple segments.
#include <iostream>
#include <cmath>
#include <vector>
#defi... |
#include "ofApp.h"
#include <iostream>
void ofApp::setup() {
ofSetVerticalSync(true);
faceShift.setup();
faceShift.import("export");
light.enable();
light.setPosition(+500, +500, +500);
helvetica.loadFont("helvetica.ttf", 100, true, true);
helvetica.setLineHeight(72.0f);
helvetica.setLetterSpa... |
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... |
// Copyright (c) 2015-2019, Satoshi Tanda. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
/// @file
/// Implements logging functions.
#include <ntifs.h>
#include "log.h"
#define NTSTRSAFE_NO_CB_FUNCTIONS
#include <ntstrsafe.h>
// See commo... |
#include "log4cxx/logger.h"
#include "log4cxx/basicconfigurator.h"
#include "log4cxx/propertyconfigurator.h"
#include "log4cxx/helpers/exception.h"
#include "log4cxx/logmanager.h"
#include <iostream>
#include "cql-interface/LogBaseInfo.h"
using namespace cb;
using namespace std;
namespace po = boost::program_options... |
#include "ImageViewReader.h"
#include "ui/UIImageView.h"
#include "cocostudio/CocoLoader.h"
#include "cocostudio/CSParseBinary_generated.h"
#include "cocostudio/FlatBuffersSerialize.h"
#include "tinyxml2.h"
#include "flatbuffers/flatbuffers.h"
USING_NS_CC;
using namespace ui;
using namespace flatbuffers;
namespace ... |
/*
* 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... |
// 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 "components/prefs/pref_member.h"
#include <utility>
#include "base/callback.h"
#include "base/callback_helpers.h"
#include "base/location.h... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
/* DigitViewerTasks.cpp
*
* Author : Alexander J. Yee
* Date Created : 02/15/2018
* Last Modified : 02/18/2018
*
*/
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////... |
// Copyright (C) 2004-2006 The Trustees of Indiana University.
// Use, modification and distribution is subject to 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)
// Authors: Douglas Gregor
// Andrew Lumsdaine
#ifndef BO... |
/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include <iostream>
using namespace std;
char s[205];
int main()
{
cin>>s;
return 0;
} |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2018 The Peercoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#inc... |
#include <LibCore/CConfigFile.h>
#include <LibCore/CUserInfo.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GBoxLayout.h>
#include <LibGUI/GButton.h>
#include <LibGUI/GWidget.h>
#include <LibGUI/GWindow.h>
#include <SharedGraphics/GraphicsBitmap.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#includ... |
#pragma once
#ifndef FIELD_HPP
#define FIELD_HPP
#include <QSharedPointer>
#include <QVariant>
#include <QString>
#include <QVector>
#include <QImage>
#include "object.hpp"
namespace qtreports
{
namespace detail
{
/*! @~russian
@brief Класс, реализующий тэг <field>
Класс, реализующи... |
/*
* Copyright (c) 2008 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/**
* @file DispatchEvent.cpp
* @author Devin-Can Firat (devinc.firat@gmail.com)
* @brief
* @version 0.1
* @date 2019-03-30 05:40
*
* @copyright Copyright (c) 2019
*
*/
#include "DispatchEvent.hpp"
#include "Discordpp.hpp"
#include "ReadyEvent.hpp"
#include "GuildCreateEvent.hpp"
#include "ChannelCreateEve... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#pragma once
#include "backends/Workload.hpp"
#include "backends/WorkloadData.hpp"
namespace armnn
{
class RefResizeBilinearUint8Workload : public Uint8Workload<ResizeBilinearQueueDescripto... |
// SPDX-License-Identifier: Apache-2.0
//
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may ob... |
#pragma once
// pqrs::osx::iokit_return v1.2
// (C) Copyright Takayama Fumihiko 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See http://www.boost.org/LICENSE_1_0.txt)
#include <IOKit/IOKitLib.h>
#include <iostream>
#include <string>
namespace pqrs {
namespace osx {
class iokit_return fina... |
// dear imgui, v1.75
// (widgets code)
/*
Index of this file:
// [SECTION] Forward Declarations
// [SECTION] Widgets: Text, etc.
// [SECTION] Widgets: Main (Button, Image, Checkbox, RadioButton, ProgressBar, Bullet, etc.)
// [SECTION] Widgets: Low-level Layout helpers (Spacing, Dummy, NewLine, Separator, etc.)
// [S... |
//=== CastSizeChecker.cpp ---------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
// init_context
SEXP init_context(int threads);
RcppExport SEXP _clustermq_init_context(SEXP threadsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_... |
//
// Cube3DOverlay.cpp
// interface/src/ui/overlays
//
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
// include this before QGLWidget, which includes an earlier version of O... |
#pragma once
#include <map>
#include <memory>
#include "LayerVisualisation.hpp"
#include "LayerData.hpp"
#include "Texture.hpp"
namespace fmri
{
class MultiImageVisualisation : public LayerVisualisation
{
public:
constexpr const static std::array<float, 12> BASE_VERTICES = {
0, -1,... |
// Copyright 2014 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 "components/keyed_service/core/dependency_graph.h"
#include <stddef.h>
#include <algorithm>
#include <iterator>
#include "base/containers/circ... |
//== TraversalChecker.cpp -------------------------------------- -*- C++ -*--=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright (c) 2010-2013 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 ... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
/*************************************************************************/
/* settings_config_dialog.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "jitpch.h"
#include "hwintrinsic.h"
#ifdef FEATURE_HW_INTRINSICS
//------------------------------------------------------------------------
// Arm64VersionOfIsa: Gets the ... |
#include <assert.h>
#include <string>
#include <iostream>
#include <vector>
#include "../common/FASTAReader.h"
#include "../common/FASTASequence.h"
#include "../common/algorithms/alignment.h"
#include "../common/algorithms/alignment/BellEndAlign.h"
#include "../common/datastructures/matrix/FlatMatrix.h"
int main(int... |
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "fxjs/xfa/cjx_model.h"
#include <vector>
#include "fxjs/js_resource... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/testutil.h"
#include "util/random.h"
namespace leveldb {
namespace test {
Slice Rando... |
#include <c10/util/variant.h>
#include <torch/csrc/jit/tensorexpr/kernel.h>
#include <ATen/ExpandUtils.h>
#include <ATen/Parallel.h>
#include <ATen/TensorGeometry.h>
#include <c10/util/irange.h>
#include <c10/util/string_utils.h>
#include <torch/csrc/jit/jit_log.h>
#include <torch/csrc/jit/passes/utils/subgraph_utils.... |
// 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 "net/url_request/protocol_intercept_job_factory.h"
#include "base/logging.h"
namespace net {
ProtocolInterceptJobFactory::ProtocolIntercep... |
#include <stdio.h>
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
int n;
scanf("%d",&n);
int arr[n+1],D[n+1],i;
for (i=0;i<n;i++){
scanf("%d",&arr[i]);
}
for (i=0;i<n;i++){
if (i==0){D[i] = arr[0];}
else if (i==1){D[i] = arr[0]+arr[1];}
... |
#include <bee/lua/binding.h>
extern "C" int luaopen_lpeglabel (lua_State *L);
static ::bee::lua::callfunc _init(::bee::lua::register_module, "lpeglabel", luaopen_lpeglabel); |
/*
* ObjectDetector.cpp
* OpenCV
*
* Created by Nicholas Butko on 3/7/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "ObjectDetector.h"
using namespace std;
ObjectDetector::~ObjectDetector(){}
ostream& operator<< (ostream& ofs, ObjectDetector* model) {
model->addToStream(ofs);... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015-2017 Baldur Karlsson
*
* 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... |
#include "stdafx.h"
#include <vector>
#include <unordered_map>
#include <string>
#include <iostream>
#include <assert.h>
using namespace std;
// https://leetcode.com/problems/two-sum/
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
int curr = 0;
int i = 0, N = nums.size();
if (N == 0 |... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2008-2010 Greenplum Inc.
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// IMemoryPool.cpp
//
// @doc:
// Implements functions that are used by the operators "new" and "delete"
//--------------------... |
/*
** Copyright 2009-2013 Centreon
**
** 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.