text stringlengths 3.08k 22k |
|---|
#include "Kernelizer.h"
#include "MinimumFillIn.h"
#include "SetFunctions.h"
#include <queue>
#include <iterator>
#include <algorithm>
#include "LexBFS.h"
static bool set_size_comparison(set<int> a, set<int> b) {
return a.size() < b.size();
}
Kernel Kernelizer::phase1(AdjacencyList& graph) {
Kernel kernel;
kern... |
#include "../include/includes.h"
#include "../include/Resource.h"
#include "../include/Mesh.h"
#include "../include/utils.h"
#include "../include/Material.h"
#include "../include/Model.h"
#include <algorithm>
#include <cmath>
#include <stdio.h>
Model::Model() {
mtl* mat = new mtl();
init_mat(mat);
this->materials["... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<bam.h>
#include<map>
#include<faidx.h>
#include<vector>
#include<string>
#include<sstream>
#include<fstream>
#define WHERE fprintf(stderr,"%d\n",__LINE__)
using namespace std;
struct point
{
string chro;
int pos;
char ref;
vector<... |
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <algorithm>
#include <exception>
#include <map>
#include "misc.h"
#include "collision.h"
// Angles are dpair (cos t, sin t)
// PosP
PosP::P... |
#include <cstdio>
#include <cstdlib>
#include <string>
#include <unordered_map>
#include <filesystem>
#include <regex>
#include <functional>
#include <optional>
#include <thread>
#include <chrono>
#include <exception>
#include <execution>
#include <mutex>
#include "Arguments.h"
#include "Convert.h"
#include "File.h"
... |
#include <string>
#include <ostream>
#include <fstream>
#include <iostream>
#include "settingsParser.h"
#include "topology.h"
#include "errorCode.h"
#include "linkTypeMap.h"
#include "ns3Writer.h"
using namespace std;
void Ns3Writer::writeScript(yntdl::Topology *top, std::string scriptLoc){
ofstream str;
cou... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <string>
#include <iostream>
#include <queue>
#include <tuple>
#include <vector>
#include <queue>
#include "read_raw.h"
#define N 512
using namespace std;
Array2d<bool> shrink(Array2d<bool> mask) {
Array2d<bool> nmask(mask.dim[0],... |
#include <iostream>
#include "connection.hpp"
#include "connection_manager.hpp"
tcp_connection::tcp_connection(std::shared_ptr<asio::io_service> io_service, connection_manager& manager)
: io_service_(io_service)
, socket_(*io_service)
, connection_manager_(manager)
, socket_strand_(*io_service)
, ... |
/*
CADET - Center for Advances in Digital Entertainment Technologies
Copyright 2011 Fachhochschule Salzburg GmbH
http://www.cadet.at
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://... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
#include "kinectgrabber.h"
#include "pclviewer.h"
#include "functions.h"
#define sizemat 10
#include <QApplication>
#include <QMainWindow>
#include <iostream>
#include <opencv/cv.h>
#include <opencv2/opencv.hpp>
#include <opencv2/video/video.hpp>
#include <opencv/highgui.h>
#include <OpenNI.h>
#include <o... |
#include <iostream>
#include <cstring>
#include <PDBClient.h>
#include <URLRankMultiSelection.h>
#include <DistinctProjection.h>
#include <Link.h>
#include <LinkScanner.h>
#include <RankedUrlWriter.h>
#include <RankedUrlScanner.h>
#include <LinkPartition.h>
#include <RankPartition.h>
#include <JoinRankedUrlWithLink.h>... |
// smooth: Lie Theory for Robotics
// https://github.com/pettni/smooth
//
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
//
// Copyright (c) 2021 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the... |
#include "Globals.h"
#include "Application.h"
#include "C_Camera.h"
//#include "Gizmo.h"
C_Camera::C_Camera(GameObject* gameobject, Component_Type type) : Component(type, gameobject)
{
name = "Camera";
frustum.type = FrustumType::PerspectiveFrustum;
frustum.pos = float3(0, 0, 0);
frustum.front = float3::unitZ;
fr... |
#define ESP32
#define WIFI_LoRa_32_V2
#define ARDUINO_RUNNING_CORE 1
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "Arduino.h"
#include <pins_arduino.h>
#include <heltec.h>
#include <WiFi.h>
#include "HTTPClient.h"
// Wifi details & server for uploads
#define SERVER_URL "http://192.168.0.150:8000... |
/**
* FCNeuralNet
* Created by Laivins, Josiah https://josiahls.github.io/ on 2019-03-08
*
* This software is provided 'as-is', without any express or implied warranty.
*
* In no event will the author(s) be held liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to... |
#include <math.h>
#include <uWS/uWS.h>
#include <iostream>
#include <string>
#include "json.hpp"
#include "PID.h"
// for convenience
using nlohmann::json;
using std::string;
// For converting back and forth between radians and degrees.
constexpr double pi() { return M_PI; }
double deg2rad(double x) { return x * pi() ... |
#include "spherical_harmonics.h"
#include <future>
constexpr auto PI = 3.1415926535897932384626433832795;
constexpr auto INV_PI = 1.0 / PI;
namespace
{
double factorial(size_t n, size_t d = 1)
{
d = std::max(size_t(1), d);
n = std::max(size_t(1), n);
double r = 1.0;
... |
#include "gtest/gtest.h"
#include "wali/wfa/WFA.hpp"
#include "wali/ShortestPathSemiring.hpp"
#include "fixtures.hpp"
#define NUM_ELEMENTS(array) (sizeof(array)/sizeof((array)[0]))
using namespace wali::wfa;
static const WFA fas[] = {
LoopReject().wfa,
LoopAccept().wfa,
EvenAsEvenBs().wfa,
EpsilonT... |
// Copyright © 1996-2018, Valve Corporation, All rights reserved.
//
// Purpose: Serialization/unserialization buffer.
#include "tier2/utlstreambuffer.h"
#include "filesystem.h"
#include "tier2/tier2.h"
// default stream chunk size
constexpr int kDefaultStreamChunkSize{16 * 1024};
CUtlStreamBuffer::CUtlStreamBuffer... |
# include <gsl/gsl_rng.h>
# include <ctime>
# include <cmath>
# include <memory>
# include <algorithm>
# include <tclap/CmdLine.h>
# include <ahFunctional.H>
# include <ah-string-utils.H>
# include <ah-stl-utils.H>
# include <htlist.H>
# include <pvt-units.H>
using namespace std;
using namespace TCLAP;
using name... |
//////////////////////////////////////////////////////////////////////
//
// WorkerRenderer.cpp - Implements the renderer on the worker side
//
// Author: <NAME>
// Date of Birth: December 7, 2002
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
////////////////////... |
#include "config.hpp"
#include "vfs.hpp"
#include <iostream>
#include <fstream>
#include <algorithm>
#include "stringutils.hpp"
#if defined(PLATFORM_WINDOWS)
# include <windows.h>
# include <Winerror.h>
# include <shlobj.h>
#else
# include <dirent.h>
# include <sys/stat.h>
# if defined(PLATFORM_OSX)
# ... |
#include "utils.hpp"
#ifdef _WIN32
#include <Windows.h>
#else
#include <unistd.h>
#endif
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cstdio>
#include <ctime>
#include <fstream>
#include <iomanip>
#include <iterator>
#include <limits>
#include <math.h>
#include <random>
#include <sstream>
#includ... |
//
// Created by wangrl on 2021/3/2.
//
/**
* API example for audio decoding and filtering.
*/
extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavfilter/buffersink.h>
#include <libavfilter/buffersrc.h>
#include <libavutil/opt.h>
}
static const char* FILTER_DESCR = "aresam... |
#include "scene.h"
#include "rotation.h"
#include <cpptoml/cpptoml.h>
#include <iostream>
#include <unordered_map>
std::unique_ptr<RGB2Spectral> Scene::rgb2spectral = nullptr;
template <typename T>
inline T get_value_required(const std::shared_ptr<cpptoml::table> &table,
const std::string ... |
/* Tool for Mac OS X builds to patch .dylib files so they always load relative
to the main executable. This was once done using XCode tool install_name_tool
but that tool succumbed to a debilitating neurotic break due to excess worrying
over whether or not a __LINKEDIT segment is completely occupied by link e... |
//
// WifiMgr.cpp
// Coop2
//
/*****************************************************************************
MIT License
Copyright (c) 2020 <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 So... |
#include <random>
#include <GameMap.h>
#include <Rendering/TextureAtlas.h>
#include <Rendering/Tileset.h>
using namespace Sourcehold::Game;
#define DIM 160
GameMap::GameMap(std::shared_ptr<GameManager> man) :
EventConsumer<Keyboard>(man->GetHandler()),
EventConsumer<Mouse>(man->GetHandler()),
menubar(ma... |
/*
* Distributed under our modified Boost Software License.
* Version 1.0 (see accompanying file LICENSE)
*/
/* 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 https://mozilla.org/MPL/2.0/. */
... |
/*
* nghttp2 - HTTP/2 C Library
*
* 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, ... |
//
// File: test_distirbutions.cpp
// Created by: <NAME>
// Created on: Fri Jun 8 20:54 2012
//
/*
Copyright or © or Copr. Bio++ Development Team, (November 17, 2004)
This software is a computer program whose purpose is to provide classes
for numerical calculus. This file is part of the Bio++ project.
This software ... |
/*************************************************************************/
/* audio_effect_spectrum_analyzer.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
extern "C"
{
#include "wpa_auth_multi.h"
}
#include <array>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <iomanip>
#include <iostream>
#include <mutex>
#include <shared_mutex>
#include <sstream>
#include <thread>
#include <vector>
extern "C"
{
// clang-format off
#include "utils/incl... |
// Copyright (c) 2014-2019, The Monero 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
/... |
#include "common.h"
#include <iostream>
#include <type_traits>
#include <iomanip>
#ifdef FIXED_WG_SIZE
#define WG_SIZE_ATTR(F) cl::sycl::attribute<cl::sycl::reqd_work_group_size<FIXED_WG_SIZE>>((F))
#else
#define WG_SIZE_ATTR(F) (F)
#endif
//using namespace cl::sycl;
namespace s = cl::sycl;
template<typename T, bo... |
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <common/basic_utils.h>
#include "tcp_var.h"
#include <stddef.h>
#include <common/Network/Packet/UdpHeader.h>
#include <common/captureFile.h>
#include "utl_mbuf.h"
CUdpStats::CUdpStats(uint16_t num_of_tg_ids) {
Init(num_of_tg_ids);
}
CUdpStats::~C... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
// TEAM SWINBURNE - TS19-20 Retrofit
// BRAKE MODULE
// <NAME> & <NAME> & <NAME>
//-----------------------------------------------
//Pins
//5: MOSI
//6: MISO
//7: SCK
//8: GPIO
//9: SDA/TX - CAN1 RX
//10: SCL/RX - CAN1 TX
//11: MOSI2
//12: MISO2
//13: SCK/TX
//14: RX
//15: ADC1 - BOTS OK
//16: A... |
/*
* quadtree.cpp
* Implementation of a quadtree in two dimensions + Barnes-Hut algorithm for t-SNE.
*
* Created by <NAME>.
* Copyright 2012, Delft University of Technology. All rights reserved.
*
*/
#include <math.h>
#include <float.h>
#include <cblas.h>
#include <stdlib.h>
#include <stdio.h>
#include "qua... |
#include "AssetInfoHandler.h"
#include "ConventionAgentUtil.h"
#include <Engine/Blueprint.h>
#include <Materials/Material.h>
#include <FileHelper.h>
#include <Json.h>
AssetInfoHandler::AssetInfoHandler()
{
GenerateInfo();
}
AssetInfoHandler::AssetInfoHandler(FString _Path)
{
if (!LoadInfoFromFile(_Path)) {
Genera... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
/*
MIT License
Copyright (c) 2021 Forschungsz<NAME> / <NAME>.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
... |
// Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include "reductions.h"
#include "cb_algs.h"
#include "rand48.h"
#include "bs.h"
#include "gen_cs_example.h"
#include "expl... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
#include "stdafx.h"
#include "controller_psy_aura.h"
#include "controller.h"
#include "../../../actor.h"
#include "../../../level.h"
#include "../../../CameraEffector.h"
#include "../../../ActorEffector.h"
CPPEffectorControllerAura::CPPEffectorControllerAura(const SPPInfo &ppi, u32 time_to_fade, const ref_soun... |
#include "AwesomeNode.h"
const int AwesomeNode::LINE_SIZE_THRESHOLD = 4;
USING_NS_CC;
bool AwesomeNode::init() {
return DrawNode::init();
}
void AwesomeNode::drawTriangle(const Vec2 &p1, const Vec2 &p2, const Vec2 &p3,
const Color4F &color1, const Color4F &color2,
... |
/*
* 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 ma... |
//===- R600MCCodeEmitter.cpp - Code Emitter for R600->Cayman GPU families -===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//===-- MemoryOpRemark.cpp - Auto-init remark analysis---------------------===//
//
// 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) 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... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012... |
#include "action.h"
#include "fight.h"
#include "npc.h"
#include "saving.h"
#include "shop.h"
#include <iomanip>
#include <iostream>
#include <stdlib.h>
#include <thread>
// Include conio for Windows and a web version of the code for Mac and Linux
// As conio is a library only work in Windows system
#if defined _WIN32... |
/*
Copyright (c) 2017-2021,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "Clone.hpp"
#include "../application_api/Filters.hpp"
#incl... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "DecodeFile.h"
#include "SampleCode.h"
#include "SkAnimTimer.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
#inclu... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "common.hh"
#include <arpa/inet.h>
#include <boost/chrono.hpp>
#include <boost/optional.hpp>
#include <cassert>
#include <cstring>
#include <dmtr/annot.h>
#include <dmtr/latency.h>
#include <dmtr/libos.h>
#include <dmtr/libos/mem.h>
#i... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**************************************************************************************************
*** This file was autogenerated from GrDualIntervalGradientColorizer.fp; d... |
/*
* Copyright 2020 Google Inc.
*
* 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;
* r... |
#include "dlr_treelite.h"
#include <cmath>
#include <cstring>
#include <fstream>
using namespace dlr;
// not used (was used in SetupTreeliteModule)
std::string GetVersion(const std::string& json_path) {
std::ifstream file(json_path);
bool colon_flag = false;
bool quote_flag = false;
std::string version = ""... |
////////////////////////////////////////////////////////////////////////////////
// //
// This file is part of NCrystal (see https://mctools.github.io/ncrystal/) //
// ... |
/*
Copyright (c) 2013-2019, <NAME>
Copyright (c) 2016, 2018, <NAME>
Copyright (c) 2018, <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... |
// Scintilla source code edit control
/** @file LexDiff.cxx
** Lexer for diff results.
**/
// Copyright 1998-2001 by <NAME> <<EMAIL>>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>... |
/* Copyright 2018 <NAME> (<EMAIL>)
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
*... |
/* ************************************************************************
* Copyright 2013 Advanced Micro Devices, 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... |
//
// Created by <NAME> on 2016/05/15
// Copyright 2013-2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "GLTexture.h"
#include <NumericalConstants.h>
#include "GLTextureTransfer.h... |
/**********
This library 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; either version 3 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This librar... |
//---------------------------------------------------------------------------//
// //
// PDFR Encoding implementation file //
// //
... |
//=======================================================================
// Authors: <NAME> and <NAME>
// Chapter 2 - Simple OpenGL Primitives Drawing Demo (Sinusoid)
// Copyrights & Licenses:
//========================================================================
//GLFW library for creating OpenGL content and man... |
/*
* Event.cpp
* DispatchProcessingDemo
*
* Created by <NAME> on 9/17/09.
* Copyright 2009 FNAL. All rights reserved.
*
*/
#include <assert.h>
#include <iostream>
#include <cstdio>
#include <cstring>
#include <atomic>
#include <exception>
#include "Event.h"
#include "Producer.h"
#include "ProducerWrapper.h"... |
//
// Created by legend on 3/18/20.
//
#include "iostream"
#include "World.h"
#include <cmath>
#include <algorithm>
#include <thread>
#include <random>
#include "Vertex.h"
World::World(int w, int h, Texture& t, int m, int s) : texture(t) {
width = w;
height = h;
maxBounce = m;
spp = s;
sppRt = stat... |
/***************************************************************************
<NAME>
(c) 1984 Technos Japan (Licensed by Data East)
Driver by <NAME> (<EMAIL>) 1999/10/04
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
unsigned char *ssozu... |
/* Copyright (C) 2010-2020 by Arm Limited. All rights reserved. */
#include "ConfigurationXMLParser.h"
#include <cstdlib>
#include <memory>
static const char TAG_CONFIGURATIONS[] = "configurations";
static const char TAG_CONFIGURATION[] = "configuration";
static const char TAG_SPE[] = "spe";
static const char ATTR_... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "VRPNFlystickActor.h"
#include "DrawDebugHelpers.h"
#include "CaveGameModeBase.h"
#include "Engine/StaticMeshSocket.h"
#include "FlystickManipulatable.h"
#include "Kismet/KismetMathLibrary.h"
#include "Net/UnrealNetwork.h"
... |
/*
* Copyright (c) 2015, <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 condition... |
#include "nanocv/nanocv.h"
#include "nanocv/sampler.h"
#include "nanocv/tabulator.h"
#include "nanocv/measure.hpp"
#include "nanocv/accumulator.h"
#include "nanocv/math/random.hpp"
#include "nanocv/thread/thread.h"
#include "nanocv/tasks/task_synthetic_shapes.h"
#include <boost/program_options.hpp>
namespace
{
... |
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <string>
#include <fstream>
#include <cassert>
#include <ILM/ImathColor.h>
#include <ILM/ImathVec.h>
#include <iostream>
#include <iterator>
#include <vector>
#define SAMPLING_DENSITY 0.02
float dist(int x1, int y1, int x2, int y2)
{
float D = (x1 - ... |
#include "kinematic.h"
//! Make conversion's easy:
#define toRadians M_PI/180.0
#define toDegrees (180.0/M_PI)
//! Kdl data storage:
KDL::Chain KDLChain;
KDL::Frame cart, cartzero;
KDL::JntArray KDLJointInit;
KDL::JntArray KDLJointCur;
KDL::JntArray KDLJointMin;
KDL::JntArray KDLJointMax;
//! Fk_tooldir is a tempon... |
#include <sys/time.h>
#include <gtest/gtest.h>
#include <time_utils.h>
#include "time_utils.h"
TEST(TestTimeUtils, GetTimeMs) {
struct timeval val;
gettimeofday(&val, NULL);
int64_t now_ms = val.tv_sec * ((int64_t) 1000) + val.tv_usec / 1000;
int64_t now_lib_ms = getTimeMs();
ASSERT_GE(now_lib_ms,... |
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
// vim: set shiftwidth=4 softtabstop=4 expandtab:
/*
* 2013,2014, Copyright University Corporation for Atmospheric Research
*
* This file is part of the "eolts" package for the R software environment.
* The license and distribution terms... |
/****************************************************************************
* Copyright (c) 2015 - 2016, CEA
* 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 mus... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2019 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated ... |
// Copyright (c) 2015, The Regents of the University of California (Regents)
// See LICENSE.txt for license details
#include <cinttypes>
#include <limits>
#include <iostream>
#include <queue>
#include <vector>
#include "benchmark.h"
#include "builder.h"
#include "command_line.h"
#include "graph.h"
#include "platform_... |
#include "cbase.h"
#include "haj_teamclassui.h"
#include "haj_player_c.h"
#include "haj_gamerules.h"
#include "c_playerresource.h"
#include "weapon_parse.h"
#include <vgui/IScheme.h>
#include <vgui/ILocalize.h>
#include <vgui/ISurface.h>
#include <vgui_controls/Frame.h>
#include <vgui_controls/Button.h>
#include <vg... |
#include "core/system/Terminal.hpp"
#include "core/system/TextUtilities.hpp"
#ifdef _WIN32
#include <windows.h>
#include <stdio.h>
#include <io.h>
#else
#include <unistd.h>
#endif
#include <iostream>
bool Terminal::_supportChecked = false;
bool Terminal::_supportANSI = false;
bool Terminal::supportsANSI(){
if(!_su... |
/********************************************************************
Copyright (c) 1999 Microsoft Corporation
Module Name:
PCH_Module.CPP
Abstract:
WBEM provider class implementation for PCH_Module class
Revision History:
<NAME> (gschua) 04/27/99
- Created
<NAME> (a-jamma... |
/* Sirikata
* ObjectHost.cpp
*
* Copyright (c) 2009, <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
*... |
#include "gl_view.h"
#include <math.h>
#include <iostream>
#include <limits>
using namespace std;
#include <ctime>
#include <sys/time.h>
#include <unistd.h>
#include <ros/ros.h>
#include <sensor_msgs/LaserScan.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Twist.h>
#include <geometry_msgs/Pose.... |
// 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/devtools/device/adb/adb_client_socket.h"
#include <stddef.h>
#include <utility>
#include "base/bind.h"
#include "base/compiler... |
//
// main.cpp
// HugeInt Calculation
// Huge Integer Addition, Subtraction, Multiplication, and Division
//
// Created by <NAME> on 2017/10/11.
// Copyright © 2017年 <NAME>. All rights reserved.
//
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
#include <fstream>
using std::istream;
using ... |
/**
Copyright 2016-2020 Red Anchor Trading Co. Ltd.
Distributed under the Boost Software License, Version 1.0.
See <http://www.boost.org/LICENSE_1_0.txt>
*/
#include "updater.hpp"
#include <fostgres/fostgres.hpp>
#include <fost/csj.parser.hpp>
#include <fost/json>
#include <fost/log>
#include <fost/pa... |
#include "rom.h"
#include "util.h"
#include <cstdio>
#include <iterator>
#include <string>
using namespace atechips;
ROM::ROM(std::array<uint8_t, 1024> buf) { _buffer = std::move(buf); }
ROM::ROM() {}
void ROM::setBuffer(std::array<uint8_t, 1024> buff) {
_buffer = std::move(buff);
}
const uint8_t ROM::get_byte(c... |
// BEGIN CUT HERE
// END CUT HERE
#line 5 "BigO.cpp"
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <fstre... |
/**************************************************************************
THIS CODE AND INFORMATION IS PROVIDED 'AS IS' WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyr... |
// Copyright (C) 2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <chrono>
#include <string>
#include <vector>
#include <opencv2/gapi/streaming/cap.hpp>
#include <opencv2/gapi/imgproc.hpp>
#include <opencv2/gapi/core.hpp>
#include <opencv2/gapi/fluid/core.hpp>
#include <opencv2/gapi/fluid/im... |
/*
* FluentDSampleIngestor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2021 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... |
#include "imgui/imgui.h"
#include "imgui-ws/imgui-ws.h"
#include "common.h"
#include <opencv2/opencv.hpp>
#include <sys/stat.h>
#include <dirent.h>
#include <map>
#include <fstream>
#include <iostream>
// #include <iomanip>
struct State {
State() {
for (int i = 0; i < 512; ++i) {
lastKeysDown... |
/*
* main.cpp - part of MC6809
*
* (c)2021 elmerucr
*/
#include "mc6809.hpp"
#include <cstdio>
#include <cstring>
#include <cstdlib>
/*
* This function reads a line from stdin, and returns a pointer to a
* string. The caller needs to free allocated memory.
*/
char *read_line(void);
void memory_dump(uint16_t ... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <stdint.h>
#include "base/os.h"
#include "vr_defs.h"
#include "pkt/proto_handler.h"
#include "pkt/pkt_init.h"
#include "pkt/packet_buffer.h"
///////////////////////////////////////////////////////////////////////////////
ProtoHandler::... |
/* Copyright (c) <NAME> 2015, all rights reserved. This code is part of the CANDMC repository, protected under a two-clause BSD license. */
#include "mpi.h"
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <math.h>
#include <assert.h>
#include "CANDMC.h"
#include "../../alg/shared/util.h"
static
ch... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.