text stringlengths 7 961k |
|---|
#ifndef __MAIN_HEADER__
#define __MAIN_HEADER__
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <iomanip>
#include <sstream>
#include <unordered_map>
#include <vector>
#include <stdexcept>
#include "common/text.hpp"
#include "common/parser.hpp"
using hashmap = std::unordered_map<std::string, std::st... |
// Copyright 2006-2009 Daniel James.
// 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 "./containers.hpp"
#include "../helpers/random_values.hpp"
#include "../helpers/invariants.hpp"
#include "../helpers/hel... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Copyright (c) 2017 The DogCash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "arith_uint256.h"
#in... |
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Copyright (C) 2013 Olivier Goffart <ogoffart@woboq.com>
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_B... |
#include <climits>
#include <functional>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
#include <doctest/doctest.h>
#include "solver_07_part1.h"
std::string Solver_07_part1::solve(std::istream &is)
{
std::vector<unsigned long> positions;
unsigned long input = 0;
while (is >> input... |
template <typename real_type, typename rng_state_type>
HOSTDEVICE
real_type ll_nbinom(real_type data, real_type model, real_type kappa,
real_type exp_noise,
rng_state_type& rng_state) {
if (std::isnan(data)) {
return 0;
}
real_type mu = model +
dust::random::exponen... |
//#include "precompiled.h"
#include <rtu/refCounting.h>
#include <rtu/exception.h>
#include <strstream>
namespace rtu {
RefCounted::~RefCounted()
{
if( _refCount > 0 )
{
std::strstream message;
message << "Warning: deleting still referenced object " << this
<< ". The final reference count was " << _refCount... |
// builds all boost.asio SSL source as a separate compilation unit
#include <boost/version.hpp>
#include <climits>
#ifndef BOOST_ASIO_SOURCE
#define BOOST_ASIO_SOURCE
#endif
#include "libtorrent/config.hpp"
#define TORRENT_HAS_ASIO_DECL x ## BOOST_ASIO_DECL
// only define BOOST_ASIO_DECL if it hasn't already been d... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... |
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... |
//*****************************************************************************
// SF - Serialization Framework
// Copyright (c) 2003. All rights reserved.
// Developed by Jarl Lindrud.
// Contact: jlindrud@hotmail.com .
//*****************************************************************************
//****************... |
// Copyright (c) 2012-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 <compressor.h>
#include <util.h>
#include <test/test_betchip.h>
#include <stdint.h>
#include <boost/test/unit_test... |
// Copyright (c) 2015-2016, Kai Wolf
//
// 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... |
#ifndef STAN_MATH_PRIM_FUN_INV_SQRT_HPP
#define STAN_MATH_PRIM_FUN_INV_SQRT_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/inv.hpp>
#include <stan/math/prim/fun/sqrt.hpp>
#include <cmath>
namespace stan {
namespace math {
/**
* Structure to wrap `1 / sqrt... |
// Copyright 2021 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/network_settings/network_settings_service.h"
#include <utility>
#include "chrome/browser/ui/web... |
//
// TokenStream.cpp
// archetype
//
// Created by Derek Jones on 2/16/14.
// Copyright (c) 2014 Derek Jones. All rights reserved.
//
#include <set>
#include <deque>
#include <sstream>
#include <cctype>
#include "TokenStream.hh"
#include "Universe.hh"
#include "Keywords.hh"
using namespace std;
namespace arche... |
// Copyright 2018 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/ui/views/frame/top_controls_slide_controller_chromeos.h"
#include <vector>
#include "base/auto_reset.h"
#include "base/bind.h"
... |
#include "ap_axi_sdata.h"
#include <ap_fixed.h>
#include "ap_int.h"
#include "../../../../common/include/communication.hpp"
#include "hls_stream.h"
void traffic_gen(int pkgWordCount, int expectedTxPkgCnt, hls::stream<ap_uint<512> >& s_data_in)
{
#pragma HLS dataflow
for (int i = 0; i < expectedTxPkgCnt; ++i)
... |
//=================================================================================================================================
// Joe Schutte
//=================================================================================================================================
#include "SystemLib/JsAssert.h"
#if All... |
//===---- Error.cpp - ---*- C++ -*-===//
//
// Created by zeta on 17-8-1.
//
// This file is distributed under the GPLv3 Open Source
// License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
//
//
//
//
//===---------------------------------... |
#include "cg3/common/transformation_group.hpp"
transformation_group::transformation_group()
{
trafo = eye< real_type >(4);
}
transformation_group::transformation_group( mat< real_type >& tr )
{
set_transformation( tr );
}
void transformation_group::set_transformation(const mat< real_type >& T)
{
trafo = T;
... |
#include <QObject>
#include <QtTest>
#include "partidadao.h"
class TestePartidaDAO : public QObject{
Q_OBJECT
private slots:
void initTestCase();
void testePartida();
};
void TestePartidaDAO::initTestCase(){
QSKIP("Not implemented yet");
}
void TestePartidaDAO::testePartida()
{
}
QTEST_APPLESS_MAIN(Tes... |
/*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************/
#include "taichi/backends/m... |
/*
* Sux: Succinct data structures
*
* Copyright (C) 2019-2020 Emmanuel Esposito and Sebastiano Vigna
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 3 of the L... |
// Copyright (c) 2011-2016 The LipCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "peertablemodel.h"
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "validation.h"... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 abo... |
/*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@precisions normal z -> c d s
@author Mark Gates
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#includ... |
#pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function XpBoostRow.Xp... |
/**
* @file PortSetupDialog.cpp
* @version 1.0
* @date 2017年07月08日
* @author C_Are
* @copyright Leju
*
* @brief 端口设置窗口,PortSetupDialog类的cpp文件
* @details 可设置连接服务器的tcp端口以及udp的监听端口
*/
#include "PortSetupDialog.h"
#include "ui_PortSetupDialog.h"
/**
* @brief PortSetupDialog类的构造函数... |
#include <iostream>
#include <vector>
#include <numeric>
#include <algorithm>
using namespace std;
class Solution {
public:
int threeSumClosest(vector<int>& nums, int target) {
sort(nums.begin(), nums.end());
int ans, smallestDif;
if (nums.size() <= 3)
return accumulat... |
// calcPSF photoemission structure factor calculation
void calculate_PSF(); |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
/*=============================================================================
Boost.Wave: A Standard compliant C++ preprocessor library
http://www.boost.org/
Copyright (c) 2001-2011 Hartmut Kaiser. Distributed under the Boost
Software License, Version 1.0. (See accompanying file
LICENSE_1_0.txt o... |
// Copyright (c) 1992-2005. Ken Kahn, Animated Programs, All rights reserved.
#if !defined(__TT_DEFS_H)
#include "defs.h"
#endif
#if TT_ENHANCED_DRAG_AND_DROP
#if !defined(__TT_GLOBALS_H)
#include "globals.h"
#endif
#if !defined(__TT_STRINGS_H)
#include "strings.h"
#endif
#if !defined(__TT_MAIN_H)
#include... |
#include "cpyTest.hpp"
#include "cpyTest2.hpp"
#include "cpyTest3.hpp"
#include "ccppyyTTeesstt/cpyTest4.hpp"
std::string getStrCpyTest() {
return CPY_TEST_STR_2 CPY_TEST_STR_3 CPY_TEST_STR_4;
} |
/**
* Copyright (c) <2016> granada <afernandez@cookinapps.io>
*
* This source code is licensed under the MIT license.
*
* 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 r... |
#ifndef GRBFRC_ALGORITHM_HPP
#define GRBFRC_ALGORITHM_HPP
#include <vector>
#include <memory>
#include <gurobi_c++.h>
#include "common.hpp"
namespace grbfrc {
class _Algorithm {
protected:
GRBModel* base_model;
FMILPObj* objective;
std::vector<GRBVar*>* vars;
std::vector<doubl... |
//
// AbsolutePermutation.cpp
// HackerRank
//
// Created by Fabrizio Duroni on 19/08/16.
//
// https://www.hackerrank.com/challenges/absolute-permutation
#include <vector>
#include <iostream>
using namespace std;
int main() {
//t is the number of test cases.
//n is the range from 1 of natural numbe... |
// Copyright (c) 2017-2018 Hartmut Kaiser
// Copyright (c) 2017 Parsa Amini
// Copyright (c) 2019 Bita Hasheminezhad
//
// 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)
#if !defined(PHYLANX_MATRIXOPS_TENSORDOT_... |
/*
* mafThreadTimer.cpp
* mafTimeSpace
*
* Created by Daniele Giunchi on 27/03/09.
* Copyright 2009 SCS-B3C. All rights reserved.
*
* See Licence at: http://tiny.cc/QXJ4D
*
*/
#include "mafThreadedTimer.h"
#include "mafTimer.h"
using namespace mafCore;
using namespace mafTimeSpace;
mafThreadedTimer::ma... |
#include "VertexArray.h"
#include "Renderer.h"
#include "VertexBufferLayout.h"
VertexArray::VertexArray() {
GLCall(glGenVertexArrays(1, &RendererID_));
}
VertexArray::~VertexArray() {
GLCall(glDeleteVertexArrays(1, &RendererID_));
}
// set layout from a buffer and buffer layout
// vertex buffer element contains nec... |
// Copyright (c) 2013-2015 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#ifndef SSVOB_COMPONENTS_PPLATE
#define SSVOB_COMPONENTS_PPLATE
#include "SSVBloodshed/OBCommon.hpp"
#include "SSVBloodshed/OBGame.hpp"
#include "SSVBloodshed/Componen... |
#include "dynet/nodes-arith-sum.h"
#include "dynet/nodes-macros.h"
using namespace std;
namespace dynet {
// ************* Sum *************
#ifndef __CUDACC__
string Sum::as_string(const vector<string>& arg_names) const {
ostringstream s;
s << arg_names[0];
for (unsigned i = 1; i < arg_names.size(); ++i)
... |
#include <algorithm>
#include <map>
#include <utility>
#include <vector>
#include "caffe/mask/bbox_loss_layer_odm.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void BBoxLossODMLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top)... |
/*
Copyright 2016-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 License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
/* test_packet_operations.cpp
Copyright (C) 2020 European Centre for Medium-Range Weather Forecasts
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
witho... |
/************************************************************************
Copyright Notice
Copyright (c) MCNC, Clearinghouse for Networked Information Discovery and
Retrieval, 1994.
Permission to use, copy, modify, distribute, and sell this software and
its documentation, in whole or in part, for any purpose is here... |
#ifdef _MSVC_LANG
#pragma comment(lib,"libPP.lib")
#endif
#include "externals.h"
#include "typedValue.h"
#include "stack.h"
#include "word.h"
#include "context.h"
#include "inner.h"
// Sample code for limited simplified FFI
// See the references for Word 'exec' and get-std-code.
//
// ex:
// > ./ext/extStdCode.so"... |
// Copyright 2017 the V8 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.
#include "src/torque/declaration-visitor.h"
#include "src/torque/ast.h"
#include "src/torque/server-data.h"
#include "src/torque/type-visitor.h"
names... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
/*
* Copyright (c) 2021, 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 applicable law ... |
// slang-ir-byte-address-legalize.cpp
#include "slang-ir-byte-address-legalize.h"
// This file implements an IR pass that translates load/store operations
// on byte-address buffers to be legal for a chosen target.
//
// Currently this pass only applies to the operations generated for
// the generic `*ByteAddressBuffe... |
#ifndef SPROUT_WEED_CONTEXT_PARSE_CONTEXT_TERMINAL_OPERATOR_DEREFERENCE_HPP
#define SPROUT_WEED_CONTEXT_PARSE_CONTEXT_TERMINAL_OPERATOR_DEREFERENCE_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/tuple/tuple.hpp>
#include <sprout/weed/eval_result.hpp>
#include <sprout/weed/limited.hpp>
#includ... |
// Copyright (C) 2021 European Spallation Source, see LICENSE file
//===----------------------------------------------------------------------===//
///
/// \file
///
/// \brief A streamer of efu events (only pixel ids) from hdf5 files
///
//===----------------------------------------------------------------------===//
... |
#include <algorithm>
#include <string>
#include <utility>
#include <vector>
#include <google/protobuf/text_format.h>
#include "gtest/gtest.h"
#include "caffe/common.hpp"
#include "caffe/parallel.hpp"
#include "caffe/proto/caffe.pb.h"
#include "caffe/sgd_solvers.hpp"
#include "caffe/util/io.hpp"
#include "caffe/test... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
/*
* Copyright 2011 Google 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... |
//===- llvm/unittest/CodeGen/AArch64SelectionDAGTest.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
//
//===--------------------... |
#pragma once
// math_functions.hpp: definition of fixed-point mathematical functions
//
// Copyright (C) 2017-2020 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#if defined(__clang__)
/* Clang/LLVM. ------------------------... |
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
* Modifications copyright (c) 2020 Computing Systems Group
*
* 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:... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
/**
* @file denominations_functions.cpp
*
* @brief Denomination functions for the Zerocoin library.
*
* @copyright Copyright 2017 PIVX Developers
* @license This project is released under the MIT license.
**/
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2018 The Trpc Core develo... |
// Copyright (c) 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 "net/third_party/quiche/src/quic/core/crypto/aes_128_gcm_12_decrypter.h"
#include "third_party/boringssl/src/include/openssl/aead.h"
#includ... |
// Copyright (c) 2021-2021, The GNTL Project
// Copyright (c) 2014-2018, 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 ... |
/**
* Copyright (C) 2016-2020 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2019 The Deepcoin 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/deepcoin-config.h>
#endif
#in... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "addresstablemodel.h"
... |
#include <iostream>
#include <vector>
using namespace std;
// max_val is power of two
unsigned long ReverseBits(unsigned long val, unsigned long max_val) {
int num_bits = -1;
unsigned long new_val = 0;
unsigned long mask_lsb = 1;
unsigned long mask_msb = 1;
unsigned long tmp1 = 0;
unsigned long... |
/**
* \file Math.cpp
* \brief Implementation for GeographicLib::Math class
*
* Copyright (c) Charles Karney (2015-2019) <charles@karney.com> and licensed
* under the MIT/X11 License. For more information, see
* https://geographiclib.sourceforge.io/
***************************************************************... |
#include "pch.hxx" // pch
#pragma hdrstop
#include "resource.h"
#include "pgTmeOut.h"
CAccessTimeOutPg::CAccessTimeOutPg(
LPPROPSHEETPAGE ppsp
) : WizardPage(ppsp, IDS_WIZACCESSTIMEOUTTITLE, IDS_WIZACCESSTIMEOUTSUBTITLE)
{
m_dwPageId = IDD_WIZACCESSTIMEOUT;
ppsp->pszTemplate = MAKEINTRESOURCE(m_dwPageId);
}
CAc... |
#include "program.h"
#include "context.h"
#include "exception.h"
using namespace ra;
RaProgram::RaProgram(RaContext const& optix_context,
std::string const& source, Source source_type, std::string const& entry_point):
RaContractWithRaContext{ optix_context }
{
setStringName(entry_point.c_str());
RTpr... |
#define CPU_ONLY 1
#include "tracker_trainer.h"
#include "caffe/caffe.hpp"
#include "network/regressor.h"
// Number of images in each batch.
const int kBatchSize = 50;
// Number of examples that we generate (by applying synthetic transformations)
// to each image.
const int kGeneratedExamplesPerImage = 10;
Tracker... |
// 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/http/http_network_transaction.h"
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "b... |
#include "direct_mesh_instance.h"
#include "profiling.h"
#include <scene/resources/world.h>
DirectMeshInstance::DirectMeshInstance() {
}
DirectMeshInstance::~DirectMeshInstance() {
destroy();
}
bool DirectMeshInstance::is_valid() const {
return _mesh_instance.is_valid();
}
void DirectMeshInstance::create() {
ERR... |
// Copyright Mikolaj Radwan 2018
// Distributed under the MIT license (See accompanying file LICENSE)
//
// This is Louis Dionne's Dyno library adapted to work on Visual Studio 2017 and
// without Boost, modified to my taste. All credit for the design and delivery goes
// to Louis. His original implementation may be fo... |
#ifndef __HASHMAP_HASHMAP_INLINE_HPP__
#define __HASHMAP_HASHMAP_INLINE_HPP__
#include "HashMap.hpp"
#include <cstddef> // size_t
#include <stdexcept> // std::invalid_argument
#include "HashMapTypes.hpp"
#include "KeyValuePair.hpp"
#include "KeyValuePair_Inline.hpp"
#include "HashMapIterator.hpp"
#include "HashMapIte... |
/*
* This file is part of the Computer Vision Toolkit (cvkit).
*
* Author: Heiko Hirschmueller
*
* Copyright (c) 2014, Institute of Robotics and Mechatronics, German Aerospace Center
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted prov... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/emr-containers/model/CreateVirtualClusterRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::EMRContainers::Model;
using namespace Aws::U... |
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2018 The STATERA developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "blocksignature.h"
#include "main.h"
#include "zstaterachain.h"
bool SignBlock... |
#include <vector>
#include <boost/test/unit_test.hpp>
#include <boost/foreach.hpp>
#include "main.h"
#include "wallet.h"
#include "util.h"
using namespace std;
BOOST_AUTO_TEST_SUITE(util_tests)
BOOST_AUTO_TEST_CASE(util_criticalsection)
{
CCriticalSection cs;
do {
LOCK(cs);
break;
... |
class Solution
{
public:
//Function to return k largest elements from an array.
vector<int> kLargest(int arr[], int n, int k)
{
vector<int> vec;
//MinHeap because the largest eles are required at the end
priority_queue<int,vector<int>, greater<int>> minH;
... |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define FML_USED_ON_EMBEDDER
#include <string>
#include "embedder.h"
#include "flutter/fml/file.h"
#include "flutter/fml/make_copyable.h"
#include "flutt... |
// (C) 2013-2014, Sergei Zaychenko, KNURE, Kharkiv, Ukraine
#ifndef _BEVERAGE_HPP_
#define _BEVERAGE_HPP_
/*****************************************************************************/
class Beverage
{
/*-----------------------------------------------------------------*/
public:
/*-------------------------------... |
/*
Copyright (c) 2013 Matthew Stump
This file is part of libcql.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applic... |
#include "LevelManager.hpp"
#include "TextureManager.hpp"
int sample_level[24][30] = {
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1},
{1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,2,2,2,2,0,0,0,1},
{1,0,0,0,0,0,0,0,0,0,0,0,1,... |
//==================================================================================================
/**
Copyright 2016 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)
**/
//====================================... |
#include "turnstile.h"
#include "mainwindow.h"
#include "balancestablemodel.h"
#include "rpc.h"
#include "settings.h"
#include "ui_migration.h"
using json = nlohmann::json;
Turnstile::Turnstile(RPC* _rpc, MainWindow* mainwindow) {
this->rpc = _rpc;
this->mainwindow = mainwindow;
}
void printPlan(QList<Turn... |
/*
* This file is part of the DUDS project. It is subject to the BSD-style
* license terms in the LICENSE file found in the top-level directory of this
* distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
* No part of DUDS, including this file, may be copied, modified, propagated,
* or dis... |
// 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/extensions/sandboxed_unpacker.h"
#include <set>
#include "base/base64.h"
#include "base/bind.h"
#include "base/command_line... |
#include "StdAfx.h"
#include "SShootHelper.h"
#include "Game.h"
#include "WeaponSystem.h"
#include "Projectile.h"
#include "GameRules.h"
#include "EntityUtility/EntityEffects.h"
void SShootHelper::DoLocalExplodeEffect(EntityId ownerID, const char* ammo, const Vec3& firePos, const Vec3& fireDir, float desiredRadius)
... |
#include <stdlib.h>
#include "Application.h"
#include "ModuleRender.h"
#include "Globals.h"
#include "SDL/include/SDL.h"
#pragma comment( lib, "SDL/libx86/SDL2.lib" )
#pragma comment( lib, "SDL/libx86/SDL2main.lib" )
enum main_states
{
MAIN_CREATION,
MAIN_START,
MAIN_UPDATE,
MAIN_FINISH,
MAIN_EXIT
};
Applicatio... |
// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "fs.h"
#include "init.h" // for pwalletMain
#include "rpc/server.h"
#include "rpc/protocol.h"
#include "ui_interface.h"
#... |
/*!
******************************************************************************
*
* \file
*
* \brief RAJA header file containing constructs used to run kernel
* traversals on GPU with CUDA.
*
******************************************************************************
*/
//~~~~~~~~~~~~~~~~~~~~... |
// Copyright (c) 2009-2018 LG Electronics, 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... |
// Author: Christian Holt
// Last Edit: 04.11.14
// Purpose: A basic raytracer. Aspects of this may be overly commented, but this is done as a learning exercise so the comments are equally for
// the authors benefit. Having to put what happens into words furthers our unders... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
//
// impl/thread_pool.hpp
// ~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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 ASIO_IMPL_THREAD_PO... |
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 -Wimplicit-fallthrough %s
int fallthrough(int n) {
switch (n / 10) {
if (n - 1) {
n = 100;
} else if (n - 2) {
n = 101;
} else if (n - 3) {
n = 102;
}
case -1: // no warning here, ignore fall-through from unreac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.