text stringlengths 3.08k 12.5k |
|---|
/*
* \brief Transactional XML editor terminal frontend
* \author <NAME>
* \date 2017-04-29
*/
/*
* Copyright (C) 2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* Genode includes */
#include <os... |
// 2005-12-20 <NAME> <<EMAIL>>
// Copyright (C) 2005-2017 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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... |
// Copyright (c) 2014-2018 Bauhaus-Universita<NAME>ar
// This Software is distributed under the Modified BSD License, see license.txt.
//
// Virtual Reality and Visualization Research Group
// Faculty of Media, Bauhaus-Universitaet Weimar
// http://www.uni-weimar.de/medien/vr
#include <chrono>
#include <lamure/prov/c... |
//
// Copyright © 2021 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "MirrorPad.hpp"
#include "BaseIterator.hpp"
#include "Decoders.hpp"
#include "Encoders.hpp"
namespace
{
// Convert a linear index into n-dimensional coordinates.
// E.g. index = 2 returns [0, 0, 2].
inl... |
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "PersonaPrivatePCH.h"
#include "SAnimTrackPanel.h"
#include "ScopedTransaction.h"
#define LOCTEXT_NAMESPACE "AnimTrackPanel"
//////////////////////////////////////////////////////////////////////////
// S2ColumnWidget
void S2ColumnWidget::Const... |
#include <board.h>
#include <tuning.h>
#include <vrefbuf.h>
#include <numeric.h>
namespace board
{
using namespace dacdma;
uint16_t adc1_buf[adc_buf_size];
uint16_t adc2_buf[adc_buf_size];
static uint16_t tab_a[OCTAVES];
static uint16_t tab_b[OCTAVES];
static inline float remap4096(float x)
{
return remap(4095... |
#define NDEBUG
#include <iostream>
#include "field.h"
#include "cell.h"
using namespace std;
Field::Field(){
m_isGameActive = true;
// clear screen, hide cursor
cout << "\e[2J\e[?25l\e[1;1H";
// show header
cout <<" ";
for (int i=0;i<m_n;i++){
cout << " "<<char(i+65);
}
cout <<endl<<" ";
for (in... |
/*******************************************************************************
* Copyright (c) 2014, 2018 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
/******************************************************************************\
* Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik
* Copyright (c) 2001
*
* Author(s):
* <NAME>
*
* Description:
*
*
******************************************************************************
*
* This pro... |
/*
* test_create_table_reload.cpp
*
* Created on: 2020/10/04
* Author: iizuka
*/
#include "test_utils/t_macros.h"
#include "base/StackRelease.h"
#include "base/UnicodeString.h"
#include "base/ArrayList.h"
#include "base_io/File.h"
#include "base_io/ByteBuffer.h"
#include "engine/CodableDatabase.h"
#inclu... |
/**
* Copyright (c) 2012-2016 Moodstocks SAS
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge... |
#pragma once
#include "interfaces/ibaseclientdll.hpp"
#include "interfaces/iprediction.hpp"
#include <map>
#include <utility>
namespace Netvar {
inline std::map<std::pair<std::string_view, std::string_view>, uintptr_t> offsets {
/* Entity */
{std::make_pair("DT_BaseEntity", "m_Collision"), 0},
... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkShrinkFilter.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITH... |
#include <cstdlib>
#include <iostream>
#include "FileUtil.h"
#include "TextureManager.h"
#define STB_IMAGE_IMPLEMENTATION
#define STBI_ONLY_PNG
#include "stb_image.h"
#define PF_FILESIZE 2048
#define PF_CHARS_PER_LINE 16
#define PF_CHARS_PER_COLUMN 16
#define PF_PIXELS_PER_CHAR 8
#define PF_PIXELS_PER_LINE (PF_PIXEL... |
#include <gtest/gtest.h>
#include <stdexcept>
#include "single_entities/terms/numbers/Integer.hpp"
TEST(IntegerTests, plusAssignmentOperatorsTest) {
Integer val;
EXPECT_EQ(val += 2, 2);
}
TEST(IntegerTests, plusOperatorsTest) {
Integer val;
EXPECT_EQ(val + 2, 2);
EXPECT_EQ(2 + val, 2);
}
TEST(IntegerTest... |
#include "CH16Demo.h"
#include "FixedFunctionPrimitives.h"
#include "glad/glad.h"
#include "imgui/imgui.h"
#include "imgui/ImGuizmo.h"
#include <iostream>
void CH16Demo::Initialize(int width, int height) {
DemoBase::Initialize(width, height);
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
float val[] = { 0.5f, 1.0f,... |
#include "Precharger.h"
#include "formula.h"
#include "global.h"
Precharger::Precharger() {
// TODO Auto-generated constructor stub
initialized = false;
enableLatency = 0;
}
Precharger::~Precharger() {
// TODO Auto-generated destructor stub
}
void Precharger::Initialize(double _voltagePrecharge, int _numColumn, ... |
/*
* 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 ... |
/********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... |
#include "FusionEKF.h"
#include <iostream>
#include "Eigen/Dense"
#include "tools.h"
#include <cmath>
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::cout;
using std::endl;
using std::vector;
using std::cerr;
/**
* Constructor.
*/
FusionEKF::FusionEKF() {
is_initialized_ = false;
previous_timestamp_ =... |
#include <gtest/gtest.h>
#include <iostream>
#include "Navigation/Parameters.h"
#include "Navigation/PositionControlBase.h"
#include "Navigation/PurePursuitControl.h"
#include "Navigation/RotationControl.h"
using namespace rd;
void simulate(PointOriented& robotPose, const Speed& speed, double dt) {
robotPose += P... |
#include <ros/ros.h>
#include <tf/tf.h>
#include <std_msgs/String.h>
#include <vector>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Twist.h>
#include <move_base_msgs/MoveBaseAction.h>
#include <actionlib/server/simple_action_server.h>
#include "door_pass/CDoorDetection.h"
typedef actionlib::SimpleActionS... |
#include "MySocksMgr.h"
#include <assert.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <cstring>
#include <boost/log/trivial.hpp>
#include "MySock.h"
#include "MyContext.h"
#include "MyApp.h"
#include "MyCUtils.h"
union sockaddr_all{
struct sockaddr s;
str... |
// Author: <NAME>
// © 2016 <EMAIL>
//
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <thread>
#include <boost/program_options.hpp>
#include <boost/timer/timer.hpp>
#include <PBnumbers.h>
#include <PBgenerator.h>
#include <BigInt.h>
namespace po = boost::program_options;
using ... |
/** @defgroup MleDWPType Magic Lantern Digital Workprint Library API - Type */
/**
* @file DwpVector2.cpp
* @ingroup MleDWPType
*
* This file implements the 2-element vector data type used by the Magic Lantern Digital
* Workprint Library API.
*/
// COPYRIGHT_BEGIN
//
// The MIT License (MIT)
//
// Copyright (c)... |
#include "helpers.h"
#include "constants.h"
#include "rpc.h"
#include "conversion.h"
#include <netdb.h>
#include <limits.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
using namespace std;
//--------------------------... |
/*
* Copyright (c) Huawei Technologies Co., Ltd. 2012-2021. All rights reserved.
*/
#include "BaseForkTask.h"
#include "RequestEnvironment.h"
#include "exceptions/BaseException.h"
#include "utils/ExecUtils.h"
#include <grpc/impl/codegen/fork.h>
#include <thread>
#include <utility>
class NoSuchProcessException : pu... |
#include "earClipping.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <GL/glut.h>
#include <unistd.h>
#include <math.h>
#include <algorithm>
#include "../utils.h"
EarClipping::EarClipping():
Triangulation()
{}
EarClipping::~EarClipping()
{}
vector<Triangle> EarClipping::run(){
if(_container... |
#ifdef ONLINE_JUDGE
#include <bits/stdc++.h>
#else
#include <algorithm>
#include <bitset>
#include <list>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
... |
/*
* Copyright (c) 2011, <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
#include <math.h>
#include "ModuleParticles.h"
#include "Application.h"
#include "ModuleAudio.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleCollision.h"
#include "SDL/include/SDL_timer.h"
ModuleParticles::ModuleParticles(const JSON_Object *json) : Module(json)
{}
ModuleParticles::~ModulePa... |
//
// cen64-profile2callgrind: Convert a cen64 profile file into a callgrind one.
//
// CEN64: Cycle-Accurate Nintendo 64 Emulator.
// Copyright (C) 2018 <NAME>
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#define PACKAGE "" // work aroun... |
/*
* Copyright (C) 2011 <NAME>
*
* 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 2.1 of the License, or (at your option) any later version.
*
* As a special exc... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... |
#include <cstdio>
#include <cstdint>
#include <cassert>
#include <vector>
#include <algorithm>
#include <queue>
#include <utility>
#include <memory>
#include <deque>
#include <functional>
template <class Weight>
struct edge {
using value_type = Weight;
size_t src, dst;
value_type cost;
edge(size_t src, size_t... |
// $Id: client.cpp 95746 2012-05-13 12:51:05Z johnnyw $
#include "Callback_i.h"
#include "tao/Messaging/Messaging.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/Strategies/advanced_resource.h"
#include "tao/AnyTypeCode/Any.h"
#include "ace/High_Res_Timer.h"
#include "ace/Get_Opt.h"
#include "ace/Basi... |
/*
* Copyright (c) 2020, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions a... |
#include <glc_planner_core.h>
namespace example{
/**
* This is an example of a discrete input set for the torque limited
* pendulum swingup problem where the sampling of inputs from the
* addmissible torque inputs is equal to the resolution parameter for
* the glc algorithm.
*/
class PendulumTorq... |
// Utilities for fast matrix operations to be wrapped with R in VISION
#include <Rcpp.h>
#include <iostream>
#include <string>
#include <sstream>
using namespace Rcpp;
// [[Rcpp::export]]
void point_mult(NumericMatrix & X, NumericVector & Y) {
// In place pointwise multiplication of matrices X and Y, both of which ... |
#include <iostream>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <utility>
#include <queue>
#include <stack>
using namespace std;
/**********图相关结构定义*************/
struct Edge;
struct Node {
int value;
int in;
int out;
vector<Node*> nexts;
vector<Edge*> edges;
Node(int val) {
valu... |
#include "CodeGen.h"
using namespace llvm;
static GlobalVariable *__BrainF_IndexPtr = NULL;
static GlobalVariable *__BrainF_CellsPtr = NULL;
void Parser::CodeGen(Module *M, IRBuilder<> &B)
{
LLVMContext &C = M->getContext();
if (!__BrainF_IndexPtr) {
// Create global variable |brainf.index|
Type *Ty =... |
/*
Copyright (C) 2011 by <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... |
/*
* halloween.cpp
*
* Halloween Jack O Lantern
*
* Version: 1.0.0
* Author: <NAME> (http://github.com/mhaack)
*/
#include <Homie.h>
#include <NTPClient.h>
#include <OLEDDisplayUi.h>
#include <SSD1306.h>
#include <WiFiUdp.h>
#include "DisplayNode.h"
#include "PIRSensorNode.h"
#include "ServoNode.h"
#include "i... |
#include "U_BLOX_GPS_Arduino_UNO.h"
UBLOX::UBLOX()
{
lng = lat = 0;
dt.year = dt.month = dt.day = dt.hour = dt.minute = dt.second = 0;
//GPS.begin(9600); //Sets the speed (baud rate) for the serial communication. Supported baud rates are 300,
//600, 1200, 2400, 4800, 9600, 14400, 19200,... |
#include "knapsacksolver/generator.hpp"
#include "knapsacksolver/instance.hpp"
#include "knapsacksolver/algorithms/minknap.hpp"
#include <random>
#include <cmath>
#include <algorithm>
using namespace knapsacksolver;
std::ostream& knapsacksolver::operator<<(std::ostream& os, const Generator& data)
{
os << "n " <... |
//
// kylz.cpp
// TaiG8_arch
//
// Created by <NAME> on 05.10.16.
// Copyright © 2016 FriedApple Team. All rights reserved.
//
#include "kylz.h"
void kyap_crypt2(uint8_t *data, uint size)
{
if ( size ) {
do {
*data++ ^= g_zipKey;
--size;
}
while ( size );
}
... |
#include <stdio.h>
#include <stdlib.h>
#include "./asmtk.h"
using namespace asmjit;
using namespace asmtk;
class CmdLine {
public:
CmdLine(int argc, const char* const* argv)
: argc(argc),
argv(argv) {}
bool hasKey(const char* key) const {
for (int i = 0; i < argc; i++)
if (::strcmp(argv[i], k... |
#include "OrganicMatLookup.h"
#include "StockpileUtils.h"
#include "modules/Materials.h"
#include "MiscUtils.h"
#include "df/world.h"
#include "df/world_data.h"
#include "df/creature_raw.h"
#include "df/caste_raw.h"
#include "df/material.h"
using namespace DFHack;
using namespace df::enums;
using df::global::world... |
/*****************************************************************
******************************************************************
*
* Copyright (C) 2017 Trinity Robotics Research Group.
*
*
* FILENAME: ogm.cpp
*
*
* DESCRIPTION: program to make map using occupancy grid mapping.
*
*
* DATE: ... |
//
// 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.
// * Redistributions in bin... |
#include "rtpconfig.h"
#include "rtpsocketutil.h"
#include "rtpsocketutilinternal.h"
#include "rtpsession.h"
#include "rtpsessionparams.h"
#include "rtperrors.h"
#include "rtpsourcedata.h"
#include "rtptcpaddress.h"
#include "rtptcptransmitter.h"
#include "rtppacket.h"
#include <string.h>
#include <stdlib.h>
#include <... |
/*
* Copyright 2016 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... |
// See LICENSE_CELLO file for license and copyright information
/// @file enzo_EnzoFieldArrayFactory.cpp
/// @author <NAME> (<EMAIL>)
/// @date Wed May 1 2019
/// @brief [\ref Enzo] Implementation of EnzoFieldArrayFactory class
#include "cello.hpp"
#include "enzo.hpp"
//---------------------------------... |
#include "bench.h"
#include "benchmark/benchmark.h"
#include "codegen/codegen_c.h"
#include "taco/util/timers.h"
#include "utils.h"
#include "taco/tensor.h"
#include "taco/format.h"
#include "taco/index_notation/index_notation.h"
#include "taco/index_notation/tensor_operator.h"
#include "taco/lower/lower.h"
#include ... |
//#include "blocksOverlap.h"
#include "ChimericDetection.h"
#include "ChimericSegment.h"
#include "ReadAlign.h"
int chimericAlignScore (ChimericSegment & seg1, ChimericSegment & seg2)
{
int chimScore=0;
uint chimOverlap = seg2.roS>seg1.roS ? (seg2.roS>seg1.roE ? 0 : seg1.roE-seg2.roS+1) : (seg2.roE<seg1.roS ?... |
//
// ButtonPanel.cpp
// Demo
//
// Created by <NAME> on 2014-11-02.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#include "MenuPanel.h"
MenuPanel::MenuPanel(axWindow* parent,
const axRect& rect):
// Parent.
axPanel(parent, rect)
{
std::string app_path(axApp::GetInstance()->G... |
/*
* 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... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
*
* COPYRIGHT(c) 2017 STMicroelectronics
*
* Redistribution and... |
#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <map>
#include <set>
#include <vector>
#include <utility>
#include <queue>
#include <stack>
#include <chrono>
#include <random>
#include <array>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#de... |
#include <ATen/TensorUtils.h>
#include <torch/extension.h>
// #include "voxelization.h"
namespace {
template <typename T, typename T_int>
void dynamic_voxelize_kernel(const torch::TensorAccessor<T, 2> points,
torch::TensorAccessor<T_int, 2> coors,
const std::v... |
#include "opencv2\opencv.hpp"
#undef min
#include <Windows.h>
#include <iomanip>
#include <vector>
#include <string>
#include <iostream>
static const int cDepthWidth = 512;
static const int cDepthHeight = 424;
static const int cColorWidth = 1920;
static const int cColorHeight = 1080;
... |
#include <TFile.h>
#include <TTree.h>
#include <TH2F.h>
#include <TH1F.h>
#include <TF1.h>
#include <map>
using namespace std;
// input data
Int_t hit;
Double_t ae[16];
ULong64_t at[16];
Double_t afStrip[16], abStrip[16];
Double_t afe[16], abe[16];
Double_t me[16];
struct pInfo { // partic... |
#include <gst/gst.h> // This is just for logging
#include "ImageProcessor.h"
/*
* Set this env variable to get logs from this file:
* export GST_DEBUG=2,mxnet:8
*/
GST_DEBUG_CATEGORY_STATIC (mxnet_infer);
#define GST_CAT_DEFAULT mxnet_infer
ImageProcessor::ImageProcessor()
: ctx(Context::cpu()),
ex... |
#include "ofApp.h"
#define MAX_GENERATIONS 8
#define SIDE 16
// before looking at this check out the basics and scoring examples
// this is the most complex example in ofxPDSP, and it shows you an example of workflow
// instead of hardcoding your values you should write your own
// generative sequences or code to p... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
//Copyright (C) 2011 <NAME>
//Released under MIT License
//license available in LICENSE file, or at http://www.opensource.org/licenses/mit-license.php
#include<silo.h>
#include<iostream>
#include"MersenneTwister.h"
#include<string>
#include<cstdlib>
#include<cstring>
#include<blitz/array.h>
#include"densityOperator.h... |
//
// Licensed to Green Energy Corp (www.greenenergycorp.com) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Green Enery Corp licenses this file
// to you under the Apache License, Version 2.0 (the
// "... |
// Definitions of ethernet packets.
#include <string.h>
#include <stdio.h>
#include "ether.h"
#include "udp.h"
#include "iolib.h"
#include "arp.h"
static _ip_addr_t g_my_ip; // our IP, once we have it
static unsigned short g_my_port; // our port, from the pkt prep.
void ip_init(void)
{
ip_get_zero(&g_my_i... |
/*
* vpp.cpp : pyvoro C interface to voro++ (implementation)
*
* this file provides pure C wrapper functions for creating, manipulating,
* performing computations on and exporting the voro++ C++ classes.
*
* this extension to voro++ is released under the original modified BSD license
* and constitutes an Extensi... |
//
// Created by egrzrbr on 2019-05-01.
//
template<typename T, size_t N>
int irecv_request(MPI_Request &sreq, MPI_Status &sprobe, MPI_Message &msg, int rank) {
auto input = make_arr<T, N + 4>();
MPI_Imrecv(&input[0], input.size(), MPI_INT, &msg, &sreq);
printf(" [ %i/%i ] <<<<< : RECV data { STATUS[SRC:%i, ... |
// COCOA class implementation file
//Id: ParameterMgr.cc
//CAT: Model
//
// History: v1.0 10/11/01 <NAME>
#include "Alignment/CocoaModel/interface/ParameterMgr.h"
#include "Alignment/CocoaUtilities/interface/ALIUtils.h"
#include "Alignment/CocoaModel/interface/ALIUnitsTable.h"
#include <CLHEP/Random/R... |
// Copyright (c) 2012 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 "android_webview/native/android_stream_reader_url_request_job.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
... |
/* ================================================================================
* Copyright: (C) 2021, SIRRL Social and Intelligent Robotics Research Laboratory,
* University of Waterloo, All rights reserved.
*
* Authors:
* <NAME> <<EMAIL>>
*
* CopyPolicy: Released under the terms of the BSD 3-Cl... |
// This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2019 polarphp software foundation
// Copyright (c) 2017 - 2019 zzu_softboy <<EMAIL>>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license information
// S... |
#include "compass.h"
#include "main.h"
Compass::Compass(float x, float y, float z, float angle_x, float angle_y, float angle_z, color_t color)
{
this->position = glm::vec3(x, y, z);
this->rotation_x = angle_x;
this->rotation_y = angle_y;
this->rotation_z = angle_z;
static GLfloat vertex_buffer_dat... |
#include "ffmpges.h"
#include <QDebug>
#include <QFile>
#include <QDateTime>
extern "C" {
// 设备
//#include <libavdevice/avdevice.h>
// 工具(比如错误处理)
#include <libavutil/avutil.h>
#include <libavcodec/avcodec.h>
#include <libavutil/imgutils.h>
}
FFmpges::FFmpges()
{
}
void printErrorMessage(const char *message, int e... |
#include "AtJsonParser.h"
#include "import/libjson/libjson.h"
#include <vector>
AtJsonParser::AtJsonParser()
{
}
AtJsonParser::~AtJsonParser()
{
}
Handle<Object> AtJsonParser::parse( const JSONNode &n ) {
Isolate* isolate = Isolate::GetCurrent();
Handle<Object> ret = Object::New( isolate );
JSONNode::con... |
/*
* Copyright 2011,
* <NAME>,
*
* CNRS
*
*/
/* -------------------------------------------------------------------------- */
/* --- INCLUDES ------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
#include <ros/rate.h>
#in... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <dirent.h>
#include <errno.h>
#include <unistd.h>
#include <vector>
#include <opencv2/opencv.hpp>
#include "mot.h"
#include "SH_ImageAlgLogSystem.h"
static void log_fprintf(E_CommonLogLevel leve... |
/*
* Copyright 2017 Rice University
*
* 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... |
/* XMRig
* Copyright (c) 2018-2020 tevador <<EMAIL>>
* Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2021 XMRig <https://github.com/xmrig>, <<EMAIL>>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Gen... |
#include <SFML/Graphics.hpp>
#include <iostream>
#include "fluid.h"
#include "functions.h"
#include "grid.h"
#include <sstream>
std::string to_str (float dt){
//Convert dt to string
std::ostringstream os;
os << dt;
return os.str();
}
void clickCheck(std::vector<grid> g, sf::Vector2i mp, int N) {
for (int i = 0;... |
#include <math.h>
#include <uWS/uWS.h>
#include <iostream>
#include <string>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include "json.hpp"
#include "PID.h"
// for convenience
using nlohmann::json;
using std::string;
using std::cin;
using std::cout;
// For... |
// (c) <NAME>. All Rights Reserved.
// Purpose: To illustrate single inheritance, how the member initilazation list
// is used to specify which base class constructor should be implicitly invoked,
// and the significance of the protected access region.
// Here, we've generalized the attributes and behaviors relevant ... |
#include "libMTSMaster.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <tchar.h>
#else
#include <dlfcn.h>
#endif
typedef void *(*Callback)(int);
typedef void (*mts_c)(Callback);
typedef void (*mts_void)(void);
typedef bool (*mts_bool)(void);
typedef int (*mts_int)(void);
typedef void (*mts_p... |
// Copyright (c) 2014-2018 Bauhaus-Universita<NAME>ar
// This Software is distributed under the Modified BSD License, see license.txt.
//
// Virtual Reality and Visualization Research Group
// Faculty of Media, Bauhaus-Universitaet Weimar
// http://www.uni-weimar.de/medien/vr
#include <memory>
#include <cmath>
#inclu... |
#include <cstdio>
#include <cstdlib>
using namespace std;
const int MIN_DATA = -0xFFFF;
typedef struct HeapStruct *MinHeap;
typedef int ElementType;
MinHeap create(int max_size);
MinHeap create_by_array(int mode, ElementType *data, int length);
bool is_empty(MinHeap h);
bool is_full(MinHeap h);
void insert(MinHeap h,... |
// @HEADER
// ************************************************************************
//
// Digital Image Correlation Engine (DICe)
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. ... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <string>
#include <fstream>
#include <streambuf>
using namespace std;
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void processInput(GLFWwindow* window);
void loadFile(const char* filePath, char** shaderSourc... |
/*
Simple example using sendfile facility.
*/
#include <iostream>
#include <args.hxx>
#include <restinio/all.hpp>
#include <restinio/tls.hpp>
//
// app_args_t
//
struct app_args_t
{
bool m_help{ false };
std::uint16_t m_port{ 8080 };
std::string m_address{ "localhost" };
std::size_t m_pool_size{ 1 };
std::st... |
#include "ClassManager.hpp"
#include "Consumable.hpp"
#include "ConsumableConstants.hpp"
#include "CorpseCalculator.hpp"
#include "CorpseFactory.hpp"
#include "ItemManager.hpp"
#include "RaceManager.hpp"
#include "ResistancesCalculator.hpp"
#include "RNG.hpp"
#include "SkinningConstants.hpp"
using namespace std;
map<... |
/*
* Written by Solar Designer and placed in the public domain.
* See crypt_blowfish.c for more information.
*
* contrib/pgcrypto/crypt-gensalt.c
*
* This file contains salt generation functions for the traditional and
* other common crypt(3) algorithms, except for bcrypt which is defined
* entirely in crypt_bl... |
#include "horizon_data.h"
char* horizon_body_get(HORIZON_BODY_IDS hb)
{
switch(hb)
{
case HORIZON_BODY_IDS::EARTH:
return "399\r\n\n";
case HORIZON_BODY_IDS::JUPITER:
return "599\r\n\n";
case HORIZON_BODY_IDS::MARS:
return "499\r\n\n";
case HORIZON_BODY_IDS::MERCURY:
return "199\r\n\n";
case... |
//
// Copyright (c) 2018 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 law... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
/***********************************************************************************
* Copyright (c) 2017, UT-Battelle
* 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 o... |
// Copyright 2017-2020 Fitbit, Inc
// SPDX-License-Identifier: Apache-2.0
#include <string.h>
#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
#include "CppUTest/MemoryLeakDetectorNewMacros.h"
#include "xp/common/gg_logging.h"
#include "xp/common/gg_results.h"
#include "xp/common/gg_system.h"
... |
/**
* @file ExampleAbsoluteCoordinates.cpp
*
* \brief This example demonstrating working example of controlling (task space)
* a model that is build using absolute (Cartesian) coordinates. Since the
* underlying dynamics use constraint projection, constraints are implicitly
* accounted. For more details please re... |
#pragma once
#include <ctime>
#include <cassert>
#include <cmath>
#include <utility>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include <memory>
#include <iostream>
#include <Eigen/Dense>
#include <opencv2/opencv.hpp>
#include <opencv2/core/eigen.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.