text stringlengths 5.71k 33.7k |
|---|
#include "./pxtnPulse_PCM.h"
#include "./pxtn.h"
#include "./pxtnDescriptor.h"
#include "./pxtnMem.h"
typedef struct {
uint16_t formatID; // PCM:0x0001
uint16_t ch; //
uint32_t sps; //
uint32_t byte_per_sec; // byte per sec.
uint16_t block_size; //
uint16_t bps; //... |
#include "Core/Defines.h"
#include "Core/CoreStructures.h"
#include "../World.h"
#include "../EntityInformer.h"
#include "../Geometry.h"
#include "../Mass.h"
#include "../Body.h"
#include "../Joint.h"
#include "DotLoader.h"
#include "../Prefab/Vehicle.h"
#include "../Prefab/Ragdoll.h"
#include "IO/CoreLogging.h"
#incl... |
#include <Kokkos_Core.hpp>
#include "solver.h"
#include <KokkosBlas1_axpby.hpp>
#include <KokkosBlas1_dot.hpp>
#include <KokkosBlas2_gemv.hpp>
#include <KokkosBlas3_gemm.hpp>
// main function to solve N-S equation on time steps
void Solver::solve(stopping_point s_p, linear_solver l_s,adaptative_time_step ats){
// ... |
#include "openglwindow.hpp"
#include <imgui.h>
#include <string.h>
#include <cppitertools/itertools.hpp>
#include <glm/gtc/matrix_inverse.hpp>
void OpenGLWindow::handleEvent(SDL_Event& ev) {
if (ev.type == SDL_KEYDOWN) {
if (ev.key.keysym.sym == SDLK_UP || ev.key.keysym.sym == SDLK_w)
m_dollySpeed = 0.... |
/***********[muser.cc]
Copyright (c) 2012-2013 <NAME>, <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, mer... |
// Copyright (c) 2005-2010, <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 conditio... |
/*
* $Id: DSMMuxer.cpp 2779 2013-05-25 14:43:27Z exodus8 $
*
* (C) 2003-2006 Gabest
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 Fou... |
/* OSSex.cpp v0.4 - Library for controlling Arduino-based sex-toys
* Written by <NAME>/Comingle
* {♥} COMINGLE
*/
#include <Arduino.h>
#include <OSSex.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include "OneButton.h"
// Pre-instantiate as a Mod. Pre-instantiation is necessary for the
// timer2/timer4 interr... |
#include <random>
#include <mpi.h>
#include <stdint.h>
#include <float.h>
#include <limits.h>
#include <complex>
#include <math.h>
#include <stdio.h>
#include <iostream>
#include "/home/etotoni/.julia/v0.5/ParallelAccelerator/src/../deps/include/j2c-array.h"
#include "/home/etotoni/.julia/v0.5/ParallelAccelerator/src/.... |
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "opengl/Renderer.h"
#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw_gl3.h"
// include tests
#include "tests/TestClearColor.h"
#include "tests/01_FirstPrototipe/T01_FirstPrototipe_01.h"
#include "mfgd/mfgd_Classes.h"
#include "mfgd/... |
#include "Vehicle.h"
#include "constants.h"
#include <random>
#include <algorithm>
#include <iterator>
#include <chrono>
using std::string;
using std::vector;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::min;
using std::max;
// Initializes Vehicle
Vehicle::Vehicle() {
this->s = 0;
this->s_dot = 0;
this... |
#include "wfobj.h"
#include "imageloader.h"
void wf_object_t::draw() {
glPushMatrix();
{
glScaled(s, s, s);
glEnable(GL_TEXTURE_2D);
float* k = arguments;
for (int i = 0; i < n; i++, k += 4) {
// printf("c(%f, %f, %f, %f)\n", k[0], k[1], k[2], k[3]);
com... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#define eps 0.001
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = t... |
#include <stdio.h>
#include <unistd.h>
#include <net/if.h>
#include <syslog.h>
#include <netlink/netlink.h>
#include <netlink/genl/ctrl.h>
#include <netlink/genl/genl.h>
#include <linux/nl80211.h>
#include <sys/socket.h>
#include <sys/un.h>
/*
* Rate info, contained in station info
*
* Fields commented out are ones... |
/*
* Copyright 2018 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/tessellate/GrStrokePatchBuilder.h"
#include "include/core/SkStrokeRec.h"
#include "include/private/SkFloatingPoint.h"
#include "include/private/SkNx.h"
#inc... |
/**
* @file
* @author 2012-2013 <NAME> (<EMAIL>)
* @copyright Simplified BSD
*
* @cond
* This program is free software: you can redistribute it and/or modify
* it under the terms of the FreeBSD license as published by the FreeBSD
* project.
*
* This program is distributed in the hope that it will... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include "rs-sci/mp-integer.hpp"
#include "rs-unit-test.hpp"
#include <string>
using namespace RS::Sci;
void test_rs_sci_mp_integer_unsigned_conversion_integers() {
MPN x;
std::string s;
TEST_EQUAL(uint64_t(x), 0u);
TEST_EQUAL(double(x), 0);
TRY(s = x.str("b")); TEST_EQUAL(s, "0");
TRY(s = ... |
///////////////////////////////////////////////////////////////////////////////
//FILE: 'rcs.cpp'
//Contains 'rcs' module of class 'Hyper'
//
//040302 Created by <NAME>
///////////////////////////////////////////////////////////////////////////////
#include "class_hierarchy.hpp"
//////////////////////////////////////... |
// #include <Rcpp.h>
#include <RcppArmadillo.h>
using namespace Rcpp;
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::plugins(openmp)]]
// -------- Set up OPENMP
#ifdef _OPENMP
#include <omp.h>
#include <pthread.h>
#else
#define omp_get_thread_num() 0
#define omp_get_max_threads() 1
#endif
static int openMPThreads = ... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompan... |
/* Copyright (C) 2007-2010 The Android Open Source Project
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that i... |
#include "GeometricObject.h"
#include "Assist/Color.h"
#include "Render/RenderShader.h"
#include "Render/RenderManager.h"
#include "Render/RenderBuffer.h"
#include "Render/RenderMaterial.h"
#include "Render/RenderLightSource.h"
#include "BL/GeometryGenerator.h"
namespace {
const char gDebugShaderCode[] =
"#defin... |
#define GLM_FORCE_XYZW_ONLY
#include <iostream>
#include <sstream>
#include <time.h>
#include <spob/spob2glm.h>
#include <Eigen/Dense>
using Eigen::MatrixXd;
using Eigen::VectorXd;
#include "interpolation.h"
#include "draw.h"
#include "spline.h"
#include "interpolation.h"
//#include "mba.hpp"
typedef function<void... |
#include "videocall.h"
#include "ui_videocall.h"
#include "video_funcs.h"
#include "connectionnotificationdialog.h"
#include "connectionstartdialog.h"
VideoCall::VideoCall(QWidget *parent,string tar_url,int target_prt,Tcp_Socket *mw_tcp_sock) :
QWidget(parent),
ui(new Ui::VideoCall),target_url(tar_url),target_p... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
#include "scene.h"
#include "material.h"
#include "vector3.h"
#include "object.h"
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
using namespace std;
using namespace tinyxml2;
Scene::~Scene() {
if (camera) delete camera;
delete kdtree;
}
void Scene::parseCamera(XMLElement* cameraEle) {
... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... |
/*
* Copyright (c) 2014-2019, the neonavigation authors
* 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... |
//-*-c++-*-
/*
* Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
// ====================================================================
// ====================================================================
//
// Module: opt_tail.cxx
// $Revision: 1.1.1.1 $
// $Date: 2005/10/21 19:00:00 $
// $... |
#include "bsde_internal.h"
//Cylinders
//Issue: may have issues in some cases, eg, long/narrow cylinders, or
//parallel+offset cylinders
void BSDE_SolidCylinder_MakeBox(bsde_real height, bsde_real radius, int t,
bsde_real *pos, bsde_real *mins, bsde_real *maxs)
{
bsde_real f;
int i;
for(i=0; i<3; i++)
{
if(t)... |
/* $Id$ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#elif defined(_WIN32)
#include "config_w32.h"
#endif
#include <fstream>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include "globals.h"
#include "parser.h"
#include "dfa.h"
#include "mbo_getopt.h"
namespace re2c
{
file_info sourceFileInfo;
file_in... |
#include "assembler/source/assembler.hpp"
#include "assembler/source/conversions.hpp"
#include "shared/source/assembly.hpp"
#include <fstream>
#include <sstream>
#include <iomanip>
#include <bitset>
Assembler::Assembler() :
m_address(0u),
m_metalMaskLength(0u),
m_mnemonics({ // TODO: Make it constexpr
... |
/**
* Conference.cpp
* @author: <NAME>
* @course: CS 240
*/
#include "Conference.h"
///////////////////////////////////////////////////////////////////////////////
//**** OVERLOAD OPERATORS ****
///////////////////////////////////////////////////////////////////////////////
/**
* operator >>
* @description: In... |
/*
* Copyright (C) 2018 Open Source Robotics Foundation
*
* 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 appl... |
/* Copyright 1995 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#if !defined (OMIT_RCSID_STRINGS)
char ROMlib_rcsid_ctlPopup[] =
"$Id: ctlPopup.c 86 2005-05-25 00:47:12Z ctm $";
#endif
#include "rsys/common.h"
#include "QuickDraw.h"
#include "CQuickDraw.h"
#include "ControlMgr.h"
#include ... |
#include "Offsets.h"
COffsets Offsets;
using namespace json11;
void COffsets::DownloadOffsets() {
//DOWNLOADING FRESH OFFSETS
char downloadUrl[512];
strcpy(downloadUrl, Settings.Misc.Offset_URL.c_str());
char downloadFileName[64] = ".\\offsets.json"; //still need to xor
URLDownloadToFile(0, downloadUrl, downloa... |
/* MikMod sound library
(c) 1998, 1999, 2000, 2001, 2002 <NAME> and others - see file
AUTHORS for complete list.
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of... |
#include "ivmsbeta.h"
#include <string.h>
#include <stdio.h>
/////////////////////////////////////////////////////////////////////
int IVMBeta::VmCreate(int size,vbyte *data,vdword *VmRegs)
{
if (VirtualMem) {
vbyte *nvm=new vbyte[size];
if (!size) return -1;
memcpy(nvm,VirtualMem,(VmSize<(unsigned)si... |
#include "main_engine/tracker/TrackingEngine.h"
#include "main_engine/tracker/residual_util.h"
MeshPyramidReader::MeshPyramidReader(MeshLoadingSettings& settings,
int width, int height, double K[3][3],
int startFrame, int numTrackingFrames): tra... |
#include "ib.h"
#include "jts/Contract.h"
#include "jts/EClientSocket.h"
#include "jts/Execution.h"
#include "jts/Order.h"
#include "jts/OrderState.h"
#include "opentrade/logger.h"
#include "opentrade/order.h"
static inline decltype(auto) GetTime(const char* timestr) {
int y, h, m, s;
if (sscanf(timestr, "%d %d:... |
#include "mex.h"
#include "cokus.cpp"
// Syntax
// [ WP , AT , Z , X ] = GibbsSamplerAT( WS , DS , AD , T , N , ALPHA , BETA , SEED , OUTPUT )
// Syntax
// [ WP , AT , Z , X ] = GibbsSamplerAT( WS , DS , AD , T , N , ALPHA , BETA , SEED , OUTPUT , ZIN , XIN )
// Updated for 64 bit compiler
int NAMAX = 100; // m... |
extern "C" {
#include "pkgi_db.h"
#include "pkgi.h"
#include "pkgi_sha256.h"
#include "pkgi_utils.h"
}
#include "pkgi_config.hpp"
#include "pkgi_vitahttp.hpp"
#include <algorithm>
#include <cstring>
#include <stdexcept>
#include <string>
#include <stddef.h>
#define MAX_DB_SIZE (4 * 1024 * 1024)
#define MAX_DB_ITEMS ... |
#include <fftw3.h>
#include <math.h>
#include <complex>
#include <iostream>
#include <QString>
#include <QImage>
#include <QDebug>
using namespace std;
void fft(int squareSize, QImage *myImage, QImage *myImageMag, QImage *myImagePhase);
void swapQuadrants(int squareSize, QImage *myImage);
void ift(int squareSize, Q... |
/**
* \file test/performance.cpp
* MegRay is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, W... |
#include <opencv2/opencv.hpp> // opencv
#include <iostream> // cout and cin
#include <string>
#include <math.h> // power, tan
#include <stdlib.h> // absolute value
#include <algorithm> // for sort
#define pi 3.14159265358979323846
#define kThres 60
#define fRate 12
using namespace std;
// Function for finding median
... |
//
// Window.cpp
// BumperCarSimulation
//
// Created by <NAME> on 3/4/18.
// Copyright © 2018 <NAME> & <NAME>. All rights reserved.
//
#include "Window.hpp"
#include <memory>
#include <cmath>
// Specify the title of the program
const char* window_title = "Bumper Car Simulation";
// Stores the shader's program I... |
//===========================================================================
/*
This file is part of the CHAI 3D visualization and haptics libraries.
Copyright (C) 2003-2010 by CHAI 3D. All rights reserved.
This library is free software; you can redistribute it and/or modify
it under the terms o... |
#include "Rasterizer.h"
#include<array>
//Constants
const SDL_PixelFormat* Rasterizer::px_format = SDL_AllocFormat(PX_FORMAT);
const uint32_t Rasterizer::red = SDL_MapRGB(px_format, 255, 0, 0);
const uint32_t Rasterizer::green = SDL_MapRGB(px_format, 0, 255, 0);
const uint32_t Rasterizer::blue = SDL_MapRGB(px_format... |
/*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
#include "mbed.h"
#include "BME280.h"
/* internal registers */
#define REG_HUM_LSB 0xFE
#define REG_HUM_MSB 0xFD
#define REG_TEMP_XLSB 0xFC
#define REG_TEMP_LSB 0xFB
#define REG_TEMP_MSB 0xFA
#define REG_PRESS_XLSB 0xF9
#define REG_PRESS_LSB 0xF8
#define REG_PRESS_MSB 0xF7
#define REG_CONFIG ... |
#include "zprofiling_timeline_view.h"
#include "../server/zprofiler.h"
#include "zprofiling_client.h"
const double ZOOM_FACTOR = 1.25;
const double MINIMUM_TIME_WIDTH_US = 1.0;
const int LANE_HEIGHT = 20;
const int LANE_SEPARATION = 1;
static const ZProfilingClient::Frame *get_frame(const ZProfilingClient *c... |
#pragma once
#include <cassert>
#include <fstream>
#include <iomanip>
#include <map>
#include <algorithm>
#include <vector>
#include <png++/png.hpp>
#include "Graph.hpp"
#include "MatrixUtils.hpp"
#include "Point.hpp"
#include "TimeHelpers.hpp"
struct Interval
{
Interval(long l, long r) : L(l), R(r) {}
long L;
l... |
/*
** Copyright 2014 Centreon
**
** 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 "dices.hpp"
#include <fmt/core.h>
#include <tiny_obj_loader.h>
#include <glm/gtx/fast_trigonometry.hpp>
#include <cppitertools/itertools.hpp>
#include <filesystem>
#include <glm/gtx/hash.hpp>
#include <unordered_map>
// Explicit specialization of std::hash for Vertex
namespace std {
template <>
struct hash<V... |
/// Block model class definition.
///
/// Block model manage list of statements and local variables.
/// Block: "{" statements "}"
///
/// @file PlnBlock.cpp
/// @copyright 2017-2020 <NAME>
#include <boost/assert.hpp>
#include <algorithm>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/join.hpp... |
template<typename T>
FerretCOT<T>::FerretCOT(int party, int threads, T **ios,
bool malicious, bool run_setup, std::string pre_file) {
this->party = party;
this->threads = threads;
io = ios[0];
this->ios = ios;
this->is_malicious = malicious;
one = makeBlock(0xFFFFFFFFFFFFFFFFLL,0xFFFFFFFFFFFFFFFELL);
ch[0] = z... |
#include <iostream>
#include<GL/gl.h>
#include<math.h>
#include <GL/glut.h>
#include<cstring>
#include<sstream>
#include <string>
using namespace std;
int ballx=0;
int bally=0;
float mouseX=0.0;
float mouseY=0.0;
unsigned long iTimeElapsed;
float position1 = -0.99;
float position2 = -1.19;
float position... |
/** **
* Creates Data Sources from sql scripts or another languages *
* *
* DataBase Interface required for Data Access l... |
#include"eva_headers.h"
using namespace std;
using namespace evawiz;
void ValueTable::VeryInit(){
pairTable.SetList_List();// =new Object(SymbolT,"ValuePairTable"); pairTable->ToList();
patternTable.SetList_List(); //=new Object(SymbolT,"PatternTable"); patternTable->ToList();
//subValueTables = new map<string,... |
/*
* Copyright (c) 2008, <NAME>, Inc.
* 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 ... |
#include "bcachefs.h"
#include "logger.h"
#include <iostream>
#include <cassert>
#include <cstdio>
#include <cstdlib>
// ========================================================================================
BCacheFSReader::BCacheFSReader(String const &file) {
_file = fopen(file.c_str(), "rb");
_sblock ... |
/*
* DisambigMisc.cpp
*
* Created on: Feb 5, 2011
* Author: ysun
*/
#include "DisambigPostProcess.h"
#include "DisambigCluster.h"
#include "DisambigFileOper.h"
extern "C" {
# include "strcmp95.h"
}
#if 0
cCluster_Set & cCluster_Set::convert_from_ClusterInfo( const cCluster_Info * ps) {
if ( ps == NULL ... |
/**
* \file tests/polynomial/radau.cpp
* \brief Unit tests for functions creating Radau polynomials.
* \author <NAME>
* \version beta
* \date 2018-05-21
*/
# include <gtest/gtest.h>
# include "exceptions.h"
# include "polynomial.h"
using namespace simpoly;
// TODO: what happen if users pass n=0 to Radau funct... |
// Project2.cpp : Ce fichier contient la fonction 'main'. L'exécution du programme commence et se termine à cet endroit.
//
#define WIN32_LEAN_AND_MEAN
//#include <windows.h>
//#include <winsock2.h>
//#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#include "pch.h"
#include "framework.h"
#i... |
/**
* @file Expression file is undefined on line 2, column 12 in file:///home/florian/git/steganoMessage/nbproject/licenseheader.txt.
* @author <NAME> (3308288) <<EMAIL>>
* @date 2019.06.15
* @brief
*/
/*
* File: OpenGLWrapper.cpp
* Author: <NAME>
*
* Created on 15. Juni 2019, 13:08
*/
#include "../heade... |
/*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2019 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... |
#include "Diagnostics.h"
#include <string>
#include <usb.h>
#include <sys/stat.h> // To check if a file exists
#include <std_msgs/String.h> // For creating ROS string messages
#include <ctime> // For time()
using namespace std;
using namespace gazebo;
Diagnostics::Diagnostics(std::string name) {
node_heartbeat_ti... |
/* bio_asn1.c */
/* Written by Dr <NAME> (<EMAIL>) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
/*
Copyright (c) 2007, Adobe Systems, Incorporated
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 ... |
/*
skyeye_lcd_beos.cpp - LCD display emulation on BeOS' BWindow.
Copyright (C) 2003 - 2007 Skyeye Develop Group
for help please send mail to <<EMAIL>>
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 Founda... |
#ifdef _WIN32
#else
#include <sys/time.h>
#endif
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include "debug.hh"
#include "hostname.hh"
#include "poll.hh"
#include "rtcp.hh"
#include "util.hh"
#define UDP_HEADER_SIZE 8
#define IP_HEADER_SIZE 20
uvg_rtp::rtcp::rtcp(uvg_rtp::rtp *rt... |
/*
* DirectionToColour.cpp
*
* Copyright (C) 2019 by VISUS (Universitaet Stuttgart)
* All rights reserved.
*/
#include "DirectionToColour.h"
#include <cassert>
#include <limits>
#include <glm/gtc/constants.hpp>
#include <glm/gtx/vector_angle.hpp>
#include "mmcore/param/ColorParam.h"
#include "mmcore/param/Enu... |
///////////////////////////////////////////////////////////////////////////////
// File: HcalQie.cc
// Description: Simulation of QIE readout for HCal
///////////////////////////////////////////////////////////////////////////////
#include "SimG4CMS/Calo/interface/HcalQie.h"
#include "CLHEP/Random/RandGaussQ.h"
#incl... |
/*
* Copyright (c) 2020, The SerenityOS developers.
* 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
* ... |
/* cpu.cpp: PDP-11/05 CPU
Copyright (c) 2018, <NAME>, <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... |
#include <DiMP/DiMP.h>
#include <DiMP/Graph/Solver.h>
/**
centroidal trajectory planning with unscheduled contact
*/
const real_t inf = std::numeric_limits<real_t>::max();
class MyCentroidCallback : public DiMP::CentroidCallback{
public:
virtual void EnableContact(DiMP::CentroidEndContactCon* con){
/*if... |
// Copyright (c) 2018, <NAME> GmbH
// Copyright (c) 2015, Lab-RoCoCo
// 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, ... |
#include <Arduino.h>
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <AsyncElegantOTA.h> // OTA
#include <ArduinoJson.h>
#include "SPIFFS.h" //kvůli webu ve spiffs
#include "credentials.h" //prihlasováky + nastavení
#include <StreamUtils.h> // loging Serial2Serial
//--------------SD ka... |
#include "spconnect.h"
#include <openssl/aes.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/dh.h>
#include <openssl/modes.h>
#include <QCryptographicHash>
#include <QDebug>
#include <QUrlQuery>
#include <QJsonObject>
#include <QJsonArray>
#include <QJsonDocument>
#define REMOTE_NAME "Hutspo... |
/*
* Copyright 2009, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "FUSEFileSystem.h"
#include <stdlib.h>
#include <string.h>
#include <new>
#include "fuse_fs.h"
#include "FUSEVolume.h"
#include "../RequestThread.h"
class FUSEFileSystem::ArgumentVector {
private:
enum { MAX_A... |
/*
* Copyright 2017 WebAssembly Community Group participants
*
* 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... |
//===- DirectiveEmitter.cpp - Directive Language Emitter ------------------===//
//
// 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
//
//===---------------------------... |
#include "BuildTextBlock.h"
#include "DataTypes/page/CT_Layer.h"
BuildTextBlock::BuildTextBlock()
{
}
void BuildTextBlock::buildText(
DocTextBlock *textblock,
CT_Layer *layer,
ID_Table *table,
Doc_OFDConvertor *convertor)
{
this->textBlock = textblock;
this->layer = layer;
... |
/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001 The Apache Software Foundation. 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 c... |
/*
* 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... |
// Copyright 2011-2016 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 appli... |
//******************************************************************************
// Copyright (C) 2018 Flatland Online Inc., <NAME>, <NAME>.
// This code is licensed under the MIT license (see LICENCE file for details).
//******************************************************************************
#include <stdlib.h... |
// Test of kinematic consistency: check if finite differences of velocities, accelerations
// match positions
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <gtest/gtest.h>
#include "../Extras/InverseDynamics/CoilCreator.hpp"
#include "../Extras/InverseDynamics/DillCreator.hpp"
#i... |
/**
* Copyright (C) 2016-2017 Xilinx, Inc
*
* 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 applicable law or agre... |
/*
* Copyright (c) 2015-2017, Intel Corporation
*
* 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 f... |
#include <Arduino.h>
#include <cstdint>
#include <EEPROM.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266HTTPClient.h>
#include <ArduinoJson.h>
#include "config.h"
#include "logging.h"
#define MAX_EEPROM_SIZE 4096
config_t config;
uint32_t eepromConfigHash;
uint32_t getConfigHash() {
uint32_t ... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
// PhoeniX OS Interrupts subsystem
// Copyright © 2017 <NAME> a.k.a. PhoeniX
#include "interrupts.hpp"
#include "acpi.hpp"
#include "pagetable.hpp"
#include "list.hpp"
#include "memop.hpp"
#include "portio.hpp"
#include "sprintf.hpp"
#include "kprint.hpp"
struct Interrupts::Handler {
// 48 83 ec 00 sub ... |
/*
* Copyright 2007-2015 The OpenMx 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 applicabl... |
#include "common.h"
#include "platform.h"
#include "OFM.h"
#include "purgecomment.h"
#include "stringtools.h"
#include "iniparser.h"
std::map<char, OperatorMaker> Operator::createMap;
void Operator::Register(char c, OperatorMaker opm)
{
auto n = createMap.count(c);
if (n)
throw "internal error: duplicate operato... |
/*
* This file is part of the BSGS distribution (https://github.com/JeanLucPons/BSGS).
* Copyright (c) 2020 <NAME>.
*
* 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, version 3.
*
* This ... |
#include "all_solvers.h"
#include "build_info.h"
#include "klib/ketopt.h"
#include "util.h"
#include <algorithm>
#include <array>
#include <chrono>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <random>
#include <sstream>
#include <vector>
using namespace std;
using chrono::ste... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.