text stringlengths 3.08k 22k |
|---|
/* http://yirkha.fud.cz/progs/foobar2000/revorb.cpp */
/*
* REVORB - Recomputes page granule positions in Ogg Vorbis files.
* version 0.2 (2008/06/29)
*
* Copyright (c) 2008, <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby gr... |
/* * * * * * * * * * * * * Author's note * * * * * * * * * * * *\
* _ _ _ _ _ _ _ _ _ _ _ _ *
* |_| |_| |_| |_| |_|_ _|_| |_| |_| _|_|_|_|_| *
* |_|_ _ _|_| |_| |_| |_|_|_|_|_| |_| |_| |_|_ _ _ *
* |_|_|_|_|_| |_| |_| |_| |_| |_| |_| |_| |_... |
/*************************************************************************************
This file is a part of CrashRpt library.
Copyright (c) 2003, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions... |
/**
Copyright (c) 2015-present, 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 <car/Reader.h... |
/* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... |
/*
* Recording.cpp
*
* Created on: 06.09.2021
* Copyright: 2021 by Janitza electronics GmbH
*/
#include "Recording.hpp"
#include "Umg801.hpp"
#include <iostream>
#include <iomanip>
#include <chrono>
#include <ctime>
Recording::Recording(Umg801& client, const uint32_t& id, const NodeId& nodeId) :
m_client(cl... |
#include "TableDisplayWindow.h"
#include "ui_tabledisplaywindow.h"
void TableDisplayWindow::addSampleInfo(int nrow, QStringList &titles, QVector<QVector<QTableWidgetItem*>>& table){
titles.append("index");
titles.append("Cohort");
titles.append("Group ID");
QVector<QTableWidgetItem*> index(nrow);
... |
//
// Created by huangkun on 2020/8/11.
//
#include <Eigen/Eigen>
#include <opencv2/core/eigen.hpp>
#include <opencv2/opencv.hpp>
#include <nanoflann.hpp>
#include <KDTreeVectorOfVectorsAdaptor.h>
#include <opengv2/sensor/PinholeCamera.hpp>
#include <opengv2/utility/utility.hpp>
opengv2::PinholeCamera::PinholeCamera... |
/*
* Irrlicht FreeType Demo
*/
#include <irrlicht.h>
#include <stdio.h>
#include "driverChoice.h"
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
// Change your favorite settings
#define SIZE_FONT_NORMAL 12
#define SIZE_FONT_BIG 24
... |
#include "tohir.h"
#include <QSettings>
#include <QCoreApplication>
#include <QTime>
#include <QtDBus/QtDBus>
#include <QDBusArgument>
#include "amg883x.h"
TohIR::TohIR(QObject *parent) :
QObject(parent)
{
// Create seed for the random
// That is needed only once on application startup
QTime time = ... |
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <arpa/inet.h> // for htonl
#include <dlfcn.h> // shared lib support
#include <errno.h>
#include <rtsLog.h>
#include <rts.h>
#include <rtsSystems.h>
#include <daqFormats.h>
#include <SFS/sfs_index.h>
#include "daqReader.h"
#include "daq_det.h"
#inclu... |
#include "resampler.h"
using namespace resampler;
void Resampler::Init(Handle<Object> exports) {
Local<FunctionTemplate> tpl = FunctionTemplate::New(New);
tpl->InstanceTemplate()->SetInternalFieldCount(1);
tpl->SetClassName(String::NewSymbol("Resampler"));
NODE_SET_PROTOTYPE_METHOD(tpl, "open", Open);
NODE... |
/*******************************************************************\
Module:
Author: <NAME>, <EMAIL>
\*******************************************************************/
#include "smt2_dec.h"
#include <util/invariant.h>
#include <util/message.h>
#include <util/run.h>
#include <util/tempfile.h>
#include "smt2ire... |
// Copyright (c) <NAME>
// Licensed under the MIT License.
#include <cstring>
#include <cmath>
#include <unistd.h>
#include <vector>
#include <fstream>
#include <iomanip>
#include <gpiod.h>
#include "json.hpp"
#include "sleep.h"
#include "rfm69.h"
#include "rfm69_rt.h"
using json = nlohmann::json;
RFM69::RFM69(
... |
// CMSDAS11DijetTestAnalyzer.cc
// Description: A basic dijet analyzer for the CMSDAS 2011
// Author: <NAME>
// Date: January 12, 2011
#include "RecoJets/JetAnalyzers/interface/CMSDAS11DijetTestAnalyzer.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#i... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <stb/stb_image.h>
#include "Shader/Shader.h"
#include <iostream>
// Callback for resizing
void framebufferSizeCallback(GLFWwindow* window, int width, int height);
... |
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <string>
#include <chrono>
#include <thread>
#include "mlp.hpp"
namespace {
namespace mx = mxnet::cpp;
namespace ch = std::chrono;
// The names of the model and params files are
// fixed
const std::string MODEL_FILENAME {"mode... |
#include "Evaluator.h"
#include <algorithm>
#include <iostream>
#include <memory>
#include "State.h"
#include "RandomDice.h"
#include "BruteForceRollGenerator.h"
#include "StringUtils.h"
#include "MemoryManager.h"
namespace{
size_t encode_min_max_0_based(size_t first, size_t second){
size_t max=std::max(fir... |
/*********************************************************************************
* File Name : test_svm_reader.cc
* Created By : yuewu
* Creation Date : [2015-11-11 23:08]
* Last Modified : [2015-11-14 16:43]
* Description : test svm reade... |
/*
Copyright (c) 2011, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the fol... |
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
#include <algorithm>
#include <iostream>
#include <vector>
// ========
// Entities
// ========
struct Hero {
std::int64_t health;
std::uint64_t mana;
std::uint64_t armor;
};
struct Boss {
std::int64_t health;
std::uint64_t damage;
};
// ================
// Spells & Effects
// ================
// need to forwa... |
#include "TextRender.h"
#include "LzmaLib.h"
TextRender::TextRender(const std::string filename /*= "resource/Microsoft_YaHei.kfont"*/)
{
loadFontLibrary(filename);
tick_ = 0;
textureSize = 2048;
perLineCharNum = textureSize / header.char_size;
lruTextureData.resize(textureSize * textureSize);
for (int i = 0; i <... |
#include <Rcpp.h>
#include "profiler.h"
#include <signal.h>
#include <fstream>
#include <gperftools/stacktrace.h>
#include "getpc.h"
#include "sysinfo.h"
struct ProfilerDaisyChain::Impl {
Impl() : initact(), oldact() {}
struct sigaction initact;
struct sigaction oldact;
std::ofstream ofs;
void start(const... |
#include "dataAQ.h"
#include "demogData.h"
#include "comboDemogData.h"
#include "comboHospitalData.h"
#include "countyDemogData.h"
#include "comboHospitalData.h"
#include "hospitalData.h"
#include "cityHospitalData.h"
#include "parse.h"
#include <iostream>
#include <algorithm>
#include <fstream>
#include <sstream>
#def... |
#include "meta_table_manager.hpp"
#include "constant_mappings.hpp"
#include "hyrise.hpp"
#include "resolve_type.hpp"
#include "statistics/table_statistics.hpp"
#include "storage/base_encoded_segment.hpp"
#include "storage/dictionary_segment.hpp"
#include "storage/fixed_string_dictionary_segment.hpp"
#include "storage/... |
/*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribu... |
#include <driver/i2c.h>
#include <Wire.h>
#include "i2c_bus.h"
#include "module_handler.h"
static uint8_t i2c_devices[MAX_DYNAMIC_I2C_ADD+1] = {0};
static uint8_t i2c_devices_new[MAX_DYNAMIC_I2C_ADD+1] = {0};
static uint8_t i2c_devices_disconnection_count[MAX_DYNAMIC_I2C_ADD+1] = {0};
static SemaphoreHandle_t i2c_mut... |
#include <mex.h>
#include <ffmpegReader.h>
#include <ffmpegPtrs.h>
#include <ffmpegTimeUtil.h>
#include "../utils/mxutils.h"
#include "@Reader/mexReaderPostOps.h"
#include <mexGetString.h>
extern "C"
{
#include <libavutil/dict.h>
}
#include <algorithm>
#include <chrono>
typedef std::chrono::duration<double> mex_d... |
/*
* clutter.hpp
*
* This is the 'Junk' hpp file that contains any and all loose functions in the
* main loop as well as all includes for the main
*
*/
//includes
#include <iostream>
#include <string>
#include "math.h"
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_pt... |
#include "worker.h"
#include "sim1942.h"
#include "rexp.h"
#include <glibmm/timer.h>
#include <iostream>
#include <cassert>
#include <array>
Worker::Worker(int width, int height, double mu,int delay) :
grid_width_{width}, grid_height_{height}, mu_{mu},
pop_a_{new pop_t(width*height)},
pop_b_{new pop_t(width*hei... |
// Copyright (c) 2010 libmv authors.
//
// 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, publish... |
/**
* There are two member functions in storage_t class which you need to use to operate with
* prepared statements: storage_t::prepare and storage_t::execute.
* Also if you need to rebind arguments just use get<N>(statement) = ... syntax
* just like you do with std::tuple.
* Once a statement is prepared it h... |
/*******************************************************************\
Module: Generates string constraints for functions adding content
add the end of strings
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Generates string constraints for function... |
/*
* ESP8266 Simple UPnP framework
* There's no separate class for multiple devices,
* also currently we allocate only one service,
* because we assume one (IoT) device is all we do.
*
* Copyright (c) 2015 <NAME>
* Copyright (c) 2015 <NAME>
*
* Original (Arduino) version by <NAME>, July 23, 2014.
* Can... |
#include <ros/ros.h>
#include <sensor_msgs/Joy.h>
#include <std_msgs/UInt8MultiArray.h>
#include <std_msgs/UInt8.h>
#include <iostream>
#include <vector>
#include "../include/nyx_solver.hpp"
class ArmController {
public:
// Default constructor
ArmController();
private:
void joyCallba... |
#include <iostream>
#include <algorithm>
#include <fstream>
#include <stdlib.h>
#include <deque>
#include <stdint.h>
#include <time.h>
#include <assert.h>
#include <map>
#include <string>
#include <unordered_set>
#include <vector>
#include "agg_channel.h"
#include "event.h"
#include "flow.h"
#include "node.h"
#include... |
/*
Copyright (c) 2015, 2016, 2017 Genome Research Ltd.
Copyright (c) 2014 <NAME> and <NAME>
Author: <NAME> <<EMAIL>>
Author: <NAME>
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 w... |
#include <iostream>
#include <random>
#include <lsAdvect.hpp>
#include <lsBooleanOperation.hpp>
#include <lsConvexHull.hpp>
#include <lsDomain.hpp>
#include <lsExpand.hpp>
#include <lsMakeGeometry.hpp>
#include <lsPrune.hpp>
#include <lsSmartPointer.hpp>
#include <lsToDiskMesh.hpp>
#include <lsToMesh.hpp>
#include <ls... |
// Copyright (c) 2020 Daniel (@L33T) and contributors of the VTIL 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 ... |
//
// Created by vanda on 12/10/2021.
//
#include <cmath>
#include "../include/string_calculator.hpp"
#include "../include/load_operators.hpp"
static std::unordered_map<char32_t, Bot::Operator> unicodeToOperator;
static std::unordered_map<char32_t, int> unicodeToNumber;
static std::unordered_map<char32_t, bool> usedU... |
//
/*
Copyright (c) 2020 <NAME>
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, publis... |
/******************************************************************************
**
** Copyright (C) 2009-2011 <NAME> <<EMAIL>>
** All rights reserved.
**
** This file is a part of the chemkit project. For more information
** see <http://www.chemkit.org>.
**
** Redistribution and use in source and binary forms, with or ... |
#include "tar.h"
#include "elf.h"
#include <platform.h>
#include <log.h>
#include <runtime/SmartPointers.h>
#include <mem/PhysicalAllocator.h>
#include <sched/Scheduler.h>
#include <sched/Task.h>
#include <sched/Thread.h>
#include <vm/Map.h>
#include <vm/MapEntry.h>
#include <bootboot.h>
extern "C" BOOTBOOT bootboo... |
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimG4Core/MagneticField/interface/CMSFieldManager.h"
#include "SimG4Core/MagneticField/interface/Field.h"
#include "CLHEP/Units/GlobalSystemOfUnits.h"
#include "G4ChordFinder.hh"
#include "G4MagIntegratorStepper.hh"
#include "G4PropagatorInField.hh"
#... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmQtAutoGenGlobalInitializer.h"
#include <utility>
#include <cm/memory>
#include "cmCustomCommandLines.h"
#include "cmCustomCommandTypes.h"
#include "cmDuratio... |
#include <algorithm>
#include <chrono>
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <optional>
#include <span>
#include <sys/types.h>
#include <thread>
#include <unistd.h>
#include <vector>
#include "libivy.hh"
typedef uint8_t *byte_ptr;
... |
/**
* @file muscle_activation.cpp
* @brief This is the first example of electro activation of myocardium
* @author <NAME> and <NAME>
*/
#include "sphinxsys.h"
/** Name space. */
using namespace SPH;
/** Geometry parameters. */
Real PL = 1.0; /**< Length. */
Real PH = 1.0; /**< Thickness for thick plate. */
Real... |
//===-- MandarinInstrInfo.cpp - Mandarin Instruction Information ----------------===//
//
// <NAME>
//
// This file is distributed under the MIT License
//
//===----------------------------------------------------------------------===//
//
// This file contains the Mandarin implementation of the Tar... |
/*
* Copyright 2017 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 applic... |
/*
* Copyright 2010, <NAME> <<EMAIL>>.
* Distributed under the terms of the MIT License.
*/
#include "SubtitleBitmap.h"
#include <stdio.h>
#include <Bitmap.h>
#include <TextView.h>
#include "StackBlurFilter.h"
SubtitleBitmap::SubtitleBitmap()
:
fBitmap(NULL),
fTextView(new BTextView("offscreen text")),
fS... |
#include <sweet/DataArray.hpp>
#if SWEET_GUI
#include "sweet/VisSweet.hpp"
#endif
#include <sweet/SimulationVariables.hpp>
#include "sweet/Operators2D.hpp"
#include <unistd.h>
#include <stdio.h>
SimulationVariables simVars;
class SimulationSWE
{
public:
DataArray<2> h;
DataArray<2> u;
DataArray<2> v;
DataArra... |
#include <stdio.h>
#include <functional>
#include "kernel.h"
#include "tagtype.h"
#include "api.h"
#include "mode2_direct.h"
#include "drawCharSetPixel.h"
#include "miniprint_impl.h"
#include "backlight.h"
#include "fontTIC80.h"
#include "loader.h"
#include "strutil.h"
using namespace NAVIGATOR;
Kernel *kapi;
int32_... |
#include <AMReX_EBFArrayBox.H>
#include <AMReX_EBMultiFabUtil.H>
#include <AMReX_MultiFabUtil.H>
#include <AMReX_ParmParse.H>
#include <AMReX_Vector.H>
#include <DiffusionEquation.H>
#include <diffusion_F.H>
#include <constants.H>
using namespace amrex;
//
// Constructor:
// We set up everything which doesn't change... |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... |
/*
pix2pix (Image-to-Image Translation with Conditional Adversarial Nets).
An accessible explanation can be found [here](https://phillipi.github.io/pix2pix/) and [here](https://affinelayer.com/pix2pix/).
The network basically learns to map from one image to another.
E.g. in the example you draw in the left viewport,... |
/**
* @brief Cascaded shadow mapping のテストシーン
*/
#include "SceneCSM.h"
#include <boost/assert.hpp>
#include <cmath>
#include <glm/gtc/constants.hpp>
#include <iostream>
#include <spdlog/spdlog.h>
#include "CSM.h"
#include "GUI/GUI.h"
#include "HID/KeyInput.h"
#ifdef WIN32
#ifdef far
#undef far
#endif
#ifdef near
#... |
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
sexpr.h
Abstract:
Generic sexpr
Author:
Leonardo (leonardo) 2011-07-28
Notes:
--*/
#include"sexpr.h"
#include"vector.h"
#include"buffer.h"
#ifdef _MSC_VER
#pragma warning(disable : 4200)
#pragma warning(disable : 4355)
#endif
struct sexpr_... |
/**
* Contact: <EMAIL>
*/
#include "NGM.h"
#include <memory.h>
#include <stdlib.h>
#include <limits.h>
#include "CS.h"
#include "PrefixTable.h"
#include "ReadProvider.h"
#include "PlainFileWriter.h"
#include "SAMWriter.h"
#include "Timing.h"
#include "StrippedSW.h"
#undef module_name
#define mo... |
#include <stdexcept>
#include "cspace.hh"
#include "fmt/format.h"
#include "predicate.hh"
#include "predicate-impl.hh"
constexpr char TRACEBACK_NAME[] = "err_func";
static int traceback(lua_State* L) {
// 'message' not a string?
if (!lua_isstring(L, 1)) {
return 1; // Keep it intact
}
lua... |
// Copyright (c) 2020-2021 FRC Team 3512. All Rights Reserved.
#include "subsystems/Climber.hpp"
#include <cmath>
#include <frc/DriverStation.h>
#include <frc/Joystick.h>
#include <frc/RobotBase.h>
#include <frc/RobotController.h>
#include <frc/StateSpaceUtil.h>
#include <frc/smartdashboard/SmartDashboard.h>
#includ... |
// #include "Rf.h"
#include <yarp/RFNet.h>
#include <yarp/utils.h>
#include <iostream>
#include <vector>
#include <list>
struct Error
{
double av;
double std;
};
// void GetInput2(std::istream & device, YVector& X, YVector& Y);
void readDataSet(const char *filename, std::vector<YVector> &v);
Error testRun(RFNet &ne... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;
using std::vector;
#inc... |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
// --------------------------------------------------------
#define FOR(i,l,r) for (ll i = (l); i < (r); ++i)
#define REP(i,n) FOR(i,0,n)
#define BIT(b,i) (((b)>>(i)) & 1)
// --------------------------------------------------------
// References:
// ... |
#include "CDL.hpp"
#include <queue>
#include "../include/libRR.h"
struct retro_input_descriptor desc[64];
int total_input_buttons=0;
std::queue<unsigned long long> button_history;
std::queue<unsigned long long> playback_button_history;
// Should append is for when you were playing back a history and it reached the end... |
#include<iomanip>
#include<iostream>
#include<string>
#include<vector>
using namespace std;
template <class HashedObj>
class HashTable
{
public:
explicit HashTable(const HashedObj & notFound, int size = 31);
HashTable(const HashTable & rhs)
: currentSize(rhs.currentSize), ITEM_NOT_FOUND(rhs.ITEM_NOT_FOUND),
... |
#include "std.h"
#include "imgLoad.h"
#include "Image.h"
#include "IOFile.h"
#include "IJL/ijl.h"
#pragma comment(lib, "IJL/ijl15.lib" )
typedef struct bmpFileHeader_tag_
{
UInt8 B, M;
UInt32 nSize;
UInt32 nReserved;
UInt32 nOffsetToBits;
} BMPFileHeader;
typedef struct bmpImageHeader_tag_
{
UInt32 nSize;
In... |
#pragma once
#include "items.hpp"
#include "layer.hpp"
#include "memory.hpp"
#include "savedata.hpp"
#include "screen.hpp"
#include "screen_arena.hpp"
#include "state_structs.hpp"
#include "thread_utils.hpp"
const float ZF = 0.737f;
struct Layer;
struct LevelGenSystem;
struct StateMemory
{
siz... |
/*-------------------------------------------------------*/
//Copyright (c) 1997 Microsoft Corporation
//
// Util.cpp
//
//Author:
//
//
//Environment:
//
// User Mode - Win32
//
//Revision History:
/*-------------------------------------------------------*/
#include "urltrk.h"
#include <inetreg... |
#include "micelle.h"
Micelle::Micelle( DPDFrame<CopolymerChain>* frame ) {
this->frame = frame;
this->aggreg_num = 0;
this->com = new PosVect();
}
Micelle::Micelle(): Micelle( NULL ) {}
void Micelle::unlink() {
this->frame = NULL;
for ( auto core = std::begin( this->coreList ); core != std::end( this->coreLi... |
/******************************************************************************
* HMDQ Tools - tools for VR headsets and other hardware introspection *
* https://github.com/risa2000/hmdq *
* *
... |
/*
* bench_zmq_inproc.cpp
* 测试zmq inproc 发送接收效率, (取代传统的进程间通信带锁的方式)
*
* Created on: 2019年03月14日
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <atomic>
#include <vector>
#include <string>
#include <zmq.h>
#include <chrono>
#include <pthread.h>
#include <unistd.h>
#include <cassert>
int64... |
#include <mpi.h>
#include <thread>
#include <random>
#include <chrono>
#include <iostream>
using namespace std;
using namespace std::this_thread ;
using namespace std::chrono ;
const int
num_filosofos = 5 ,
num_procesos = 2*num_filosofos ;
const int accion_soltar = 0, accion_coger = 1, accion_sentarse = 2, accion_l... |
/*!
* \file CParaviewXMLFileWriter.cpp
* \brief Filewriter class for Paraview binary format.
* \author <NAME>
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 Contr... |
/////////////////////////////////////////////////////////////
// //
// Copyright (c) 2003-2017 by The University of Queensland //
// Centre for Geoscience Computing //
// http://earth.uq.edu.au/centre-geoscience-computing //
// ... |
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2019 Datadog, Inc.
#include "three.h"
#include "constants.h"
// we only populate the fields `m_base... |
#pragma once
#include <string>
namespace TokenType
{
enum Any {
// single-char tokens 0
TOKEN_LEFT_PAREN,
TOKEN_RIGHT_PAREN,
TOKEN_LEFT_BRACE,
TOKEN_RIGHT_BRACE,
TOKEN_COMMA,
TOKEN_DOT,
TOKEN_SEMICOLON,
TOKEN_MINUS,
TOKEN_PLUS,
TOKEN_SLASH,
TOKEN_STAR,
// one or two character tokens 11
TO... |
#include <mutex>
#include <sstream>
#include "ESWriter.h"
#include "ESIndex.h"
#include "JsonTr.h"
#include "servant/RemoteLogger.h"
#include "ESClient.h"
#include "TimerTaskQueue.h"
static std::string generaId(const std::string &indexName, const std::string &key) {
auto iIndexNameHash = std::hash < std::string ... |
#include "tm_driver/tm_driver.h"
#include "tm_driver/tm_print.h"
#include <SctResponse.hpp>
#include <StaResponse.hpp>
#include <ConnectTM.hpp>
#include <SendScript.hpp>
#include <SetEvent.hpp>
#include <SetPositions.hpp>
#include <SetIO.hpp>
#include <AskSta.hpp>
#include <iostream>
TmDriver* iface_;
std::mutex sta... |
// Copyright (c) 2021 - <NAME>
#include "otgwmcu.h"
#include "webserver.h"
#include "debug.h"
#include "otmon.h"
#include <LittleFS.h>
#include <ESP8266HTTPClient.h>
WebServer httpd(80);
// Bitmaps for subscriptions of web socket clients
static unsigned int ws_status, ws_otlog;
const char *hexheaders[] = {
"Last-... |
#include "RawReader.hpp"
#include "Config.hpp" // for Config
#include "Hash.hpp" // for Hash, operator<, operator==
#include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate
#include "buffer.h" // for mark_frame_full, wait_for_empty_frame, mark_frame_empty
#include... |
#include "painelSingle.h"
Textura PainelSingle :: tSingleFundo("Texturas/Menu/menuSinglePlayerPreto.bmp",false);
Textura PainelSingle :: tStartS("Texturas/Menu/Botoes/botaostartS.bmp",false);
Textura PainelSingle :: tStart("Texturas/Menu/Botoes/botaostartN.bmp",false);
Textura PainelSingle :: tBack("Texturas/Menu/Bot... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "disp_vrad.h"
#include "utllinkedlist.h"
#include "utlvector.h"
#include "iscratchpad3d.h"
#include "scratchpadut... |
#include <TympanRemoteFormatter.h>
String TR_Button::asString(void) {
String s;
//original method
//s = "{'label':'" + label + "','cmd':'" + command + "','id':'" + id + "','width':'" + width + "'}";
//new method...don't waste time transmitting fields that don't exist
s = "{";
if (label.length() > 0) s.conca... |
// Copyright (c) 2004-2019 <NAME> and Rational Discovery LLC
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <RDBoost/python.h>
#... |
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
this software, either in source code form or as a compiled binary, for any
purpose, commercial or non-commercial, and by any means.
In jurisdictions that reco... |
#include "opencv2/core.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/aruco.hpp"
#include "opencv2/aruco/dictionary.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/video/tracking.hpp"
#include "opencv2/features2d/featur... |
#include "SEProjectProj.h"
#include <QDebug>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QJsonDocument>
#include <QJsonObject>
#include <QTextStream>
#include <QTimer>
#include <QUrl>
#include <QUuid>
#include <QtGlobal>
#include "SEProject.h"
#include "base/http/SEHttpClient.h"
#include "base/ut... |
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
#include <cmdline.hpp>
#include <kdb.hpp>
#include <keysetio.hpp>
#include <kdbconfig.h>
#include <iostream>
#include <vector>
#include <cstdio>
#include <set>
#include <getopt.h>
#include <command.hpp>
using namespace std;
Cmdline::Cmdline (int argc,
char** argv,
Command *command
) :
helpText(),
in... |
// MFEM Example 30 - Parallel Version
//
// Compile with: make ex30p
//
// Sample runs: mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 1
// mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 2
// mpirun -np 4 ex30p -m ../data/square-disc.mesh -o 2 -me 1e3
// ... |
#include <stdint.h>
#include "./BSER.hh"
BSERType decodeType(std::istream &iss) {
int8_t type;
iss.read(reinterpret_cast<char*>(&type), sizeof(type));
return (BSERType) type;
}
void expectType(std::istream &iss, BSERType expected) {
BSERType got = decodeType(iss);
if (got != expected) {
throw std::runti... |
#pragma once
#include <sys/ioctl.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/types.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadgetfs.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include... |
# pragma once
# include <sig/gs_vars.h>
# include <sig/sn_poly_editor.h>
# include <sig/sn_lines.h>
# include <sigogl/gl_texture.h>
# include <sigogl/gl_resources.h>
# include <sigogl/ui_radio_button.h>
# include <sigogl/ws_viewer.h>
# include <sigogl/ws_run.h>
# include "spm_manager.h"
class SpmViewer : public WsVi... |
/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2016, University of Colorado, Boulder
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
#include "src/s3_cmds/zgw_s3_object.h"
#include <algorithm>
#include "slash/include/env.h"
#include "src/s3_cmds/zgw_s3_xml.h"
#include "src/zgw_utils.h"
bool CompleteMultiUploadCmd::DoInitial() {
http_request_xml_.clear();
http_response_xml_.clear();
received_parts_info_.clear();
upload_id_ = query_params_.... |
#include "gwBoxMesh.h"
using namespace gwe;
gwe::gwBoxMesh::gwBoxMesh(const std::string &name, float width, float height, float depth) : gwPrimitiveShape(name), mWidth(width), mHeight(height), mDepth(depth)
{
}
gwe::gwBoxMesh::~gwBoxMesh()
{
}
float gwe::gwBoxMesh::getWidth(void) const { return mWidth; }
float gw... |
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* 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 2, or (at your option)
* any later version.
*
* ... |
#pragma once
#include <Math/Math.hpp>
struct Sphere {
float3 mCenter;
float mRadius;
inline Sphere() : mCenter(float3()), mRadius(0) {}
inline Sphere(const float3& center, float radius) : mCenter(center), mRadius(radius) {}
};
struct AABB {
float3 mMin;
float3 mMax;
AABB() : mMin(float3()), mMax(float3()) {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.