text stringlengths 7 961k |
|---|
// Problem: https://leetcode.com/problems/next-permutation
// Author: github.com/ankuralld5999
// Time: O(N)
// Space: O(1)
class Solution {
public:
void reverseVector(int i,int j,vector<int>& nums){
while(i<j){
int temp=nums[i];
nums[i]=nums[j];
nums[j]=temp;
... |
// Copyright (c) 2020 Tom Hancocks
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, ... |
// Copyright 2015 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.
#include "core/fpdftext/cpdf_linkextract.h"
#include "testing/gtest/include/gtest/gtest.h"
// Class to help test functions in CPDF_LinkExtract class.
class CP... |
// Copyright (C) 2020 T. Zachary Laine
//
// 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)
// Warning! This file is autogenerated.
#include <boost/text/bidirectional.hpp>
#include "bidi_tests.hpp"
#include <gte... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_WeapCamera_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-----------------------------------------------------------------------... |
#include "common.hpp"
std::deque<std::tuple<int, Event>> eventLog;
int nextId; |
#include "test.h"
#include "co/def.h"
#include "co/log.h"
#include "co/str.h"
#include "co/fastream.h"
#include "co/time.h"
#include <algorithm>
#ifndef _WIN32
#define max std::max
#endif
int64 QS(const char* s, int64 n, const char* x, int64 m) {
if (n < m) return -1;
typedef unsigned char u8;
int64 tbl[... |
/*
* 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 may ... |
// Ouzel by Elviss Strazdins
#ifndef OUZEL_GRAPHICS_RENDERDEVICE_HPP
#define OUZEL_GRAPHICS_RENDERDEVICE_HPP
#include <array>
#include <atomic>
#include <condition_variable>
#include <functional>
#include <mutex>
#include <queue>
#include <set>
#include "Commands.hpp"
#include "Driver.hpp"
#include "SamplerFilter.hpp... |
/******************************************************************************
* 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
... |
// FroKEngine.cpp : 애플리케이션에 대한 진입점을 정의합니다.
//
#include "Core.h"
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
// COM 객체를 사용하기 위해서는 먼저 초기화를 해야한다.
HRESULT hr =... |
/* ************************************************************************
* Copyright 2018 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include "testing_larfb.hpp"
#include "utility.h"
#include <gtest/gtest.h>
#include <math.h>
#include <stdexcept>
... |
// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
#include <algorithm>
#include <memory>
#include <vector>
#include <popart/graph.hpp>
#include <popart/ir.hpp>
#include <popart/op/thresholdedrelu.hpp>
#include <popart/opmanager.hpp>
#include <popart/opserialiser.hpp>
#include <popart/tensor.hpp>
#include <popar... |
#include "tfarmcontroller.h"
#include "tfarmexecutor.h"
#include "tfarmserver.h"
#include "tsystem.h"
#include "tconvert.h"
#include "tfilepath_io.h"
#include "service.h"
#include "tcli.h"
#include "tversion.h"
using namespace TVER;
#include "tthreadmessage.h"
#include "tthread.h"
#include "tstream.h"
#include "tlog.h... |
// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include <hoomd/HOOMDMath.h>
#include "../DEMEvaluator.h"
#include "../NoFriction.h"
#include "../WCAPotential.h"
#include "../SWCAPotential.h"
#include "../DEM... |
/* Copyright 2021 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 2014 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
#include <EditorFramework/EditorFrameworkPCH.h>
#include <EditorFramework/DocumentWindow/EngineDocumentWindow.moc.h>
#include <EditorFramework/Manipulators/ConeLengthManipulatorAdapter.h>
#include <ToolsFoundation/Object/ObjectAccessorBase.h>
ezConeLengthManipulatorAdapter::ezConeLengthManipulatorAdapter() {}
ezCone... |
#include <QtGlobal>
// Automatically generated by extract_strings_qt.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED* bitcoinbridge_strings[] = {
QT_TRANSLATE_NOOP("bitcoinbridge-core", "BitcoinBridge Core"),
QT_TRANSLATE_NOOP("bitcoinbridge-core",... |
/*
SjASMPlus Z80 Cross Assembler
Copyright (c) 2004-2008 Aprisobal
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the
use of this software.
Permission is granted to anyone to use this software for any p... |
/*
* Copyright (c) 2011-2019, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
#include "EventFilter/Utilities/interface/DTCRC.h"
void dt_crc::calcCRC(long word, int& myC)
{
int myCRC[16], D[64], C[16];
for ( int i = 0; i < 64; ++i ) { D[i] = (word >> i) & 0x1; }
for ( int i = 0; i < 16; ++i ) { C[i] = (myC>>i) & 0x1; }
myCRC[0] = ( D[63] + D[62] + D[61] + D[60] + D[55] + ... |
/*----------------------------------------------------------------------
Toy EDAnalyzer for testing purposes only.
----------------------------------------------------------------------*/
#include <stdexcept>
#include <string>
#include <iostream>
#include <map>
#include "FWCore/Framework/interface/ESHandle.h"
#inclu... |
// Copyright (c) 2014-2021 by Contributors
#include <rabit/rabit.h>
#include <rabit/c_api.h>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <algorithm>
#include <vector>
#include <string>
#include <memory>
#include "xgboost/base.h"
#include "xgboost/data.h"
#include "xgboost/host_device_vector.h"
#i... |
// 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/browsing_data/browsing_data_quota_helper_impl.h"
#include <map>
#include <set>
#include "base/barrier_closure.h"
#include "... |
#include <VulkanPlayground\Includes.h>
#include <glm\gtx\rotate_vector.hpp>
class PushConstantsPushConstantSpotApp : public VulkanApplication3DLight
{
struct UBO_spotlight
{
int hardSpot;
int showSpot;
};
void ResetScene() override
{
rotate = true;
rotateAmount = 0.0f;
spotUBO().showSpot = true;
spot... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2020, WWIV Software Services */
/* ... |
// =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2010 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe lic... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <policy/feerate.h>
#include <tinyformat.h>
const std::string CURRENCY_... |
/*
* Copyright (c) 2015-2017 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*
*/
#include "nodeBase.h"
#include "tokenUtil.h"
#include "hwmonClass.h"
#include "hwmonUtil.h"
#include "hwmonIpmi.h"
#include "hwmonHttp.h"
#include "hwmonAlarm.h"
#include "hwmonGroup.h"
#include "hwmonSensor.h"
#includ... |
// Generated by Haxe 4.2.1+bf9ff69
#include <hxcpp.h>
#ifndef INCLUDED_flixel_addons_ui_interfaces_ICursorPointable
#include <flixel/addons/ui/interfaces/ICursorPointable.h>
#endif
namespace flixel{
namespace addons{
namespace ui{
namespace interfaces{
::hx::Class ICursorPointable_obj::__mClass;
void ICursorPointa... |
// This file was generated by generate-gltf-classes.
// DO NOT EDIT THIS FILE!
#include "AccessorSparseIndicesJsonHandler.h"
#include "CesiumGltf/AccessorSparseIndices.h"
#include <cassert>
#include <string>
using namespace CesiumGltf;
AccessorSparseIndicesJsonHandler::AccessorSparseIndicesJsonHandler(
const Rea... |
//===--- SemanticARCOpts.cpp ----------------------------------------------===//
//
// 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 (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/version.h"
#include <algorithm>
#include "base/logging.h"
#include "base/string_util.h"
#include "base/strings/string_number_conversi... |
/*
* 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 may ... |
#include <doctest/doctest.h>
#include <macrofree_demo/c_file_funcs.h>
#include <memory>
#include <stdio.h>
using namespace macrofree_demo;
SCENARIO ("open created file with unique_ptr")
{
char fn[] = "scenario-unique_ptr-tmp.txt";
using c_file_ptr = std::unique_ptr<FILE, c_file_deleter>;
WHEN ("a file ... |
/* file: sgd_types_fpt.cpp */
/*******************************************************************************
* Copyright 2014-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 Lic... |
#include <arpa/inet.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <unistd.h>
#include "../src/pangtao.h"
using namespace std;
int main() {
auto pool = PangTao::ThreadPool::getInstance();
pool->init(10);
int sock = -1;
sock = socket(AF_INET, SOCK_STREAM, 0);
sockaddr_in addr;
add... |
/*
* Copyright 2021 Xilinx, Inc.
*
* 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 i... |
#include <symengine/basic.h>
#include <symengine/add.h>
#include <symengine/mul.h>
#include <symengine/functions.h>
#include <symengine/visitor.h>
#include <queue>
namespace SymEngine
{
umap_basic_basic opt_cse(const vec_basic &exprs);
void tree_cse(vec_pair &replacements, vec_basic &reduced_exprs,
cons... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoingui.h"
#include "bitcoinunits.h"
#include "clientmodel.... |
#include "ProjectType.h"
#include <stdexcept>
#include <cassert>
namespace mba {
std::string to_string( ProjectType type )
{
switch( type ) {
case ProjectType::exec: return "executable";
case ProjectType::lib: return "library";
case ProjectType::lib_header_only: return "library-header-only";
default:
as... |
// Copyright (c) 2018, ETH Zurich and UNC Chapel Hill.
// 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
// notic... |
/*
Complete the given function named ‘reverseArray’ containing an integer array ‘arr’ and length of arr N. Reverse the array ‘arr’.
*/
#include<iostream>
using namespace std;
void reverseArray(int arr[], int N){
// Your code goes here
for(int i = 0; i < N/2; i++){
int temp = arr[i];
arr[i] = a... |
//Copyright (C) 2011 Carl Rogers
//Released under MIT License
//license available in LICENSE file, or at http://www.opensource.org/licenses/mit-license.php
#include"cnpy.h"
#include<complex>
#include<cstdlib>
#include<algorithm>
#include<cstring>
#include<iomanip>
#include<stdint.h>
#include<stdexcept>
#include <rege... |
#include "SX1268.h"
SX1268::SX1268(Module* mod) : SX126x(mod) {
}
int16_t SX1268::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t syncWord, int8_t power, float currentLimit, uint16_t preambleLength, float tcxoVoltage) {
// execute common part
int16_t state = SX126x::begin(bw, sf, cr, syncWord, curren... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <string>
#include <vector>
#include "openvino/frontend/visibility.hpp"
namespace ov {
namespace frontend {
/// \brief An interface for identifying a place in a graph and iterate over it; ca... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is d... |
#include "opentelemetry/ext/http/client/curl/http_client_curl.h"
#include "opentelemetry/ext/http/client/http_client.h"
#include "opentelemetry/ext/http/client/http_client_factory.h"
std::shared_ptr<opentelemetry::ext::http::client::SessionManager>
opentelemetry::ext::http::client::HttpClientFactory::Create()
{
retu... |
// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
/*
// brief This tutorial replaces OpenCV DNN with IE
*/
#include "main.h"
#include <string>
#include <chrono>
#include <memory>
#include <vector>
#include <gflags/gflags.h>
#include <opencv2/opencv.hpp>
#include <inference_engin... |
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "ToonTanksPlayerController.h"
#include "GameFramework/Pawn.h"
void AToonTanksPlayerController::SetPlayerEnabledState(const bool bPlayerEnabled)
{
if (bPlayerEnabled)
GetPawn()->EnableInput(this);
else
GetPawn()->DisableInpu... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin forward declares
// For... |
#include <gtest/gtest.h>
#include <Unittests/unittests_common.hh>
namespace {
class OpenMeshReadWritePLY : public OpenMeshBase {
protected:
// This function is called before each test is run
virtual void SetUp() {
// Do some initial stuff with the member data here...
}
... |
#include <iostream>
using namespace std;
int main() {
long long a, b;
cin >> a;
cin >> b;
cout << (a + b) << endl;
} |
#ifndef _COMMON_MPLS_TYPES_
#define _COMMON_MPLS_TYPES_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
namespace cisco_ios_xe {
namespace common_mpls_types {
class IetfMplsLabel : public ydk::Enum
{
public:
static const ydk::Enum::YLeaf v4_explici... |
// ----------------------------------------------------------------------------
//
// FCST: Fuel Cell Simulation Toolbox
//
// Copyright (C) 2006-2014 by Energy Systems Design Laboratory, University of Alberta
//
// This software is distributed under the MIT License
// For more information, see the README file in /doc/... |
// 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 <test/setup_common.h>
#include <banman.h>
#include <chainparams.h>
#include <consensus/consensus.h>
#include <conse... |
// Copyright (c) 2011-2017 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/bitcoingui.h>
#include <qt/bitcoinunits.h>
#include <qt/clientmodel.h>
#include <qt/guiconstants.h>
#include <q... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// 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/li... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include "default_opset.hpp"
#include "ngraph/node.hpp"
#include "onnx_import/core/node.hpp"
namespace ngraph {
namespace onnx_import {
namespace op {
namespace set_1 {
inline OutputVector logical_o... |
/*
Copyright (C) 2008 by Francesco Piccinno
stack.box@gmail.com
BSD License
*/
#include <linux/input.h>
#include <linux/uinput.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include "device.h"
Device::Device(bool touchscreen, int touchscr... |
#include "warehouse.h"
int main() {
warehouse q;
q.interface();
return 0;
} |
// The MIT License (MIT)
//
// Copyright (c) 2011-2020 Christopher M. Poole <mail@christopherpoole.net>
//
// 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 wi... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#i... |
//
// AnyTest.cpp
//
// $Id: //poco/1.4/Foundation/testsuite/src/AnyTest.cpp#1 $
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentat... |
// Copyright 2014 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "utc_blink_ewk_base.h"
class utc_blink_ewk_notification_permission_request_set : public utc_blink_ewk_base {
protected:
utc_blink_ewk_notificat... |
/* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkGraphLayoutStrategyWrap.h"
#include "vtkClustering2DLayoutStrategyWrap.h"
#include "vtkObjectBaseWrap.h"
#include "../../plus/plus.h"
using... |
/*
* Copyright 2010, Object Management Group, Inc.
* Copyright 2010, PrismTech, Corp.
* Copyright 2010, Real-Time Innovations, Inc.
* Copyright 2019, Proyectos y Sistemas de Mantenimiento SL (eProsima).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2016 RDK Management
*
* 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 ... |
// This file is distributed under the BSD License.
// See "license.txt" for details.
// Copyright 2009-2012, Jonathan Turner (jonathan@emptycrate.com)
// Copyright 2009-2018, Jason Turner (jason@emptycrate.com)
// http://www.chaiscript.com
// This is an open source non-commercial project. Dear PVS-Studio, please check... |
#include "Pch.h"
#include "Tests/PlayWithNoise/PlayWithNoise.h"
#include "DirectX12.h"
#include "Library.h"
static void UpdateFrameTime(HWND window, const char* windowText, double& o_Time, float& o_DeltaTime)
{
static double s_LastTime = -1.0;
static double s_LastFpsTime = 0.0;
static unsigned s_FrameCount = 0;
... |
#include "sampleobject.h"
SampleObject::SampleObject(QObject *parent) :
QObject{parent}
{}
SampleObject::SuperFlags SampleObject::getFlags() const
{
return flags;
}
void SampleObject::setFlags(SuperFlags value)
{
flags = value;
}
SuperSampleObject::SuperSampleObject(QObject *parent) :
SampleObject(parent),
wor... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2018 The Crypto Dezire Cash developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactionvi... |
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2015 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... |
// util.cpp
// Copyright (c) 2019, zhiayang
// Licensed under the Apache License Version 2.0.
#include "nx.h"
namespace nx {
namespace util
{
nx::string plural(const nx::string& s, size_t count)
{
if(count == 1) return sprint("1 {}", s.cstr());
else return sprint("{} {}s", count, s.cstr());
}
}
} |
#ifndef LLARP_EXIT_SESSION_HPP
#define LLARP_EXIT_SESSION_HPP
#include <ip.hpp>
#include <messages/exit.hpp>
#include <messages/transfer_traffic.hpp>
#include <pathbuilder.hpp>
#include <deque>
#include <queue>
namespace llarp
{
namespace exit
{
/// a persisiting exit session with an exit router
struct B... |
// Copyright (C) 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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 Foundation; either version 2, or (at your option)... |
/*******************************************************************************
* This file was auto-generated using the AutoGemm.py python script.
* DO NOT modify this file! Instead, make changes to scripts in
* clBLAS/src/library/blas/AutoGemm/ then re-generate files
* (otherwise local changes will be lost 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 "shapeCreation.h"
#include "shapeClass.h"
#include "polyhedron.h"
#include "builtinShapeClasses.h"
#include "../../util/cpuid.h"
Shape sphereShape(double radius) {
return Shape(&SphereClass::instance, radius * 2, radius * 2, radius * 2);
}
Shape cylinderShape(double radius, double height) {
return Shape(... |
#ifndef MLIBC_ANSI_SYSDEPS
#define MLIBC_ANSI_SYSDEPS
#include <stddef.h>
#include <abi-bits/seek-whence.h>
#include <abi-bits/vm-flags.h>
#include <abi-bits/pid_t.h>
#include <bits/off_t.h>
#include <bits/ssize_t.h>
#include <bits/ansi/time_t.h>
#include <signal.h>
#include <stdarg.h>
namespace [[gnu::visibility("h... |
/* Copyright 2018 Stanford University, NVIDIA 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 app... |
// Copyright (c) 2014-2022, The Monero 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 code must retain the above copyright notice, this list o... |
/*
* Error.cpp
*
* Contains all the properties any error response from the API will contain. Some properties are optional so might be empty most of the time
*/
#include "Error.h"
using namespace openapi;
// macro should do the same job. Not really
// OPENAP_JSON_CONVERT_FUNCS(Error, code, message, helpUrl)
voi... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmin/AliasingTest.cpp
// \brief Source file for the dense matrix/dense matrix minimum aliasing test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This file... |
int _del(int x, int y){
return x/y;
} |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2017, Hamburg University
* Copyright (c) 2017, Bielefeld University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificatio... |
// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "EC_3DCanvasSource.h"
#include "EC_3DCanvas.h"
#include "EC_Mesh.h"
#include "EC_OgreCustomObject.h"
#include "IModule.h"
#include "ModuleManager.h"
#include "Entity.h"
#in... |
// $Id: Graph.cpp 80826 2008-03-04 14:51:23Z wotte $
#include "ace/Log_Msg.h"
#include "Graph.h"
void Graph::graph (char *filename, Graphable_Element_List &data)
{
data.sort ();
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Save graph to %C\n"), filename));
char h[10][10];
for (int n = 0 ; n < 10 ; ++n )
{
for... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/nacl/pnacl_header_test.h"
#include <utility>
#include "base/bind.h"
#include "base/path_service.h"
#include "base/test/scoped_path... |
/*
* Copyright 2021 Assured Information Security, Inc.
*
* 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 a... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* 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 1999-2000,2004 The Apache Software Foundation.
*
* 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... |
#include "toaplan.h"
#include "samples.h"
#define REFRESHRATE 60
#define VBLANK_LINES (32)
static UINT8 DrvButton[8] = {0, 0, 0, 0, 0, 0, 0, 0};
static UINT8 DrvJoy1[8] = {0, 0, 0, 0, 0, 0, 0, 0};
static UINT8 DrvJoy2[8] = {0, 0, 0, 0, 0, 0, 0, 0};
static UINT8 DrvInput[6] = {0, 0, 0, 0, 0, 0};
static UINT8 DrvReset... |
#include <cstdio>
#include <cassert>
#include <cstring>
#include <queue>
#include <random>
#include <vector>
#include <algorithm>
#include <unordered_map>
using namespace std;
int query(const vector<int> &);
vector<bool> rax;
using vi = vector<int>;
struct Task;
void submit(int i, bool v);
void _require(int i, T... |
#include <algorithm>
#include <string>
#include <iostream>
int main(int argc, char* argv[]) {
std::string str("aabb");
do {
std::cout << str << std::endl;
} while(std::next_permutation(str.begin(), str.end()));
return 0;
} |
#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "init.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "addressbookpage.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "optionsmodel.h"
#include "sendcoinsentry.h"
#include "guiutil.h"
#include "askpassphrased... |
#include "Scene.h"
namespace Gameplay
{
Scene::Scene()
{
}
Scene::~Scene()
{
}
bool Scene::AddModel(std::filesystem::path const& path_to_model)
{
auto new_model = Graphics::Model{ path_to_model };
if (!new_model.isOk())
{
return false;
}
models_.emplace_back(new_model);
return true;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.