text stringlengths 3.08k 22k |
|---|
#include <cstdio>
#include <fstream>
#include <iostream>
#include <string>
#include <opencv2/opencv.hpp>
#include "imgui.h"
#include "imgui_impl_opengl3.h"
#include "imgui_impl_sdl.h"
#include <GL/gl3w.h>
#include <SDL.h>
using namespace std;
//---------------------------------------------------------------------
... |
/*
* Copyright (C) 2011 Google 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:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
#include "brcconnection.h"
#include "brcserver.h"
#include "broadcast.h"
#include "cm_ctors.h"
#include "server_version.h"
#include "ScreenCapture.h"
#include "spinlock.h"
#include "guard_on.h"
#include "strutils.h"
#include <chrono>
#include "png_out.hpp"
#include "pixels.h"
//----------------------------------------... |
#include <Neato.h>
#include <stdio.h>
#include "imgui/imgui.h"
#include <glm/gtc/matrix_transform.hpp>
#include "Platform/OpenGL/OpenGLShader.h"
#include <glm/gtc/type_ptr.hpp>
class ExampleLayer : public Neato::Layer {
public:
ExampleLayer()
: Layer("Example"),
m_CameraController(1280.0f / 720.0f... |
#include <iostream>
#include <vector>
#include "../../pointsets/Pointset.hpp"
#include "../../io/fileIO.hpp"
bool permutFromNbitsToMbits(uint N, uint M, uint fixed_point[2], unsigned long long int permutN_x, unsigned long long int permutN_y,
unsigned long long int& permutM_x, unsigned long long int& permutM_y... |
// Copyright 2013 <NAME> <<EMAIL>>
// Matching algorithm by <NAME>, 2010.
//
// 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 lis... |
#include "sycl.hpp"
#include <algorithm>
#include <chrono>
#include <cstdint>
#include <iostream>
#include <iterator>
#include <math.h>
#include <thread>
#include <vector>
#include "render.hpp"
// Function to save image data in ppm format
template <int width, int height>
void save_image(color* fb_data)
{
std::cou... |
#include <time.h>
#include <unistd.h>
#include <sys/time.h>
#include <iostream>
#include <stdlib.h>
#include "RTIambImplementor.h"
#include "FedAmbImplementor.h"
#include <map>
#define DO_EXIT throw RTI_InternalError(e.what())
#define catching()\
cout<< __FILE__ << ":" << __LINE__ << "->" << e.what() << endl;\
DO_E... |
/* Copyright (c) <2003-2011> <<NAME>, Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for an... |
/****************************************************************************/
/// @file NIXMLTrafficLightsHandler.cpp
/// @author <NAME>
/// @author <NAME>
/// @author <NAME>
/// @date 2011-10-05
/// @version $Id$
///
// Importer for traffic lights stored in XML
/**********************************************... |
#include "stdafx.h"
#include "automata.h"
#include <list>
#include <set>
#include <ctime>
#include <vector>
#include <thread>
static int width = 0;
static int height = 0;
static const GLuint WHITE = 0xffffffffu;
static const GLuint BLACK = 0;
static std::set<int> updateColumns;
static std::set<int> updateRows;
str... |
//! \file ode_row6a.cc
#include "ode_row6a.h"
OdeROW6A::OdeROW6A (unsigned long neq) :
OdeAdaptive (neq, true),
OdeRosenbrock (neq, 6) {
method_ = "ROW6A";
//main diagonal, gam_ii
gam = 0.33414236706805043;
a21 = 0.66828473413610087;
a31 = 0.5852480389573658; a32 = -0.0485940082214928... |
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
* location.cpp
* Copyright (C) <NAME> 2011
*
* This file is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 ... |
/*
* Copyright 2009-2017, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
* <NAME>, <EMAIL>
*/
#include "ExtendedInfoWindow.h"
#include <ControlLook.h>
#include <Catalog.h>
#include <GroupView.h>
#include <LayoutBuilder.h>
#include <SpaceLayo... |
#include "main.hpp"
// Needed on old versions of rtld that doesn't check for DT_INIT existance.
extern "C" void __custom_init(void) {}
// DT_FINI here for completeness.
extern "C" void __custom_fini(void) {}
static __int64 lastInputs = 0x200;
static agl::DrawContext *mDrawContext;
static sead::TextWriter *mTextWrite... |
#include <Arduino.h>
int8_t answer;
char aux_str[50];
char feed_host[18]="io.adafruit.com";
char feed_key[8]="615157";
char message_content_length[4];
char feed_value[3];
char message_header[170];
char message_header1[18]="POST /api/feeds/";
char message_header2[25]="/data HTTP/1.1\r\nHOST: ";
char message_header3[105... |
#include <iostream>
#include <array>
#include <string>
#include <memory>
#include <vector>
#include <chrono>
#include <thread>
#include <src/CustomDataTypes/Percentage.h>
#include <fstream>
#include <iomanip>
#include <cxxopts.hpp>
#include "LibUSBDevices.h"
#include "src/SPI/ATmega32U4SPI.h"
#include "src/SPI/SPIBridg... |
#include <iostream>
#include <vector>
#include <cstdlib>
#include <Windows.h>
#include <tchar.h>
#include "MonoJunkie.hpp"
#include "Utility.hpp"
#include "Exceptions.hpp"
#include "Utility.hpp"
#include "InjectionInternals.hpp"
#include "../Blackbone/src/BlackBone/Process/Process.h"
//Find and prepare the... |
#include "Debug/Debug.hpp"
#include <cassert>
#include <cstdio>
#include "Core/Core.hpp"
#include "Debug/DebugVectorRenderer.hpp"
#include "Debug/DebugTextRenderer.hpp"
#include "Debug/DebugGraph.hpp"
#include "Debug/DebugCulling.hpp"
#include "Debug/DebugConsole.hpp"
#include "Debug/DebugLog.hpp"
#incl... |
#include <lqr/lqr_tree.hh>
#include <utils/debug_utils.hh>
#include <iterator>
#include <numeric>
#include <unordered_map>
namespace
{
// Double precision equality checking epsilon.
constexpr double EPS = 1e-5;
} // namespace
namespace lqr
{
LQRTree::LQRTree(int state_dim, int control_dim)
: state_dim... |
#include "raster.hpp"
#include "text.hpp"
#include "error.hpp"
#include "file.hpp"
#include "library.hpp"
img_raster_t::operator bool_t () const
{
return bool(data);
}
img_raster_t get_placeholder_raster_img ()
{
const nat4_t light = 0x3F3F3FFF;
const nat4_t dark = 0xBFBFBFFF;
const nat4_t data[] = {
light, li... |
/*
* MPRIS 2 Server for Audacious
* Copyright 2011-2012 <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 the above copyright notice,
* this list of cond... |
#include <functional>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <iomanip>
#include <fstream>
#include <cctype>
#include <set>
#include <iterator>
#include <algorithm>
#include <sstream>
#include <stdlib.h>
#include <cctype>
#include <math.h>
#include "structure.h"
#include <assert.... |
#include "car.h"
#include "rectangle.h"
using namespace std;
Car::Car(int carId, double length, double width)
{
this->carId = carId;
this->length = length;
this->width = width;
angle = 0;
x = 0;
y = 0;
velocity = 0;
wheelAng = 0;
auto_drive = true;
car_borders = new Rectangle... |
#include <vector>
#include <set>
#include <string>
#include <cmath>
#include <SDL_image.h>
#include "external/json/json.h"
#include "window.h"
#include "image.h"
#include "tile.h"
#include "camera.h"
#include "jsonhandler.h"
#include "map.h"
Map::Map() : filename(""), mapTexture(nullptr) {
}
Map::~Map(){
mTiles.clear... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "helpers.h"
#include "spline.h"
#include "json.hpp"
// for convenience
using nlohmann::json;
using std::string;
using std::vector;
int ca... |
//*********************************************************
// TransimsNet.cpp - Network Conversion Utility
//*********************************************************
#include "TransimsNet.hpp"
char * TransimsNet::KEEP_NODE_LIST = "KEEP_NODE_LIST";
char * TransimsNet::LINK_NODE_EQUIVALENCE = "LINK_NODE_EQUIVAL... |
//
// main.cpp
// fsmWbDependencyDump
//
// Created by <NAME> on 11/01/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#include "../gufsm/FSMANTLRMaths.h"
#include "../gufsm/FSMANTLRContext.h"
#include "../gufsm/FSMANTLRAction.h"
#include <iostream>
#include <sstream>
#include <unistd.h>
#inc... |
#include <iostream>
#include <chrono>
#include <map>
#include <string>
#include <cstring>
#include <fstream>
#include <algorithm>
#include <omp.h>
#include <girgs/girgs-version.h>
#include <girgs/Generator.h>
#include <girgs/BitManipulation.h>
using namespace std;
using namespace chrono;
map<string, string> pars... |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... |
#include "headers.h"
#include "Warping.h"
using namespace cimg_library;
using namespace Eigen;
using namespace std;
struct point;
struct point_polar {
float r;
float theta;
point_polar(float _r, float _t) : r(_r), theta(_t) {}
};
bool lessByAngle(const point_polar& p1, const point_po... |
// Begin Main.cpp
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <ros/ros.h>
#include <std_srvs/Trigger.h>//追加トゥアン
#include <vision_module/VisionOrder.h>
#include <vision_module/ImageInfo.h>
#include <vision_module/FaceInfo.h>
#include <dynamic_reconfigure/server.h>
#include <vision_module/common/VisionPro... |
#include "BitmapClass.h"
bool BitmapClass::Initialize(ID3D11Device* device, ID3D11DeviceContext* deviceContext, int screenWidth, int screenHeight, char* textureFilename, int bitmapWidth, int bitmapHeight)
{
mScreenWidth = screenWidth;
mScreenHeight = screenHeight;
mBitmapHeight = bitmapHeight;
mBitmapWidt... |
#include <Renderer2D.h>
#include <glm\glm.hpp>
#include "PhysicsScene.h"
#include "RigidBody.h"
#include "Sphere.h"
#include "Plane.h"
#include "Box.h"
typedef bool(*fn)(PhysicsObject*, PhysicsObject*);
static fn collisionFunctionArray[] =
{
PhysicsScene::plane2Plane, PhysicsScene::plane2Sphere, PhysicsScene::plane... |
#include "iau.hpp"
#include "iersc.hpp"
iers2010::RotationMatrix3 iers2010::sofa::c2t06a(double tta, double ttb,
double uta, double utb,
double xp,
double yp) noexcept {
... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2009 <NAME> (<EMAIL>)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the... |
#include "yolk/yolk.h"
#include <cmath>
#include <cstring>
namespace {
struct FloatParts {
bool negative;
const char* special; // null if finite
int exponent; // radix 10
char mantissa[32]; // may not be NUL-terminated
FloatParts(double value, size_t sigfigs) {
assert(sigfigs > 0);
... |
//============================================================================
// Name : Monte_carlo.cpp
// Author : Rafael
// Version :
// Copyright : MIT
// Description : Hello World in C++, Ansi-style
// referencias:
// 1 - http://ta.twi.tudelft.nl/mf/users/oosterle/oosterlee/lec8-hit-2009.pdf
// 2... |
// SkillFilter.cpp : This file contains the 'main' function. Program execution begins and ends there.
// Author: <NAME>
// Creation date: 5th November, 2021
// Description: Implementation of finding vulnerable commands for Alexa.
#define _CRT_SECURE_NO_DEPRECATE
#include <iostream>
#include <fstream>
#include <sstrea... |
#include "AdvecSolve_EvoBase.hpp"
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <sstream>
using namespace AdvecSolve;
EvoBase::EvoBase() {}
double EvoBase::get_time() const { return m_step * m_p.dt_multiplier * m_p.dx; }
void EvoBase::set_grid_coords()
{
... |
/***************************************************************************
qgslayoutitemregistry.cpp
-------------------------
begin : June 2017
copyright : (C) 2017 by <NAME>
email : <EMAIL>
****************... |
#include "ModulePlayer.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleInput.h"
#include "ModuleRender.h"
#include "ModuleAudio.h"
#include "ModuleCollisions.h"
#include "ModuleFadeToBlack.h"
#include "ModuleFonts.h"
#include <stdio.h>
ModulePlayer::ModulePlayer(bool startEnabled) : Module(s... |
/**
controller的几个作用:
1.调用timerPlanExploration 请求(call) exploration_node给他一个探索路径的回复(并且广播了出去)
然后node调用planner里边的doExploration
返回的答案存在了srv_exploration_plan里面
然后又调用了follower里边的setplan函数
setplan函数用到了刚才返回的结果作为参数 然后setPlan又调用follower里边的transformGlobalPlan函数 结果存在了global_plan_中
最后global_plan_经过下面com... |
/*! @file CameraManagerSample.cpp
* @version 4.0.0
* @date July 29 2019
*
* @brief Tesf for the CameraManager. All tests are basic on callback method.
*
* @Copyright (c) 2019 DJI
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation... |
#include <iostream>
#include <tuple>
#include <vector>
#include "midgard/linesegment2.h"
#include "midgard/point2.h"
#include "meili/grid_traversal.h"
#include "test.h"
namespace {
using namespace valhalla;
std::string result_to_str(const std::vector<std::pair<int, int>>& result) {
std::string result_str;
res... |
// sl::Scene binding
// Author: <NAME> <<EMAIL>>
#include "py_scene.h"
#include "py_context.h"
#include "py_magnum.h"
#include <Corrade/Utility/Configuration.h>
#include <stillleben/light_map.h>
#include <stillleben/mesh.h>
#include <stillleben/mesh_cache.h>
#include <stillleben/scene.h>
#include <pybind11/function... |
#include "AMDiS.h"
using namespace std;
using namespace AMDiS;
// ===========================================================================
// ===== function definitions ================================================
// ===========================================================================
/// Dirichlet bou... |
/**
* Copyright (C) 2018 <NAME> (Faseroptik Henning GmbH)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, mo... |
/*
* @CopyRight:
* FISCO-BCOS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope t... |
#define ARGUMENT_EXPORT
#include "omp.h"
#include "host_ip.hpp"
#include "export_dataset_1.hpp"
#include "range_check.hpp"
#include "histogram_numeric_check.hpp"
#include "jl_projector.hpp"
#include "mean_check.hpp"
#include "variance_check.hpp"
#include "random_linear_combination.hpp"
int port, party;
const int th... |
#include "radioprovider.h"
#include "QGCApplication.h"
#include "QGCSerialPortInfo.h"
#include "MMC/mmcplugin.h"
RadioProvider::RadioProvider(const QString &device)
: _device(device)
, _serial(nullptr)
, _findDevice(false)
, _isconnect(false)
, _findDevideName("")
{
moveToThrea... |
//
// MultiViewportTestScenario.cpp
// KesslerSyndrome
//
// Created by <NAME> on 4/19/18.
// Copyright © 2018 <NAME>. All rights reserved.
//
#include <cinder/gl/scoped.h>
#include "game/Tests/MultiViewportTestScenario.hpp"
#include "core/util/GlslProgLoader.hpp"
#include "core/Tracking.hpp"
#include "elements/C... |
/*
* BrusaCharger.cpp
*
*
Copyright (c) 2013 <NAME>, <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, cop... |
#include "heap.h"
#include "my_memory_manager.h"
#include "memory_manager.h"
#include "singleton.h"
#include "utils.h"
#include "debug.h"
#include "vga.h"
extern Vga screen;
u16 Heap::getPageFlags()
{
u16 flags = 0;
if(lvl == USER)
flags = 7 | PAGE_USED;
else if(lvl == KERNEL)
{
flags = 3 | PAGE_USED;
}
r... |
//-------------------------------------------------------------------------------------------------
// File : main.cpp
// Desc : Main Entry Point.
// Copyright(c) Project Asura. All right reserved.
//-------------------------------------------------------------------------------------------------
//------------... |
#include <stdio.h>
#include <stdbool.h>
#include <malloc.h>
#include <string>
#include <map>
#include <list>
#include <vector>
#include <queue>
#define WIDTH 6
#define SIZE (WIDTH*WIDTH)
#define WP (WIDTH + 1)
#define WM (WIDTH - 1)
#define POOL_SIZE 1024
typedef struct Board {
int board[SIZE];
int remaining[SI... |
#include "ground_segmentation/segment.h"
Segment::Segment(unsigned int n_bins, double max_slope, double max_error,
double long_threshold, double max_long_height,
double max_start_height)
: bins_(n_bins)
, maxSlope_(max_slope)
, maxError_(max_error)
, longThreshold_(long_thresh... |
// ***********************************************************************
//
// PaKman: Algorithm for generating genomic contigs on distributed-memory machines
//
// <NAME> (Pacific Northwest National Laboratory)
// <NAME> (Pacific Northwest National Laboratory)
// <NAME> (Washington State University)
// ... |
/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use thi... |
#include "TFile.h"
#include "TKey.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "CondFormats/DataRecord/interface/SiStripFedCablingRcd.h"
#include "CalibTracker/SiStripCommon/interface/SiStripDetInfoFileReader.h"
#include "CalibTracker/SiStripQuality/interface/SiStripQualityWithFromFedErrorsHel... |
#define DEBUG 1
#include <iostream>
#include <iomanip>
#include <string>
//#include <cmath>
#include "Hubbard2D.hpp"
#ifdef USE_SPECTRA
#include <MatOp/SparseGenMatProd.h>
#include <SymEigsSolver.h>
#endif
#include <boost/random.hpp>
#include <boost/limits.hpp>
#include <ietl/interface/eigen3.h>
#include <ietl/vecto... |
/**
** @file test.cpp
**
** @brief test and example of use of mandatory_input class
**
** @detail test with and witout exceptions to read a list of pairs. It runs each test on a correct and on an incorrect string stream
** and gives opportunity to manually provide additional test input
**
** @author <... |
/*******************************************************************************
* gol-sat
*
* Copyright (c) 2015 <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 restr... |
void solve_deg_two_v1(int ** graph, int nodes, int * degree, vector <int> & subgraph, vector <int> & solution);
void vertex_cover_exact_v1(int ** graph, int nodes, int * degree, vector <int> & subgraph, vector <int> & solution);
void br_highest_degree_vertex_v1(int ** graph, int nodes, int * degree, vector <int> & subg... |
#include "vehicle.h"
#include <iostream>
#include <iostream>
#include <math.h>
#include "cost_function.h"
const double MS_TO_MPH = 2.23694;
const double MPH_TO_MS = 0.44704;
Vehicle::Vehicle(int lane, double target_speed){
ref_speed = target_speed;
ref_lane = lane;
}
void Vehicle::Update(double ax, double... |
//
// This class stores the name and related
// hardware mapings for a ROC
//
#include "CalibFormats/SiPixelObjects/interface/PixelROCName.h"
#include <string>
#include <iostream>
#include <sstream>
#include <cctype>
#include <cassert>
#include <cstdlib>
using namespace std;
using namespace pos;
PixelROCName::PixelR... |
/** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0... |
#include <QGuiApplication>
#include <QCommandLineParser>
#include <iostream>
#include "ftsearch.h"
#include <QSettings>
#include "fmindex.h"
static void usage()
{
std::cout << "\nUsage\n flextyper [feature] [options...] \n"
" \n... |
#include "cpu.h"
#include "opcode.h"
#include <fstream>
#include <algorithm>
#include <stdexcept>
/// start address of program (pc)
static constexpr size_t prog_start = 0x200;
/// max program size
static constexpr size_t max_prog_size = (Cpu::mem_size - prog_start);
/// cpu frequency
static constexpr size... |
// See LICENSE_CELLO file for license and copyright information
/// @file enzo_EnzoComputeCicInterp.cpp
/// @author <NAME> (<EMAIL>)
/// @date 2016-05-05
/// @brief Implements the EnzoComputeCicInterp class
// #define DEBUG_CIC_INTERP
#include "cello.hpp"
#include "enzo.hpp"
//------------------------... |
#include <stdio.h>
#include <iostream>
#include <vector>
#include <deque>
#include <queue>
#include <map>
#include <algorithm>
#include <limits>
#include <assert.h>
#include <sstream>
#include <string.h>
using namespace std;
#include "input.h"
#include <input.hpp>
#include <assert.hpp>
#include "point.hpp"
typedef m... |
#include "gamemodel.h"
#include "modelclass.h"
#include "airplanemodel.h"
#include "arraylist.h"
/*
This class represents a simple airplane model built out of cube and prism game model components
It can be moved forward in the direction it is facing and turned left or right.
Exercise: it would be cool if it actually ... |
/*
* linux/kernel/sched.c
*
* (C) 1991 <NAME>
*/
/*
* 'sched.c' is the main kernel file. It contains scheduling primitives
* (sleep_on, wakeup, schedule etc) as well as a number of simple system
* call functions (type getpid(), which just extracts a field from
* current-task
*/
#include "linux/fs.h"
#inclu... |
/*
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Engine.
**
** Centreon Engine is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Engine is distributed in the hope... |
#include "ns3/emu-tun-module.h"
#include "ns3/core-module.h"
#include "ns3/applications-module.h"
#include "ns3/internet-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/ipv4-global-routing-helper.h"
#include "ns3/traffic-control-module.h"
#include "ns3/simulator.h"... |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... |
#include <torch/script.h>
#include <torch/torch.h>
#include <unistd.h>
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <mutex>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
#include "SignalHandler.h"
#include "httplib.h"
#include "si... |
//chaperon.cpp
#include "chaperon.h"
#include <ctype.h>
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
const int chaperon::mcsWindowSize = MCS_WINDOW_SIZE;
int chaperon::singleton = 0;
configFileHandler chaperon::cfh;
point chaperon::getMin_dx_dy()
{
point pdxdy;
/*
pdxdy.x = max(x) - min(x)
pdxdy.y... |
// Copyright <NAME> 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include "parameter_block.h"
#include "adl/chip_settings.h"
#include "adl/instrument.h"
#include "adl/player.h"
#in... |
// Copyright (c) 2015-2016 The Khronos Group 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 ... |
#include <Arduino.h>
#include <M5StickC.h>
#ifdef ESP32
#include <WiFi.h>
#include <WiFiMulti.h>
#include <AsyncTCP.h>
#elif defined(ESP8266)
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#endif
#include <ESPAsyncWebServer.h>
#include <ArduinoJson.h>
#include "secret.h"
#include "Servos.h"
#include "Motions.h"
#inc... |
/****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2016 **
** Fors... |
#include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#include <ArduinoJson.h>
#include <string.h>
#include <WiFi.h>
#include <WebServer.h>
#include <Adafruit_Sensor.h>
#include <DHT_U.h>
#include "main.h"
struct SensorReadings {
uint moisture[NUM_MOISTURE_S... |
/* EGLBenchmark
*
* Author: <NAME> <<EMAIL>>
*
* For conditions of distribution and use, see copyright notice in license.txt
*/
#include "GLMath.h"
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
/******************************************************************************
* Gl... |
// FolderAdvDisplay.cpp: implementation of the CFolderAdvDisplay class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "FolderAdvDisplay.h"
#include "FolderMgr.h"
#include "FolderCommands.h"
#include "ClientRes.h"
#include "GameClientShell.h"
#include "GameSettin... |
#include "TerrainLoading.h"
#include <imgui.h>
/*
You will need to initialize the terrain here, as the Terrain class does not have a default
parameterless constructor.
The first argument is the filename of a height map texture.
The second and third arguments are the width and depth of the terrain,
this is the nu... |
/*===============================================================*/
/* */
/* spam_filter.cpp */
/* */
/* Main host function for the Spam Filter a... |
/*
* CFG.cpp
*
* Created on: Oct 8, 2014
* Author: n
*/
#include <iostream>
#include <cassert>
#include <algorithm>
#include <fstream>
#include <UTM/util.h>
#include "../pugixml-1.4/src/pugixml.hpp"
#include "CFG.h"
#include "CYKTable.h"
CFG::CFG(std::set<Symbol> var, std::set<Symbol> ter,
std::vector<... |
/* Starshatter OpenSource Distribution
Copyright (c) 1997-2004, Destroyer Studios LLC.
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 t... |
/*
* Copyright (C) 2005-2010 MaNGOS <http://getmangos.com/>
*
* 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.
*
... |
/*
* xbee.c
*
* Created on: 08/mar/2015
* Author: massimo
*/
#include <stdarg.h>
#include <stdint.h>
#include <stdbool.h>
#include "driverlib/rom.h"
#include "driverlib/uart.h"
#include "driverlib/pin_map.h"
#include "driverlib/rom.h"
#include "inc/hw_memmap.h"
#include "inc/hw_gpio.h"
#include "driverlib/g... |
#include "settings.h"
#include "settingdefines.h"
#include <string.h>
#include <iostream>
#include <fstream>
using namespace vemc2::settings;
//#Yolo
char tempisdeuryfri[]="./res/underground.bmp";
char temppswiaeufro[]="./res/background.bmp";
char tempresskjefhe[]="./res/UbuntuMono-B.ttf";
bool Texture::used = f... |
// Copyright (c) 2014-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// 参考的实现是digestpp[https://github.com/kerukuro/digestpp]
#include <crypto/sha3_256.h>
#include <crypto/common.h>
// Internal... |
#ifdef HAVE_CONFIG_H
#include <../../config.h>
#endif
/*
* Copyright (c) 1990, 1991 Stanford University
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided
* that the above copyright notice appear in all copies and ... |
#include <set>
#include <vector>
#include <string>
#include <cstring>
#include <cstdio>
//---------------------------------------------------------------------------
// RDF-3X
// (c) 2008 <NAME>. Web site: http://www.mpi-inf.mpg.de/~neumann/rdf3x
//
// This work is licensed under the Creative Commons
// Attribution-Non... |
/******************************************************************************\
* Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. *
* Leap Motion proprietary and confidential. Not for distribution. *
* Use subject to the terms of the Leap Motion SDK Agreement available at ... |
#include <QStandardItemModel>
#include <QPainter>
#include <QPainterPath>
#include <QMenu>
#include "channelsview.h"
void ChannelsViewItemDelegate::paint(QPainter *painter,
const QStyleOptionViewItem& option,
const QModelIndex& index ) const
{
... |
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <iostream>
#include <iterator>
#include <mutex>
#include <vector>
#include "agent4.h"
#include "common.h"
#define EMIT_ROUND 0
#define EMIT_OUTPUT 0
void stat_rounds(const int satisfied, const double threshold, const int rounds, int&... |
#include <limits.h>
#include "timer.h"
#define HASH(id) id % TIMER_HASH_SIZE
#define TIME_NEAR_MASK (TIME_NEAR-1)
#define TIME_LEVEL_MASK (TIME_LEVEL-1)
#define TIME_SLOT_LEN 10
namespace frame
{
static uint64_t gettime()
{
FILETIME ft;
GetSystemTimeAsFileTime(&ft);
ULARGE_INTEGER u_int;
u_int.HighPart = f... |
#include "main.hpp"
#include <unicode/decimfmt.h>
#include <unicode/errorcode.h>
#include <unicode/fmtable.h>
#include <unicode/locid.h>
#include <unicode/plurrule.h>
#ifndef MODULE_NAME
#define MODULE_NAME icu
#endif // MODULE_NAME
using namespace icu;
void init_alphaindex(py::module &m);
void init_appendable(py::m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.