text stringlengths 7 961k |
|---|
// Copyright (c) 2017-2018 The SPDZ developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "accumulatormap.h"
#include "accumulators.h"
#include "main.h"
#include "txdb.h"
#include "libzerocoin/Denominations.h"
usi... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_environment_ifstream_07.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-07.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: environment Read input from an envir... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) 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 ... |
#include "stdafx.h"
#include "CredentialsModel.h"
using namespace boost;
using namespace std;
BOOST_AUTO_TEST_CASE(CredentialsModel_Test)
{
CredentialsModel model;
model.Set(L"test-usr", L"test-pwd");
BOOST_CHECK_EQUAL(model.GetUsername(), L"test-usr");
BOOST_CHECK_EQUAL(model.GetPassword(), L"test-pwd");
} |
// 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 "content/browser/media/session/media_session_controllers_manager.h"
#include <set>
#include "base/command_line.h"
#include "base/test/scoped_fe... |
/** Copyright 2011 Kevin Ryde
* Copyright 2013-2014 Axel Huebl
*
* Example and bug report from Kevin Ryde
*
* License: GPLv2+
*
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633405
*/
#include <pngwriter.h>
#include <cstdlib>
int main( )
{
pngwriter img( 40,11, 0, "/tmp/foo.png" );
img.... |
#include <cpp_redis/cpp_redis>
#include <csignal>
#include <mutex>
#include <set>
#include <sstream>
#include <thread>
#include <string>
#include <vector>
#include <chrono>
#include <thread>
#include <random>
#include <cmath>
#include <fstream>
#include "../../gen-cpp/SocialGraphService.h"
#include "../../gen-cpp/soci... |
#include "TextureAspect.hpp" |
/*
*
* Copyright 2017 Asylo 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) 1999, 2013, 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 ... |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
// Copyright (c) 2014-2018 Francois Beaune, The appleseedhq Organization
//
... |
#include<bits/stdc++.h>
using namespace std;
class Student{
public:
long long ro;
string name;
string branch;
void setValue(long long ro, string name, string branch){
this->ro = ro;
this->name = name;
this->branch = branch;
}
void display(){
cout << "Roll No... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
//--------------------------------------------------------------------------------------------------
// Copyright (c) YugaByte, 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
//
// ht... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "fully_connected_kernel_fb_io_b8_f8.h"
#include <algorithm>
namespace kernel_selector {
ParamsKey FullyConnected_fb_io_b8_f8::GetSupportedKey() const {
ParamsKey k;
k.EnableInputDataType(Datatype::F32);
k.Enab... |
#include "VirtuVault.h"
// VirtuVault **********************************************************************************************************
// Protected -----------------------------------------------------------------------------------------------------------
//TODO: implement CRC
//Receives all messages fro... |
///////////////////////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/multiprecision/cpp_int.hpp>
#includ... |
// Copyright (c) 2011-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.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/askpassphrasedialog.h>
#include <qt/forms/... |
/* STUDENTS: YOU MUST ADD YOUR PASSENGER UNIT TESTS TO THIS FILE. FORMAT YOUR
* TESTS TO FIT THE SPECIFICATIONS GIVEN BY THE TESTS PROVIDED IN THIS FILE.
*
* Please note, the assessment tests for grading, will use the same include
* files, class names, and function names for accessing students' code that you
* fin... |
#include <iostream>
using namespace std;
int main(int argc, char** argv) {
float n1,n2,media;
cout<<"Digite a nota 1 : ";
cin>>n1;
cout<<"Digite a nota 2 : ";
cin>>n2;
media = (n1+n2)/2;
cout<<"A media eh : "<<media;
return 0;
} |
#include "brunsli_v2_decode.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <cstdint>
#include <memory>
#include <set>
#include <utility>
#include <vector>
#include "ans_decode.h"
#include "arith_decode.h"
#include "bit_reader.h"
#include "brunsli_v2_common.h"
#include "bru... |
// RUN: %dexter
#include <stdlib.h>
#include <string.h>
#define BUFSZ 256
int
foo(int argc, int init)
{
int foo[BUFSZ];
int bar[BUFSZ];
if (argc + 1 > BUFSZ)
return 0;
memset(foo, 0, sizeof(foo));
int tmp = 12;
for (int j = 0; j < argc; j++) { // DexWatch('tmp')
tmp = init; // DexUnreachable()
... |
//
// AmbientOcclusionEffect.cpp
// interface/src/renderer
//
// Created by Andrzej Kapolka on 7/14/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
// include this before ... |
/*
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/foldable/mcd.hpp>
#include <boost/hana/detail/assert.hpp>
#include <boost/hana/detail/constexpr.hpp>
#include <boost/hana/d... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-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 <chainparams.h>
#include <consensus/merkle.h>
#include <tinyformat.h>
#inclu... |
/*
The MIT License (MIT)
Copyright (c) 2013-2015 SRS(ossrs)
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, merg... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/core/utils/Outcome.h>
#include <aws/core/auth/AWSAuthSigner.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/core/client/RetryStrategy.h>
#include <aws/core/http/HttpClient.h>
#i... |
/*
* Copyright (c) 2017-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 <cassert>
#include <cstdlib>
#include <cstring>
#include <vector>
int __infer_nondet_int();
#define ASSERT(x) assert(x)
#define... |
#include "image_function_helper.h"
#include "function_pool.h"
#include "function_pool_task.h"
#include "parameter_validation.h"
#include "penguinv/penguinv.h"
namespace Function_Pool
{
// This structure holds input parameters for some specific functions
struct InputInfo
{
InputInfo()
: ... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2018 The Krait developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mi... |
// Copyright (C) 2014, Pawel Tomulik <ptomulik@meil.pw.edu.pl>
//
// 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)
// yaul/tml/sizeof.hpp
/** // doc: yaul/tml/sizeof.hpp {{{
* \file yaul/tml/sizeof.hpp
* \bri... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll ms = 500001;
const ll mod = 10000;
ll sieve[ms];
bool flag;
void doSieve(){
memset(sieve, 0, sizeof(sieve));
for(ll i = 2; i <= 250000; ++i){
for(ll j = 2; j*i <= 500000; ++j){
sieve[i*j]++;
}
... |
/*
* Copyright 2007, Ingo Weinhold, bonefish@users.sf.net.
* Distributed under the terms of the MIT License.
*/
#include "PartitionMapAddOn.h"
#include <new>
#include <stdio.h>
#include <DiskDeviceTypes.h>
#include <MutablePartition.h>
#include <PartitioningInfo.h>
#include <AutoDeleter.h>
#include "IntelDiskS... |
#include "Expr_Tree_Builder.h"
#include "Iterator.h"
#include <memory>
Expr_Tree_Builder::Expr_Tree_Builder (void):
Operator_Stack(),
Postfix_Stack()
{
}
Expr_Tree_Builder::~Expr_Tree_Builder (void)
{
//HANDLED BY SHARED POINTERS IN PROXY PATTERN
}
/* These functions build our nodes using ... |
// Copyright (c) 2020 by Robert Bosch GmbH. 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... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 by EMC Corporation, 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... |
// Copyright 2015-2019 Carnegie Mellon University. See LICENSE file for terms.
#include <rose.h>
#include <libpharos/util.hpp>
#include <gtest/gtest.h>
#include <libpharos/apisig.hpp>
using namespace pharos;
// This is the main test fixture
class ApiSigTest : public testing::Test {
protected:
std::unique_ptr<A... |
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2020, University of Edinburgh, Istituto Italiano di Tecnologia
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
////////////////////////////////////////... |
#include "stopwatch.h"
std::unique_ptr<StopWatch> StopWatch::instance;
std::once_flag StopWatch::flag;
StopWatch& StopWatch::GetInstance()
{
std::call_once(flag, [] {instance.reset(new StopWatch); });
return *instance;
} |
/*!
******************************************************************************
*
* \file
*
* \brief Header file containing RAJA headers for sequential execution.
*
* These methods work on all platforms.
*
******************************************************************************
*/
//~~~~~... |
// Copyright (c) 2017-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAO_PEGTL_INTERNAL_IDENTIFIER_HPP
#define TAO_PEGTL_INTERNAL_IDENTIFIER_HPP
#include "../config.hpp"
#include "peek_char.hpp"
#include "ranges.hpp"
#include "seq.hpp"
#inclu... |
// Copyright (c) 2019 Jonas Ellert
//
// 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, publ... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmult/LDaSDa.cpp
// \brief Source file for the LDaSDa dense matrix/dense matrix multiplication math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This... |
/////////////////////////////////////////////////////////////////////////
// $Id: vvfat.cc 11606 2013-02-01 19:13:58Z vruppert $
/////////////////////////////////////////////////////////////////////////
//
// Virtual VFAT image support (shadows a local directory)
// ported from QEMU block driver with some additions (se... |
//------------------------------------------------------------------------------
/*
This file is part of calld: https://github.com/call/calld
Copyright (c) 2017 Call Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provi... |
// Time: O(n^2)
// Space: O(n)
// The solution is the same as https://leetcode.com/problems/predict-the-winner/description/
class Solution {
public:
bool stoneGame(vector<int>& piles) {
if (piles.size() % 2 == 0 || piles.size() == 1) {
return true;
}
vector<int> dp(piles.size(... |
#ifndef LIB1_LIB1_HPP_
#define LIB1_LIB1_HPP_
/*
* Copyright (c) 2015-2016 Joost Kraaijeveld. See license.txt for details.
* For information, bug reports and additions send an e-mail to ProjectTemplate@Askesis.nl.
*
* Author: jkr
*/
#include "ProjectTemplateConfig.h"
/**
*
*/
class Lib1
{
public:
static vo... |
// Copyright (c) 2012-2016, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018, Karbo developers
// Copyright (c) 2017-2019, The CROAT.community developers
//
// This file is part of Bytecoin.
//
// Bytecoin is free software: you can redistribute it and/or modify
// it under the terms of the GNU L... |
/*
* 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 <iostream>
#include "ArrayQueue.h"
#include "LoopQueue.h"
template<typename T>
double testQueue(T *queue, int opCount) {
clock_t startTime = clock();
srand(66);
for (int i = 0; i < opCount; ++i) {
queue->enqueue(rand());
}
for (int j = 0; j < opCount; ++j) {
queue->dequeue(... |
/* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... |
/*------------------------------------------------------------------------------------------*\
This file contains material supporting chapter 11 of the book:
OpenCV3 Computer Vision Application Programming Cookbook
Third Edition
by Robert Laganiere, Packt Publishing, 2016.
This program is free software; permission is ... |
// 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 "base/command_line.h"
#include "content/common/service_worker/service_worker_utils.h"
#include "content/public/common/content_switches.h"
#includ... |
// MIT License
//
// Copyright (c) 2020, The Regents of the University of California,
// through Lawrence Berkeley National Laboratory (subject to receipt of any
// required approvals from the U.S. Dept. of Energy). All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy... |
/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
//===-- SymbolFileDWARFDwo.cpp ----------------------------------*- 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
//
//===---------------------------... |
//
// Copyright 2020 NanoMQ Team, Inc. <jaylin@emqx.io>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
// file was obtained (LICENSE.txt). A copy of the license may also be
// found online at https://opensource.org/licenses/MIT.
/... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItem_RecipeNote_Kibble_Rex_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------------... |
/*
* tableWidget公共蕨类
* 提供接口,protect所有方法
*
* Created on: 2018年1月1日
* Author: Lzy
*/
#include "comtablewid.h"
#include "ui_comtablewid.h"
ComTableWid::ComTableWid(QWidget *parent) :
QWidget(parent),
ui(new Ui::ComTableWid)
{
ui->setupUi(this);
// groupBox_background_icon(this);
// i... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_struct_realloc_83_goodB2G.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-83_goodB2G.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Mana... |
/*
*
* Copyright (c) 2004
* John Maddock
*
* 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)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent version.
... |
#include "imu_to_odom/imu_to_odom.h"
OdomPredictor::OdomPredictor(const ros::NodeHandle& nh,
const ros::NodeHandle& nh_private)
: nh_(nh),
nh_private_(nh_private),
seq_(0),
have_odom_(false),
have_bias_(false) {
nh_private.param("max_imu_queue_length", max_imu... |
//////////////////////////////////////////////////////////////////////////////
/// 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
/// ... |
#include "pch.h"
using namespace BaseLogic;
namespace M6502Core
{
void BRKProcessing::sim_BeforeRandom(TriState inputs[], TriState outputs[])
{
TriState PHI1 = inputs[(size_t)BRKProcessing_Input::PHI1];
TriState PHI2 = inputs[(size_t)BRKProcessing_Input::PHI2];
TriState BRK5 = inputs[(size_t)BRKProcessing_Inp... |
//===- unittest/ProfileData/SampleProfTest.cpp ------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#pragma once
#include <utility>
namespace indicators {
#if defined(_MSC_VER)
#include <windows.h>
static inline std::pair<size_t, size_t> terminal_size() {
CONSOLE_SCREEN_BUFFER_INFO csbi;
int columns, rows;
GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi);
columns = csbi.srWindow.Right - c... |
#include "core.h"
#include "wbcompeldrespawner.h"
#include "wbeventmanager.h"
#include "hashedstring.h"
#include "wbcompeldtransform.h"
#include "configmanager.h"
#include "eldritchworld.h"
#include "eldritchgame.h"
#include "collisioninfo.h"
#include "mathcore.h"
#include "idatastream.h"
WBCompEldRespawner::WBCompEld... |
/**
* 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 "ABI37_0_0RawPropsKey.h"
#include <cassert>
#include <cstring>
#include <ABI37_0_0React/core/RawPropsPrimitives.h>
nam... |
// Copyright (c) 2020-2021 The BitcoinDX Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crypto/chacha_poly_aead.h>
#include <crypto/poly1305.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/... |
#ifndef PYTHONIC_NUMPY_SPACING_HPP
#define PYTHONIC_NUMPY_SPACING_HPP
#include "pythonic/include/numpy/spacing.hpp"
#include "pythonic/utils/functor.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/utils/numpy_traits.hpp"
namespace pythonic
{
namespace numpy
{
#define NUMPY_NARY_FUNC_NAME spacing
#... |
#include <iostream>
#include <iomanip>
#include "color/color.hpp"
int main( int argc, char *argv[] )
{
::color::lab< float > c0; //!< Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double
::color::YPbPr< std::uint8_t, ::color::constant::YPbPr:... |
#include <depthai_bridge/ImgDetectionConverter.hpp>
namespace dai::rosBridge {
ImgDetectionConverter::ImgDetectionConverter(std::string frameName, int width, int height, bool normalized)
: _frameName(frameName), _width(width), _height(height), _normalized(normalized), _sequenceNum(0) {}
void ImgDetectionConverte... |
/*=========================================================================
Program: Bender
Copyright (c) Kitware 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.a... |
/*
Copyright (C) 1999 Lars Knoll (knoll@mpi-hd.mpg.de)
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All
rights reserved.
Copyright (C) 2005, 2006, 2007 Alexey Proskuryakov (ap@nypop.com)
This library is free software; you can redistribute it and/or
modify it under the... |
/* Copyright 2017 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 "rpcconsole.h"
#include "ui_rpcconsole.h"
#include "clientmodel.h"
#include "guiutil.h"
#include "rpcserver.h"
#include "rpcclient.h"
#include <QTime>
#include <QThread>
#include <QKeyEvent>
#include <QUrl>
#include <QScrollBar>
#include <openssl/crypto.h>
// TODO: add a scrollback limit, as there is curr... |
//=======================================================================
// Copyright (c) 2014-2017 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... |
#include "EventFilter/SiStripRawToDigi/test/plugins/SiStripDigiAnalyzer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/ParameterSet/interface/ParameterS... |
#include "Planet.h"
#include "misc/Vector2D.h"
#include <math.h>
Planet::Planet(Vector2D _position, Vector2D _velocity, double _radius, double _mass, std::vector<Body*>* _bodies) :
Body(_position, _velocity, _radius, _mass, _bodies) {};
void Planet::update(){
Body::updatePhysics();
}
std::vector<RenderInstr... |
#pragma once
#include <gauxc/gauxc_config.hpp>
#include <stdexcept>
#include <string>
#include <sstream>
#ifdef GAUXC_ENABLE_CUDA
#ifdef GAUXC_ENABLE_MAGMA
namespace GauXC {
class magma_exception : public std::exception {
std::string file_;
int line_;
std::string msg_prefix_;
magma_int_t err_code_;... |
#ifndef MOLPHENE_BASIC_SHADER_HPP
#define MOLPHENE_BASIC_SHADER_HPP
#include "stdafx.hpp"
#include "m3d.hpp"
#include "mix_shader_uniforms.hpp"
#include "opengl.hpp"
#include "shader_attrib_location.hpp"
namespace molphene {
template<typename TShader, typename TMixShaderUniform>
class basic_shader : public TMixShad... |
#include "AspectRatioPixmapLabel.h"
#include <QPainter>
#include <QPixmap>
QPixmap AspectRatioPixmapLabel::get_scaled_pixmap(bool grid_lines) {
QPixmap new_pixmap(width(), height());
QPainter painter(&new_pixmap);
painter.fillRect(0, 0, width(), height(), Qt::black);
QPixmap scaled_pixmap = pixmap.scaled(width(... |
/*
*
* Copyright 2015 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... |
// Fizzy: A fast WebAssembly interpreter
// Copyright 2019-2020 The Fizzy Authors.
// SPDX-License-Identifier: Apache-2.0
#include "cxx20/span.hpp"
#include "instructions.hpp"
#include "module.hpp"
#include "parser.hpp"
#include "stack.hpp"
#include <cassert>
namespace fizzy
{
namespace
{
template <typename T>
inline... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_dest_class_memmove_52c.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_dest.label.xml
Template File: sources-sink-52c.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate using... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011-2015, Image Engine Design Inc. All rights reserved.
// Copyright (c) 2011, John Haddon. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted pro... |
// Copyright 2011 Google Inc. 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... |
/**************************************************************
*
* 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... |
//===--- IRGenDebugInfo.cpp - Debug Info Support --------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include "core_heap.h"
#include <Windows.h>
namespace core {
namespace heap {
static void* ptr_check(void* ptr) {
if (ptr == NULL) {
ExitProcess(0);
}
return ptr;
}
void raw_free(void* ptr) {
if (ptr) {
HeapFree(GetProcessHeap(), 0, ptr);
}
}
void* raw_alloc(size_t bytes) {
return ptr_check(HeapAlloc(Get... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Christian Schulte <schulte@gecode.org>
*
* Copyright:
* Christian Schulte, 2009
*
* Last modified:
* $Date: 2009-10-14 00:19:20 +1100 (Wed, 14 Oct 2009) $ by $Author: schulte $
* $Revision: 9887 $
*
* T... |
// [WriteFile Name=GenerateOfflineMap, Category=Maps]
// [Legal]
// Copyright 2017 Esri.
// 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
// Un... |
// Copyright 2015-2019 Carnegie Mellon University. See LICENSE file for terms.
#include <rose.h>
#include <libpharos/util.hpp>
#include <gtest/gtest.h>
#include <libpharos/apisig.hpp>
using namespace pharos;
// This is the main test fixture
class ApiSigTest : public testing::Test {
protected:
std::unique_ptr<A... |
#include <hpx/hpx_init.hpp>
#include <hpx/include/iostreams.hpp>
// We just use the default RNG for simplicity
#define BRG_RNG
#include "uts-rng/rng.h"
#include "YewPar.hpp"
#include "skeletons/Seq.hpp"
#include "skeletons/DepthBounded.hpp"
#include "skeletons/StackStealing.hpp"
#include "skeletons/Budget.hpp"
enum ... |
// Copyright 2018 The SwiftShader 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 b... |
// 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... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018 www.open3d.org
//
// Permissio... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/SimpleTypes.hpp>
#include <RED4ext/Types/generated/red/Event.hpp>
namespace RED4ext
{
namespace game::ui {
struct SetupOptionButtonForAttribu... |
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "IrrCompileConfig.h"
#ifdef _IRR_COMPILE_WITH_OPENGL_
#include "irrTypes.h"
#include "COpenGLTexture.h"
#include "COpenGLDriver.h"
#includ... |
/*
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 not use this f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.