text stringlengths 3.08k 22k |
|---|
#include "ResponseHeader.hpp"
std::map<int, std::string> ResponseHeader::errors = init_error_map();
// Member functions
std::string ResponseHeader::get_header(size_t size, const std::string& path, int code, std::string type, const std::string& content_loc, const std::string& lang)
{
std::string header;
reset_val... |
#include "Simulation.h"
#include "WavefunctionGaussian.h"
#include "complexType.h"
#include <fstream>
void Simulation::initialize(bool deleteWavefunction) {
if (_sp.size() < 1) {
throw SimulationError("Grid is not initialized");
}
if (_wavefunction && deleteWavefunction) {
delete _wavefunc... |
/*
* Copyright (c) 2015 - 2021, Intel Corporation
*
* 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 condition... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;
using ... |
// used: std::ofstream
#include <fstream>
#include "utilities.h"
// used: logging
#include "utilities/logging.h"
// used: interfacereg class and convar, clients, globals, engine, trace, materialsystem, model/view render, modelinfo, clientstate interfaces
#include "core/interfaces.h"
#pragma region utilities_get
templ... |
#include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F4
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 8007B564
* Size: 0000C8
*/
RadarInfo::RadarInfo()
{
/*
.loc... |
#include <iostream>
#include <fstream>
#include <memory>
#include <string>
#include <chrono>
#include <vector>
#include <cstdint>
using namespace std;
class bf_interpreter {
struct instruction {
enum class opcode {
add_to_dp,
add_to_cell,
output,
input,
branch_if_zero,
branch_if_nonzero,
store... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTextureCompressor.h"
#include "SkBitmap.h"
#include "SkData.h"
#include "SkEndian.h"
////////////////////////////////////////////////////////////////////////////... |
#include <Rcpp.h>
using namespace Rcpp;
#include <iostream>
#include <vector>
#include <algorithm>
#include <cassert>
#include <cmath>
#include <limits>
#include <random>
#include <chrono>
using namespace std;
const double eps = 1e-13;
template <class T>
class SegmentTree {
private:
vector<T> t;
... |
/**
* @file imu3000.cpp
* @date 28.10.2013
* @author <NAME>
*
* @brief ROS node reading and publishing the sensor values of
* IMU3000, a 3-axis gyroscope.
*
* During initialization the bias is evaluated, so the robot should be
* in a neutral position when starting this node. If this is not
* possible the para... |
#include <opencv2/core/core.hpp>
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <stdio.h>
#include <iostream>
#include "popt_pp.h"
#include <ros/package.h>
using namespace std;
using namespace cv;
vector< vector< Point3f > > object_points;... |
#include "tga.hpp"
#include <stdexcept>
#include "binio.hpp"
struct Tga_data
{
bool rle_compressed {false};
enum class Color_type: std::uint8_t { indexed=1, color=2, grayscale=3 } color;
std::uint16_t width {0};
std::uint16_t height {0};
std::uint8_t bpp {0};
bool bottom_to_top { true};
... |
#include <nall/windows/registry.hpp>
#include "asio.hpp"
struct AudioASIO : AudioDriver {
static AudioASIO* instance;
AudioASIO& self = *this;
AudioASIO(Audio& super) : AudioDriver(super) { instance = this; }
~AudioASIO() { terminate(); }
auto create() -> bool override {
super.setDevice(hasDevices().fir... |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
using namespace std;
const long long mod = 1000000007;
int msub(int a, int b) {
a -= b;
if... |
#include "Halide.h"
using namespace Halide;
enum InterpolationType {
Box, Linear, Cubic, Lanczos
};
Expr kernel_box(Expr x) {
Expr xx = abs(x);
return select(xx <= 0.5f, 1.0f, 0.0f);
}
Expr kernel_linear(Expr x) {
Expr xx = abs(x);
return select(xx < 1.0f, 1.0f - xx, 0.0f);
}
Expr kernel_cubic(... |
#include "CondTools/Ecal/interface/EcalTPGBadTTHandler.h"
#include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
#include "OnlineDB/EcalCondDB/interface/RunTPGConfigDat.h"
#include "OnlineDB/EcalCondDB/interface/FEConfigMainInfo.h"
#include "OnlineDB/EcalCondDB/interface/FEConfigBadTTInfo.h"
#include "OnlineDB/EcalCon... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program */
/* GCG --- Generic Column Generation */
... |
// license:BSD-3-Clause
// copyright-holders:hap
/*
NEC uCOM-4 MCU family disassembler
*/
#include "emu.h"
#include "ucom4d.h"
const char *const ucom4_disassembler::s_mnemonics[] =
{
"LI", "L", "LM", "LDI", "LDZ", "S", "TAL", "TLA",
"X", "XI", "XD", "XM", "XMI", "XMD", "AD", "ADC", "ADS", "DAA", "DAS",
"EXL", ... |
// coding: ansii
//
// Copyright (C) 2012-2013, <NAME>
// All rights reserved.
#include <cstdio> // sprintf
#include <string.h> // strlen
#include "pr1mitive_serial.h"
using namespace pr1mitive::serial;
// Obtain a char from the charmap.
inline char get_char(int index) {
static const char* charmap = "0123456789... |
#include "fx/parser/yaml_to_json/yaml_to_json.hpp"
#include <gtest/gtest.h>
#include <yaml-cpp/yaml.h>
#include <nlohmann/json.hpp>
#include <variant>
#include "fx/result/result.hpp"
// Convert ---------------------------------------------------------------------
struct Convert : testing::Test {
void static expect_... |
#include "EventFilter/ESRawToDigi/interface/ESUnpacker.h"
#include "DataFormats/FEDRawData/interface/FEDNumbering.h"
#include "DataFormats/EcalDetId/interface/EcalDetIdCollections.h"
#include "DataFormats/FEDRawData/interface/FEDHeader.h"
#include "DataFormats/FEDRawData/interface/FEDTrailer.h"
#include "FWCore/Message... |
/*
* (C) Copyright 2019
* The Seraphim Project Developers.
*
* SPDX-License-Identifier: MIT
*/
#include <iostream>
#include <thread>
#include "seraphim/except.h"
#include "seraphim/gui/glfw_window.h"
using namespace sph;
using namespace sph::gui;
GLFWWindow::GLFWWindow(const std::string &title) : m_ui_active(f... |
// Copyright 2011 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... |
/*
* Copyright 2020 International Business Machines
* Copyright 2019 <NAME> Institute
*
* 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.... |
/*
* 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... |
/******************************************************************************
OleObjectIterator
*****************************************************************************/
#include "pp97rdr.h"
//KYLEP
#include "OleObjIt.h"
#include "zlib.h"
#include <winnls.h>
#include <assert.h>
// OleOb... |
/*
KHOMP generic endpoint/channel library.
Copyright (C) 2007-2009 Khomp Ind. & Com.
The contents of this file are subject to the Mozilla Public License Version 1.1
(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.mozilla... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
// Copyright (c) 2006-2008 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 "base/win/scoped_handle.h"
#include "base/win/scoped_process_information.h"
#include "base/win/windows_version.h"
#include "sandbox/win/... |
//
// MIT License
//
//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, copy, modify, merge,... |
#include <iostream>
#include <vector>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include "assimpwrapper.h"
// *************** IMPORTER *************** //
AssimpImporter::AssimpImporter(std::string path){
// we only want raw info - don't care about a lot of the stuff... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
... |
// Copyright (c) 2009-2017 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: joaander
/*! \file SystemDefinition.cc
\brief Defines SystemDefinition
*/
#include "SystemDefinition.h"
#include "SnapshotSystemData.h"
#i... |
#include "www.h"
HtmlTag HtmlLine()
{
return HtmlRow() / HtmlCell();
}
HtmlTag HtmlPara()
{
return HtmlTag("p");
}
HtmlTag HtmlCourier(int size)
{
return HtmlTag("span")
.Attr("style", Format("font-size: %dpt; font-family: monospace;", size));
}
HtmlTag HtmlArial(int size)
{
return H... |
/*
* simproto.cpp
*
* Created on: Jul 12, 2014
* Author: zks
*/
#include <iostream>
#include <thread>
#include <future>
#include <memory>
#include <cstdint>
#include <chrono>
#include "libzks/u8string.h"
#include "libzks/simconf.h"
#include "libzks/simlog.h"
#include "libzks/hash.h"
#include "test.pb.h"
#i... |
// Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platform/platform.h"
#include "sfx/fmod/sfxFMODEvent.h"
#include "sfx/fmod/sfxFMODEventGroup.h"
#include "sfx/fmod/sfxFMODProject.h"
#include "sfx/fmod/sfxFMODDevice.h"
#include "sfx/sfxPara... |
/*
Copyright (c) 2018-2019 Nokia.
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... |
#include<iostream>
#include<cmath>
#include<vector>
#include<algorithm>
#include<map>
#include<set>
#include<deque>
#include<list>
#include"KlausurUtils.h"
using namespace std;
static const bool EXECUTE_PERFORMANCE_TEST_AUFGABE1 = true;
int getDataAufgabe1(int idx);
int getDataAufgabe3(int idx);
st... |
/*
* SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
* Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software wi... |
/* \file VSimpleStereoReconstructor.cpp
* \brief a simple core and direction reconstruction
*
* should not be used for any VERITAS data analysis
*/
#include "VSimpleStereoReconstructor.h"
VSimpleStereoReconstructor::VSimpleStereoReconstructor()
{
initialize();
fTelElevation = 0.;
fTelAzimuth = 0.;
... |
#include "instance.hpp"
#include "dev/include/disk_interface.hpp"
#include "lock_guard.hpp"
#include "string.hpp"
using namespace UOS;
file_instance::file_instance(exfat& fs,folder_instance* top,literal&& str,dword index,const exfat::record* file) : \
parent(top), name(move(str)), valid_size(file->valid_size), alloc... |
#include "WLGDBiasChangeCrossSection.hh"
WLGDBiasChangeCrossSection::WLGDBiasChangeCrossSection(G4String particleToBias,
G4String name)
: G4VBiasingOperator(std::move(name))
, fSetup(true)
, fpname(std::move(particleToBias)){
fParticleToBias = G4ParticleTable:... |
/* Copyright (c) 2012, 2020, Oracle and/or its affiliates. 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, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain so... |
// source file class
#include <cassert>
#include <fstream>
#include <sstream>
#include <algorithm>
#include "wx/filename.h"
#include "TopFrame.h"
#include "ProjectBreakPoints.h"
#include "StyledSourceCtrl.h"
#include "ddt/FileSystem.h"
#include "TopNotebook.h"
#include "Controller.h"
#include "sigImp.h"
#include ... |
/******************************************************************************
File: Primitiv.cpp
Description:
Implementation of the Interpreter class' primitive methods
******************************************************************************/
#include "Ist.h"
#pragma code_seg(PRIM_SEG)
#include <process... |
// BEGIN CUT HERE
// END CUT HERE
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
#include <map>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
const int N = 128;
bool vis[N];
class Ra... |
/* pipeconnect.c - Check the assuan_pipe_connect call.
Copyright (C) 2006, 2009, 2010 Free Software Foundation, Inc.
This file is part of Assuan.
Assuan 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... |
#include "stdafx.h"
#include "Common.h"
#include "SWIP.h"
#include "Logger.h"
#include "version.h"
#include "Utils.h"
#include "InputHook.h"
#include "SWIP.h"
#include "Config.h"
#include "Controller.h"
#include "ForceFeedback.h"
#include "ControllerManager.h"
const u16 Config::buttonIDs[10] =
{
XINPUT_GAMEPAD_... |
#include "standard_libs.h"
#include "graphics_libs.h"
#include "constants.h"
#include "gplib.h"
#include "stb_image.h"
#define WINDOW_W 600
#define WINDOW_H 1000
#include "debug_lines.h"
typedef struct Camera {
float3 position;
float3 direction;
float3 up;
}Camera;
typedef struct Player {
float3 po... |
#include "io/carp.h"
#include "AssignConfidenceApplication.h"
#include "bullseye/CruxBullseyeApplication.h"
#include "util/FileUtils.h"
#include "MakePinApplication.h"
#include "PercolatorApplication.h"
#include "Pipeline.h"
#include "util/Params.h"
#include "util/StringUtils.h"
#include "TideSearchApplication.h"
#incl... |
/*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* ============================================================... |
//===-- llvm/CodeGen/DwarfExpression.cpp - Dwarf Debug Framework ----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.... |
#include "common.h"
#include "T.h"
#include "rapidxml/rapidxml.hpp"
#include "rapidxml/rapidxml_print.hpp"
#include <fstream>
#include <string.h>
#include <time.h>
using namespace std;
using namespace rapidxml;
void buildNetwork(char* filename, Network &n)
{
int tasks_num=0, msgs_num=0, partitions_num=0, cores_num=... |
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <armadillo>
#include <boost/python.hpp>
#include <boost/python/numpy.hpp>
#include <boost/mem_fn.hpp>
#include <boost/shared_ptr.hpp>
#include "GPGOMEA/Evolution/EvolutionState.h"
#include "GPGOMEA/Evolution/EvolutionRun.h"
#include "GPGOMEA/RunHandli... |
// Copyright (c) 2017-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, copy, modify, merge, publish, ... |
#include <MPU6050.h>
MPU6050::MPU6050()
{
this->setDeviceAddress(MPU_I2C_ADDRESS_AD0);
}
MPU6050::MPU6050(byte addr)
{
this->setDeviceAddress(addr);
}
bool MPU6050::begin(range_t range)
{
this->_attitude = {0,0,0};
this->_accOffset = {0,0,0};
this->_gyroOffset = {0,0,0};
this->_range = range... |
#include "Arduino.h"
// #include "vendor_device.h"
#include "esptinyusb.h"
#include "webusb.h"
static bool web_serial_connected = false;
static WebUSB *_webUSB = NULL;
#define MS_OS_20_DESC_LEN 0xB2
#define EPNUM_VENDOR 0x03
#define _vendor "Vendor class (webUSB)"
// https://developers.google.com/web/fundamentals/na... |
//
// Created by cpasjuste on 17/09/18.
//
const char *crt_caligari_v = R"text(
// Parameter lines go here:
// 0.5 = the spot stays inside the original pixel
// 1.0 = the spot bleeds up to the center of next pixel
#pragma parameter SPOT_WIDTH "CRTCaligari Spot Width" 0.9 0.1 1.5 0.05
#pragma parameter SPOT_HEIGHT "CR... |
// DEPENDENCIES
#include <Arduino.h>
#include "I2Cdev.h"
#include "MPU6050_6Axis_MotionApps20.h"
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include "Wire.h"
#endif
// FUNCTION INITIALIZATION
void dmpDataReady();
void getFlexOffsets_median();
void getFlexOffsets_mean();
void convertUnits();
void generateDat... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using Eigen::MatrixXd;
using Eigen::VectorXd;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
// if this is false, radar measurements will be i... |
#include <algorithm>
#include <cfloat>
#include <vector>
#include <cmath>
#include <iostream>
#include <fstream>
#include <sstream>
#include "caffe/layers/region_loss_layer.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/util/region_util.hpp"
#include "caffe/util/bbox_util.hpp"
int iter = 0;
namespace ... |
#include <iostream>
#include <cstdlib>
#include <cstdint>
#include <bitset>
using std::bitset;
#include <string>
using std::string;
#include "UCTRegion.hh"
#include "UCTGeometry.hh"
#include "UCTLogging.hh"
#include "UCTTower.hh"
using namespace l1tcalo;
// Activity fraction to determine how active a tower compar... |
/** -------------------------------------------------------
File name: tcp_client_agent.cpp
Purpose: connect to server as agent
Version: 1.0 11/23/2017
Auther: <NAME>
---------------------------------------------------------*/
#include "stdafx.h"
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#include "tcp_client_agent.h... |
// -*- C++ -*-
//
// Package: RPCCSC
// Class: RPCCSC
//
/**\class RPCCSC RPCCSC.cc TESTCSCRPC/RPCCSC/src/RPCCSC.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// Created: Wed Feb 25 18:09:15 CET 2009
//
//
// system include fi... |
#include "Memory.cpp"
using namespace scaly::memory;
void test_page()
{
auto heap = Heap::create();
auto root_stack_bucket = StackBucket::create(&heap);
auto r = Region::create_from_page(Page::get(root_stack_bucket));
auto page = r.page;
// We have no next page yet
if (page->next_page != null... |
// Copyright 2021 <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... |
#include "Database.h"
#include <iostream>
#include <string>
#include <stdio.h>
#include <time.h>
#include <mysql/mysql.h>
#include "ClientError.h"
#include "StringUtils.h"
using namespace std;
Database::Database(string un, string pwsd, string host, int port, string name, string key) {
this->stripe_secret_key = ke... |
#include "GXBase.h"
using namespace gxbase;
// This program tests some of the image class functionality
// JWW 16/10/03 - added file browser to select image file
// JWW 19/11/03 - added checker background for TGA alpha test
enum TextureIDs {
TEX_CHECK,
TEX_IMAGE,
TEX_COUNT // must appear last, used to count textur... |
// test ranges.h
#include <reflex/bits.h>
#include <reflex/ranges.h>
#include <reflex/timer.h>
#include <bitset>
#include <map>
#include <iostream>
#include <cassert>
#include <cstdlib>
#include <cstdio>
enum Color { RED, GREEN, BLUE };
struct Pos {
typedef int32_t type;
type n;
Pos(type n) : n(n) { }
operat... |
/*
Test for GEMM product: can be single and double precision
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string>
#include <iostream>
#include <vector>
#include <cblas.h>
#include "CL/opencl.h"
#include "../../include/utils/ocl_utils.hpp"
#include "../../include/utils/utils.hpp"
#include... |
//
// Created by liqinbin on 10/14/20.
//
#include "FedTree/Tree/tree.h"
#include "thrust/reduce.h"
#include "thrust/execution_policy.h"
#include <numeric>
void Tree::init_CPU(const GHPair sum_gh, const GBDTParam ¶m) {
init_structure(param.depth);
float_type lambda = param.lambda;
auto node_data = nod... |
//
// Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
/... |
#include "MainWindow.hpp"
#include <algorithm>
#include <vector>
#include <QOpenGLShader>
#include <QVector4D>
namespace Bazhenov {
constexpr std::uint32_t STRIDE = 9;
constexpr std::uint32_t VERTEX_POSITION_OFFSET = 0;
constexpr std::uint32_t VERTEX_NORMAL_OFFSET = 3;
constexpr std::uint32_t VERTEX_COLOR_OFFSET = ... |
//
// TestUtils.cpp
//
// Test Utils
//
// Created by <NAME>, January 2017
// Copyright (c) [2017] Juniper Networks, Inc. All rights reserved.
//
// All rights reserved.
//
// Notice and Disclaimer: This code is licensed to you under the Apache
// License 2.0 (the "License"). You may not use this code except in complia... |
/*************************************************************************
*
* Copyright (c) 2016-2019, Klaralvdalens Datakonsult AB (KDAB)
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************... |
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <iomanip>
#include <cstring>
#include <cstdio>
#include <unistd.h>
#include <cmath>
#include "TApplication.h"
#include "TFile.h"
#include "TTree.h"
using namespace std;
struct StrtMesytec
{
int modID;
int data[32];
int modRes;
i... |
/*
* settings.cpp
*
* Created on: 7 ����. 2019 �.
* Author: Serkin
*/
#include <string>
#include <unistd.h>
#include <map>
#include <algorithm>
#include <cctype>
#include <string>
#include <getopt.h>
#include <iostream>
#include "settings.h"
#include "error.h"
map <Algorithm, string> Algo... |
#define DEBUG_TYPE "llvm-dec"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Triple.h"
#include "llvm/DC/DCInstrSema.h"
#include "llvm/DC/DCRegisterSema.h"
#include "llvm/DC/DCTranslator.h"
#include "llvm/DC/DCTranslator.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCAnalysis/MCCachingDisassembler.h"
#inc... |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
#include <random> // Need ... |
/*****************************************************************************************
* SGCT *
* Simple Graphics Cluster Toolkit *
* ... |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#include <iostream>
#include "kelpie/core/Singleton.hh"
#include "kelpie/ops/direct/OpKelpiePublish.hh"
using n... |
#include "MccFunctionDeclaration.h"
#include "MccVariableDeclaration.h"
#include "MccFuncParameterList.h"
#include "MccStatementList.h"
#include "MccDeclarationList.h"
#include "MccStatement.h"
#include "MccFuncParameter.h"
#include "MccIdentifier.h"
#include "MccRobot.h"
#include "MccSemanticErrorChecker.h"
#include "... |
#ifdef _WIN32
#pragma warning (disable : 4100) /* Disable Unreferenced parameter warning */
#include <Windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "teamspeak/public_errors.h"
#include "teamspeak/public_errors_rare.h"
#include "teamspeak/public_definitions.h... |
#include "paddle/include/paddle_inference_api.h"
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <algorithm>
#include <chrono>
#include <fstream>
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
#include <sys/stat.h>
namespace flags {
DEFINE_string(model, "", "model directory"... |
// Copyright 2015 Google 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 applicable... |
#include "Output.h"
Image<BWPixel> *Output::newOrReuse(Image<BWPixel> **reuse,int w,int h) const {
if ((reuse) && (*reuse) && (w==(**reuse).getW() && h==(**reuse).getH()))
return *reuse;
else {
if ((reuse) && (*reuse))
delete *reuse;
*reuse = new Image<BWPixel>;
(**reuse).allocate(w,h);
r... |
//
// Created by Vicram on 8/27/2019.
//
#include <iostream>
#include <bitset>
#include <cassert>
#include <cstring> // std::size_t and std::strncmp
#include "parseargs.h"
#include "../version.h"
// This macro is used to identify Windows. Sources:
// https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/6... |
#include "ros/ros.h"
#include "apc_msgs/BoundingBoxDepth.h"
#include "apc_msgs/ReturnFreeCentroids.h"
#include <cmath>
#include <vector>
//
// #include <iostream>
// //PCL Libraries - SOMETHING WRONG WITH THE INCLUDES HERE
#include <pcl/common/io.h> // pcl::copyPointCloud
#include <pcl/common/geometry.h>
#include <pc... |
#include "main.h"
#include "World.h"
#include "Utility.h"
#include "MatrixTransform.h"
#include "MotionTransform.h"
#include "IUpdatable.h"
#include "Geode.h"
#include "Wall.h"
#include "Switch.h"
#include "Dragon.h"
#include "Bear.h"
#include "Lamp.h"
#include "SpotLight.h"
#include "Patch.h"
#include "Skybox.h"
#incl... |
//######################################################################
//
// GraspIt!
// Copyright (C) 2002-2009 Columbia University in the City of New York.
// All rights reserved.
//
// GraspIt! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publi... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2018, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * R... |
// Copyright 2020 <NAME>. All rights reserved.
// License: https://github.com/PetrPPetrov/gkm-ship-cad/blob/master/LICENSE
#include <cassert>
#include <cstdint>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <string>
#include <sstream>
#include <vector>
#include <boost/polygon/polygon.hpp>
#include <Q... |
/**
* Copyright (C) 2019 Samsung Electronics 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
* Unless requ... |
///
/// \class l1t::Stage1Layer2EtSumAlgorithmImpPP
///
/// \author: <NAME>
///
/// Description: first iteration of stage 1 jet sums algo
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "L1Trigger/L1TCalorimeter/interface/Stage1Layer2EtSumAlgorithmImp.h"
#include "L1Trigger/L1TCalorimeter/interface/... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 Couchbase, 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
*
* h... |
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<queue>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=55;
const int maxAlpha=26;
const int maxNode=110;
const int Mod=1e9+7;
const int inf=2147483647;
class Trie... |
/*
* options.cc
*
* Created on: Feb 5, 2014
* Author: root
*/
#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
#include <log4cxx/propertyconfigurator.h>
#include <log4cxx/xml/domconfigurator.h>
#include "options.h"
#include <boost/program_options/option.hpp>
#include <boost/program_optio... |
/*
* VisualView.cpp
*
* Created by <NAME> on 12/20/06.
* Copyright 2006 University of Michigan. All rights reserved.
*
*/
#include "VisualView.h"
#include "VisualViewObject.h"
#include "GLEANKernel/Standard_symbols.h"
#include "AppColorUtilities.h"
#include "Color_map.h"
#include "GLEANKernel/Utility_template... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.