text stringlengths 5.71k 33.7k |
|---|
/********************************************************************************
* OpenGL-Framework *
* Copyright (c) 2013 <NAME> *
*********************************************************************************
*... |
/*
The following piece of code presents a toy example of a thread pool based task system with the ability to pause
and resume tasks. The purpose of this program is to demonstrate a working albeit simple example of an event loop
along with the task system that can operate on arbitrary functions as per the users choice.... |
/*************************************************************************
pulldown.c -- last change: 6-9-1998
Copyright (C) 1996-2007 <NAME>
This file is part of SVGAgui.
SVGAgui is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the F... |
/*
* evofitscore.cpp
*
* Created by <NAME> and <NAME>
* University of Edinburgh 2019
* Released under MIT license, see https://opensource.org/licenses/MIT
*
*/
#include "hypodat.h"
#include "hypopanels.h"
#include <cmath>
void SpikeDat::FitScoreOxy(SpikeDat *testdata, FitDat *fitdat, FitSet *fitset, FitCon... |
// Copyright (C) 2016 <NAME>, <NAME> and MIT CSAIL
// Prophet
//
// This file is part of Prophet.
//
// Prophet 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 3 of the License, or
// (at y... |
//===-- MBlazeAsmParser.cpp - Parse MBlaze asm to MCInst instructions -----===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2016, Team-Xmbot-Service-Robot
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fol... |
#include "warper.hpp"
Warper::Warper() {}
Warper::~Warper() { cv::setMouseCallback(window_title_, nullptr, 0); }
WarpTransform Warper::calibrate_single(const WarpConfig& config) {
return calibrate_single(config.url, config.left, config.top, config.right,
config.bottom);
}
WarpTransform W... |
//CRC for serial
//The code in this file is from the rule of Robomaster
#include "CRC_Check.h"
//crc8 generator polynomial:G(x)=x8+x5+x4+1
const unsigned char CRC8_INIT = 0x00;
const unsigned char CRC8_TAB[256] =
{
0x00, 0x31, 0x62, 0x53, 0xc4, 0xf5, 0xa6, 0x97, 0xb9, 0x88, 0xdb, 0xea, 0x7d, 0x4c, 0x1f, ... |
//---------------------------------------------------------------------------
// E L E N A P r o j e c t: ELENA Compiler
//
// This file contains ELENA Executive Linker class implementation
// Supported platforms: Linux32
// (C)2015-2020, by <NAME>
//------------... |
#include "DriveSystem.h"
#include <ArduinoJson.h>
#include <Streaming.h>
#include "Utils.h"
DriveSystem::DriveSystem() : front_bus_(), rear_bus_() {
control_mode_ = DriveControlMode::kIdle;
fault_current_ = 10.0; // TODO: don't make this so high at default
fault_position_ = 2 * PI; // TODO: make this a param... |
/*
Corto
Copyright(C) 2017 - <NAME>
ISTI - Italian National Research Council - Visual Computing Lab
This program 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 3 of the License, or
(at you... |
/*******************************
*
* Monarch decoder v1.0.7
* Author: <NAME>
*
* Works with mbc_code.c v5.2.3 and above
* Usage: ./decoder.exe [packets] [date.log | 0] [time.log | 0] [light out file] [temp out file] [delimeter]
*
* v1.0.0:
* Added automatic time translation
*
* v1.0.1:
* De... |
/*
* $Id: IK_QJacobian.cpp 38232 2011-07-08 12:18:54Z blendix $
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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, ... |
// maze_magic.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "opencv2/opencv.hpp"
#include <iostream>
#include <string>
#include <filesystem>
using namespace cv;
using namespace std;
Vec3b redColor(50, 50, 200);
Vec3b greenColor(50, 200, 50);
Vec3b blu... |
/*
* Copyright 2006-2008 The FLWOR 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 applicable law... |
#include "ros/ros.h"
#include "tf/transform_listener.h"
#include "sensor_msgs/PointCloud.h"
#include "sensor_msgs/PointCloud2.h"
#include "tf/message_filter.h"
#include "message_filters/subscriber.h"
#include "laser_geometry/laser_geometry.h"
#include "geometry_msgs/PoseStamped.h"
#include "geometry_msgs/Twist.h"
#inc... |
//$Id$
//------------------------------------------------------------------------------
// TestUserPathFunction
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Author: <NAME>
// Created: 2015.06.30
//
/**
* Test... |
/* examples/hydro2d/vtkfile.cpp : vtk output
(C) <NAME> : CEA/IRFU -- original F90 code
(C) <NAME> : IDRIS -- original F90 code
(C) <NAME> : CEA/DAM -- for the C version
(C) <NAME> : Intel -- 'pcl-hydro' optimized for modern x86
(C) <NAME> : Intel -- augmentations to above version
*/
/*
... |
int
PX9, rS, LJL, oQH,
x5,AQz,qsRXX
, cmHUs/**/
, FM
,j7 ,
kx
,
/*HSC*/EB,/*HF*/ Do,
QU,a8Bz ,L01Fo
,
p9mA
,v ,
U , Ozk ,p ,cp ,CV ,zqA,//m4x
BgCy9n
,
So , VJ
,KPN0
,
vzp,/*5*/K,
OcBA8 ,wT4
,
uf5
,CNo, z2,
dY41
,
B8cZZ,
BVf//tY
//TA
,UMgal0
; void f_f0 (){for
(int i=1; i< 1
;++i) for
(int i=1 ... |
/*
* Copyright (c) 2015-2018, <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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of cond... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <vector>
#include <fstream>
#include <iostream>
#include <cuda_runtime.h>
#include <algorithm>
#include <cassert>
#include "fft_convolve.cuh"
#include <cufft.h>
#include "ta_utilities.hpp"
using std::cerr;
using std::cout;
using std:... |
//
// BasicFMInstrument.cpp -- Simple FM example instrument class.
// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
//
// Implementation of the 2-envelope FM example as an instrument class.
// This example shows how to create an instrument class from a DSP graph and set up its accessors ... |
#include <vector>
#include "PanelSettings.h"
#include "Application.h"
#include "ModuleGui.h"
#include "ModuleHardware.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "ModuleRenderer3D.h"
#include "ModuleTimeManager.h"
#include "Imgui/imgui.h"
#include "OpenGL.h"
#include "DevIL/include/il.h"
#include ... |
/*****************************************************************/
/* NAME: <NAME>, <NAME>, and <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: BHV_Attractor.cpp */
/* DATE: June 2008 */
/* ... |
#include "ScanCache.hpp"
#include "MemAllocHeap.hpp"
#include "MemAllocLinear.hpp"
#include "ScanData.hpp"
#include "Hash.hpp"
#include "BinaryWriter.hpp"
#include "Atomic.hpp"
#include "Stats.hpp"
#include "MemoryMappedFile.hpp"
#include "SortedArrayUtil.hpp"
#include "HashTable.hpp"
#include "Profiler.hpp"
#include ... |
#include <Message.h>
#include <Menu.h>
#include <MenuItem.h>
#include <View.h>
#include <Button.h>
#include <RadioButton.h>
#include <Box.h>
#include "TabView.h"
#include "ColorWindow.h"
#include "Colors.h"
#include "hsv.h"
#include <stdio.h>
#include <stdlib.h>
#include "Settings.h"
ColorWindow::ColorWindow (BRect fr... |
//--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... |
/*******************************************************************\
Module: Symbolic Execution of ANSI-C
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// Symbolic Execution of ANSI-C
#include "value_set_dereference.h"
#ifdef DEBUG
#include <iostream>
#i... |
/*************************************************************************/
/* bytecode_exporter.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <ros/ros.h>
#include <tf/tf.h>
#include <sensor_msgs/LaserScan.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/PointCloud2.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/filters/radius_outlier_removal.h>
#include <Eigen/Dense>
#incl... |
// Copyright 2016 <NAME>
/// @file
/// @brief Support for Kelvinator A/C protocols.
/// Code to emulate IR Kelvinator YALIF remote control unit, which should
/// control at least the following Kelvinator A/C units:
/// KSV26CRC, KSV26HRC, KSV35CRC, KSV35HRC, KSV53HRC, KSV62HRC, KSV70CRC,
/// KSV70HRC, KSV80HRC.
///
///... |
// <NAME> 1/16/2010
// Chapter 9 Exercise 11
/*
Provide helper functions for the Date class, such as next_workay() and week_of_year().
Apologies: I had assumed the the formulas and explanations needed to make date calculations
simple were more easily available on the web and clearer than I found.
The ma... |
#include "PathPlanner.h"
#include "GraphAlgorithms.h"
#include "pathmanager.h"
#include "SearchTerminationPolicies.h"
#include "NodeTypeEnumerations.h"
#include "GameObject.h"
#include "Messages.h"
#include "MessageDispatcher.h"
#include "Level.h"
/*#include "../Raven_Game.h"
#include "misc/utils.h"
#include "../cons... |
/*****************************************************************************/
/* The contents of this file are subject to the Mozilla Public License */
/* Version 1.0 (the "License"); you may not use this file except in */
/* compliance with the License. You may obtain a copy of the License at */
... |
/* --------------------------------------------------------------------------
*
* File T07_Collision.cpp
* Author <NAME>
*
* --------------------------------------------------------------------------
*
* Copyright (C) 2010-2012 XMSoft. All rights reserved.
*
* Co... |
// libuv wrapper
#include <cppcomponents_libuv/cppcomponents_libuv.hpp>
// For resumable and awaiter
#include <cppcomponents_async_coroutine_wrapper/cppcomponents_resumable_await.hpp>
// For stringstream
#include <sstream>
// For this_thread and sleep_for
#include <thread>
#include <chrono>
#include <map>
// use<I... |
#include <fstream>
#include <sstream>
#include <string>
#ifdef __linux__
#include <unistd.h>
#include <climits>
#elif _WIN32
#endif
#include "asset_registry.h"
#include "atlas_packer.h"
#include "texture_packer.h"
#include "shader_packer.h"
#include <kibble/logger/logger.h>
#include <kibble/logger/sink.h>
#i... |
#pragma once
#include <boost/program_options.hpp>
#include <string>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <fstream>
#include <math.h>
/*
README
To avoid confusion in indexing:
x goes along heigth
y goes along width
*/
namespace utils {
struct Options {
// Command line arguments... |
/*
* Copyright 2019 Carnegie Technologies
*
* 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 l... |
#include <GL/glew.h>
#include "graphics_viz/glwidget.h"
#include "graphics_viz/Texture.h"
#include "graphics_viz/firstpersoncamera.h"
#include "graphics_viz/orbitcamera.h"
#include "graphics_viz/thirdpersoncamera.h"
#include <QCoreApplication>
#include <QKeyEvent>
#include <QResource>
Shader * shadersC;
Shader * s... |
/// \brief Executable running a single impact simulation, using command-line parameters
#include "Sph.h"
#include "run/Node.h"
#include "run/jobs/InitialConditionJobs.h"
#include "run/jobs/IoJobs.h"
#include "run/jobs/MaterialJobs.h"
#include "run/jobs/ParticleJobs.h"
#include "run/jobs/SimulationJobs.h"
using namesp... |
#include "Simulations_pcp.h"
#include "Geometry2D.h"
#include "Model_T2D_CHM_s.h"
Model_T2D_CHM_s::Model_T2D_CHM_s() :
Model("Model_T2D_CHM_s"),
pcls(nullptr), pcl_num(0),
bfx_num(0), bfxs(nullptr),
bfy_num(0), bfys(nullptr),
tx_num(0), txs(nullptr),
ty_num(0), tys(nullptr),
asx_num(0), asxs(nullptr),
asy_num... |
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
#if defined(_MSC_VER)
// Turn off compiler warning about long names
# pragma warning(disable:4786)
#endif
#include <cassert>
#include "CoinFactorization.hpp"
#include "CoinIndexedVector.hpp"
#include "CoinHelperF... |
#include "buildH5Dataset.h"
#include <iostream>
using namespace H5;
using namespace std;
using namespace cv;
using namespace caffe;
#define INPUT_SIZE 227
#define NUM_CHANNELS 3
static double generateRandomLaplacian(double b, double m)
{
double t = (double)rand() / (RAND_MAX);
double n = (double)rand() / (RA... |
/*
LWM2M resource template implementation for mbed client
------------------------------------------------
Copyright (c) 2006-2015 ARM Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http... |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... |
#include "GXBase.h"
using namespace gxbase;
/**
* MultiTexture demo: this program was written as an example of how
* to use the OpenGL extension loading/query functions built into
* the gxbase library.
*
* It is a rewrite of 'MultiTex.c' which used GLUT and was written by
* <NAME>, NVIDIA Corporation, 1998.
*
... |
#include <qAverageColor.hpp>
#include <immintrin.h>
std::uint32_t AverageColorRGBA8(
const std::uint32_t Pixels[],
std::size_t Count
)
{
std::uint64_t RedSum, GreenSum, BlueSum, AlphaSum;
RedSum = GreenSum = BlueSum = AlphaSum = 0;
for( std::size_t i = 0; i < Count; ++i )
{
const std::uint32_t& CurColor = Pix... |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/web_resource/promo_resource_service.h"
#include "base/string_number_conversions.h"
#include "base/threading/thread_restricti... |
//=-- CoverageMappingReader.cpp - Code coverage mapping reader ----*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
#include "misc/IntervalSet.h"
#include "atn/ATNType.h"
#include "atn/ATNState.h"
#include "atn/BlockEndState.h"
#include... |
/* mbed UniGraphic library - Graphics class
* Copyright (c) 2015 <NAME>
* Released under the MIT License: http://mbed.org/license/mit
*
* Derived work of:
*
* mbed GraphicsDisplay Display Library Base Class
* Copyright (c) 2007-2009 sford
* Released under the MIT License: http://mbed.org/license/mit
*
* mbed ... |
/******************************************************************************
* $Id$
*
* Project: VFK Reader (SQLite)
* Purpose: Implements VFKReaderSQLite class.
* Author: <NAME>, <EMAIL>
*
******************************************************************************
* Copyright (c) 2012-2014, <NAME> <<... |
/******************************************************************
glitch - Grammar Lexer and Interactive Terminal Command sHell
Copyright 2018, 2019, <NAME>
Distributed under MIT license - see LICENSE.txt
See README.md
File: itch.cpp
- Primary itch functions and methods
- itch modes, user input capture, par... |
#include "xdtsio.h"
#include "tsystem.h"
#include "toonz/toonzscene.h"
#include "toonz/tproject.h"
#include "toonz/levelset.h"
#include "toonz/txsheet.h"
#include "toonz/txshcell.h"
#include "toonz/txshsimplelevel.h"
#include "toonz/txshchildlevel.h"
#include "toonz/txsheethandle.h"
#include "toonz/tscenehandle.h"
#in... |
/*
* @Author: <NAME>
* @Date: 2017-05-14 20:55:55
* @Last Modified by: <NAME>
* @Last Modified time: 2017-05-30 16:33:35
*/
#include <iostream>
#include <utils/ansi_colors.h>
#include <random>
#include <array/eigen.h>
#include <cl/cl_ctx.h>
#include <cl/cl_array.h>
#include <cl/cl_functions.h>
#include <utils/pe... |
// C++ standard library headers
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <limits>
#include <numeric>
#include <vector>
// Boost headers
#include <boost/math/interpolators/pchip.hpp>
#include <boost/math/quadrature/tanh_sinh.hpp>
// triumf++ headers
#incl... |
/****************************************************************************
*
* Copyright (c) 2013-2021 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 "ProjHelperFun.h"
#include "Constants.h"
#include "TridagPar.h"
void printFlatMatrix(REAL* matrix, unsigned int rows, unsigned int cols){
printf("Matrix[%d,%d] = \n[\n", rows, cols);
for(unsigned int i=0; i< rows; ++i){
printf("[");
for(unsigned int j=0; j< cols; ++j){
pri... |
/*
* Copyright (c) 2019-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */
//
// Cleaver - A MultiMaterial Conforming Tetrahedral Meshing Library
// - Command Line Program
//
// Primary Author: <NAME> (<EMAIL>)
//
/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-... |
//////////////////////////////////////////////////////////////////////
// ShootingObject.cpp: интерфейс для семейства стреляющих объектов
// (оружие и осколочные гранаты)
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ShootingObject.h"
#include "Particle... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// clang-format off
#include <openenclave/edger8r/enclave.h>
#include <openenclave/enclave.h>
#include <openenclave/internal/tests.h>
#include <openenclave/internal/raise.h>
#include <openenclave/internal/report.h>
#include... |
//
// Copyright (c) 2008-2016 the Urho3D project.
//
// 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... |
/**
@copyright Copyright 2019 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
LIBRARY DEPENDENCY:
((aspects/dynamics/GunnsDynSingleRigidEom.o))
*/
//#include "software/exceptions/TsInitializationException.hh"
//#inclu... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/** \addtogroup examples
* @{
* \defgroup btwn_central betweenness centrality
* @{
* \brief betweenness centrality computation
*/
#include <float.h>
#include "btwn_central.h"
using namespace CTF;
//overwrite printfs to make it possible to print matrices of mpaths
namespace CTF {
template <>
inlin... |
#include "solver.hpp" // prototypes
/* *
* TO-DO
* Change ints to unsign or size_t (they are different)
* Negative guesses (solver options)
* Verify if jacobian and step are valid
* Store guesses and promote options that are more distant
*/
/**
* Variables constructor
*/
Variables::Variables(const std::vector... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are perm... |
////////////////////////////////////////////////////////////////////////
//
// Harvard University
// CS175 : Computer Graphics
// Professor <NAME>
//
////////////////////////////////////////////////////////////////////////
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>
#define GLEW_S... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
/*
* Copyright 2004-2011, Haiku, Inc. All Rights Reserved.
* Copyright 2002-03, <NAME>. All rights reserved.
*
* Distributed under the terms of the MIT License.
*/
//! Everything doing the real input/output stuff.
#include "scsi_periph_int.h"
#include <scsi.h>
#include <string.h>
#include <stdlib.h>
#include... |
/**
* Project: Open Vehicle Monitor System
* Module: Renault Twizy SEVCON Gen4 access: monitoring
*
* (c) 2018 <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 ... |
//
// dictionary.cpp
// BoggleMultiProcess
//
// Created by <NAME> on 7/5/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include "word_dictionary.hpp"
#include "GameConstants.hpp"
#include <algorithm>
#include <iostream>
#include <fstream>
#include <cassert>
//subDictionaryKeyword<std::string> foo1;
//... |
#include "read_vcf.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////
std::vector<vcf_entry> load_and_filter_vcf_file( std::string input_vcf_file, int chromosome, std::string chr_string, std::string hetfilterFile ) {
ofstream ofile_het; ofile_het.open(he... |
/****************************************************************************
*
* Copyright (c) 2018-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 "MainWindow.h"
class Test3DScene : public BE::SimpleRenderToTextureWidget::Scene
{
public:
float mRenderTime;
glm::vec2 mSize;
BE::OGLRenderToTexture* mTexture;
virtual void Update(const BE::WidgetContext& context, BE::SimpleRenderToTextureWidget& inParent, BE::OGLRenderToTexture& inTexture)... |
//===- PDBFile.cpp - Low level interface to a PDB file ----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <vlog/ruleexecdetails.h>
#include <set>
#include <map>
#include <cassert>
#include <algorithm>
void RuleExecutionDetails::rearrangeLiterals(std::vector<const Literal*> &vector, const size_t idx) {
//First go through all the elements before, to make sure that there is always at least one shared variable.
... |
/*
* 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 conditions
* are met:
*
* * Redistributions of source code must retain the... |
// Mach1 Spatial SDK
// Copyright © 2017-2021 Mach1. All rights reserved.
/*
This example is for reference for how Mach1Spatial Coefficients from Mach1Transcode API
could be used on audio streams and buffers.
Usage: Set starting orientation with `-yaw` `-pitch` `-roll` flags in command or use `w`/`a`/`s`/`d`
d... |
/*
BAREOS® - Backup Archiving REcovery Open Sourced
Copyright (C) 2004-2011 Free Software Foundation Europe e.V.
Copyright (C) 2011-2012 Planets Communications B.V.
Copyright (C) 2013-2016 Bareos GmbH & Co. KG
This program is Free Software; you can redistribute it and/or
modify it under the terms of... |
//
// Created by michael on 21.12.15.
//
#include <regex>
#include <Story/StoryWriter.h>
using namespace std;
using namespace weave;
using namespace Json;
StoryWriter::StoryWriter(shared_ptr<RandomStream> randomStream, const QuestModel &questModel,
const TemplateEngine &templateEngine, const... |
/*-----------------------------------------------------------------------------
Copyright 2017 Hopsan Group
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 3 of the Licen... |
#include "Multistdafx.h"
#include "SigDirectShow.h"
#pragma comment(lib, "dxguid.lib")
#pragma comment(lib, "strmiids.lib")
#define WM_GRAPHNOTIFY WM_USER+13
CMoviePlayer::CMoviePlayer() :
pGB(NULL),
pMC(NULL),
pME(NULL),
pVW(NULL),
pBA(NULL),
pBV(NULL),
pMS(NULL),
g_bAudioOnly(FALSE),
g_lVolume(V... |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "SPaperEditorViewport.h"
#include "Rendering/DrawElements.h"
#include "Widgets/SBoxPanel.h"
#include "Widgets/SViewport.h"
#include "Application/ThrottleManager.h"
#include "Framework/Application/SlateApplication.h"
#include "Widgets/Layout/SBorder.... |
/*
* Copyright 2008, <NAME>, <EMAIL>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <math.h>
#include <hmulti_audio.h>
#include "argv.h"
#define MAX_CONTROLS 128
#define MAX_CH... |
//
// Created by <NAME> on 01.07.2021.
//
#include "include/IVulgine.h"
#include <glm/vec3.hpp>
#include <glm/vec2.hpp>
#include <GLFW/glfw3.h>
#include <cmath>
#include <iostream>
#include <imgui/imgui.h>
struct VertexAttribute{
glm::vec3 pos;
glm::vec3 normal;
glm::vec2 uv;
};
struct InstanceAttribute{... |
/*
* Copyright (C) 2021-2014 Alibaba Group Holding Limited
*/
#include "TBJGameImageInternal.h"
#include <cstring>
#include <png.h>
#include <pngconf.h>
#include <cstdlib>
#include <jpeglib.h>
#include <string>
#include <sstream>
#include <vector>
#include "math.h"
#ifdef TBJGAME_DESKTOP
#include <OpenGL/gl3.h>
#in... |
//--------------------------------------------------------------------
//
// EZLauncher.cpp
//
// Written by <NAME>
//
//--------------------------------------------------------------------
/*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code Licens... |
#include <LWVideo/LWFont.h>
#include <LWVideo/LWMesh.h>
#include <LWPlatform/LWFileStream.h>
#include <LWEUI/LWEUIRichLabel.h>
#include <LWPlatform/LWWindow.h>
#include "LWELocalization.h"
#include "LWEAsset.h"
#include "LWETypes.h"
#include <algorithm>
#include <cstdarg>
#include <iostream>
LWEUIRichLabel... |
/*
FILENAME... devOmsCom.cc
USAGE... Data and functions common to all OMS device level support.
Version: $Revision: 13925 $
Modified By: $Author: sluiter $
Last Modified: $Date: 2011-11-04 13:20:09 -0500 (Fri, 04 Nov 2011) $
HeadURL: $URL: https://subversion.xor.aps.anl.gov/synApps/motor/tags/R6-... |
/*! \file */
/* ************************************************************************
* Copyright (c) 2020-2021 Advanced Micro Devices, Inc.
*
* 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 S... |
#include <iostream>
#include <fstream>
#include <vector>
#include <climits>
#include <cmath>
#include <unistd.h>
#include <signal.h>
#include <chrono>
#include <device/DeviceManager.h>
#include <grabber/Image.h>
#include <grabber/ColorRgba.h>
#include <grabber/Grabber.h>
#include <boost/thread/thread.hpp>
#include <t... |
// Copied from https://github.com/ildoonet/tf-pose-estimation/tree/master/tf_pose/pafprocess/
// In-depth article about the algorithm: https://arvrjourney.com/human-pose-estimation-using-openpose-with-tensorflow-part-2-e78ab9104fc8
// Refactored to reduce complexity
// changed to process peak coordinates from tensorflo... |
// (C) 2016 University of Bristol. See License.txt
#include "NPartyTripleGenerator.h"
#include "OT/OTExtensionWithMatrix.h"
#include "OT/OTMultiplier.h"
#include "Math/gfp.h"
#include "Math/Share.h"
#include "Math/operators.h"
#include "Auth/Subroutines.h"
#include "Auth/MAC_Check.h"
#include <sstream>
#include <fst... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <mkl.h>
#include <algorithm>
#include <cstdlib>
#include "utils.h"
using namespace std;
/*******************************************************************************
* Globals *
*... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "fx_resolver.h"
#include "host_startup_info.h"
#include "trace.h"
namespace
{
const int Max_Framework_... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2022, the Ginkgo 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:
1. Redistributions of source co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.