text stringlengths 7 961k |
|---|
#include "core/Application.h"
#include "Mesh.h"
#include <iostream>
using namespace std;
class MyApplication: public Application
{
private:
Program* program = NULL;
Renderer *renderer = NULL;
float angle = 0;
Mesh* dragon = NULL;
Buffer* vertex = NULL;
Buffer* normal = NULL;
Buffer* index... |
#include<iostream>
#include<algorithm>
#include<cstdlib>
#include<cstdio>
#include<cmath>
using namespace std;
#define s(n) scanf("%d",&n)
#define sl(n) scanf("%lld",&n)
#define sf(n) scanf("%lf",&n)
#define ss(n) scanf("%s",n)
#define p(n) ... |
#include "plug.h"
bool plugStatus = false;
Plug::Plug(int plug)
{
// Use 'this->' to make the difference between the
// 'pin' attribute of the class and the
// local variable 'pin' created from the parameter.
this->plug = plug;
init();
}
void Plug::init()
{
pinMode(plug, OUTPUT);
// Always ... |
//------------------------------------//
// Author: Breno Cunha Queiroz //
// Date: 2020-11-18 //
// SCC0650 - Computação Gráfica (2020)//
//------------------------------------//
#ifndef CUBEMAP_H
#define CUBEMAP_H
#include <string>
#include <vector>
#include <GL/glew.h>
class Cubemap
{
publ... |
/**
* @file SedExperimentReference.cpp
* @brief Implementation of the SedExperimentReference class.
* @author DEVISER
*
* <!--------------------------------------------------------------------------
* This file is part of libSEDML. Please visit http://sed-ml.org for more
* information about SED-ML. The latest ve... |
#include"../../include/fast_io.h"
#include"../../include/fast_io_device.h"
#include"../../include/fast_io_crypto.h"
#include"../../include/fast_io_network.h"
int main()
try
{
//use speck cbc mode to encrypt our communication
std::array<uint8_t, 16> constexpr key {'8','3','3','4',';','2','3','4','a','2','c','4',']','... |
#include "../interfaceslib.h"
#if LINUX
# include "api.h"
# include <dirent.h>
# include <sys/stat.h>
# include <unistd.h>
# include <wordexp.h>
namespace Engine {
namespace Filesystem {
void setup(void *)
{
}
Path executablePath()
{
char buffer[512];
auto resul... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "backend/protobuf/queries/proto_get_account.hpp"
namespace shared_model {
namespace proto {
template <typename QueryType>
GetAccount::GetAccount(QueryType &&query)
: CopyableProto(std::forw... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "BlueprintGraphPrivatePCH.h"
#include "CallFunctionHandler.h"
#define LOCTEXT_NAMESPACE "CallFunctionHandler"
//////////////////////////////////////////////////////////////////////////
// FImportTextErrorContext
// Support class to pipe logs fro... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "Grippables/GrippableBoxComponent.h"
#include "Net/UnrealNetwork.h"
//=============================================================================
UGrippableBoxComponent::~UGrippableBoxComponent()
{
}
//=========================================... |
#include "Chamber.h"
#include <sstream>
std::ostream& operator<<(std::ostream& out, const Chamber& chamber) {
out << chamber._name << " ";
for (const auto& discipline: chamber._disciplines) {
out << discipline << " ";
}
return out;
}
std::istream& operator>>(std::istream& in, Chamber& chamber)... |
/*=========================================================================
*
* 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 2016 - NumScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE.txt or copy at
// ... |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
/*
Copyright 2011 Larry Gritz and the other authors and contributors.
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
noti... |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "timedata.h"
#include "test/test_cryptcore.h"
#include <boost/test/unit_test.hpp>
BOOST_FIXTURE_TEST_SUITE(ti... |
/**************************************************************
*
* 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 y... |
#include <assert.h>
#include <iostream>
#include "reef/util/json.h"
namespace reef {
namespace util {
#define IS_DIGIT(chara) ((chara) <= '9' && (chara) >= '0')
#define IS_SPACE(chara) ((chara) == ' ' || (chara) == '\n' || (chara) == '\t')
#define MATCH_CONDITION(iter, str, delim) \
((iter) < (str).length() && ... |
/**
* @file oglplus/detail/optional.hpp
* @brief Default implementation of the Optional<X> wrapper
*
* @author Matus Chochlik
*
* Copyright 2010-2014 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENS... |
/*=========================================================================
*
* 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 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCanvas.h"
#include "SkDrawShadowInfo.h"
#include "SkPath.h"
#include "SkShadowTessellator.h"
#include "SkShadowUtils.h"
#include "SkVertices.h"
#include "Test.h"
... |
#include <algorithm>
#include "common.h"
#include "extended_random.h"
#include "cycle_path_generator.h"
struct Generator : public cycle_path_generator::Generator {
Rng &rng;
Generator(Rng &rng) : rng(rng) { }
Flow gen_flow_for_path(const Flow lower, const Flow upper) override {
return rng.skewed... |
// Copyright 2014 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 "platform/credentialmanager/PlatformCredential.h"
namespace blink {
PlatformCredential* PlatformCredential::create(const String& id, const Stri... |
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus 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:
//... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
// Copyright 2018 The Chromium OS 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 "cryptohome/challenge_credentials/challenge_credentials_helper_impl.h"
#include <utility>
#include <base/bind.h>
#include <base/check.h>
#in... |
// PX2StringHelp.cpp
#include "PX2StringHelp.hpp"
#include "PX2Assert.hpp"
using namespace PX2;
using namespace std;
#ifdef WIN32
#include <Windows.h>
#endif
//----------------------------------------------------------------------------
#define MPQ_TOOLS_BUFSIZE 0x500
static unsigned int mpqBuffer[MPQ_TOOLS_BUFSIZE... |
#include <fmt/format.h>
#include <nextalign/nextalign.h>
#include <tbb/global_control.h>
#include <tbb/parallel_pipeline.h>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string/split.hpp>
#include <cxxopts.hpp>
#include <fstream>
#include "Logger.h"
#includ... |
/**
* @file SimpleWB_.cpp
* @brief mex interface for cv::xphoto::SimpleWB
* @ingroup xphoto
* @author Amro
* @date 2017
*/
#include "mexopencv.hpp"
#include "opencv2/xphoto.hpp"
using namespace std;
using namespace cv;
using namespace cv::xphoto;
namespace {
// Persistent objects
/// Last object id to allocate
i... |
//===---- TargetInfo.cpp - Encapsulate target details -----------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
// Wrapper to use FreeType (instead of stb_truetype) for Dear ImGui
// Get latest version at https://github.com/ocornut/imgui/tree/master/misc/freetype
// Original code by @vuhdo (Aleksei Skriabin). Improvements by @mikesart. Maintained and v0.60+ by @ocornut.
// Changelog:
// - v0.50: (2017/08/16) imported from https... |
// 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 "webkit/plugins/npapi/plugin_list.h"
#include <algorithm>
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/log... |
/* 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
#include <unit_test.h>
#include <matrix/math.hpp>
#include <matrix/filter.hpp>
#include <matrix/integration.hpp>
#include <matrix/Quaternion.hpp>
using namespace matrix;
class MatrixTest : public UnitTest
{
public:
virtual bool run_tests();
private:
bool attitudeTests();
bool filterTests();
bool helperTests();
... |
// Copyright (c) 2016 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/atom_permission_manager.h"
#include <vector>
#include "atom/browser/web_contents_preferences.h"
#include "content/public/browser/child_process_security_policy.... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
// Copyright 2004 The Trustees of Indiana University.
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// Authors: Douglas Gregor
// Andrew Lumsdaine
#warning "Use of re... |
#include "ders_helpers.h"
#include <catboost/libs/algo/approx_updater_helpers.h>
#include <catboost/libs/algo_helpers/error_functions.h>
#include <catboost/libs/helpers/exception.h>
#include <library/fast_exp/fast_exp.h>
#include <util/generic/cast.h>
#include <util/system/yassert.h>
#include <functional>
templat... |
#include <string>
long double operator "" _w(long double){}
std::string operator "" _w(const char16_t*, size_t){}
unsigned operator "" _w(const char*){}
int main() {
1.2_w; // calls operator "" _w(1.2L)
u"one"_w; // calls operator "" _w(u"one", 3)
12_w; // calls operator "" _w("12")
return 0;
} |
/**********
Copyright (c) 2018, Xilinx, 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 retain the above copyright notice,
this list of conditions and the fol... |
/**
* 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 "decoders8.h"
#include "exception.h"
namespace pcars {
Decoder_S8::Decoder_S8()
: num_(0) {
}
Decoder_S8::~Decoder_S8() {
}
void Decoder_S8::decode(const PCars_Data & data, Position & position) {
num_ = data.at(position);
++position;
}
int Decoder_S8::s8() const {
return num_;
}
} |
#include "pch.h"
#include "StringStoreInternal.h"
#include "hnrt/Heap.h"
using namespace hnrt;
static StringStoreInternal* s_pSingleton = nullptr;
StringStoreInternal& StringStoreInternal::Instance()
{
if (!s_pSingleton)
{
s_pSingleton = new StringStoreInternal();
}
return *s_pSingleton;
}... |
#pragma once
#include <iostream>
#include <memory>
#include <list>
#include <string>
#include <exception>
#include <type_traits>
#include <utility>
namespace TacosEngine
{
class Entity
{
public:
explicit Entity(const std::string &name)
{
static unsigned int id = 0;
_id = id;
_name = name;
id++;
... |
/************************************************************************************
This source file is part of the Theora Video Playback Library
For latest info, see http://libtheoraplayer.sourceforge.net/
*************************************************************************************
Copyright (c) 2008-2014 K... |
#include <../../nrnconf.h>
// A model built using NEURON is heavyweight in memory usage and that
// prevents maximizing the number of cells that can be simulated on
// a process. On the other hand, a tiny version of NEURON that contains
// only the cache efficient structures, minimal memory usage arrays,
// needed to d... |
// Copyright 2017 Johan Paulsson
// This file is part of the Water C++ Library. It is licensed under the MIT License.
// See the license.txt file in this distribution or https://watercpp.com/license.txt
//\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
#ifndef WATER_THREADS_WINDOWS_M... |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... |
#include "skyline/logger/TcpLogger.hpp"
namespace skyline::TcpLogger {
void SendRaw(const void* data, size_t size)
{
skyline_tcp_send_raw((char*)data, size);
}
void SendRaw(const char* data)
{
SendRaw((void*)data, strlen(data));
}
void SendRawFormat(const char* format, ...)... |
// Tencent is pleased to support the open source community by making RapidJSON available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file except
// in compliance with the License. You may obta... |
// Copyright (c) 2020 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <cmath>
#include <cstddef>
#include <type_traits>
#include "ngraph/type/bfloat16.hpp"
#include "ngraph/type/float16.hpp"
namespace ngraph
{
namespace runtime
{
namespace reference
{
... |
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2019 The Txocoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/test/uritests.h>
#include <qt/guiutil.h>
#include <qt/walletm... |
// 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 "components/policy/core/common/cloud/cloud_policy_manager.h"
#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.h"
#... |
/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from PointCloud2_.idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Connext distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/
#ifndef NDDS_STANDALONE_TYPE
#ifnde... |
// Copyright (c) 2011-2019 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 <qt/guiutil.h>
#include <qt/bitcoinaddressvalidator.h>
#include <qt/bitcoinunits.h>
#include <qt/qvalidatedlineedit... |
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#include <QUrl>
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) :
... |
/*
* cart-pole-sim.cpp
*
* Simulates a basic cart-pole system balanced with a number of controllers, using MuJoCo.
*
*
*/
#include "mujoco.h"
#include "glfw3.h"
#include "stdio.h"
#include "string.h"
/**************************** FORWARD DECLARATION ****************************/
// Utils
void autoscale(GLFWwindow*... |
// 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.
// File utilities that use the ICU library go in this file.
#include "base/i18n/file_util_icu.h"
#include <stdint.h>
#include <memory>
#include "b... |
#include <bits/stdc++.h>
using namespace std;
const int N = 1010, mod = 1e9 + 7;
int dp[N], p[N], n;
int main() {
cin >> n;
for(int i = 1; i <= n; ++i)
cin >> p[i];
dp[1] = 2;
for(int i = 2; i <= n; ++i) {
int cnt = 2;
for(int j = p[i]; j < i; ++j)
cnt = (cnt + dp[j]) % mod;
dp[i] = cnt;
}
int ans... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/panorama/model/ListApplicationInstanceDependenciesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUt... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
//#include <pthread.h>
#include "mtx_critsect.cpp"
//#include "mtx_critsect.h"
#inclu... |
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
#include <algorithm>
namespace gridtools {
/** \ingroup common
@{
\ingroup atomic
@{
... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompanies th... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... |
/* Copyright 2018 The TensorFlow 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 by applicable law or a... |
#include <iostream>
#include <fstream>
#include <string>
#include "bitmap.h"
using namespace std;
int main(int argc, char** argv)
{
if(argc != 4)
{
cout << "usage:\n"
<< "bitmap option inputfile.bmp outputfile.bmp\n"
<< "options:\n"
<< " -c cell shade\n"
... |
/*
* Copyright (c) 2021-2022, 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... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_int_realloc_54e.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-54e.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routines
... |
//=====================================================================
// Copyright 2016 (c), Advanced Micro Devices, Inc. All rights reserved.
//
/// \author AMD Developer Tools Team
/// \file osSingleApplicationInstance.cpp
///
//=====================================================================
//------------... |
/*
* 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 writing, software
* distributed u... |
#include <algorithm>
template<typename T>
void BinaryInsertionSort(T begin, T end)
{
for (auto i = begin; i != end; ++i) std::rotate(std::upper_bound(begin, i, *i), i, i + 1);
} |
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#ifndef FitMass1D_cc
#define FitMass1D_cc
#include <iostream>
#include <sstream>
#include "TFile.h"
#include "TH2F.h"
#include "TDirectory.h"
#include "TROOT.h"
#include "FitWithRooFit.cc"
/**
* Fit the mass distribution with the given function using RooFit.
*/
class FitMass1D
{
public:
FitMass1D() : rebinX(1)
... |
/// @file Math utility functions used in inverse dynamics library.
/// Defined here as they may not be provided by the math library.
#ifndef IDMATH_HPP_
#define IDMATH_HPP_
#include "IDConfig.hpp"
namespace btInverseDynamics {
/// set all elements to zero
void setZero(vec3& v);
/// set all elements to zero
void se... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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 <wallet/wallet.h>
#include <checkpoints.h>
#include <chain.h>
#include ... |
#ifdef PEGASUS_OS_VMS
#ifndef __UNIX_ABSTRACTINDICATIONSUBSCRIPTION_PRIVATE_H
#define __UNIX_ABSTRACTINDICATIONSUBSCRIPTION_PRIVATE_H
#endif
#endif |
#include "sim/init.hh"
namespace {
const uint8_t data_m5_objects_VirtIO9P[] = {
120,156,181,84,223,111,211,48,16,190,164,109,250,99,99,76,
67,154,4,72,40,143,5,209,102,27,20,40,66,19,76,123,
1,9,86,37,3,137,190,84,105,236,37,25,205,15,108,167,
234,120,66,26,255,55,248,174,107,214,13,54,241,210,164,61,... |
/* Copyright 2015 The TensorFlow 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 by applicable law or a... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... |
#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) :
... |
/*
4- Ler dois valores inteiros negativos ( consistir se é negativo), multiplicar e mostrar o resultado
*/
#include <iostream>
using namespace std;
int main() {
int n1=0, n2=0, i=10;
cout <<"primeiro numero inteiro positivo ";
cin >> n1;
cout <<"segundo numero inteiro positivo ";
cin >> n2;
... |
// coding: utf-8
/* Copyright (c) 2017, Sascha Schade (strongly-typed)
* All Rights Reserved.
*
* The file is part of the xpcc library and is released under the 3-clause BSD
* license. See the file `LICENSE` for the full license governing this code.
*/
// -----------------------------------------------------------... |
#ifndef ISPACEMARINE_HPP
# define ISPACEMARINE_HPP
class ISpaceMarine
{
public:
virtual ~ISpaceMarine() {}
virtual ISpaceMarine* clone() const = 0;
virtual void battleCry() const = 0;
virtual void rangedAttack() const = 0;
virtual void meleeAttack() const = 0;
};
#endif |
// Copyright (c) 2019 GitHub, Inc. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/common/gin_helper/callback.h"
#include "content/public/browser/browser_thread.h"
#include "gin/dictionary.h"
namespace gin_helper {
namespace {
... |
//
// Copyright (c) 2017 The Khronos Group 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 la... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 Matthias Heil and Andrew Hazel
//LIC//
//L... |
#include "gtk_s9x.h"
#include "gtk_sound_driver_oss.h"
#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <fcntl.h>
static void
oss_samples_available (void *data)
{
((S9xOSSSoundDriver *) data)->samples_available ();
}
S9xOSSSoundDriver::S9xOSSSoundDriver (void)
{
filedes = -1;
... |
#include "Application.h"
#include <iostream>
#include "Layers/ImGuiLayer.h"
#include "Renderers/RealBatchRenderer.h"
#include "Timer.h"
#include "Layers/ImGuiLayer.h"
#include "Layers/TestBoneAnimLayer.h"
#include "Layers/TrianglesLayer.h"
#include "Layers/RealBatchRendererLayer.h"
#include "Layers/BatchRendererLaye... |
//
// Object.hpp
// OpenGLTest
//
// Created by Samuel Hall on 24/07/2016.
//
//
#ifndef Object_hpp
#define Object_hpp
#include <vector>
#include <stdio.h>
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
class Camera;
class Object : public std::enable_shared_from_this<Object>
{
protected:
glm... |
#include "mgdObj.hpp"
namespace wrd {
WRD_DEF_ME(mgdObj)
me& me::_assign(const me& rhs) {
_owns = rhs._owns->deepClone();
_subs.bind(_makeNewSubs());
_org = rhs._org;
_pos = rhs._pos;
return *this;
}
me::mgdObj():
super(), _shares(new scopes()), _... |
/**
* Copyright 2019 Huawei Technologies Co., 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... |
/* libtcod
* Copyright © 2008-2018 Jice and the libtcod contributers.
* All rights reserved.
*
* libtcod 'The Doryen library' is a cross-platform C/C++ library for roguelike
* developers.
* Its source code is available from:
* https://github.com/libtcod/libtcod
*
* Redistribution and use in source and binary f... |
/* Copyright 2019, OpenSoft 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:
*
* * Redistributions of source code must retain the above copyright notice, this list of
* conditions a... |
/**************************************************************************************/
/* */
/* Visualization Library */
/* http://visualizationlibrary.org ... |
// Copyright 1996-2019 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... |
/* file: pca_distributedinput_svd.cpp */
/*******************************************************************************
* Copyright 2014-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... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
/*
* Copyright 2019 Xilinx, 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... |
/*******************************************************************\
Module:
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#include "smt2_parser.h"
#include <util/arith_tools.h>
void smt2_parsert::command_sequence()
{
exit=false;
while(n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.