text stringlengths 5 1.04M |
|---|
/** _______________________________________________________________________
*
* RDPARM/PTRAJ: 2008
* _______________________________________________________________________
*
* This file is part of rdparm/ptraj.
*
* rdparm/ptraj is free software; you can redistribute it and/or modify
*... |
#include "ZFUINativeViewWrapper.h"
#include "protocol/ZFProtocolZFUIView.h"
ZF_NAMESPACE_GLOBAL_BEGIN
ZFOBJECT_REGISTER(ZFUINativeViewWrapper)
ZFOBJECT_ON_INIT_DEFINE_1(ZFUINativeViewWrapper,
ZFMP_IN(void *, wrappedNativeView))
{
this->objectOnInit();
zfself::wrappedNativeView(wrapp... |
#include <AK/HashTable.h>
#include <AK/StringBuilder.h>
#include <Kernel/FileSystem/Custody.h>
#include <Kernel/FileSystem/Inode.h>
#include <Kernel/Lock.h>
static Lockable<HashTable<Custody*>>& all_custodies()
{
static Lockable<HashTable<Custody*>>* table;
if (!table)
table = new Lockable<HashTable<Cu... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_CHRID.hpp>
START_ATF_NAMESPACE
struct _robed_hp_inform_zocl
{
_CHRID idDster;
_CHRID idPerformer;
unsigned __int16 wRobedHP;
... |
#ifndef PIPES_SET_AGGREGATOR_HPP
#define PIPES_SET_AGGREGATOR_HPP
#include "pipes/operator.hpp"
#include "pipes/pipeline_base.hpp"
#include "pipes/helpers/assignable.hpp"
#include "pipes/helpers/warnings.hpp"
#include <functional>
#include <iterator>
PIPES_DISABLE_WARNING_PUSH
PIPES_DISABLE_WARNING_MULTIPLE_ASSIGNM... |
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright 2019-2021 Heal Research
#include <doctest/doctest.h>
#include "core/dataset.hpp"
#include "core/format.hpp"
#include "core/pset.hpp"
#include "operators/creator.hpp"
#include "operators/crossover.hpp"
#include "operators/mutation.hpp"
namespace Ope... |
/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
* 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 noti... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
#pragma once
#include <ctime>
#include "../third_party/pcg32/pcg32.h"
#include "../third_party/OptimizedHeaders/mat.hpp"
namespace rum
{
static pcg32 gen(time(NULL) << 8, time(NULL) >> 8); //generator for all rng
class RngInit
{
protected:
float lowest = 0, highest = 1;
public:
Rn... |
/** \file HSASegment.hh
*
* Auto generated C++ code started by /PhD_Accounts/Phd_Accounts/a.monazzah/gem5-PhD/src/mem/slicc/symbols/Type.py:457
*/
#ifndef __HSASegment_HH__
#define __HSASegment_HH__
#include <iostream>
#include <string>
// Class definition
/** \enum HSASegment
* \brief ...
*/
enum HSASegment ... |
// Copyright (c) 2017 The Zcash Core developers
// Copyright (c) 2020 The PIVX developers
// Copyright (c) 2021-2022 The DECENOMY 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 ... |
/****************************************************************/
/* */
/* UserAccountsDlg.cpp */
/* */
/* Implementation of the CUserAccountsDlg class. */
/* */
/* Programmed by xingyun86 */
/* Copyright @2017 */
/* http://www.ppsbbs.te... |
#include "src/web_server/http/form_validation.hh"
#include "sim/sql_fields/blob.hh"
#include "sim/sql_fields/bool.hh"
#include "sim/sql_fields/varbinary.hh"
#include "simlib/concat_tostr.hh"
#include "simlib/enum_with_string_conversions.hh"
#include "simlib/random_bytes.hh"
#include "simlib/ranges.hh"
#include "simlib/... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
#include "Perceptron.h"
Perceptron::Perceptron(int weights)
{
_neuron = std::make_unique<Neuron>(weights);
}
double Perceptron::feedforward(const std::vector<double> inputs)
{
double output = _neuron->feedforward(inputs, _bias);
return output;
}
void Perceptron::train(const std::vector<double> inputs, do... |
#include <slam/occupancy_grid.hpp>
#include <algorithm>
const float kGridWidth = 15.0f;
const float kGridHeight = 15.0f;
const float kMetersPerCell = 0.05f;
OccupancyGrid generate_uniform_grid(int8_t logOdds);
OccupancyGrid generate_constricted_grid(double openingWidth);
int main(int argc, char** argv)
{
// Cr... |
/*
* Copyright (c) 2012-2013, Intel 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 copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
#include <iostream>
#include <cstdlib>
#include <cstdio>
using namespace std;
int a, b, x, y;
int solve(int start, int end, int x, int y) {
int d1 = abs(start - x) + abs(end - y);
int d2 = abs(start - y) + abs(end - x);
int ans = min(abs(start - end), min(d1, d2));
return ans;
}
int main() {
fre... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (C) 2008-2016 Ryo Suzuki
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include <array>
# include "Fwd.hpp"
# include "Color.hpp"
# include "HSV.hp... |
#include "play_noughts_and_crosses.hpp"
#include "joueur.hpp"
#include "random.hpp"
#include <iostream>
#include <p6/p6.h>
void play_noughts_and_crosses() {
auto ctx = p6::Context{{720, 720, "Morpion Vert//Rouge"}};
float n = 3;
Joueur J1;
Joueur J2;
J1.setSigne('x');
J2.setSigne('o');
Jou... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: requests.proto
#include "requests.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite_inl.h>
#incl... |
/*
* Copyright 2001-2018 Adrian Thurston <thurston@colm.net>
*
* 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, cop... |
#include "mbed.h"
#include "stepper.hpp"
///*** PROGRAMME DE TEST ***///
//** Using MBED OS 5 **//
/* TARGET : F767ZI */
DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalOut led3(LED3);
Ticker blink;
InterruptIn bp(USER_BUTTON);
Stepper stepper1(PA_3,PC_0);
void blink_led(void)
{
... |
// This file is auto-generated. Do not edit!
#include "precomp.hpp"
#include "cvconfig.h"
#include "opencl_kernels_video.hpp"
#ifdef HAVE_OPENCL
namespace cv
{
namespace ocl
{
namespace video
{
static const char* const moduleName = "video";
struct cv::ocl::internal::ProgramEntry bgfg_knn_oclsrc={moduleName, "bgfg_... |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <string>
#include "flutter/shell/platform/common/cpp/client_wrapper/include/flutter/binary_messenger.h"
#include "flutter/shell... |
//===----------------------------------------------------------------------===//
//
// 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 (c) 2018 The Mantle Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <blockfilter.h>
static void ConstructGCSFilter(benchmark::Bench& bench)
{
GCSFilter::Element... |
/*************************************************************************/
/* gi_probe.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "stdio.h"
#include "vector"
#include "unordered_map"
#include "set"
using namespace std;
class WordFilter
{
public:
unordered_map<string, set<int>> pre_map;
unordered_map<string, set<int>> suf_map;
vector<string> words;
WordFilter(vector<string> &words)
{
this->words = words;
... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <legacy/graph_tools.hpp>
#include "gna_graph_tools.hpp"
#include "gna_plugin_log.hpp"
#include "layers/gna_layer_info.hpp"
namespace GNAPluginNS {
/**
* @brief returns a pointer to 2D reshaped data to satisf... |
// 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.
#define BOOST_TEST_MODULE SapoCoin Test Suite
#include <banman.h>
#include <net.h>
#include <memory>
#include <boost/test/... |
// WNetTesterDlg.cpp : implementation file
//
#include "stdafx.h"
#include "WNetTester.h"
#include "WNetTesterDlg.h"
#include "afxdialogex.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialogEx
{
public:
CAboutDlg();
// Dialog Data
#ifdef AFX_DESI... |
/*
[auto_generated]
boost/numeric/odeint/iterator/adaptive_time_iterator.hpp
[begin_description]
Iterator for iterating throught the solution of an ODE with adaptive step size. The dereferenced types containes also the time.
[end_description]
Copyright 2012-2013 Karsten Ahnert
Copyright 2012-2013 Mario Mulans... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
... |
#include <Functions/IFunction.h>
#include <Functions/FunctionFactory.h>
#include <DataTypes/DataTypeString.h>
#include <DataTypes/DataTypeNullable.h>
#include <DataTypes/DataTypeDateTime.h>
#include <common/DateLUTImpl.h>
#include <Core/Field.h>
namespace DB
{
namespace ErrorCodes
{
extern const int BAD_ARGUMENT... |
/**
* Copyright (c) 2006-2020 LOVE Development Team
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* ... |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#include "config/timer.h"
#if defined(STM32PLUS_F1_MD) || defined(STM32PLUS_F1_MD_VL)
using namespace stm... |
// Copyright (c) 2017-2018, The Moneda 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... |
#include "Commands/commands.h"
#include "Utils/utils.h"
int commands::helpers::is_ntfs(std::shared_ptr<Disk> disk, std::shared_ptr<Volume> vol)
{
if ((vol->filesystem() != "NTFS") && (vol->filesystem() != "Bitlocker"))
{
std::cerr << "[!] NTFS volume required" << std::endl;
return 0;
}
return 1;
}
std::share... |
// Copyright (c) 2014 Anton Bikineev
// 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)
static const boost::array<boost::array<typename table_type<T>::type, 3>, 720
#if LDBL_M... |
#pragma once
#include <Glad/glad/glad.h>
#include <vector>
namespace cage
{
template <class VertexType>
class VertexBuffer
{
public:
VertexBuffer(bool storeLocalCopy = false) : m_id(0), m_local(storeLocalCopy), m_size(0)
{
glCreateBuffers(1, &m_id);
}
inline void Bind()
{
glBindBuffer(GL_ARRAY_B... |
// automaticly generated by update_resources.py
#include <html_images_uptime_svg.h>
REGISTRY_RESOURCE_FILE(RES_html_images_uptime_svg)
const std::string &RES_html_images_uptime_svg::filename() {
static const std::string s = "html/images/uptime.svg";
return s;
}
const int RES_html_images_uptime_svg::bufferSi... |
#include "blinkpch.h"
#include "Log.h"
#include "spdlog/sinks/stdout_color_sinks.h"
namespace Blink
{
std::shared_ptr<spdlog::logger> Log::s_CoreLogger;
std::shared_ptr<spdlog::logger> Log::s_ClentLogger;
void Log::Init()
{
spdlog::set_pattern("%^[%T] %n: %v%$");
s_CoreLogger = spdlog::stdout_color_mt("BLINK"... |
/*
* Copyright 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" f... |
// -*- C++ -*-
//
// ======================================================================
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... |
#ifndef _CISCO_IOS_XE_NATIVE_193_
#define _CISCO_IOS_XE_NATIVE_193_
#include <memory>
#include <vector>
#include <string>
#include <ydk/types.hpp>
#include <ydk/errors.hpp>
#include "Cisco_IOS_XE_native_0.hpp"
#include "Cisco_IOS_XE_native_133.hpp"
#include "Cisco_IOS_XE_native_175.hpp"
#include "Cisco_IOS_XE_native_... |
/** @file lcr4500.cpp
* @brief Contains methods to interface with DLP LightCrafter 4500 EVM
* @copyright 2014 Texas Instruments Incorporated - http://www.ti.com/ ALL RIGHTS RESERVED
*/
#include <projector/dlp/common/returncode.hpp>
#include <projector/dlp/common/debug.hpp>
#include <projector/dlp/common/other.... |
// Copyright John Maddock 2020.
// 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)
//
// Basic sanity check that header <boost/math/filters/daubechies.hpp>
// #includes all the fi... |
// 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 "remoting/host/server_log_entry_host.h"
#include <memory>
#include "base/strings/stringize_macros.h"
#include "build/build_config.h"
#include "... |
void Utils::sleep( const quint16 &t ) {
QTime dieTime = QTime::currentTime().addMSecs(t);
while( QTime::currentTime() < dieTime ) {
QCoreApplication::processEvents( QEventLoop::AllEvents, 100 );
}
}
// usleep - suspend execution for microsecond intervals
// #include <unistd.h>
// ... |
/*
* Copyright 2018 The Polycube 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... |
#ifndef OPENCL_IMAGE2D_ARRAY_HPP
#define OPENCL_IMAGE2D_ARRAY_HPP
#ifdef OPENCL_2
#include <CL/cl2.hpp>
#else
#ifdef __APPLE__
#include <OpenCL/cl.hpp>
#else
#include <CL/cl.hpp>
#endif
#endif
namespace nova {
template <typename T>
class Image2DArray {
public:
Image2DArray() = default;
template ... |
#include "PlatoIncludes.h"
#include "Strings.h"
#include "ClassTypeInfo.h"
#include "Identifier.h"
#include "IdentifierRegex.h"
#include "PropertyScopes.h"
#include "PropertyModes.h"
#include "Property.h"
#include "ConfigurePhases.h"
#include "ResolutionModes.h"
#include "Container.h"
#include "ThreadLocalVariable.h"
#... |
//If not included: compiler error "C1010" with MSVC++.
#include "../stdafx.h"
#include "../global.h" //for type "BYTE"
//This class is the base class for classes implementing the Access to
//the ModelSpecific Registers
//I also could have put every single implementation (e.g.
//Windows/MFC, wxWidgets, Linux) into a ... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* 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 noti... |
#include <iostream>
#include "circular_buffer.hpp"
using namespace std;
int main() {
itis::circular_buffer<int> buf = itis::circular_buffer<int>(8);
for (int num = 1; num < 16; num++) {
buf.EnqueueBack(num);
}
buf.Resize(10);
int num = 99;
buf.EnqueueBack(num); num = 11; buf.EnqueueFront(num);
cout... |
#ifndef __AUDIO_PIPE_HPP__
#define __AUDIO_PIPE_HPP__
#include <string>
#include <list>
#include <mutex>
#include <libwebsockets.h>
class AudioPipe {
public:
enum LwsState_t {
LWS_CLIENT_IDLE,
LWS_CLIENT_CONNECTING,
LWS_CLIENT_CONNECTED,
LWS_CLIENT_FAILED,
LWS_CLIENT_DISCONNECTING,
LWS_CLIE... |
#include <QCoreApplication>
#include <QStandardPaths>
#include <QFileInfo>
#include <QString>
#include <QDir>
#include <QDebug>
#include "Logger.h"
#include "wallet/api/wallet2_api.h"
// default log path by OS (should be writable)
static const QString defaultLogName = "arqma-wallet-gui.log";
#if defined(Q_OS_IOS)
... |
//Sample provided by Fabio Galuppo
//October 2016
//http://www.simplycpp.com
#ifndef SAMPLE2_HPP
#define SAMPLE2_HPP
int sample2_main();
#endif /* SAMPLE2_HPP */ |
#include "gear_core_common.h"
#include "RenderSurface.h"
#include "ARC/src/StringConversion.h"
#include "directx12/D3D12Context.h"
#include "vulkan/VKContext.h"
using namespace gear;
using namespace graphics;
using namespace miru;
using namespace miru::crossplatform;
RenderSurface::RenderSurface(CreateInfo* pCreateI... |
// 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 <rpc/blockchain.h>
#include <amount.h>
#include <chainparams.h>
#include <ch... |
#include "../include/virtual.h"
Virtual::Virtual()
{}
/////////////
Virtual::~Virtual()
{}
/////////////
/////////////
/////////////
/////////////
/////////////
/////////////
/////////////
///////////// |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// This file implements the "bridge" between Java and C+... |
#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
extern bool fWalletUnlockStakingOnly;
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
QDialog(parent),... |
// Copyright 2016-2018 Chris Conway (Koderz). All Rights Reserved.
#include "RuntimeMeshComponentPlugin.h"
#include "RuntimeMeshRendering.h"
#include "RuntimeMeshSectionProxy.h"
FRuntimeMeshVertexBuffer::FRuntimeMeshVertexBuffer()
: VertexSize(-1), NumVertices(0), UsageFlags(EBufferUsageFlags::BUF_None)
{
}
void F... |
#include <cassert>
#include <chrono>
#include "../../../include/meanshift.h"
#include "../../../include/container_io.h"
#include "../constants_3d.h"
int main(int argc, char *argv[]){
const float bandwidth = std::stof(argv[1]);
const float radius = std::stof(argv[2]);
const float min_distance = std::stof(a... |
// peter 02:20 20151219
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
using namespace cv;
static void help()
{
printf("\n1. This program demonstrates OpenCV drawing and text output functions.\n"
"Usage:\n"
" ./drawing\n");
}
static Scalar randomColor(RNG& rn... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_wchar_t_calloc_53d.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml
Template File: sources-sinks-53d.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory... |
//------------------------------------------------------------------------------
// File: MType.cpp
//
// Desc: DirectShow base classes - implements a class that holds and
// manages media type information.
//
// Copyright (c) 1992-2001 Microsoft Corporation. All rights reserved.
//-----------------------------... |
#include <iostream>
#include <sstream>
#include <cctype>
#include <algorithm>
using namespace std;
int main()
{
string s;
getline(cin, s);
bool seen[26];
fill_n(seen, 26, false);
stringstream ss;
for (string::const_iterator it = s.begin(); it != s.end(); ++it) {
switch (*it) {
case 'A':
cas... |
// This source file is part of Epoxy licensed under the MIT License.
// See LICENSE.md file for details.
#include "code_gen.h"
#include "version.h"
#include <inja.hpp>
#include <sstream>
namespace epoxy {
CodeGen::CodeGen(std::string template_data)
: template_data_(std::move(template_data)) {}
CodeGen::~CodeGe... |
//=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... |
/*
* Copyright (C) 2018 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... |
#pragma once
#include <aw/opengl/types.hpp>
#include <string_view>
namespace aw
{
class ShaderStage
{
public:
enum class Type
{
Vertex,
Fragment,
};
public:
ShaderStage(Type type);
~ShaderStage();
bool loadFromPath(std::string_view path);
bool loadFromMemory(const char* content);
bool loadF... |
/*=============================================================================
Copyright (c) 1998-2003 Joel de Guzman
http://spirit.sourceforge.net/
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://ww... |
// Copyright (c) 2014-2019, 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... |
/** \file tb2system.hpp
* \brief System dependent functions.
*
*/
#ifndef TB2SYSTEM_HPP_
#define TB2SYSTEM_HPP_
#if __cplusplus > 199711L
#define FINAL final
#else
#define FINAL
#endif
extern const char* PrintFormatProb;
double cpuTime(); ///< \brief return CPU time in seconds with high resolution (microsecond... |
/* Copyright 2016 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... |
/*
-------------------------------------------------------------------------------
Copyright (c) 2009-2010 Nico de Poel
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, i... |
// Copyright (c) 2014-2018, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list o... |
// 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 <stddef.h>
#include <stdint.h>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/cont... |
/*
// Copyright (c) 2018 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
//
// File: ContingencyTableTest.cpp
// Created by: Julien Dutheil
// Created on: Thu Dec 09 14:20 2010
//
/*
Copyright or © or Copr. Bio++ Development Team, (November 17, 2004)
This software is a computer program whose purpose is to provide classes
for numerical calculus.
This software is governed by the CeCILL li... |
// Copyright (c) 2018, NVIDIA 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 copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
//#include <algorithm>
//#include <bitset>
//#include <cassert>
//#include <cctype>
//#include <climits>
//#include <cmath>
//#include <cstdio>
//#include <cstdlib>
//#include <cstring>
//#include <fstream>
//#include <iostream>
//#include <iomanip>
//#include <iterator>
//#include <list>
//#include <map>
//#include <n... |
// Copyright(c) 2020 Ken Okabe
// This software is released under the MIT License, see LICENSE.
#include "gtest/gtest.h"
extern "C" {
#include "null_command.h"
}
TEST(NullCommandTest, DoHasNoEffect) {
Command c = nullCommand->GetInstance();
c->Do(c);
}
TEST(NullCommandTest, DeleteHasNoEffect) {
... |
/*
* Ths code in this file is part of tcptrack. For more information see
* http://www.rhythm.cx/~steve/devel/tcptrack
*
* Copyright (C) Steve Benson - 2003
*
* tcptrack is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* th... |
#include "\z\havoc\addons\medical\script_component.hpp"
|
// Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_haxe_Exception
#include <haxe/Exception.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime_utils_ArrayBufferView
#include <lime/utils/ArrayBufferView.h>
#endif
#ifnd... |
//
// HAPWiFiHelper.hpp
// Homekit
//
// Created on: 08.08.2017
// Author: michael
//
#ifndef HAPWIFIHELPER_HPP_
#define HAPWIFIHELPER_HPP_
#include <esp_wps.h>
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiMulti.h>
#include <DNSServer.h>
#include <functional>
#include <vector>
#include "HTTPServer.hpp"... |
/**
* \file PnlWdbeSilRec_blks.cpp
* job handler for job PnlWdbeSilRec (implementation of blocks)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
using namespace std;
using namespace Sbecore;
using namespa... |
/**
* @file decode.cpp WebRTC Acoustic Echo Cancellation (AEC) -- Decode
*
* Copyright (C) 2010 Creytiv.com
*/
#include <re.h>
#include <rem.h>
#include <baresip.h>
#ifdef HAVE_PTHREAD
#include <pthread.h>
#endif
#include "aec.h"
struct aec_dec {
struct aufilt_dec_st af; /* inheritance */
struct aec *aec;
}... |
/**
* @file methods/ann/visitor/deterministic_set_visitor.hpp
* @author Marcus Edel
*
* This file provides an abstraction for the Deterministic() function for
* different layers and automatically directs any parameter to the right layer
* type.
*
* mlpack is free software; you may redistribute it and/or modify ... |
#include <iostream>
using namespace std;
int main() {
int A, B, C, D, diferenca;
cin >> A >> B >> C >> D;
diferenca = ((A * B) - (C * D));
cout << "DIFERENCA = " << diferenca << endl;
return 0;
} |
#include "State.hpp"
State::State() : newstate(0)
{
}
State::~State()
{
}
|
double Solution::findMedianSortedArrays(const vector<int> &A, const vector<int> &B)
{
int m = A.size(), n = B.size();
if (m > n) return findMedianSortedArrays(B, A);
int imin, imax, i, j;
imin = 0;
imax = m;
while (imin <= imax)
{
i = (imin + imax)/2;
j = (m+n+1)/2 - i;
... |
/*
* This source file is part of ArkGameFrame
* For the latest info, see https://github.com/ArkGame
*
* Copyright (c) 2013-2018 ArkGame 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 ... |
#ifndef SPROUT_FUNCTIONAL_POLYMORPHIC_GREATER_EQUAL_HPP
#define SPROUT_FUNCTIONAL_POLYMORPHIC_GREATER_EQUAL_HPP
#include <utility>
#include <sprout/config.hpp>
#include <sprout/utility/forward.hpp>
namespace sprout {
//
// greater_equal_t
// greater_equal_
//
struct greater_equal_t {
public:
tem... |
//+-------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1996 - 1996.
//
// File: clist.hxx
//
// Contents: Class to create and maintain a singly linked list.
//
// History: 28-Jun-96 MacM Created
//
... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmult/M9x7aM7x9a.cpp
// \brief Source file for the M9x7aM7x9a dense matrix/dense matrix multiplication math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.