text stringlengths 5.71k 33.7k |
|---|
/*************************************************************************************************
* Tests for the common library features
*
* Copyright 2020 Google LLC
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obta... |
#include <tinyxml.h>
#include "train/example_generator.h"
#include "loader/loader_imagenet_det.h"
#include "helper/helper.h"
using std::vector;
using std::string;
namespace bfs = boost::filesystem;
// If true, only load a small number of images.
const bool kDoTest = false;
// Max ratio of bbox size to image size t... |
// Author: <NAME>
// This (very simple) node reads a laser scan, and
// publishes the distance to the nearest point
//
// TODO: ensure nearest few points are somewhat close
// TODO: what to return if no closest points?
// TODO: enable angle range we care about
// TODO: enable distance range we care about
#include "ro... |
#include "../dep/laynii_lib.h"
#include <sstream>
#include <vector>
#include <algorithm>
int show_help(void) {
printf(
"LN2_UVD_FILTER: Filter using flat coordinates (UV) and depth (D).\n"
" Passes a cylinder through UVD coordinates.\n"
"\n"
"Usage:\n"
" LN2_UVD_FILTER -values... |
// FIXME - needed to set fixed eta-phi limits. Without the
// visible area may change widely depending on energy
// deposition availability
#include "TEveCaloData.h"
#include "TEveViewer.h"
#include "TEveCalo.h"
#include "TAxis.h"
#include "TMath.h"
#include "THLimitsFinder.h"
#include "TLatex.h"
#inc... |
//// License: Apache 2.0. See LICENSE file in root directory.
//// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
#include "ds5-private.h"
using namespace std;
#define intrinsics_string(res) #res << "\t" << array2str((float_4&)table->rect_params[res]) << endl
namespace librealsense
{
namespace ds
... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <iterator>
#include <ctime>
#include <unordered_map>
#include <algorithm>
#include <sys/stat.h>
#include <sys/types.h>
#include <cmath>
#include <algorithm>
#include <cassert>
#include <chrono>
#include "lm.h"
/*
* Constuct the compa... |
/*
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* 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
*
* Unl... |
#include "../core/GLFilter.h"
#include "../core/GLImage.h"
#include "caffe2/core/timer.h"
#include <iostream>
#include <vector>
class GLSoftmaxReduce : public GLFilter {
public:
binding* inputTileSize;
binding* outputSize;
binding* outputTileSize;
binding* tileSize;
binding* spatialTileSize;
binding* in... |
// Copyright (C) 2019-2020 Zilliz. 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 l... |
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
/** \file MultipleClassifiers.cc
Implements the Multiple Classifiers class.
\author <NAME>
*/
#include "MultipleClassifiers.hh"
MultipleClassifiers::MultipleClassifiers(int id, int modelType, int predType,
int nModels, int trainMode,
... |
#include <assert.h>
#include <iostream>
#include <algorithm>
#include "code_cache.h"
#include "agent.h"
#include "util.h"
#include "thread_data.h" // for testing
#include "profiler.h"
#include "debug.h"
#ifdef PRINT_METHOD_INS
#include <fstream>
#include "x86-misc.h"
#endif
Method::Method(jmethodID method_id):_method... |
#include <iostream>
#include <string>
#include <stdlib.h>
#include <string.h>
#include <iomanip>
#include <vector>
#include <unordered_map>
#include <util.h>
#include "debug.h"
#include "types.h"
#include "decode.h"
#include "archdef.h"
#include "instr.h"
using namespace vortex;
struct InstTableEntry_t {
bool contr... |
/// HEADER
#include "map_explorer.h"
/// COMPONENT
#include "../states/global_state.h"
#include "../global.h"
/// SYSTEM
#include <nav_msgs/GetMap.h>
#include <opencv2/opencv.hpp>
#include <path_msgs/NavigateToGoalGoal.h>
#include <queue>
MapExplorer::MapExplorer() : exploring_(false), last_planning_failed_(false), ... |
#include "Physics/Systems/MovementSystem.h"
#include "Core/Diagnostics/Profiler.h"
#include "Core/Math/Vector3_SIMD.h"
#include "Core/Math/Vector4_SIMD.h"
#include "Config.h"
#define alloc_tmp(size) reinterpret_cast<Pu::AVX_FLOAT_UNION*>(_aligned_malloc(sizeof(Pu::ofloat) * size, sizeof(Pu::ofloat)))
Pu::MovementSys... |
/*
File: main.cpp
________________________________
Author(s): <NAME> (<EMAIL>)
This file is the main file of the HapEE-Control project
which send messages using the MAXON motor controller
EPOS library to the EPOS controllers and measures
forces/torques from the NI DAQ simultaneously. Hardware
used with this program in... |
// ======================================================================== //
// Copyright 2019 <NAME> //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// you ... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any pers... |
/**************************************************************************************
* *
* This application contains code from OpenDivX and is released as a "Larger Work" *
* under that license. Consistant with that license, ... |
#include <uWS/uWS.h>
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <limits>
#include <string>
#include <unordered_map>
#include <vector>
// #include "Eigen-3.3/Eigen/Core"
// #include "Eigen-3.3/Eigen/QR"
#include "constants.hpp"
#include "cost.hpp"
#include "hel... |
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/*
* File: main.cpp
* Author: <NAME> - 161044086
*
* Created on October 8, 2017, 1:00 PM
* This file include connectfour game implementation
*/
#include <iostream>
#include <cstdlib>
#include <ctype.h>
#include <fstream>
#include <string>
#define MAXSIZE 20
using namespace std;
/* enumarated type for palce o... |
// Copyright (c) Facebook, Inc. and its affiliates.
#include <glog/logging.h>
#include <math.h>
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
#include <optional>
#include <string>
#include "client.h"
#include "types.h"
using namespace std;
using ... |
#include "AnimateableLevelEvent.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#include "../Level.h"
#include "GLFW/glfw3.h"
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
void AnimateableLevelEvent::drawEditor()
{
if (beginKeyframeEditor())
{
drawSequences();
endKeyframeEditor();
}
// Draw keyframe edi... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* 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.... |
/*
* This Code Was Created By <NAME> & <NAME> 2000
* A HUGE Thanks To <NAME> For Cleaning Up And Optimizing
* The Base Code, Making It More Flexible! If You've Found This Code
* Useful, Please Let Me Know. Visit My Site At nehe.gamedev.net
*/
/*
I took a different ( I think, better ) approach to porting th... |
#include <iostream>
#include <vector>
#include <string>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "filesystem.h"
#include "shader_m.h"
#include "model.h"
#include "camera.h"
#include ... |
/*****************************************************************
* Portions extracted from:
* HMMER - Biological sequence analysis with profile HMMs
* Copyright (C) 1992-2003 Washington University School of Medicine
* All Rights Reserved
*
* This source code is distributed under the terms of the
* ... |
/********************************************************************************
* Copyright 2017 The Robotics Group, The <NAME>-<NAME>ler Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... |
//===-- ast/DeclRewriter.cpp ---------------------------------- -*- C++ -*-===//
//
// This file is distributed under the MIT license. See LICENSE.txt for details.
//
// Copyright (C) 2009-2010, <NAME>
//
//===----------------------------------------------------------------------===//
#include "comma/ast/AstResource.h... |
// Copyright <NAME> 2016
// Copyright <NAME> 2016.
// Copyright <NAME> 2016.
// Use, modification and distribution are subject to 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)
// Contains Quickbook snippets as C++ c... |
// Copyright (C) 2021 by the IntelliStream team (https://github.com/intellistream)
#include <Utils/BenchmarkUtils.hpp>
#include <Utils/Logger.hpp>
#include <Sources/DataSource.hpp>
#include <Sinks/DataSink.hpp>
#include <Engine/SimpleEngine.hpp>
#include <Evaluation/Evaluation.hpp>
#include <Evaluation/Purity.hpp>
#in... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
/*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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 ... |
///
/// Command line processor for the restore utility
///
//
// $Id: commandproc.cc,v 1.11 2013/08/06 10:59:41 joe Exp $
//
#include "common/error.hh"
#include "common/trace.hh"
#include "common/partial.hh"
#include "common/string.hh"
#include "common/scopeguard.hh"
#include "objparser/objparser.hh"
#include "xml/x... |
/* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... |
//// Simplified take on Arduino ESP8266 WiFi Management
//// https://github.com/johndelizo/ESP8266-SimpleWifiManager
//// by me[@]<EMAIL>
#include "SimpleWifiManager.h"
DNSServer dnsServer;
ESP8266WebServer webServer(80);
ConfigurableSerial cSerial;
void SimpleWifiManager::Begin(boolean enabled) {
_enab... |
// BlockAllocatorArea.cpp
#include "BlockAllocatorArea.h"
#include "Debug.h"
// constructor
BlockAllocator::Area::Area(area_id id, size_t size)
: fBucket(NULL),
fID(id),
fSize(size),
fFreeBytes(0),
fFreeBlockCount(1),
fUsedBlockCount(0),
fFirstBlock(NULL),
fLastBlock(NULL),
fFirstFree(NULL),
... |
int
fJ ,
C8y
/*D*/
,
TqMih
,
mckSb//lK
, YuU ,
dy
,C3m,Z,eq ,H4f ,U , rI , E1t, tbiD ,K0I,
VS,
V
,XvT, //6
r4j ,wO, zy/*gEH*/ , y1X ,oYkSB //T
,/*I*/
fq , nYU ,BHm//RLs9
,y5C
, vMsYQ , iD, TiwM,r9ol , pG,
vlW, QEp
, U74S,
JQmB
, cl;
void f_f0(){
;for(int i=1;i<
1;++i
)
;{int vkw; volatile i... |
#include "CintFunctionLibrary.h"
#define _USE_MATH_DEFINES
#include <cmath>
// ROOT
#include "TF1.h"
double BreitWigner( double Mll, double Mreso, double gamma ){
return 2.0 * gamma / ( pow( Mll - Mreso, 2.0 ) + pow( gamma / 2.0, 2.0 ) );
}
double BreitWigner( double *x, double *par ){
double width = par[... |
#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"
//#include "vehicle.h"
#include <cmath>
// for convenience
using nlohmann::json;
usin... |
/******************************************************************************
* The MIT License
*
* Copyright (c) 2010 LeafLabs LLC.
*
* 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... |
#include"Galprop.h"
#include"galprop_classes.h"
#include"galprop_internal.h"
#include"constants.h"
#include"fitsio.h"
#include <iostream>
#include <sstream>
#include <vector>
#include <ErrorLogger.h>
// interfaces to nH.cc
double nHI (double Rkpc, double Zkpc);
double nH2 (double Rkpc, double Zkpc);
double nH2 (doub... |
/* author: <NAME> */
/* git: https://github.com/josefdolezal */
#ifndef __PROGTEST__
#include <cassert>
#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <vector>
#include <set>
#include <list>
#include <map>
#include <algorithm>
using namespace std;
class CResult
{
public:
CRes... |
// Lifted from:
// https://mikeash.com/pyblog/fluid-simulation-for-dummies.html
// Wants refactoring...
// The simulation code and ideas that I'm going to present are based on Jos Stam's paper Real-Time Fluid Dynamics for Games.
// If you want a more in-depth look at what's going on, that's the place to go. You c... |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2016, Intel Corporation
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to de... |
#include <editor.h>
void Editor::initEditor(){
lines.clear();
line = lines.begin(); // lines
line = lines.insert(line, vector<wchar_t>());
colItr = line->begin(); // line
}
void Editor::backSpace(){
if(colItr != line->begin()){
colItr --;
colItr = line->erase(colItr);
}else{
if(line == lines.b... |
#include <crtdbg.h>
#include <Windows.h>
#include <iostream>
using namespace std;
#include <AntTweakBar/AntTweakBar.h>
#include <graphics/gl4x/other/GLPrimitives.h>
#include <graphics/gl4x/common/GLHelperFunctions.h>
#include <graphics/gl4xext/rendering/QuadShader.h>
#include "GPUFluid2D.h"
#include "Fl... |
/****************************************************************************
* Copyright (c) 2015 - 2016, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code mus... |
/*
ROBOOP -- A robotics object oriented package in C++
Copyright (C) 1996-2004 <NAME>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
License, or (at your option) an... |
/* AudioDaemon.cpp
Copyright (c) 2012-2015, The Linux Foundation. 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 l... |
#include <gtest/gtest.h>
#include <chrono>
#include <fstream>
#include "extlibs/hrvo/simulator.h"
#include "proto/primitive/primitive_msg_factory.h"
#include "shared/test_util/tbots_gtest_main.h"
const int SIMULATOR_FRAME_RATE = 30;
class HRVOTest : public ::testing::Test
{
// Test Properties
// Max simulat... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
/*
* This file is part of Quartica.
*
* Copyright (c) 2008 <NAME> <<EMAIL>>
*
* freedesktopmime is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opt... |
// This file is subject to the terms and conditions defined in 'LICENSE' in the source code package
#include "render/spritemap_generator.h"
#include <algorithm>
#include <map>
#include "core/convert.h"
#include "core/logger.h"
#include "core/resource_guard.h"
#include "data/prototype_manager.h"
using namespace jact... |
/*
MIT License
Copyright (c) 2020 <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, d... |
#include "RAFFS.h"
#include "CodalDmesg.h"
#include "NotifyEvents.h"
#include "MessageBus.h"
#include "Timer.h"
#include "pxtbase.h"
#include <stddef.h>
#define RAFFS_MAGIC 0x7776e0da
#define M1 0xffffffffU
#define CHECK
//#undef CHECK
using namespace codal;
#define oops() target_panic(DEVICE_FLASH_ERROR)
#define... |
#include "Volume.h"
#include <tuple>
#include <deque>
#include <vtkImageReader.h>
#include <vtkImageWriter.h>
#include <vtkPNGReader.h>
#include <vtkPNGWriter.h>
#include <vtkGPUVolumeRayCastMapper.h>
#include <vtkFixedPointVolumeRayCastMapper.h>
#include <vtkVolumeTextureMapper2D.h>
#include <vtkColorTra... |
/*
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 usefu... |
//////////////////////////////////////////////////////////////////////
//
// CyoDecode.cpp
//
// Developed by <NAME> for Cyotec Systems Limited.
// http://www.cyotec.com
//
// Copyright (c) 2004 by Cyotec Systems Limited. All Rights Reserved.
//
// This source code may be used, modified, compiled, duplicated... |
///////////////////////////////////////////////////////////////////////////////
// @name Timed Asynchronous Circuit Optimization
// @version 0.1 alpha
//
// (c)opyright 1998 by <NAME>
//
// @author <NAME>
//
// Permission to use, copy, modify and/or distribute, but not sell, this
// software and... |
#ifdef _DEBUG
#define _SCL_SECURE_NO_WARNINGS
#endif
#include <iostream>
#include "scannerwindow.h"
#include "ui_scannerwindow.h"
#include <vtkAutoInit.h>
// registration and 3D view
#include "registration.h"
// Grabber
#include "kinect2grabber.h"
#include<QElapsedTimer>
#include <thread>
#include <vector>
#include... |
#include "UIState.h"
WNDCLASSEX wcTileset;
HINSTANCE hMap;
WNDCLASSEX wcMap;
HINSTANCE hTileset;
extern HWND hTabControl;
//WINUSERAPI
//INT_PTR
//WINAPI
//DialogBoxParamA(
// _In_opt_ HINSTANCE hInstance,
// _In_ LPCSTR lpTemplateName,
// _In_opt_ HWND hWndParent,
// _In_opt_ DLGPROC lpDialogFunc,
// _In_ LPARAM dwI... |
#include "pch.hpp"
#include "WinImgui11.hpp"
#include "vertex.hxx"
#include "pixel.hxx"
WinImgui11::WinImgui11( HWND hWnd, ComPtr<ID3D11Device> pD3DDevice, ComPtr<ID3D11DeviceContext> pDeviceContext, std::filesystem::path const& iniPath ) : WinImgui{ hWnd, iniPath },
md3dDevice{ std::move( pD3DDevice ) }, md3d... |
/*
WorldServerLogin.cpp
(c)2005 Palestar Inc, <NAME>
*/
#include "Standard/Time.h"
#include "WorldServer.h"
//----------------------------------------------------------------------------
Constant DEFAULT_FOCUS_AREA( "DEFAULT_FOCUS_AREA", 5000.0f );
//-------------------------------------------------------------... |
#include "stdafx.h"
#include "TerrainPatchMesher.h"
#include "VoxelSpaceConversions.h"
#include "SphericalTerrainComponentUpdater.h"
#include "SphericalHeightmapGenerator.h"
#include "TerrainPatchMeshManager.h"
#include "PlanetGenData.h"
#include <Vorb/graphics/GpuMemory.h>
#include <Vorb/graphics/GraphicsDevice.h>
#... |
#define GLFW_INCLUDE_GLU
#define GL_SILENCE_DEPRECATION
#include <GLFW/glfw3.h>
//#include <GL/glew.h>
#include <iostream>
#include <iomanip>
#include <opencv2/core.hpp> // include OpenCV core headers
#include <opencv2/imgproc.hpp> // include image processing headers
#include <opencv2/highgui.hpp> // include GUI-r... |
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... |
#include "altruct/algorithm/collections/collections.h"
#include "altruct/algorithm/math/pell.h"
#include "altruct/algorithm/math/factorization.h"
#include "gtest/gtest.h"
using namespace std;
using namespace altruct::math;
using namespace altruct::collections;
namespace {
typedef quadraticX<int64_t> quadx... |
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See copy at http://www.boost.org/LICENSE_1_0.txt)
#include <Wm4Math.h>
#include "MatrixBlender.h"
#include "rmsdebug.h"
using namespace rms;
// ports of Cindy's matrix exponential code
// ( untested - not... |
#include "quadrature_decoder.h"
#include "rtc_management.h"
#include "microsecond_delay.h"
#include <stm32f4xx_gpio.h>
#include <stm32f4xx_rcc.h>
#include "stm32f4xx_conf.h"
/*!
* On the stm32f4discovery board avoid these pins:
* TIM1 should avoid PA9 used by USB. (green led which indicates VBUS is present.) ... |
//
// Created by <NAME> (EI) on 2019-07-12.
//
#include "SequenceMapper.hpp"
SequenceMapper::SequenceMapper(const DistanceGraph &_dg,uint8_t _k, int _min_size, int _min_chain, int _max_jump, int _max_delta_change):sg(_dg) {
k=_k;
min_size=_min_size;
min_chain=_min_chain;
max_jump=_max_jump;
max_de... |
#include <Std.h>
#include <MpiSupport.h>
#include <CudaSupport.h>
#include <Definitions.h>
#include <MathObjects.h>
#include <CudaObjects.h>
#include <IterationCallback.h>
#include <kernel.h>
///////////////////////////////////////////////////////////////////////////////
class CExchangeDefinition {
public:
CExchang... |
/*
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: <NAME>
*/
#include "util/fresh_name.h"
#include "kernel/type_checker.h"
#include "kernel/abstract.h"
#include "kernel/instantiate.h"
#include "kernel/inductive/inductive.h"
#inc... |
#include "Scripting/Runtime.h"
#include "App/AppUtilities.h"
#include "Components/LocationComponent.h"
#include "Meta/CompilerAlgo.h"
#include "Scripting/PythonComponent.h"
#include "Scripting/ResolvedAssets.h"
#include "Time/GameClock.h"
#include "VTS/ResolvedAssets.h"
#include <PyLogHook.h>
#include <pybind11/cast.h... |
#include "rgb_processing.h"
#include <cstdio>
#include <string>
//#include "shader_util.h"
#include "cvglsl.h"
#include "egl_x11.h"
#include "glm/glm.hpp"
#include "glm/gtc/constants.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
static const std::string xctShaderFolderPath("shaders/");
... |
// $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/calibGenTKR/src/xml2root/XmltorootHandler.cxx,v 1.4 2005/10/20 23:22:42 jrb Exp $
/**
@file XmltorootHandler.cxx
Implementation of callbacks for Xerces SAX parser
*/
#include <cstdio>
#include <iostream>
#include <cstdlib> // for syste... |
/**
* Partly Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
* Partly Copyright (c) 2020 Pimoroni Ltd.
* Partly Copyright (c) 2021 <NAME> @paulsk.
* 2021-06-27 at 18h49 PT the project functioning as intended.
* 'Finishing touch' ready on 2021-06-28 at 18h49 PT (coincidence!)
* SPDX-License-Identifier: BSD-3-Claus... |
//===============================================================================//
// Name : reasoner.cpp
// Author(s) : <NAME>
// Affiliation : University of Genova, Italy - dept. DIBRIS
// Version : 1.1
// Description : Human Motion Primitives reasoner module (on-line / off-line)
//===============================... |
#include <iostream>
#include <memory>
#include <deque>
#include <fstream>
#include <iterator>
#include <vector>
#include <getopt.h>
#include <stdint.h>
#include "tinywav.hpp"
#include "json.hpp"
#include "Control.hpp"
#include "Serialization.hpp"
#include "TestConfig.hpp"
#include "Vics_adpcm.h"
#if VM_TRACE
#inclu... |
/*
* Copyright (c) 2011 Jice
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include "dishuffman.h"
#include <bitset>
DisHuffman::DisHuffman() {
// ��ʼ����������distance�Ĺ�ϵ
dis_to_ic_ = new uint8[512]{
0, 1, 2, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8,
8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10... |
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// 2... |
#include<glad/glad.h>
#include<GLFW/glfw3.h>
#include<glm/glm.hpp>
#include<glm/gtc/matrix_transform.hpp>
#include<glm/gtc/type_ptr.hpp>
#include "Resources/Headers/stb_image.h"
#include<iostream>
#include<cmath>
#include "Resources/Headers/Shader_new.h"
void processInput (GLFWwindow *);
void framebuffer_size_cal... |
/*
* 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 "SkPaint.h"
#include "SkColorFilter.h"
#include "SkDraw.h"
#include "SkFontDescriptor.h"
#include "SkGraphics.h"
#include "SkPaintDefaults.h"
#include "SkPaintPriv.h"... |
/*
* PatchDataset2.cpp
* OpenCV
*
* Created by <NAME> on 10/25/10.
* Copyright 2010 UC San Diego. All rights reserved.
*
*/
#include "PatchDataset2.h"
#include <math.h>
#include <fstream>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "DebugGlobals.h"
#include "Detect... |
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdint.h>
#include <string.h>
#if defined(OS_LINUX) || defined(OS_MACOSX)
#include <sys/ioctl.h>
#include <termios.h>
#elif defined(OS_WINDOWS) || defined(WIN32) || defined(WIN64)
#include <conio.h>
#include <windows.h>
#endif
#include "hid.h"
#def... |
// Copyright (c) 2010 <NAME>
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Copyright (c) 2019-2020 vadique
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php
#include "rpc/server.h"
#include "base58.h"
#include "init.h"... |
/*
CCCC - C and C++ Code Counter
Copyright (C) 1994-2005 <NAME> (<EMAIL>)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) ... |
#include "segmatch/opencv_random_forest.hpp"
#include <laser_slam/common.hpp>
using namespace Nabo;
using namespace Eigen;
using namespace cv;
using namespace segmatch;
void convertEigenToOpenCvMat(const Eigen::MatrixXd& eigen_mat,
Mat* open_cv_mat) {
CHECK_NOTNULL(open_cv_mat);
for ... |
// 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 "chrome/browser/safe_browsing/safe_browsing_util.h"
#include "base/hmac.h"
#include "base/logging.h"
#include "base/sha2.h"
#include "b... |
//Includes
//#include <chrono>
#include "lstm4.c"
//Declarations
const valarray<size_t> oktypes = {1u,2u};
const size_t I = 8u, O = 1u;
size_t dim, N, T;
//Description
string descr;
descr += "Neural soma stage.\n";
descr += "Does LSTM (long short-term memory) model for driving\n";
descr += "inputs Xc, Xi, Xf, Xo, whe... |
#include "CC1201.hpp"
#include "assert.hpp"
#include "logger.hpp"
// clang-format off
const char* CC1201_STATE_NAMES[] = {
"IDLE",
"RX",
"TX",
"FSTXON",
"CALIB",
"SETTLE",
"RX_FIFO_ERR",
"TX_FIFO_ERR"
};
// clang-format on
// check that the address byte doesn't have any non-address bi... |
#define COMPARE_WITH_CHF
#define COVARIANTZ4
// Chombo includes
#include "FArrayBox.H"
// Other includes
#ifdef _OPENMP
#include <omp.h>
#endif
#include <iomanip>
#include <iostream>
#include <sys/time.h>
#include "BoxLoops.hpp"
#include "CCZ4RHS.hpp"
#include "EMTensor.hpp"
#include "GravWavDecF_F.H"
#include "Mat... |
/**
* @file
* @brief Functions for blood, chunk, & corpse rot.
**/
#include "AppHdr.h"
#include "rot.h"
#include <algorithm>
#include "areas.h"
#include "butcher.h"
#include "delay.h"
#include "english.h"
#include "env.h"
#include "god-conduct.h"
#include "item-prop.h"
#include "items.h"
#include "player-equip.h... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, JSK, The University of Tokyo.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the... |
/* -*- mode:C++; c-basic-offset:4 -*-
Shore-kits -- Benchmark implementations for Shore-MT
Copyright (c) 2007-2009
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
All Rights Reserved.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.