text stringlengths 7 961k |
|---|
/* Copyright 2019 Diligent Graphics 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* THE SOFTWARE IS PROVIDED "AS... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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 ... |
#include "chunk/BitStream.hpp"
#include "base/Endian.hpp"
#include "chunk/XORAppender.hpp"
#include "chunk/XORChunk.hpp"
#include "chunk/XORIterator.hpp"
#include "gtest/gtest.h"
namespace tsdb {
namespace chunk {
class BitStreamTest : public testing::Test {};
TEST_F(BitStreamTest, Test1) {
uint8_t buf[256];
Bi... |
#pragma once
#include "../base_op.hpp"
#include <functional>
#include "../def/RecofrienderConfig.hpp"
namespace lol {
template<typename T>
inline Result<RecofrienderConfig> GetRecofrienderV1Config(T& _client)
{
try {
return ToResult<RecofrienderConfig>(_client.https.request("get", "/recofriender/v1/con... |
// To parse this JSON data, first install
//
// json.hpp https://github.com/nlohmann/json
//
// Then include this file, and then do
//
// helper.hpp data = nlohmann::json::parse(jsonString);
#pragma once
#include "json.hpp"
#include <optional>
#include <stdexcept>
#include <regex>
#include <sstream>
na... |
#ifndef REF_OBJECT_IDS_HPP
#define REF_OBJECT_IDS_HPP
#include "ref_object_id.hpp"
//#include "reflection_dll.hpp"
#include <vector>
namespace wgt
{
class REFLECTION_DLL RefObjectIds
{
public:
/*! Retrieves the current id
*/
const RefObjectId& current() const;
/*! Will retrieve the next id, generating a new one i... |
// 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 "chromeos/components/tether/message_wrapper.h"
#include <sstream>
#include "base/base64url.h"
#include "base/logging.h"
#include "base/macros.h... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2005, 2006, 2007 Eric Ehlers
Copyright (C) 2005 Aurelien Chanudet
Copyright (C) 2005 Plamen Neykov
Copyright (C) 2006, 2007, 2008, 2009, 2012, 2015 Ferdinando Ametrano
Copyright (C) 2007 Marco Bianchetti
Copyright (C... |
// Copyright (c) 2016-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <chainparams.h>
#include <validation.h>
#include <streams.h>
#include <consensus/validatio... |
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int a = 1000;
int b = 5000;
int c = 7000;
if (a > b) {
if (a > c){
cout << "a es el mayor";
}else {
cout << " c es el mayor";
}
}else{
if (b > c){
... |
/*
* File: FilteredHyperedgeCollection.hpp
*
* Author: ABSEHER Michael (abseher@dbai.tuwien.ac.at)
*
* Copyright 2015-2017, Michael Abseher
* E-Mail: <abseher@dbai.tuwien.ac.at>
*
* This file is part of htd.
*
* htd is free software: you can redistribute it and/or modify it under
* the terms of the GNU ... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
#include "ofUtils.h"
#include "ofImage.h"
#include "ofTypes.h"
#include "ofGraphics.h"
#include "ofAppRunner.h"
#include "Poco/String.h"
#include "Poco/UTF8String.h"
#include "Poco/LocalDateTime.h"
#include "Poco/DateTimeFormatter.h"
#include "Poco/URI.h"
#include <cctype> // for toupper
#ifdef TARGET_WIN32
#i... |
// 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 "alert.h"
#include "checkpoints.h"
#include "db.h"
#include "txdb.h"
#inc... |
#include "ReadAlign.h"
#include "SequenceFuns.h"
#include "ErrorWarning.h"
#include "IncludeDefine.h"
# include "BAMfunctions.h"
#include <type_traits>
void ReadAlign::samAttrNM_MD (Transcript const &trOut, uint iEx1, uint iEx2, uint &tagNM, string &tagMD) {
tagNM=0;
tagMD="";
char* R=Read1[trOut.roStr==0... |
#include "DataFormats/Provenance/interface/ParentageRegistry.h"
#include "FWCore/Utilities/interface/thread_safety_macros.h"
namespace edm {
ParentageRegistry* ParentageRegistry::instance() {
CMS_THREAD_SAFE static ParentageRegistry s_reg;
return &s_reg;
}
bool ParentageRegistry::getMapped(key_type cons... |
/*
* 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... |
#include "kinematicControl.h"
#include "gaitHandler.h"
#include "bodyHandler.h"
#include "mathConstants.h"
KinematicControl::KinematicControl(InterpolationHandler& interpolationHandler, GaitHandler& gaitHandler_pst, BodyHandler& bodyHandler_pst) :
m_interpolation(interpolationHandler),
m_gait(gaitHandler_pst),... |
/*
Copyright (c) 2004-2021 The FlameRobin Development Team
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, modi... |
//#Name: Anonta Haque #Problm:
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
#include <cstdlib>
#include <cstdarg>
#include <utility>
#include <bitset>
#include <cctype>
#include <cstdio>
#include <vector>
#include <string>
#include <cmath>
#include <ctime>
#include <... |
#include <iostream>
#include <cmath>
using namespace std;
int main () {
int n;
float r;
float PI = 3.14159265358979323846f;
cin >> n >> r;
float sum = 0;
if (n==1){
sum = 2*PI*r;
printf("%.2f", sum);
return 0;
}
float x1,x2,y1,y2,xfirst,yfirst;
for (int i=0; i<n-1; i++) {
if(i==0) {
cin >> x1 >> y1... |
#include <iostream>
struct Data {
int x;
int y;
int *z_ptr;
};
int main() {
Data d;
int i = 3;
d.x = 1;
d.y = 2;
d.z_ptr = &i;
std::cout << d.x << ", " << d.y << ", " << *d.z_ptr << '\n';
} |
// This file is a part of silhouette (2D Geometry suite)
//
// Copyright 2015 Taylor Fryett
//
// 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-... |
// ------------------------------------------------------------------------------------------------
#include "Misc/Official.hpp"
#include "Base/Vector2.hpp"
#include "Core/Utility.hpp"
#include "Library/IO/Buffer.hpp"
// ------------------------------------------------------------------------------------------------
#i... |
//////////////////////////////////////////////////////////////////////////////
/// 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) 2016-2022 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
// Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Peter Staar (taa@zurich.ibm.com)
//
// This class reads, stores, and writes the do... |
#include "kinematics_eval_drop_ball_init_pos.h"
#include <cmath>
#include "math_utils.h"
namespace kinematics {
// public func.
EvalDropBallInitPos::EvalDropBallInitPos()
{
}
EvalDropBallInitPos::~EvalDropBallInitPos()
{
}
math::Vector3dPair_t EvalDropBallInitPos::operator()(
const math::Vector3d_t &target... |
/*
* TextArea.cpp
*
* Text TextArea
* - Supports vertical and horizontal alignments
* - Call commit() after changing text, fontSize, fontName or any of the other variables (except bounds!).
* - fg variable affects text color (no commit needed)
* - Only support multiline
*/
#include "MuiTextArea.h"
#inclu... |
/**
* @file calloc_wrapper.h
* @brief Defines calloc_wrapper class, which performs RAII for malloc'd pointers.
*
* @copyright Copyright (c) 2019, Microsoft Corp.
*/
#ifndef ADUC_CALLOC_WRAPPER_HPP
#define ADUC_CALLOC_WRAPPER_HPP
#include <cstdlib> // for free
namespace ADUC
{
namespace StringUtils
{
template<cl... |
#pragma once
#include <cstddef> // ptrdiff_t
#include <limits> // numeric_limits
namespace nlohmann
{
namespace detail
{
/*
@brief an iterator for primitive JSON types
This class models an iterator for primitive JSON types (boolean, number,
string). It's only purpose is to allow the iterator/const_iterator classes
... |
#include "muscle.h"
#include "msa.h"
#include <math.h>
// "Standard" NJ distance: the Kimura measure.
// This is defined to be:
//
// log_e(1 - p - p*p/5)
//
// where p is the fraction of residues that differ, i.e.:
//
// p = (1 - fractional_conservation)
//
// This measure is infinite for p = 0.8541 and is consider... |
/*
*
* Copyright 2019 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.
#define _CRT_SECURE_NO_WARNINGS
#include <limits>
#include "base/command_line.h"
#include "base/debug/alias.h"
#include "base/eintr_wrapper.h"
#incl... |
/*
* Copyright (C) 2010-2016 Ole André Vadla Ravnås <oleavr@nowsecure.com>
*
* Licence: wxWindows Library Licence, Version 3.1
*/
#include "gumv8interceptor.h"
#include "gumv8macros.h"
#include "gumv8scope.h"
#include <errno.h>
#define GUMJS_MODULE_NAME Interceptor
#define GUM_V8_INVOCATION_LISTENER_CAST(obj) ... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
//=======================================================================
// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
// Authors: Andrew Lumsdaine, Lie-Quan Lee, Jeremy G. Siek
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI 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 Licen... |
/**********************************************************************
Audacity: A Digital Audio Editor
AudioIO.cpp
Copyright 2000-2004:
Dominic Mazzoni
Joshua Haberman
Markus Meyer
Matt Brubeck
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Gen... |
#include "Crate.h"
#include <Engine/LogicCore/Manager/LogicManagerView.h>
#include <Engine/LogicCore/Components/RigidBodyComponent/BoxRigidBodyComponent/BoxRigidBodyComponent.h>
#include <Engine/LogicCore/Components/Manager/ComponentsManager.h>
#include <Engine/LogicCore/Components/MeshComponent/MeshComponent.h>
Crate... |
/*
* 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... |
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Debug
#include <Debug.h>
#endif
#ifndef INCLUDED_Option
#include <Option.h>
#endif
#ifndef INCLUDED_RightKeybind
#include <RightKeybind.h>
#endif
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_flixel_FlxG
#include <flixel/FlxG.h>
#endif
#ifn... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The AXEL Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mi... |
#include "uav.h"
#include "topbar_rssi.h"
#include "resources-gen.h"
#include "ui_color.h"
#include "gfx.h"
TopBarRSSI TopBarRSSI::instance;
TopBarRSSI::TopBarRSSI() {
//
}
void TopBarRSSI::init() {
update();
}
void TopBarRSSI::clear() {
}
void TopBarRSSI::update() {
const unsigned MaxBars = 5;
const unsig... |
/*
Copyright (C) 2004 Caltech
Written by Lexing Ying
*/
#include "fdct_wrapping.hpp"
#include "fdct_wrapping_inline.hpp"
FDCT_WRAPPING_NS_BEGIN_NAMESPACE
int fdct_wrapping_sepangle(double XL1, double XL2, int nbangle, CpxOffMat& Xhgh, vector<CpxNumMat>& csc);
int fdct_wrapping_wavelet(CpxOffMat& Xhgh, vector<C... |
#ifndef PROCESSFORECASTER_HH
#define PROCESSFORECASTER_HH
#include "process.hh"
#include "sproutmath.pb.h"
#include <vector>
class ProcessForecastTick
{
private:
std::vector< std::vector< double > > _count_probability;
public:
ProcessForecastTick( const double tick_time, const Process & example, const unsigned ... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <stdio.h>
#include <string.h>
#include <list>
#include <iterator>
#include "antlr4-runtime.h"
#include "antlr4-generated/ifccLexer.h"
#include "antlr4-generated/ifccParser.h"
#include "antlr4-generated/ifccBaseVisitor.h"
#include "vi... |
////////////////////////////////////////////////////////////////////////////////
//
// Author: Sergio Alapont Granero (seralgrainf@gmail.com)
// Date: 2019/04/16
// File: GfInput.cpp
//
// Copyright (c) 2018 (See README.md)
//
////////////////////////////////////////////////////////////////////////////////
// Include... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the library KASKADE 7 */
/* see http://www.zib.de/projects/kaskade7-finite-element-toolbox */
... |
#ifndef ELEMENT_LISTITEM_ARTIST_HPP
#define ELEMENT_LISTITEM_ARTIST_HPP
#include "ui/element/listitem/Item.hpp"
namespace CustomElm::ListItem {
// An Artist appears in the ArtistList overlay
class Artist : public Item {
private:
// Elements
Aether::Image * image;
Ae... |
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function QuestInfo_Widget.QuestInfo_W... |
/*
* Copyright (C) 2014 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 "test.hpp"
#include <nytl/matOps.hpp>
#include <nytl/mat.hpp>
#include <nytl/approx.hpp>
#include <nytl/approxVec.hpp>
#include <nytl/vecOps.hpp>
#include <nytl/vec.hpp>
#include <array>
#include <type_traits>
#include <limits>
#include <cfloat>
#include <iostream>
#include <stack>
#include <tuple>
TEST(bas... |
//**********************************************************
// C++ Class Name : NFmiUndoableMultiLevelMask
// ---------------------------------------------------------
// Filetype: (SOURCE)
// Filepath: d:/projekti/GDPro/GDTemp/NFmiUndoableMultiLevelMask.cpp
//
//
// GDPro Properties
// -------------------------------... |
/**
* HadoopStopResponse.cpp
*
* This file was auto-generated from WSDL
* by the Apache Axis2/C version: SNAPSHOT Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
*/
#include "AviaryHadoop_HadoopStopResponse.h"
#ifdef __GNUC__
# if... |
/*
* Copyright (c) 2016, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <pr... |
#include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::plugins("cpp11")]]
using namespace Rcpp;
// matrix exponentials
// [[Rcpp::export]]
arma::mat matexp(arma::mat X, int n)
{
if (n == 0)
{
return arma::eye(X.n_cols, X.n_rows);
} else if (n == 1)
{
return X;
} else
{
retu... |
#include <Columns/ColumnString.h>
#include <Common/assert_cast.h>
#include <DataTypes/DataTypeString.h>
#include <Functions/FunctionFactory.h>
#include <Functions/FunctionHelpers.h>
#include <Functions/IFunctionImpl.h>
#include <ext/range.h>
namespace DB
{
namespace ErrorCodes
{
extern const int ILLEGAL_COLUMN;
... |
// Copyright (c) 2014-2017 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
/// \file parallel/algorithms/uninitialized_value_construct.hpp
#pragma once
#i... |
#include "StdAfx.h"
#include "UITaskWnd.h"
#include "UIMapWnd.h"
#include "Common/object_broker.h"
#include "UIXmlInit.h"
#include "xrUICore/Static/UIStatic.h"
#include "xrUICore/Buttons/UI3tButton.h"
#include "xrUICore/Windows/UIFrameLineWnd.h"
#include "UISecondTaskWnd.h"
#include "UIMapLegend.h"
#include "UIHelper.h... |
/*
* Copyright (c) 2021. Huawei Technologies Co., Ltd. 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
*
* Unl... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2005-2006 Dan Marsden
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)
=... |
/* file: stochastic_pooling2d_backward_input.cpp */
/*******************************************************************************
* Copyright 2014-2018 Intel Corporation
* All Rights Reserved.
*
* If this software was obtained under the Intel Simplified Software License,
* the following terms apply:
*
* The sour... |
/**
* Created by Xiaozhong on 2020/12/21.
* Copyright (c) 2020/12/21 Xiaozhong. All rights reserved.
*/
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int binaryGap(int n) {
int ans = 0, count = 0, onenum = 0;
while (n) {
count++;
if ... |
/*
* Copyright (c) 2021, PADL Software Pty Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted (subject to the limitations in the
* disclaimer below) provided that the following conditions are met:
*
* 1. Redistributions of source code... |
// dear imgui, v1.77 WIP
// (demo code)
// Help:
// - Read FAQ at http://dearimgui.org/faq
// - Newcomers, read 'Programmer guide' in imgui.cpp for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
// Read imgu... |
#include <stdio.h>
#include <opencv2/video/background_segm.hpp>
#include "opencv2/opencv.hpp"
#include "physics.h"
using namespace cv;
using namespace std;
const char *win = "Flying Pancake";
static bool reverseMirror = true;
void game_over(int, int, Mat *);
int main(int argc, char **argv)
{
if (argc > 2) {
... |
/*
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "ConnectionCache.h"
#include <LibCore/EventLoop.h>
namespace RequestServer::ConnectionCache {
HashMap<ConnectionKey, NonnullOwnPtr<NonnullOwnPtrVector<Connection<Core::TCPSocket>>>> g_tcp_conne... |
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
//
// Copyright (c) 2011 The LevelDB Authors. All r... |
// 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 "chrome/browser/safe_browsing/incident_reporting/tracked_preference_incident.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/common/safe... |
/**
* MIT License
*
* Copyright (c) 2018 Matt Chiasson
*
* 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, m... |
//---------------------------------------------------------------------------//
// Copyright (c) 2020-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
// Copyright (c) 2020-2021 Ilias Khairullin <ilias@nil.foundation>
//
// MIT License
//
// Permission is here... |
// (C) Copyright Gert-Jan de Vos 2012.
// 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)
// See http://boosttestui.wordpress.com/ for the boosttestui home page.
#include "stdafx.h"
#include "TestRunner.h"
names... |
// Copyright (c) 2015 Daniel Bourgeois
//
// SPDX-License-Identifier: BSL-1.0
// 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)
/// \file parallel/algorithms/remove_copy.hpp
#pragma once
#include <hpx/config.hp... |
#include "handlers.h"
#include "exceptions.h"
namespace handlers {
std::string simple_success_example() {
return "Successful request";
}
std::string simple_bad_request_example() {
throw RequestException(SimpleWeb::StatusCode::client_error_bad_request, "Bad request, please fix your params."... |
// RUN: %clangxx %s -o %t1.out -lsycl
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t2.out
// RUN: env SYCL_DEVICE_TYPE=HOST %t2.out
// RUN: %CPU_RUN_PLACEHOLDER %t2.out
// RUN: %GPU_RUN_PLACEHOLDER %t2.out
// RUN: %ACC_RUN_PLACEHOLDER %t2.out
// TODO: cuda_piEn... |
#ifndef TAFLA_WODY_HH
#define TAFLA_WODY_HH
#include "/home/rafaeldali/Pulpit/Dane do programów/droniarz/inc/Plaszczyzna.hh"
class Tafla : public Plaszczyzna
{
public:
Tafla(){};
int rysuj(shared_ptr<Draw3DAPI> api) override;
};
#endif |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2018-2019 The PIVX developers
// Copyright (c) 2018-2019 The HappyLeaf developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The HLF developers
// Distributed under the MIT/X11 software license, see the accompanying
// fil... |
// Copyright 2016, National University of Defense Technology
// Authors: Xuhao Chen <cxh@illinois.edu>
#include <vector>
#include <string.h>
#include "common.h"
#include "bc.h"
#include <timer.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <CL/opencl.h>
#define BC_VARIANT "ocl_base"
cl_platform_i... |
#include "mocks.h"
using testing::_;
using testing::ReturnArg;
namespace Runtime {
MockSnapshot::MockSnapshot() { ON_CALL(*this, getInteger(_, _)).WillByDefault(ReturnArg<1>()); }
MockSnapshot::~MockSnapshot() {}
MockLoader::MockLoader() { ON_CALL(*this, snapshot()).WillByDefault(ReturnRef(snapshot_)); }
MockLoad... |
// Copyright 1996-2021 Cyberbotics 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 or agr... |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a ... |
#include <mutex>
#include <numeric>
#include <sstream>
#include "../Config.h"
#include "../Interfaces.h"
#include "../Memory.h"
#include "../Netvars.h"
#include "Misc.h"
#include "../SDK/ConVar.h"
#include "../SDK/Surface.h"
#include "../SDK/GlobalVars.h"
#include "../SDK/NetworkChannel.h"
#include "../SDK/WeaponData... |
//
// Created by Selek, Abdullah on 29.05.17.
//
#include "../include/queuecxx.h" |
#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
#include <cstdlib>
#include "reader.h"
using namespace std;
int main( int argc, char *argv[] )
{
ifstream ifs("day05.part1.input",ifstream::in);
auto line... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... |
/**
* \file dcs/math/functional/approximately_less_equal.hpp
*
* \brief Functor for checking if two numbers are approximately less or
* equal (with respect to floating-point comparison).
*
* \author Marco Guazzone (marco.guazzone@gmail.com)
*
* <hr/>
*
* Copyright 2014 Marco Guazzone (marco.guazzone@gmail.co... |
//===----------------------------------------------------------------------===//
//
// 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 company="Aspose" file="GetFootnotesRequest.cpp">
* Copyright (c) 2020 Aspose.Words for Cloud
* </copyright>
* <summary>
* Permission is hereby granted, free of charge, to any person ... |
#ifndef AV_SPEECH_IN_NOISE_PRESENTATION_INCLUDE_PRESENTATION_PRESENTER_HPP_
#define AV_SPEECH_IN_NOISE_PRESENTATION_INCLUDE_PRESENTATION_PRESENTER_HPP_
#include <av-speech-in-noise/Interface.hpp>
namespace av_speech_in_noise {
class Presenter {
public:
AV_SPEECH_IN_NOISE_INTERFACE_SPECIAL_MEMBER_FUNCTIONS(Prese... |
//
// BiasTransform.cpp
// MNNConverter
//
// Created by MNN on 2019/12/13.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "CaffeExtraManager.hpp"
#include "MNN_generated.h"
#include <vector>
namespace MNN {
namespace Express {
class BiasTransform : public CaffeExtraManager::Transform {
public:
... |
#include "sha2cryptLibCpp.h"
std::string sha256_crypt_cpp(std::string const& key, std::string const& salt) {
return std::string(sha256_crypt_s(key.c_str(), salt.c_str()));
}
std::string sha512_crypt_cpp(std::string const& key, std::string const& salt) {
return std::string(sha512_crypt_s(key.c_str(), salt.c_str()));... |
//<snippet1>
#using <System.dll>
using namespace System;
using namespace System::Collections;
using namespace System::Collections::Specialized;
using namespace System::Diagnostics;
//++++++++//++++++++//++++++++//++++++++//++++++++//++++++++//++++++++//++++++++
// PERF_COUNTER_COUNTER
// Description - This ... |
/**
* Content
* Precomputation of UBODT (Optimized)
*
* @author: Can Yang
* @version: 2018.03.09
*/
#include "../src/network_graph_opt_omp.hpp"
#include "config.hpp"
#include <iostream>
#include <ctime>
using namespace std;
using namespace MM;
int main(int argc, char* argv[])
{
std::cout<<"------------ ... |
#include <Eigen/Dense>
#include <Eigen/Geometry>
#include <cmath>
#include <memory>
#include <robot_design/graph.h>
#include <robot_design/internal/dot_parsing.h>
#include <robot_design/internal/dot_rules.h>
#include <robot_design/robot.h>
#include <robot_design/types.h>
#include <sstream>
#include <stdexcept>
#include... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include "window.h"
int main()
{
GLFW::Window window(1280, 720, "Momentum 2D");
while (!window.ShouldClose())
window.Update();
return 0;
} |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/screen_capture_notification_ui.h"
#include <gtk/gtk.h>
#include <math.h>
#include "base/compiler_specific.h"
#include "base/... |
/*
* particle_filter.cpp
* Author: junyoung kim / lgkimjy
*/
#include <robot_localization_pf_landmarks/particle_filter.h>
/* declare a random engine to be used across multiple and various method calls */
static default_random_engine gen;
float ParticleFilter::getRandom(float low, float high)
{
random_devi... |
#include "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "bitcoinrpc.h"
#include "guiutil.h"
#include <QTime>
#include <QTimer>
#include <QThread>
#include <QTextEdit>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <openssl/crypto.h>
// TODO: make it possible to filt... |
#include <RadonFramework/precompiled.hpp>
#include <RadonFramework/Radon.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <libSpec.h>
#include <math.h>
#include <string.h>
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
using namespace RadonFramework;
using namespace Radon... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.