text stringlengths 7 961k |
|---|
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <opencv/highgui.h> // GB this include is needed with opencv 3.0 (for CV_CAP_PROP_XXX)
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cstdio>
#include <cstdlib>
using namespace cv;
using namespace std;
Mat src; ... |
/********************************************************
File: Image.hh
Abstract: A general 2 dimensional image template.
Created: 06/02/1998
Author: Chris L. Wyatt
Last Revision ($Revision: 1.1.1.1 $)
by $Author: hongli $
on $Date: 2002/12/06 21:49:33 $
*********************************************************/
... |
// Copyright (c) 2014-2019, The Monero Project
// Copyright (c) 2018, The Loki Project
// Copyright (c) 2018, The Worktips 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... |
#include "WindowSystem.h"
#include "Config.h"
#include "Game.h"
#include "GuiComponent.h"
#include "WindowComponent.h"
namespace sand {
//----------------------------------------------------------------------------------------------------
bool WindowSystem::StartUp()
{
if (SDL_Init(SDL_INIT_VIDEO) == SDL_ERROR) ... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include "bistro/bistro/utils/SymbolTable.h"
using namespace std;
using namespace facebook::bistro;
TEST... |
//
// Created by bs674 on 5/22/19.
//
#include "PairSequenceAlginmentResult.h"
PairSequenceAlginmentResult::PairSequenceAlginmentResult(const std::string &refName, const std::string &altName,
const std::string &refSeq, const std::string &altSeq)
: refNa... |
#include "PN532_SPI.h"
#include "PN532_debug.h"
#include "Arduino.h"
#define STATUS_READ 2
#define DATA_WRITE 1
#define DATA_READ 3
PN532_SPI::PN532_SPI(SPIClass &spi, uint8_t ss)
{
command = 0;
_spi = &spi;
_ss = ss;
}
void PN532_SPI::begin()
{
pinMode(_ss, OUTPUT);
_spi->setClo... |
// Copyright (C) 2011-2020 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_MEMORY_ALLOCATOR_HPP
#define INCLUDED_SROOK_MEMORY_ALLOCATOR_HPP
#include <srook/memory/allocator/allocated_ptr.hpp>
#include <srook/memory/allocator/new_allocator.hpp>
#include <srook/memory/allocator/malloc_allocator.hpp>
#end... |
// Copyright (c) 2014-2016 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2019 The Blastx Developers
// Copyright (c) 2019 The Blastx developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.... |
#include <EditorPluginAssetsPCH.h>
#include <Core/Assets/AssetFileHeader.h>
#include <EditorFramework/Assets/AssetCurator.h>
#include <EditorFramework/EditorApp/EditorApp.moc.h>
#include <EditorPluginAssets/MaterialAsset/MaterialAssetManager.h>
#include <EditorPluginAssets/MaterialAsset/ShaderTypeRegistry.h>
#include ... |
#include <iostream>
#include <time.h>
#include <QFile>
#include <QPainter>
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
// Save images
#include "lodepng.h"
#include "rendering/Sampler.hpp"
using namespace std;
Sampler::Sampler(QWidget *parent, ... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
/* Copyright (c) 2018, NVIDIA CORPORATION. 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 condi... |
/**********************************************************************
* File: tface.cpp (Formerly tface.c)
* Description: C side of the Tess/tessedit C/C++ interface.
* Author: Ray Smith
*
* (C) Copyright 1992, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
... |
/*
* Linked List implentation in C++
*/
#include <iostream>
using namespace std;
struct node {
int data;
node *next;
};
class Linked_list {
private:
node *head, *tail;
unsigned int size;
public:
Linked_list() {
head = NULL;
tail = NULL;
... |
#include <bits/stdc++.h>
using namespace std;
int binaryToDecimal(int n){
int temp = 1,ans = 0,lastdigit;
while(n > 0){
lastdigit = n % 10;
ans = ans + temp*lastdigit;
temp = temp*2;
n= n/10;
}
return ans;
}
int octalToDecimal(int n){
int sum = 0,temp = 1,lastdigit;... |
#include <examples/zurg/slave/Heartbeat.h>
#include <examples/zurg/slave/SlaveConfig.h>
#include <examples/zurg/proto/master.pb.h>
#include <muduo/protorpc2/rpc2.pb.h>
#include <muduo/base/FileUtil.h>
#include <muduo/base/Logging.h>
#include <muduo/base/ProcessInfo.h>
#include <muduo/base/Timestamp.h>
#include <mudu... |
/*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... |
/*
Image Blurring with Threads
Víctor Rendón Suárez
A01022462
*/
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <chrono>
using namespace std;
#define SIZE 5
// Image blurring function, receives (Opencv mat, output)
void blur_image(const cv::Mat& input, cv::M... |
#ifndef SHARED_ENVIRONMENTMAPPING_ENVSTATE_HPP
#define SHARED_ENVIRONMENTMAPPING_ENVSTATE_HPP
/****************************************************************************************************************************************************
* Copyright (c) 2015 Freescale Semiconductor, Inc.
* All rights reserved.
*
... |
/*
* This file is part of the CitizenFX project - http://citizen.re/
*
* See LICENSE and MENTIONS in the root of the source tree for information
* regarding licensing.
*/
#include "StdInc.h"
#include "ResourceUI.h"
#include <include/cef_origin_whitelist.h>
#include <NUISchemeHandlerFactory.h>
#include <Resource... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "tests/Unit/TestingFramework.hpp"
#include <array>
#include <cmath>
#include <cstddef>
#include <string>
#include "DataStructures/DataBox/DataBox.hpp"
#include "DataStructures/DataBox/DataBoxTag.hpp"
#include "DataStructures/DataVector.hp... |
#ifndef MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGICAL_AND_HPP
#define MIGRAPHX_GUARD_RTGLIB_DEVICE_LOGICAL_AND_HPP
#include <migraphx/argument.hpp>
#include <migraphx/config.hpp>
#include <hip/hip_runtime_api.h>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
namespace gpu {
namespace device {
void logical_and(hip... |
#include "kernel.hpp"
#include "../mossc/cstdio"
#include "disk/ata/controller.hpp"
#include "disk/disk.hpp"
#include "graphics/gui/manager.hpp"
#include "graphics/vesa/controller.hpp"
#include "graphics/vesa/framebuffer.hpp"
#include "graphics/vga/terminal.hpp"
#include "graphics/color.hpp"
#include "input/devices... |
#include <ripple/protocol/STLedgerEntry.h>
#include <ripple/basics/contract.h>
#include <ripple/basics/Log.h>
#include <ripple/basics/safe_cast.h>
#include <ripple/json/to_string.h>
#include <ripple/protocol/Indexes.h>
#include <ripple/protocol/jss.h>
#include <boost/format.hpp>
namespace ripple {
STLedgerEntry::STLe... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2014, Willow Garage, Inc.
* Copyright (c) 2014-2015, Open Source Robotics Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following c... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
/**
* @file tst_Ex_9_22.cpp
*
* @brief Test the functionality of the Time class to represent the time as the number
* of seconds after midnight.
*
* @author Matt Randazzo
*/
#include <Ex_9_22.h>
#include <gtest/gtest.h>
/**
* @brief Set zero seconds since midnight
*/
TEST(Constructor, ZeroSeconds) {
... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
Q... |
//problema3.15 "dia de la semana"
#include<iostream>
using namespace std;
int main(){
int dia;
cout<<"introdusca un numero entre 1-10: ";
cin>>dia;
switch (dia){
case 1 :cout<<"es el dia lunes"<<endl;break;
case 2 :cout<<"es el dia martes"<<endl;break;
case 3 :cout<<"es el dia miercoles"<<endl;break;
case ... |
/***************************************************************************
# Copyright (c) 2015-21, NVIDIA CORPORATION. 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... |
/*
题目满足不共线所有点,输入点坐标都是浮点数
最小矩形覆盖一定唯一,注意题目要求输出点坐标的顺序
定理:最小矩形覆盖的一条边一定和凸包轮廓的一条边重合
旋转卡壳O(N), 凸包O(NlogN) 总复杂度O(NlogN)
*/
#include <bits/stdc++.h>
using namespace std;
#define x first
#define y second
typedef pair<double, double> pdd;
const int N = 50010; //开总点数即可
const double eps = 1e-12, INF = 1e20;
const double PI =... |
#pragma once
#include <arbor/export.hpp>
typedef unsigned long long tick_type;
// Assuming POSIX monotonic clock is available; add
// feature test if we need to fall back to generic or
// other implementation.
namespace arb {
namespace profile {
ARB_ARBOR_API tick_type posix_clock_gettime_monotonic_ns();
struct p... |
#include <vx_ext_rpp.h>
#include <VX/vx_compatibility.h>
#include "node_warp_affine.h"
#include "exception.h"
WarpAffineNode::WarpAffineNode(const std::vector<Image*>& inputs, const std::vector<Image*>& outputs):
Node(inputs, outputs),
_x0(COEFFICIENT_X0_OVX_PARAM_IDX, COEFFICIENT_RANGE_1[0], COEFFICI... |
/*
GRT MIT License
Copyright (c) <2012> <Nicholas Gillian, Media Lab, MIT>
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 u... |
/*
Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
2004, 2005 Rob Buis <buis@kde.org>
This file is part of the KDE project
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as p... |
//
// detail/pop_options.hpp
// ~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2018 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)
//
// No header guard
#if... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... |
// 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 "ash/common/wm/overview/window_selector_controller.h"
#include <vector>
#include "ash/common/session/session_state_delegate.h"
#include "ash/co... |
// 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 "splashscreen.h"
#incl... |
// Copyright (c) 2014-2020, 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 the above copyright notice, this list o... |
// (C) Copyright John Maddock 2007.
// 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)
//
// This file is machine generated, do not edit by hand
// Polynomial evaluation using s... |
/*
* 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
... |
/**
* Root object in the case hierarchy; owns all of the managers whose job
* is to run the currently-loaded case.
*
* @author GabuEx, dawnmew
* @since 1.0
*
* Licensed under the MIT License.
*
* Copyright (c) 2014 Equestrian Dreamers
*
* Permission is hereby granted, free of charge, to any person obtaining ... |
//
// Copyright 2012 Francisco Jerez
//
// 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... |
/*
-----------------------------------------------------------------------------
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 ... |
/*
* This file is part of hipSYCL, a SYCL implementation based on CUDA/HIP
*
* Copyright (c) 2018 Aksel Alpay
* 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 sou... |
// Copyright (c) 2016 Till Kolditz
//
// 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... |
/////////////////////////////////
/// @file MovUT.cpp
///
/// @brief Unit Test for MOV Instruction
///
/// @author Luke Karavolis
/////////////////////////////////
// SYSTEM INCLUDES
// (None)
// C PROJECT INCLUDES
// (None)
// C++ PROJECT INCLUDES
#include <catch2/catch.hpp>
#include "InstructionBase.hpp"
#include ... |
/* $Id: display_vrdp.cpp 69500 2017-10-28 15:14:05Z vboxsync $ */
/** @file
* Presenter API: CrFbDisplayVrdp class implementation -- display content over VRDP.
*/
/*
* Copyright (C) 2014-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtual... |
/********************************************************************************
* This file is part of CinoLib *
* Copyright(C) 2016: Marco Livesu *
* ... |
#include <QtWidgets>
#include "dragwidget.h"
DragWidget::DragWidget(DragWidgetType dragType, QWidget *parent)
: QLabel(parent)
{
setMinimumSize(32, 32);
setFrameStyle(QFrame::Sunken | QFrame::StyledPanel);
// setAcceptDrops(true);
QString imgPath;
switch (dragType) {
case DragWidgetType::S... |
// This file is part of Notepad++ project
// Copyright (C)2017 Don HO <don.h@free.fr>
//
// 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 the License, or (at your option... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
#include <gtest/gtest.h>
#include "scipp/core/element/comparison.h"
#include "scipp/units/unit.h"
#include "fix_typed_test_suite_warnings.h"
#include "test_macros.h"
using namespace scipp;
using namespace sci... |
#include "core/precomp.h"
#include "core/ecs/entity.hpp"
#include "core/ecs/world.hpp"
#include "core/ecs/component.hpp"
namespace Khan
{
Entity::Entity(entt::entity handle, World* world)
: m_EntityHandle(handle)
, m_World(world)
{
}
void Entity::AddChild(Entity* child)
{
m_Children.insert(child);
child-... |
#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
#ifndef ONLINE_JUDGE
freopen("files/input.txt", "r", stdin);
freopen("files/output.txt", "w", stdout);
#endif
int n, k;
cin >> n >> k;
string s; cin >> s;
map<char, int> freq;
for (int... |
/***********************************************************************
created: 20th February 2010
author: Lukas E Meindl
purpose: Implementation of ColourPickerControls base class
*************************************************************************/
/**************************************... |
// Copyright 2020 The Tint Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... |
/*****************************************************************************
* McPAT/CACTI
* SOFTWARE LICENSE AGREEMENT
* Copyright 2012 Hewlett-Packard Development Company, L.P.
* Copyright (c) 2010-2013 Advanced Micro Devices, Inc.
* ... |
// Copyright (c) 2017-2019 The PIVX developers
// Copyright (c) 2019 The CryptoDev developers
// Copyright (c) 2019 The peony developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "libzerocoin/Denominations.h"
#inc... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE415_Double_Free__new_delete_wchar_t_66b.cpp
Label Definition File: CWE415_Double_Free__new_delete.label.xml
Template File: sources-sinks-66b.tmpl.cpp
*/
/*
* @description
* CWE: 415 Double Free
* BadSource: Allocate data using new and Deallocae data using delete
* G... |
/*----------------------------------------------------------------------
----------------------------------------------------------------------*/
#include "EmbeddedRootSource.h"
#include "InputFile.h"
#include "RunHelper.h"
#include "RootEmbeddedFileSequence.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescr... |
// job.cpp : Implementation of DLL Exports.
// You will need the NT SUR Beta 2 SDK or VC 4.2 in order to build this
// project. This is because you will need MIDL 3.00.15 or higher and new
// headers and libs. If you have VC 4.2 installed, then everything should
// already be configured correctly.
// Note: Proxy/S... |
#pragma once
#include <temperaturesensor.h>
#include <ventilator.h>
#include <demo.h>
#include <math.h>
#include <algorithm>
/** very simple oven simulation
* airflow == temperature
*/
#define NUMBERS_SIZE 10000
class Oven {
virtual void handle(const uint32_t millis) = 0;
virtual void lidOpen(bool lo) ... |
#include <catch/catch.hpp>
#include "utils.h"
#include <tcp/EchoServer.h>
#include <tcp/TCPClient.h>
using namespace tcp;
namespace tests {
TEST_CASE("Test send and receive on echo server", "[tcp]") {
cleanSystem();
// Use different ports to make sure there's no conflicts
int port;
... |
#pragma once
#include <type_traits>
namespace Ubpa::UECS {
class Entity;
class EntityLocator;
class World;
}
namespace Ubpa::UECS {
template<typename Cmpt> struct RemoveTag : IType<Cmpt> {}; // default
template<typename Cmpt> struct RemoveTag<const Cmpt*> : IType<Cmpt> {};
template<typename Cmpt> struct Remove... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
#include <sstream>
#include "Tools/Exception/exception.hpp"
#include "Factory/Module/Puncturer/Puncturer.hpp"
#include "Codec_RSC.hpp"
using namespace aff3ct;
using namespace aff3ct::module;
template <typename B, typename Q>
Codec_RSC<B,Q>
::Codec_RSC(const factory::Encoder_RSC::parameters &enc_params,
... |
// Generated code. Do not edit
// Create the model
Model createTestModel() {
const std::vector<Operand> operands = {
{
.type = OperandType::TENSOR_FLOAT32,
.dimensions = {1, 2, 2, 3},
.numberOfConsumers = 1,
.scale = 0.0f,
.zeroPoint = 0,
... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: OVR.OpenVR.IVRChaperone
#include "O... |
// This file is part of KWIVER, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.
#include "timestamp.h"
#include <sstream>
#include <string>
#include <cstring>
#include <ctime>
namespace kwiver {
nam... |
#ifndef AVA_WORKER_MANAGER_SERVICE_H_
#define AVA_WORKER_MANAGER_SERVICE_H_
#include <boost/asio.hpp>
#include <map>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include "manager_service.proto.h"
#include "signal_handler.h"
namespace ava_manager {
class ManagerServiceServerBase {
public... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <utility>
#include <vector>
#include "ie_memcpy.h"
#include "inference_engine.hpp"
template <InferenceEngine::Precision::ePrecision precision>
class BlobFactory {
public:
using BlobType... |
#include <windows.h>
#include <stdio.h>
int popup_message1()
{
SYSTEMTIME SystemTime;
GetSystemTime(&SystemTime);
TCHAR pszDate[200];
GetDateFormatA( LOCALE_USER_DEFAULT, DATE_LONGDATE, &SystemTime, NULL, pszDate, 200 );
return MessageBoxA(NULL, pszDate, "Test Case 1", MB_OK);
}
int popup_messag... |
/*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
#include "AnsiColorCodeStream.h"
namespace facebook {
namespace memcache {
namespace {
static const char* colorCode(Color color) ... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2011-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://www.boost.org/libs/interpr... |
/**
Copyright (c) 2015-present, 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 <acdriver/Com... |
/*
* Copyright (C) 2005 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... |
//
// EpVector3.cpp
// EpMath
//
// Created by Joshua Pacana on 6/3/16.
// Copyright © 2016 Pacana. All rights reserved.
//
#include "EpVector3.hpp"
#include <iostream>
#include <cmath>
EpVector3::EpVector3()
{
mElements[0] = 0.0;
mElements[1] = 0.0;
mElements[2] = 0.0;
}
EpVector3::EpVector3(float x... |
#ifndef QML_JULIA_PROPERTY_MAP_H
#define QML_JULIA_PROPERTY_MAP_H
#include "jlcxx/jlcxx.hpp"
#include <QQmlPropertyMap>
namespace qmlwrap
{
/// Multimedia display for Julia
class JuliaPropertyMap : public QQmlPropertyMap
{
public:
JuliaPropertyMap(QObject* parent = nullptr);
virtual ~JuliaPropertyMap();
jl_v... |
// -----------------------------------------------------------------------------------------------
//
// This file is part of a free package distributed by Dr TS Kelso, tkelso@grove.net in his web site
// at http://www.grove.net/~tkelso/
//
// This system carries two-line orbital data (*.tle files with the master list ... |
/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 ( the "License" );
you may not use this file except in compliance with the L... |
/*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_container/cmdcontainer.h"
#include "shared/test/common/fixtures/device_fixture.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "shared/test/common/mocks/mock_graphic... |
class node{
private:
int data;
node* left;
node* right;
public:
node();
node(int i);
~node();
int getData();
node* getLeft();
node* getRight();
void setChilds(node* nleft, node* nright);
}; |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/storage/minfs/allocator_reservation.h"
#include <stdlib.h>
#include <utility>
#include "src/storage/minfs/allocator/allocator.h"
namespac... |
#ifndef TrackerConditions_TrackerStatus_hh
#define TrackerConditions_TrackerStatus_hh
//
// Define status of the tracker, as the agregate of tracker element status
//
// Mu2e includes
#include "Offline/DataProducts/inc/StrawId.hh"
#include "Offline/DataProducts/inc/StrawIdMask.hh"
#include "Offline/DataProducts/inc/St... |
#pragma once
#include <limits>
#include "../common.hh"
#include "./channel.hh"
#include "../utils/marshal.hh"
namespace rdmaio {
namespace bootstrap {
/*!
MultiMsg ecnodes multiple msgs into one, merged msg.
\note: MaxMsgSz supported is std::numeric_limits<u16>::max()
\note: MAx number of msg supported ius... |
#include <iostream>
using namespace std;
int main()
{
float r, area;
cout<< "Please Enter R:"<<endl;
cin >> r;
area = (r*r) * (22/7.0);
cout <<"The Area is:" << area << " Unit"<<endl;
} |
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
#include "Util.h"
float P(short size, short num, short draws)
{
float not = 1;
for (float i = size; i > size - draws; --i) not *= (i - num) / i;
return 1 - not;
} |
/*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==... |
/**
* Google's Firebase QueueInfo class, QueueInfo.cpp version 1.0.3
*
* This library supports Espressif ESP8266 and ESP32
*
* Created January 18, 2022
*
* This work is a part of Firebase ESP Client library
* Copyright (c) 2022 K. Suwatchai (Mobizt)
*
* The MIT License (MIT)
* Copyright (c) 2022 K. Suwat... |
//=================================================================================================
/*!
// \file src/mathtest/svecdvecinner/VCbVHa.cpp
// \brief Source file for the VCbVHa sparse vector/dense vector inner product math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// Thi... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2020, the Ginkgo authors
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 co... |
// The macro F_CPU specifies the CPU frequency to be considered by the delay macros.
#define F_CPU 1000000UL
// This header file includes the apropriate IO definitions for the device.
#include <avr/io.h>
// The functions in this header file are wrappers around the basic busy-wait functions from <util/delay_basic.h>.
#... |
#include <iostream>
using namespace std;
class Base
{
public:
int m_nValue;
Base(int nValue=0)
: m_nValue(nValue)
{
cout << "Base" << endl;
}
};
class Derived: public Base
{
public:
double m_dValue;
Derived(double dValue=0.0)
: m_dValue(dValue)
{
cout << "... |
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
int N, M, K, ans;
int g[111], b[111];
int main()
{
int i, j, k;
scanf("%d%d", &N, &M);
for (i = 0; i < N; ++i)
scanf("%d", g+i);
for (i = 0; i < M; ++i)
scanf("%d", b+i);
sort(g, g+N);
sort(b, b+M);
if (N < M)
{
reverse(g, g+... |
/****************************************************************************
*
* Copyright (c) 2018 PX4 Development Team. 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. Redistri... |
/*
* Copyright (C) 2011 STMicroelectronics. All rights reserved.
* Copyright (C) 2008 Apple Inc. 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 ret... |
// Copyright (c) 2017-2018 The Bitcoin Core developers
// Copyright (c) 2018 The Deftchain developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <index/base.h>
#include <shutdown.h>
#includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.