text stringlengths 3.08k 22k |
|---|
/*
* Feb, 2021
* get PCF for type 1 particles
* rewrite, streamline the code and organize content for future updates
*
* need to change double to long double: unitlength, bx by changed type
*/
#include<cstdlib>
#include<iostream>
#include<iomanip>
#include<fstream>
#include<cmath>
#include<vector>
#include<asse... |
#include "../../Interface/G_System/GKeyDefines.h"
#include <map>
#ifdef _WIN32
#include <Windows.h>
#elif __linux__
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>
#elif __APPPLE__
#endif
#define CHECK_BIT(var,pos) ((var) & (1<<(pos)))
#define TURNON_BIT(var,pos) ((var) |= (1<<(pos)))
#defin... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "file_handles/flash_file_handle.h"
#include <unistd.h>
#include <algorithm>
#include <atomic>
#include <cassert>
#include <ctime>
#include <fstream>
#include <iostream>
#include <numeric>
#include <vector>
#include... |
#include "gpk_ro_rsw.h"
#include "gpk_view_stream.h"
#include "gpk_io.h"
#include "gpk_storage.h"
#pragma pack(push, 1)
struct SRSWHeader {
char Filecode[4];
uint8_t VersionMajor;
uint8_t VersionMinor;
};
struct SRSWWorldInfo {
//::gpk::SRange;
int32_t T... |
#include <Arduino.h>
#include <EEPROM.h>
#include <ESPAsyncWebServer.h>
#include <Config.h>
#include <ArduinoOTA.h>
#define LED_BUILTIN 2
#define INPUT_PIN_UP 32
#define INPUT_PIN_DOWN 33
#define RELAY_PIN_UP 27
#define RELAY_PIN_DOWN 26
#define FIRST_TAP 500
#define SECOND_TAP 1000
AsyncWebServer server(80);
// ad... |
#include "player/node.h"
#include "statemachine/statemachine.h"
#include "statemachine/jointmove.h"
#include "statemachine/basestate.h"
#include <k273/strutils.h>
#include <k273/exception.h>
#include <k273/logging.h>
using namespace std;
using namespace GGPLib;
static string moveString(const JointMove& move, StateM... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
#include "runge_kutta_stepper.hpp"
RungeKuttaStepper::RungeKuttaStepper(
){
derivationMode = DerivationMode::None;
calculationMode = CalculationMode::None;
varParser = NULL;
paramParser = NULL;
vars = NULL;
params = NULL;
}
RungeKuttaStepper::~RungeKuttaStepper(
){
if( vars != NUL... |
#include "rfw.h"
#include "Internal.h"
#define SKYCDF(x, y) \
cdf[RadicalInverse8bit(y) + x * (IBLHEIGHT + 1)] // columns stored sequentially for better cache coherence
#define COLCDF(x) columncdf[RadicalInverse9bit(x)]... |
//*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// 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://w... |
/**
* @file step.cc
* @brief Solves the problem of computing the flow over a step
*/
#include <build_system_matrix.h>
#include <lf/assemble/assemble.h>
#include <lf/assemble/coomatrix.h>
#include <lf/assemble/dofhandler.h>
#include <lf/base/base.h>
#include <lf/io/gmsh_reader.h>
#include <lf/io/io.h>
#include <lf/i... |
#include "ConvNN.h"
// #include "global.h"
// #include "ml.h"
#include <stdio.h>
using namespace std;
CNNIO::CNNIO(void)
{
output = NULL;
fpredict =NULL;
}
CNNIO::~CNNIO(void)
{
if(output != NULL) {
for(int k=0; k< 5; k++) {
cvReleaseMat(&output[k]);
}
cvFree(output);
}
}
void CNNIO::ini... |
/*
Spout OpenFrameworks Sender Receiver example
using the SpoutLibrary C-compatible dll
Include SpoutLibrary.h in the "src" source files folder
Include SpoutLibrary.lib where the linker can find it
Include SpoutLibrary.dll in the "bin" executable folder
Copyright (C) 2016 <NAME>.
===================... |
/**
* 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... |
#include "connection.h"
#include "mainwindow.h"
#include "settings.h"
#include "ui_connection.h"
#include "firsttimewizard.h"
#include "ui_createzcashconfdialog.h"
#include "controller.h"
#include "../lib/zecwalletlitelib.h"
#include "precompiled.h"
using json = nlohmann::json;
ConnectionLoader::ConnectionLoader(M... |
// Copyright 2009 <NAME> and <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, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distrib... |
// Copyright (c) 2022 PaddlePaddle 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... |
#include "DQM/SiStripCommissioningDbClients/interface/OptoScanHistosUsingDb.h"
#include "CondFormats/SiStripObjects/interface/OptoScanAnalysis.h"
#include "DataFormats/SiStripCommon/interface/SiStripConstants.h"
#include "DataFormats/SiStripCommon/interface/SiStripFecKey.h"
#include "FWCore/MessageLogger/interface/Mes... |
// ====================================================
// Author: <NAME>
// Copyright: Georgia Institute of Technology
// Copyright: GeneProbe Inc.
// File: parameters_2.cpp
// Project: GeneMark.hmm-2 (no introns)
// ====================================================
#include <string>
#include <map>
#include <iostr... |
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// MIT License
//
// Copyright (c) 2016 <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mo... |
/*************************************************************************
* Copyright (C) 2021 Cambricon.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT... |
///////////////////////////////////////////////////////////////////
//
// Cartesian Sequencer Module for VCV similar to Make Noise Rene
//
// Strum 2017
// <EMAIL>
//
///////////////////////////////////////////////////////////////////
#include "mental.hpp"
#include "dsp/digital.hpp"
#include <stdio.h>
struct Menta... |
// Copyright (c) 2018 Intel Corporation
//
// 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, publ... |
#include "cyoaeLexer.h"
#include "cyoaeParser.h"
#include <antlr4-runtime.h>
#include <filesystem>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
static constexpr auto html_intro = R"(<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>CYOAE</title>
<link rel="st... |
#include <coro_eyes_sdk.h>
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/imgproc/imgproc.hpp>
const std::string param_config_path = "~config_path";
const std::string param_left_image_topic = "~left_image_to... |
/*
* main.cpp
*
* Created on : 24. jul. 2015
* Author : <NAME>
* License : BSD
*/
#include "Debug.h"
#include "deletedir.h"
#include "tinydir.h"
#include <algorithm>
#include <fstream>
#include <string>
#include <vector>
#include <unordered_map>
using std::string;
using std::vector;
using std::unordered_map;... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
#include <L/src/container/Queue.h>
#include <L/src/dev/profiling.h>
#include <L/src/engine/Engine.h>
#include <L/src/input/Device.h>
#include <L/src/parallelism/TaskSystem.h>
#include <L/src/stream/CFileStream.h>
#include <Windows.h>
#include <hidsdi.h>
#include <mfobjects.h>
using namespace L;
static Symbol mouse_... |
#include <random>
#include "Game.hpp"
#include "Enemy.hpp"
#include "Missile.hpp"
#include <algorithm>
#include <string>
#include <fstream>
mt19937_64 random(random_device{}());
uniform_real_distribution<> percent(0.0, 1.0);
bernoulli_distribution boolean(0.5);
double Game::m_width, Game::m_height;
function<void(bool... |
#include "coordinator.hpp"
#include "process.hpp"
#include "utils.hpp"
#include <cstdio>
#include <mpi/mpi.h>
#include <numeric>
#include <string>
#include <vector>
Coordinator::Coordinator(int rank, int nr_of_processes, unsigned int array_size)
: Process(rank, nr_of_processes) {
this->array_size = array_size;
}... |
#include "light.hpp"
#include "../core/math/vector.hpp"
#include <core/serialization/associative_archive.h>
#include <core/serialization/binary_archive.h>
REFLECT(light)
{
rttr::registration::class_<light::spot>("spot")
.property("range", &light::spot::get_range, &light::spot::set_range)(
rttr::metadata("pretty... |
// Base64Coder.cpp: implementation of the Base64Coder class.
//
//////////////////////////////////////////////////////////////////////
#include <stdafx.hxx>
#include "Base64Coder.h"
////////////////////////////////////////////////////////////////////////
// Standard foo for file name aliasing. This code blo... |
#include "SofaPhysicsAPI.h"
#include <sofa/helper/system/glut.h>
#include <stdio.h>
#include <stdlib.h>
SofaPhysicsSimulation* mainSimulation = NULL;
// glut callbacks
static void glut_create();
static void glut_display();
static void glut_reshape(int w, int h);
static void glut_keyboard(unsigned char k, int x, int... |
// Authors:
// <NAME> - NUSP 10692012
// <NAME> - NUSP 10801169
// <NAME> - NUSP 10734794
# include "client.hpp"
# include "../color.hpp"
# include "../messaging.hpp"
# include <iostream>
# include <string>
# include <queue>
# include <mutex>
# include <thread>
# include <atomic>
# include <err... |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include "MD2Loader.h"
// #define DEBUG_MD2LOADER
MD2Obj::MD2Obj()
{
// Terminate Arrays
Face=NULL;
frame=NULL;
UV=NULL;
TexName[0]=NULL;
TexID=0;
}
MD2Obj::~MD2Obj()
{
// Free Arrays
if(Face)
{
delete [] Face;
Face=NULL;
}
if(frame)
{
delete [] frame;
frame... |
#include <vector>
#include <algorithm>
#include <functional>
#include <iterator>
#include <map>
/**************************************************
* Essential C++ -- <NAME>
* Addison-Wesley
* ISBN 0-201-48518-4
* homepage: www.objectwrite.com
* email: <EMAIL>
*************************************************/
... |
/* Copyright 2018 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 <map>
#include <algorithm>
#include <cassert>
#include <cfloat>
#include <string>
#include <sstream>
#include "SafeVector.h"
#include "utility.h"
#include "tree.h"
#include "SparseMatrix.h" // included for VPROFILE,VVPROFILE
using namespace std;
tr_node::tr_node()
: pLeft(NULL), pRig... |
#include "App.hpp"
#include "util.hpp"
#include <iostream>
#include <functional>
#include <regex>
fa_App::fa_App()
{
appdata_fs = sp::FileSystem(true);
appdata_fs.createDirIfNecessary("DragonGames");
appdata_fs.createDirIfNecessary("DragonGames/FactAstra");
appdata_fs.enterDir("DragonGames/FactAstra");
appdata_... |
#include <memory>
#include "Utilities/StorageFactory/interface/StorageFactory.h"
#include "Utilities/StorageFactory/interface/StorageMakerFactory.h"
#include "Utilities/StorageFactory/interface/StorageAccount.h"
#include "Utilities/StorageFactory/interface/StorageAccountProxy.h"
#include "Utilities/StorageFactory/inte... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
#include "FILEOPR.h"
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
/*!!! RANDOM NUMBER GENERATER FOR ACCOUNT BALANCE !!!*/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
float FILEOPR::getRBal( )
{
random_device rd; //Random seed
mt19937 gen(rd()); //Init Mersenne Twister pseudo-random number ge... |
#include <iostream>
#include <cmath>
#include <algorithm>
#include <Eigen/Dense>
#include <TriMesh.h>
#include <GL/glut.h>
#include <gl/glu.h>
#include "Mesh.h"
using namespace std;
using namespace Eigen;
using namespace trimesh;
using namespace sen;
sen::Mesh mesh;
MatrixXf scaleFreeMatrix;
MatrixXf Hp, D;
int s... |
// Copyright © 2017 <NAME>
// Copyright © 2017-2021 Dakar Wallet.
//
// This file is part of Dakar. The full Dakar copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Bech32.h"
#include "Da... |
///////////////////////////////////////////////////////////////////////////////
// COPYRIGHT (c) 2009 Schweitzer Engineering Laboratories, Pullman, WA
///////////////////////////////////////////////////////////////////////////////
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of ... |
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include <list>
#include <sstream>
#include <fstream>
#include <iomanip>
#include "preflash_datafile.hpp"
#include "preflash_dataset.hpp"
#include "preflash_siminfo.hpp"
#include "preflash_utils_text.hpp"
#include "preflash_utils_file.hpp"
#incl... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "Core.h"
#include "ImageCore.h"
#include "ModuleInterface.h"
#include "ModuleManager.h"
#include "TargetPlatform.h"
#include "TextureCompressorModule.h"
#include "PixelFormat.h"
#include "TextureConverter.h"
#include "IConsoleManager.h"
DEFINE_LOG_... |
/*
MGEAR is under the terms of the MIT License
Copyright (c) 2016 <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 u... |
/*-------------------------------------------------------------------------
Arduino library to ...
Written by <NAME>,
contributions by ... and other members of the open
source community.
-------------------------------------------------------------------------
This file is part of the MechInputs library.
... |
/* -*- 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... |
//Server Code for Router_1
/* A simple server in the internet domain using TCP
The port number is passed as an argument */
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if_arp.h>
#include <net/if.h>
#include <netinet/in.h>
#... |
/*****************************************************************************
# *
# Copyright 2020 AT&T Intellectual Property *
# Copyright 2020 Nokia *
# ... |
/*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... |
/* Copyright (c) 2011 <NAME> (kmamou at gmail dot com)
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 condi... |
#include <Core/Build.h>
#include <Core/Timer.h>
#include <Core/Types.h>
#include <Core/memory.h>
#include <Core/System.h>
#include <Core/string_stream.h>
#include <Core/temp_allocator.h>
#include <Core/Assert.h>
#include <Core/Log.h>
#include <Engine/Filesystem.h>
fry_engine::Filesystem* g_Filesystem = NULL;
bool g... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Tencent is pleased to support the open source community by making WeChat QRCode available.
// Copyright (C) 2020 THL A29... |
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <ctype.h>
#include "../hunspell/csutil.hxx"
#include "textparser.hxx"
#ifndef W32
using namespace std;
#endif
// ISO-8859-1 HTML character entities
static const char * LATIN1[] = {
"À",
"Ã",
"Å",
"Æ",
"È",
"&Ecir... |
/*
* mutgos_server_main.cpp
*/
#include <unistd.h>
#include <string>
#include <iostream>
#include <boost/program_options.hpp>
#include "logging/log_Logger.h"
#include "text/text_StringConversion.h"
#include "utilities/mutgos_config.h"
#include "osinterface/osinterface_Signals.h"
#include "utilities/memory_Thread... |
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <cs... |
template<typename T>
class AVL_array{
struct node;
using np=node*;
struct node{
T val;T fold;
int cnt=1;
int dep=0;
np ch[2]={nullptr,nullptr};
node(T val):val(val){}
};
template<typename Getter>
class iterator{
int i;
Getter getter;
publ... |
/*
* MapHelper.cpp
*
* Created on: Apr 11, 2013
* Author: okan
*/
#include "map_helper.h"
#define PI 3.1415926535897932384626433f
MapHelper::MapHelper()
{
}
MapHelper::MapHelper(const nav_msgs::OccupancyGrid& _grid) {
occupancyGrid = _grid;
// debug tests
std::cout << "origin.x=" << occupancyGrid.i... |
#include "copier.h"
#include "ast.h"
#include "compiler.h"
#include "sema.h"
#define COPIER_NEW(type) ((type *)init_copy(new type(), old))
#define COPY_ARRAY(name) do { for (auto i : old->name) {_new->name.add((decltype(i))copy(i)); } } while (0)
#define COPY_P(name) ( _new->name = old->name )
#define COPY(name... |
#define _HAS_STD_BYTE 0 // needed for compatibility reasons with rlutil
#include <assert.h>
#include <algorithm>
#include <enumerate.h>
#include <random>
#include <queue>
#include <thread>
#include "../../Core/Config.h"
#include "../../Evolution/Population.h"
#include "../../Evolution/Globals.h"
#include "../../Serial... |
/*
* Copyright (c) 2007 Intel Corporation. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, ... |
/*
This file is part of JQTools
Project introduce: https://github.com/188080501/JQTools
Copyright: Jason
Contact email: <EMAIL>
GitHub: https://github.com/188080501/
*/
#include "fonttopng.h"
// Qt lib import
#include <QFontDatabase>
#include <QPainter>
#include <QFileDialog>
#include <QJsonO... |
#include "http_client.h"
#include "defines.h"
#include "../../public/error_code.h"
int g_http_client_mid = 0;
void http_request_done(struct evhttp_request *req, void *arg)
{
LOG4CXX_INFO(g_logger, "receive http response");
if (req == NULL)
{
LOG4CXX_ERROR(g_logger, "receive http response, req = N... |
/*
Copyright 2018 <NAME>, Autodesk
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwa... |
/**********************************************************************
* $Id: tab2tab.cpp,v 1.17 2007/06/12 12:50:40 dmorissette Exp $
*
* Name: tab2tab.cpp
* Project: MapInfo TAB format Read/Write library
* Language: C++
* Purpose: Copy features from a .TAB dataset to a new one.
* Author: <NAME>, <EMAI... |
#include <clocale>
#include <cwchar>
#include <cwctype>
#include <iostream>
#include <string>
#include <locale>
#include <vector>
#include <utility>
#include <algorithm>
static const std::size_t DETAILED_DIFF_LIMIT = 10 * 1024 * 1024;
// from lwiki/lib/lib.ldiff.php
template<typename F, bool swapped = false>
static v... |
#include <TRandom.h>
#include <TH1D.h>
#include <TClonesArray.h>
#include "AliJEventPool.h"
#include "AliJBaseTrack.h"
#include "AliJTrack.h"
#include "AliJMCTrack.h"
#include "AliJPhoton.h"
#include "AliJPiZero.h"
#include "AliJCard.h"
#include "AliJCorrelationInterface.h"
#include "AliJHistogramInterface.... |
/*************************************************************************
listbox.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 Fr... |
#include "L1Trigger/GlobalCaloTrigger/interface/L1GctWheelEnergyFpga.h"
#include "L1Trigger/GlobalCaloTrigger/interface/L1GctWheelJetFpga.h"
#include "L1Trigger/GlobalCaloTrigger/interface/L1GctJetLeafCard.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
using std::endl;
using std::ostream;
using std::ve... |
/*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... |
#include "Capture.hh"
// Constant is 1/ focal length
// void (const boost::shared_ptr<openni_wrapper::Image>&, const boost::shared_ptr<openni_wrapper::DepthImage>&, float constant)
Capture::Capture(std::string const &grabber_name)
{
boost::function<void(const pcl::PointCloud<pcl::PointXYZRGBA>::ConstPtr&)> getData ... |
/*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/* Copyright (c) 2010 <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,
* dis... |
#include <windows.h>
#include <GL/glut.h>
#include <iostream>
#include <cmath>
const GLdouble PI = std::acos(-1);
void display();
void reshape(GLsizei width, GLsizei height);
void initOpenGL();
void drawRoad();
void drawCar(GLdouble xx, GLdouble yy, GLdouble scale=1.0);
void drawTireWholes(GLdouble x, GLdouble y, GLd... |
/* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... |
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "fawnds_factory.h"
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <sys/types.h>
#include <sys/time.h>
#include ... |
/*
* Copyright (C) 2018 The LineageOS 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 applicable la... |
#include <algorithm>
#include <iostream>
#include "helpers/helpers.h"
#include "helpers/orbital_space.h"
#include "helpers/stl_utils.hpp"
#include "equation.h"
#include "expression.h"
#include "sqoperator.h"
#include "tensor.h"
#include "term.h"
Expression::Expression() : Algebra<SymbolicTerm, scalar_t>() {}
void E... |
/*=========================================================================
Library: MeasurementExplorer
Copyright 2019 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance... |
// -*- compile-command: "c++ -std=c++11 stl.cpp -o stl -lstdc++" -*-
#include <stdint.h>
#include <iostream>
#include <vector>
#include <fstream>
#include "parse.hpp"
namespace stl {
union uint32 {
char bytes[4];
std::uint32_t value;
};
std::istream& operator>>(std::istream& in, uint32& self) {
... |
//----------------------------------------------------------------------------
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Description:
//
// Test app for image geometries. Prints out projection keyword
// list. Performs lineSampleToWorld, worldToLineSample, lin... |
/*
* \class TAPD
*
* \author: <NAME> - CEA/Saclay
*/
#include <CalibCalorimetry/EcalLaserAnalyzer/interface/TMom.h>
#include <CalibCalorimetry/EcalLaserAnalyzer/interface/TAPD.h>
#include <CalibCalorimetry/EcalLaserAnalyzer/interface/TMarkov.h>
#include <TMath.h>
using namespace std;
#include <iostream>
#incl... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <iostream>
#include <vector>
#include <chrono>
#include <unistd.h>
#include <thread>
#include "tensorflow/lite/interpreter.h"
#include "tensorflow/lite/kernels/register.h"
#include "tensorflow/lite/model.h"
#include "tensorflow/lite/op... |
// ======================================================================
/*!
* \file
* \brief Implementation of lights2shape program
*/
// ======================================================================
#include <boost/iostreams/filter/bzip2.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#include <boost/io... |
// Copyright 2020 The ShaderTrap Project Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
// mapconv - symbolic debugging info generator for VirtualDub
// Copyright (C) 2002 <NAME>, All Rights Reserved
//
// 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 Lice... |
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
/*
* Copyright (c) 2020 Huawei Technologies Co.,Ltd.
*
* openGauss is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ... |
#include <GL/gl.h>
#include <GL/glut.h>
#include <vector>
#include "objects/cube.h"
#include "utils/camera.h"
#include "utils/controller.h"
using namespace std;
using objects::Cube;
using utils::Camera;
using utils::Controller;
Cube rubiks;
Camera cam;
void loadVisualParams();
void setCameraCoords() {
gluLookAt(C... |
/* str_perm_gen_cli.cpp
Defines the command line parser of the String Permutation application.
Copyright(c) 2019 <NAME>
Modification history:
16/Nov/2019 - <NAME> created the module.
*/
#include <iostream>
#include "str_perm_gen_cli.hpp"
using namespace std;
using namespace dk;
StrPermGenCLIParser::StrPermGenC... |
#include "../iconvlite.h"
#include "gtest/gtest.h"
char utf8Chars[][4] = {
"\xd0\x82", // Ђ
"\xd0\x83", // Ѓ
"\xE2\x80\x9A", // ‚
"\xD1\x93", // ѓ
"\xE2\x80\x9E", // „
"\xE2\x80\xA6", // …
"\xE2\x80\xA0", // †
"\xE2\x80\xA1", // ‡
"\xE2\x82\xAC", // €
"\xE2\x80\xB0", // ‰
"\xD0\x89", ... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2009, Image Engine Design 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:
//
// ... |
/*
* OpenPBS (Portable Batch System) v2.3 Software License
*
* Copyright (c) 1999-2000 Veridian Information Solutions, Inc.
* All rights reserved.
*
* ---------------------------------------------------------------------------
* For a license to use or redistribute the OpenPBS software under conditions
* other ... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//#ifdef HAVE_AV_CONFIG_H
//#undef HAVE_AV_CONFIG_H
//#endif
extern "C" {
#include "libavcodec/avcodec.h"
#include "libavutil/mathematics.h"
#include "libavutil/samplefmt.h"
#include "libswscale/swscale.h"
#include <jpeglib.h>
}
#include <vector>
#include <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.