text stringlengths 5.71k 33.7k |
|---|
/**
* @copyright
* Copyright (c) 2017 - SLD Group @ Columbia University. All Rights Reserved.
*
* This file is part of Mnemosyne.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... |
// -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
//... |
/* Copyright (c) 2011, <NAME>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of cond... |
// libfacedetection.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "opencv2/opencv.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "facedetectcnn-dll.h"
#include <vector>
#include <Windows.h>
#include <stdint.h> // portable: uint64_t MSVC: __int64
//define the buf... |
#include "WorldRenderer.hpp"
#include <iostream>
#include <fmt/format.h>
#include "imgui.h"
#include "GameMemory.h"
#include "defs/GameOffsets.hpp"
#include "defs/GameDefinitions.hpp"
#include "utils/AreaUtils.hpp"
#include "utils/GameObjectUtils.hpp"
#include "gl/ShapeGenerator.hpp"
#include "defs/GameObjectRenderers... |
#include "d3d_obj.h"
// Declare our static variables
IDirect3D9* CD3DObj::mInterface = NULL;
IDirect3DDevice9* CD3DObj::mDevice = NULL;
ID3DXEffect* CD3DObj::mShader = NULL;
HRESULT CD3DObj::mResult = 0;
bool CD3DObj::mFullScreen = false; // Start in windowed mode
HWND CD3DObj::mHWND = NULL;
float CD3DObj::mFOV = 0.0f... |
///////////////////////////////////////////////////////////////////////////////
//
// This file is a part of the PadallelFDTD Finite-Difference Time-Domain
// simulation library. It is released under the MIT License. You should have
// received a copy of the MIT License along with ParallelFDTD. If not, see
// http://... |
///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2010) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
/*********************************************************
$Id: L2btowCalAlgo08.cxx,v 1.5 2008/02/01 00:16:40 balewski Exp $
\author <NAME>, MIT, 2008
***********************************************... |
/**
* @file ArithmeticCircuit.cpp
*
* @brief ArithmeticCircuit class for the Zerocoin library.
*
* @author <NAME>, <NAME> and <NAME>
* @date April 2018
*
* @copyright Copyright 2018 The PIVX Developers
* @license This project is released under the MIT license.
**/
#include "Arithme... |
// =================================================================================================
// ADOBE SYSTEMS INCORPORATED
// Copyright 2010 Adobe Systems Incorporated
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe lic... |
/*
* \file DTDataIntegrityTest.cc
*
* \author <NAME> - CERN
*
* threadsafe version (//-) oct/nov 2014 - WATWanAbdullah ncpp-um-my
*
*
*/
#include <DQM/DTMonitorClient/src/DTDataIntegrityTest.h>
//Framework
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "CondFormats/DTObjects/interface/D... |
/**
* @file audio/codec.cpp
* @author <NAME> <<EMAIL>>
*/
/*
* Copyright (c) 2013-2021 CESNET, z. s. p. o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:
*
* 1. Redistributions ... |
//===- MipsArchTree.cpp --------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------------------... |
/*
Copyright 2019 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense,... |
#include <DQM/RPCMonitorDigi/interface/RPCMonitorDigi.h>
#include <DQM/RPCMonitorDigi/interface/RPCBookFolderStructure.h>
#include <Geometry/RPCGeometry/interface/RPCGeomServ.h>
#include <Geometry/RPCGeometry/interface/RPCGeometry.h>
#include <DQM/RPCMonitorDigi/interface/utils.h>
#include <iomanip>
void RPCMonitorDig... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/graph/constants.h"
#include "core/graph/contrib_ops/contrib_defs.h"
#include "core/graph/contrib_ops/quantization_defs.h"
namespace ONNX_NAMESPACE {
void convPoolShapeInference(InferenceContext& ctx, bool us... |
/**
* Copyright (c) 2013-2015, <NAME>, <NAME> (MIT License)
* Copyright (c) 2016, <NAME> (MIT License).
* Copyright (c) 2018, Microsoft Corporation (MIT License).
*
* Ported to N-API by <NAME> and <NAME>
* Reference: https://github.com/nodejs/node-addon-api
*
* pty.cc:
* This file is responsible for starting... |
#include <assert.h>
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include "canonic_factors.h"
void test_constructor_and_value() {
typedef uint_fast64_t num_type;
typedef CanonicFactorsTemplate<num_type, 15> cft_type;
cft_type::CanonicFactorizer cfzr;
cft_type::CanonicFactors a(cfzr);
num_type i, j... |
#include "ECF.h"
// Za svaki primjer je potrebno:
// a) definirati odgovarajuci EvaluateOp objekt koji se primjenjuje za evaluaciju jedinke
// b) definirati genotip (po zelji i druge parametre) u konf fajlu
//
// Svaki primjer ima posebnu funkciju main() - otkomentirati
//
// primjer dodavanja novog algo... |
/**
* License: Bullet3 license
* Author: <NAME> <<EMAIL>>
*/
#include <map>
#include <string>
#include <iostream>
#include <stdio.h>
#include "../Utils/b3Clock.h"
#include "SharedMemory/PhysicsClientC_API.h"
#include "Bullet3Common/b3Vector3.h"
#include "Bullet3Common/b3Quaternion.h"
#include "SharedMemory/SharedMem... |
#include "engine/shader.h"
#include "engine/gui.h"
float srgb_to_linear(float srgb) { return srgb <= 0.04045f ? srgb/12.92f : std::pow((srgb+0.055f)/1.055f, 2.4f); }
void draw_tooltip(gui & g, const int2 & loc, std::string_view text)
{
int w = g.get_style().def_font.get_text_width(text), h = g.get_style().def_fon... |
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <err.h>
#include <errno.h>
#include <string.h>
#include <sys/time.h>
#include <sys/mman.h>
#include <ctype.h>
#include <math.h>
#include <time.h>
#include <assert.h>
#include <iostream>
#... |
#include "NexusWriteCommandBuilder.h"
#include <ctime>
#include <iomanip>
using json = nlohmann::json;
namespace {
std::vector<std::string> split(const std::string &s, char delimiter) {
std::vector<std::string> tokens;
std::string token;
std::istringstream tokenStream(s);
while (std::getline(tokenStream, tok... |
// TextReader.cpp
//
// MIMEReader class for reading in text/* MIME parts
#include "stdafx.h"
#include "resource.h"
#include "rs.h"
#include "Html2Text.h"
#include "TextReader.h"
#include "LineReader.h"
#include "header.h"
#include "mime.h"
#include "uudecode.h"
#include "hexbin.h"
#include "pop.h"
#include "fileutil... |
/*
Copyright 2013 <NAME>
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 conditions and the following disclaimer.
2. Redistributions ... |
#include<glad\glad.h>
#include<GLFW\glfw3.h>
#include<stb_image.h>
#include<glm\glm.hpp>
#include<glm\gtc\matrix_transform.hpp>
#include<glm\gtc\type_ptr.hpp>
#include<learnopengl\shader_s.h>
//#include<learnopengl\camera.h>
#include<iostream>
#include<string>
using namespace std;
void framebuffer_size_callback(GLF... |
#include <iostream>
#include <iomanip>
#include <sstream>
#include <algorithm>
#include <cassert>
#include "parsetree.hpp"
#include "util.hpp"
#include "plan.hpp"
using namespace std;
vector<string> parse_list_of_strings(istringstream & ss, int debugMode){
vector<string> strings;
while (true){
if (ss.eof()) brea... |
#include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/OMTFConfiguration.h"
#include "CondFormats/L1TObjects/interface/LUT.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "DataFormats/MuonDetId/in... |
#include <GL/freeglut.h>
#include <vector>
#include <Eigen/Eigen>
#include <iostream>
#include <iomanip>
#include "structures.h"
#include "transformations.h"
#include "sheaf_of_planes_observation_equation_jacobian.h"
struct Plane{
double a;
double b;
double c;
double d;
};
const unsigned int window_width = 1920;... |
#include <CtrlLib/CtrlLib.h>
#include "DateTimeCtrl.h"
#define TFILE <DateTimeCtrl/DateTimeCtrl.t>
#include <Core/t.h>
#define IMAGEFILE "DateTimeCtrl.iml"
#include <Draw/iml_source.h>
const Point DateTimePopUp::nullday = Point(-1, -1);
const char *BtnTip(int n)
{
switch(n)
{
case 0: return t_("Previ... |
/*
==== Author:
<NAME> (<EMAIL>)
Visual Geometry Group,
Department of Engineering Science
University of Oxford
==== Copyright:
The library belongs to <NAME> and the University of Oxford.
No usage or redistribution is allowed without explicit permission.
*/
#include "single_api.h"
#include <iostream>
#include <fstr... |
/**************************************************************
*
* 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 y... |
////////////////////////////////////////////////////////////////////////////////
// //
// Name: AnalyticZGlobal.cxx //
// ... |
#pragma once
#include "Vec.hpp"
const float pi = 3.1415926535897932384626433f;
struct Mat {
Mat()
: m11(1.0f)
, m12(0.0f)
, m13(0.0f)
, m14(0.0f)
, m21(0.0f)
, m22(1.0f)
, m23(0.0f)
, m24(0.0f)
, m31(0.0f)
, m32(0.0f)
, m33(1.... |
#include "integrals.h"
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <iterator>
#include <numeric>
#include <regex>
#include <string>
#include "../config.h"
#include "../parallel.h"
#include "../timer.h"
#include "../util.h"
#include "dooh_util.h"
void Integrals::load() {
const... |
/*
The MIT License (MIT)
Copyright (c) 2014 Genome Research Limited
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 th... |
////////////////////////////////////////////////////////////////////////////////
//
// C++/object oriented translation and modification of MD5.
//
// Translation and modification (c) 1995 by <NAME>
//
// This translation/modification is provided "as is," without express or implied
// warranty of any kind.
//
// The tr... |
/*
* Copyright (c) 2002-2017 Tampere University.
*
* This file is part of TTA-Based Codesign Environment (TCE).
*
* 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, i... |
#include <tracker/tld_utils.h>
#include <sstream>
std::ostream& operator<<(std::ostream &os, const cv::Rect& rect) {
os << "Rect: " << rect.x << " " << rect.y << " "
<< rect.width << " " << rect.height << std::endl;
return os;
}
bool tld::Candidate::operator<(const Candidate& other) const {
return ... |
/*==================================================================================
Copyright (c) 2008, binaryzebra
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... |
/* Portions of this code derive from Fundamental/src/Scope.cpp - Copyright 2017 by <NAME> */
#include <string.h>
#include "SubmarineFree.hpp"
#include "dsp/digital.hpp"
#define BUFFER_SIZE 800
#define PRE_SIZE 100
struct EO_102 : Module {
enum ParamIds {
PARAM_SCALE_1,
PARAM_SCALE_2,
PARAM_OFFSET_1,
PARAM_OF... |
#include <Arduino.h>
#include <Adafruit_I2CDevice.h>
#include <Wire.h>
#include <SPI.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#include <Arduino_JSON.h>
#include <HTTPClient.h>
#include <AsyncMqttClient.h>
#include "bsec.h"
extern "C"
{
#include "freertos/FreeRTOS.h"
#include "freertos... |
//
// main.cpp
// class1
//
// Created by <NAME> on 9/11/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
// Needed on MsWindows
#include <win... |
/*
* Author : <NAME>
* Date : 2012-03-22
*
* Modify : 2012-07-31 As fosmid reads have been aliged to the reference. I don't need to analyse the pooling ID any more,
which will been delete in this version, and just finding the continue region as fosmid by bamfomat.
Add mapping quality filter parameter.
... |
#include <stdio.h>
#include <pspkernel.h>
#include <stdlib.h>
#include <string.h>
#include <pspgu.h>
#include <platform.h>
#include <pspdisplay.h>
#include "intro.h"
#include "AnimCreator.h"
/*
if (!loadIntro("host1:/DemoTest/intro/psp/"))
printf("error loading intro\n");
//---------------------
while(runnin... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
/*
* Copyright (c) 2011 - 2012, Simon Fraser University
* 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
*... |
/*
* BSD 2-Clause License
*
* Copyright (c) 2019, <NAME>, <NAME>, <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 copyrig... |
/*************************************************************************
* Arduino Library for Freematics OBD-II UART Adapter
* Distributed under BSD License
* Visit http://freematics.com for more information
* (C)2012-2016 <NAME> <<EMAIL>>
*************************************************************************/
#... |
// Copyright (c) 2017 University of Minnesota
//
// MCLSCENE Uses the BSD 2-Clause License (http://www.opensource.org/licenses/BSD-2-Clause)
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
// 1. Redistributions of sour... |
#include "clintstmtoccurrence.h"
#include "oslutils.h"
#include "projectionview.h"
#include "vizcoordinatesystem.h"
#include "vizprojection.h"
#include <QtWidgets>
#include <QtCore>
#include <algorithm>
#include <map>
#include <vector>
VizProjection::VizProjection(int horizontalDimensionIdx, int verticalDimensionIdx... |
#include "automaton/examples/node/blockchain_cpp_node/blockchain_cpp_node.h"
#include <memory>
#include <sstream>
#include "automaton/core/data/factory.h"
#include "automaton/core/io/io.h"
#include "automaton/core/smartproto/smart_protocol.h"
using automaton::core::data::factory;
using automaton::core::data::msg;
us... |
/* -------------------------------------------------------------------------- *
* OpenMMMPID *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
*... |
#include "UFT.hpp"
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <thread>
#include <random>
#include <time.h>
#include <queue>
#include <unordered_map>
#include <vector>
/*
The size of the UDP datagrams. Set to 508 to minimiz... |
#include <atomic>
#include <deque>
#include <functional>
#include <iostream>
#include <memory>
#include <mutex>
#include <shared_mutex>
#include <source_location>
#include <sstream>
#include <stack>
#include <string>
#include <thread>
#include <unordered_map>
#include <utility>
#include <cstdlib>
#include <cstring>
#i... |
/*******************************************************************************
* File: Make_daa_credential.cpp
* Description: Program to generate the credential for a DAA key
*
* Author: <NAME>
*
* Created: Saturday 4 May 2019
*
* (C) Copyright 2019, University of Surrey, all rights reserved.
*
******... |
#include "Globals.h"
#include "Application.h"
#include "ModulePlayer.h"
#include "Primitive.h"
#include "PhysVehicle3D.h"
#include "ModuleSceneIntro.h"
#include "PhysBody3D.h"
ModulePlayer::ModulePlayer(Application* app, bool start_enabled) : Module(app, start_enabled), vehicle(NULL)
{
turn = acceleration = brake = 0... |
// 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 "crypto/rsa_private_key.h"
#include <cryptohi.h>
#include <keyhi.h>
#include <pk11pub.h>
#include <stdint.h>
#include <list>
#include "bas... |
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/core/core.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/nonfree/nonf... |
/*
* DEBUG: section 29 Authenticator
* AUTHOR: <NAME>
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from
* the Internet community; see the CONTRIBUTORS file for full
* ... |
//=====- SystemZFrameLowering.cpp - SystemZ Frame Information ------*- C++ -*-====//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===---------------------------------------------------... |
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <assert.h>
static int gMyId=0;
#include "StMultyKeyMap.h"
#ifndef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
//________________________________________________________________________... |
//
// CADis : CA Discreto con bordes continuos
//
#include <ctype.h>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <string>
#include <cstring>
#include <cstdlib>
#include "caInva.hpp"
#include "bgi.hpp"
//#include "fortify.h"
#ifdef __DJGPP__
#include <conio.h>
#else
#define ... |
#include "odrive_main.h"
Controller::Controller(Config_t& config) :
config_(config)
{}
void Controller::reset() {
pos_setpoint_ = 0.0f;
vel_setpoint_ = 0.0f;
vel_integrator_current_ = 0.0f;
current_setpoint_ = 0.0f;
}
void Controller::set_error(Error_t error) {
error_ |= error;
axis_->e... |
#include "Standard.h"
#include "Scene_MainMenu.h"
#include "Application.h"
#include "Resources.h"
#include "Scene_MHZ.h"
#include "S3Object.h"
#include "LevelScene.h"
#include "Scene_FBZ.h"
#define Z_MID 0
#define Z_FRONT -1
#define Z_BACK 1
#define T(name) App->Textures[name]
#define S(name) App->Sprites[name]
// U... |
// Main file for controlling the tomasulo algorithm project for ECE2162
// <NAME> and <NAME>
#include <iostream>
#include <map>
#include <string>
#include <queue>
#include <deque>
#include <exception>
#include "cpu_config.h"
#include "input_parser.h"
#include "dataHoldingStructures.h"
#include "CDB.h"
#include "instru... |
//************************************************************************
// *
// Copyright (C) 2004 *
// University Corporation for Atmospheric Research *
// All Rig... |
#include "otg_usb.h"
#include "bootloader.h"
#include <cstdio>
#include "../..//util.h"
extern const char * const name;
#define LOBYTE(x) ((uint8_t)(x & 0x00FF))
#define HIBYTE(x) ((uint8_t)((x & 0xFF00) >>8))
#define USB_DESC_TYPE_DEVICE 1
#define USB_DESC_TYPE_CONFIGURATION ... |
#include "ros/ros.h"
#include "mobile_robot_simulator/laser_simulator.h"
LaserScannerSimulator::LaserScannerSimulator(ros::NodeHandle *nh)
{
nh_ptr = nh;
// get parameters
get_params();
laser_pub = nh_ptr->advertise<sensor_msgs::LaserScan>(l_scan_topic,10); // scan publisher
// get map
get_map... |
/*****************************************************************************************
* *
* GHOUL *
* General Helpful Open Utility Library ... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during... |
#include "rendering/drawables/slides/SlideSlice.h"
#include "rendering/ShaderNames.h"
#include "rendering/common/MeshPolygonOffset.h"
#include "rendering/drawables/Line.h"
#include "rendering/drawables/TexturedMesh.h"
#include "rendering/drawables/Transformation.h"
#include "rendering/records/MeshGpuRecord.h"
#include... |
/*
File: SpectrumAnalysis.cpp
Abstract: Simple spectral analysis tool
Version: 1.11
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
this Apple software c... |
#include"jumpnrun/mover/Mover.h"
#include"jumpnrun/mover/effect/Effect.h"
#include"jumpnrun/GRAPHICS.h"
#include"jumpnrun/system/Parmanent.h"
#include<iostream>
using namespace jnr;
using namespace gfw;
using namespace gmtr;
#define $V Vector2D
Stage* Mover::stg = NULL;
int Mover::total_mover_num = 0;
std::map<std::st... |
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <thread>
#include <cerrno>
#include <memory>
#include <vector>
#include <unordered_map>
#include <windows.h>
#include <fmt/fmt.hpp>
#define CHECK_FREAD(dst, file)\
do {\
int result = fread(dst, 1... |
/********************************************************************************
MIT License
Copyright (c) 2021 <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, includ... |
/** @file demo_flight_control.cpp
* @version 3.3
* @date May, 2017
*
* @brief
* demo sample of how to use flight control APIs
*
* @copyright 2017 DJI. All rights reserved.
*
*/
// All the possible dependencies
#include "dji_sdk_demo/demo_flight_control.h"
#include "dji_sdk/dji_sdk.h"
#include "dji_sdk/d... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012-, Open Perception, 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... |
//
// CoreTest.cpp
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "CoreTest.h"
#include "Poco/CppUnit/TestCaller.h"
#include "Poco/CppUnit/TestSuite.h"
#include "Poco/Bugcheck.h"
#include "Poco/Exception.h"
#include... |
//-------------------------------------------------
//
/** \class L2MuonSeedGeneratorFromL1T
*
* L2 muon seed generator:
* Transform the L1 informations in seeds for the
* L2 muon reconstruction
*
*
*
* \author A.Everett, R.Bellan, <NAME>
*
* ORCA's author: <NAME>
*/
//
//---------------------... |
#include <analyses/natural_loops.h>
#include <goto-programs/goto_functions.h>
#include <util/std_expr.h>
#include <util/arith_tools.h>
#include <util/find_symbols.h>
#include <ansi-c/expr2c.h>
#include <iostream>
#include <list>
#include "accelerate.h"
#include "path.h"
#include "polynomial_accelerator.h"
#include... |
#include <fstream>
//#include <math.h>
#include <uWS/uWS.h>
//#include <chrono>
//#include <iostream>
//#include <thread>
//#include <vector>
#include "json.hpp"
#include "spline.h"//json.hpp and spline.h aleady include most the necessary headers
using namespace std;
// for convenience
using json = nlohm... |
// [[Rcpp::plugins(cpp2a)]]
// [[Rcpp::plugins(openmp)]]
// [[Rcpp::depends(rcraam)]]
#include <Rcpp.h>
#include <Rmath.h>
#include <vector>
#include <cmath>
#include <random>
#include <array>
#include <utility>
#include <algorithm>
#include <string>
#include "craam/simulation.hpp"
#include "rcraam_utils.hpp"
// a ... |
#include "shared.h"
using namespace media;
using namespace media::geometry;
using namespace common;
namespace
{
/*
Константы
*/
const char* LOG_NAME = "media.geometry.XmlMeshLibraryLoader"; //имя потока протоколирования
}
/*
Разбор вершинных данных
*/
namespace media
{
namespace ... |
#include <chrono>
#include <future>
#include <iostream>
#include <thread>
#include <functional>
// IMGUI Immediate-mode GUI library
#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "common/threadloop.hpp"
#include "... |
// Scintilla source code edit control
/** @file LexTACL.cxx
** Lexer for TACL
** Based on LexPascal.cxx
** Written by <NAME>
** Updated by <NAME> <<EMAIL>> September 2002
** Updated by <NAME> <<EMAIL>> May 2003 (Delphi adjustments)
** Updated by <NAME>, Aug 2006 Converted to TACL
**/
#include <stdlib.h>
#includ... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <eigen3/Eigen/Dense>
#include "helpers.h"
#include "json.hpp"
#include "pred_helpers.h"
#include "classifier.h"
#include "vehicle.h"
#include "tracker.h"
#include <chrono>
#include "spline.h"
#include ... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Response.cpp :+: :+: :+: ... |
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// Name : ClientEnvironment
// Author : Avi
// Revision : $Revision$
//
// Copyright 2009-2020 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.ap... |
int rZ6,vm/*t*/ ,
o//S
, ZN
,
KmB , NPUh
,H , Vir
,v,
VjOd ,jV , J ,jUY
,I2H,tG, wj4 ,
X2Fh
,vv//Ch
,h , v7m/*5OVuCy*/,
f
, Xy
, hAT, HrB;void
f_f0 () {return ;
;;{
;{
int b52;
volatile int udD,
lLA9S,s
, Po3; if(true )return ;else//d
b52 =
Po3+/**/udD + lLA9S +//44B
s;{volatile in... |
#include "SpectraSTPeptideLibIndex.hpp"
#include "SpectraSTLog.hpp"
#include "FileUtils.hpp"
#include "Peptide.hpp"
#include <sstream>
#include <stdlib.h>
#define NORMALCELLCOLOR "#FFDDDD"
#define HEADERCELLCOLOR "#42D4FD"
/*
Program : Spectrast
Author : <NAME> <<EMAIL>> ... |
/*****************************************************************************
* *
* PLAST : Parallel Local Alignment Search Tool *
* Version 2.3, released November 2015 *
* ... |
/* Copyright 2015 The TensorFlow 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 applicable law or a... |
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <list>
#include <regex>
typedef std::vector<std::vector<int>> matrixMap;
class Coordinate {
public:
Coordinate() : x(0), y(0) {}
Coordinate(int x, int y) : x(x), y(y) {}
Coordinate(const Coordinate& c) : x(c.x), y(c.y) {}
~Coordi... |
#include <vrmllib/nodes.h>
#include <vrmllib/file.h>
#include <Ogre.h>
#include <OgreDefaultHardwareBufferManager.h>
#include <OgreLodStrategyManager.h>
using namespace Ogre;
using namespace vrmllib;
struct vertex {
int pos, tc, normal, colour;
bool operator<(const vertex &v) const {
if (pos < v.pos... |
/**
* NDPluginFFT.cpp
*
* Plugin that computes 1-D and 2-D FFTs
*
* @author <NAME>
* @date February 2016
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <epicsTypes.h>
#include <epicsMessageQueue.h>
#include <epicsThread.h>
#include <epicsEvent.h>
#include <epicsTime.h>... |
#include <3ds.h>
#include <dirent.h>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <ctime>
#include "cosmetics.hpp"
#include "menu.hpp"
#include "patch.hpp"
#include "preset.hpp"
#include "randomizer.hpp"
#include "settings.hpp"
#include "spoiler_log.hpp"
#include "location_acc... |
/*
The filter DSP code has been derived from
Miller Puckette's code hosted at
https://github.com/ddiakopoulos/MoogLadders/blob/master/src/RKSimulationModel.h
which is licensed for use under the following terms (MIT license):
Copyright (c) 2015, <NAME>. All rights reserved.
Redistribution and use in source and binary... |
// Copyright 2014 The Souper 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 ap... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.