text stringlengths 7 961k |
|---|
/*
==============================================================================
This is an automatically generated file created by the Jucer!
Creation date: 17 Sep 2009 3:29:44 pm
Be careful when adding custom code to these files, as only the code within
the "//[xyz]" and "//[/xyz]" sections will be ret... |
//@COPYRIGHT@//
//
// Copyright (c) 2011, Tomoto S. Washio
// 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, ... |
/***********************************************************************************************************************
* *
* staticnet v0.1 ... |
#define SC_INCLUDE_FX
#include "systemc.h"
int sc_main(int argc, char** argv)
{
sc_bigint<3> big;
cout << big(3,2) << endl;
cout << "Program completed" << endl;
return 0;
} |
#include <stdlib.h>
#include <string.h>
#include <cinttypes>
#include <string>
#include <lldb/API/SBExpressionOptions.h>
#include "src/llv8-constants.h"
#include "src/llv8.h"
namespace llnode {
namespace v8 {
namespace constants {
using lldb::addr_t;
using lldb::SBAddress;
using lldb::SBError;
using lldb::SBProces... |
// listing 4.21 - newstrct.cpp -- using new with a structure
#include <iostream>
struct inflatable
{
char name[20];
float volume;
double price;
};
int main()
{
using namespace std;
inflatable * ps = new inflatable; // alloc memory for structure
cout << "Enter name of inflatable item: ";
cin.get(ps... |
// Copyright (c) 2018 Intel Corporation
//
// 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... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... |
#include <bits/stdc++.h>
#define ld long double
#define ll long long int
//Constant declarations
#define INF 1000000000000000000LL
//IO modifiers
#define fast ios_base::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);
#define io1 std::ifstream in("in.txt");std::cin.rdbuf(in.rdbuf());
#define io2 std::ofstream... |
#include "camera.hpp"
#include "glad/glad.h"
#include <vector>
Camera::Camera(glm::vec3 position, glm::vec3 up, float yaw, float pitch)
: Front(glm::vec3(0.0f, 0.0f, -1.0f)), MovementSpeed(SPEED), MouseSensitivity(SENSITIVITY), fov(FOV)
{
Position = position;
WorldUp = up;
Yaw = yaw;
Pitch = pitch;... |
#define GLEW_STATIC
#define STB_IMAGE_IMPLEMENTATION
#include <glew.h>
#include <glfw3.h>
#include <iostream>
#include <stb_image.h>
#include "shader/shader.h"
int screenWidth = 800;
int screenHeight = 600;
float vertices[] = {
1.0f, 1.0f, 0.0f,
1.0f, -1.0f, 0.0f,
-1.0f, -1.0f, 0.0f,
-1.0f, 1.0f, 0.0... |
#include "ipc/ipc_message.h"
namespace IPC
{
Message::Message(void)
{
}
Message::~Message(void)
{
}
} |
#ifndef INCLUDE_AXXEGRO_EVENT_EVENTSOURCE
#define INCLUDE_AXXEGRO_EVENT_EVENTSOURCE
#include <allegro5/allegro.h>
#include "../resources/Resource.hpp"
#include "UserEvent.hpp"
#include <allegro5/events.h>
#include <type_traits>
namespace al {
class EventSource {
public:
virtual ALLEGRO_EVENT_SOURCE* ptr() cons... |
// 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.
#if defined(HAVE_CONFIG_H)
#include <config/pinecoin-config.h>
#endif
#include <interfaces/node.h>
#include <qt/bitcoin.h>
#... |
/*
* Copyright (C) 2016 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... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*++
Module Name:
module.c
Abstract:
Implementation of module related functions in the Win32 API
--... |
#define BOOST_TEST_MODULE Freudcoin Test Suite
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include "db.h"
#include "txdb.h"
#include "main.h"
#include "wallet.h"
#include "util.h"
CWallet* pwalletMain;
CClientUIInterface uiInterface;
extern bool fPrintToConsole;
extern void noui_connect();
... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
// 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 "cc/blink/web_layer_impl.h"
#include "base/bind.h"
#include "base/debug/trace_event_impl.h"
#include "base/lazy_instance.h"
#include "base/strin... |
//=================================================================================================
/*!
// \file src/mathtest/dmatsmatmult/DHbDCb.cpp
// \brief Source file for the DHbDCb dense matrix/sparse matrix multiplication math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// Thi... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CParseHandlerLogicalInsert.cpp
//
// @doc:
// Implementation of the SAX parse handler class for parsing logical
// insert operators.
//------------------------------... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <ctype.h>
#include "nanobench.h"
#include "AndroidCodecBench.h"
#include "Benchmark.h"
#include "BitmapRegionDecoderBench.h"
#include "CodecBench.h"
#include "Codec... |
//===- GenQASM.cpp - Generate qasm output -------------------===//
//
// The LLVM Scaffold Compiler Infrastructure
//
// This file was created by Scaffold Compiler Working Group
//
//===----------------------------------------------------------------------===//
#include <sstream>
#include <algorith... |
/*
* Copyright 2016-present Facebook, 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 a... |
#include <string>
#include <string.h>
#ifdef LINUX
#include <unistd.h> // getuid
#include <lsf-api/media-api.h>
#include <assert.h>
#include <stdio.h>
#endif
#define LSF_MEDIA_USB_MEMORY "usb_memory"
#ifdef LINUX
#include <glib.h>
#include <gio/gio.h>
#else
#import <Foundation/Foundation.h>
#import <Endpo... |
#include <FinalDecisionProcessorDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::FinalDecisionProcessorDoit2_ptr FinalDecisionProcessorDoit2_next(nullptr);
Info::FinalDecisionProcessorDoit2_clbk FinalDecisionProcessorDoit2_user(nullptr);
... |
#include "JSONLoader.h"
#include <fstream>
#include <iomanip>
#include "mmgr/mmgr.h"
json JSONLoader::Load(const char * File) const
{
// MYTODO: Use PhysFS and check if file exists!
bool ret = true;
// --- Create JSON object ---
json jsonfile;
if (File == nullptr)
{
ret = false;
CONSOLE_LOG("|[error]:... |
#include <iostream>
#include <tuple>
#include <vector>
using namespace std;
// ----- ReadGraph -----
// Referring to ymatsux-san's source code: https://atcoder.jp/contests/abc138/submissions/7016619
struct Edge
{
int src, dst, id, rev;
// ll cost;
Edge() {}
Edge(int src, int dst, int id, int rev) : src{src}, ... |
/**
* \file IdecMPerson_vecs.cpp
* database access for table TblIdecMPerson (implementation of vectors)
* \author Alexander Wirthmueller
* \date created: 30 Dec 2017
* \date modified: 30 Dec 2017
*/
/******************************************************************************
class TblIdecMPerson::VecVS... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Platform.hpp>
# if defined(SIV... |
// 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 <qrimagewidget.h>
#include <guiutil.h>
#include <QApplication>
#include <QClipboard>
#include <QDrag>
#include <QM... |
// Generated from /POI/java/org/apache/poi/hssf/record/ScenarioProtectRecord.java
#pragma once
#include <fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <org/apache/poi/hssf/record/StandardRecord.hpp>
struct default_i... |
/**
* \file dnn/src/arm_common/conv_bias/fp32/f32_direct_nchw44_algo.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licen... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//USB device/host/OTG controller
namespace UsbIntst{ ///<OTG Interrupt Status
using Addr = Register::Address<0x50008100,0x00000000,0x00000000,unsigned>;
///Timer time-out.
constexpr Register::FieldLocation<Addr,Register::mas... |
/*
* Wire
* Copyright (C) 2016 Wire Swiss GmbH
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... |
#include "parameter_loader.h"
namespace multiverso
{
namespace hybrid_logistic_regression
{
ParameterLoader::ParameterLoader(Option *option,
logistic_regression *lr_ptr)
{
option_ = option;
lr_ptr_ = lr_ptr;
parse_and_request_count_ = 0;
... |
#include "transactionrecord.h"
#include "wallet.h"
#include "base58.h"
/* Return positive answer if transaction should be shown in list.
*/
bool TransactionRecord::showTransaction(const CWalletTx &wtx)
{
if (wtx.IsCoinBase())
{
// Ensures we show generated coins / mined transactions at depth 1
... |
#include "source_clang.h"
#include "config.h"
#include "terminal.h"
#include "project_build.h"
#ifdef JUCI_ENABLE_DEBUG
#include "debug_lldb.h"
#endif
#include "info.h"
#include "dialogs.h"
#include "ctags.h"
#include "selection_dialog.h"
#include "filesystem.h"
#include "compile_commands.h"
#include "usages_clang.h"
#... |
/*************************************************************************/
/* gltf_mesh.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* 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... |
#include "gtest/gtest.h"
#include <pugixml/pugixml.hpp>
TEST (PugiXmlTest, ParseExampleXmlConfig) {
// TODO: Add proper xmpl parsing tests
pugi::xml_document doc;
pugi::xml_parse_result result = doc.load_file("audio_app_cfg.xml");
if (result.status != pugi::status_ok)
{
std::cout << "File does... |
#include <gnc_functions.hpp>
//include API
int main(int argc, char** argv)
{
//initialize ros
ros::init(argc, argv, "gnc_node");
ros::NodeHandle gnc_node;
//initialize control publisher/subscribers
init_publisher_subscriber(gnc_node);
// wait for FCU connection
wait4connect();
//wait for used to switch... |
///////////////////////////////////////////////////////////////////////////////
//
// @@@ START COPYRIGHT @@@
//
// 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 o... |
/* -------------------------------------------------------------------------
*
* fe-connect.cpp
* functions related to setting up a connection to the backend
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright... |
/**
* Morpheus_MatrixOperations.hpp
*
* EPCC, The University of Edinburgh
*
* (c) 2021 - 2022 The University of Edinburgh
*
* Contributing Authors:
* Christodoulos Stylianou (c.stylianou@ed.ac.uk)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compli... |
/*
Longest Substring Of All Vowels in Order
https://leetcode.com/problems/longest-substring-of-all-vowels-in-order/
A string is considered beautiful if it satisfies the following conditions:
Each of the 5 English vowels ('a', 'e', 'i', 'o', 'u') must appear at least once in it.
The letters must be sorted in alphabeti... |
#ifndef _DREAM_EQUATIONS_POLOIDAL_FLUX_HYPERRESISTIVE_DIFFUSION_TERM_HPP
#define _DREAM_EQUATIONS_POLOIDAL_FLUX_HYPERRESISTIVE_DIFFUSION_TERM_HPP
#include "FVM/config.h"
#include "FVM/Equation/DiffusionTerm.hpp"
#include "FVM/Interpolator1D.hpp"
#include "FVM/Grid/Grid.hpp"
#include "FVM/UnknownQuantityHandler.hpp"
n... |
// ********************************************************
// This C++ code was automatically generated by ml2cpp (development version).
// Copyright 2020
// https://github.com/antoinecarme/ml2cpp
// Model : AdaBoostClassifier_Pipeline
// Dataset : BinaryClass_10
// This CPP code can be compiled using any C++-17 c... |
/**
* Copyright (C) 2012-2015 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// File: typedesc.cpp
//
//
// This file contains definitions for methods in the code:TypeDesc class and its
// ... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__strdup_delete_char_84_bad.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__strdup_delete.label.xml
Template File: sources-sinks-84_bad.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Manageme... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <ImGui/ImGuiPass.h>
#include <AzFramework/Input/Devices/Gamepad/InputDeviceGamepad.h>
#i... |
// This code is being distributed with no warranties whatsoever.
//
// Author: Amy Tabb. Original release circa 2016. Current date May 30, 2018.
// small updates Dec. 3 2018
//
// If you use this code to calibrate a robot in an academic setting, please cite this paper! Thanks a bunch.
//@article{tabb_solving_2017,
... |
//dyncast2.cpp
//tests dynamic casts
//RTTI must be enabled in compiler
#include <iostream>
#include <typeinfo> //for dynamic_cast
using namespace std;
////////////////////////////////////////////////////////////////
class Base
{
protected:
int ba;
public:
Base() : ba(0)
{ }
... |
// Copyright (c) 2022 Kingsley Chen <kingsamchen at gmail dot com>
// This file is subject to the terms of license that can be found
// in the LICENSE file.
#include <string>
#include <string_view>
#include "doctest/doctest.h"
#include "esl/strings.h"
namespace strings = esl::strings;
namespace {
// clang-format ... |
#include "defs.h"
bool ERdrBltFlip32_tn_op_ad(BLTFLIP_PARAMS)
{
EINT32 xctr;
unsigned EINT32 sc;
unsigned EINT32 *pdd = (unsigned EINT32 *)dst;
unsigned EINT32 *psd = (unsigned EINT32 *)src;
while (h)
{
for (xctr = 0; xctr < w; xctr++)
{
sc = *psd;
sc = EBCODE_MACRO_TINT(sc, 0x7F7F7F, colorize);
... |
/**
* Copyright (C) 2013 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
#ifdef __APPLE__
#define _DARWIN_UNLIMITED_STREAMS
#endif
#include <iostream>
#include <fstream>
#include <string>
#include <stack>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <zlib.h>
#... |
#include "ODEFacade.h"
#include <vcg/complex/algorithms/inertia.h>
#include <algorithm>
#include <cmath>
using namespace std;
using namespace vcg;
bool ODEFacade::m_initialized;
float ODEFacade::m_bounciness = 0.1f;
float ODEFacade::m_friction = 10.f;
dSpaceID ODEFacade::m_space;
std::vector<dContact> ODEFacade::m... |
// Copyright Aleksey Gurtovoy 2000-2004
//
// 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)
//
// Preprocessed version of "boost/mpl/greater_equal.hpp" header
// -- DO NOT modify by hand!
namespace bx { namesp... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef WIN32
// for posix_fallocate
#ifdef __linux__
#define _POSIX_C_SOURCE 2001... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//*****************************************************************************
// File: request.cpp
//
//
// CorDataAccess::Request implementation.
//
//****************************... |
// Copyright (c) 2017-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... |
#include "XML_Tree.hpp"
#include <iostream>
#include <iomanip>
#include <map>
using namespace std;
XMLTree::XMLTree( ): rootNode( NULL ), nodeCount( 0 )
{
}
STATUS XMLTree::addTheRoot( Tree_node* Ptr_rootNode )
{
if ( !isTreeEmpty( ) )
return ERROR;
incNodeCount( );
rootNode = Ptr_rootNode;
return OK;
}
... |
#include "sa_pch.h" |
// Copyright 2014 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 <memory>
#include <string>
#include <sysexits.h>
#include <base/cancelable_callback.h>
#include <base/command_line.h>
#include <base/json/jso... |
class Solution {
public:
ListNode* XXX(ListNode* head) {
if(head==NULL) return NULL;
ListNode H(-1), *p;
for(H.next=head, p=head->next; p; p=p->next)
if(head->val!=p->val) head=p;
else head->next=p->next;
return H.next;
}
}; |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__char_environment_ofstream_68b.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-68b.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: environment Read input from an env... |
/*
Copyright (C) 2019 MIRACL UK Ltd.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This progr... |
// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef CONCURRENCY_QUEUE_DISK_BACKED_QUEUE_WRAPPER_HPP_
#define CONCURRENCY_QUEUE_DISK_BACKED_QUEUE_WRAPPER_HPP_
#include <list>
#include <string>
#include "concurrency/auto_drainer.hpp"
#include "concurrency/queue/passive_producer.hpp"
#include "concurrency/wai... |
/*
* 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... |
//
// chngpwd.cpp
//
// Copyright (c) Microsoft Corp, 1998
//
// This file contains source code for testing protected storage's key
// backup and recovery capabilities under a real world scenario, by creating
// a local user account, performing a data protection operation, and then
// change the pwd, then perform... |
/**
* Copyright (C) 2017 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usefu... |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... |
/*******************************************************************************
* Copyright 2020-2022 Intel Corporation
* Copyright 2020-2022 Codeplay Software Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain... |
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// frmOptions.cpp - The main options dialogue
//
////////////////////////////////////... |
#include "verbatim_shader.hpp"
#if defined(USE_LD)
#include "glsl_shader_source.hpp"
#endif
Shader::Shader(GLenum type, const char* part1) :
m_id(dnload_glCreateShader(type)),
m_num_parts(1)
{
m_parts[0] = part1;
this->compile();
}
void Shader::compile() const
{
#if defined(USE_LD)
std::string pretty_sour... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 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... |
/**
* \file PnlWznmMdlRec_blks.cpp
* job handler for job PnlWznmMdlRec (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... |
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <sys/time.h>
#include <unistd.h>
#include <pwd.h>
#define MAX_PATH FILENAME_MAX
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <linux/if.h>... |
#include "../include/common.h"
int main( )
{
cv::Mat a = (cv::Mat_<float>(3,3) << 1,2,3,4,5,6,7,8,9);
cv::Mat b;
b.push_back(a.row(0));
b.push_back(a.row(2));
b.push_back(a);
cout << b <<endl;
} |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2013 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "chip8.h"
#define SET_DECODE_TO(opmask, cb) m_opcodes[opmask] = &Chip8Assembler::cb;
std::array<CHIP8Decoder::OpCodeCallback, 0x10> CHIP8Decoder::m_opcodes = {
&CHIP8Decoder::decode0xxx, &CHIP8Decoder::decode1xxx, &CHIP8Decoder::decode2xxx,
&CHIP8Decoder::decode3xxx, &CHIP8Decoder::decode4xxx, &C... |
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* 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 (c) 2012-2015 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 "random.h"
#include "scheduler.h"
#include "test/test_sov.h"
#include <boost/bind.hpp>
#include <boost/random/mers... |
#include "thread_pool.h"
#include <chrono>
#include <cassert>
#include <csignal>
#include <cmath> // round
#include <unordered_map>
#if __APPLE__ || __linux__
# include <pthread.h>
#endif
#if __has_include("debugging.h")
# include "debugging.h"
#endif
#define POOL_TASK_DEBUG 0
namespace rpp
{
////////////////////... |
#include "telabrium/safe_val.h" |
/* MIT License
*
* Copyright (c) 2021 Assign Onward
*
* 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, modif... |
#include "gfw_model.h"
#include "gfw_shader.h"
#include <fstream>
namespace gfw
{
void Model::CreateVertexBuffer(ID3D11Device* device, void* vertices, UINT vertexCount, UINT shaderInputLayout)
{
HRESULT result;
D3D11_BUFFER_DESC bufferDesc;
D3D11_SUBRESOURCE_DATA vertexData;
m_vertexSizeInBytes = VertexSize... |
#include "../common/create_streampair.hpp"
#include "../common/lsltypes.hpp"
#include <atomic>
#include <catch2/catch.hpp>
#include <list>
#include <lsl_cpp.h>
#include <string>
#include <thread>
// clazy:excludeall=non-pod-global-static
template <typename T> struct sample_value { static const T val; };
template <> c... |
/*
Copyright (c) 2017 Mobile Robots Laboratory at Poznan University of Technology:
-Jan Wietrzykowski name.surname [at] put.poznan.pl
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 Sof... |
#include "Wait_Train.h"
#include "Controller.h"
using namespace AISCRIPT;
IMPLEMENT(Wait_Train);
bool Wait_Train::execute(aithread &thread) const
{
// Parameters
BYTE bCount;
WORD wUnitType;
thread.readTuple( std::tie(bCount, wUnitType) );
// Debug
thread.saveDebug(Text::Green, this->getOpcode(), "%u %s... |
// Copyright (c) 2017 The DIVI Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bip38.h"
#include "base58.h"
#include "hash.h"
#include "pubkey.h"
#include "util.h"
#include "utilstrencodings.h"
#includ... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2019 Intel Corporation
#ifndef OPENCV_GAPI_GTRANSFORM_HPP
#define OPENCV_GAPI_GTRANSFORM_HPP
#include <f... |
/*
* 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 <algorithm>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <chrono>
using namespace std::chrono;
#define BEAM_COUNT 5
#define BEAM_STEPS 100
#define EPSILON_0 8.854187e-12
#define E_MESH_X 100
#define E_MESH_Y 50
#define MESH_SCALE_X 0.0001 //0.00
#define MESH_SCALE_Y 0.0... |
/*
* Copyright 2011 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... |
///////////////////////////////////////////////////////
// StretchRadioBtn.cc: A component class to show a Stretch type radio button
///////////////////////////////////////////////////////
#include "StretchRadioBtn.h"
#include "StretchCmdInterface.h"
#include <Xm/ToggleB.h>
////////////////////////////////////////////... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.