text stringlengths 7 961k |
|---|
/*
* Copyright (c) 2021 Huawei Device 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 law ... |
#include "Queue3.h"
Queue3::Queue3() {
}
int Queue3::MainEntry() {
return 0;
} |
/*
Copyright (c) 2005-2022, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
/*************************************************************************
*
* Copyright (c) 2016-2019, Klaralvdalens Datakonsult AB (KDAB)
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************... |
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a, b;
while (cin >> a >> b && a != 0 && b != 0) {
int squares = 0;
for (int i = ceil(sqrt(a)); i*i <= b; i++) {
squares++;
}
cout << squares << endl;
}
return 0;
} |
#pragma once
#include <glm/glm.hpp>
namespace Video {
class ShaderProgram;
class RenderSurface;
class Filter;
namespace Geometry {
class Rectangle;
}
/// Applies post-processing effects to the rendered image.
class PostProcessing {
public:
/// Create new po... |
// Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root
// for more information.
#include <NovelRT/Experimental/Graphics/Vulkan/Graphics.Vulkan.h>
namespace NovelRT::Experimental::Graphics::Vulkan
{
VulkanGraphicsDevice* VulkanGraphicsBuffer::GetDevi... |
/* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including... |
// Copyright (c) 2017-2021, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include "app_helper.hpp"
using Catch::Matchers::Contains;
TEST_CASE("Deprecated: Empty", "[deprecated]... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
/*******************************************************************************
* Project: libopencad
* Purpose: OpenSource CAD formats support library
* Author: Alexandr Borzykh, mush3d at gmail.com
* Author: Dmitry Baryshnikov, bishop.dev@gmail.com
* Language: C++
*****************************************... |
#include "TestDemo.h"
#include "core_engine/CoreAssetManager.h"
#include "core_components/CameraComponent.h"
#include "framework/window/Window.h"
#include "core_components/FreeLookComponent.h"
#include "core_components/FreeMoveComponent.h"
#include "core_components/ModelRendererComponent.h"
#include "core_components/Po... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 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 a cop... |
// Copyright (C) 2005 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)... |
/*System::Net::WebRequest::RequestUri
* This program demonstrates the 'RequestUri' property of the 'WebRequest' Class
Here the 'RequestUri' property displays the request Uri name to the console.
*/
#using <System.dll>
using namespace System;
using namespace System::IO;
using namespace System::Net;
using namespace Sys... |
// Copyright (C) 2001
// Mac Murrett
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appear in all copies and
// that both that copyright notice and this permission notice appear
... |
/*
* Copyright (c) 2020-2021 Valve Corporation
* Copyright (c) 2020-2021 LunarG, 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... |
#include <boost/python/converter/from_python.hpp> |
#include "Stdafx.h"
#include "BrowserCore.h"
namespace CefSharp
{
void BrowserCore::CheckBrowserInitialization()
{
if (!_isBrowserInitialized)
{
throw gcnew InvalidOperationException("Browser is not initialized");
}
}
void BrowserCore::RegisterJsObject(String^ name... |
// Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/
#include "SustainPedalLogic.h"
namespace AudioKitCore
{
SustainPedalLogic::SustainPedalLogic()
{
for (int i=0; i < kMidiNoteNumbers; i++) keyDown[i] = isPlaying[i] = false;
pedalIsDown = false... |
// Copyright (c) 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 "ui/message_center/views/message_popup_collection.h"
#include <list>
#include "base/message_loop/message_loop.h"
#include "base/strings/str... |
// Copyright 2020 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 writ... |
/**********************************************************\
This file is distributed under the MIT License.
See https://github.com/morzhovets/momo/blob/master/LICENSE
for details.
tests/LibcxxHashMapTesterOne.cpp
\**********************************************************/
#include "pch.h"
#ifdef TEST_LIB... |
/**
* If not stated otherwise in this file or this component's LICENSE
* file the following copyright and licenses apply:
*
* Copyright 2020 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 a co... |
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "optee-client.h"
#include <endian.h>
#include <fuchsia/hardware/rpmb/cpp/banjo.h>
#include <fuchsia/hardware/rpmb/llcpp/fidl.h>
#include <fuchsia... |
/************************************************************************************
**
** BSD 3-Clause License
**
** Copyright (c) 2019, shaoguang. All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions ar... |
#include "daisy_seed.h"
#include "daisysp.h"
#include <stdlib.h>
using namespace daisy;
using namespace daisysp;
DaisySeed hw;
StringVoice str;
Oscillator lfo;
Metro tick;
void AudioCallback(float **in, float **out, size_t size)
{
for(size_t i = 0; i < size; i++)
{
bool t = tick.Process();
... |
/*
* MIT License
*
* Copyright (c) 2021 Mark van de Ruit (Delft University of Technology)
*
* 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 limit... |
#include "KFEntityEx.hpp"
#include "KFComponentEx.hpp"
#include "KFKernelModule.hpp"
#include "KFProtocol/KFProtocol.h"
//////////////////////////////////////////////////////////////////////////
namespace KFrame
{
// 是否初始化完成
bool KFEntityEx::IsInited()
{
return _is_inited;
}
void KFEntity... |
//
// Copyright (c) 2016-2017 Kris Jusiak (kris at jusiak dot net)
//
// 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)
//
#include <boost/sml.hpp>
namespace sml = boost::sml;
struct e1 {};
struct im_not_callabl... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#include "perf_client.h"
using namespace std;
using namespace nlohmann;
using Base = client::PerfBase;
class SmallBankClient : public Base
{
private:
enum class TransactionTypes : uint8_t
{
TransactSavings ... |
#include <espadin/about.hpp>
#include "cjson_util.hpp"
namespace espadin
{
about::about(const cJSON& json)
{
cjson::util ju(const_cast<cJSON&>(json));
ju.set_string("kind", kind_);
ju.set_object("user", user_);
ju.set_object("storageQuota", storage_quota_);
ju.set_map_of_string_array("importFormat... |
// MIT License
//
// Copyright 2018 Abdelkader Amar
//
// 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, modif... |
// Copyright (c) 2021 Ryan Gonzalez.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// Portions of this file are sourced from
// chrome/browser/ui/views/frame/browser_desktop_window_tree_host_linux.cc,
// Copyright (c) 2019 The Chromium Authors,
// which is governed ... |
/*
* nghttp2 - HTTP/2 C Library
*
* Copyright (c) 2015 Tatsuhiro Tsujikawa
*
* 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 ri... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <i... |
//The MIT License (MIT)
//
//Copyright (c) 2016 ZHAOZhengyi-tgx
//
//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,... |
#include <Arduino.h>
#include <Adafruit_GFX.h>
#include "Menu.h"
#include "Menu_Hello.h"
#include "Menu_Gyro.h"
#include "Menu_PressStart.h"
#include "Menu_Long.h"
#include "Menu_Free.h"
#include "Menu_Lets.h"
#include "Menu_USB.h"
#include "State.h"
#include "Menu_Pacman.h"
#include "Menu_Stop.h"
#include "Menu_Init.h... |
// Copyright © 2017-2019 Dmitriy Khaustov
//
// 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) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 The Hi-TEK 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 "miner.h"
#... |
class Solution {
public:
/**
* @param A: sorted integer array A
* @param B: sorted integer array B
* @return: A new sorted integer array
*/
vector<int> mergeSortedArray(vector<int> &A, vector<int> &B) {
// write your code here
int na = A.size(), nb = B.size();
vector<... |
/*
* Copyright 2010-2016 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 "license" fil... |
//
// 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... |
//nahid.cseru@gmail.com
#include <bits/stdc++.h>
using namespace std;
typedef struct Node node;
struct Node {
int data;
node *left;
node *right;
};
node* insertBST(node* root, int data) {
node *newNode = new node();
newNode->data = data;
newNode->left = newNode->right = NULL;
if(root == N... |
// Copyright 2017 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 "extensions/browser/api/feedback_private/feedback_private_api.h"
#include "base/json/json_writer.h"
#include "base/macros.h"
#include "base/memo... |
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this... |
// Copyright (c) 2017, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: chenzeyu01@baidu.com
#include "familia/tokenizer.h"
#include <iostream>
#include <string>
#include <vector>
namespace familia {
void Simple... |
// csabase_format.cpp -*-C++-*-
#include <csabase_format.h>
#include <clang/AST/Type.h>
#include <clang/AST/DeclBase.h>
#include <clang/Basic/Diagnostic.h> // IWYU pragma: keep
#include <llvm/Support/raw_ostream.h> // IWYU pragma: keep
using namespace csabase;
using... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
#include "extern/beatsabe... |
/***************************************************************************
* Copyright (C) 2006-07 by Reinhard Jeschull
* rjeschu@fh-landshut.de
*
* 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... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
/*
*
* 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... |
// 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 "net/third_party/quiche/src/quic/core/quic_crypto_stream.h"
#include <cstdint>
#include <memory>
#include <string>
#include <utility>
#inclu... |
/*=============================================================================
Copyright (c) 2011-2014 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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)
==... |
/*
* Copyright (c) 2021 Huawei Device 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 law ... |
// Filename: lwoSurfaceBlockRefObj.cxx
// Created by: drose (24Apr01)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. ... |
#include <iostream>
#include "openmc/random_lcg.h"
#include "openmc/source.h"
#include "openmc/particle.h"
#include "plasma_source.hpp"
// Spherical tokamak SOURCE
// units are in SI units
const double ion_density_pedistal = 1.09e+20; // ions per m^3
const double ion_density_seperatrix = 3e+19;
const double ion_dens... |
// GAMBIT: Global and Modular BSM Inference Tool
// *********************************************
/// \file
///
/// Rollcall header for ColliderBit module.
///
/// *********************************************
///
/// Authors (add name and date if you modify):
///
/// \author Abram Krislock
/// (a.m.b... |
#include <Processors/Transforms/AggregatingTransform.h>
#include <Common/ClickHouseRevision.h>
#include <DataStreams/NativeBlockInputStream.h>
#include <DataStreams/MergingAggregatedMemoryEfficientBlockInputStream.h>
#include <Processors/ISource.h>
#include <Processors/Transforms/MergingAggregatedMemoryEfficientTransf... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CXformLeftOuterApply2LeftOuterJoin.cpp
//
// @doc:
// Implementation of transform
//---------------------------------------------------------------------------
#incl... |
#include <iostream>
#include <samurai/cell_array.hpp>
#include <samurai/cell_list.hpp>
#include <samurai/field.hpp>
int main()
{
constexpr std::size_t dim = 1;
// Mesh creation
samurai::CellList<dim> cl;
cl[0][{}].add_interval({ 0, 4});
cl[1][{}].add_interval({ 0, 4});
cl[1][{}].add_interva... |
/*
* 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 ... |
/B 2016/2017, Zadaća 4, Zadatak 1
//Napomena: testovi ce biti dostupni dan pred rok!
#include <iostream>
#include <utility>
#include <memory>
#include <cmath>
#include <vector>
#include <algorithm>
#define eps 1E-10
using std::cout;
typedef std::pair<double, double> Tacka;
class Trougao{
Tacka t[3];
static b... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017 The litegenx developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lice... |
#include "drape_frontend/route_renderer.hpp"
#include "drape_frontend/shape_view_params.hpp"
#include "drape_frontend/message_subclasses.hpp"
#include "drape_frontend/visual_params.hpp"
#include "drape/glsl_func.hpp"
#include "drape/shader_def.hpp"
#include "drape/utils/projection.hpp"
#include "drape/vertex_array_buf... |
// Copyright (C) 2003, 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 you... |
//
// Created by abdullin on 2/11/19.
//
#ifndef BOREALIS_ABSTRACTDOMAIN_HPP
#define BOREALIS_ABSTRACTDOMAIN_HPP
#include "Logging/logger.hpp"
#include "Type/Type.h"
#include "Util/util.h"
namespace borealis {
namespace absint {
enum CastOperator {
SIGN,
TRUNC,
EXT,
SEXT,
FPTOI,
ITOFP,
I... |
#include "MMBase.h"
MMBase::MMBase() {
}
MMBase::~MMBase() {
} |
/*============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center (DKFZ)
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.
... |
// 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 "consensus/validation.h"
#include "data/sighash.json.h"
#include "hash.h"
#include "main.h" // For CheckTransaction
... |
/**
* @file
* @copyright defined in pose/LICENSE
*/
#pragma once
#include <pose/chain/types.hpp>
#include <pose/chain/transaction.hpp>
using namespace std;
using namespace eosio::chain;
namespace eosio { namespace wallet {
class wallet_api
{
public:
virtual ~wallet_api() {}
/**
* Get the... |
//===----------------------------------------------------------------------===//
//
// BusTub
//
// clock_replacer.cpp
//
// Identification: src/buffer/clock_replacer.cpp
//
// Copyright (c) 2015-2019, Carnegie Mellon University Database Group
//
//===--------------------------------------------... |
#ifndef RAYMARCHING_H
#define RAYMARCHING_H
#include <SFML/Graphics.hpp>
double distance2P(sf::Vector2f p1, sf::Vector2f p2);
// Signed distance functions.
double signedDistToCircle(sf::Vector2f point, sf::Vector2f circleCenter, double radius);
// Functions that find the distance to the closest shape.
double getDis... |
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
int seed;
cout << "Seed: ";
cin >> seed;
srand(seed);
for (int i=0; i<10; ++i)
cout << rand() % 1000<< '\n';
} |
// CC0 Public Domain: https://codereview.stackexchange.com/questions/114532/simple-stopwatch-class
#pragma once
#include <chrono>
#include <utility>
namespace fui {
template <typename TimeUnit = std::chrono::milliseconds, typename Clock = std::chrono::high_resolution_clock>
class Stopwatch {
public:
explicit Stopw... |
/* Copyright (c) 2016 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 agr... |
////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Garmin Canada Inc.
// The software is being provided on an "as-is" basis and as an accommodation,
// and ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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 <script/standard.h>
#include <crypto/sha256.h>
#include <pubkey.h>
#inc... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//General-purpose-timers
namespace Tim11Cr1{ ///<control register 1
using Addr = Register::Address<0x40014800,0xfffffc78,0x00000000,unsigned>;
///Clock division
constexpr Register::FieldLocation<Addr,Register::maskFromRange(... |
/*==============================================================================
Copyright (c) 2001-2010 Joel de Guzman
Copyright (c) 2010 Thomas Heller
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)
===... |
// Copyright Carl Philipp Reh 2009 - 2018.
// 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)
#include <fcppt/container/grid/dim.hpp>
#include <fcppt/container/grid/dim_type.hpp>
#include <fcp... |
#include "base/logging.h"
#include "input/input_state.h"
#include "ui/screen.h"
#include "ui/ui.h"
ScreenManager::ScreenManager() {
nextScreen_ = 0;
uiContext_ = 0;
dialogFinished_ = 0;
}
ScreenManager::~ScreenManager() {
shutdown();
}
void ScreenManager::switchScreen(Screen *screen) {
// Note that if a dialog ... |
Given the head of a singly linked list, reverse the list, and return the reversed list.
Example 1:
Input: head = [1,2,3,4,5]
Output: [5,4,3,2,1]
Example 2:
Input: head = [1,2]
Output: [2,1]
Example 3:
Input: head = []
Output: []
Constraints:
The number of nodes in the list is the range [0, 5000].
-5000 <= ... |
//
// Copyright 2012 Alin Dobra and Christopher Jermaine
//
// 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 b... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
#include "config/stm32plus.h"
#include "config/display/font.h"
#if defined STM32PLUS_F0
#define FONTCONST const
#else
#define FONTCONST
#endif
namespace stm32plus { namespace display {
// byte definitions for FDEF_PIXELADE
FONTCONST uint8_t FDEF_PIXELADE32_BYTES[]={ 0,0,0,0,0,0,0,0,0,};
FONTCONST uint8_t FDEF... |
/* Copyright 2017 Konstantin Batoev.
*
* 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... |
// Copyright (c) 2005-2009 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef SAGA_SAGA_ADAPTORS_INSTANCE_DATA_BASE_HPP
#define SAGA_SAGA_ADAPTORS_INSTANCE_DATA_BASE_HPP
#include <boost... |
#include "computation/1_computation_parallel.h"
void ComputationParallel::initialize(int argc, char *argv[])
{
// parse the parameters
settings_.loadFromFile(argv[1]);
settings_.printSettings();
// get own rank number and total number of ranks
int ownRankNo = 0;
int nRanks = 0;
MPI_Comm_ra... |
#include "master.hpp"
namespace factor
{
const char *vm_executable_path()
{
return NULL;
}
} |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*/
#include "TestMhsCommon.h"
#include <adios2.h>
#include <gtest/gtest.h>
#include <mpi.h>
#include <numeric>
#include <thread>
using namespace adios2;
int mpiRank = 0;
int mpiSize = 1;
char r... |
// Copyright (c) 2019, QuantStack and Mamba Contributors
//
// Distributed under the terms of the BSD 3-Clause License.
//
// The full license is in the file LICENSE, distributed with this software.
#ifndef MAMBA_API_CLEAN_HPP
#define MAMBA_API_CLEAN_HPP
namespace mamba
{
const int MAMBA_CLEAN_ALL = 1 << 0;
... |
#include "DeviceNetwork.h"
#include "DeviceFactory.h"
#ifdef GUI
#include "DeviceForm.h"
#endif
#include "CommandLineParameters.h"
#include "PlatformInfo.h"
const char DeviceNetworkController::typeName[] = "DeviceNetworkController";
const char DeviceNetworkController::deviceName[] = "Network adapter";
static const c... |
#include "Ocr/A2IA/A2IA.h"
#include "Ocr/tesseract/Tesseract.h"
#include <iostream>
#include <sstream>
#include "rapidjson/stringbuffer.h"
#include "rapidjson/prettywriter.h"
#include <boost/format.hpp>
Docapost::IA::Tesseract::A2IA::~A2IA()
{
A2iARC_CloseChannel(mChannelId);
}
std::unique_ptr<std::vector<std::stri... |
/* ******************************************************************
* FSE : Finite State Entropy decoder
* Copyright (c) 2013-2020, Yann Collet, Facebook, Inc.
*
* You can contact the author at :
* - FSE source repository : https://github.com/Cyan4973/FiniteStateEntropy
* - Public forum : https://groups.goog... |
#include <fcntl.h>
#include <iomanip>
#include <iostream>
#include <memory>
#include <sstream>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/time.h>
#include <unistd.h>
#include <vector>
#include <fstream>
#include <zlib.h>
#include <cstdio>
#include <chrono>
#include <boost/algorithm/string.hpp>
#include... |
/*
* 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... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2019 Intel Corporation
#include "test_precomp.hpp"
#include <opencv2/gapi/cpu/gcpukernel.hpp>
namespace... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.