text stringlengths 3.08k 12.5k |
|---|
/**
* BSD 3-Clause License
*
* Copyright (c) 2019, <NAME> - <EMAIL>
* Technical University of Munich
* Chair of Robotics, Artificial Intelligence and Real-time Systems
* Department of Informatics / I6, Boltzmannstraße 3, 85748 Garching bei München, Germany
* https://www6.in.tum.de
*
* All rights reserved.
*
... |
/*
*
* Test function for OpenSSL signature verification
*
* to build on OSX
* g++ -g -lssl -std=c++11 main.cpp -o testECDSA -lcrypto -I/usr/local/Cellar/openssl/1.0.2p/include/
*
* to build on RPi
* g++ -g -lssl -std=c++11 main.cpp -o testECDSA -lcrypto -s
*
* */
#include <iostream>
#include <string.h>
#i... |
// This file is part of Project Name
// Copyright (C) Michigan State University, 2017.
// Released under the MIT Software license; see doc/LICENSE
// PD WORLD EXAMPLE
#include <functional>
#include <string>
#include "../configsetup.h"
#include "../queue-manager.h"
#include "../simplepdworld.h"
#include "web/web.h"... |
/*
Copyright (c) 2014, <NAME> and <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 th... |
#include "bind/syscmd/source.hpp"
#include "bind/binded_func.hpp"
#include "entry.hpp"
#include "err_logger.hpp"
#include "g_maps.hpp"
#include "g_params.hpp"
#include "key/char_logger.hpp"
#include "mode.hpp"
#include "opt/vcmdline.hpp"
#include "parser/bindings_parser.hpp"
#include "parser/rc_parser.hpp"
... |
#include "state_merger.h"
#include "evaluate.h"
#include "evaluation_factory.h"
#include <stdlib.h>
#include <math.h>
#include <vector>
#include <map>
#include <stdio.h>
#include <gsl/gsl_cdf.h>
#include "parameters.h"
#include "mealy.h"
REGISTER_DEF_TYPE(mealy);
REGISTER_DEF_DATATYPE(mealy_data);
in... |
/**
* This file is part of ORB-SLAM3
*
* Copyright (C) 2017-2021 <NAME>, <NAME>, <NAME>, <NAME> and <NAME>, University of Zaragoza.
* Copyright (C) 2014-2016 <NAME>, <NAME> and <NAME>, University of Zaragoza.
*
* ORB-SLAM3 is free software: you can redistribute it and/or modify it under the terms of the GNU General Pub... |
#include <ql/quantlib.hpp>
#include <boost/make_shared.hpp>
#include <iostream>
#include <fstream>
using namespace QuantLib;
void spreads() {
// set up market data
Date refDate = Date(14, October, 2013);
Date settlDate = TARGET().advance(refDate, 2, Days);
Settings::instance().evaluationDate() = ... |
#include "logSystem.h"
LogSystem::LogSystem(SdFatBase& anSD,String aWorkDir):sd(anSD)
{
workDir = aWorkDir;
rotationRate = 3600;
version = "V1";
}
LogSystem::LogSystem(SdFatBase& anSD,String aWorkDir,String aVersion, int aRotationRate):sd(anSD){
workDir = aWorkDir;
rotationRate = aRotationR... |
#include "streaming_sptensor.hpp"
#include "algorithm"
#include "assert.h"
// Debugging purposes
void print_sptensor(SparseTensor *sp, int nnz) {
fprintf(stderr, "Sparse tensor has %llu nnzs\n", sp->nnz);
for (int n = 0; n < sp->nmodes; ++n) {
fprintf(stderr, "Dim #%d: %llu\n", n, sp->dims[n]);
... |
/*
Copyright 2017 Silent Circle, 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 writing, softw... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <algorithm>
using namespace std;
typedef long double db;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-'... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int n, b, k;
char str[1000];
int get[6];
struct {
char name[10];
int innum;
int outnum;
int linkto[5000];
int value[5000];
}xz[600];
int road[100][100] = { 0 };
int maxvalue = 0, roadnum = 0;
char resroad[100][500];
int start;
int aoevsd[1000] = { 0 };
int... |
// visiongl
#include "glsl2cpp_shaders.h"
#include "vglImage.h"
#include "vglContext.h"
//time
#include <time.h>
void display(void);
void reshape(int w, int h);
void keyboard(unsigned char key, int x, int y);
using namespace std;
#define NUM_IMG 12
VglImage* img[NUM_IMG];
int width, height;
int i_frame... |
/**
* Parametric node code.
*
* <NAME> <<EMAIL>>
*
* December 3, 2021
*/
#include <chrono>
#include <limits>
//! This is only required if you want to set parameters from within the code!
//! See topic callback below!
#include <rclcpp/node_interfaces/node_parameters.hpp>
#include "../include/parameters_example/... |
#pragma once
#include <logos/consensus/messages/messages.hpp>
#include <logos/consensus/messages/util.hpp>
#include <logos/consensus/request/request_internal_queue.hpp>
#include <logos/lib/epoch_time_util.hpp>
#include <logos/lib/log.hpp>
#include <memory>
#include <list>
#include <boost/multi_index/hashed_index.hpp... |
#include "Halide.h"
#include <stdio.h>
#include <algorithm>
#include "clock.h"
using namespace Halide;
Var x("x"), y("y");
Func bitonic_sort(Func input, int size) {
Func next, prev = input;
Var xo("xo"), xi("xi");
for (int pass_size = 1; pass_size < size; pass_size <<= 1) {
for (int chunk_size ... |
#include "Dem.h"
#include "Point3.h"
using namespace std;
DEM::DEM(string filename)
{
ifstream input(filename);
string linein,fullfile;
int linecount = 0;
if (input.is_open())
{
cout << "Reading file\n";
while (getline(input, linein))
{
//should... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2014, ITU/ISO/IEC
* All rights reserve... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
/**
* @file llnotificationalerthandler.cpp
* @brief Notification Handler Class for Alert Notifications
*
* $LicenseInfo:firstyear=2000&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it... |
/**
* @file radical.cpp
* @author <NAME>
*
* Implementation of Radical class
*/
#include "radical.hpp"
using namespace std;
using namespace arma;
using namespace mlpack;
using namespace mlpack::radical;
// Set the parameters to RADICAL.
Radical::Radical(const double noiseStdDev,
const size_t re... |
#include "Grid3D.hpp"
#include <vector>
#include "../../GlobalLog.hpp"
#include "../../Utils/Utils.hpp"
GLGrid3D::GLGrid3D(const mmm::vec2& size) {
mSize = size;
setup();
}
GLGrid3D::~GLGrid3D() {}
void GLGrid3D::setup() {
std::vector<std::vector<mmm::vec3>> vertices(mSize.y,
... |
/*
* Copyright (C) 2015 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... |
/*
* Harmon Instruments SPI flash interface
* Copyright (C) 2014-2016 Harmon Instruments, LLC
* MIT License -- See LICENSE.md
*/
#include <unistd.h>
#include <string.h>
#include <stdint.h>
#include "SpiFlash.h"
SpiFlash::SpiFlash(CP2130 *s)
{
cp2130 = s;
// power up
//put_byte(0xAB, 1);
read_id();
}
void Spi... |
#include "common.hpp"
#include "log.hpp"
#include <unordered_map>
#include <memory>
const char encodeMap[63] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
namespace netproto{
using boost::asio::ip::tcp;
// Turn base-62 repr into integer
size_t decodeKey(std::string s){
size_t v = 0;
for (... |
#include <iostream>
#include <fstream>
#include "RayTracer.h" //common headers (including stb_image)
#include "Sphere.h"
#include "HitableList.h"
#include "Camera.h"
#include "Material.h"
#include "Color.h"
#include "BVH.h" //bounding volumne hierarchy
#include "AARect.h" //axis-aligned rectangles
#include "Box.h"
#i... |
//
// Academic License - for use in teaching, academic research, and meeting
// course requirements at degree granting institutions only. Not for
// government, commercial, or other organizational use.
// File: main.cpp
//
// MATLAB Coder version : 4.3
// C/C++ source code generated on : 25-Jun-2020... |
/**************************************************************************
*
* Copyright 2012 VMware, 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 Software wit... |
#include "plugin_loader.h"
#include "moltengamepad.h"
#ifndef NO_PLUGIN_LOADING
#include <dlfcn.h>
#endif
plugin_api plugin_methods;
std::vector<std::function<int (plugin_api)>> builtin_plugins;
bool LOAD_PLUGINS = false;
int register_plugin( int (*init) (plugin_api)) {
if (init) {
builtin_plugins.push_back(i... |
/*
Copyright (c) 2015, The Dokdo 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:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
#include <stdlib.h>
#include <ctype.h>
#include <stdio.h>
#include "agg_basics.h"
#include "agg_rendering_buffer.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_scanline_p.h"
#include "agg_renderer_scanline.h"
#include "agg_path_storage.h"
#include "agg_conv_transform.h"
#include "agg_trans_warp_magn... |
/*
Copyright 2011. All rights reserved.
Institute of Measurement and Control Systems
Karlsruhe Institute of Technology, Germany
This file is part of libelas.
Authors: <NAME>
libelas 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 So... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/common/tokenzr.cpp
// Purpose: String tokenizer
// Author: <NAME>
// Modified by: <NAME> (almost full rewrite)
// Created: 04/22/98
// RCS-ID: $Id$
// Copyright: (c) <NAME>
// Licence: wxWindows lic... |
/*
*
* Copyright (C) 1994-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were partly developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
* For further copyrights, see the follo... |
#include "Maze.h"
//apply methods here
using namespace std;
Maze::Maze(){}
Maze::Maze(int w, int h)
{
width= w;
height = h;
noEdges = width * height - 1;
generateCells();
setNeighbours();
}
//method for maze that takes width and height as paramaeters and asssigns them to the object
void Maze::se... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "HoverMini.h"
#include "ReturnoftheGormGameMode.h"
#include "Kismet/GameplayStatics.h"
// Sets default values
AHoverMini::AHoverMini()
{
// Set this pawn to call Tick() every frame. You can turn this off to improve performanc... |
// Copyright 2018-2019 <NAME> and <NAME>
//
// Distributed under the 3-Clause BSD License. See accompanying
// file LICENSE or https://github.com/scikit-hep/boost-histogram for details.
#pragma once
#include <bh_python/pybind11.hpp>
#include <bh_python/array_like.hpp>
#include <bh_python/axis.hpp>
#include <bh_pyth... |
#include "Na2DViewer.h"
Na2DViewer::Na2DViewer(QWidget * parent /* = NULL */)
: QWidget(parent)
{
setMouseTracking(true); // respond to mouse hover events
}
void Na2DViewer::paintCrosshair(QPainter& painter)
{
float scale = defaultScale * cameraModel.scale();
QBrush brush1(Qt::black);
QBrush brush... |
// Copyright 2019-2020 the ProGraML authors.
//
// Contact <NAME> <<EMAIL>>.
//
// 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
//
// Unle... |
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define inf 100000000
#define mp make_pair
///V*E Complexity
///Base doesn't matter
const int MAXN = 20010;///total nodes
const int MAXM = 60010;///total edges
struct node{
int u,v;
int flow,cap,cost,next;
}edge[MAXM];
int tot;
queue<int> Q;
in... |
/*
libmsgexchange - Client / Server Message Exchange Library
Copyright (C) 2012 BMS Informationstechnologie GmbH
*/
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include "os-config.h"
#include "msgserver.h"
#include "msghandlerbase.h"
MsgServer::MsgS... |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 <NAME> http://continuousphysics.com/Bullet/
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permission is ... |
#include "stdafx.h"
#include "SphereMesh.h"
void CSphereMesh::makeIcosahedron()
{
// http://blog.andreaskahler.com/2009/06/creating-icosphere-mesh-in-code.html
// Calculate normalized coordinate values
const double T = ( 1.0 + sqrt( 5.0 ) ) / 2.0;
const double mul = 1.0 / sqrt( T * T + 1.0 * 1.0 );
const float t... |
// Copyright (c) 2015
// Author: <NAME>
#include <std.hpp>
using namespace std;
#include <boost/utility/string_ref.hpp>
#include <boost/algorithm/string.hpp>
using namespace boost;
//////////////////////////////////////////
void case1()
{
string str("readme.txt");
if (ends_with(str, "txt"))
{
co... |
// Copyright 2019 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 "gn/rust_values_generator.h"
#include "gn/config_values_generator.h"
#include "gn/err.h"
#include "gn/filesystem_utils.h"
#include "gn/functions... |
//===-- Regex.cpp - Regular Expression matcher implementation -------------===//
//
// 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
//
//===---------------------------... |
//===-- WebAssemblyRegColoring.cpp - Register coloring --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "software/ai/hl/stp/play/stop_play.h"
#include "shared/constants.h"
#include "software/ai/hl/stp/play/play_factory.h"
#include "software/ai/hl/stp/tactic/goalie_tactic.h"
#include "software/ai/hl/stp/tactic/move_tactic.h"
const std::string StopPlay::name = "Stop Play";
std::string StopPlay::getName() const
... |
// Copyright 2014 The Crashpad 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 ... |
//===-- sanitizer_bitvector_test.cc ---------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/// Copyright 2021 <NAME> <<EMAIL>>
///
/// 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, pub... |
#include "movelist.h"
movelist::movelist (peg a, board b) : k(a), d(b)/*, t(0)*/ {
//d.setval(k.x(), k.y(), t);
/*std::cout << "\ntm" << std::endl;*/
movelist::findmoveables();
}
void movelist::findmoveables (){
moveables.clear();
for (int j=0; j < d.getheight(); j++){
for (int i=0; i < d.... |
//
// (C) Copyright 2001 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warra... |
//============================================================================
// Name : retinademo.cpp
// Author : <NAME>, <EMAIL>
// Version : 0.1
// Copyright : LISTIC/GIPSA French Labs, july 2011
// Description : Gipsa/LISTIC Labs retina demo in C++, Ansi-style
//==================================... |
#include "stdafx.h"
#include "UnderWorld.h"
#include "Defines.h"
#include "LogProc.H"
#include "GameMain.h"
#include "gObjMonster.h"
#include "DSProtocol.h"
#include "Notice.H"
CUnderworld gUnderworld;
CUnderworld::CUnderworld()
{
gUnderworld.Init();
}
CUnderworld::~CUnderworld()
{
}
void CUn... |
// *******************************************************************************************************************************
// *******************************************************************************************************************************
//
// Name: sys_debug_cerberus.c
// Purpose: Debugger C... |
//
// GelfOutput.cpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (C) 2018 IQOption Software, Inc.
//
//
#include "GelfOutput.h"
#include "outputs/Record.h"
#include "outputs/gelf/Gelf.h"
using namespace iqlogger::outputs;
using namespace iqlogger::outputs::gelf::tcp;
GelfOutput::GelfOutput(config::DestinationConfig destinat... |
// Copyright (c) 2013-2020 <NAME>
// 2020 <NAME>
// SPDX-License-Identifier: BSL-1.0
#include "PothosUtil.hpp"
#include <Pothos/Testing.hpp>
#include <Pothos/Plugin/Loader.hpp>
#include <Pothos/System/Paths.hpp>
#include <Poco/Process.h>
#include <Poco/Pipe.h>
#include <Poco/PipeStream.h>
#include <... |
/*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
//===-- RecordStreamer.cpp - Record asm defined and used symbols ----------===//
//
// 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
//
//===---------------------------... |
//
// AssetResourceRequest.cpp
// libraries/networking/src
//
// Created by <NAME> on 2015/07/23
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AssetResourceRequest... |
/*
* Copyright (c) 2017 Sprint
*
* 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... |
/*******************************************************************************
Copyright (c) 2001-2010 by Text Analysis International, Inc.
All rights reserved.
********************************************************************************
*
* NAME: ANGEN.CPP
* FILE: lite/angen.cpp
* CR: 04/17/00 AM.
* SUBJ: Code ... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <utility>
using namespace std;
int mask2id[1<<23];
vector<int> id2mask;
void generate_masks(int p, int lim, int cur) {
if (p >= lim) {
... |
#include "core/MemoryUtils.h"
#include "mapreduce/workers/reader/LibAIOReader.h"
LibAIOReader::LibAIOReader(
const std::string& phaseName, const std::string& stageName, uint64_t id,
Params& params, NamedObjectCollection& dependencies, uint64_t _alignmentSize,
bool _directIO, uint64_t asynchronousIODepth, uint64_... |
#include "one_input.h"
#include "one_input_impl.h"
#include "overloaded.h"
#include "MathWorker.h"
#include "RipTide.h"
#include "basic_ops.h"
#include "ndarray.h"
#include "simd/avx2.h"
#include <cstddef>
#include <type_traits>
#include <utility>
#include <variant>
PyObject * process_one_input(PyArrayObject const ... |
//
// main.cpp
// test1
//
// Created by <NAME> on 8/22/21.
//
#include <vector>
#include "main.h"
#include "commonClass.hpp"
#include "debugModule.hpp"
auto a = 8;
auto b = 12345678;
auto c = 3.14f;
auto d = 3.14;
auto e = true;
auto f = 'x';
auto g = "hello world.";
#if 1
static void swapTest(int& x, int& y)
{
... |
#include "menu.h"
using namespace std;
menuclass::menuclass()
{
clear();
initscr();
nodelay(stdscr,true); //if none key pressed don't wait for keypress
keypad(stdscr,true); //init the keyboard
noecho(); //don't write
curs_set(0); //cursor invisible... |
/*
* BSD 2-Clause License
*
* Copyright (c) 2021-2022, Hewlett Packard Enterprise
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the abo... |
/*
* Barcode
* Copyright <NAME> and <NAME>
*
* Distributed under the terms of the MIT License.
* The full license is in the file LICENSE, distributed with this software.
*/
#include <iostream>
#include "define_opt.h"
#include "struct_main.h"
#include "fftw_array.h"
#include <cmath>
#include <sstream>
#include <... |
#include <../include/graph.h>
#include <../include/dataloader.h>
#include "../include/pattern.h"
#include "../include/schedule.h"
#include "../include/common.h"
#include "../include/motif_generator.h"
#include <assert.h>
#include <iostream>
#include <string>
#include <algorithm>
void test_pattern(Graph* g, Pattern &p... |
/**
* @file io_rgbd.cpp
* @brief Example of the referred class.
*
* @section LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ... |
#include "nSoundSource.h"
#include "nSoundSystem.h"
#include "nSoundBuffer.h"
#include "AL/al.h"
nSoundSource::nSoundSource(QString name, nSoundSourceRole role, nSoundSystem * parent) :
QObject(parent)
{
setObjectName(name);
m_role = role;
m_gainMirror = _roleGainVolume(role);
m_fading = false;
... |
/****************************************************************************
*
* Copyright (c) 2012-2019 PX4 Development Team. 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. Red... |
#include "paged_article.h"
#include "core/database/query_builder.h"
#include "core/database/query_result.h"
#include "core/database/table_builder.h"
#include "core/utils.h"
#include <tinydir/tinydir.h>
#include <iostream>
void PagedArticle::handle_request_main(Request *request) {
const String r = request->get_curre... |
#include "socket.h"
#include "net_file.h"
#include "directory_iterator.h"
#include "network_io.h"
#include "lz4.h"
#include <chrono>
#include <iostream>
void pack_and_send(NetworkIO& writer, char* packing_buffer, char* compressed_packing_buffer, std::vector<FileIndex>& small_files_indicies, std::vector<NetFile>& file... |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <sstream>
#include <list>
#include <queue>
#include <stack>
//#include <unordered_map>
//#inclu... |
/*------------------------------------------------------------------------------
Example code that shows the use of the 'cam2world" and 'world2cam" functions
Shows also how to undistort images into perspective or panoramic images
Copyright (C) 2008 <NAME>, ETH Zurich
Author: <NAME> - email: <EMAIL>
--------... |
/* Copyright 2018 Stanford University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
// PixelPopConCalibChecker.cc
//
// EDAnalyzer to check calibration configuration objects transferred to database
//
// <NAME>
// Aug 2008
#include <iostream>
#include "PixelPopConCalibChecker.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "CalibFormats/SiPixelObjects/interface/PixelCalibConfiguration.... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include <cstring>
#include "TrustedComb.h"
TrustedComb::TrustedComb() {
this->preph = Hash(true); // the genesis block
this->prepv = 0;
this->view = 0;
this->phase = PH1_NEWVIEW;
this->qsize = 0;
}
TrustedComb::TrustedComb... |
// Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "HALSimHttpConnection.h"
#include <uv.h>
#include <string_view>
#include <fmt/format.h>
#include <wpi/MimeTy... |
#include "cubefader.hpp"
#include "gui_components.hpp"
namespace rack_plugin_CastleRocktronics {
struct CubefaderWidget : ModuleWidget {
CubefaderWidget(Cubefader *module);
private:
int moduleWidth;
void placeGuiElements();
void placeAudioInputs(int x, int y, int verticalSpacing);
void placeCvInputs(int ... |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <cerrno>
#include <iostream>
#include <iomanip>
#include "myV775N.h"
#include "myModules.h"
using namespace std;
#define HEXWORD(m) "0x" << hex << setfill('0') << setw(8) << m << dec
/***************... |
// error.cpp: numerical error analysis benchmark environment
//
// Copyright (C) 2017-2020 Stillwater Supercomputing, Inc.
//
// This file is part of the HPRBLAS project, which is released under an MIT Open Source license.
// include and configure number systems
// configure the posit number system behavior
#define PO... |
//
// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
//
// The contents of this file are covered under the licence agreement in the
// file "LICENCE" distributed with Cforall.
//
// SemanticError.cc --
//
// Author : <NAME>
// Created On : Mon May 18 07:44:20 2015
// Last Modified By : ... |
// #################################################################################################
// # You told me #
// # At your absolute best, you still won't be good enough for the wrong person #
// # ... |
#include "e4pp/ev.hpp"
#include "e4pp/uri.hpp"
#include "e4pp/buffer.hpp"
#include "e4pp/queue.hpp"
#include "e4pp/thread.hpp"
#include "e4pp/listener.hpp"
#include "e4pp/buffer_event.hpp"
#include <thread>
#include <iostream>
#include <signal.h>
#include <cassert>
#include <chrono>
#include <arpa/inet.h>
std::ostrea... |
/**
* @file lexweight.cpp
* @brief Lexical weight
*
* @author <NAME>
*
* Class implementation for the classes:
* - lexweightmodel_t (abstract base class of different lex weight models)
* - lexweightfile_t (read lexical weight model from file)
* - lexweightlearn_t (estimate lexical weight from either a... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <iomanip>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
#include "calcwit.h"
#include "circom.h"
#include "utils.h"
... |
#include <bits/stdc++.h>
using namespace std;
#define SIZE 300010
/* Disjoint Set */
int parent[SIZE];
int getParent(int cntPt) {
if (parent[cntPt] == cntPt)
return cntPt;
parent[cntPt] = getParent(parent[cntPt]);
return parent[cntPt];
}
void merge(int fstPt, int sndPt) {
f... |
#include <iostream>
#include <vector>
#include <cassert>
using namespace std;
struct Node {
int data;
Node *next;
};
void push(Node **head_ref, int data);
Node* from_array1(const vector<int>& array);
Node* from_array2(const vector<int>& array);
Node* from_array3(const vector<int>& array);
void print(Node *head);
in... |
/*
* Copyright (C) 2015 midnightBITS
*
* 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, pub... |
#include <iostream> /* printf */
#include <string>
#include <sstream> /* stringstream */
#include <stdlib.h> /* cin, cout */
#include "instance.h"
using namespace std;
Instance::Instance(unsigned features) {
this->features = features;
this->keywords = new string[features];
this->ids = new unsigned[feature... |
/*
* Copyright (c) 2011-2015, Intel 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:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of... |
#include <csignal>
#include <limits>
#include "args/args.hpp"
#include "client/cororeindexer.h"
#include "commandsprocessor.h"
#include "core/reindexer.h"
#include "debug/backtrace.h"
#include "reindexer_version.h"
#include "repair_tool.h"
#include "tools/logger.h"
#include "tools/stringstools.h"
namespace reindexer_t... |
#include<RegisterKeyboard.h>
#include<geDE/Kernel.h>
#include<SDL2/SDL.h>
std::string keyboard::keyName(int key){
if(key==SDLK_PERIOD)return "period";
if(key==SDLK_KP_PERIOD)return "Keypad period";
if(key==SDLK_QUOTE)return "quote";
if(key==SDLK_BACKQUOTE)return "backquote";
if(key==SDLK_QUOTEDBL)return "quo... |
/*
* Iterative Sequence Number Server
*
***************************************************************************************/
// Defines
#define _BSD_SOURCE // NI_MAXHOST, NI_MAXSERV from <netdb.h>
// Headers
#include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cerrno>
#include <cstring>
#include ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.