text stringlengths 7 961k |
|---|
#ifndef ANDROIDAPIWRAPPER_HH
#include "build-info.hh"
#if PLATFORM_ANDROID
#include "MSXException.hh"
namespace openmsx {
class AndroidApiWrapper
{
public:
static std::string getStorageDirectory();
};
class JniException final : public MSXException
{
public:
explicit JniException(string_ref message)
: MSXExcepti... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: PersistentScriptableObject
#include "GlobalNamespace/Pe... |
/*++
Copyright (C) 2019 3MF Consortium
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 of conditions and the followi... |
//===-- ctor_copy.hpp - Functions for tests on simd copy constructor definition.
// -------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-Licen... |
//
// Copyright 2020 - present Isotropix SAS. See License.txt for license information
//
// Local includes
#include "./kubix_module_material.h"
// Needs to be kept outside the header
IMPLEMENT_CLASS(ModuleMaterialKubix, ModuleMaterial)
static GMathVec3f default_shade(OfObject& /* object */, const GMathVec3f& /* ray_... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ExecuteKernelU8S8.h"
#include <cpuinfo.h>
#include <chrono>
#ifdef FBGEMM_MEASURE_TIME_BREAKDO... |
#ifdef USE_BASISU_TRANSCODER
#include "al2o3_platform/platform.h"
#include "al2o3_memory/memory.h"
#include "tiny_imageformat/tinyimageformat_decode.h"
#include "gfx_image/image.h"
#include "gfx_image/create.h"
#include "gfx_imageio/basisu.h"
#include "al2o3_vfile/vfile.h"
#include <algorithm>
namespace {
#include "ba... |
#ifndef TrackerGeom_Manifold_hh
#define TrackerGeom_Manifold_hh
#include <vector>
//#include <string>
#include "Offline/TrackerGeom/inc/ManifoldId.hh"
#include "CLHEP/Vector/ThreeVector.h"
namespace mu2e {
class Manifold{
public:
// Default constructor
Manifold();
// Main constructor
Manifol... |
/*
===============================================================================
FILE: lasreaditemcompressed_v4.cpp
CONTENTS:
see corresponding header file
PROGRAMMERS:
martin.isenburg@rapidlasso.com - http://rapidlasso.com
COPYRIGHT:
(c) 2007-2017, martin isenburg, rapidlasso - fa... |
#pragma once
template<typename ... T>
class TypeList {
}; |
// Copyright 2019 The Dawn 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 agreed t... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2017 Pivotal, Inc.
//
// @filename:
// CCardinalityTestUtils.cpp
//
// @doc:
// Utility functions used in the testing cardinality estimation
//----------------------------------------------------------... |
/*
Leetcode Question 229. Majority Element II
https://leetcode.com/problems/majority-element-ii/
*/
class Solution
{
public:
vector<int> majorityElement(vector<int> &nums)
{
unordered_map<int, int> mp;
vector<int> result;
for (auto x : nums){
mp[x]++;
}
fo... |
#include "image.hpp"
#include "framebuffer.hpp"
#include "Wingine.hpp"
namespace wg {
const vk::Image& Image::getImage() const {
return this->image;
}
const vk::DeviceMemory& Image::getMemory() const {
return this->memory;
}
const vk::ImageView& Image::getView() const {
... |
/*
* EMSA1
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/emsa1.h>
#include <botan/exceptn.h>
#include <botan/pk_keys.h>
#include <botan/internal/padding.h>
namespace Botan {
namespace {
secure_vector<uint8_t> emsa1_encoding(const secure_vector... |
// Copyright 2015 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/gfx/buffer_format_util.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/numerics/safe_math.h"
namespace gfx {
namespace... |
#include "types/Float32Value.h"
Float32Value::Float32Value(const DataType* type, float data)
: DataValue(type), data(data) {
} |
/*
* Copyright 2011-2018 Branimir Karadzic. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include <bx/platform.h>
#include "bgfx_p.h"
#include <bgfx/embedded_shader.h>
#include <bx/file.h>
#include <bx/mutex.h>
#include "topology.h"
BX_ERROR_RESULT(BGFX_ERROR_TEXTURE_... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE127_Buffer_Underread__new_wchar_t_cpy_82_goodG2B.cpp
Label Definition File: CWE127_Buffer_Underread__new.label.xml
Template File: sources-sink-82_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 127 Buffer Under-read
* BadSource: Set data pointer to before the allocated ... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... |
/*
* Copyright (c) 2019 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-04-28
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
/*
* Copyright (C) 2011, 2012 Nokia Corporation and/or its subsidiary(-ies)
* Copyright (C) 2011 Benjamin Poulain <benjamin@webkit.org>
*
* 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 Founda... |
version https://git-lfs.github.com/spec/v1
oid sha256:6e0984f3ee248a889c814fb141b10f09d778c72511df76cfefc10d8122c09109
size 7526 |
#pragma once
#include <bears/chain/bears_object_types.hpp>
#include <fc/api.hpp>
namespace bears { namespace app {
struct api_context;
} }
namespace bears { namespace plugin { namespace raw_block {
namespace detail {
class raw_block_api_impl;
}
struct get_raw_block_args
{
uint32_t block_num = 0;
};
struct ... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... |
#include <map>
#include <sstream>
#include <string>
#include <string_view>
#include <utility>
#include <tuple>
#include "catch.hpp"
#include "cprint/cprint.hpp"
TEST_CASE( "printing multimap of streamable types on char stream", "[multimap][char]" ) {
using namespace std::string_literals;
using namespace std::strin... |
#include "SoundManager.h"
#include "SoundSource.h"
#include "SoundMusic.h"
#ifdef WINDOWS_COMPILE
SoundManager::SoundManager(SharedParams_t params) : Base(params)
{
_soundEngine = irrklang::createIrrKlangDevice();
_soundResources = new SoundResources(params);
_soundEnabled = true;
_musikEnabled = true;
}
SoundM... |
#include <limits>
#include "attic/multibody/multibody_solvers.h"
namespace dairlib {
namespace multibody {
using std::make_shared;
using std::make_unique;
using std::map;
using std::logic_error;
using std::shared_ptr;
using std::string;
using std::vector;
using drake::AutoDiffXd;
using drake::AutoDiffVecXd;
using d... |
// Copyright (c) 2014-2017 Andrey Upadyshev <oliora@gmail.com>
//
// Use, modification and distribution are 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)
#include "ppconsul/catalog.h"
#include "s11n_types.h"
name... |
// 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... |
/*
* Copyright 2016 WebAssembly Community Group participants
*
* 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... |
#include "AnimatedSprite.h"
#include "Person.h"
#include "WorldGrid.h"
#include <SFML/Graphics.hpp>
#include <iostream>
using namespace fgm;
int main() {
// setup window
size_t xPixels = 800;
size_t yPixels = 600;
sf::Vector2i screenDimensions(xPixels, yPixels);
sf::RenderWindow window(sf::VideoMode(screenD... |
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
TreeNode* inorderSuccessor(TreeNode* root, TreeNode* p) {
if(!root)return nullptr;
... |
/*
* EAbstractPollingIoAcceptor.hh
*
* Created on: 2016-1-8
* Author: cxxjava@163.com
*/
#ifndef EABSTRACTPOLLINGIOACCEPTOR_HH_
#define EABSTRACTPOLLINGIOACCEPTOR_HH_
#include "./EAbstractIoAcceptor.hh"
#include "./EAbstractIoSession.hh"
#include "./ESocketSessionConfig.hh"
#include "./EIoProcessor.hh"
#in... |
///--------------------------------------------------------------------------------
///-- Author ReactiioN
///-- Copyright 2016-2020, ReactiioN
///-- License MIT
///--------------------------------------------------------------------------------
#pragma once
#include "core/valve_structs.hpp"
#include ... |
// Copyright (c) 2016 Greenheart Games Pty. Ltd. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "nan.h"
#include "steam/steam_api.h"
#include "v8.h"
#include "greenworks_async_workers.h"
#include "steam_api_registry.h"
namespace green... |
#include <algorithm>
#include <vector>
#include <iostream>
#include <cassert>
#include "remove_copy.h"
int
main(int argc, char** argv)
{
std::vector<value_type> a{1, 3, 2, 8, 3, 3, 7};
std::vector<value_type> b(a.size());
std::vector<value_type> c(a.size());
const value_type value = 3;
auto last_b = std::re... |
/**
* @license Software License Agreement (Apache License)
*
* @copyright Copyright (c) 2017 Austin Deric
* @copyright Copyright (c) 2019 ROS-Industrial Consortium Asia Pacific (ROS 2 compatibility)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian... |
// Source : https://leetcode.com/problems/move-zeroes/
// Author : Yijing Bai
// Date : 2015-09-20
/**********************************************************************************
*
* Given an array nums, write a function to move all 0's to the end of it while
* maintaining the relative order of the non-zero e... |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2014-2018 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person... |
/*
* Copyright (c) 2016, Airbitz, Inc.
* All rights reserved.
*
* See the LICENSE file for more information.
*/
#ifndef ABCD_ROOT_PATHS_HPP
#define ABCD_ROOT_PATHS_HPP
#include "util/Status.hpp"
#include <list>
namespace abcd {
class AccountPaths;
class WalletPaths;
/**
* Knows how to calculate paths at the ... |
#include "graph.h"
Graph::Graph(int width, int height) : width_(width), height_(height), nodes_() {
std::random_device rd;
unsigned seed = rd();
this->rng_ = std::mt19937(seed);
}
void Graph::addNode(int x, int y, int r) {
this->nodes_.push_back(Node(x, y, r));
}
void Graph::addNode(int x, int y) {
... |
/*
* Copyright (c) 2017, Intel Corporation
*
* 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, publis... |
//********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef FUML_SEMANTICS_LOCI_EXECUTIONFACTORYEXECUTIONFACTORYIMPL_HPP
#define FUML_SEMANTICS_LOCI_EXECUTIO... |
#include "StatLoggerTest.h"
#include "core/Params.h"
#include "core/StatLogger.h"
#ifdef TRITONSORT_ASSERTS
TEST_F(StatLoggerTest, testLoggingToUnregisteredKeyThrowsException) {
StatLogger testLogger("testLogger");
ASSERT_THROW(testLogger.add(42, 610), AssertionFailedException);
}
#endif //TRITONSORT_ASSERTS |
// 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... |
#pragma once
#include "symbol.hpp"
#include<iostream>
#include <cstdlib>
#include "check.hpp"
#include "types.hpp"
#include "wasm/wasm_serialize_reflect.hpp"
namespace wasm {
/**
* Defines C++ API for managing assets
* @addtogroup asset Asset C++ API
* @ingroup core
* @{
*/
/**... |
// Copyright (c) 2014-2017 The MIA Core developers
#include "governance-validators.h"
#include "univalue.h"
#include "utilstrencodings.h"
#include "test/test_mia.h"
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <fstream>
#include <string>
BOOST_FIXTURE_TEST_SUITE(governance_validators_tests, Bas... |
#include "common/event/dispatcher_impl.h"
#include "server/worker_impl.h"
#include "test/mocks/network/mocks.h"
#include "test/mocks/server/mocks.h"
#include "test/mocks/thread_local/mocks.h"
#include "test/test_common/test_time.h"
#include "test/test_common/utility.h"
#include "gtest/gtest.h"
using testing::_;
usi... |
//
// TextClassifierValidator.cpp
// mlmodel
//
// Created by Tao Jia on 3/21/18.
// Copyright © 2018 Apple Inc. All rights reserved.
//
#include "Result.hpp"
#include "Validators.hpp"
#include "ValidatorUtils-inl.hpp"
#include "../build/format/Model.pb.h"
namespace CoreML {
template <>
Result valida... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include <qlo/objects/obj_interpolation.hpp>
//#include <qlo/objects/obj_optimization.hpp>
#include <qlo/enumerations/factories/interpolationsfactory.hpp>
#include <ql/math/interpolations/linearinterpolation.hpp>
#include <ql/math/interpolations/backwardflatinterpolation.hpp>
#include <ql/math/interpolations/forwardfl... |
/*
* Copyright (C) 2005 - 2011 MaNGOS <http://www.getmangos.org/>
*
* Copyright (C) 2008 - 2011 TrinityCore <http://www.trinitycore.org/>
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
*
* Copyright (C) 2012 Forgotten Lands <http://www.forgottenlands.eu/>
*
* This program is free software; you... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/hud_display/graph_page_view_base.h"
#include "ash/hud_display/hud_constants.h"
#include "ash/hud_display/hud_properties.h"
#include "ash/hu... |
#include "stage3testfactory.h"
#include "stage3game.h"
#include "stage3test.h"
#include "stage3gamestatefactory.h"
GameDialog *Stage3TestFactory::createGame(){
Stage3GameStateFactory* factory = new Stage3GameStateFactory();
GameState* state = factory->createGameState();
return new Stage3Test(state);
} |
#pragma once
#include <mbgl/gl/context.hpp>
#include <mbgl/gl/vertex_array.hpp>
#include <cstddef>
#include <vector>
#include <map>
namespace mbgl {
template <class Attributes>
class Segment {
public:
Segment(std::size_t vertexOffset_,
std::size_t indexOffset_,
std::size_t vertexLength_ ... |
////Write a program thatstores information
////regarding football tournament played by 4 teams
////The program keeps the team ID and number of points
////The program reads scores of 4 matches
////A function assigns points according to the match result
////In each match, The winning team gets 3 points
////In case of a t... |
/*
* Copyright (C) 2013 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... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// QuickBook Example
// Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands.
// 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/LI... |
#include "envoy/config/bootstrap/v2/bootstrap.pb.h"
#include "envoy/config/metrics/v2/stats.pb.h"
#include "common/config/well_known_names.h"
#include "test/integration/integration.h"
#include "test/test_common/network_utility.h"
#include "test/test_common/utility.h"
#include "gtest/gtest.h"
namespace Envoy {
names... |
class Solution {
public:
vector<int> temp;
vector<vector<int>> ans;
void dfs(int cur, int n, int k, int sum) {
if (temp.size() + (n - cur + 1) < k || temp.size() > k) {
return;
}
if (temp.size() == k && accumulate(temp.begin(), temp.end(), 0) == sum) {
ans.pu... |
auto InputManager::createHotkeys() -> void {
static bool fastForwardVideoBlocking;
static bool fastForwardAudioBlocking;
static bool fastForwardAudioDynamic;
hotkeys.append(InputHotkey("Toggle Fullscreen").onPress([&] {
program.videoFullScreenToggle();
}));
//wait until controller selection is enabled... |
/*++
Copyright (c) Microsoft Corporation
Module Name:
FxDeviceApiKm.cpp
Abstract:
This module exposes the "C" interface to the FxDevice object.
Author:
Environment:
Kernel mode only
Revision History:
--*/
#include "coreprivshared.hpp"
#include "fxiotarget.hpp"
extern "C" {
#include "FxDeviceAp... |
/****************************************************************************
** Meta object code from reading C++ file 'keyboardmanager.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.1)
**
** WARNING! All changes made in this file will be lost!
****************************************************... |
#pragma once
#include <inttypes.h>
#include <sstream>
#include <fmt/format.h>
#include <imgui.h>
#include <imgui_extras/cpp_imgui.hpp>
#include <imgui_extras/imgui_stdlib.h>
#include <utils.hpp>
#include <cpinternals/cpnames.hpp>
#include <cserialization/cnodes/CSystems.hpp>
#include "node_editor.hpp"
#include "hexedi... |
#include "Matrix.h"
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <cmath>
Matrix::Matrix(std::vector<std::vector<double>> data)
{
//initializing the matrix size and data values
this->size[0] = std::size(data);
this->size[1] = data[0].size();
this->data = data;
}
Matrix... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "execute_module.hpp"
int main(int argc, char** argv)
{
float expected_timeout = getenv("EXPECTED_TIMEOUT") ? std::atof(getenv("EXPECTED_TIMEOUT")) : -1;
#if !defined(_WIN64) || defined(__MINGW64__)
pthread_t p_timeout_monitor... |
//===- SPIRVOps.cpp - MLIR SPIR-V operations ------------------------------===//
//
// 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
//
//===---------------------------... |
#include "catch.hpp"
#include <type_traits>
#include <tasm/asm.h>
#include <tasm/isa/x86.h>
using namespace tasm;
TEST_CASE("Compile time immediate tests", "[compile][immediate]") {
constexpr auto test_1_decimal = std::is_same<byte<4>, decltype(4_b)>();
constexpr auto test_2_decimal = std::is_same<byte<42>, de... |
#include <experimental/type_traits>
#include <utility>
#define FWD(...) ::std::forward<decltype(__VA_ARGS__)>(__VA_ARGS__)
template <typename>
struct parent;
template <template <typename...> class TVariant, typename... Ts>
struct parent<TVariant<Ts...>>
{
template <template <template <typename> class> class TX>
... |
/*
* Copyright (C) 2017 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... |
#include "renderwidget.h"
#include <array>
#include <QDebug>
#include <QDir>
#include <QKeyEvent>
#include <QTimer>
#include <QtGui/QtGui>
#include <QtWidgets/QHBoxLayout>
#include <mission/object.h>
#include <ship/ship.h>
#include <globalincs/linklist.h>
#include <QtWidgets/QMessageBox>
#include "osapi/osapi.h"
#in... |
#include "Internal.hpp"
#include "VulkanDeviceContext.hpp"
#include "VulkanShaderPass.hpp"
#include "VulkanDescriptorPool.hpp"
namespace ln {
namespace detail {
//==============================================================================
// VulkanDescriptor2
VulkanDescriptor2::VulkanDescriptor2(VulkanDescripto... |
/* Trade Routines
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include "CommonFramework/Notifications/ProgramNotifications.h"
#include "CommonFramework/InferenceInfra/InferenceRoutines.h"
#include "CommonFramework/Inference/BlackScreenDetector.h"
#include "CommonFramework/Inference/ImageMa... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int x=10;
int *p=NULL;
int y;
printf("Value of x: %d\n",x);
p=&x;
printf("Value of *p: %d\n",*p);
return 0;
} |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
#include "SymmetricCorrespondenceFilter.hpp"
namespace registration {
void SymmetricCorrespondenceFilter::set_floating_input(const FeatureMat * const inFloatingFeatures,
const VecDynFloat * const inFloatingFlags)
{
//# Set input
_inFloatingFeatures = inF... |
// TODO: add copyright
#include "LoopAwareMemDepAnalysis.hpp"
#include "DataFlow.hpp"
#include "scaf/Utilities/PDGQueries.h"
using namespace llvm;
void llvm::refinePDGWithLoopAwareMemDepAnalysis(
PDG *loopDG,
Loop *l,
LoopStructure *loopStructure,
LoopCarriedDependencies &LCD,
liberty::LoopAA *loopAA,
L... |
#ifndef __ETCD_CLIENT_HPP__
#define __ETCD_CLIENT_HPP__
#include <etcd/Response.hpp>
#include <etcd/v3/Transaction.hpp>
#include <etcd/v3/AsyncTxnResponse.hpp>
#include <etcd/v3/Action.hpp>
#include <string>
#include <grpc++/grpc++.h>
#include <etcd/v3/proto/rpc.grpc.pb.h>
using etcdserverpb::KV;
using etcdserverpb... |
// 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 "services/metrics/public/cpp/ukm_entry_builder_base.h"
#include <memory>
#include "services/metrics/public/interfaces/ukm_interface.mojom.h"
n... |
#pragma once
#if defined(SCRATCHPADD_TEST)
#pragma warning "Using Scratchpadd Test Messages"
#include <ScratchPadd/Tests/Message.hpp>
#else
#include <ScratchPadd/Message.hpp>
#endif
namespace ScratchPadd {
class Base;
class System {
public:
System(){}
virtual void instantiate()=0;
virtual void start... |
//
// of3dGraphics.cpp
// openFrameworksLib
//
// Created by Nick Hardeman on 9/14/12.
//
//
#include "of3dGraphics.h"
enum of3dPrimitiveType {
OF_3D_PRIMITIVE_PLANE,
OF_3D_PRIMITIVE_SPHERE,
OF_3D_PRIMITIVE_ICO_SPHERE,
OF_3D_PRIMITIVE_BOX,
OF_3D_PRIMITIVE_CONE,
OF_3D_PRIMITIVE_CYLINDER,
OF_3D_P... |
//
// Bot.hpp
// srcXcode
//
// Created by Alexandre on 07/01/2017.
// Copyright © 2017 Alexandre. All rights reserved.
//
#ifndef BOT_H_
#define BOT_H_
#include <list>
#include <map>
#include "State.hpp"
#include "Location.h"
#include "Route.hpp"
/**
@brief The struct Bot represents my bot in the game.
*/
str... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... |
#include "Input.h"
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include <iostream>
void Input::Update()
{
for (unsigned i = 0; i < GLFW_KEY_LAST; ++i)
{
if (_keyStates[i] & Input::KeyState::up) _keyStates[i] = Input::KeyState::up;
if(_keyStates[i] & Input::KeyState::down) _keyStates[i] = Input::KeyState::d... |
// RUN: %clang_cc1 -verify -fcxx-exceptions -triple=x86_64-linux-gnu -std=c++11 -Werror=c++1y-extensions -Werror=c++2a-extensions %s
// RUN: %clang_cc1 -verify -fcxx-exceptions -triple=x86_64-linux-gnu -std=c++1y -DCXX1Y -Werror=c++2a-extensions %s
// RUN: %clang_cc1 -verify -fcxx-exceptions -triple=x86_64-linux-gnu -s... |
//---------------------------------------------------------------------------
#include <vcl\vcl.h>
#pragma hdrstop
#include "warning.h"
#include "main.h"
//---------------------------------------------------------------------------
#pragma resource "*.dfm"
TWarningForm *WarningForm;
//---------------------------------... |
#include "characterpropertiesui.h"
#include "src/ui/treegraphicsitem.h"
#include "src/ui/hkxclassesui/behaviorui/boneweightarrayui.h"
#include "src/ui/genericdatawidgets.h"
#include "src/hkxclasses/behavior/generators/hkbgenerator.h"
#include "src/filetypes/behaviorfile.h"
#include "src/ui/behaviorgraphview.h"
#includ... |
/*
* Copyright (c) 2015 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... |
/*
Copyright (c) 2015 Maximus5
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 of conditions and the following dis... |
#include <iostream>
#include <string>
#include <sstream>
#include <cassert>
#include <cmath>
#include "funcionesDeBiblioteca.h"
using namespace std;
int xRectangulo = 0, yRectangulo = 0;
Color c = ROJO;
void dibujar()
{
dibujarRectangulo(10 + xRectangulo,100 + yRectangulo,300+xRectangulo,365 + yRectangulo, c... |
//
//! \file httpd/processor.cc
//! Implementation of the connection processor
//
// $Id: processor.cc,v 1.17 2013/05/10 09:32:48 joe Exp $
#include "httpd.hh"
#include "common/trace.hh"
#include "common/scopeguard.hh"
#if defined(__unix__) || defined(__APPLE__)
# include <sys/types.h>
# include <sys/socket.h>
# inc... |
#include <iostream>
#include <algorithm>
#include <vector>
#include <iterator>
using namespace std;
int main()
{
vector<string> v{"a", "aaa", "aa", "bbb", "ccc", "bb", "cc", "dd", "b", "c", "ddd", "d", "ee", "eee", "e", "f", "fff", "ff"};
sort(v.begin(), v.end(), [](string s1, string s2) { return s1.size() < ... |
// 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 <memory>
#include <string>
#include <vector>
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "components/arc/ins... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php... |
/*
* [209] Minimum Size Subarray Sum
*
* https://leetcode.com/problems/minimum-size-subarray-sum/description/
*
* algorithms
* Medium (33.00%)
* Total Accepted: 135K
* Total Submissions: 408.9K
* Testcase Example: '7\n[2,3,1,2,4,3]'
*
* Given an array of n positive integers and a positive integer s, find... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
/*
* Copyright 2013 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 applica... |
#pragma once
#include "Aimer.hpp"
namespace wmj
{
class StaticAimer : public Aimer
{
public:
StaticAimer();
~StaticAimer() {};
private:
void setParam();
void buildModel(Armor&);
GimbalPose getTargetPose(Armor&);
// std::pair<double, cv::Point3f> m_pos_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.