text stringlengths 5.71k 33.7k |
|---|
#include <boost/program_options.hpp>
#include "config.h"
#include "../lib/error.h"
#include "../lib/fs.h"
#include "../lib/reg.h"
#include "../lib/shortcut.h"
#include "../lib/utils.h"
namespace po = boost::program_options;
void check_running(crwstr name) {
const auto p = get_distro_dir(name);
if (check... |
//===- postprocess.cc -----------------------------------------------------===//
//
// Copyright (C) 2020-2021 Alibaba Group Holding 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 ... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2017, ISO/IEC
* All rights reserved.
... |
// -*- coding: utf-8 -*-
// Copyright (C) 2012, 2013, 2015-2019 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
//
// Spot is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as publish... |
///////////////////////////////////////////////////////////////////////////////
// File: FP420ClusterMain.cc
// Date: 12.2006
// Description: FP420ClusterMain for FP420
// Modifications:
///////////////////////////////////////////////////////////////////////////////
#include <vector>
#include <iostream>
#include "FWCo... |
/*
* Written by Dr <NAME> (<EMAIL>) for the OpenSSL
* project.
*/
/* ====================================================================
* Copyright (c) 2015 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... |
// Author: <NAME> (modified by <NAME>)
// This (very simple) node reads a laser scan, and
// publishes the distance to the nearest point based on the steering angle and bounds
//
// TODO: ensure nearest few points are somewhat close
// TODO: what to return if no closest points?
// TODO: enable angle range we care abou... |
/*
Copyright(c) 2013-2014 <NAME>.
This file is part of fork of pbrt (pbrt-v2-skin).
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
... |
// Copyright (C) 2010-2015 <NAME>
// See the file COPYING for copying permission.
#include <hadesmem/patcher.hpp>
#include <hadesmem/patcher.hpp>
#include <memory>
#include <sstream>
#include <string>
#include <tuple>
#include <utility>
#include <hadesmem/detail/warning_disable_prefix.hpp>
#include <boo... |
//
// main.cpp
// CryptyMe
//
// Created by Никита on 01.08.2018.
// Copyright © 2018 nproject. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <math.h>
#include <string.h>
#include <openssl/err.h>
#include "qr.h"
#define IMAGE_RATIO_W ... |
// Copyright (c) 2017, The Graft Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// c... |
/*
* Copyright (c) 2020 - 2021, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this lis... |
/*
* Copyright (C) 2010 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... |
// 8 september 2015
#include "uipriv_windows.hpp"
#include "area.hpp"
// TODO https://github.com/Microsoft/Windows-classic-samples/blob/master/Samples/Win7Samples/multimedia/DirectWrite/PadWrite/TextEditor.cpp notes on explicit RTL handling under MirrorXCoordinate(); also in areadraw.cpp too?
static uiModifiers getMo... |
#include "Net.h"
#include "Exception.h"
using namespace std;
Net::Net(double tw)
: tilewidth(tw), G((int)(2.0/tw)), gate_set(0), gate_orders(0),
gate_inverses(0), gate_labels(0)
{
if (sizeof(int) != 4)
{
throw Exception("non 32-bit integers detected - please see Net.h");
return;
}
if (G > 0x7FFE)
{
throw ... |
/* fhandler_termios.cc
Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010,
2011, 2012, 2014, 2015 Red Hat, Inc.
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#in... |
//Copyright (c) 2016, 2017, 2018 Hitachi Vantara Corporation
//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/LICE... |
#include <typeinfo>
#include <cwctype>
#include "rnvntn.h"
using namespace Rnvntn;
RnTextbox::RnTextbox(const wchar_t* text, const int lenlim) {
this->lenlim = lenlim;
this->setText(text);
setSize(120, 24);
}
RnTextbox::~RnTextbox() {
delete[] text;
delete[] offsets;
if (changehook != nullptr)... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
#include "level_api.hpp"
#include "entity.hpp"
#include "game_allocator.hpp"
#include "layer.hpp"
#include "logger.h"
#include "memory.hpp"
#include "rpc.hpp"
#include "script.hpp"
#include "spawn_api.hpp"
#include "util.hpp"
#include <array>
#include <string_view>
#include <tuple>
#include <Windows.h>
#include <det... |
#include <iostream>
#include <xmmintrin.h>
#include <immintrin.h>
#include <ctime>
#include <iomanip>
#include <chrono>
#pragma warning(disable : 4996)
#define COUNT 10
struct double4
{
union {
__m256d data4;
double data[4];
};
};
double4 _radii[COUNT];
double4 _mass[COUNT]; // mass of the planet + moons times... |
#include <rosnode.h>
rosNode::rosNode(void): tfListener(tfBuffer){ };
void rosNode::initialize() {
cout<<"Starting ROS publisher..."<<endl;
measuredHumans = n.advertise<visualization_msgs::MarkerArray>("/HIP/measuredHumans",3);
virtualRobot = n.advertise<visualization_msgs::Marker>("/HIP/virtualRobot",3);... |
#include "TpkC.h"
#include <ctime>
#include <cmath>
#include "FakeSystemClock.h"
#include "tpk/UnixClock.h"
#include "csw/csw.h"
// Convert degrees to microarcseconds
static double deg2Mas(double d) { return d * 60.0 * 60.0 * 1000.0 * 1000.0; }
// Convert degrees to radians
#define deg2Rad(d) ((d) * M_PI / 180.0)
... |
#include "xrdconnection_wrapper.h"
#include "botlink_api_wrapper.h"
#include "logger_wrapper.h"
#include <napi.h>
#include <functional>
#include <string>
namespace {
std::pair<int, int> resolutionStringToInt(const std::string& resolution);
std::string resolutionIntToString(const int width, const int height);
name... |
#include "Acts/Geometry/CuboidVolumeBuilder.hpp"
#include "Acts/Geometry/DetectorElementBase.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Geometry/TrackingGeometry.hpp"
#include "Acts/Geometry/TrackingGeometryBuilder.hpp"
#include "Acts/Geometry/TrackingVolume.hpp"
#include "Acts/Material/Homogeneou... |
//=--3C.cpp-------------------------------------------------------*- C++-*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#pragma once
#include <string>
#include <memory>
#include "Alignment.hpp"
#include "AutomaticMovement.hpp"
#include "Blood.hpp"
#include "BoolStatistic.hpp"
#include "common.hpp"
#include "Colours.hpp"
#include "Conducts.hpp"
#include "Controller.hpp"
#include "CreatureFeatures.hpp"
#include "Damage.hpp"
#include "Deci... |
#include "colmap_interface/colmap_interface.h"
void StoreColorPlyFileBinaryPointCloud (const std::string &plyFilePath, const std::vector<PointList> &pc)
{
std::cout << "store 3D points to ply file" << std::endl;
FILE *outputPly;
outputPly=fopen(plyFilePath.c_str(), "wb");
/*write header*/
fprintf... |
/*
Module : AANutation.cpp
Purpose: Implementation for the algorithms for Nutation
Created: PJN / 29-12-2003
History: PJN / 10-05-2010 1. Removed the unused Delta parameter from the CAANutation::NutationInDeclination method.
Thanks to <NAME> for reporting this issue.
PJN / 18-03... |
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <phosg/Image.hh>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <string>
#include "resource_fork.hh"
////////////////////////////////////////////////////////////////////////////////
/... |
/*
* Copyright 1993-2014 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2012, <NAME> [<EMAIL>], <NAME> [<EMAIL>]
* Copyright (c) 2013-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following co... |
/*
* dev_Image.cpp
*
* Created on: 2020年11月10日
* Author: fanyi
*/
/**TEAM 15th Dev**/
#include "dev_Image.h"
#include "lib_pidctrl.h"
extern float Motor_L;
extern float Motor_R;
extern float Servo;
float Servo_Output;
extern float Servo_kp;
extern float Servo_kd;
extern float Servo_ki;
uint8_t *imageBuffer0 ... |
#include <Base/TextureObject.h>
#include <Base/UTRHIAppBase.h>
#include <Core/App.h>
#include <Core/AssetManager.h>
#include <Core/LogUtil.h>
#include <Core/Message.h>
#include <Core/Kaleido3D.h>
#include <Core/Math/kMath.hpp>
//#include <steam/steam_api.h>
using namespace k3d;
using namespace kMath;
class CubeMesh;
... |
/*
** Copyright 2014-2016 The Earlham Institute
**
** 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... |
//-*-mode:c++; mode:font-lock;-*-
/*! \file VBFDumper.hpp
Dump VBF data to a stream
\author <NAME> \n
UCLA \n
<EMAIL> \n
\version 1.0
\date 03/20/2005
$Id: VBFDumper.cpp,v 3.9 2009/11/05 23:02:20 matthew Exp $
*/
#inclu... |
/*************************************************************************
This file is part of 'Mercenaries of Astonia v2'
Copyright (c) 1997-2001 <NAME> (<EMAIL>)
All rights reserved.
**************************************************************************/
#include <algorithm>
#include <stdlib.h>
#include <stri... |
// Copyright (C) <2019> Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0
#include <iostream>
#include <string>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include "opencv2/imgcodecs.hpp"
#include <opencv2/highgui.hpp>
#include <opencv2... |
#include "MMatrix.h"
std::ostream &operator<<(std::ostream &os, MMatrix &obj) {
//Overloads << operator
// Produces an outstream to print the values of the matrix simultaneously in a matrix formation
os << obj.mat3x3[0].getX() << " " << obj.mat3x3[1].getX() << " " << obj.mat3x3[2].getX() << std::endl;
... |
////////////////////////////////////////////////////////////////////////////////
//
// Compares output files from PrintGeomInfo created using DDD and DD4Hep
// inputs. Usage:
//
// SimFileCompare infile1 infile2 mode debug
// infile1 (const char*) File created using DDD
// infile2 (const char*) Fil... |
#include <iostream>
#include <numeric>
#include <chrono>
#include "core/NdCpy/NDCopy.hpp"
#include "core/previous/NDCopy2.tcc"
#include "core/previous/NDCopy2.h"
#include "tests/test.h"
void PrintDims(const Dims &dims, const std::string &name){
std::string s;
s += name + " = [";
for(auto i : dims){
... |
/*
* Copyright (c) 2020 <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 conditions an... |
/*
* Copyright (c) 2017 <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... |
/**************************************************************************\
|
| Copyright (C) 2009 <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 L... |
#include <utt/Configuration.h>
#include <optional>
#include <utt/internal/plusaes.h>
#include <utt/Comm.h>
#include <utt/Kzg.h>
#include <utt/PolyCrypto.h>
#include <utt/PolyOps.h>
#include <utt/RangeProof.h>
#include <utt/Serialization.h> // WARNING: must include last
#include <xutils/Timer.h>
#include <xutils/No... |
/*
* (c) Copyright 2019 Xilinx, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
#include <iostream>
#include <vector>
#include <algorithm>
#include <limits>
#include <queue>
#include <time.h>
#include "Snap.h"
using namespace std;
using namespace TSnap;
void prim(TPt<TNodeEDatNet<TInt, TFlt> > G, int num);
void kruskal(TPt<TNodeEDatNet<TInt, TFlt> > g, int vertices);
void dijkstra(T... |
//===- Pass.cpp - Pass infrastructure implementation ----------------------===//
//
// Copyright 2019 The MLIR 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.... |
#include "dataPHMR.hpp"
#include <stdio.h>
#include <iostream>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>
#include "misc.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <string>
using namespace std;
//Class related methods + constructors
DataPHMR::DataPHMR() { } /... |
/******************************************************************************
This source file is part of the Avogadro project.
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distri... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include <Eigen/Dense>
#include <chrono>
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <features.hpp>
void cfar1d(cv::Mat fft_data, int window_size, float scale, int guard_cells, int min_range, Eigen::MatrixXd &targets) {
assert(fft_data.dept... |
/*!@file
* @copyright This code is licensed under the 3-clause BSD license.
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.
* See LICENSE.txt for details.
*/
#define BOOST_SYSTEM_NO_DEPRECATED
#define BOOST_FILESYSTEM_NO_DEPRECATED
#include "boost/filesystem.hpp"
#include "Molassembler... |
#include <cstdint>
#include <thread>
#include <list>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <cryptopp/oids.h>
#include "../network/P2PConnection.h"
#include "../network/SecuredNetworkManager.h"
#include "../network/MessageHandler.h"
#include "../dc/DCNetwork.h"
#include "../datastruct/Messa... |
#include <iostream>
#include <random>
#include "Model.hpp"
#include "AllCard.hpp"
#include "PlayerCards.hpp"
#include "P2P_IF.hpp"
using namespace std;
PlayerCards::PlayerCards(){
cout << "create PlayerCards" << endl;
// 初期の銅貨7枚、屋敷3枚を生成して捨札に追加
for(auto i = 0; i < 7; i++){
m_discardCards.push_back(... |
#include <new>
#include <random>
#include <cstring>
#include <unistd.h>
#include <vector>
#include <exception>
#include "../../include/util.h"
#include "../../include/cmdline.h"
#include "include/tpcc.h"
#include "include/tpcc_page.h"
#include "include/tpcc_util.h"
#include "include/debug.h"
void
create_warehouse(){
... |
/* -------------------------------------------------------------------------
*
* parsexlog.c
* Functions for reading Write-Ahead-Log
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* ----------------------------... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
using namespace std;
// for convenience
using json = nlohmann::json;
... |
#include "Andersen.h"
#include "CycleDetector.h"
#include "SparseBitVectorGraph.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/iterator_range.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/raw_ostream.h"
#include <map>
#include <queu... |
/**
* 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 <iostream>
#include <tuple>
#include <vector>
#include "shared.hpp"
using V = uint8_t_vec;
// ref https://github.com/bitcoin-core/secp256k1/blob/6ad5cdb42a1a8257289a0423d644dcbdeab0f83c/src/tests.c#L2160
// iteratively verifies that (d + ...)G == (dG + ...G)
template <typename A, typename B, typename C, ty... |
/*
* Copyright (C) 2011 Invensense, Inc.
* Copyright (C) 2012 <NAME>
*
* 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 r... |
#include "d3d12committedresources.h"
using namespace D3D12Basics;
// project libs
#include "utils.h"
#include "d3d12utils.h"
// c++ libs
#include <cstdint>
#include <algorithm>
// directx
#include <d3d12.h>
namespace D3D12Basics
{
struct D3D12DynamicBufferAllocationBlock
{
size_t m_offset;
... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
#include "pch.h"
#include "shader.h"
#include <glad/glad.h>
#include <glm.hpp>
#include <gtc/type_ptr.hpp>
//Globals, defined in texture.h
extern const std::filesystem::path g_AssetPath;
extern const std::filesystem::path g_ResourcesPath;
namespace AnorEngine {
namespace Graphics {
// TODO: !!!WARNING!!! DATA SI... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <txdb.h>
#include <chainparams.h>
#include <claimtrie/sqlite.h>
#include <hash.h>... |
/*
Copyright (c) 2013 <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, sublicen... |
#include "SpriteSet.h"
#include "d3dfmtutils.h"
#include <math.h>
#include <stdio.h>
// constructor
CSpriteSet::CSpriteSet(IDirect3DDevice9* pDevice, LPCWSTR FileName, D3DFORMAT Format)
{
// set the device
m_pDestinationDevice = pDevice;
m_nTextureCount = 0;
// load the image
Load(FileName, Format);
}
// destr... |
/*
* Fadecandy driver for the FT232H with 8x parallel SPI driving circuit
*
* Copyright (c) 2013 <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, includi... |
#include <string>
#include <vector>
#include <sstream>
#include <iostream>
#include <algorithm>
#include "sgp4unit.h"
#include "sgp4ext.h"
#include "Simulation.h"
#include "SpaceObject.h"
#include "Conjunction.h"
#define SECOND_IN_JDAYS 1.157401129603386e-05; // 1 second expressed in Julian Days. JDAY/s
#define JDAY_I... |
#include<ql/quantlib.hpp>
#include "CsvHelper.hpp"
using namespace QuantLib;
namespace {
Real getCalibrationError(
std::vector<boost::shared_ptr<CalibrationHelper> > & options) {
Real sse = 0;
for (Size i = 0; i < options.size(); ++i) {
const Real diff = options[i]->calibratio... |
// Easily modifiable presentation of n-gram language model
#include "HashGram.hh"
#include "str.hh"
#include "def.hh"
template <typename KT>
HashGram_t<KT>::~HashGram_t() {
for (size_t i=1;i<probs.size();i++) delete probs[i];
for (size_t i=1;i<backoffs.size();i++) delete backoffs[i];
}
template <typename KT>
void... |
// File and Version Information:
// $Header: /nfs/slac/g/glast/ground/cvs/GlastSvc/src/EventSelector/EventCnvSvc.cpp,v 1.10.22.1 2010/10/06 03:55:27 heather Exp $
//
// Description:
// EventCnvSvc is the GLAST converter service.
//
// Author(s):
#define EVENTCNVSVC_CPP
#include "Event/TopLevel/EventModel.h"... |
#include "EmitterRenderer.h"
#include "AssetLoader.h"
#include "Camera.h"
#include "Engine.h"
#include "Shader.h"
#include "Texture.h"
#include <glad/glad.h>
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include <gif.h>
namespace
{
const int NUM_PARTICLE_ATTRIBUTES{... |
/// @file
/// @brief Common functionality for all mosaicing gridders
/// @details AProjectGridderBase class encapsulates common operations for all mosaicing
/// gridders: CF cache support and recalculation statistics, support for the buffer in the uv-space,
/// and the factory of illumination pattrns.
///
/// @copyrig... |
#include <iostream>
#include <stdexcept>
#include <filesystem>
#include <iomanip>
#include <chrono>
#include <cstdlib>
#include <direct.h>
#include <fstream>
#include <stb_image_write.h>
#include "Args.h"
#include "nlohmann/json.hpp"
#include "RXAssetManager.h"
//#include "stb_image.h"
#include "spdlog/spdlog.h"
//#inc... |
/* Copyright 2017 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 <nrr/level/level.h>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <nrr/level/map.h>
#include <nrr/util/binaryreader.h>
#include <nrr/util/configparser.h>
#include <nrr/math/camera.h>
#include <nrr/math/transform.h>
#include <nrr/units/unitinfo.h>
void Level::load(EntityManager &em, Confi... |
// 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 "ui/gfx/platform_font_gtk.h"
#include <algorithm>
#include <fontconfig/fontconfig.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include <map... |
// Copyright (C) 1988-2007 Altera Corporation
// Any megafunction design, and related net list (encrypted or decrypted),
// support information, device programming or simulation file, and any other
// associated documentation or information provided by Altera or a partner
// under Altera's Megafunction Partnership Prog... |
/********************************************************
Stanford Driving Software
Copyright (c) 2011 Stanford 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... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
//HJM.cpp
//Routine to setup HJM framework.
//Authors: <NAME>, <NAME>, Columbia University
//Collaborator: <NAME>, Intel
//Based on hjm_simn.xls created by <NAME>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "nr_routines.h"
#include "HJM.h"
#include "HJM_type.h"
int HJM_SimP... |
/* Copyright (c) 2016 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 by applicable law or... |
///////////////////////////////
// Take a single runnumber, and print the elevation and azimuth
// the telescope is pointing at once per second
#include "CData.h"
#include "VSkyCoordinates.h"
#include "VAstronometry.h"
#include "VDB_Connection.h"
#include "VGlobalRunParameter.h"
#include <TSQLResult.h>
#include <TSQL... |
/*******************************************************************************
* Copyright (C) 2019 jmjos
*
* 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, includi... |
// Copyright 2014 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/ssl/chrome_ssl_host_state_delegate.h"
#include <stdint.h>
#include <set>
#include <string>
#include <utility>
#include "base/b... |
#include "Application3D.h"
#include <iostream>
#include "Gizmos.h"
#include "Input.h"
#include "Mesh.h"
#include "Scene.h"
#include "Instance.h"
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include "imgui.h"
using glm::vec3;
using glm::vec4;
using glm::mat4;
using aie::Gizmos;
Application3D::Application3D()
{... |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... |
/*
* This source code is public domain.
*
* Authors: <NAME> <<EMAIL>>
*/
////////////////////////////////////////////////////////////
// General Digital Music module loader
////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "sndfile.h"
static const DWORD GDM_SIG = 0xfe4d4447... |
//
// simulator.cpp
// MoTrack Therapy Mac
//
// Created by <NAME> on 6/21/19.
// Copyright © 2019 MoTrack Therapy. All rights reserved.
//
#include <opencv2/opencv.hpp>
#include "json.hpp"
#include "simulator.h"
#include "native-lib.h"
#include "calibration.h"
#include "fist_analysis.h"
#include "pronation_anal... |
/*
* Copyright 2017-2020 Autoware Foundation. 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 requi... |
/* *****************************************************************************************
PL_smallEPD - A library for 1.1”, 1.4", 2.1" and 3.1" E-Paper displays (EPDs) from
Plastic Logic based on UC8156 driver IC for Adafruit GFX core library. The communication is
SPI-based, for more information about hook-up plea... |
#include <cstdio>
#include <iostream>
#include <fstream>
#include <regex>
#include <unistd.h>
#include "libini.h"
// [{"required_test":0,"date":"Saturday, August 18, 2018 5:26AM MST","text":"Do not test today","transaction_key":"ffffffff"}]
#define DEFAULT_CONF "users.conf"
#define DEFAULT_TRIES 10
#define DEFA... |
/*
* AlexaCommunicationsLibraryTest.cpp
*
* Copyright 2016-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aw... |
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "DataFormats/Common/interface/ValueMap.h"
#i... |
//===- DropUnitDims.cpp - Pass to drop use of unit-extent for broadcasting ===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Copyright (c) 2013 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 "base/logging.h"
#include "base/trace_event/trace_event.h"
#include "skia/ext/analysis_canvas.h"
#include "third_party/skia/include/core/SkPa... |
#include "CInterestPoint.h"
#include <sys/stat.h>
CInterestPoint::CInterestPoint()
{
}
CInterestPoint::CInterestPoint(Mat matImg, CIPParamAdapt* pparam){
setInputImage(matImg);
setProcParam(pparam);
}
CInterestPoint::CInterestPoint(Mat matImg, CIPParamAdapt* pparam, string strRscPath){
setInputImage(mat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.