text stringlengths 5.71k 33.7k |
|---|
#include <cstdio>
#include <cassert>
#include <algorithm>
#include <vector>
template <class Tp>
class red_black_tree {
class node {
node const* neighbor(size_t dir) const {
node const* cur = this;
if (children[dir]) {
cur = cur->children[dir];
while (cur->children[!dir]) cur = cur->ch... |
//
// Created by bernardoct on 7/9/17.
//
#include <algorithm>
#include <iostream>
#include <numeric>
#include "AllocatedReservoir.h"
AllocatedReservoir::AllocatedReservoir(
string name, const int id, const vector<Catchment *> &catchments,
const double capacity, const double max_treatment_capacity,
... |
#include <vector>
#include <cstdio>
#include <cassert>
#include <algorithm>
class LPProblem
{
public:
enum struct TerminationType {
OptimalSolution = 1,
NoFeasibleSolution = 0,
TooManyIterations = -1
};
LPProblem() = delete;
LPProblem(std::initializer_list<std::initializer_list<double>> problem);... |
#include "voxel_mesher_transvoxel.h"
#include "transvoxel_tables.cpp"
#include <core/os/os.h>
// This is a very partial implementation, it is barely equivalent to marching cubes.
// It doesn't include transition cells.
namespace {
inline float tof(int8_t v) {
return static_cast<float>(v) / 256.f;
}
inline int8_t ... |
#include <chrono>
#include <future>
#include <thread>
#include <fstream>
#include <computesetintersection.h>
#include "matchingcommand.h"
#include "graph/graph.h"
#include "relation/catalog.h"
#include "execution_tree_generator.h"
#include "pretty_print.h"
#include "global_variables.h"
#include "preprocessor.h"
#inclu... |
/*
* Created by <NAME>, 2018, <EMAIL>
*
* this is a mini guide to Jtc, includes:
* o mini walk-path guide (wp_guide.hpp)
* o short usage notes
* o a limited set of examples
*/
#pragma once
#include <iostream>
#include "wp_guide.hpp"
// facilitate option materialization
#define XSTR(X) #X
#define STR(X) X... |
#include "../tests/tinymodel.h"
#include <fstream>
#include <sstream>
#include "../core/fileutils.h"
#include "../core/rand.h"
#include "../game/boardhistory.h"
#include "../neuralnet/nneval.h"
#include "../program/setup.h"
#include <ghc/filesystem.hpp>
using namespace std;
static void decodeBase64(const string& i... |
#include "editDistance_constrained.h"
#include "munkres.hpp"
#include <iostream>
#include <vector>
#include <tuple>
#include <limits>
#include <cmath>
#include <float.h>
#include <set>
#include <algorithm>
float editDistance_constrained( std::vector<float> &nodes1,
std::vector<std::vec... |
#include "C3DModelXML.h"
#include "C3DModelDataStructures.h"
#include <climits>
#define STU_EXPORT_SEQUENTIAL 1 //When enabled we write to the file at each model (much better memory usage, but may be slightly slower)
/*
char filePath[250];
std::vector<Ptr<Model> > Models;
int ... |
/*! \file grid3D.cpp
* \brief Definitions of the Grid3D class */
#include <stdlib.h>
#include <math.h>
#include <string.h>
#ifdef HDF5
#include <hdf5.h>
#endif
#include "global.h"
#include "grid3D.h"
#include "CTU_1D.h"
#include "CTU_2D.h"
#include "CTU_3D.h"
#include "CTU_1D_cuda.h"
#include "CTU_2D_cuda.h"
#includ... |
/*******************************************************************************
INTEL CORPORATION PROPRIETARY INFORMATION
This software is supplied under the terms of a license agreement or nondisclosure
agreement with Intel Corporation and may not be copied or disclosed except in
accordance with the terms of th... |
#define _CRT_NON_CONFORMING_SWPRINTFS
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES 1
#define _BIND_TO_CURRENT_CRT_VERSION 1
#include <tchar.h>
#include <conio.h>
#include <stdio.h>
#include <assert.h>
#include "PrimoBurner.h"
using namespace primo::burner;
#include <v... |
#include "WaveFront.h"
#include "RigidBody3D.hpp"
#include "Spawner.hpp"
#include <algorithm>
#include <cmath>
#include <cstdint>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <random>
#include <reactphysics3d/configuration.h>
#include <reactphysics3d/mathematics/Quaternion.h>
#inc... |
#include "Main.h"
#include <C_math.h>
#ifdef _DEBUG
//#define DEBUG_DISPLAY_SPACE //display space character as dot
#endif
//----------------------------
void C_client::DrawNiceFileName(const wchar *fn, int x, int y, dword font_index, dword color, int width){
int tw = GetTextWidth(fn, font_index);
if(tw > widt... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
gui.setup();
ofEnableAntiAliasing();
ofParameterGroup simParams;
simParams.setName("Simulation Parameters");
// Setup the default parameter values
sensorSpeed.set("Speed", 0.2f, 0.0f, 100.0f);
... |
//===-- Core/IncludeDirectives.cpp - Include directives handling ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <stdlib.h>
#include <math.h>
#include <cppunit/Test.h>
#include <cppunit/TestAssert.h>
#include <cppunit/extensions/HelperMacros.h>
#include "instruments.h"
#include "instruments_private.h"
#include "test_common.h"
#include "empirical_error_strategy_evaluator_test.h"
#include "empirical_error_strategy_evalu... |
// This file was originally part of the sokol-samples repository.
// Original name: imgui-emscc.cc
// https://github.com/floooh/sokol-samples
/*
MIT License
Copyright (c) 2017 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation f... |
/*
* Author: <NAME>
*
* Test file to check for platypus board errors, sensor malfunctions, etc...
*
*/
#include <boost/program_options.hpp>
#include <map>
#include <vector>
#include <string>
#include <sstream>
#include <fstream>
#include <signal.h>
#include <syslog.h>
#include <sys/stat.h>
#include <sys/types.h>
#i... |
// Copyright (c) 2019 University of Paderborn
// (<NAME> <<EMAIL>>,
// <NAME> <<EMAIL>>)
// 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 t... |
#include "stb_font.hh"
#include "stb_error.hh"
#include <algorithm>
#include <limits>
#include <ft2build.h>
#include FT_FREETYPE_H
using namespace stb;
namespace stb {
extern void setError(const char * format, ...);
}
/*
static void debugArray(FILE * f, const unsigned char * b, const size_t rows, const size_t wi... |
/*
* The MIT License (MIT)
* Copyright (c) 2018, <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,
*... |
/************************************************************************
* $Id$
* Copyright (c) 1998 Fort Gunnison, Inc.
*
* SearchView.cp: SearchViewクラスの実装
*
* Author: <NAME> (<EMAIL>)
* Created: Jan. 30, 1998
* Last update: Apr. 30, 1998
********************************************************************... |
#include <cstdio>
#include <cstring>
#include <cassert>
#include <iostream>
#include <apf.h>
#include <apfMDS.h>
#include <apfMesh.h>
#include <apfMesh2.h>
#include <apfNumbering.h>
#include <apfShape.h>
#include <gmi.h>
#include <gmi_mesh.h>
#include "topo_extinfo.h"
#include "topo_tess.h"
// Adapted from gmi_fi... |
// Copyright (c) 2021 Beijing Xiaomi Mobile Software Co., Ltd. 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
//... |
// read_dicom_files.cxx
// by <NAME>
#define XP_WIDE_API /* Use Wide APIs */
#include "gen.h"
#include <avs/gd_def.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef MSDOS
#include <string.h>
#else
#include <strings.h>
#endif
#include <avs/fld.h>
#include "dcmtk/config/osconfig.h"
#include "dcmtk/... |
/**************************************************************************
***
*** Copyright (c) 1995-2000 Regents of the University of California,
*** <NAME>, <NAME> and <NAME>
*** Copyright (c) 2000-2007 Regents of the University of Michigan,
*** <NAME>, <NAME>, <NAME> and
*** ... |
#include "area_division.h"
/**
* @brief Switch to the synchronization state.
*/
void to_sync ()
{
state = SYNC;
ROS_DEBUG("Start synchronizing...");
// reset information about swarm
swarm_pose.clear();
// stop moving
geometry_msgs::PoseStamped goal_pose;
goal_pose.header.stamp = Time::n... |
#include "interviewproblems.h"
using namespace interviewproblems;
// Given a number, find the number of steps required to bring that number to 0
// the only steps allowed are division by two and subtraction by one.
// Solution 1, the most obvious one, still as fast as it gets (0 ms).
int InterviewSolutions::numberO... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2020 <NAME> */
/*
* CCOTree.cpp
*
* Created on: May 24, 2017
* Author: <NAME>
*/
#include "FRRCCOSTree.h"
#include <vtkCellData.h>
#include <vtkXMLPolyDataWriter.h>
#include <vtkSmartPointer.h>
#include <vtkDoubleArray.h>
#include <math.h>
FRRCCOSTree... |
/*******************************************************************************
* 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 "../libraries/lepton/include/Lepton.h"
#include "openmm/internal/AssertionUtilities.h"
#include <iostream>
#include <limits>
#include <map>
using namespace Lepton;
using namespace OpenMM;
using namespace std;
/**
* This is a custom function equal to f(x,y) = 2*x*y.
*/
class ExampleFunction : public Custo... |
/**
* @file ros2madara.cpp
* @author <NAME> <<EMAIL>>
*
* This file converts ROSBAG files to Madara checkpoints
**/
#include <iostream>
#include <string>
#include <fstream>
#include "boost/filesystem.hpp"
#include "yaml-cpp/yaml.h"
#include "madara/logger/GlobalLogger.h"
#include "madara/knowledge/KnowledgeBas... |
// license:BSD-3-Clause
// copyright-holders:Robbbert
/***************************************************************************
microbee.c
video hardware
Originally written by <NAME>, Dec 1999
Rewritten by Robbbert (see notes in driver file).
Operation of old keyboard:
The design is taken ... |
/*
* Copyright (C) 2011-2016 Intel Corporation. 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 li... |
/****************************************************************************//*
* Copyright (C) 2021 <NAME>
*
* Creative Commons Legal Code
*
* CC0 1.0 Universal
*
* CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
* LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
*... |
/*
* nupack_extension.cpp
*
* Created on: Nov 19, 2010
* Author: kamal
*/
/*
CalcConc.c is part of the NUPACK software suite
Copyright (c) 2007 Caltech. All rights reserved.
Coded by: <NAME> 9/2006
CALCCONC.C
For use with Concentrations.c.
Computes the equilibrium mole fractions of the produc... |
/*
Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would be us... |
#include <algorithm>
#include <fstream>
#include <gflags/gflags.h>
#include <iomanip>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <set>
#include <string>
#include <sstream>
#include <signal.h>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <execinfo.h>... |
// SPDX-License-Identifier: MIT
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdio>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <optional>
#include <ranges>
#include <streambuf>
#include <tuple>
#include <vector>
#include "embed_files.hh"
namespace {
inline constexpr... |
/* -----------------------------------------------------------------------------
Software Copyright License for the Fraunhofer Software Library VVdec
(c) Copyright (2018-2020) Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
1. INTRODUCTION
The Fraunhofer Software Library VVdec (“Fraunhofer V... |
/*
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 agreed to in writing,... |
#include "VPD.h"
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <lsd.h>
#include <iostream>
#include <cmath>
#include <boost/numeric/ublas/lu.hpp>
#include "VPCluster.h"
#include "VPSample.h"
std::vector< std::pair<float, float> > extractVP (image_double &image, const cv::Mat &img);
cv::... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <utility>
#include <cassert>
#include <set>
#include <leveldb/db.h>
// #include "boost_logger.hpp"
#include "utf8.h"
#include "logger.hpp"
#include <boost/filesystem.hpp>
#include <boost/property_tree/ptree.hpp>
#incl... |
#include "utils/can_layer_docgen.hpp"
#include <string>
#define INVARIANT(x)
struct cldocgen_state{
std::string name;
std::vector<ceps::ast::Nodebase_ptr> constraints;
ceps::ast::Nodebase_ptr default_value;
std::vector<ceps::ast::Nodebase_ptr> encodings;
std::vector< std::vector<std::pair<std::string,std::string... |
/**
* Copyright 2017 Thinkbox Software 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 o... |
/*
* ============================================================================
*
* Authors: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> (<EMAIL>)
*
* ============================================================================
*/
#include <iostream>
#include <al... |
// Copyright (c) 2015-2019 <NAME>, <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, pu... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2017, Toshiba Corporation,
* Toshiba Infrastructure Systems & Solutions Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
/* ---------------------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* ---------------------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2021, Lawrence Livermore National Security
* and Southern Methodist University.... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
void framebuffer_size_callback(GLFWwindow* window, int width, int height)
{
glViewport(0, 0, width, height);
}
void processInput(GLFWwindow* window)
{
if ... |
/// HEADER
#include <csapex/view/designer/graph_view_context_menu.h>
/// COMPONENT
#include <csapex/core/settings.h>
#include <csapex/model/graph_facade_impl.h>
#include <csapex/model/node_state.h>
#include <csapex/scheduling/thread_group.h>
#include <csapex/scheduling/thread_pool.h>
#include <csapex/view/csapex_view_... |
#include <Arduino.h>
/*
SparkFun Inventor's Kit
Example sketch 16
Spark Fun Electronics
Oct. 7, 2014
<NAME> is a memory game. Start the game by pressing one of the four
buttons. When a button lights up, press the button, repeating the sequence. The
sequence will get longer and longer. The game is won after 13 ... |
//===-- AArch64MachObjectWriter.cpp - ARM Mach Object Writer --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//
// glGAHelper.cpp
//
//
// Created by <NAME>.
// Copyright (c) 2012 UoC & FORTH. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <S... |
#include <iostream> // std::cout, std::flush
#include <fstream> // std::ifstream, std::ofstream
#include <filesystem> // std::filesystem
#include <string> // std::string
#include <sstream> // std::stringstream
#include <tup... |
#include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <opencv2/opencv.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/xfeatures2d/nonfree.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_brid... |
// =================================================================================================
// Copyright Adobe
// Copyright 2006 Adobe
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it. ... |
//
// stencil_testing.cpp
// LearnOpenGL
//
// Created by apple on 2019/8/20.
// Copyright © 2019 apple. All rights reserved.
//
#include "stencil_testing.hpp"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "shader.h"
#include "camera.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#incl... |
#include <igl/circulation.h>
#include <igl/edge_collapse_is_valid.h>
#include "collapse_edge_seam.h"
#include "decimate.h"
#include "neighbor_faces_and_boundary.h"
#include "detect_foldover.h"
#include "cost_and_placement.h"
bool try_collapse_5d_Edge(
const int e,
const placement_info_5d & new_placement, // verte... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.
"A multiresolution and... |
/**
* @file audio/playback/wasapi.cpp
* @author <NAME> <<EMAIL>>
*/
/*
* Copyright (c) 2019 CESNET, z. s. p. o.
* All rights reserved.
*
* 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 Found... |
//
// Created by marhc on 17/05/2021.
//
#include "Graph.h"
// N O D E
Node::Node(NodeInfo in, int id): info(in), id(id) {}
Edge *Node::addEdge(Node *d, double w) {
Edge *e = new Edge(this, d, w);
adj.push_back(e);
d->incoming.push_back(e);
return e;
}
void Node::addEdge(Edge* edge) {
adj.push_... |
#include "GCodeDevice.h"
#define XOFF 0x13
#define XON 0x11
#define MAX(a,b) ( (a)>(b) ? (a) : (b) )
static char deviceBuffer[MAX(sizeof(MarlinDevice), sizeof(GrblDevice))];
const uint32_t DeviceDetector::serialBauds[] = { 115200, 250000, 57600 };
uint32_t DeviceDetector::serialBaud = 0;
void DeviceDetector::... |
/*
code based on bam_md.c from SAMtools
*/
#include <cassert>
#include <cmath>
#include <ctype.h>
#include "bams.h"
#include "kprobaln.h"
static inline int bam_aux_type2size(int x)
{
if (x == 'C' || x == 'c' || x == 'A') return 1;
else if (x == 'S' || x == 's') return 2;
else if (x == 'I' || x == 'i' || x =... |
/*
Nexus
Copyright(C) 2012 - <NAME>
ISTI - Italian National Research Council - Visual Computing Lab
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your optio... |
#include "boundarySolver.hpp"
#include <set>
#include <utility>
#include "boundaryProcess.hpp"
#include "utilities/mathUtilities.hpp"
ablate::boundarySolver::BoundarySolver::BoundarySolver(std::string solverId, std::shared_ptr<domain::Region> region, std::shared_ptr<domain::Region> fieldBoundary,
... |
// -*- C++ -*-
//
// Package: SiPixelPhase1Summary
// Class: SiPixelPhase1Summary
//
/**\class
Description: Create the Phsae 1 pixel summary map
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// Created: 5th December 2016
//
//
#include "DQM/SiPixelPhase1Summary/i... |
// posit_32_2.cpp: test suite runner for fast specialized posit<32,2>
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#if defined(_MSC_VER)
#pragma warning(disable : 5045) // Compiler will insert ... |
#include "irods/irods_client_server_negotiation.hpp"
#include "irods/irods_stacktrace.hpp"
#include "irods/irods_exception.hpp"
#include "irods/irods_server_properties.hpp"
#include "irods/irods_kvp_string_parser.hpp"
#include "irods/irods_buffer_encryption.hpp"
#include "irods/irods_hasher_factory.hpp"
#include "irod... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
#include "RecoParticleFlow/Benchmark/interface/GenericBenchmark.h"
#include "RecoParticleFlow/Benchmark/interface/BenchmarkTree.h"
#include "DQMServices/Core/interface/MonitorElement.h"
// CMSSW_2_X_X
#include "DQMServices/Core/interface/DQMStore.h"
#include <TROOT.h>
#include <TFile.h>
//Colin: it seems a bit stran... |
#include "Geometry/RPCGeometry/interface/RPCRoll.h"
#include "Geometry/RPCGeometry/interface/RPCRollSpecs.h"
#include "SimMuon/RPCDigitizer/src/RPCSimAsymmetricCls.h"
#include "SimMuon/RPCDigitizer/src/RPCSimSetUp.h"
#include "SimMuon/RPCDigitizer/src/RPCSynchronizer.h"
#include "Geometry/CommonTopologies/interface/Re... |
// dear imgui: Renderer + Platform Binding for Allegro 5
// (Info: Allegro 5 is a cross-platform general purpose library for handling windows, inputs, graphics, etc.)
// Implemented features:
// [X] Renderer: User texture binding. Use 'ALLEGRO_BITMAP*' as ImTextureID. Read the FAQ about ImTextureID!
// [X] Plat... |
#include <spdlog/spdlog.h>
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
#include <regex>
// #include "../include/json.hpp"
#include "parser.h"
using namespace std;
using json = nlohmann::json;
Parser::Parser(const string& filename, const string& inputfile) {
load_grammar(filen... |
#include "Metadata.h"
using namespace GenOS;
const CilOpCode cilOpCode_FE[] =
{
{ 0x00, NULL, "arglist", false, 2 },
{ 0x01, NULL, "ceq", false, 2 },
{ 0x02, NULL, "cgt", false, 2 },
{ 0x03, NULL, "cgt.un", false, 2 },
{ 0x04, NULL, "clt", false, 2 },
{ 0x... |
#include <mutex>
#include <numeric>
#include <sstream>
#include <codecvt>
#include <locale>
#include "Memory.h"
#include "Debug.h"
#include "../Config.h"
#include "../Interfaces.h"
#include "../Netvars.h"
#include "../Hacks/Misc.h"
#include "../SDK/ConVar.h"
#include "../SDK/Surface.h"
#include "../SDK/GlobalVars.h"
#... |
/**
* \file dnn/test/x86/elemwise_multi_type.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
... |
// This tests:
// Behavior of EventSelector when some trigger bits may be Exception or Ready
// 01 - Non-wildcard positives, exception accepted
// 02 - Non-wildcard negatives, exception accepted
// 03 - Non-wildcard positives and negatives mixed, exception accepted
// 04 - Non-wildcard positives, exceptio... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
/*****************/
/*****************/
#include "AMRNavierStokes.H"
#includ... |
#include "visual.hpp"
#include <stdexcept>
#include <iostream>
#include <cstdlib>
#include <sstream>
#include <fstream>
#include <cmath>
#include <vector>
#include "SOIL.h"
using std::runtime_error;
using std::ifstream;
using std::ios;
using std::cout;
using std::cerr;
using std::endl;
using std::isnan;
using std::c... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkRefCnt.h"
#include "SkTSort.h"
#include "Test.h"
#include "ToolUtils.h"
// A node in the graph. This corresponds to an opList in the MDB world.
class Node : publ... |
//====- SHA1.cpp - Private copy of the SHA1 implementation ---*- C++ -* ======//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/**
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2012, <NAME>, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
#include "global.h"
#include "ScreenRanking.h"
#include "ScreenManager.h"
#include "SongManager.h"
#include "GameState.h"
#include "GameManager.h"
#include "ProfileManager.h"
#include "Profile.h"
static const char *RankingTypeNames[] = {
"Category",
"Course",
};
XToString( RankingType );
LuaXType( Ra... |
/*-
* SPDX-License-Identifier: Zlib
*
* Copyright (c) 2009-2018 <NAME> <<EMAIL>>
* For conditions of distribution and use, see LICENSE file
*/
#include <ananas/types.h>
#include <ananas/errno.h>
#include "kernel/bio.h"
#include "kernel/lib.h"
#include "kernel/lock.h"
#include "kernel/result.h"
#include "kernel/sch... |
#include"Boss/Mod/FeeModderByPriceTheory.hpp"
#include"Boss/Msg/DbResource.hpp"
#include"Boss/Msg/ForwardFee.hpp"
#include"Boss/Msg/ListpeersAnalyzedResult.hpp"
#include"Boss/Msg/ProvideChannelFeeModifier.hpp"
#include"Boss/Msg/ProvideStatus.hpp"
#include"Boss/Msg/SolicitChannelFeeModifier.hpp"
#include"Boss/Msg/Solici... |
/*
<NAME>
<EMAIL>
Partially based on correll lab's script http://172.16.17.32/?p=3064.
*/
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.h... |
#include <stddef.h>
#define STB_IMAGE_IMPLEMENTATION
#define STBI_FAILURE_USERMSG
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include "genann.h"
// Released to the public domain under US law and publicly licensed under the
// ISC license. No warranty provided, express... |
//===-- X86Subtarget.cpp - X86 Subtarget Information ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (c) 2007-2014 <NAME>
// Copyright (c) 2011 <NAME>
//
// 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)
#include <hpx/hpx_fwd.hpp>
#include <hpx/runtime/naming/name.hpp>
#include <hpx/exception.h... |
#include "utils.h"
#include "client.h"
#include "client_config.h"
#include "exceptions.h"
#include <stdlib.h>
#include <numeric>
#include <iomanip>
#include <rapidjson/writer.h>
std::string discpp::GetOsName() {
#ifdef _WIN32
return "Windows 32-bit";
#elif _WIN64
return "Windows 64-bit";
... |
/*
* stm32_bridge_node.cpp
* Connects to the STM32 real-time controller
* VERSION: 1.0.0
* Last changed: 2020-02-04
* Authors: <NAME> <<EMAIL>>
* Maintainers: <NAME> <<EMAIL>>
* MIT License
* Copyright (c) 2020 UMN Robotics
*/
// ROS Libs
#include <ros/ros.h>
#include <can_msgs/Frame.h>
#include <geometry_msg... |
/***************************************************************************
* Copyright (C) 2009-2015 by *
* <NAME> <<EMAIL>> *
* <NAME> <<EMAIL>> *
* ... |
/*
* cModularityAnalysis.cc
* Avida
*
* Created by David on 1/11/09.
* Copyright 2009-2011 Michigan State University. All rights reserved.
*
*
* This file is part of Avida.
*
* Avida is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
* a... |
#include <ros/ros.h>
#include <sensor_msgs/Joy.h>
#include <std_msgs/Int32.h>
#include <std_msgs/Float32.h>
#include <std_msgs/Byte.h>
#include <std_msgs/Bool.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/PointStamped.h>
#include <vector>
#include <algorithm> // std::copy
#include <iterator> ... |
/*
* File: main.cpp
* Author: malone
*
* Created on August 6, 2012, 9:05 PM
*/
//#define PRINT_SUBNETWORK_SCORES
#include <string>
#include <iostream>
#include <ostream>
#include <queue>
#include <vector>
#include <cstdlib>
#include <boost/program_options.hpp>
#include <boost/timer/timer.hpp>
#include <boost... |
#include "solveQyx.h"
#include <cstddef>
#include "Eigen/Eigen"
#include "Eigen/Geometry"
#include "data_selection.h"
#define Pi 3.1415926
/**
*这里的代码主要依赖于https://zhuanlan.zhihu.com/p/101727151该页面的说明
**/
// 这个函数用于计算yx方向的旋转
bool SolveQyx::EstimateRyx(std::vector<data_selection::SyncData> sync_result, Eigen::Matrix... |
#include <path_follower/controller/robotcontroller.h>
/// PROJECT
#include <path_follower/pathfollower.h>
#include <cslibs_navigation_utilities/MathHelper.h>
#include <path_follower/utils/path_exceptions.h>
#include <path_follower/utils/pose_tracker.h>
#include <path_follower/utils/visualizer.h>
#include <path_followe... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.