text stringlengths 3.08k 12.5k |
|---|
#include <string>
#include <fstream>
#include "ns3/core-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/internet-module.h"
#include "ns3/applications-module.h"
#include "ns3/network-module.h"
#include "ns3/packet-sink.h"
using namespace ns3;
NS_LOG_COMPONENT_DEFINE ("Lab6");
static void
CwndChange (Pt... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... |
/*
* A program that creates structures based on levels of probable pairs.
*
* (c) 2009 Mathews Lab, University of Rochester Medical Center.
* Written by <NAME>
*/
#include "ProbablePair.h"
///////////////////////////////////////////////////////////////////////////////
// Constructor.
////////////////////////////... |
#include "stdAfx.h"
#include "Logger.h"
#include "Horde3D.h"
#include "Skeleton.h"
using namespace std;
#pragma comment (lib, "Horde3D.lib")
#pragma comment (lib, "Horde3DUtils.lib")
#pragma comment (lib, "opengl32.lib")
/*
Eye::Eye(char *jointName, bool zSignShift) {
strncpy(this->jointName, joint... |
//============================================================================
// Name : Playfair Cipher.cpp
// Author : SidPro
// Version : 1.0
// Description :
/*
The Playfair algorithm is based on the use of a 5 * 5 matrix of letters constructed
using a keyword.
*/
//=============================... |
#include "basiceffects.h"
#include <hsb.h>
#include <helpers.h>
#ifndef UNIT_TEST
#include <Arduino.h>
#else
extern "C" uint32_t millis();
#endif
NoEffect::NoEffect() : Effect() {
}
HSB NoEffect::handleEffect(const uint32_t p_count,
const uint32_t p_time,
const H... |
// Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2015 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... |
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <string>
#include <cctype>
#include <vector>
#include <limits>
#include <algorithm>
#include <map>
#include <getopt.h>
#include <common.h>
#include <resolver.h>
#include <md5.h>
#include <redis.h>
#include <json.h>
const char *progname = "check_runl... |
/*
Copyright (c) 2007-2016 Contributors as noted in the AUTHORS file
This file is part of libzmq, the ZeroMQ core engine in C++.
libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Found... |
#include "Drive.h"
Drive::Drive(int leftpin, int rightpin) {
leftMotor = Motor(leftpin);
rightMotor = Motor(rightpin);
_power = 0;
_steer = 0;
}
void Drive::begin(char* name) {
_filename = "/" + String(name) + ".json";
Drive::_loadConfig();
}
void Drive::enable(int value) {
if(value){
_enable = tr... |
// TODO : fixed point fix...
/**
* projectM -- Milkdrop-esque visualisation SDK
* Copyright (C)2003-2004 projectM Team
*
* 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
* v... |
//
// File: index_scan.cc
//
#include "index_scan.h"
#include "rm.h"
#include "sm.h"
using namespace std;
IndexScan::IndexScan(SM_Manager& smm,
RM_Manager& rmm,
IX_Manager& ixm,
const char* relName_,
const char* indexAttrName,... |
#include <iostream>
#include "Rtypes.h"
#include "TMath.h"
#include "TGeoShape.h"
#include "TGeoBBox.h"
#include "TGeoArb8.h"
//_____________________________________________________________________________
void TGeoArb8::ComputeBBox()
{
// compute bounding box for a Arb8
Double_t xmin, xmax, ymin, ymax;
xmin = ... |
#include<cstdio>
#include<cstring>
#include<algorithm>
const char end[]="Begin the Escape execution at the Break of Dawn";
char s[80];
struct ku
{
char x,u;
ku *ne,*ch;
}*root;
inline void ins(ku *&ptr,char s[])
{
if(!ptr)
{
ptr=new ku;
*ptr=(ku){s[0],!s[1],NULL,NULL};
}
if(ptr->... |
// Copyright (C) 2019 - 2021 by <NAME>, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2017 - 2018 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and Univ... |
#include "MeshPartition.hh"
#include <queue>
#include <set>
#include <utility>
#include "CommObject.hh"
#include "GlobalFccGrid.hh"
#include "GridAssignmentObject.hh"
#include "MC_Vector.hh"
#include "qs_assert.hh"
using std::make_pair;
using std::map;
using std::queue;
using std::set;
using std::vector;
namespace ... |
/**
* Programa para ilustrar:
* - Uso da textura
* - carregamento de arquivos BMP
* Autor: <NAME>
* UFSM - 15/06/2007
*
* <EMAIL>
* <EMAIL>
*
**/
#include <GL/glut.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "Bmp.h"
#define SCREEN_X 900
#define SCREEN_Y 3... |
/*
* Copyright (C) 2019 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... |
#include "RPAD.h"
#include <sys/socket.h>
#include <netinet/in.h>
using namespace std;
int initNetwork(int PORT)
{
int numSocket = socket(AF_INET, SOCK_STREAM, 0);
fd_set fr, fw, fe;
int maxFd;
if (numSocket < 0)
{
cout << "Socket was not initialized\n";
return -1;
}
stru... |
#include <Windows.h>
#include "sora.h"
#include "__DebugPlotChannel.h"
#include "DpChannel.h"
#include "DpChannelExt.h"
#include "ChannelLibExtImpl.h"
#include "HashTable.h"
#include "SpinLock.h"
struct ChannelKeyEx
{
const char * name;
int type;
};
unsigned long ___HashCodeStringEx(const char * str)
{
int hashVal... |
/////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
/////////////////////////////////////////////////////////////////////////////
#include "EASTLTest.h"
#include <EABase/eabase.h>
//#include <EAStdC/EAMemory.h>
//#include <EAStdC/EASt... |
/*
MIT License
Copyright (c) 2019 Light Transport Entertainment Inc. And many contributors.
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 r... |
#include "adaptor_client.h"
#include "go_quic_client_session.h"
#include "go_quic_spdy_client_stream.h"
#include "go_quic_client_packet_writer.h"
#include "go_quic_alarm_factory.h"
#include "go_quic_connection_helper.h"
#include "go_proof_verifier.h"
#include "go_utils.h"
#include "net/base/ip_address.h"
#include "ne... |
//
// Created by phil on 10/22/20.
//
#include "ExceptionHandler.hh"
#include "G4RunManager.hh"
#include "G4RunManagerKernel.hh"
#include "G4StateManager.hh"
#include "G4Step.hh"
#include "G4SteppingManager.hh"
#include "G4String.hh"
#include "G4Track.hh"
#include "G4UnitsTable.hh"
#include "G4ios.hh"
ExceptionHandl... |
/* ------------------------------------------------------------------
Copyright (c) 2017 <NAME>
email: <EMAIL>
This code is distributed under the MIT License.
Please see <root-path>/LICENSE for details.
-------------------------------------------------------------- */
#include <Gui/opengl.h>
#in... |
/**
* This file is part of the "plotfx" project
* Copyright (c) 2018 <NAME>
*
* 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
* ... |
//=============================================================================
// Copyright (c) 2017-2021 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief Implementation of a donut widget.
//====================================================================... |
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "DataFormats/Candidate/interface/Candidate.h"
#include "DataFormats/Candidate/interface/CandidateFwd.h"
#include <iostream>
class DimuonStatistics : public edm::EDAnalyzer {
public:
DimuonStatistics(const edm... |
/*
* See header file for a description of this class.
*
* \author <NAME> - CIEMAT
* \author <NAME> - INFN PD
* \author <NAME> = INFN PD
*/
#include "DQM/DTMonitorClient/src/DTDCSByLumiSummary.h"
#include "DQM/DTMonitorModule/interface/DTTimeEvolutionHisto.h"
#include "FWCore/ServiceRegistry/interface/Servic... |
/****************************************************************************/
// Directory Integrity Service
//
// Utility functions
//
// Copyright (C) 2000, Microsoft Corporation
/****************************************************************************/
#include "dis.h"
extern ADOConnection *g_pC... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/GrTextureMaker.h"
#include "include/private/GrRecordingContext.h"
#include "src/gpu/GrColorSpaceXform.h"
#include "src/gpu/GrGpu.h"
#include "src/gpu/GrProx... |
/**
* Copyright (C) 2020 Tristan. All Rights Reserved.
* This file is licensed under the BSD 2-Clause license.
* See the COPYING file for licensing information.
*/
/*
* TODO:
*
* In a lot of DOCTYPE handlers I do EmitDoctypeQuirksToken(),
* but I should instead change the current doctype's flag Force-Quirks
*... |
/*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... |
#include "../include/Screenshot.hh"
#include <iostream>
#include <cmath>
#include <sstream>
Screenshot::Screenshot(float displayX, float displayY) {
displayx = displayX;
displayy = displayY;
// Text
if( !font.loadFromFile("fonts/arial.ttf")) {
std::cerr << "ERROR: Font did not load properly." << std::endl... |
// Copyright (c) 2015, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// This file implements the c... |
// Copyright 2009 <NAME>
// Copyright 2017, 2018 <NAME>
// Copyright 2018 <NAME>
// Copyright 2019 s-hadinger
// Pioneer remote emulation
#define __STDC_LIMIT_MACROS
#include <stdint.h>
#include <algorithm>
#include "IRrecv.h"
#include "IRsend.h"
#include "IRutils.h"
// Constants
// Ref:
// http://www.adrian-kingst... |
// CHAP - The Channel Annotation Package
//
// Copyright (c) 2016 - 2018 <NAME>, <NAME>, <NAME>, and
// <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, in... |
// Copyright (c) 2021 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
#include "Init.h"
#include "BufferExecute.h"
#include "Class/LineParsing.h"
#include "Cmd.h"
#include "Global.h"
#include "items/vButtonOut.h"
#include "items/vCountDown.h"
#include "items/vImpulsOut.h"
#include "items/vInput.h"
#include "items/vLogging.h"
#include "items/vOutput.h"
#include "items/vPwmOut.h"
#include... |
/*************************************************************************
> File Name: 43_multipy_strings.cpp
> Author: ziqiang
> Mail: <EMAIL>
> Created Time: Wed 03 May 2017 03:11:51 PM CST
************************************************************************/
#include <iostream>
#include <string>
#include... |
// Copyright (c) m8mble 2021.
// SPDX-License-Identifier: BSL-1.0
#include "TestUtilities.h"
#include "utils/UTF8Encoder.h"
#include "utils/UTF8Utils.h"
#include <sstream>
#include <string_view>
#include <tuple>
namespace {
using namespace clean_test::utils;
using namespace std::string_view_literals;
void test_co... |
/****************************************************************************
**
** Copyright (C) 2018 <NAME> <<EMAIL>>
**
** This program is free software: you can redistribute it and/or modify it
** under the terms of the GNU General Public License as published by the Free
** Software Foundation, either version 3 of ... |
/****************************************************************************
*
* This is a part of TOTEM offline software.
* Authors:
* <NAME> (<EMAIL>)
* <NAME>
*
****************************************************************************/
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWC... |
/*
* Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "... |
#include "./headers.h"
extern int IO_cost;
BNode::BNode() {
level_ = -1;
num_entries_ = -1;
left_sibling_ = -1;
right_sibling_ = -1;
key_ = NULL;
son_ = NULL;
dirty_ = false;
block_ = -1;
capacity_ = -1;
file_ = NULL;
}
BNode::~BNode() {
++IO_cost;
char *buf = NULL;
if (dirty_) { // write ... |
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/debug.h"
#else
#define db(...)
#endif
#define all(v) v.begin(), v.end()
#define pb push_back
using ll = long long;
const int NAX = 2e5 + 5, MOD = 1000000007;
vector<char> meow;
// pair<int,int> f number of ) followed by s number of (
pair<int, i... |
// Sorting Substrings
// https://codeforces.com/edu/course/2/lesson/2/5/practice/contest/269656/problem/C
#include <bits/stdc++.h>
using namespace std;
void countSort(vector<int> &p, vector<int> &c) {
int n = p.size();
vector<int> cnt(n);
for (auto x : c) {
cnt[x]++;
}
vector<int> pos(n);
... |
/*
Copyright 2016 Esri
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 <iostream> // std::cout, std::endl
#include <string> // std::string
#include <complex> // std::complex
#include <vector> // std::vector
#include <climits> // CHAR_BIT
//using namespace std;
void DeclareBasicTypes()
{
int i1 = 1;
int i2{ 1 };
int i3 = { 1 };
//char c1 = 1234; // warning: 1234 is a... |
// 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 may... |
/* Copyright (c) 2010-2018, Delft University of Technology
* All rigths reserved
*
* This file is part of the Tudat. Redistribution and use in source and
* binary forms, with or without modification, are permitted exclusively
* under the terms of the Modified BSD license. You should have received
*... |
#include "Box.hpp"
#include "vec3_functions.hpp"
#include <stdexcept>
#include <glm-0.9.5.3/glm/gtx/intersect.hpp>
#include <vector>
#include <set>
Box::Box(const glm::vec3 &min, const glm::vec3 &max) : Shape(), min_(min), max_(max) {
if(min.x >= max.x or min.y >= max.y or min.z >= max.z){
throw std::inval... |
#include "main/main.h"
#include "luawrapper.h"
FC_Font* CreateFont(std::string name) {
FC_Font* ret = FC_CreateFont();
if (name.compare("") != 0) {
fonts[name] = ret;
}
return ret;
}
bool MCTD3_InitSDL() {
SimpleUI_Log("Initialising SDL.", Level::DEBUG);
if (SDL_Init(SDL_INIT_EVERYTHING) == 0) {
if (SDL_Cre... |
/*
The MATLAB gateway function to BBFMM2D developed by Sivaram.
The code provides a O(N) solution to a kernel matrix-vector product.
Written by <NAME> 10/02/2013
*/
#include <iostream>
#include "math.h"
#include "mex.h"
#include "matrix.h"
#include "environment.hpp"
#include "BBFMM2D.hpp"
#include <Eigen/Core>
#includ... |
#include "DU03.h"
#include <algorithm>
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "bunny.h"
using namespace std;
DU03::DU03(){
camera.rotx = 170;
camera.roty = 25;
}
void DU03::init() {
/*
* Vytvoreni shader programu
*/
string prefix = RESOURCE_DIR"Shaders/PGP2015/";
... |
#include "lineitem.h"
#include <QGridLayout>
#include <QDate>
#include <QString>
#include <QSizePolicy>
#include <QDoubleValidator>
#include <QStringBuilder>
LineItem::LineItem(int idx, QWidget *parent) :
QWidget(parent)
{
index = idx;
selected = new QCheckBox(QString::number(idx + 1));
dateLabel = ne... |
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/event_groups.h"
#include "esp_err.h"
#include "nvs_flash.h"
#include "esp_log.h"
#include <string>
#include "main.h"
#include "wifi.h"
#include "http.h"
#include "spiffs.h"
#include "sntp_interface.h"
#include "schedule.h"
#include "ledc_int... |
// Oseen.cc -- test Oseen vortex exact solution with IBPM code
//
// The Oseen vortex is an exact solution of Navier-Stokes, and has the form
// \omega = \Gamma * Re / (4 \pi t) * exp( -r^2 Re / (4 t) )
// u_\theta = \Gamma / (2 \pi r) * ( 1 - exp( -r^2 Re / (4 t)) )
//
// Here, the equations have been nondimensi... |
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include <map>
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/IFC4/include/IfcElem... |
#include <vector>
#include <cstring>
#include <ctime>
#include <cstdio>
#include <cstdlib>
#include <omp.h>
#include "datatypes.h"
#include "kernel_common.h"
#include "memory_scheduler.h"
score_dt device_ilog2(const score_dt v)
{
if (v < 2) return 0;
else if (v < 4) return 1;
else if (v < 8) return 2;
... |
// Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platform/input/oculusVR/barrelDistortionPostEffect.h"
#include "console/consoleTypes.h"
#include "console/engineAPI.h"
#include "gfx/gfxDevice.h"
#include "platform/input/oculusVR/oculusVRD... |
/* color_utils.cpp
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <ui/qt/utils/color_utils.h>
#include <ui/qt/utils/tango_colors.h>
// Colors we use in various parts of the UI.
//
// New colors should be chosen fr... |
#include "quadrature_gausslegendre.h"
#include "LegendrePoly/legendrepoly.h"
#include <cmath>
#include "chi_log.h"
extern ChiLog& chi_log;
#include <algorithm>
//###################################################################
/**Populates the abscissae and weights for a Gauss-Legendre
* quadrature given the de... |
#include <iostream>
#include <locale>
#include <map>
#include <vector>
std::string trim(const std::string &str) {
auto s = str;
//rtrim
auto it1 = std::find_if(s.rbegin(), s.rend(), [](char ch) { return !std::isspace<char>(ch, std::locale::classic()); });
s.erase(it1.base(), s.end());
//ltrim
... |
/*
* menu.cpp
*
*/
#include "menu.h"
#include "../api/manager.h"
#include "../graphic/gra_lib.h"
#include "../other/user.h"
Menu::Menu(SubMenu sm)
:
exit_with (NOTHING),
main (0),
single (sm == SUBMENU_SINGLE ? new Api::SingleBrowser() : 0),
lobby (... |
#include "node_stdio.h"
#include "events.h"
#include "coupling.h"
#include <unistd.h>
#include <fcntl.h>
using namespace v8;
using namespace node;
static Persistent<Object> stdio;
static Persistent<Function> emit;
static struct coupling *stdin_coupling = NULL;
static struct coupling *stdout_coupling = NULL;
static... |
/****************************************************************************************
* @author: kzvd4729 created: Jul/13/2020 15:22
* solution_verdict: Accepted language: GNU C++17
* run... |
#pragma once
#include <xbyak/xbyak.h>
#include <xbyak/xbyak_util.h>
/*
strstr by SSE4.2
strstr(const char *s1, const char *s2);
@note
1. this function will access max 16 bytes beyond the end of string
2. assume *s2 != '\0'
@author herumi
@note modified new BSD license
http://opensource.org/licenses/BSD-3-Claus... |
#include "elma.h"
#include "wxrlite.h"
#include <iostream>
#include <ratio>
using namespace std::chrono;
//#define S(__s__) high_resolution_clock::duration(seconds(__s__))
#define MIN(__min__) high_resolution_clock::duration(minutes(__min__))
int main(){
elma::Manager m;
GetWXRdata Data1;
m.schedule(Data... |
#include <cachelot/common.h>
#include <cachelot/memalloc.h>
#include <cachelot/random.h>
#include <iostream>
#include <iomanip>
#include <boost/io/ios_state.hpp>
extern "C" {
#include "tlsf.h"
}
using namespace cachelot;
using namespace std::chrono;
static const int num_runs = 10;
static const size_t memory_limit... |
/*
Author: <NAME>
Date: 11/11/2020
Task: Solving N-Queen using Genetic Algorithm
Comments: Hard-coded for 8x8 chess, can be modified for arbitrary size.
*/
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <sstream>
#include <cstring>
#include <map>
#include <vector>
#include <ctime>
... |
/**
XR Vessel add-ons for OpenOrbiter Space Flight Simulator
Copyright (C) 2006-2021 <NAME>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later v... |
/*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... |
// Please read ModbusConfig.h for information about the liscence and authors
#include "ModbusConfig.h"
bool processJsonError(int error)
{
bool res = false;
switch (error) {
case DeserializationError::Ok:
Serial.println("Deserialization succeeded");
res = true;
break;
case Deseria... |
/* 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/. */
#include "wireguardutilswindows.h"
#include "leakdetector.h"
#include "logger.h"
#include "platforms/windows/windo... |
#include <rrt_planners/planners/control/Rrt.h>
//#define PRINT_STATISTICS false
RRT::Rrt::Rrt() : Planner()
{
// accompany_steer_ = false;
}
RRT::Rrt::~Rrt()
{
}
bool RRT::Rrt::steer(Node* fromNode, Node* toNode, Node* newNode)
{
// if(accompany_steer_)
// return steering_->accompany_steer(fromNode, toNode... |
#include <iostream>
#include <osg/Projection>
#include <ossimPlanet/ossimPlanetSceneView.h>
#include <osg/LineSegment>
#include <ossim/base/ossimConstants.h>
ossimPlanetSceneView::ossimPlanetSceneView()
{
}
// bool ossimPlanetSceneView::intersectScene(osg::Vec3d& intersection,
// ... |
/*
* vecmath.c
*
* Copyright (C) 1989, 1991, <NAME>
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial product wi... |
#include <stdio.h>
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///
/// Rules to help you do conversion from runtime version to compile-time version.
///
/// Rule 1:
/// Change:
/// if (true_condition)... |
/*
* @Author: <NAME>
* @GitHub: wutianze
* @Email: <EMAIL>
* @Date: 2019-09-20 14:23:08
* @LastEditors : <NAME>
* @LastEditTime : 2020-01-07 15:19:48
* @Description:
*/
#include <cmath>
#include <assert.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cassert>
#include <chrono>
#include <... |
/***************************************************************************
qgsrasteriterator.cpp
---------------------
begin : July 2012
copyright : (C) 2012 by <NAME>
email : <EMAIL> sourcepole dot ch
******************************************************... |
/**
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This file is part of osm2pgsql (https://osm2pgsql.org/).
*
* Copyright (C) 2006-2022 by the osm2pgsql developer community.
* For a full list of authors see the git log.
*/
#include "format.hpp"
#include "logging.hpp"
#include "taginfo-impl.hpp"
#include <cerr... |
#include <Arduino.h>
#include <Arduino_MKRIoTCarrier.h>
#include <sstream>
#include <arduino-timer.h>
#include <math.h>
#include <deque>
#include <numeric>
#include <limits>
#include <vector>
#include "week2_carriers.h"
#define BAUD_RATE 115200
#define ACCEL_QUEUE_SIZE 20
#define STEP_THRESHOLD 0.3
#define DELTA_STE... |
/**************************************************************
*
* 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 und... |
#include <iostream>
#include "scheduler.h"
using namespace mesos;
namespace HsFFI {
class HsScheduler : public Scheduler
{
public:
HsScheduler(
OnSchedulerRegisteredCallback* registeredCb,
OnSchedulerReRegisteredCallback* reRegisteredCb,
OnSchedulerDisconnectedCallback* disconnectedCb,
OnSchedulerResourceOff... |
/*
* ofxSimpleGuiColorPicker.cpp
* OpenCL Particles 3. single segment trails
*
* Created by <NAME> on 01/11/2009.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "ofxSimpleGuiColorPicker.h"
ofxSimpleGuiColorPicker::ofxSimpleGuiColorPicker(string name, float* value, float max) : ofxSi... |
/**
* Copyright (2013) JDS Uniphase. All rights reserved.
*
*/
#include <sys/types.h>
#include <sys/times.h>
#include <log4cxx/logger.h>
#include "xtreme/cs/cs.h"
#include "xtreme/cs/internal/perf_log.h"
#include <boost/filesystem.hpp>
#include <boost/thread/mutex.hpp>
log4cxx::LoggerPtr perfLog(log4cxx::Logger::g... |
/*
* channel_p.cpp
*
* Created on: Jan 29, 2016
* Author: <NAME>
*/
#include "channel_p.hpp"
#include "warn.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "wallaby/aruco.hpp"
#include <iostream>
#include <vector>
#include <zbar.h... |
// Gmsh - Copyright (C) 1997-2019 <NAME>, <NAME>
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#include <sstream>
#include <algorithm>
#include "GModel.h"
#include "GVertex.h"
#include "GFace.h"
#include "MPoint.h"
#include "GmshMess... |
#include<algorithm>
#include<bitset>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<iomanip>
#include<iostream>
#include<map>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<string>
#include<vector>
#define gcd(a, b) __gcd(a, b)
#define lcm(a, b) a / gcd(a, b) * b
... |
//
// TextRenderer.cpp
// interface/src/ui
//
// Created by <NAME> on 4/24/13.
// Copyright 2013 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 <QFont>
#include <QPaintEngine>
#includ... |
#include "particle.hpp"
#include "shaders.hpp"
#include <wayfire/core.hpp>
#include <thread>
#include <wayfire/debug.hpp>
void Particle::update(float time)
{
if (life <= 0) // ignore
return;
const float slowdown = 0.8;
pos += speed * 0.2f * slowdown;
speed += g * 0.3f * slowdown;
if (lif... |
#include "Sprite.h"
Sprite::Sprite()
{
ptr = NULL;
sprite = NULL;
layer = -1;
w_mod = 0;
h_mod = 0;
stop_box_x1 = -1;
stop_box_y1 = -1;
stop_box_x2 = -1;
stop_box_y2 = -1;
interact_x1 = -1;
interact_y1 = -1;
interact_x2 = -1;
interact_y2 = -1;
};
Sprite::Sprite (Sprite* s, Sprite* p)
{
if (s == NULL &... |
// Copyright (c) 2014-2018 LG Electronics, 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... |
//--------------------------------------------------------------------------------
// This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed
// under the MIT License, available in the root of this distribution and
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.ph... |
#include <CUnit/CUnit.h>
#include <GPS.h>
#include <string.h>
class TestPort {
public:
TestPort()
:m_position(0) {
}
void write(char c) {
m_buffer[m_position++] = c;
}
void write(const char *in_str,int in_l) {
memcpy(m_buffer + m_position,in_str,in_l);
m_position += in_l;
}
const char... |
#include <qxstl/serialization.hpp>
#include "appmainwindow.hpp"
namespace qx = qxstl::event;
AppMainWindow::AppMainWindow()
: loader{FormLoader(this, ":/assets/user_interface.ui")}
{
form = loader.GetForm();
//====== Set Up Tabs ===================================/q
tab_applauncher = std::make_uniq... |
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <limits>
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <iomanip>
#define sqrt_42 6.48074069840786
using namespace std;
float EPSILON = std::numeric_limits<float>::epsilon();
float Q_rsqrt( float number )
{
long i;
float x2, y;
... |
// Copyright (c) 2014 <NAME>
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#include <sak/easy_bind.hpp>
#include <cstdint>
#include <memory>
#include <vector>
#include <string>
#include <functional>
#include <gtest/gtest.h>
namespace
{
uint32_t global_a = 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.