text stringlengths 3.08k 22k |
|---|
#include <mpi.h>
#include <iostream>
#include <filesystem>
#include <unordered_set>
#include "coin-or/IpIpoptApplication.hpp"
#include "data_distribution.h"
#include "globals.h"
#include "rank_local_data.h"
#include "sparse_matrix_transfers.h"
#include "trots.h"
#include "test_distrib.h"
#include "trots_entry_trans... |
#include "utils.h"
#include "button.h"
#include "box.h"
#include "pokedex.h"
#include "levelbar.h"
#include "Background.h"
using namespace std;
void openGame(){
}
void resetGame(){
}
void saveGame(){
}
int main(){
//load all variables and objects
srand (time(NULL));
sf::Music music;
if (!music.... |
/*
* Medical Image Registration ToolKit (MIRTK)
*
* Copyright 2013-2017 Imperial College London
* Copyright 2013-2017 <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
*
* ... |
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <unordered_set>
#include <boost/functional/hash.hpp>
#include "Route.h"
#include "TSPHeuristic.h"
using namespace std;
int Route::distinctMacroZones() const {
unordered_set<string> zones;
... |
#include <Arduino.h>
#include <ESPTimeFunc.h>
ESPTimeFunc::ESPTimeFunc(bool haveRTC) {
_haveRTC = haveRTC;
}
bool ESPTimeFunc::begin(int8_t timeOffset, bool isDayLightSaving, String sNtpServerName, const char* sNtpServerName2, const char* sNtpServerName3, bool useRTC, bool allwsSynchRTCfNTP) {
_timeOffset = t... |
//
// OCCAM
//
// Copyright (c) 2011-2018, SRI International
//
// 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, ... |
#include <stdio.h>
#include <h2opus.h>
#include "../common/example_problem.h"
#include "../common/example_util.h"
#include "../common/hmatrix_samplers.h"
#include <h2opus/util/boxentrygen.h>
template <int hw>
void test_construction(HMatrixSampler *sampler, THMatrix<hw> &hmatrix, int max_samples, H2Opus_Real trunc_eps... |
#include "wave.h"
#include "chunk.h"
#include <fstream>
#include <string.h>
#if !__EXCEPTIONS
#define throw std::cerr <<
#endif
typedef struct {
uint16_t wFormatTag;
uint16_t wChannels;
uint32_t dwFrameRate;
uint32_t dwAvgBytesPerSec;
uint16_t wBlockAlign;
uint16_t wBitsPerSample;
} WaveFormat... |
#include "entities.h"
#include "neuralnet.h"
#include "gm.h"
#include <time.h>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <string>
#include <cmath>
#include <iostream>
#include <fstream>
using std::vector;
double fRand(double fMin, double fMax)
{
double f = (double)rand() / RAND_MAX;
return fMin ... |
// Copyright 2016 Husky Team
//
// 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 writi... |
/**
* \file dead_function.cpp
* \author <NAME> <<EMAIL>>
* \date August 16, 2012
*/
#include "rose.h"
#include "string_functions.h"
#include <algorithm>
#include <map>
#include <boost/foreach.hpp>
#include "compass2/compass.h"
using std::string;
using namespace StringUtility;
extern const Compass::Chec... |
/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is d... |
// 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 useful,
... |
//--------------------------------------------------------------------------------------
//
// File: RGBLEDService/main.cpp
//
// Project: m+m
//
// Contains: The main application for a simple m+m service.
//
// Written by: <NAME>; <NAME>
//
// Copyright: (c) 2014 by H Plus Technologies Ltd. and Simon ... |
//
// Created by lebou on 2019-09-08.
//
#include "../include/Map.h"
#include <string>
#include <utility>
#include <vector>
#include <set>
#include <iostream>
using std::string;
using std::vector;
/**
* Map constructor
*
* @param mapTitle the name of the map
* @param ctd the continents data
*/
Map::Map(std::stri... |
#include "hdetector.hpp"
#include "buffer.hpp"
#include "capture.hpp"
#include "filesystem.hpp"
#include "hcore.hpp"
#include "hsocket.hpp"
#include "math.h"
#include "modules.hpp"
#include "mouse.hpp"
#include "workers.hpp"
#include <string.h>
HDetector::HDetector(HCore::HCore *core) : Threadable(Settings::detection.... |
/**
* @file autocomplete.cpp
* @brief Implement autocomplete behaviours
* @author <NAME>
* @note Copyright (c) 2002-2011 <NAME> - http://untidy.net/
*
* Programmer's Notepad 2 : The license file (license.[txt|html]) describes
* the conditions under which this source may be modified / distributed.
*/
#include ... |
#include <Arduino.h>
#include <ros.h>
#include <ros/time.h>
#include <geometry_msgs/Vector3.h>
#include <sensor_msgs/NavSatFix.h>
#include <std_msgs/String.h>
#include <nav_msgs/Odometry.h>
#include <string.h>
#include <Time.h>
#include <DFRobot_sim808.h>
#include <SoftwareSerial.h>
#include <SD.h>
#include <SPI.h>
ro... |
#include "Game.hpp"
//getFullscreenModes()[0]
static const std::string FIRSTSCENE = "test";
//static const std::string FIRSTSCENE = "level1";
Game::Game() : _window(sf::VideoMode::getDesktopMode(),"WhoTookMyHat", sf::Style::Close | sf::Style::Fullscreen) {
_window.setFramerateLimit(FRAMERATE);
_window.setMous... |
#include "CreatorState.h"
#include "Application.h"
#include "Grid.h"
#include "Input.h"
#include "StateMachine.h"
#include "TextureManager.h"
CreatorState::CreatorState(StateMachine* pStateMachine) : State(pStateMachine)
{
// Setting the background colour.
aie::Application* app = aie::Application::GetInstance();
ap... |
//*********************************************************
// Delay_File.cpp - Link Delay Input/Output
//*********************************************************
#include "Delay_File.hpp"
#include "Utility.hpp"
#include "Date_Time.hpp"
#include "Scanf.hpp"
//-------------------------------------------------------... |
#include "stage_2_plotter.h"
#include "digital_filter.h"
/**
* Parks-McClellan FIR coefficients:
* - 0-1 Hz break frequencies
* - 0.001 ripple deviation
* - LPF [1 0] coefficients
* - Sampled at ~30 Hz
*
* Filter coefficients generated with MATLAB.
*/
static const std::vector<double> PM_LPF_COEFFS = {... |
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <cctype>
#include <iostream>
#include <iterator>
#include <stdio.h>
#include <iomanip>
#include "hmatrix.h"
using namespace std;
using namespace cv;
#define PIXELS_PER_M 60.0
struct poi... |
#include <algorithm>
#include <cassert>
#include <fstream>
#include <iostream>
#include <vector>
#include "graph.h"
#define INPUT_FILENAME "input-day10.txt"
const std::vector<int> example_adapters1{16, 10, 15, 5, 1, 11, 7, 19, 6, 12, 4};
const std::vector<int> example_adapters2 \
{28, 33, 18, 42, 31, 14, 46, ... |
// GMsg_RcvGoalDetails.cpp -*- C++ -*-
// $Id: GMsg_RcvGoalDetails.cpp,v 1.10 1998-02-04 19:03:35-08 jason Exp $
// Copyright 1996-1997 Lyra LLC, All rights reserved.
//
// message implementation
#ifdef __GNUC__
#pragma implementation "GMsg_RcvGoalDetails.h"
#endif
#ifdef WIN32
#define STRICT
#include "unix.h"
#incl... |
#include "KinectBlobTracker.h"
KinectBlobTracker::KinectBlobTracker()
: bInfrared("Grab Infrared", false)
, bVideo("Grab Video", true)
, bTexture("Use Texture", true)
, bDepthRegistration("Depth Registration", false)
, deviceId("ID", -1, -1,10)
, serial("Serial", "")
, nearClip("Near Depth ... |
//##################################################################################################
//
// Shell engine.
//
//##################################################################################################
#include "shell.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
// uClibc/stdi... |
/*
* Copyright (C) 2015-2021 Swift Navigation Inc.
* Contact: https://support.swiftnav.com
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ... |
// smallpt, a Path Tracer by <NAME>, 2008
//
// Modified by <NAME>
// For the original code, see github.com/munificient/smallpt
// For the original license, see smallpt.LICENSE.txt
#include <math.h> // smallpt, a Path Tracer by <NAME>, 2008
#include <stdio.h> // Remove "-fopenmp" for g++ version < 4.2
#inc... |
#include "ttc.hpp"
#ifndef POSIXINO
#include <TM1637Display.h>
#endif
#define SEG_DOT 0x80
// A
// ---
// F | | B *
// -G- DOT
// E | | C *
// ---
// D
const uint8_t welcomeSegments[] = {
SEG_G | SEG_E | SEG_D,
SEG_E | SEG_G | SEG_C,
SEG_F | SEG_G | SEG_E | SEG_D... |
#include "float_math.h"
#include "ConvexBuilder.h"
#include "meshvolume.h"
#include "bestfit.h"
#include <assert.h>
#include "cd_hull.h"
#include "fitsphere.h"
#include "bestfitobb.h"
unsigned int MAXDEPTH = 8;
float CONCAVE_PERCENT = 1.0f;
float MERGE_PERCENT = 2.0f;
CHull::CHull(const ConvexDecomposition::ConvexRe... |
/*
LICENSE
-------
Copyright 2005 Nullsoft, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions a... |
#include "CameraComponent.h"
#include "Carbonite/Scene/ECS.h"
#include "TransformComponent.h"
CameraComponent::CameraComponent(float fov, float near, float far)
: m_Fov(fov),
m_Near(near),
m_Far(far),
m_Aspect(1.0f),
m_RecalculateViewMatrix(true),
m_RecalculateProjectionMatrix(true),
... |
#include <iostream>
#include <vector>
#include <iterator>
#include <numeric>
#include <random>
#include <execution>
template<typename T>
std::ostream &operator<<(std::ostream &s, const std::vector<T> &v) {
s << '[';
if (!v.empty()) {
std::copy(v.cbegin(), v.cend() - 1, std::ostream_iterator<T>(s, ", ")... |
#include "Hero.hpp"
#include "Potion.hpp"
/* Constructor */
Hero::Hero(string Name,int Strength,int Dexterity,int Agility,int MaxStrength,int MaxDexterity,int MaxAgility)
:Living(Name),strength(Strength),dexterity(Dexterity),
agility(Agility),maxStrength(MaxStrength),maxDexterity(MaxDexterity),maxAgility(MaxAg... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
// Copyright (c) 2018, <NAME>. All rights reserved.
// Use of this source code is governed
// by a MIT license that can be found in the LICENSE file.
/*
* merge_bwt.cpp
*
* Created on: Nov 26, 2018
* Author: nico
*/
#include <iostream>
#include "internal/bwt_merger.hpp"
#include <unistd.h>
#include "inter... |
#include <cassert>
#include <cstdio>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include <BitStringFinder.hpp>
#include <common.hpp>
#include <ParallelBZ2Reader.hpp>
namespace
{
std::ios_base::seekdir
toSeekdir( int origin )
{
switch ( origin )
{
case SEEK_SET: return std::ios_base::beg;... |
/// ---------------------------------------------------------------------------
/// @section LICENSE
///
/// Copyright (c) 2016 Georgia Tech Research Institute (GTRI)
/// All Rights Reserved
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial po... |
#include <fcntl.h>
#include <unistd.h>
#include <cerrno>
#include <cstring>
#include <sys/types.h>
#include <sys/mman.h>
#include <filesystem>
#include "utils/file.hh"
#include "ext/brotli.hh"
#include "ext/xz.hh"
#include "ext/bzip2.hh"
#include "ext/gzip.hh"
#include "ext/date.hh"
// ------------------------------... |
#include "ukf.h"
#include <iostream>
#include "Eigen/Dense"
/**************
* constructor *
**************/
UKF::UKF():
n_x(5), // state size
n_aug(7), // augmented state size
n_z_rdr(3), // radar measurement space size
n_z_lsr(2) // laser measurement space size
{
// miscellaneous variab... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <map>
#include <ctime>
#include <sstream>
#include <algorithm>
#include <boost/thread/thread.hpp>
#include <ros/ros.h>
#include ... |
// Author: <NAME> <<EMAIL>>
//
// Copyright (c) 2018, IBM Corporation, All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file.
#include "common.h"
#include "cluster/cluster.h"
#include "cluster/node.h"
#include "scheduler/oracle.h"
#include <str... |
#include "../utils/platform.hpp"
#include "./easypay_backend.hpp"
#include "../utils/logger.hpp"
#include "./https_client/https_client.hpp"
#include "../utils/cryptlite/sha256.h"
#include "../io/iocontext_impl.hpp"
#include <iostream>
#include <ctime>
#include <iomanip>
#include <time.h>
using namespace JetBeep;
using... |
// Copyright <NAME> 2018. Distributed under the MIT License.
#ifdef _MSC_VER
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdint.h>
#include <math.h>
#include <time.h>
#include <time.h>
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
... |
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Jefferson Science Associates LLC Copyright Notice:
// Copyright 251 2014 Jefferson Science Associates LLC All Rights Reserved. Redistribution
// and use in source and binary forms, with or without modification, are ... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
* Modified my Sim K
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
u... |
// try this, e.g. with roslaunch stdr_launchers server_with_map_and_gui_plus_robot.launch
// or: roslaunch cwru_376_launchers stdr_glennan_2.launch
// watch resulting velocity commands with: rqt_plot /robot0/cmd_vel/linear/x (or jinx/cmd_vel...)
//intent of this program: modulate the velocity command to comply with... |
// Copyright 2022 The Chromium OS 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 <sysexits.h>
#include <memory>
#include <numeric>
#include <unordered_set>
#include <vector>
#include <base/logging.h>
#include <base/threadi... |
#if defined(_MSC_VER)
#define NOMINMAX
#endif
#include <iostream>
#include <thread>
#include <chrono>
#include <atomic>
#include <cstddef>
#include <cstdlib>
#include <ctgmath>
#include <dirent.h>
#ifdef _MSC_VER
#include <direct.h>
#define getcwd _getcwd
#else
#include <unistd.h>
#endif // _MSC_VER
#include <omp.... |
// SPDX-License-Identifier: BSD-3-Clause AND Apache-2.0
/*
Copyright (c) 2018, Regents of the University of California
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 mu... |
// copyright (c) 2011-2014 the dzcoin core developers
// distributed under the mit software license, see the accompanying
// file copying or http://www.opensource.org/licenses/mit-license.php.
//
// wraps dumb protocol buffer paymentrequest
// with some extra methods
//
#include "paymentrequestplus.h"
#include "uti... |
//===--- SemanticARCOpts.cpp ----------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include <mex.h>
#include <math.h>
#include <vector>
using namespace std;
/**
A struct to represent 2-D pixel coordinates.
*/
typedef struct
{
double x;
double y;
} Pixel;
/**
A struct to represent the size of an image.
*/
typedef struct ImageSize
{
int dimX;
int dimY;
int numel() const
... |
/*Copyright 2021 Huawei Technologies Co., Ltd
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, ... |
#include "./vodus_video_params.hpp"
const char *string_view_as_cstr(String_View sv)
{
char *cstr = (char *) malloc(sv.count + 1);
if (!cstr) return cstr;
memcpy(cstr, sv.data, sv.count);
cstr[sv.count] = '\0';
return cstr;
}
void print1(FILE *stream, Output_Type output_type)
{
switch (output_t... |
#include <Poco/Net/ServerSocket.h>
#include <Poco/Net/HTTPServer.h>
#include <Poco/Net/HTTPRequestHandler.h>
#include <Poco/Net/HTTPRequestHandlerFactory.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/Net/HTTPServerRequest.h>
#include <Poco/Net/HTTPServerResponse.h>
#include <Poco/Util/ServerApplication.h>... |
/*
* Copyright (c) 2000,2002,2011-2012,2014 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file ... |
/*
<NAME>' Kubacki 2017
https://github.com/condzi
*/
/*
Testing playground.
*/
#include <iostream>
#include <memory>
#include <ECS/ECS.hpp>
#include "example/Time/Clock.hpp"
#include "example/prefabs/Block.hpp"
namespace unitTest
{
struct position final
{
float x, y;
position( float xx = 0.0f, float yy = ... |
#include "ros/ros.h"
#include <string.h>
#include <vector>
#include <tf2_ros/transform_listener.h>
#include <geometry_msgs/TransformStamped.h>
#include <geometry_msgs/PoseStamped.h>
#include <nav_msgs/Odometry.h>
#include <sensor_msgs/LaserScan.h>
#include <tf2_msgs/TFMessage.h>
#include "std_msgs/String.h"
#include "g... |
/*
* 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... |
/**
* @file NetworkConnectionPosix.cpp
*
* This module contains the POSIX implementation of the
* SystemAbstractions::NetworkConnection::Impl class.
*
* Copyright (c) 2016 by <NAME>
*/
#include "../NetworkConnectionImpl.hpp"
#include "NetworkConnectionPosix.hpp"
#include <algorithm>
#include <arpa/inet.h>
#inc... |
#include "three_step_phase_shift.h"
#include <cstdio>
ThreeStepPhaseShift::ThreeStepPhaseShift(
IplImage *imgPhase1
, IplImage *imgPhase2
, IplImage *imgPhase3):
imgPhase1(imgPhase1),
imgPhase2(imgPhase2),
imgPhase3(imgPhase3),
mask(0),
process(0)
{
width = imgPhase... |
// This is basic/dbgl/algo/dbgl_intersect.cxx
//:
// \file
#include <vcl_cmath.h>
#include <vcl_iostream.h>
#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_distance.h>
#include <vgl/vgl_sphere_3d.h>
#include <vgl/vgl_lineseg_test.h>
#include <vgl/vgl_cylinder.h>
#include <vgl/vgl_intersection.h>
#include <vgl/vgl_clos... |
#include "SpadeAlgorithm.h"
#include <algorithm>
#include <chrono>
#include <execution>
#include "SequenceData.h"
/**
* Run whole SPADE algorithm.
* Discover frequent sequenced matching provided minSupport condition.
* Their support needs to be greater than minSupport.
*/
bool SpadeAlgorithm::run(int minSupport)... |
/*
Reality plug-in
Copyright (c) Pret-a-3D/<NAME> 2012. All rights reserved.
This is the Reality executable launcher, aka the main() function
*/
#include <QtGui/QApplication>
#include <QProxyStyle>
#include <QDate>
#include <QVariant>
#include "ReAppVersion.h"
#include "ReMainWindow.h"
#include "ReDRM.h"
#... |
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <tf_conversions/tf_eigen.h>
#include <eigen_conversions/eigen_msg.h>
#include <sensor_msgs/JointState.h>
#include <velvet_msgs/GripperState.h>
#include <ft_msgs/FTArray.h>
#include <geometry_msgs/Transform.h>
#include <experiment_console/ExperimentResult... |
/*
Name: <NAME>
Date: 2014-02-03
Homework #: 02
Source File: Homework 02.cpp
Class: C-201 MW 1000
Action: This program asks the user to input a sentence, then replaces any instance of the word
"hell" with the word "heck", matching case and ignoring matches inside words. It can also
be modified ... |
/*
* Compute the probability of non-zero fitness in the fitness function
* number 4. This computes the value of the relation given in
* paper/combinatorics/combinatorics.tex/pdf for a given number of
* genes supplied on the command line.
*/
#include <iostream>
#include <fstream>
#include <sstream>
#define N_Gene... |
#include <memory>
#define BOOST_PYTHON_MAX_ARITY 24
#include <boost/python.hpp>
#include <boost/python/stl_iterator.hpp>
#include <onmt/Tokenizer.h>
#include <onmt/BPE.h>
#include <onmt/SentencePiece.h>
namespace py = boost::python;
template <typename T>
static std::vector<T> to_std_vector(const py::object& iterabl... |
#include<bits/stdc++.h>
// g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v) v.begin(),v.e... |
#include "assert.h"
#include "ctype.h"
#include "float.h"
#include "math.h"
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "stdarg.h"
#include "time.h"
#include "algorithm"
#include "numeric"
#include "functional"
#include "utility"
#include "bitset"
#include "vector"
#include "list"... |
/*
* Copyright (c) 2016 Inria and University Pierre and <NAME>
* All rights reserved.
*/
#include "common.hpp"
#include "ExGEMV.Launcher.hpp"
////////////////////////////////////////////////////////////////////////////////
// OpenCL launcher for bitonic sort kernel
//////////////////////////////////////////////... |
#include "TrackingTools/GeomPropagators/interface/HelixBarrelPlaneCrossingByCircle.h"
#include "TrackingTools/GeomPropagators/src/RealQuadEquation.h"
#include "TrackingTools/GeomPropagators/interface/StraightLinePlaneCrossing.h"
#include "DataFormats/GeometrySurface/interface/Plane.h"
#include "DataFormats/Math/interfa... |
// Include
#include "CGenericPhysics.h" // Generic Physics Class Header File
// Constructor
CGenericPhysics::CGenericPhysics( ) : Body(0), Geom(0)
{
}
// Destructor
CGenericPhysics::~CGenericPhysics( )
{
if ( Body )
{
dBodyDestroy( Body );
Body = 0;
}
if ( G... |
#include <opencv2/opencv.hpp>
//#include <opencv2/nonfree/nonfree.hpp>
#include <opencv2/xfeatures2d/nonfree.hpp>
/*
getPerspectiveTransform ->needs 4 points, based on SVD
findHomography -> N points, based on RANSAC and SVD
perspectiveTransform -> Performs the Homography matrix transformation on points
warpPerspecti... |
/******************************************************************************
* 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, includi... |
/* -------------------------------------------------------------------------
*
* rewriteSupport.cpp
*
*
* Portions Copyright (c) 2020 Huawei Technologies Co.,Ltd.
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
... |
#include "Fuji.h"
#include "threads/renderQueueWorker.h"
#include "utilities/logging.h"
#include "utilities/tools.h"
#include "utilities/pystring.h"
#include "../mtfu_common/mtfu_renderGlobals.h"
#include "../mtfu_common/mtfu_mayaObject.h"
#include "../mtfu_common/mtfu_mayaScene.h"
#include "src/fj_scene_interface.h"... |
/*=================================================================
* substituteToNormValues.cpp - substitute sorted values to mean values in quantilenorm_simple
*
* substituteToNormValues(outputdir, mean_file, in_file_list, out_file_list)
*
* outputdir(char): directory to be stored out file
* mean_file(char)... |
/*
* Copyright (C) 2017 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS AL... |
#include <map>
#include <string>
#include <ostream>
#include <stdexcept> //For error-throwing
#include <memory> //For smart pointers
#include <set>
#include "ExternalModules/json.hpp"
using json = nlohmann::json;
#include "ImpuritySpecies.hpp"
#include "sharedFunctions.hpp"
#include "RateCoefficient.hpp"
using namesp... |
#include <chrono>
#include <iostream>
#include <string>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/videoio.hpp>
#include <librealsense2/rs.hpp>
#include <librealsense2/rsutil.h>
#include <C:/Program Files/Cubemos/SkeletonTracking/include/cubemos/engine... |
// ┌──────────────────────────────────────────────────────────────────┐
// │ Camera │
// └──────────────────────────────────────────────────────────────────┘
#pragma once
#include <vulkan/vulkan.hpp>
#include "Pluto/Tools/StaticFactory.hxx"
#include "Pluto/Ca... |
// class DungeonCaves
//
// Cavern system, by <NAME>
//
//
#include "DungeonCaveSystem.h"
#include "core/math/random/Random.h"
void Terrain::DungeonCaveSystem::Initialize ( const RangeVector & seedposition )
{
m_gentable.rarity = 0.1f;
m_gentable.difficulty = 0.1f;
m_gentable.itemquality = Random.Range( 0, 1 );
... |
#include <algorithm>
#include <iostream>
#include <list>
#include "reach.h"
int stack[10000];
void print_stack(size_t depth) {
for (size_t i = 0; i < depth && i < 10000; ++i) {
cout << stack[i] << "-";
}
if (depth < 10000) {
cout << stack[depth] << endl;
}
}
struct DFSData {
DFSD... |
/*
* 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:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and... |
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... |
#if __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#endif
#include <iostream>
#include <vector>
#include <math.h>
using namespace std;
#include "Particle.h"
// rendering projection parameters
const static int WINDOW_WI... |
#include "inttype.h"
#include "../numberhelpers.h"
//Integer type
namespace {
//Parses a 64 bits integer in the given base
std::int64_t parseInt64(std::string str, int base) {
#if defined(_WIN64) || defined(__MINGW32__)
return std::stoll(str, nullptr, base);
#else
return std::stol(str, nullptr, base);
#end... |
// ============================================================================
// Copyright 2018 <NAME> and <NAME>
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain ... |
#include "list.h++"
#include <dirent.h>
#include <sys/types.h>
#include <stddef.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <libxftp/commondomfeatures.h++>
using namespace xftp;
using namespace server;
using namespace xercesc;
using namespace streamcon;
void MsgList::ParseNodes(DOMElemen... |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*
* @file EmbeddingData.cpp
*
* Author: <NAME>
*/
#include <tiger_cpp/EmbeddingData.h>
#include <ti... |
// This program is free software: you can use, modify and/or redistribute it
// under the terms of the simplified BSD License. You should have received a
// copy of this license along this program. If not, see
// <http://www.opensource.org/licenses/bsd-license.html>.
//
// Copyright (C) 2018, <NAME> <<EMAIL>>
// Copyri... |
#include <cstring>
#include <cstdlib>
#include <array>
#include <string>
#include <iostream>
#include <sstream>
#include <vector>
#include "encryption_transformer.hpp"
#include <realm/sync/noinst/command_line_util.hpp>
#include <realm/util/base64.hpp>
#include <realm/util/file.hpp>
#include <realm/util/load_file.hpp... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 <NAME> and Fillwave community members
*
* 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 limitat... |
#include<iostream>
#include<stdio.h>
#include<limits>
#define blockcount 5
#define addressstart 3000
using namespace std;
struct fragment{
int startaddress, endaddress;
};
struct memblock{
int no;
int sz;
int currentpart=0;
fragment parts[100];
int startAdd, endAdd;
int tempstartadd;
char processes[100];
};
... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, <NAME> & Freie Universität Berlin
// Copyright (c) 2016-2020, <NAME> & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of the 3-clause B... |
// Copyright (C) 2019. Huawei Technologies Co., Ltd. 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,... |
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <map>
#include <utility>
#include <chrono>
#include <ctime>
#include <stdexcept>
#include <cmath>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <gdal_priv.h>
#include <gdal_utils.h>
#include <CloudTools... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.