text stringlengths 5.71k 33.7k |
|---|
#include "app/gibbs/gibbs_sampling.h"
#include "app/gibbs/single_node_sampler.h"
#include "common.h"
#include <unistd.h>
#include <fstream>
//#include <sstream>
#include <memory>
#include "timer.h"
//#include <map>
dd::GibbsSampling::GibbsSampling(FactorGraph * const _p_fg,
CmdParser * const _p_cmd_parser, int n_d... |
/**
* Copyright (c) 2013 GraphLab 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
*
* Unles... |
/**
* Programma C++ che preso in input un file contenente una lista di insiemi e di vincoli ('testX_prolog_data.txt'),
* produce in output un programma Prolog contenente la lista di tutti i possibili test ('testX_prolog_cases.pl')
*/
#include <iostream>
#include <string>
#include <fstream>
#include <ctype.h>
#in... |
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include "items.h"
#include "spells.h"
#include "player.h"
#include "display.h"
#include "encounter.h"
#include "font.h"
#include "misc.h"
#include "audio.h"
spellItem spellBuffer[35]; // learnt spells that can be cast
spellRecord spells[35... |
/* source file for paintScene class -
resposible for drawing with brain waves */
#include "paintscene.h"
#include "random"
#include "QtAlgorithms"
#include <QSound>
#include "qmath.h"
#include "myitem.h"
// TO DO:
// drawing continuos structures with complexity / speed of draw dependent on attention
paintScene::p... |
/*
* Copyright (c) 2007-2015,
* Commissariat a l'Energie Atomique (CEA)
* 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 c... |
// testjacobian.cpp : Defines the entry point for the console application.
//
#include <yarp/YARPConfig.h>
#include <yarp/YARPParseParameters.h>
#include <yarp/YARPPort.h>
#include <yarp/YARPLogpolar.h>
#include <yarp/YARPControlBoardNetworkData.h>
#include <yarp/YARPBabyBottle.h>
#include <yarp/YARPDebugUtils.h>
#... |
/* A crude spectral curve viewer for the paper "Simple Analytic Approximations
** to the CIE XYZ Color Matching Functions"
**
** The viewer code is not particularly interesting (or well constructed), however
** the data in the directory "data/" may be useful for incorporation elsewhere
** and the curves i... |
#include "dataset.hpp"
#include <cstdint>
#include <fstream>
#include <iostream>
#include <map>
#include <unordered_map>
#include <glob.h>
#include <opencv4/opencv2/core.hpp>
#include <opencv4/opencv2/imgcodecs.hpp>
#include <opencv4/opencv2/highgui.hpp>
#include <opencv4/opencv2/imgproc.hpp>
#include <filesystem>... |
#include "markovBlanket.h"
#include <map>
//================Public methods==============================//
MarkovBlanketsFinder::MarkovBlanketsFinder(FeatureArray* featArray,
double threshold, int countIsAtLeast) :
featArray_(featArray), threshold_(threshold),
countIsAtLeast_(countIsAtLeast)
{
allFeatureValues_... |
#include "ipasir/ipasir_cpp.h"
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <vector>
#include <iostream>
#include <fstream>
#include <limits>
#include <cassert>
#include <memory>
#include <cmath>
#include <set>
#include <map>
#include <random>
#include <stack>
#include "tclap/CmdLine.h"
#includ... |
/*
* Copyright (C) 2013 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... |
#include "Grapher.h"
void Grapher::saveSettings()
{
xml_settings.setValue("settings:x", r.x);
xml_settings.setValue("settings:y", r.y);
xml_settings.setValue("settings:w", r.width);
xml_settings.setValue("settings:h", r.height);
xml_settings.saveFile(ofToDataPath("Grapher/"+name+".xml"));
}
void ... |
//===-- PhiElimination.cpp - Eliminate PHI nodes by inserting copies ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "Mesh/SkinnedMesh.h"
#include "Core/Log.h"
#include "Core/Math.h"
#include <GL/glew.h>
#include <glm/gtc/matrix_transform.hpp>
SkinnedMesh::SkinnedMesh()
{
}
SkinnedMesh::SkinnedMesh(const std::string& Filename, const std::string& TexturesDir) : SkinnedMesh()
{
LoadMesh(Filename, TexturesDir);
}
bool... |
#define USE_THREADS
#include <iostream>
#include<assert.h>
#include "cpu.hpp"
#include <stdio.h>
#ifdef USE_THREADS
#ifdef _WIN32
#include <windows.h>
#endif
#endif
// o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o+o
struct BrtThread {
#ifdef USE_THREADS
#ifdef _WIN32
HANDLE Id;
#else
... |
// ////////////////////////////////////////////////////////
// # Title
// Permutations of Project
//
// # URL
// https://projecteuler.net/problem=458
// http://euler.stephan-brumme.com/458/
//
// # Problem
// Consider the alphabet `A` made out of the letters of the word "project": `A= \{c,e,j,o,p,r,t\}`.
// Let `T(n)` ... |
/*
* main.cpp
*
* Created on: 3 Aug 2018
* Author: scsjd
*/
#include <chrono>
#include <iostream>
#include <random>
#include <NTL/ZZ.h>
#include <NTL/ZZ_p.h>
#include <NTL/vec_ZZ.h>
#include <NTL/vec_ZZ_p.h>
#include "DETEncrypter.h"
#include "DETDecrypter.h"
#include "SSEEncrypter.h"
#include "SSEDecrypter... |
// MadronaLib: a C++ framework for DSP applications.
// Copyright (c) 2013 Madrona Labs LLC. http://www.madronalabs.com
// Distributed under the MIT license: http://madrona-labs.mit-license.org/
#include "MLMultiSlider.h"
#include "MLLookAndFeel.h"
MLMultiSlider::MLMultiSlider () :
mpListener(0),
mVertical(true)
{... |
/*
* Enables the conversion of a GML molecule graph description into a SMILES
* string representation and vice versa.
* Furthermore, enables the correction and check of the molecule.
*
* Created on: 22.03.2012
* Author: mmann
*/
#include <iostream>
#include <fstream>
#include <iomanip>
#incl... |
#include "raytrace_structures.h"
float* inverseMatrix(float* matrix) {
float* inverse = (float*)malloc(16*sizeof(float));
inverse[0] = matrix[5] * matrix[10] * matrix[15] - matrix[5] * matrix[11] * matrix[14] - matrix[9] * matrix[6] * matrix[15] + matrix[9] * matrix[7] * matrix[14] +matrix[13] * matrix[6... |
#include <glad/glad.h>
#include <string.h>
#include "codegen_utils.h"
#define JSCODEGEN_webgl_IMPLEMENTATION
#include "webgl.h"
struct WebGLObject {};
WebGLObject* js_WebGLObject_ctor() { return nullptr; }
void js_WebGLObject_finalizer(WebGLObject* val) {}
struct WebGLBuffer {
GLuint buffer;
WebGLBuffer(GLuin... |
/*
* Copyright 2016 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/GrClipStackClip.h"
#include "include/private/SkTo.h"
#include "src/core/SkClipOpPriv.h"
#include "src/core/SkTaskGroup.h"
#include "src/core/SkTraceEvent.h"... |
#include "todolist.h"
#include "vmwidgets.h"
#include "configops.h"
#include "separatewindow.h"
#include "global.h"
#include "vmtablewidget.h"
#include "stringrecord.h"
#include "textdb.h"
#include "texteditwithcompleter.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QCoreApplication>
#include <QToolButton... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#undef NONADAPTIVE
#define ADAPTIVE
#define BASIS
#define DYADIC
//define the parameters \delta_1 and \delta_2 for the one-dimensiona... |
/*
* Copyright (c) 2021 <NAME><<EMAIL>>
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
#include "maprenderer.h"
#include "window.h"
#include "cfg.h"
static JsonLng::LNG lngFromString(const std::string &lang... |
#include <gtest/gtest.h>
#include <iv/string_view.h>
#include <iv/ustring.h>
static void JoinFilePathStr(const iv::core::string_view& dir,
const iv::core::string_view& base,
std::string* out) {
dir.CopyToString(out);
out->push_back('/');
base.AppendToString... |
#include "include/charset_converter/charset_converter_plugin.h"
// This must be included before many other Windows headers.
#include <windows.h>
#include <winnls.h>
// For getPlatformVersion; remove unless needed for your plugin implementation.
#include <VersionHelpers.h>
#include <flutter/method_channel.h>
#include... |
/**
* Copyright (C) 2018 Xilinx, Inc
* Author(s): <NAME>
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
//===--- TypeRef.cpp - TypeRef tests --------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/*
*
* Copyright (c) 2003 Dr <NAME>
* 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://www.boost.org/LICENSE_1_0.txt)
*
*/
#include "licence_info.hpp"
#include "bcp_imp.hpp"
#include "fileview.hpp"... |
#include "toast/net/socket.hpp"
#include "toast/net/util.hpp"
#include "thp/sim/ds_comms.hpp"
#include "thp/sim/sim_provider.hpp"
#include "toast/memory.hpp"
#include "toast/state.hpp"
#include "toast/concurrent/mutex.hpp"
#include "toast/util.hpp"
#include "toast/crash.hpp"
#include "toast/logger.hpp"
#include <thr... |
/*=============================================================================
*
* リモート側のファイル操作
*
===============================================================================
/ Copyright (C) 1997-2007 Sota. All rights reserved.
/
/ Redistribution and use in source and binary forms, with or without
/... |
//===-- ClangExpressionSourceCode.cpp ---------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
* gltools.c
* Block
*
* Created by <NAME> on 10/16/06.
* OpenGL SuperBible, 4rth Edition
*
*/
#include "gltools.h"
#include "math3d.h"
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <GLUT/glut.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <iostream>
////////////////////... |
/*
* 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
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
#include <program/Program.h>
#include <common/storage/StorageErrors.h>
#include <common/toolkit/SessionTk.h>
#include <net/msghelpers/MsgHelperIO.h>
#include <toolkit/StorageTkEx.h>
#include "ReadLocalFileV2MsgEx.h"
#include <sys/sendfile.h>
#include <sys/mman.h>
#define READ_USE_TUNEFILEREAD_TRIGGER (4*1024*1024)... |
#include "ModelLoader.h"
#include "assimp/Importer.hpp"
#include "assimp/postprocess.h"
#include "assimp/scene.h"
#include <fstream>
#include <sstream>
#include "RenderManager.h"
//Loads in a model
iModel * ModelLoader::LoadModel(const std::string & fileName)
{
if (EndsWith(fileName, ".obj"))
{
return LoadOBJ(... |
//=====================================================================
// Copyright 2016 (c), Advanced Micro Devices, Inc. All rights reserved.
//
// 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 So... |
#include "mainwindow.h"
#include <Box.h>
#include <Button.h>
#include <CheckBox.h>
#include <MenuField.h>
#include <MenuItem.h>
#include <PopUpMenu.h>
#include <RadioButton.h>
#include <StringView.h>
#include <TabView.h>
#include <TextControl.h>
const uint32 TC3 = 'TC03';
const uint32 TC3W = 'TC3W';
const uint32... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... |
#include <iostream>
#define CALL_WITH_MAX(a, b) print_max((a)>(b)?(a):(b))
void print_max(int num) {
std::cout << "max num is: " << num << std::endl;
}
// GCC does not inline any functions when not optimizing unless you specify the ‘always_inline’ attribute for the function.
template<class T>
inline void callWith... |
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
enum FieldType {
Name,
Node,
NodeVec,
String,
Uint,
Loc,
};
struct FieldDef {
string name;
FieldType type;
};
struct NodeDef {
string name;
vector<FieldDef> fields;
};
NodeDef nod... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2021, WWIV Software Services */
/* ... |
/*
* Copyright (c) 2006-2007 The Regents of The University of Michigan
* 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
* not... |
#include "Pch.h"
#include "AbilityLoader.h"
#include "Ability.h"
#include "BaseTrap.h"
#include "GameResources.h"
#include "UnitData.h"
#include <Mesh.h>
#include <ResourceManager.h>
enum Group
{
G_TOP,
G_KEYWORD,
G_TYPE,
G_FLAG,
G_EFFECT
};
enum TopKeyword
{
TK_ABILITY,
TK_ALIAS
};
enum Keyword
{
K_TYPE,
... |
#include <errno.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <sstream>
#include <cstdlib>
#include <cassert>
#include <iostream>
#include "codec/bpv6.h"
#include "app_patterns/BpSinkPattern.h"
#include <boost/thread.hpp>
#include <boost/bind/bind.hpp>
#inc... |
//Programmer: <NAME>
//Contact: <EMAIL>
//Date updated: 5/18/2017
//CSCI 1, Assignment #8: Arrays of Struct
//File: DMVTestWithArraysOfStruct.cpp
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
// DESCRIPTION
/*
This program gives a multiple choice DMV test. Student enters 'A', 'B', 'C'... |
/*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... |
/*
* 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 ... |
/* **********************************************************
* Copyright (c) 2016-2020 Google, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
// system include files
#include <memory>
#include <iostream>
#include <string>
#include <vector>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/ESHandle.h"... |
/*
* MIT License
*
* 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, m... |
#include <iostream>
#include <cstring>
#ifdef WITH_OPENCV
#include <opencv2/opencv.hpp>
using namespace cv;
#endif
#define WITH_SAVE_OUTPUT
//using namespace std;
// Vitis Vision Library
// https://xilinx.github.io/Vitis_Libraries/vision/2020.1/index.html
// https://xilinx.github.io/Vitis_Libraries/vision/2020.1/a... |
#include "DQM/GEM/interface/GEMDQMBase.h"
#include "Geometry/CommonTopologies/interface/GEMStripTopology.h"
using namespace std;
using namespace edm;
GEMDQMBase::GEMDQMBase(const edm::ParameterSet& cfg) : geomToken_(esConsumes<edm::Transition::BeginRun>()) {
std::string strRunType = cfg.getUntrackedParameter<std::s... |
#include "Http.h"
#include "Client.h"
#include "Common.h"
#include "CustomAssert.h"
#include "LuaAPI.h"
#include <map>
#include <random>
#include <rapidjson/document.h>
#include <rapidjson/rapidjson.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <stdexcept>
fs::path Http::Server::THttpS... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 <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,... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2016 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 "pos/posvalidation.h"
#include "arith_uint256.h"
#include "chain.h"
#include "cha... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <cassert>
#include <math.h>
#include <chrono>
const double deg2rad = acos(-1)/180.0; // pi/180 for changing degs to radians
double accumulated_forces_bond = 0.; // Checksum: accumulated size of forces
double accumulated_forces_an... |
#include <Arduino.h>
#include "NeuralNetwork.h"
#include <WebServer.h>
#include <WiFi.h>
#include <esp32cam.h>
const char *WIFI_SSID = "DSL_2640NRU";
const char *WIFI_PASS = "";
WebServer server(80);
static auto loRes = esp32cam::Resolution::find(320, 240);
NeuralNetwork *nn;
/*
unsigned char input_vector[] =
{ 0... |
/*
Contains various implementations of Red Black Trees:
-------------------------------------------------------------------------------
(1) Insertion
(2) Deletion
(3) Total number of leaves
(4) Total number of nodes (Red + Black)
(5) Total number of black nodes
(6) Black depth of red black tree
(7) Actual depth of red... |
//
// Created by parkj on 7/17/17.
//
#include <string>
#include <algorithm>
#include <map>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <iostream> //sort
#include <set>
#include <functional>
#include <sys/stat.h>
#include "be_fastq-lib.h"
#include "be_fastq-join.h"
#include "be_... |
/** @file
User agent control by static IP address.
This enables specifying the set of methods usable by a user agent based on the remove IP address
for a user agent connection.
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. Se... |
// MIT License
//
// 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, merg... |
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <algorithm>
#include <limits>
#include <fstream>
#include <map>
#include <string>
#include <vector>
#define WHITE cv::Scalar(255, 255, 255)
#define BLACK cv::Scalar(0, 0,... |
/*
Copyright 2016 BitTorrent 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, software
dist... |
#include <mntRegridEdges.h>
#include <mntNcAttributes.h>
#include <mntNcDimensions.h>
#include <mntMultiArrayIter.h>
#include <mntNcFieldRead.h>
#include <mntNcFieldWrite.h>
#include <mntGrid.h>
#include <CmdLineArgParser.h>
#include <vtkUnstructuredGrid.h>
#include <vtkAbstractArray.h>
#include <vtkCellData.h>
#includ... |
/*
MIT License
Copyright (c) the authors (listed in global LICENSE file)
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,... |
// uio_gendev.cpp (64-pin ATSAM4S)
#include "hwintflash.h"
#include "hwspi.h"
#include "univio_comm.h"
#include "uio_device.h"
#define SPI_CS_PIN 18 // A18
#define UART_TX_PIN 12 // A12
#define UIOFUNC_SPI 0x0100
#define UIOFUNC_I2C 0x0200
#define UIOFUNC_UART 0x0400
#define UIOFUNC_CLKOUT 0x... |
/*
* IPK.2017
*
* TCP communication with REST API.
*
* <NAME> (xmrvam01)
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <iostream>
#include <dirent.h>
#include <string>
#i... |
// Copyright 2020 <NAME>
// This file is part of CIDE, licensed under the new BSD license.
// See the COPYING file in the project root for the license text.
#include "cide/create_class.h"
#include <QBoxLayout>
#include <QCheckBox>
#include <QComboBox>
#include <QDebug>
#include <QDialogButtonBox>
#include <QIcon>
#in... |
#include "include/net/network.h"
#include "include/Utils/common.h"
#include "include/Utils/config_list.h"
#include "include/net/activations.h"
// #include "include/Utils/utils.h"
#include "include/net/convolutional_layer.h"
#include "include/net/fullyconnected_layer.h"
#define CONFIG_FIND_I(...) ConfigIO::configFindTo... |
#include "sched.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <map>
#include <dlfcn.h>
#include <cxxabi.h>
#include <ctime>
#include <chrono>
#include <pthread.h>
#include <time.h>
#include <fstream>
#include <iostream>
#include <sys/syscall... |
// include ROS Libraries
#include <ros/ros.h>
//#include <image_transport/image_transport.h>// image trasport is used for publishing and subscribing an image
#include <cv_bridge/cv_bridge.h> // bridge between ROS and OpenCV
#include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/Image.h>
#include <geometry_msg... |
#include <cstdio>
#include <string>
#include <fstream>
#include <iostream>
// Endianess macro
#define little_endian true
// Macros for string processing
#define clean(s) sprintf((s),"")
#define cut(s,i,sz) ((s).substr((i),(sz)))
#define to_c(s) ((s).c_str())
#define getHex(s,n) (sscanf(s,"%x",&(n)))
// Macros for bi... |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <cassert>
using namespace std;
// Constants
#include "YM2413OkazakiConfig.hh"
static void makeChecks()
{
cout << "// This is a generated file. DO NOT EDIT!\n"
"\n"
"// These tables were generated for the followi... |
/*
* 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... |
//
// CRAM_Service.cpp -- CREATE Real-time Applications Manager (CRAM) service wrapper code for using CSL as a CRAM-managed service
// See the copyright and acknowledgment of authors in the file COPYRIGHT
//
// The CSLService class is the wrapper used to manage CSL programs from CRAM.
// This file has the main() func... |
#include "interactivescene.hpp"
#include <iostream>
// Private statics methods
// GLFW framebuffer size callback
void InteractiveScene::framebufferSizeCallback(GLFWwindow *window, int width, int height) {
// Execute the scene framebuffer size callback
Scene::framebufferSizeCallback(window, width, height);
... |
#include "main.h"
using namespace std;
using namespace load;
enum {
vshdr,
vcubeshdr,
fshdr,
ftexshdr,
fcubeshdr,
shaderListSize,
};
enum {
object,
skybox,
numObjects
};
enum {
NO_COLOR, // do / do not use color when drawing
COLOR
};
GLFWwindow* w; // ok for this to be global since it's used by a decent ... |
/*
* RPLIDAR ROS NODE
*
* Copyright (c) 2009 - 2014 RoboPeak Team
* http://www.robopeak.com
* Copyright (c) 2014 - 2016 Shanghai Slamtec Co., Ltd.
* http://www.slamtec.com
*
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... |
#include "GAMER.h"
#include "TestProb.h"
// problem-specific global variables
// =======================================================================================
typedef int Riemann_t;
const Riemann_t
SOD_SHOCK_TUBE = 0,
STRONG_SHOCK = 1,
TWO_SHOCKS = 2,
EINFELDT_1203 = 3,
EINFELDT_1125 ... |
#include "Assignment5.hpp"
#include "interpolation.hpp"
#include "parametric_shapes.hpp"
#include "config.hpp"
#include "external/glad/glad.h"
#include "core/Bonobo.h"
#include "core/FPSCamera.h"
#include "core/helpers.hpp"
#include "core/InputHandler.h"
#include "core/Log.h"
#include "core/LogView.h"
#include "core/... |
// Copyright 2009-2021 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2021, NTESS
// All rights reserved.
//
// Portions are copyright of other developers:
// See the file CONTRIBUTORS.TXT in the top level directory... |
/*
* Filters+Echo+WT+Goertzel test/demo program
*
* Created on: Apr 10, 2016
* Author: mayo
*/
#include "legacy.h"
#include "../hw/leds.h"
#include "../hw/gpio.h"
#include "../hw/init.h"
#include "../hw/codec.h"
#include "../hw/ui.h"
//#include "../hw/signals.h"
//#include "v1_signals.h"
float volume2 = 80... |
// Copyright (c) 2018 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE NonLinearity2D
#include "poplibs_test/NonLinearity.hpp"
#include "poplibs_test/Util.hpp"
#include "poputil/VertexTemplates.hpp"
#include <poplar/Engine.hpp>
#include <poplibs_support/TestDevice.hpp>
#include <popnn/NonLinearity.hpp>
#in... |
/****************************************************************************//*
* Copyright (C) 2021 <NAME>
*
* Creative Commons Legal Code
*
* CC0 1.0 Universal
*
* CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
* LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
*... |
/* -------------------------------------------------------------------------
*
* pgxc_class.cpp
* routines to support manipulation of the pgxc_class relation
*
* Copyright (c) 1996-2010, PostgreSQL Global Development Group
* Portions Copyright (c) 2010-2012 Postgres-XC Development Group
*
*
* -----------------... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
// This file is fully generated by running parsergen v1.7.0
// with grammer definition file "grammar.txt"
#include "Parser.h"
#include "ParserIdDef.h"
#include <bux/ImplLR1.h>
#include <bux/XException.h>
namespace {
using namespace bux::LR1;
//
// Generated Constants
//
enum
{
NID_Expr = TID_UB_+2, // <Expr>
... |
#include "tChemReactions.hpp"
#include <utilities/petscError.hpp>
#if defined(PETSC_HAVE_TCHEM)
#if defined(MAX)
#undef MAX
#endif
#if defined(MIN)
#undef MIN
#endif
#include <TC_interface.h>
#include <TC_params.h>
#include <flow/processes/eulerAdvection.hpp>
#else
#error TChem is required for this example. Reconfigu... |
#include <iostream>
#include <random>
#include <queue>
#include <algorithm>
#include <fstream>
#include <vector>
#include <chrono>
#include <unordered_set>
#include <cassert>
class DatasetGenerator {
public:
DatasetGenerator(const std::string &dir, const std::string &prefix) : dir_(dir), prefix_(prefix),
... |
// Copyright 2013 The CARFAC Authors. All Rights Reserved.
// Author: <NAME>
//
// This file is part of an implementation of Lyon's cochlear model:
// "Cascade of Asymmetric Resonators with Fast-Acting Compression"
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except... |
//------------------------------------------------------------------------------------------------
// Copyright (c) 2012 <NAME> and <NAME> (University Campus Bio-Medico of Rome).
// All rights reserved.
//------------------------------------------------------------------------------------------------
/***************... |
#include <iostream>
#include <random>
#include <string>
#include <vector>
#include <Ktt.h>
#if defined(_MSC_VER)
const std::string kernelPrefix = "";
#else
const std::string kernelPrefix = "../";
#endif
//void computeResult()
//{
// int i, j, j1, j2;
// /* Determine mean of column vectors of input data ma... |
/*
SimionZoo: A framework for online model-free Reinforcement Learning on continuous
control problems
Copyright (c) 2016 SimionSoft. https://github.com/simionsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... |
#include "globalStuff.h"
#include <glm/glm.hpp>
#include <sstream>
#include <iostream>
#include <fstream>
//extern std::vector< cMeshObject* > g_vec_pMeshObjects;
//
//extern cMeshObject* g_pTheLightMesh = 0; // or NULL
// To handle the scaling of the object
#include "cVAOManager.h"
// Should be in a header somewh... |
/*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
#include <UTF8.h>
#include <UnicodeMappings.h>
#include <KernelExport.h>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include "encodings.h"
extern "C" {
#include "util.... |
// Copyright 2010-2018 Google LLC
// 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... |
#include "read.h"
#include <sstream>
#include "util.h"
#include <memory.h>
Read::Read(string name, string seq, string strand, string quality){
mName = name;
mSeq = Sequence(seq);
mStrand = strand;
mQuality = quality;
mHasQuality = true;
}
Read::Read(string name, string seq, string strand){
mName = name;
mSeq =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.