text stringlengths 7 961k |
|---|
// Copyright (c) 2004 Daniel Wallin and Arvid Norberg
// 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,... |
//=========================================================
//
//This is a prog in the MutualInfo 0.9 package written by
// Hanchuan Peng.
//
//Disclaimer: The author of program is Hanchuan Peng
// at <penghanchuan@yahoo.com> and <phc@cbmv.jhu.edu>.
//
//The CopyRight is reserved by the author.
//
//Last modificat... |
#ifndef CENTURION_VK_LIBRARY_HEADER
#define CENTURION_VK_LIBRARY_HEADER
#ifndef CENTURION_NO_VULKAN
#include <SDL2/SDL.h>
#include <SDL2/SDL_vulkan.h>
#include "../../compiler/features.hpp"
#include "../../core/exception.hpp"
#include "../../core/str.hpp"
namespace cen {
/// \addtogroup video
/// \{
/**
* \class... |
//
// Load & Display Image.cpp
// Working with Opencv
//
// Created by Nikhil Ramesh on 27/10/19.
// Copyright © 2019 Nikhil Ramesh. All rights reserved.
//
#include "Load & Display Image.hpp"
#include<opencv2/opencv.hpp>
#include<iostream>
using namespace std;
using namespace cv;
int main()
{
Mat img = imread... |
/*************************************************************************/
/* os_windows.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "Connection.hpp"
#include "Client.hpp"
#include <functional>
#include <algorithm>
#include <boost/format.hpp>
using boost::asio::ip::tcp;
Connection::Connection(size_t id
, std::weak_ptr<Client> client
, std::shared_ptr<boost::asio::io_context> context
)
: m_id { id }
, m_log { (boost::form... |
#include "pch.h"
#include "Buffer.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLBuffer.h"
namespace Letgen
{
Ref<VertexBuffer> VertexBuffer::Create(uint32_t size)
{
switch (Renderer::GetAPI()) {
case RendererAPI::API::None:
LET_CORE_ASSERT(false, "None for API was chosen");
return nullptr;
... |
/* <editor-fold desc="MIT License">
Copyright(c) 2018 Robert Osfield
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, mod... |
#include <iostream>
#include <algorithm>
#include <time.h>
using namespace std;
string libros[39][3];
void cargarLibros(){
// Arreglo con categoria y descripcion
libros[0][0] = "Algoritmos";
libros[0][1] = "Algoritmos y Programacion (Guia para docentes)";
libros[0][2] = "Bill Gates";
libros[1][0] = "... |
// Copyright 2012 Cloudera 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 in wr... |
#include <cassert>
#include <cstring>
#include "simdjson/common_defs.h"
#include "simdjson/jsoncharutils.h"
#include "simdjson/numberparsing.h"
#include "simdjson/parsedjson.h"
#include "simdjson/stringparsing.h"
#include "simdjson/simdjson.h"
#include <iostream>
#define PATH_SEP '/'
WARN_UNUSED
really_inline bool ... |
/*
* @author Ryan Benasutti, WPI
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include "okapi/api/chassis/model/chassisModel.hpp"
#include "o... |
// Copyright (c) 2019 The 5GL developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "crypto/sha512.h"
#include "crypto/common.h"
#include <string.h>
// Internal implementation code.
namespace
{
/// Internal SHA-... |
// Copyright(c) 2017 POLYGONTEK
//
// 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 i... |
#include <gecko/zmq_sub_pub.hpp>
#include <gecko/time.hpp>
#include <gecko/color.hpp>
#include <zmq.hpp>
#include <iostream>
using namespace std;
Publisher::Publisher(): zmqBase(ZMQ_PUB){}
void Publisher::publish(zmq::message_t& msg){
// sock.send(msg);
// size_t sr = sock.send(msg, zmq::send_flags::none).v... |
/*
Resolucao:
Alroritmo de grafos, floyd-warshall
Armazena para cada instancia de k o valor em uma matriz tridimensional
As queries sao calculadas em O(1)
*/
#include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
const int INF = 0x3f3f3f3f;
int grafo[110][110][110];
int main()
{
... |
/*Claudio Ruz Castro*/
/*Ejercicio 1*/
//Nota:siempre incluyo librerias aunque no las utilice todas
#include <stdio.h>//libreria principal del programa
#include <stdlib.h>//libreria para el color
#include <string.h>//libreria para el caracter
#include <math.h>//libreria de formulas matemAaticas
int main(){//inicio d... |
// stdafx.cpp : source file that includes just the standard includes
// pnse.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h" |
#include "splash_state.h"
#include "mainmenu_state.h"
#include <sstream>
#include <iostream>
SplashState::SplashState(GameDataRef data) : m_data(data)
{
}
void SplashState::Init()
{
m_data->assets.loadTexture("Splash State Background", SPLASH_SCENE_BACKGROUND_FILEPATH);
m_background.setTexture(m_data->asset... |
#include "ofGLProgrammableRenderer.h"
#include "ofMesh.h"
#include "ofPath.h"
#include "ofGraphics.h"
#include "ofAppRunner.h"
#include "ofMesh.h"
#include "ofBitmapFont.h"
#include "ofGLUtils.h"
#include "ofImage.h"
#include "ofFbo.h"
#include "ofVbo.h"
#include "of3dPrimitives.h"
static const int OF_NO_TEXTURE=-1;
... |
//Templates are used to defining a function which
//can be used multiple times in the program
//irrespective of the data type.
#include<iostream>
using namespace std;
template <class T>//DEFINING TEMPLATE FUNCTION
void bubblesort(T arr[],int n){
for (int i=0;i<n;i++){
for(int j=i+1;j<n;j++){
if(arr[i]>arr[j]){... |
// Author: Greg "fugue" Santucci, 2011
// Email: thecodewitch@gmail.com
// Web: http://createuniverses.blogspot.com/
#include "luaCB.h"
int luaCBGetScreenWidth(lua_State *L)
{
int nWidth = glutGet(GLUT_SCREEN_WIDTH);
lua_pushnumber(L, nWidth);
return 1;
}
int luaCBGetScreenHeight(lua_State *L)
{
... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/typedefs-string.... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
//=======================================================================================//
#include "cbase.h"
#if defined( REPLAY_ENABLED )
#include "replayperformancesavedlg.h"
#include "replay/performance.h"
#include "replay/ireplayma... |
#pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
struct ZSTD_frameParameters
{
uint32_t contentSizeFlag;
uint32_t checksumFlag;
uint32_t noDictIDFlag;
};
}
} |
//===- LowerVectorTransfers.cpp - LowerVectorTransfers Pass Impl *- C++ -*-===//
//
// Copyright 2019 The MLIR 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.... |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "receiverequestdialog.h"
#include "ui_receiverequestdialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#i... |
// CoderInfo-ootm.ii:17:3: error: no viable candidate for function call
// yes, gcc 2.96 will compile this. I don't understand how the
// function tr::a() can be called when it has never been declared. I
// don't understand how 'pos' can be used when it has never been
// declared
// sm: 10/02/04: The reason gcc acc... |
/**
* @file OgreOggStreamSound.cpp
* @author Ian Stangoe
* @version v1.21
*
* @section LICENSE
*
* This source file is part of OgreOggSound, an OpenAL wrapper library for
* use with the Ogre Rendering Engine.
*
* Copyright (c) 20... |
/*=========================================================================
Program: ParaView
Module: vtkSIDataArraySelectionProperty.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WIT... |
#include "EntitySystem.h"
#include "World.h"
#include "Entity.h"
using namespace std;
namespace artemis {
EntitySystem::~EntitySystem() {
world = nullptr;
}
int EntitySystem::getEntityCount(){
return actives.getCount();
}
void EntitySystem::change(Entity& e) {
bool contains = (systemBit & e.getSystem... |
/* R A Y T R A C E R . H P P
* BRL-CAD
*
* Copyright (c) 2020-2022 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.... |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2000 Dirk Mueller (mueller@kde.org)
* (C) 2006 Allan Sandfeld Jensen (kde@carewolf.com)
* (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
* Copyright (C) 2003, 2004, 2005, 20... |
// Harry and magical number Problem Code: HHMGN
#include <iostream>
#include <algorithm>
using namespace std;
unsigned int magicalNumber(int sizeOfArray, int sumOfArray){
unsigned int current = 0;
unsigned int A[sizeOfArray];
for(int i = 0; i < sizeOfArray; i++)
scanf("%d", &A[i]);
sort(A, A+sizeOfArray);
... |
/*! \file Peridigm_TextFileDiscretization.cpp */
//@HEADER
// ************************************************************************
//
// Peridigm
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.... |
//
// ShapeQuantizedAvgPool.cpp
// MNN
//
// Created by MNN on 2019/01/10.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifdef MNN_SUPPORT_TFLITE_QUAN
#include <math.h>
#include "Macro.h"
#include "SizeComputer.hpp"
namespace MNN {
class QuantizedAvgPoolComputer : public SizeComputer {
virtual bool on... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
// Completed includes
// Begin forward declares
// Forward declaring namespace: UnityEngine::TestRunner::TestLaunchers
namespace UnityEngine::TestRunner:... |
#include "dpg.hpp"
const int N_EPISODES = 10000;
const int MAX_STEPS = 5000;
int simulateEpisode(const int, float);
int simulateEpisodeTest(const int);
int main(int argc, char* argv[]){
for (int i = 0; i < MEMORY_SIZE; i++){
DPG_W[i] = float(rand())/RAND_MAX*0.01;
DPG_T[i] = float(rand())/RAND_MAX*0.01;//0.0;
... |
// Copyright (c) 2009-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 <chain.h>
#include <core_io.h>
#include <interfaces/chain.h>
#include <key_io.h>
#include <merkleblock.h>
#include <... |
// 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 "ppapi/shared_impl/ppb_resource_array_shared.h"
#include "base/logging.h"
#include "ppapi/shared_impl/ppapi_globals.h"
#include "ppapi/share... |
#include "PID.h"
#include <iostream>
using namespace std;
/**
* TODO: Complete the PID class. You may add any additional desired functions.
*/
PID::PID() {
}
PID::~PID() {
}
void PID::Init(double Kp_, double Ki_, double Kd_) {
Kp = Kp_;
Ki = Ki_;
Kd = Kd_;
p_error = 0.0;
i_error = 0.0;
d_error = 0... |
//
// Copyright Copyright 2009-2021, AMT – The Association For Manufacturing Technology (“AMT”)
// 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
//
// ... |
/*******************************************************************\
Module: Symbolic Execution
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#include <irep2.h>
#include <assert.h>
#include <cprover_prefix.h>
#include <expr_util.h>
#include <s... |
#ifndef __UTIL_CONCURRENT_LOCK_HPP
#define __UTIL_CONCURRENT_LOCK_HPP
#include <lang/Object.hpp>
namespace util { namespace concurrent {
class TimeUnit {
};
interface Lock : Interface {
public:
virtual void lock() = 0;
virtual void lockInterruptibly() = 0;
virtual boolean tryLock() = 0;
virtual boolean tryLock(... |
// SPDX-License-Identifier: Apache-2.0
// ----------------------------------------------------------------------------
// Copyright 2011-2020 Arm 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 a copy
// of ... |
//------------------------------------------------------------------------------
// remoteresponsewriter.cc
// (C) 2007 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "remote/remo... |
/*
Copyright (c) DataStax, 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 in writing, so... |
#include <stdio.h>
#include <ctime>
#include <mysql.h>
#include <string>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <pcap.h>
#include <signal.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#define hostName "localhost... |
#include <torch.h>
// https://pytorch.org/docs/stable/torch.html#generators
// https://github.com/pytorch/pytorch/blob/f531815526c69f432e46fadece44f5d3a9b70e30/torch/csrc/Generator.cpp
// [[Rcpp::export]]
XPtrTorchGenerator cpp_torch_generator() {
XPtrTorchGenerator out = lantern_Generator();
return XPtrTorchGene... |
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<iomanip>
#include<algorithm>
#include<queue>
#include<stack>
#include<vector>
#define ri register int
#define ll long long
using namespace std;
const ll INF=1e18;
const int MAXN=100005;
const int MAXM=200005;
struct Path{in... |
/*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <pr... |
/********************************************************************************
* File Name:
* test_hld_can_hw.cpp
*
* Description:
* Tests the HLD CAN bus driver on the target device. This will send a
* predetermined sequence of messages back and forth between a PC and the DUT
* that exercises t... |
#ifndef OnLatticeSimulation2_hpp__pyplusplus_wrapper
#define OnLatticeSimulation2_hpp__pyplusplus_wrapper
namespace py = pybind11;
void register_OnLatticeSimulation2_class(py::module &m);
#endif // OnLatticeSimulation2_hpp__pyplusplus_wrapper |
#include <iostream>
#include "Point.h"
#include "Circle.h"
#include "RTriangle.h"
#include "shape.h"
using namespace std;
int main(){
//Point
//creating objects and calling the param constructor
Point object(2, 2), object2(5, 4);
//right triangle
//creating objects and calling the param constructor
RTriangle ... |
#include "main.h"
#include <natus/io/database.h>
#include <natus/log/global.h>
using namespace natus::core::types ;
//
// this test packs a natus file from a file system into same directory
//
int main( int argc, char ** argv )
{
natus::io::monitor_res_t mon = natus::io::monitor_t() ;
//natus::io::database ... |
#pragma once
#include "common/FlagsEnum.hpp"
#include "messages/Message.hpp"
#include "messages/Selection.hpp"
#include "messages/layouts/MessageLayoutContainer.hpp"
#include "messages/layouts/MessageLayoutElement.hpp"
#include <QPixmap>
#include <boost/noncopyable.hpp>
#include <cinttypes>
#include <memory>
namesp... |
// 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.
// From ppb_websocket.idl modified Mon May 6 10:11:29 2013.
#include <stdint.h>
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_er... |
#include <signal.h>
#include <venom_offb/Navigator.h>
#include "util.h"
venom::Navigator* nav;
void exit_handler(int s) {
ROS_WARN("Force quitting...\n");
nav->Land();
delete nav;
exit(1);
}
int main(int argc, char **argv) {
ros::init(argc, argv, "hover", ros::init_options::NoSigintHandler);
signal(SIGI... |
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "kvstore/DiskManager.h"
DEFINE_int32(disk_check_interval_secs, 10, "interval to check free space of data path");
DEFINE_uint64(minimum_reserved_bytes, 1UL << 30, "minimum reserved bytes of ... |
// Copyright 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 "chrome/browser/plugins/plugins_resource_service.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "build/build_config.h"
#inclu... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_EngramEntry_Saddle_Equus_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------... |
/*
* 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 "StandaloneTools_precompiled.h"
#include "RacetrackChart.hxx"
#include <Source/Driller/moc... |
#include "simplifyBitwise.h"
#include "ir/pattern.h"
namespace P4 {
void SimplifyBitwise::assignSlices(const IR::Expression *expr, big_int mask) {
int one_pos = Util::scan1(mask, 0);
// Calculate the slices for this particular mask
while (one_pos >= 0) {
int zero_pos = Util::scan0(mask, one_pos);... |
//////////////////////////////////////////////////////////////////////////////////
// SPARK particle engine //
// Copyright (C) 2008-2013 //
// Julien Fryer - julienfryer@gmail.com //
// Thibault Lescoat - info-tibo <at> orange <dot> fr //
// //
// This softw... |
// graph_page.cpp
// widgets for creating graphs
// Copyright 2018 Matthew Chandler
// 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 ... |
#include "SceneComponent.h"
SceneComponent::SceneComponent(std::shared_ptr<RenderData> renderComponent, float x, float y)
{
renderData = renderComponent;
position.x = x;
position.y = y;
} |
#include <wx/hashset.h>
#include "easylogging++.h"
INITIALIZE_EASYLOGGINGPP
WX_DECLARE_HASH_SET( int, wxIntegerHash, wxIntegerEqual, IntHashSet );
WX_DECLARE_HASH_SET( wxString, wxStringHash, wxStringEqual, StringHashSet );
ELPP_WX_ENABLED(IntHashSet)
ELPP_WX_ENABLED(StringHashSet)
int main() {
IntHashSet h1;
... |
// Copyright (c) 2021, Justin Kim
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#ifndef SAPPHIRE_TEST_MATH_TEST_HPP
#define SAPPHIRE_TEST_MATH_TEST_HPP
namespace Sapphire::Test
{
... |
#include "catch2/catch.hpp"
#include "helpers.hpp"
#include "parse/error.hpp"
#include "parse/node_expr_index.hpp"
#include <optional>
namespace parse {
TEST_CASE("[parse] Parsing index expressions", "parse") {
CHECK_EXPR("a[1]", indexExprNode(ID_EXPR("a"), OSQUARE, NODES(INT(1)), COMMAS(0), CSQUARE));
CHECK_EXP... |
/*******************************************************************************
* Copyright 2020-2021 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.apa... |
#include <rclcpp/rclcpp.hpp>
#include <controller_manager/controller_manager.hpp>
int main(int argc, char * argv[])
{
rclcpp::init(argc, argv);
// Setup the controller manager node
std::string controller_manager_node_name = "controller_manager";
std::shared_ptr<rclcpp::Executor> executor = std::make_s... |
#include "TextureMapping.h"
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/glm.hpp>
#include <array>
#include <boost/assert.hpp>
#include <imgui.h>
#include <vector>
#include "VK/Common.h"
#include "VK/Initializer.h"
#include "VK/Utils.h"
struct Vertex {
glm::vec3 pos;
glm::vec2 uv;
};
//*------------------... |
/* ************************************************************************
* Copyright (c) 2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "cblas_interface.h"
#include "clientcommon.hpp"
#include "norm.hpp"
#include "rocsolver.hpp"
#include "r... |
#include "opencv2/core.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
using namespace cv;
int main(int, char* [])
{
VideoCapture video(0);
Mat frame, curr, prev, curr64f, prev64f, hann;
char key;
do
{
video >> frame;
cvtColor(fram... |
/**
* Autogenerated by Thrift for src/simple.thrift
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated @nocommit
*/
#include <thrift/lib/cpp2/gen/module_metadata_cpp.h>
#include "thrift/compiler/test/fixtures/lazy_deserialization/gen-cpp2/simple_metadata.h"
// some of these functio... |
#ifndef FORGE_PATH_FUNCTIONS_HPP_INCLUDED
#define FORGE_PATH_FUNCTIONS_HPP_INCLUDED
#include <boost/filesystem/path.hpp>
#include <string>
namespace sweet
{
namespace forge
{
boost::filesystem::path absolute( const boost::filesystem::path& path, const boost::filesystem::path& base_path );
boost::filesystem::path re... |
//
// Created by palulukan on 5/16/20.
//
#include "Process.h"
#include "EventLoop.h"
void process::NextTick(const std::function<void(void)> &cb)
{
GetThreadEventLoop()->NextTick(cb);
} |
/**
* @file src/demangler_grammar_gen/demangler_grammar_gen.cpp
* @brief Grammar generation tool.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include <cstring>
#include <iostream>
#include "demangler/demangler.h"
int main(int argc, char *argv[])
{
if (argc != 3)
{
std::cerr << "\... |
/*##############################################################################
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 (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/common/system/chromeos/power/power_status.h"
#include <algorithm>
#include <cmath>
#include "ash/common/material_design/material_desig... |
// Copyright 2020 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 "chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h"
#include "ash/public/cpp/shelf_model.h"
#include "ash/public/cpp/shelf_... |
#include "TSGFromL1Muon.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/MessageLogger/interfac... |
/*
* 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 "src/gpu/GrContextPriv.h"
#include "tools/gpu/GrContextFactory.h"
#ifdef SK_GL
#include "tools/gpu/gl/GLTestContext.h"
#endif
#if SK_ANGLE
#include "tools/gpu/gl/ang... |
// File: th-worker.cpp
// Description: Using wxThread
// WebSite: http://cool-emerald.blogspot.com
// MIT License (https://opensource.org/licenses/MIT)
// Copyright (c) 2018 Yan Naing Aye
// References (Original example)
// https://github.com/wxWidgets/wxWidgets/blob/master/samples/thread/thread.cpp
#include "wx/wx.h... |
/***************************************************
* Problem Name : A.cpp
* Problem Link : https://codeforces.com/contest/1303/problem/A
* OJ : Codeforces
* Verdict : AC
* Date : 2020-02-12
* Problem Type : Div/Edu -
* Author Name : Saikat Sharma
* University : CSE, MBSTU
**********... |
// 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 <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/bind.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversion... |
/*
* This is a simple program that replicates the dip::RadialMean function. It is not very efficient,
* uses an intermediate image to store the radius, and uses no multithreading. But it shows how to
* use dip::JointImageIterator to iterate over two images simultaneously.
*/
#include "diplib.h"
#include "diplib/fi... |
// This is the CPP runtime support
//
// (C) Copyright 2019 Tony Mason, All Rights Reserved
//
#include <ntddk.h>
#include <sal.h>
// I'm doing some unsavory things here _and_ using kernel annotations for things that are now considered forbidden
// so I have to mask off several warnings. Some of this is because I'm o... |
/**
******************************************************************************
* This file is part of the TouchGFX 4.13.0 distribution.
*
* <h2><center>© Copyright (c) 2019 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... |
/* 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... |
/*
* 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 "Resources.h"
#include "SkFontMgr.h"
#include "SkMutex.h"
#include "SkOSFile.h"
#include "SkTestScalerContext.h"
#include "SkUtils.h"
#include "sk_tool_utils.h"
name... |
// Copyright 2015 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/macros.h"
#include "components/filesystem/file_system_app.h"
#include "mojo/public/c/system/main.h"
#include "services/shell/public/cpp/app... |
/*
* 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 ma... |
#include "stdafx.h"
#include <Emulator.hpp>
#include <Joypad.hpp>
#define INPUT_ONLY 0x20
#define BUTTONS_ONLY 0x10
#define NO_INPUT 0x30
#define BOTH_INPUT 0x00
TEST_CLASS(JoypadTests)
{
public:
TEST_METHOD(FullInputTest)
{
std::unique_ptr<Joypad> spJoypad = std::unique_ptr<Joypa... |
/* Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... |
/*
* Copyright (C) 2021 Huawei Device 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 ... |
#include <ros/ros.h>
#include <std_msgs/String.h>
int main(int argc, char **argv)
{
ros::init(argc, argv, "transmitter", ros::init_options::AnonymousName);
ros::NodeHandle nh;
ros::Publisher pub = nh.advertise<std_msgs::String>("/test_message", 10);
ros::Rate rate(3); // ensure that while block exec... |
/**************************************************************************
* *
* Algorithmic C (tm) Math Library *
* *
* Software Ver... |
#include "../include/funcs.h"
#include "mpi.h"
using namespace std;
double periodic_wr(double** coords, int chain_length, vector<double> box_dims, bool is_closed)
{
double result = 0;
vector<vector<int>> images = compute_img(coords, chain_length, box_dims);
for (int i = 0; i < images.size(); i++)
{
if (images[i... |
// ######################################################################### //
// ### OpenGLVertexArray.cpp ############################################### //
// ### implements OpenGLVertexArray.h ### //
// ######################################################################### //
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.