text stringlengths 7 961k |
|---|
// This is core/vnl/algo/tests/test_util.cxx
#include <complex>
#include "test_util.h"
#include <vnl/vnl_random.h>
#define macro(T) \
void test_util_fill_random(T *b, T *e, vnl_random &rng) \
{ \
for (T *p=b; p<e; ++p) \
*p = (T)rng.drand64(-1.0, +1.0); \
} \
void test_util_fill_random(std::complex<T> *b, std::c... |
#include "synthizer/error.hpp"
namespace synthizer {
Error::Error(const std::string &message) : message(message) {}
const std::string &Error::getMessage() const { return this->message; }
} // namespace synthizer |
#include <gtest/gtest.h>
#include <flinter/types/shared_ptr.h>
#include <flinter/logger.h>
class Tester {
public:
Tester()
{
LOG(INFO) << "Construct: " << ++_count;
}
~Tester()
{
LOG(INFO) << "Deconstruct: " << --_count;
}
static int _count;
}; // class Tester
int Teste... |
// Copyright 2021 Sergey agamesok@gamil.com
#ifndef INCLUDE_HEADER_HPP_
#define INCLUDE_HEADER_HPP_
void start();
#endif // INCLUDE_HEADER_HPP_ |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Karmacoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <outputtype.h>
#include <pubkey.h>
#include <script/script.h>
#includ... |
#include "llvm/Pass.h"
#include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instructions.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/IR/SymbolTableListTraits.h"
#include "llvm/Analysis/CaptureTracking.h"
using namespace llvm;
namespace {
... |
#ifndef UTENSOR_LEGACY_ARRAY_OPS_H
#define UTENSOR_LEGACY_ARRAY_OPS_H
#include <limits>
#include <algorithm>
#include <cmath>
#include "context.hpp"
#include "operatorBase.hpp"
#include "legacyQuantizationUtils.hpp"
namespace uTensor {
namespace legacy {
DECLARE_ERROR(InvalidQuantizeV2RangeError);
//T = inferred
... |
#include <boost/test/unit_test.hpp>
#include "LtpRandomNumberGenerator.h"
#include <boost/bind/bind.hpp>
#include <boost/timer/timer.hpp>
BOOST_AUTO_TEST_CASE(LtpRandomNumberGeneratorTestCase)
{
{
LtpRandomNumberGenerator rng;
rng.SetEngineIndex(131);
for (uint64_t i = 1; i <= 65535; ++i) {... |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
#include <map>
#include <set>
#include <boost/scoped_ptr.hpp>
#include <sys/types.h>
#include <cstdlib>
#include "include/buffer.h"
#include "common/map_cacher.hpp"
#include "osd/SnapMapper.h"
#include "common/Cond.h"
#include "gtest/gtest.h"
usi... |
/*
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/aub_mem_dump/aub_alloc_dump.h"
#include "shared/source/command_stream/command_stream_receiver_with_aub_dump.h"
#include "shared/source/command_stream/tbx_command_stream_receiver_hw.h"
#include "shared/sour... |
/* log_packet.cpp
* Author: Jiayao Li, Jie Zhao
* Implements log packet message decoding.
*/
#include <Python.h>
#include <datetime.h>
#include <fstream>
#include <map>
#include <sstream>
#include <string>
#include <cstring>
#include <arpa/inet.h>
#include "1xev_connected_state_search_info.h"
#include "1xev_connec... |
/*
* $Id$
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
#include "RepoIdConverter.h"
namespace OpenDDS {
namespace DCPS {
RepoIdConverter::RepoIdConverter(const RepoId& repoId)
: GuidCo... |
// 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 "walletdb.h"
#include "wallet.h"
#include <boost/version.hpp>
#include <b... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2020 The PIVX developers
// Copyright (c) 2020 The JDCOIN developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http:/... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
/**
* @brief This is a header file for the ProfilingInfo objects that contains performance
* metric for single node
*
* @file openvino/runtime/profiling_info.hpp
*/
#pragma once
#include <chrono>
#include <string>
name... |
#include "ffmpeg_frame.hpp"
#include <stdexcept>
extern "C" {
#include <libavutil/frame.h>
#include <libavutil/imgutils.h>
#include <libavutil/mem.h>
}
#include "../codec_context/codec_context.hpp"
FFmpegFrame::FFmpegFrame(CodecContext* codec_context, const int scaled_width, const int scaled_height)
: Frame(cod... |
/* Copyright (C) 2016-2018 Alibaba Group Holding Limited
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) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2012-2013 The PPCoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017 The Phore developers
// Distributed under the MIT/X11 softwar... |
/*
* Copyright 2021 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <jni.h>
#include "include/core/SkM44.h"
#include "include/effects/SkGradientShader.h"
#include "modules/androidkit/src/Utils.h"
namespace {
static jlong MakeLinear... |
// Copyright (c) 2005-2011 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)
#include <map>
#include <vector>
#include <boost/assert.hpp>
#include <boost/tokenizer.hpp>
#include <saga/saga/u... |
#include "physicsEngine.h"
#ifndef NO_HAVOK_PHYSICS
#include <Common/Base/Memory/System/Util/hkMemoryInitUtil.h>
#include <Physics2012/Collide/Dispatch/hkpAgentRegisterUtil.h>
#include <Physics2012\Collide\BroadPhase\hkpBroadPhase.h>
hkpWorld* PhysicsEngine::world;
hkMallocAllocator PhysicsEngine::baseMalloc;
hkVis... |
/*
Copyright (c) 2003-2012, Arvid Norberg
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 conditions and ... |
/*
* This source file is part of an OSTIS project. For the latest info, see http://ostis.net
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#include "builder.h"
#include <iostream>
#include <boost/program_options.hpp>
int main(int argc, ... |
//===--- ClangImporter.cpp - Import Clang Modules -------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 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 Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/scopes.h"
#include "vm/object.h"
#include "vm/stack_frame.h"
#include "vm/symbols.h"
#if... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <vector>
#include <memory>
#include <transformations_visibility.hpp>
#include <ngraph/pass/graph_rewrite.hpp>
namespace ngraph {
namespace pass {
class TRANSFORMATIONS_API ConvertBroadcast3;
} // namespa... |
#include "snakeactions.h"
SnakeAction::SnakeAction(SnakeEngine *g) :
game(g)
{
}
std::pair<double, std::vector<double> > ActionUp::perform()
{
double reward = this->game->step(UP);
std::vector<double> newState = this->game->getStateVector();
return std::pair<double,std::vector<double> >(reward, newS... |
#include "idf/SerialThrustMaster2.hh"
namespace idf {
SerialThrustMaster2::SerialThrustMaster2(const char *terminalPath, bool isMale) :
ThrustMasterBase(isMale),
SerialThrustMasterBase("Orion Style Thrust Master", terminalPath, isMale),
ThrustMaster2(isMale) {}
void SerialThrustMaster2::processButtons(un... |
#include "css/CssParser.h"
#include "gtest/gtest.h"
class CssParserTest : public ::testing::Test {
public:
istringstream* in;
CssTokenizer* t;
CssParser* p;
virtual void SetUp() {
in = new istringstream(" ");
t = new CssTokenizer(*in, "test");
p = new CssParser(*t);
}
virtual void TearDow... |
/***********************************************************************************************************************
Copyright (c) 2021, JOiiNT LAB, Fondazione Istituto Italiano di Tecnologia, Intellimech Consorzio per la Meccatronica.
All rights reserved.
Redistribution and use in source and binary forms, with or... |
// Copyright 2020 The IREE Authors
//
// Licensed 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 "iree/hal/vulkan/emulated_semaphore.h"
#include <atomic>
#include <cinttypes>
#include ... |
/*
* Copyright (C) 2020 Open Source Robotics 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 required by appl... |
//======================================================================================
// Includes
//======================================================================================
#include <Utilities.h>
#include "Vector2.h"
//===================================================================================... |
/*
* Copyright (c) 2020-2021, Marco Sánchez Beeckman
* 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 <array>
#include <chrono>
#include <iostream>
#include <limits>
#include <random>
#include <... |
/*
==============================================================================
This file contains the basic framework code for a JUCE plugin editor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEditor.h"
//=================... |
/* Copyright (c) 2015-2021 The Khronos Group Inc.
* Copyright (c) 2015-2021 Valve Corporation
* Copyright (c) 2015-2021 LunarG, Inc.
* Copyright (C) 2015-2021 Google Inc.
* Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "L... |
#include "./transform.hpp"
#include "IceRay/geometry/transform/mblur.hpp"
typedef GS_DDMRM::S_IceRay::S_geometry::S_transform::GC_mblur GTs_mblur;
void expose_IceRay_geometry_transform_mblur()
{
//MAKE_SUBMODULE( IceRay );
MAKE_SUBMODULE( core );
MAKE_SUBMODULE( geometry );
typedef GTs_coord3D con... |
/*
* bus-contacts.cc
*
* Created on: April 20, 2015
* Author: Adrián Antúnez <adriananve@gmail.com>
*/
#include <iostream>
#include <string>
#include "ns3/command-line.h"
#include "ns3/config.h"
#include "ns3/double.h"
#include "ns3/event-id.h"
#include "ns3/internet-stack-helper.h"
#include "ns3/ipv4-addr... |
#include "LefReader.h"
#include <algorithm>
PROJECT_NAMESPACE_BEGIN
// Override functions
void LefReader::lef_version_cbk(const std::string &v)
{
_techDB.setVersion(v);
}
void LefReader::lef_version_cbk(double v)
{
}
void LefReader::lef_dividerchar_cbk(const std::string &v)
{
_techDB.setDividChar(v);
... |
#include "stdafx.h"
#include "Resource/MaterialBlueprint/Cache/GraphicsPipelineStateSignature.h"
#include "Resource/MaterialBlueprint/MaterialBlueprintResourceManager.h"
#include "Resource/MaterialBlueprint/MaterialBlueprintResource.h"
#include "Resource/ShaderBlueprint/ShaderBlueprintResourceManager.h"
#include "Resou... |
// Copyright 2017 Google Inc.
// Copyright 2020 The Open GEE Contributors
//
// 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
//
// Unles... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/NativeTypes.hpp>
#include <RED4ext/Scripting/Natives/Generated/CResource.hpp>
#include <RED4ext/Scripting/Natives/Generated/anim/FacialCustomization... |
#include "SoyGnm.h"
#if !defined(ENABLE_GNM)
#error Don't build SoyGnm without ENABLE_GNM defined
#endif |
#ifndef GBAXX_TYPES_INT_TYPE_HPP
#define GBAXX_TYPES_INT_TYPE_HPP
#include <cstdint>
#include <limits>
#include <type_traits>
namespace gba {
/**
* Signed integer types
* @tparam Bits minimum size of this integer type in bits
*/
template <unsigned Bits>
struct int_type {
static_assert( Bits > 0, "int_type Bit... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
/* Copyright (c) 1997-2016, FenixOS Developers
All Rights Reserved.
This file is subject to the terms and conditions defined in
file 'LICENSE', which is part of this source code package.
*/
#include <stdlib.h>
#include <InsertReversedStressTestEventListener.hpp>
int main(void)
{
InsertReversedStressTestE... |
// Copyright (c) 2019, Paul Ferrand
// 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 an... |
/*
g++ -std=c++20 -o ../_build/r/tm.o -c r/tm.cpp
*/
#include <string>
#include <tuple>
#include <memory>
#include <vector>
#include <sstream>
struct S{
int a: 1;
int b: 1;
int c;
};
static auto [A,B,C] = S{};
void f(){
[[maybe_unused]] thread_local auto [a,b,c] = S{};
auto l = [=](){
retu... |
/*--------------------------------------------------------------
4-dim Data I/O class Library File
Written by H.Goto , Sep. 1993
Revised by H.Goto , Feb. 1996
Revised by H.Goto , May 1996
Revised by H.Goto , Feb. 1997
Revised by H.Goto , Apr. 2000
Revised by H.Goto , May 2002
Revised by H.Goto , Nov. 2... |
//===- HexagonEarlyIfConv.cpp ---------------------------------------------===//
//
// 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
//
//===---------------------------... |
/**
* @author: Alejandro Rituerto
**/
#include <OneWire.h>
#include <DallasTemperature.h>
#include <time.h>
enum ControlState
{
off,
warming,
cooling,
error
};
struct fermenter_state_t
{
time_t time;
float temp;
float ref_temp;
ControlState state;
};
struct temp_sensor_handle_t
{
... |
template <class T>
class HashTable {
public:
private:
}; |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrTessellatingPathRenderer.h"
#include <stdio.h>
#include "GrAuditTrail.h"
#include "GrClip.h"
#include "GrDefaultGeoProcFactory.h"
#include "GrDrawOpTest.h"
#includ... |
//----------------------------------------------------------------------------
//Yume Engine
//Copyright (C) 2015 arkenthera
//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 ... |
//==================================================================================================
/**
Copyright 2017 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... |
//Author: Zihao Zhang
//Date: 11.26
#include <cstdlib>
#include <iostream>
#include <string>
#include "treeNode.h"
using namespace std;
treeNode::treeNode(){
perms = new int[3];
for(int i = 0; i < 3; i ++){
perms[i] = 0;
}
nodeChildren = new treeNode*[4];
leafChildren = new treeLeaf*[4];
isAboveLeaf ... |
// Copyright 2020 Arthur Sonzogni. All rights reserved.
// Use of this source code is governed by the MIT license that can be found in
// the LICENSE file.
#include <algorithm>
#include <smkflow/CursorCapture.hpp>
namespace smkflow {
CursorCapture::CursorCapture() = default;
CursorCapture::CursorCapture(CursorCaptur... |
/*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
// TEST Foundation::Containers::Set
// STATUS PRELIMINARY
#include "Stroika/Foundation/StroikaPreComp.h"
#include <iostream>
#include <sstream>
#include "Stroika/Foundation/Characters/ToString.h"
#include "Stroika/Foundation/Cont... |
// stdafx.cpp : source file that includes just the standard includes
// threejs.Console.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file |
#pragma once
// DO NOT REMOVE, exists to avoid private/public headers mixing!
#ifndef TACKLE_STRING_HPP
#define TACKLE_STRING_HPP
#include <tacklelib/tacklelib.hpp>
#include <tacklelib/utility/preprocessor.hpp>
#include <tacklelib/utility/platform.hpp>
#include <tacklelib/utility/type_identity.hpp>
#include <string... |
// Generated from strided_slice_float_1.mod.py
// DO NOT EDIT
// clang-format off
#include "TestHarness.h"
using namespace test_helper; // NOLINT(google-build-using-namespace)
namespace generated_tests::strided_slice_float_1 {
const TestModel& get_test_model() {
static TestModel model = {
.main = {
... |
// KRATOS ___ ___ _ ___ __ ___ ___ ___ ___
// / __/ _ \| \| \ \ / /__| \_ _| __| __|
// | (_| (_) | .` |\ V /___| |) | || _|| _|
// \___\___/|_|\_| \_/ |___/___|_| |_| APPLICATION
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main... |
#pragma once
#include <vector>
#include "process.hpp"
#include "type.hpp"
#include "vmachine.hpp"
namespace processwarp {
/**
* 標準Cライブラリのうち、LLVM組み込みとして用意するもの。
*/
class BuiltinLibc {
public:
/**
* atexit関数。
* 失敗時はerrnoを設定する仕様だが、その判定が無いため現在常に成功する。
* srcから取り出すパラメタは以下のとおり。
* vaddr_t func プログラム終了時に呼び出す関数... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "CodecBench.h"
#include "CodecBenchPriv.h"
#include "SkBitmap.h"
#include "SkCodec.h"
#include "SkCommandLineFlags.h"
#include "SkOSFile.h"
// Actually zeroing the m... |
class Solution {
public:
/**
* @param nums: an integer array
* @return: nothing
*/
void moveZeroes(vector<int> &nums) {
// write your code here
int swap_pos = 0;
for(int i = 0; i < nums.size(); i++){
if(nums[i] == 0){
if(swap_pos < i) swap_pos =... |
// 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 "chrome/browser/chromeos/chromebox_for_meetings/logger/cfm_logger_service.h"
#include <memory>
#include <utility>
#include <vector>
#include "b... |
#include "TicTacToe.h"
#include <QPushButton>
#include "MainWindow.h"
TicTacToe::Player TicTacToe::m_turnPlayer = PLAYER1;
QString TicTacToe::m_player1Name;
QString TicTacToe::m_player2Name;
TicTacToe::Player TicTacToe::m_startingPlayer;
// TODO: Change the Board to a QVariantHash or something like that
void TicTa... |
// (C) Copyright Michael Glassford 2004.
// 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 <boost/thread/detail/config.hpp>
#if defined(BOOST_HAS_WINTHREADS) && defined(BO... |
#include "Precompiled.h"
#include "Camera.h"
#include "GraphicsSystem.h"
using namespace Coo;
using namespace Coo::Graphics;
Math::Matrix4 Graphics::ComputeViewMatrix(const Math::Vector3 & r, const Math::Vector3 & u, const Math::Vector3 & l, const Math::Vector3 & position)
{
const float dx = -Math::Dot(r, position);
... |
/*****************************************************************************
Copyright (c) 2001, Microsoft Corporation All rights reserved.
Module Name:
muirct.cpp
Abstract:
The main funtion of muirct program
Revision History:
2001-10-01 sunggch created.
Revision.
*************... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2018 The FlatEarth Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coincontrol... |
#ifndef KTHOOK_DETAIL_HPP_
#define KTHOOK_DETAIL_HPP_
namespace kthook {
namespace detail {
namespace traits {
template <typename Ret, typename T, typename Enable = void>
struct count_integrals {};
struct relay_args_info {
std::size_t head_size;
std::size_t tail_size;
int register_idx_if_full = -1; // if ... |
/*
* Copyright (c) 2010-2011 by Patrick Schaefer, Zuse Institute Berlin
* 2011-2012 by Michael Berlin, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
#include "libxtreemfs/user_mapping_gridmap_globus.h"
#include <boost/bimap.hpp>
#include <boost/tokeni... |
// Copyright 2014 HcNet Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "simulation/Topologies.h"
#include "crypto/SHA.h"
namespace HcNet
{
using namespace std... |
/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable us... |
#include "header.h"
void khoiTao(Nodeptr &list) { list = NULL; }
int isEmpty(Nodeptr list) { return (list == NULL ? true : false); }
void giaiPhong(Nodeptr &list) {
Nodeptr p = list;
while (p != NULL) {
list = list->link;
delete p;
p = list;
}
}
Nodeptr taoNode(TYPEINFO x) {
Nodeptr p;
p = new... |
#include "StdAfx.h"
#include ".\segmentprojectiveextendedsystemfunctionbase.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
SegmentProjectiveExtendedSystemFunctionBase::SegmentProjectiveExtendedSystemFunctionBase(int real_dimension) :
real_dimension(real_dimension)... |
#include "stdafx.h"
#include "GameStateMenu.h"
#include "ObjectsStorage.h"
#include "PlayerProfile.h"
void GameStateMenu::RenderBefore( IRender & render, const IGameContext & context )
{
}
void GameStateMenu::RenderAfter( IRender & render, const IGameContext & context )
{
m_pMenu->Render( &render );
// Draw scro... |
#ifndef SHORTESTPATH
#define SHORTESTPATH
#include <limits>
#include <vector>
#include <algorithm>
#include <thread>
#include "BinaryHeap.cpp"
using namespace std;
void dijkstra(const double* const* matrix, int numVertices, int source, double*& dist, int*& prev);
int getPath(int source, int dest, const int* prev, ... |
// 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 "public/web/WebMemoryStatistics.h"
#include "platform/heap/Heap.h"
#include "wtf/allocator/Partitions.h"
namespace blink {
namespace {
class ... |
///////////////////////////////////////////////////////////////////////////////
// statistics::survival::model::include.hpp //
// //
// Copyright 2009 Erwann Rogard. Distributed under the Boost //
... |
#include <Eigen/Dense>
#include "k4a_grabber.h"
pcl::KinectAzureDKGrabber::KinectAzureDKGrabber(const int &device_id_, const int &depth_mode_, const int &color_format_, const int &color_resolution_) :
config(K4A_DEVICE_CONFIG_INIT_DISABLE_ALL),
dev(nullptr),
colorImage(nullptr),
depthImage(nullptr),
infraredImage(... |
/*
* Copyright 2016 Huy Cuong Nguyen
* Copyright 2016 ZXing 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 ... |
// Copyright (c) 2011-2013 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 "bitcoinamountfield.h"
#include "qvaluecombobox.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include <QA... |
#include <CGAL/Kinetic/basic.h>
#include <CGAL/Kinetic/Erase_event.h>
#include <CGAL/Kinetic/Inexact_simulation_traits.h>
#include <CGAL/Kinetic/Exact_simulation_traits.h>
#include <CGAL/Kinetic/Insert_event.h>
#include <CGAL/Kinetic/Ref_counted.h>
#include <CGAL/Kinetic/listeners.h>
#include <CGAL/Kinetic/Sort.h>
#inc... |
//
// HeatThreshold.hpp
// Performs a threshold for hot areas based on the config
// Outputs the thresholded images in N channels
//
#ifndef FUMAROLE_LOCALIZATION_HEATTHRESHOLD_HPP
#define FUMAROLE_LOCALIZATION_HEATTHRESHOLD_HPP
#include "pipeline/PipelineElement.hpp"
#include <vector>
#include <memory>
namespace P... |
/***************************************************************************
*
* $Id: AliFemtoBPLCMS3DCorrFctnEMCIC.cxx $
*
* Author: Nicolas Bock, Ohio State University, bock@mps.ohio-state.edu
***************************************************************************
*
* Description: Calculates of the 3D Cor... |
// This program is a distributed version of the math_actor example.
// Client and server use a stateless request/response protocol and the client
// is failure resilient by using a FIFO request queue.
// The client auto-reconnects and also allows for server reconfiguration.
//
// Run server at port 4242:
// - ./build/b... |
#include <bits/stdc++.h>
using namespace std;
// f[i] = f[i & k,0] +
class Solution {
public:
int minSessions(vector<int>& tasks, int sessionTime) {
sort(tasks.begin(), tasks.end());
int n = tasks.size();
vector<int> dp(1 << (n + 1), INT_MAX), h(1 << n);
dp[0] = 0;
for (i... |
//------------------------------------------------------------------------------
// PhaseDriver
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government as represented by the... |
/*
* Copyright (c) 2013 SURFnet bv
* 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 condition... |
#include "stdafx.h"
#include "BrowserProcessHandler.h" |
/*
* $Header$
*
* DO NOT EDIT
* automagically generated from the projectDefinition: stx_goodies_petitparser_parsers_smalltalk_tests.
*/
#define __INDIRECTVMINITCALLS__
#include <stc.h>
#ifdef WIN32
# pragma codeseg INITCODE "INITCODE"
#endif
#if defined(INIT_TEXT_SECTION) || defined(DLL_EXPORT)
DLL_EXPORT void _... |
// Generated by Haxe 3.3.0
#include <hxcpp.h>
#include "hxMath.h"
#ifndef INCLUDED_flixel_FlxBasic
#include <flixel/FlxBasic.h>
#endif
#ifndef INCLUDED_flixel_FlxObject
#include <flixel/FlxObject.h>
#endif
#ifndef INCLUDED_flixel_math_FlxPoint
#include <flixel/math/FlxPoint.h>
#endif
#ifndef INCLUDED_flixel_util_FlxDe... |
//=================================================================================================
/*!
// \file src/mathtest/smatdmatmult/LCbLHa.cpp
// \brief Source file for the LCbLHa sparse matrix/dense matrix multiplication math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// Thi... |
static unsigned char __KernalRom[] = {
0x85, 0x56, 0x20, 0xf, 0xbc, 0xa5, 0x61, 0xc9, 0x88, 0x90, 0x3, 0x20, 0xd4, 0xba, 0x20, 0xcc,
0xbc, 0xa5, 0x7, 0x18, 0x69, 0x81, 0xf0, 0xf3, 0x38, 0xe9, 0x1, 0x48, 0xa2, 0x5, 0xb5, 0x69,
0xb4, 0x61, 0x95, 0x61, 0x94, 0x69, 0xca, 0x10, 0xf5, 0xa5, 0x56, 0x85, 0x70, 0x... |
// Copyright (c) 2019 The Rain Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/data.h>
namespace benchmark {
namespace data {
#include <bench/data/block413567.raw.h>
const std::vector<uint8_t> b... |
#include "Resultado.h" |
#include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vector>
#include <QClipboard>
Sign... |
#pragma once
#include "../core/string.hpp"
namespace z
{
namespace file
{
/**
* \brief Get the directory part of a file name.
* \return A string containing the directory above a given path.
* \threadsafe_function_yes
*/
template <encoding E>
core::string<E> dirname(const core::string<E>& path) noexcep... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.