text stringlengths 5.71k 33.7k |
|---|
//
// "$Id: fl_boxtype.cxx 5505 2006-10-03 02:35:12Z mike $"
//
// Box drawing code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2006 by <NAME> and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License a... |
#ifndef __PROGTEST__
#include <cstring>
#include <cstdlib>
#include <cstdio>
#include <cctype>
#include <ctime>
#include <climits>
#include <cmath>
#include <cassert>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include <list>
#include <algorithm>
#include <functional>... |
/***************************************************************************
*
*
* Author: <NAME>, Jan 2012
*
***************************************************************************
*
* Description: Time shape fitter for the raw daq files. Output is a TTree that
* contain the original spectrum, mapping i... |
//Generate optical flow videos for the whole dataset
//Target dataset: UCF-101
//
//author: <NAME>
//contact: <EMAIL>
//Last updated: 06/30/2016
#include <cstdio>
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <opencv2/opencv.hpp>
#include "... |
/* Copyright (c) 2015 Convey Computer Corporation
*
* This file is part of the OpenHT memcached application.
*
* Use and distribution licensed under the BSD 3-clause license.
* See the LICENSE file for the complete license text.
*/
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
... |
/*!
* \file CParallelDataSorter.cpp
* \brief Datasorter base class.
* \author <NAME>
* \version 7.0.6 "Blackbird"
*
* SU2 Project Website: https://su2code.github.io
*
* The SU2 Project is maintained by the SU2 Foundation
* (http://su2foundation.org)
*
* Copyright 2012-2020, SU2 Contributors (cf. AUTHORS.md)
... |
/*
* AX12A.cpp
*
* Created on: Mar 16, 2018
* Author: Admin
*/
/********************************** Includes **********************************/
#include "AX12A.h"
/********************************* Constants *********************************/
/* Register definitions. */
const uint8_t AX12A_REG_ID ... |
/*
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, su... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: ZAIC_PEAK.cpp */
/* DATE: Aug 17th 2006 ... |
// Copyright 2020, <NAME>, usb64
// SPDX-License-Identifier: MIT
#include "common.h"
#include "input.h"
#include "n64_controller.h"
#include "analog_stick.h"
#include "memory.h"
#include "fileio.h"
#include "tft.h"
void usbh_dev_init(void);
static void ring_buffer_init(void);
static void ring_buffer_flus... |
#include <QDebug>
#include <cmath>
#include <qmath.h>
#include <QGC.h>
#include "MAVLinkSimulationMAV.h"
MAVLinkSimulationMAV::MAVLinkSimulationMAV(MAVLinkSimulationLink *parent, int systemid, double lat, double lon, int version) :
QObject(parent),
link(parent),
planner(parent, systemid),
systemid(sys... |
/*******************************************************************************
* Copyright (c) 2009-2016, MAV'RIC Development Team
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. R... |
#include <iostream>
#include <math.h>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <boost/filesystem.hpp>
#include <boost/format.hpp>
#include <boost/program_options.hpp>
#include <boost/lexical_cast.hpp>
#include "dataset_prepare.h"
using namespace std;
using cv::Mat;
using cv::P... |
/*
GEODIFF - MIT License
Copyright (C) 2020 <NAME>
*/
#include "gtest/gtest.h"
#include "geodiff_testutils.hpp"
#include "geodiff.h"
#include "changesetreader.h"
#include "changesetutils.h"
#include "changesetwriter.h"
#include "driver.h"
#include "postgresutils.h"
extern "C"
{
#include <libpq-fe.h>
}
void execSq... |
#include "curly_ai.h"
#include "../ai.h"
#include "../stdai.h"
#include "../../ObjManager.h"
#include "../../p_arms.h"
#include "../../sound/sound.h"
#include "../../common/misc.h"
#include "../../game.h"
#include "../../player.h"
#include "../../map.h"
#include "../../graphics/sprites.h"
#include "../../graphics/tile... |
/*
* <NAME>
* Advanved C++
* OCCC Fall 2017
* Due: 10/15/17
* Details: Simple Sorts Homework
* Reference Timer code: https://solarianprogrammer.com/2012/10/14/cpp-11-timing-code-performance/
* Reference Timer code: http://www.informit.com/articles/article.aspx?p=1881386&seqNum=2
* Reference Material: h... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance... |
#include <mpi.h>
#include <iostream>
#include <cstdlib>
#include <time.h>
#include <sstream>
#include <fstream>
#include <vector>
using namespace std;
//initialization
int N = 50; // Each process will have an N by N grid -- Note this is not the total size of the grid
int max_steps = 10; // number of iterations for ga... |
// Created by <NAME> on 26.06.2020
// Copyright 2020 ETH Zurich
#pragma once
#include <array>
#include <exception>
#include <fstream>
#include <iostream>
#include <limits>
#include <memory>
#include <type_traits>
#include "approx.h"
#include "approx_eb.h"
#include "util/format.h"
#include "util/vof.h"
#include "par... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "gmath.h"
#include "entities.h"
#include "raytracing.h"
#define MAX_REFLECTION_BOUNCES 3
#define MAX_DISTANCE 1000000000000.0
#define MIN_DISTANCE 0.00001
/*
Output: 1 means hit, otherwise 0; distance t; suface normal
Input: e and d from Ray expres... |
// Author: <NAME>
// Last modification: 11/10/2021
#include "GraphPrune.h"
using namespace std;
//==========================================================================================
// Public methods implementations
//============================================================================... |
#include "PFEGammaCandidateChecker.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidateEGammaExtra.h"
#include "DataFormats/ParticleFlowCandidate/interface/PFCandidatePhotonExtra.h"
#include "DataFormats/ParticleFlowReco/interface/PFBl... |
// View.cpp : implementation of the CView class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "View.h"
#include "TreeNodes.h"
#include "Internals.h"
#include "UICommon.h"
#include "IntValueDlg.h"
#include "ChangeValueCommand.h"
#incl... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
//(c) 2016 by Authors
//This file is a part of ABruijn program.
//Released under the BSD license (see LICENSE file)
#include "read_aligner.h"
#include "../sequence/alignment.h"
#include "../common/parallel.h"
#include <cmath>
#include <iomanip>
#include <queue>
namespace
{
struct Chain
{
std::vector<const EdgeAli... |
#include "rosplan_planning_system/PlanningSystem.h"
#include <fstream>
#include <sstream>
#include <string>
#include <ctime>
#include <string>
#include <streambuf>
namespace KCL_rosplan {
/*-------------*/
/* constructor */
/*-------------*/
PlanningSystem::PlanningSystem(ros::NodeHandle& nh)
: system_status(R... |
// $Id$
/*
Copyright (c) 2007-2015, Trustees of The Leland Stanford Junior 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... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
// PIC16 generic disassembler, with extended opcodes
#include "emu.h"
#include "pic16d.h"
u32 pic16_disassembler::opcode_alignment() const
{
return 1;
}
char pic16_disassembler::fw(u16 opcode)
{
return opcode & 0x80 ? 'f' : 'w';
}
std::string pic16_disassembler... |
/*
* Copyright (c) 2013 The Native Client 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 <assert.h>
#include <errno.h>
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>... |
#include "erlkaf_producer.h"
#include "nif_utils.h"
#include "macros.h"
#include "topicmanager.h"
#include "erlkaf_nif.h"
#include "erlkaf_config.h"
#include "erlkaf_logger.h"
#include "rdkafka.h"
#include "queuecallbacksdispatcher.h"
#include <string.h>
#include <memory>
#include <string>
#include <future>
namespace... |
//===-- BreakpointResolverName.cpp ------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
Copyright (C) 2011 by <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,... |
//===- LiveRangeCalc.cpp - Calculate live ranges --------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*=================================================================
* syntax: T = build_km_tree_xcorr(I, M, L, b, t);
*
* build_km_tre:xcorr - build km-tree matrix from image based on cross correlation
*
* Input: - I: X-by-Y intensity image
* - M: patch size (length of edge)
* - L: numbe... |
/* Copyright 2019 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
/*
Copyright (c) 2008, <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 conditions and the followin... |
/*
* Copyright 2019 OmniSci, 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 t... |
//*****************************************************************************
// @@@ 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 owne... |
/* coherent noise function over 1, 2 or 3 dimensions */
/* (copyright <NAME>) */
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include "perlinNoise.h"
#define BM 0xff
#define N 0x1000
#define NP 12 /* 2^N */
#define NM 0xfff
#define s_curve(t) ( t * t * (3. - 2. * t) )
#define lerp(t, a, b) ( a + t * (... |
//
// Framework for a raytracer
// File: raytracer.cpp
//
// Created for the Computer Science course "Introduction Computer Graphics"
// taught at the University of Groningen by <NAME>.
//
// Author: <NAME>
// <NAME>
// <NAME>
//
// This framework is inspired by and uses code of the raytracer framework of
... |
//********************************************************************************//
// OGSR Engine x64 Compressor
// KRodin (c) 2018
// Используется некоторый код из xrOxygen
//********************************************************************************//
#include "stdafx.h"
#include <iostream>
#include <sstream... |
/* NetHack may be freely redistributed. See license for details. */
#include <ctype.h>
#include "SDL.h"
extern "C" {
#include "hack.h"
}
#include "vulture_gen.h"
#include "vulture_win.h"
#include "vulture_gra.h"
#include "vulture_sdl.h"
#include "vulture_mou.h"
#include "vulture_main.h"
#include "vulture_opt.h"
#i... |
#include <gtest/gtest.h>
#define private public
#include "watch/watcher.h"
#include "watch/watcher_set.h"
#include "watch/watch_server.h"
#include "frame/sf_util.h"
#include "fastcommon/logger.h"
#include "storage/store.h"
int main(int argc, char* argv[]) {
log_init2();
testing::InitGoogleTest(&argc, argv);
... |
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
// Copyright (c) 2017-2018 The Bitcoin Core developers
// Copyright (c) 2019 The Blocknet developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <index/txindex.h>
#include <shutdown.h>
#include <ui_interface.h>
#inc... |
/*
* Copyright (C) 2018 Open Source Robotics Foundation
* Copyright (C) 2020 - present Proyectos y Sistemas de Mantenimiento SL (eProsima).
*
* 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 ... |
// Experimental program to visualize a wave from YM2612.
// The purpose is to explore the correct way to calculate feedback.
#include "fssimplewindow.h"
#include "ym2612.h"
#include "cpputil.h"
#include <yssimplesound.h>
unsigned char sample[]=
{
0x00,0x30,0x01,//(1)
0x00,0x34,0x01,//(1)
0x00,0x38,0x01,//(1)
0x... |
#include <ossimPlanet/mkUtils.h>
#include <ossim/base/ossimCommon.h>
#include <osgDB/ReaderWriter>
#include <osgDB/Registry>
#include <ossim/base/ossimString.h>
#include <ossim/base/ossimCommon.h>
#include <iostream>
#include <stack>
std::istream& mkUtils::planetSkipws(std::istream& in)
{
int c = in.peek();
whil... |
#include "sampler.h"
Sampler::Sampler() {
//Default constructor
}
void Sampler::setProcrystal(string latType, int cnd, bool pat, VecF<int> patR, VecF<int> patL, int latDimX, int latDimY, float fracH, float fracordH, float fracL, float fracordL, int useL, float fracLlin, int usearr, string secinpt, string outfol)... |
#include "GameplayScreen.h"
GameplayScreen::GameplayScreen(Mya mya, std::string name, std::string ip, int port) : Screen::Screen("gameplayScreen")
{
network.isServer = false;
network.serverName = ip;
network.PORT = port;
network.init();
network.sendMessage("regPlayer|" + name);
assets = new Assets(mya);
std::s... |
#include "ModuleRenderer3D.h"
#include "Globals.h"
#include "Application.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "ModuleCamera3D.h"
#include "ModuleEditor.h"
#include "ModuleSceneIntro.h"
#include "ComponentCamera.h"
#include "TextureLoader.h"
#include "ResourceMesh.h"
#include "Tree.h"
#includ... |
/*******************************************************************************/
/********* 4º Ingenieria del Software **********/
/********* Universidad Murcia - MPP **********/
/********* Alumno: <NAME> **********/
/********* Profesor: <NAME> **********/
... |
/*
Copyright (c) 2013, <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
conditions and the following disclaimer.... |
#include "visomono.h"
vector<double> estimateMotion (vector <p_match> p_matched, double K_data[9],parameters param) {
// get number of matches
int32_t N = p_matched.size();
if (N<10)
return vector<double>();
// create calibration matrix
Matrix K(3,3,K_data);
// normalize feature points a... |
//------------------------------------------------------------------------------------
//
// match.cpp - module supporting pattern matching
//
// Author: <NAME>, Ph.D.
//
// Copyright 2022 St. Jude Children's Research Hospital
//
//------------------------------------------------------------------------------------
#i... |
/*
Copyright 2020 Google LLC
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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
/*
Copyright (c) 2011, Los Alamos National Security, LLC
All rights reserved.
Copyright 2011. Los Alamos National Security, LLC. This software was produced under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National Laboratory (LANL),
which is operated by Los Alamos National Security, LLC for the U.S. Depa... |
// ---------------------------------------------------------------------------
// udmabuf テスト
// Copyright (C) 2015-2020 by <NAME>
// https://github.com/ryuz/
// ---------------------------------------------------------------------------
#include <ios... |
#include <StormLib.h>
#include <SimpleOpt.h>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <stdlib.h>
#include <stdio.h>
#include <dirent.h>
#ifdef WIN32
#include <io.h>
#include <direct.h>
#define mkdir(dirname, acl) _mkdir(dirname)
#else
#include <unistd.h>
#end... |
#include <signal.h>
#include <sys/prctl.h>
#include <stdexcept>
#include <limits.h>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <vector>
#include "modules/bio_base/make_mergemap.h"
#include "modules/bio_base/seqset.h"
#include "modules/bio_base/seqset_flat.h"
#include "modules/bio_base/seqset_... |
/* player_module.cpp
* <NAME>, Jul 26, 2013
* Email: <EMAIL>
*
* Player module class that provides an interface for actually playing
* poker with a dealer and looking up action probabilities.
*
* Copyright (C) 2013 by <NAME>
*/
/* C / C++ / STL indluces */
#include <stdio.h>
#include <string.h>
#include <sys/m... |
// Copyright (c) 2009-2018 <NAME>
// Copyright (c) 2009-2018 The Bitcoin Developers
// Copyright (c) 2016-2018 Duality Blockchain Solutions Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "checkpoints.h"
#in... |
// __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use this file excep... |
/*
* ZDB Copyright 2017 Regents of the University of Michigan
*
* 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 applicab... |
#include "QComputer.h"
#include <QGraphicsDropShadowEffect>
QComputer::QComputer(QWidget* parent) : QWidget(parent) {
pile = new Pile;
controleur = new Controller(LiteralManager::GetInstance(), *pile, nullptr);
// Mettre un titre à la fenêtre.
setWindowTitle("Comp'UT");
// création de la vue pr... |
//
// Copyright (c) 2016-2017 <NAME> (<EMAIL> at <EMAIL>)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boostorg/beast
//
#include <boost/asio/bind_executor.hpp>
#... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "Parser_test.h"
#include "Utils.h"
CParser_test::CParser_test (void)
:mp_top (NULL)
,mp_current (NULL)
,mp_bottom (NULL)
,m_buff_size (0)
,m_unit_size (0)
,m_parse_remain_len (0)
,mTOT (5)
,mEIT_H (4096... |
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <stdio.h>
#include <time.h>
#include <stdarg.h>
#include <assert.h>
#include <math.h>
#define GL_LOG_FILE "gl.log"
#define WINDOW_TITLE "VBO"
int g_window_width = 640;
int g_window_height = 480;
int g_framebuffer_width = g_window_width;
int g_framebuffer_height =... |
#include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include <turtlesim/Pose.h>
#include <tf/transform_broadcaster.h>
#include "std_msgs/String.h"
#include <sstream>
class ScanStopper {
public:
// Tunable parameters
double FORWARD_SPEED_MPS = 0.... |
#include "sudoku2.hpp"
#include <vector>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <random>
// #define NDEBUG
#include <cassert>
std::random_device rd;
std::mt19937 rng(rd());
inline int best_fitness() {
return SIZE * SIZE;
}
void print_usage(char *exec_name) {
std::cout << "Usage:... |
#include <iostream>
#include "bm3d.h"
#if USE_INTEGER
const PatchType Kaiser[64] = {
3, 5, 6, 7, 7, 6, 5, 3,
5, 7, 9, 10, 10, 9, 7, 5,
6, 9, 12, 13, 13, 12, 9, 6,
7, 10, 13, 15, 15, 13, 10, 7,
7, 10, 13, 15, 15, 13, 10, 7,
6, 9, 12, 13, 13, 12, 9, 6,
5, 7, 9, 10, 10, 9, 7, 5,
3, 5, 6, 7, 7, ... |
#include <ros/ros.h>
#include <iostream>
#include "std_msgs/String.h"
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include "std_msgs/Header.h"
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "outdoor_bot/ma... |
#include <SDL.h>
#include "rx/render/backend/gl3.h"
#include "rx/render/backend/gl4.h"
#include "rx/render/backend/es3.h"
#include "rx/render/backend/null.h"
#include "rx/render/frontend/context.h"
#include "rx/engine.h"
#include "rx/display.h"
#include "rx/core/filesystem/file.h"
// TODO(dweiler): Game factory...... |
/////////////////////////////////////////////////////////////////////////////////////////////////
/// \file /utils/lmyengine/block_mat.cpp
///
/// \brief Implementation file for block recursive matrix class
///
/////////////////////////////////////////////////////////////////////////////////////////////////
#include... |
#include <FK/IFSetHandle.H>
#include <FK/Vertex.h>
#include <FK/Half.h>
#include <FK/Edge.h>
#include <FK/Loop.h>
#include <FK/DataBase.H>
#include <FK/Reference.h>
#include <FK/Error.H>
#include <sstream>
using namespace std;
using namespace FK;
fk_IFSetHandle::Member::Member(void) : DB(nullptr)
{
return;
}
fk_I... |
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <sys/types.h>
#include <unistd.h>
#include <assert.h>
#include <ctime>
#include <tuple>
#include <iostream>
#include <fstream>
#include <sstream>
#include "dynet/nodes.h"
#include "dynet/dynet.h"
#include "dynet/training.h"
#include "dynet/timing.h"
... |
/** ==========================================================================
* 2011 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes
* with no warranties. This code is yours to share, use and modify with no
* strings attached and no restrictions or obligations.
*
* For more information see... |
/**
* depostoken.hpp derived from eosio.token.hpp
* @copyright https://github.com/EOSIO/eos/blob/master/LICENSE
*/
#pragma once
#include <eosio/asset.hpp>
#include <eosio/eosio.hpp>
#include <eosio/system.hpp>
#include <eosio/print.hpp>
#include <stable.coin.hpp>
#include <utility>
#include <string>
#include <v... |
/* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; e... |
#include "artifice.hpp"
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <vector>
#include <iomanip>
#include <sstream>
#include <fstream>
//Function for reading contents of a text file to a string
//Used for reading shaders
std::string readText(const std::string& f, con... |
//============================================================================
// 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... |
/* -*- 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 2018 The Fxt authors.
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
#pragma once
#include <string.h>
#include <cmath>
#include <cstdio>
#include <numeric>
#include "features/bm25/bm25.hpp"
#include "features/bose_... |
/////////////////////////////////////////////////////////////////////////////////////
// //
// July 2008 BW mass is limited by "PYTHIA method", by <NAME> and <NAME> //
// ... |
#include "openglwindow.hpp"
#include <imgui.h>
#include <algorithm>
#include <cppitertools/itertools.hpp>
#include <glm/fwd.hpp>
#include <glm/gtx/fast_trigonometry.hpp>
#include "camera.hpp"
// Controle o uso do teclado para controlar o movimento dentro do labirinto
// Teclas UP, DOWN, W, S controlam movimento par... |
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <fstream>
#include <dirent.h>
#include <string.h>
#include <string>
#include <thread>
#include <vector>
#include <algorithm>
#include "hcore.hpp"
using namespace cv;
#define AMOUNT 128000
#define MIN_OBJS_PER_IMAGE 1
#define OBJS_PER_IMG 4... |
#include <GLAD/glad.h>
#include <GLFW/glfw3.h>
#include "stb_image.h"
#include "IMGUI/imgui.h"
#include "IMGUI/imgui_impl_glfw_gl3.h"
#include "Shader.h"
#include "Camera.h"
#include "Model.h"
#include <GLM/glm.hpp>
#include <GLM/gtc/matrix_transform.hpp>
#include <GLM/gtc/type_ptr.hpp>
#include <iostream>
const u... |
// Copyright (c) 2015-2016 <NAME>
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
// http://vittorioromeo.info | <EMAIL>
#include "./utils/dependencies.hpp"
// The following example consists in a particle simulations. All particles are
// massless and colli... |
////////////////////////////////////////////////////////////////////////////
// Module : weapon_manager.cpp
// Created : 02.10.2001
// Modified : 19.11.2003
// Author : <NAME>
// Description : Weapon manager
////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
... |
#include "dbFGrid.h"
#include <iostream>
#include <fstream>
#include <algorithm>
#include <cmath>
#define kColEpsilon .0001f /* measured in columns */
/* ----------------------------------------------------------------------- */
dbFGrid::dbFGrid(unsigned int sampleRate)
{
this->m_sampleRate = sampleRate;
thi... |
/******************************************************************************
** Copyright (C) 1998 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 98/01/12
**
** File: mr_edge.... |
#include "GripperTaskSimulator.hpp"
#include <rw/math/MetricFactory.hpp>
#include <rwlibs/algorithms/StablePose1DModel.hpp>
#include <rwlibs/algorithms/StablePose0DModel.hpp>
#include <algorithm>
#include <vector>
#include "TaskGenerator.hpp"
#define DEBUG cout
using namespace std;
USE_ROBWORK_NAMESPACE;
using name... |
#include "clipping.h"
#include <light_array.h>
#include <float.h>
#include "gjk.h"
#include "support.h"
typedef struct {
vec3 normal;
vec3 point;
} Plane;
static boolean is_point_in_plane(const Plane* plane, vec3 position) {
float distance = -gm_vec3_dot(plane->normal, plane->point);
if (gm_vec3_dot(position, pla... |
/*
* =====================================================================================
*
* Filename: image_service.cc
*
* Description: CTaskImage class definition.
*
* Version: 1.0
* Created: 09/08/2020 10:02:05 PM
* Revision: none
* Compiler: gcc
*
* Aut... |
#include "rip.h"
#include "router.h"
#include "router_hal.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
extern bool validateIPChecksum(uint8_t *packet, size_t len);
extern bool update(bool insert, RoutingTableEntry entry);
extern bool query(uint32_t addr, uint32_t *nexthop, uint32_t... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
// LC57 generic disassembler
#include "emu.h"
#include "lc57d.h"
u32 lc57_disassembler::opcode_alignment() const
{
return 1;
}
#define P std::ostream &stream, const data_buffer &opcodes, u8 opcode, u16 pc
const lc57_disassembler::instruction lc57_disassembler::in... |
/*
ModbusIP_ESP8266.cpp - ModbusIP Library Implementation
Copyright (C) 2014 <NAME>
2017-2018 <NAME> (<EMAIL>)
*/
#include "ModbusIP_ESP8266.h"
ModbusIP::ModbusIP() {
for (uint8_t i = 0; i < MODBUSIP_MAX_CLIENTS; i++)
client[i] = nullptr;
}
void ModbusIP::master() {
}
void ModbusIP::sla... |
#include "GC.h"
#include "llvm-statepoint-utils/dist/llvm-statepoint-tablegen.h"
#include <cstddef>
#include <cstdlib>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cinttypes>
#include <algorithm>
#include <functional>
#include <iostream>
#include <queue>
#include <unordered_ma... |
// ClientSerial.cpp: implementation of the CClientPIC class.
//
//////////////////////////////////////////////////////////////////////
#include "ClientPIC.h"
#include <iostream.h>
#define DEBUG 0
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
///////////////////////... |
// <NAME> - 336CA
#include "Tema1.h"
#include <vector>
#include <iostream>
#include <Core/Engine.h>
#include "Transform2D.h"
#include "Object2D.h"
using namespace std;
Tema1::Tema1()
{
// initialize start and finish
start = false;
finish = false;
// initialize tx and ty (the translation steps)
translateX = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.