text stringlengths 5.71k 33.7k |
|---|
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <immintrin.h>
#include <random>
#include <math.h>
#include <sys/time.h>
#include <sys/stat.h>
//----------------------------------------------------------------------
const double density = 0.5;
const int N = 400000;
const int MAX_PAIRS = 30 * N;
double... |
#include <iostream>
#include "graph_constructors.hpp"
bool graspi::build_graph(const std::string& name,
graph_t*& G,
dim_g_t& d_g,
vertex_colors_t& C,
edge_weights_t& W,
edge_colors_t& L) {
... |
#include <protobuf/LogFrame.pb.h>
#include <Constants.hpp>
#include <Network.hpp>
#include <Referee.hpp>
#include <Robot.hpp>
#include <SystemState.hpp>
#include <gameplay/GameplayModule.hpp>
#include <planning/Instant.hpp>
// for python stuff
#include "DebugDrawer.hpp"
#include "robocup-py.hpp"
using namespace Game... |
//Illustration of intra prediction and the effect of residuals on transforms
// <NAME>, 2017-2022
//This code is licensed under the 3-Clause BSD License. See LICENSE file for details.
#include <iostream>
#include <array>
#include <cassert>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/i... |
#include "clang/Frontend/FrontendPluginRegistry.h"
#include "clang/AST/AST.h"
#include "clang/AST/Type.h"
#include "clang/Frontend/CompilerInstance.h"
#include "llvm/Support/raw_ostream.h"
#include "NodeTyper.h"
#include "TyperVisitor.h"
#include "llvm/Support/Debug.h"
#include "enerc.h"
#include <iostream>
#include <s... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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 "nsCOMPtr.h"
#include "ns... |
// Copyright (c) 2019 EPI-ONE Core Developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "block.h"
#include "merkle.h"
#include <unordered_set>
BlockHeader::BlockHeader(uint16_t version_,
... |
////////////////////////////////////////////////////////////////////////////
// //
// Helper class for PWGPP TRD train //
// //
// Authors... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2017 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... |
#include <iostream>
#include "lua_bind.h"
lb::Camera::~Camera() {}
lb::Object::~Object() {}
lb::BSDF::~BSDF() {}
lb::LuaBind::~LuaBind() {
if (lua_state_) {
lua_close(lua_state_);
lua_state_ = nullptr;
}
}
void lb::LuaBind::runScript(const std::string& filename) {
lua_state_ = luaL_new... |
/*
* Copyright 2010 by <NAME>
*
* Please refer to the end of the file for licensing information
*/
#include "RomanInputMethod.h"
using namespace waitzar;
using std::vector;
using std::pair;
using std::string;
using std::wstring;
//This takes responsibility for the model and sentence memory.
... |
/*
* Copyright 2014 <NAME>. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*/
#include "common.h"
#include "bgfx_utils.h"
#include "imgui/imgui.h"
#include "camera.h"
#include <bgfx/bgfx.h>
struct u_paramsDataStruct
{
float timeStep;
int32_t dispatchSize;
float gravity;
... |
#include <iostream>
#include <fstream>
#include <algorithm>
#include <cmath>
#include <cstring>
#include "FaceLandmarkerPrivate.h"
#ifdef _WIN32
#include <WinSock2.h>
#else
#include <arpa/inet.h>
#endif
#ifdef _WIN32
#pragma comment(lib, "Ws2_32.lib")
#endif
FaceLandmarkerPrivate::FaceLandmarkerPriva... |
#include <absl/strings/str_split.h>
#include <boost/algorithm/string.hpp>
#include <boost/program_options.hpp>
#include <cartographer/common/configuration_file_resolver.h>
#include <cartographer/io/internal/mapping_state_serialization.h>
#include <cartographer/io/proto_stream.h>
#include <cartographer/mapping/2d/map_li... |
/*
* Copyright (c) 2018 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2022-01-01
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
#include <iostream>
#include <fstream>
#include <stdexcept>
#include "tiposPacote.hpp"
using namespace std;
class arvoreB {
friend class sequenceset;
private:
pacote* Raiz;
unsigned numPacotes;
pacote* dividirPacote(pacote* umPacote);
public:
arvoreB();
~arvore... |
#include <ros/ros.h>
#include <servo_controller/servo_control.h>
#include <servo_controller/servo_status.h>
#include <servo_controller/servo_array_status.h>
#include <std_msgs/Int32.h>
#include <stdio.h> // standard input / output functions
#include <string.h> // string function definitions
#include <unistd.h> // UNIX ... |
#include "LowRank.h"
LowRank::LowRank(integer inm, integer inn, integer inr) : ProductManifold(3,
new Stiefel(inm, inr), static_cast<integer> (1), new Euclidean(inr, inr), static_cast<integer> (1), new Stiefel(inn, inr), static_cast<integer> (1))
{
m = inm;
n = inn;
r = inr;
name.assign("LowRank");
d... |
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <sensor_msgs/point_cloud_conversion.h>
#include <std_msgs/Int32.h>
#include <sensor_msgs/PointCloud.h>
#include <sensor_msgs/PointCloud2.h>
#include <geometry_msgs/Point.h>
#include <std_msgs/ColorRGBA.h>
#include <std_msgs/Float32.h>
#include <visualizat... |
/* ---------------------------------------------------------------------------
Table access class
Generated on nodepp.org on 2022-03-29 20:05:41, generator v.2.0.1
Using C-style strings
Using exceptions
--------------------------------------------------------------------------- */
#include "Cusers.h"
boo... |
/*####COPYRIGHTBEGIN####
-------------------------------------------
Copyright (C) 2005 <NAME>
Contributions by <NAME> in 2008.
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
... |
#include "commands.h"
#include <string.h>
#include <chrono>
#include <ctime>
#include "offsets.h"
#include "yms.h"
#include "selection.h"
#include "targeting.h"
#include "unit.h"
#include "player.h"
#include "save.h"
#include "log.h"
#include "sync.h"
#include "warn.h"
#pragma pack(push, 1)
struct MapDl
{
uint8_... |
/*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistribu... |
#include "grid_rect.h"
#include "core/engine.h"
#include "core/variant_parser.h"
void GridRect::set_cell_size(const Vector2 &p_size) {
cell_size = p_size;
update();
}
void GridRect::set_cell_origin(CellOrigin p_origin) {
cell_origin = p_origin;
update();
}
void GridRect::set_cell_line_width(float p_width) {
ce... |
/**
* Copyright (C) 2021 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
// Code adapted: removed main function and return the int vectors
#include <algorithm>
#include <cassert>
#include <cmath>
// Import IPknot libraries
#include <ip.h>
#include <aln.h>
#include <fold.h>
// ============================================================================
// Forwards
// =====================... |
/* Copyright 2019 FXCM Global Services, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use these files 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 agr... |
#include <nvme/io_controller.hpp>
#include <libsigma/sys.h>
#include <iostream>
#include <sstream>
#include <sys/mman.h>
#include <assert.h>
#include <cstring>
#include <string_view>
#include <libdriver/math.hpp>
constexpr uint32_t get_vs(uint16_t major, uint8_t minor, uint8_t tertiary){
return (major << 16) | (m... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The PIVX developers
// Copyright (c) 2018 The Tessacoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://w... |
#include "test_lite.h"
#include "saber/lite/funcs/saber_conv.h"
#include "saber/lite/funcs/neon/impl/conv_arm_impl.h"
using namespace anakin::saber;
using namespace anakin::saber::lite;
int g_cluster = 0;
int g_threads = 1;
int g_test_iter = 2;
bool g_basic_test = false;
bool g_compare_result = true;
bool g_flag_relu... |
#include "Bits.h"
#include "StopWords.h"
#include "fctypes.h"
#include "utf8_fast.h"
#include "Abbreviations.h"
#include "XmlNode.h"
#include "Mem.h"
#include "Sections.h"
#include "Process.h"
#include "tokenizer.h"
#include "GbUtil.h"
#include "Errno.h"
#include "Log.h"
Bits::Bits()
: m_tr(NULL),
m_bits(NULL),
... |
/*
* omnis.xcomp.framework
* =====================
*
* oBaseComponent.cpp
* Base class to subclass components from. These classes implement alot of the basics that each component shares
*
* <NAME>
*
* Todos:
* - Complete this implementation
* - Make addToTraceLog work with qchar (or make a version th... |
/*
* process_Lumpy.cpp
*
* Created on: Feb 24, 2015
* Author: fsedlaze
*/
#include "Process_Lumpy.h"
short get_type(const char * type) {
//std::cout<<type<<std::endl;
if (strncmp(type, "DELETION", 8) == 0) {
return 0;
} else if (strncmp(type, "DUPLICATION", 11) == 0) {
return 1;
} else if (strncmp(... |
#include "htssyn.h"
static CFSWString make_char_string(const CFSWString &str) {
CFSWString result;
for (INTPTR ip = 0; ip < str.GetLength(); ip++) {
wchar_t c = htssyn::replace_fchar(str[ip]);
if (!c) c = str[ip];
if (htssyn::is_char(c)) result += c;
}
return result;
}
static wchar_t shift_patte... |
/***************************************************************************
*
* 25.random.shuffle.cpp - test exercising 25.2.11 [lib.alg.random.shuffle]
*
* $Id$
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more... |
#include "group.h"
#include "bamutil.h"
#include "reference.h"
Group::Group(Options* opt){
mOptions = opt;
}
Group::~Group(){
map<string, Pair*>::iterator iter;
for(iter = mPairs.begin(); iter!=mPairs.end(); iter++) {
delete iter->second;
}
}
void Group::addPair(Pair* p){
string qname = ... |
// Copyright (c) 2009-2016 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "EAMForceCompute.h"
#include <vector>
using namespace std;
#include <stdexcept>
namespace py = pybind11;
/*! \file EAMForceCompute.cc
\brief Defin... |
#pragma once
#include <string>
// About OpenGL function loaders: modern OpenGL doesn't have a standard header
// file and requires individual function pointers to be loaded manually. Helper
// libraries are often used for this purpose! Here we are supporting a few
// common ones: gl3w, glew, glad. You may use another... |
// Download dataset at https://www1.nyc.gov/site/tlc/about/tlc-trip-record-data.page.
// The following code is implemented based on the format of 2016 datasets.
extern "C" {
#include <runtime/runtime.h>
}
#include "deref_scope.hpp"
#include "device.hpp"
#include "manager.hpp"
#include <DataFrame/DataFrame.h>
#includ... |
#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 "json.hpp"
#include "spline.h"
// for convenience
using nlohmann::json;
using std::string;
using std::vector;
//! Horizon distance... |
#include "LoadAction.h"
#define CLF(lineCounter) getLineFormat(lineCounter)
#define DELETEFIGUREWORDS(figureWords) {\
if (figureWords != NULL)\
delete[] figureWords;\
}
#define INVALIDFILE(out, figureWords); {\
out->PrintMessage("Invalid File.");\
DELETEFIGUREWORDS(figureWords)\
return false;\
}
#define IFINVA... |
#include "text.h"
struct point {
GLfloat x;
GLfloat y;
GLfloat s;
GLfloat t;
};
typedef struct {
float x, y, z; // position
float s, t; // texture
float r, g, b, a; // color
} vertex_t;
FT_Library ft;
ftgl::vertex_buffer_t * buffer;
GLuint shader;
GLuint selection_shader;
ftgl::mat4 mode... |
#include "feature_refiner_klt.h"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <memory>
#include <cassert>
namespace{
/////////////////////////////////////////////////////////////
// image processing
double interpolate(
double x, double y,
const core::Image& img)
{
assert(img.szPixel_==4... |
#include "stdafx.h"
#include "ciawfb.h"
/////////////////////////////////////////////////
// CiaWorldFactBook-Country
void TCiaWFBCountry::AddFld(const TStr& _CountryNm,
const TStr& SecNm, const TStr& FldNm, const TStr& FldVal){
TStr _UcCountryNm=_CountryNm.GetUc();
if (CountryNm.Empty()){CountryNm=_UcCountryNm;}... |
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include "net.h"
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <thread>
#include <queue>
#include <mutex>
#include <unistd.h>
#include "base64.h"... |
#include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include "Primitive.h"
#include "PhysBody3D.h"
#include "ModulePhysics3D.h"
#include "ModuleAudio.h"
#define MASS 0
ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled)
{
}
ModuleSceneIntro::~... |
/*
* Copyright 2015-2019 Autoware Foundation. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
//
// BSP
// (c) <NAME> 1998-2007 bsd licence
// see file bsp.h
//
// this module provides csg boolean operation (geomod) support
//
//
#include "bsp.h"
template<class T> T Pop(std::vector<T> &a){ T t = a.back(); a.pop_back(); return t; }
static int fusenodes=0;
BSPNode *BSPClean(BSPNode *n)
{
// removes ... |
#include "simulation_system.h"
#include "config.h"
#include "GitSHA1.h"
#include <sstream>
#include <iomanip>
#ifdef USE_MPI
#include <mpi.h>
#endif
SimulationSystem::SimulationSystem(settings_t &s)
: settings(s), error_matrices(&error_per_bin_lsq, &error_per_bin_gth, &error_per_bin_pow, &error_per_bin_wl) {
#ifdef ... |
/*=============================================================================
SDLClient.cpp: USDLClient code.
Copyright 1997-1999 Epic Games, Inc. All Rights Reserved.
Revision history:
* Created by <NAME> (based on XDrv).
4/2/00 <NAME><<EMAIL>>
-Changed 'defaultres' to a more default 640x480
============... |
/*---------------------------------------------------------------------------------------------------------
File: CScribeReader.cpp
Project: Scribe2NeoScribe
Created by <NAME> on 21/06/13.
Copyright (c) 2013 The Early Music eResearch System (THEMES). All rights reserved.
History
2... |
/* __ ___ ____ _____ ______ _______ ________ _______ ______ _____ ____ ___ __
//
// Copyright (C) 1993-2012, ART+COM AG Berlin, Germany <www.artcom.de>
//
// This file is part of the ART+COM Standard Library (asl).
//
// It is distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
/////////////////////////////////////////////////////////////
// //
// Copyright (c) 2003-2017 by The University of Queensland //
// Centre for Geoscience Computing //
// http://earth.uq.edu.au/centre-geoscience-computing //
// ... |
/*
* This file is part of CasADi.
*
* CasADi -- A symbolic framework for dynamic optimization.
* Copyright (C) 2010-2014 <NAME>, <NAME>, <NAME>,
* <NAME>. All rights reserved.
* Copyright (C) 2011-2014 <NAME>
*
* CasADi is free software; you can redistribute it and/or
... |
#include"global.h"
extern mapChannelList_t *global_channelList; //20110827 @dennton
extern dynObjectType_t dynObjectType_wormhole;
// this is copy of waypoint file, probobly we need to add/remove something
//
// todo2: Wormhole discovery not supported yet, all wormholess are always available
// todo3: There ... |
#include <cstdio>
#include "../resource.h"
#include "SoccerGame.h"
// Default Constructor.
SoccerGame::SoccerGame(
HINSTANCE in_mainApplicationInstance,
HWND in_mainWindowHandle,
Vector2D in_mainWindowCenter
) : SPEED_BALL_MAX(1000.0f), SPEED_PLAYER_RIGHT(300.0f)
{
// Save a copy of the main window application i... |
#include "tds_model.h"
#include "ui_tds_model.h"
#include <vector>
#include <iostream>
#include <QFileDialog>
#include <fstream>
#include <sstream>
TDSmodel::TDSmodel(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::TDSmodel),
compared(new float[STEPS]),
dataMultiplier(1)
{
for (int i = 0; i < STEPS; i++)
com... |
#include <Windows.h>
#include <iostream>
#include <fstream>
#include <string>
#include <set>
#include <sstream>
#include <iomanip>
#include <ctime>
#include <vector>
#include <direct.h>
using namespace std;
// path check file
#define KERNEL_PROJECT_PATH "./kernel/kernel.vfproj"
class VC10Gen
{
public:
// build ids... |
#include "stdafx.h"
#include "video.h"
#include "riffs.h"
#include <string>
#include <vector>
#include <list>
#include <map>
#include <ctype.h>
#include <assert.h>
#include <algorithm>
#include <math.h>
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/Fl... |
/*
Copyright (c) 2009 Peter "Corsix" Cawley
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, distr... |
#include <iostream>
#include <iomanip>
#include <random>
#include <fstream>
#include <sstream>
#include <math.h>
#include <time.h>
#include "helper_functions.h"
#include <omp.h>
int num_particles = 25000;
//Set up parameters here
double delta_t = 0.1; // Time elapsed between measurements [sec]
double sensor_range =... |
/**
* Created by Beck on 3/7/2018
* Indirect Extended Kalman Filter for the translation of the camera
* fusing visual information with the accelerometer, given the pose;
* With imu in 400Hz and camera translation in 30Hz
* V1: estimation for rotation only
* V2: give the translation of the shield
*/
#include <ios... |
#include <cstring>
#include <iostream>
#include "yjson.h"
using namespace std;
using namespace yph;
static int mainRet = 0;
static int testCount = 0;
static int testPass = 0;
#define EXPECT_BASE(condition, expect, actual) \
do { ... |
#include <RcppEigen.h>
// [[Rcpp::depends(RcppEigen)]]
#include "typedefs.h"
#include "include/helpers.hpp"
#include "include/multivariate_helpers.hpp"
using namespace Rcpp;
using namespace std;
using namespace Eigen;
// **********************************************************************
// calculate elbo for mul... |
#include "Car.h"
#include "Cost.h"
#include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>
#include <string>
void Car::update(double x_in, double y_in, double s_in, double d_in, double yaw_in, double speed_in)
{
x = x_in;
y = y_in;
s = s_in;
d = d_in;
yaw = yaw_in;
waste_d... |
#include "octree.h"
// #include "node.h"
// #include "cudaquery.cuh"
#include <iostream>
#include <fstream>
#include <iomanip>
#include <stdlib.h>
#include <deque>
#include <unordered_set>
#include <random>
#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <GLFW/glfw3.h>
... |
/*
* (c) Copyright 2019 Xilinx, Inc. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
/**
* Copyright 2011-2015 Quickstep Technologies LLC.
* Copyright 2015-2016 Pivotal Software, Inc.
* Copyright 2016, Quickstep Research Group, Computer Sciences Department,
* University of Wisconsin—Madison.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this ... |
/*
* Copyright (C) 2015 Team XBMC
* http://xbmc.org
*
* 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, or (at your option)
* any later version.
*
* This ... |
/*
* main.cpp
*
* Created on: Jun 2, 2011
* Author: papazov
*
* This is a modified implementation of the method presented in the paper
* (freely available on the web):
*
* <NAME> and <NAME>. An Efficient RANSAC for 3D Object
* Recognition in Noisy and Occluded Scenes. In Proceedings of the
* 10th ... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**************************************************************************************************
*** This file was autogenerated from GrRRectBlurEffect.fp; do not modify.
... |
#include <keyboard/keyboard.h>
#include <klogger.h>
void keyboard_type2_state_machine::raw_code(uint8_t ch) {
bool ignore{false};
if (ignore_length > 0) {
if (ignore_codes[0] == ch) {
ignore = true;
--ignore_length;
for (int i = 0; i < ignore_length; i++) {
... |
//version 1.1
#include "Grapher.h"
#include <algorithm>
#define WINDOW_WIDTH 800
#define WINDOW_HEIGHT 600
const GLfloat PI = 3.1415f;
float xrot = 0.0f, yrot = 0.0f, zrot = 0.0f;
void drawExample();
bool flag = true;
bool roIt = false;
GLfloat scal = 1.0;
void key_callback(GLFWwindow * window, int key, int scanco... |
#include "task_manager/task_manager.h"
const std::string name = "task_manager";
Manager::Manager() : spinner_(2) {
action_seq_ = nh_.advertiseService(name + "/action_seq",
&Manager::executeGrammarSequence, this);
grammar_action_ = nh_.advertiseService(name + "/grammar_action",... |
/** Pegasus3d Converter - main program
* @file
*
* This source file is part of the Pegasus3d Converter.
* Copyright (C) 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any
* person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the
* Softwa... |
/*************************************************************************
* Copyright (c) 2015-2021, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#include "group.h"
#include "debug.h"
#include "enqueu... |
//
// Created by jiahua on 19-6-24.
//
#include "db_impl.h"
#include "util.h"
#include <cstdlib>
#include <cassert>
#include <sys/uio.h>
rsdb::DB::DBImpl::DBImpl(std::string pathName, rsdb::OpenOptions options) {
size_t i;
size_t len;
char asciiptr[PTR_SZ + 1];
char hash[(NHASH_DEF + 1) * PTR_SZ + 2]... |
/*-----------------------------------------------------------------------
<NAME> 2017 - 2020
http://trederia.blogspot.com
crogine - Zlib license.
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 softwar... |
//! Constructor with id and material properties
template <unsigned Tdim>
mpm::NorSand<Tdim>::NorSand(unsigned id, const Json& material_properties)
: Material<Tdim>(id, material_properties) {
try {
// Density
density_ = material_properties.at("density").template get<double>();
// Poisson ratio
pois... |
/*
tinyTLS project
Copyright 2015 <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 agreed to in writing, sof... |
// Author(s): <NAME>
// Copyright: see the accompanying file COPYING or copy at
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
/// \file lps2lts_lts... |
/*
This porogram was created by <NAME>
It's purpose is to be run in the MOTD on a linux server
that has fail2ban, Geoip blocking, and Username and password entry
for SSH login
*/
#include <vector>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <cctype>
#include <algorithm>
#incl... |
/*
* This file is a part of Pocket Heroes Game project
* http://www.pocketheroes.net
* https://code.google.com/p/pocketheroes/
*
* Copyright 2004-2010 by <NAME> and <NAME> (iO UPG)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... |
//
// GammaLib: Computer Vision library
//
// Copyright (C) 1998-2015 <NAME> <<EMAIL>> http://lucaballan.altervista.org/
//
// Third party copyrights are property of their respective owners.
//
//
// The MIT License(MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// ... |
#include <iostream>
#include <vsg/all.h>
class InputHandler : public vsg::Inherit<vsg::Visitor, InputHandler>
{
public:
vsg::ref_ptr<vsg::Text> keyboard_text;
vsg::ref_ptr<vsg::Text> pointer_text;
vsg::ref_ptr<vsg::Text> scroll_text;
vsg::ref_ptr<vsg::Text> window_text;
vsg::ref_ptr<vsg::Text> fram... |
/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... |
/*
* Copyright (c) 2018-2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Assertions.h>
#include <AK/Optional.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <LibGfx/Color.h>
#include <LibGfx/SystemTheme.h>
#include <LibIPC/Decoder.h>
#include <LibIPC/Encoder.h>
#include <c... |
#include <Kernel/IO.h>
#include <Kernel/Net/E1000NetworkAdapter.h>
#include <Kernel/PCI.h>
#define REG_CTRL 0x0000
#define REG_STATUS 0x0008
#define REG_EEPROM 0x0014
#define REG_CTRL_EXT 0x0018
#define REG_IMASK 0x00D0
#define REG_RCTRL 0x0100
#define REG_RXDESCLO 0x2800
#define REG_RXDESCHI 0x2804
#define REG_RXDESC... |
/*
* Created by <NAME>
* Copyright (c) 2003-2020 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
#include ... |
// Copyright 2018 The Fuchsia 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 <endian.h>
#include <acpica/acpi.h>
#include <ddk/debug.h>
#include <ddk/protocol/auxdata.h>
#include <ddk/protocol/pciroot.h>
#include <ddk/pr... |
//////////////////////////////////////////////////////////////////////////////
//
// Triangles.cpp
//
//////////////////////////////////////////////////////////////////////////////
#include "GL/glew.h"
#include "GL/freeglut.h"
#include "GLFW/glfw3.h"
#include "LoadShaders.h"
#include <glm/glm.hpp> //includes GLM
#inc... |
/*
* Copyright 2020 <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 agreed to in wr... |
/*****************************************************************************/
/* StormLibTest.cpp Copyright (c) <NAME> 2003 */
/*---------------------------------------------------------------------------*/
/* This module uses very brutal test methods for StormLib. It extracts all */
/* files ... |
//----------------------------------------------------------------------------------
// File: NvGLUtils/NvBitFontGL.cpp
// SDK Version: v3.00
// Email: <EMAIL>
// Site: http://developer.nvidia.com/
//
// Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
//
// Redistribution and use ... |
/*
* NDPluginStdArrays.cpp
*
* Asyn driver for callbacks to standard asyn array interfaces for NDArray drivers.
* This is commonly used for EPICS waveform records.
*
* Author: <NAME>
*
* Created April 25, 2008
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <epicsTypes.h>
#include <ep... |
#include "MyTest.H"
#include "MyTest_F.H"
#include <AMReX_MLEBABecLap.H>
#include <AMReX_ParmParse.H>
#include <AMReX_MultiFabUtil.H>
#include <AMReX_EBMultiFabUtil.H>
#include <AMReX_PlotFileUtil.H>
#include <AMReX_EB2.H>
#include <cmath>
using namespace amrex;
MyTest::MyTest ()
{
readParameters();
initGr... |
// Filename: config_pgraph.cxx
// Created by: drose (21Feb02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You sho... |
/*
Copyright 2012 efalex <email>
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, s... |
// Include standard headers
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include<iostream>
//#include<btBulletCollisionCommon.h>
//#include<btBulletDynamicsCommon.h>
// Include GLEW
#include <glew.h>
// Include GLFW
#include <glfw3.h>
#include <btBulletDynamicsCommon.h>
#include <btBulletCollisionCommon.h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.