text stringlengths 5.71k 33.7k |
|---|
#include "MeshConverter.h"
#include "MeshCriteria.h"
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/Mesh_3/config.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
#include "stdafx.h"
#include "Geometry.h"
namespace Pdf {
namespace Geometry {
/////////////////////////////////////////
const double pdfPoint::PI = 3.14159L;
pdfPoint::pdfPoint()
{
X = 0;
Y = 0;
}
pdfPoint::pdfPoint( float x, float y )
{
X = x;
Y = y;
}
pdfPoint::pdfPoint( const pdfPoint& src )
{
X = src.X;
... |
#include "selfdrive/ui/ui.h"
#include <unistd.h>
#include <cassert>
#include <cmath>
#include <cstdio>
#include "selfdrive/common/swaglog.h"
#include "selfdrive/common/util.h"
#include "selfdrive/common/visionimg.h"
#include "selfdrive/common/watchdog.h"
#include "selfdrive/hardware/hw.h"
#include "selfdrive/ui/pain... |
///////////////////////////////////////////////////////////////////////////////
// File: FP420SD.cc
// Date: 02.2006
// Description: Sensitive Detector class for FP420
// Modifications:
///////////////////////////////////////////////////////////////////////////////
#include "SimG4Core/SensitiveDetector/interface/Frame... |
/*
* This is an implementation of wcwidth() and wcswidth() (defined in
* IEEE Std 1002.1-2001) for Unicode.
*
* http://www.opengroup.org/onlinepubs/007904975/functions/wcwidth.html
* http://www.opengroup.org/onlinepubs/007904975/functions/wcswidth.html
*
* In fixed-width output devices, Latin characters all occu... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
/**
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... |
/*
* Copyright 2011 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkFontHost.h"
#include "SkDescriptor.h"
#include "SkMMapStream.h"
#include "SkPaint.h"
#include "SkString.h"
#include "SkStream.h"
#include "Sk... |
#include "Marlin.h"
#include "planner.h"
#include "temperature.h"
#include "ultralcd.h"
#include "ConfigurationStore.h"
void _EEPROM_writeData(int &pos, uint8_t* value, uint8_t size)
{
do
{
eeprom_write_byte((unsigned char*)pos, *value);
pos++;
value++;
}while(--size);
}
#define EEP... |
/* ========================================
* Noise - Noise.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#include "NoiseProcessor.h"
NoiseProcessor::NoiseProcessor()
{
paramBindings =
{
{HIGH_CUT, &A},
{LOW_CUT, &B},
{LSHAPE... |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
Vamp
An API for audio analysis and feature extraction plugins.
Centre for Digital Music, Queen Mary, University of London.
Copyright 2006-2009 <NAME> and QMUL.
Permission is hereby granted, free of charge, to any... |
// Scintilla source code edit control
/** @file LexCPP.cxx
** Lexer for C++, C, Java, and JavaScript.
**/
// Copyright 1998-2005 by <NAME> <<EMAIL>>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#inc... |
#include "driver.h"
/* History:
*
* 980205 now using the new sample_*() functions. BW
*
*/
/*
Tac/Scan sound constants
There are some sounds that are unknown:
$09
$0a
$0e
$1c
$30 - $3f
$41
Some sound samples are missing:
- I use the one bullet and one explosion sound for all 3 for example.
Star Tr... |
#include <time.h>
#include <numeric>
#include <ctime>
#include <time.h>
#include <random>
#include "seed.h"
#include "findMatch.h"
using namespace Image;
using namespace PMVS3;
using namespace Patch;
using namespace std;
Cseed::Cseed(CfindMatch& findMatch) : m_fm(findMatch) {
}
void Cseed::init(const std::vector<std... |
//
// VROPhysicsBody.m
// ViroRenderer
//
// Copyright © 2017 Viro Media. 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
// w... |
/**
BSD 3-Clause License
Copyright (c) 2018, <NAME> and <NAME>.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of c... |
/*
* Copyright (c) 2014 - 2015, <NAME>, Ph.D.
* West Virginia University Applied Space Exploration Lab
* West Virginia Robotic Technology Center
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions a... |
// ***************************************************************************
// BamReader_p.cpp (c) 2009 <NAME>
// Marth Lab, Department of Biology, Boston College
// ---------------------------------------------------------------------------
// Last modified: 18 November 2012 (DB)
// --------------------------------... |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... |
#include "lamure/mesh/old/kdtree.h"
uint32_t kdtree_t::invalid_node_id_t = std::numeric_limits<uint32_t>::max();
kdtree_t::kdtree_t(const std::vector<indexed_triangle_t>& _triangles, uint32_t _tris_per_node) : num_triangles_per_node_(_tris_per_node), fanout_factor_(2), depth_(0) { create(_triangles); }
const uint32... |
#include "TSTextField.hpp"
//#include <widget/Widget.hpp> //#include "widgets.hpp"
//#include "ui.hpp"
//// for gVg
//#include "window.hpp"
// for key codes
#include <GLFW/glfw3.h>
using namespace rack;
#include "trowaSoftComponents.hpp"
TSTextField::TSTextField(TextType textType) : TextField() {
multiline = false; ... |
#include "FFmpegVideoDecodingThread.h"
extern "C"
{
#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libswresample/swresample.h>
#include <l... |
// MIT License
// Copyright (c) 2019 <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, p... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/installer/util/lzma_util.h"
#include <ntstatus.h>
#include <windows.h>
#include <stddef.h>
#include <vector>
#include "base/callb... |
// Copyright 2020-2021 CesiumGS, Inc. and Contributors
#include "CesiumIonPanel.h"
#include "Cesium3DTilesSelection/Tile.h"
#include "Cesium3DTilesSelection/Tileset.h"
#include "Cesium3DTileset.h"
#include "CesiumCommands.h"
#include "CesiumEditor.h"
#include "CesiumIonRasterOverlay.h"
#include "Editor.h"
#include "Ed... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <ie_core.hpp>
#include "cpp_interfaces/interface/ie_internal_plugin_config.hpp"
#include "tests_common.hpp"
#include "single_layer_common.hpp"
#include "common_test_utils/data_utils.hpp"
using nam... |
/*
* for the scheduling of events.
*
* The interface(s) provided are:
* 1. Provide an event to the TimerManager that should be sent back to an
* UpdateableObject when the specified time elapses.
*
* REVISIONS:
* pcy30Nov92: list.h added; Insert, Find, and Remove reworked for new list.
* jod07Dec... |
// Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/
// Written by <NAME> <<EMAIL>>
// NOTE: ChainExampleMerger comes from Kaldi. While it has been slightly modified here, the original
// code is copyrighted as follows
// Copyright 2015 Johns Hopkins University (author: <NAME>)
// See ../../CO... |
#include <algorithm>
#include <bitset>
#include <chrono>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <set>
#include <sstream>
#include <string>
#include <getopt.h>
#include "CacheConfig.hh"
#include "CacheHierarchy.hh"
#include "DirectMappedCache.hh"
#include "InfiniteCache.h... |
/*
This file forms part of hpGEM. This package has been developed over a number of
years by various people at the University of Twente and a full list of
contributors can be found at http://hpgem.org/about-the-code/team
This code is distributed using BSD 3-Clause License. A copy of which can found
below.
Copyr... |
#include "PostProcessor_pcp.h"
#include "ResultFile_hdf5_DataStruct.h"
#include "GA_T2D_CHM_s_hdf5.h"
using namespace ResultFile_hdf5_DataStruct;
using namespace Model_T2D_CHM_s_hdf5_io_utilities;
GA_T2D_CHM_s_hdf5::GA_T2D_CHM_s_hdf5(GLsizei win_w, GLsizei win_h) :
GenerateAnimation(win_w, win_h), th_id(-1),
cbar... |
/*
MIT License
Copyright (c) 2018-2019 <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, di... |
/*
* Copyright 2019 Xilinx, 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... |
#include <timeSeries.hpp>
bool operator==(const TimeExpansion& a, const TimeExpansion& b) {
if (a.leftAxisIndex == b.leftAxisIndex && a.rightAxisIndex == b.rightAxisIndex)
return true;
return false;
}
TimeSeries::TimeSeries(GraphApp* app):
Tool(app),
m_num_timeAxis{*app->getNumTimeAxis()}
... |
#include "Scene.h"
#include "Camera.h"
#include "Light.h"
#include "Material.h"
#include "Shape.h"
#include "tinyxml2.h"
#include "Image.h"
#include "helpers.h"
#include <limits>
#include <thread>
#include <mutex>
using namespace tinyxml2;
const float INF = numeric_limits<float>::max();
int lastRow;
mutex rowMutex;
... |
// This file if part of the llir-opt project.
// Licensing information can be found in the LICENSE file.
// (C) 2018 <NAME>. All rights reserved.
#include <sstream>
#include "passes/inliner/inline_helper.h"
#include "passes/inliner/trampoline_graph.h"
// ------------------------------------------------------------... |
// This file is part of PGM-index <https://github.com/gvinciguerra/PGM-index>.
// Copyright (c) 2018 <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.or... |
#include "ExceptionUtils.hpp"
#include <Doxybook/Doxygen.hpp>
#include <Doxybook/Exception.hpp>
#include <Doxybook/JsonConverter.hpp>
#include <Doxybook/Utils.hpp>
#include <iostream>
#include <nlohmann/json.hpp>
#include <unordered_set>
static bool isFunctionType(const Doxybook2::Type type) {
switch (ty... |
/*
* Copyright(C) 2021. Huawei Technologies 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
*
* Unles... |
#include <Color.h>
#include <array>
#include <unordered_map>
using namespace pdfout;
namespace{
std::unordered_map<pdfout::ColorName, std::array<uint8_t, 3>> colorNameToRGB{
{ColorNameAliceBlue, {0xF0, 0xF8, 0xFF}},
{ColorNameAntiqueWhite, {0xFA, 0xEB, 0xD7}},
{ColorName... |
/**
* \class L1GtBoardMapsTrivialProducer
*
*
* Description: ESProducer for various mappings of the L1 GT boards.
*
* Implementation:
* <TODO: enter implementation details>
*
* \author: <NAME> - HEPHY Vienna
*
*
*/
// this class header
#include "L1TriggerConfig/L1GtConfigProducers/interface/L1GtBoardMap... |
// Copyright 2017 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 "ui/events/ozone/evdev/gamepad_event_converter_evdev.h"
#include <errno.h>
#include <fcntl.h>
#include <linux/input.h>
#include <unistd.h>
#inc... |
#include "RecoEgamma/EgammaElectronAlgos/interface/PixelHitMatcher.h"
#include "RecoEgamma/EgammaElectronAlgos/interface/PixelMatchNextLayers.h"
#include "RecoEgamma/EgammaElectronAlgos/interface/ElectronUtilities.h"
#include "TrackingTools/PatternTools/interface/TrajectoryMeasurement.h"
#include "TrackingTools/DetLaye... |
//----------------------------------*-C++-*----------------------------------//
// Copyright 2021 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
#include "globals.h"
#include "code.h"
#include "symtab2.h"
#include "cgen.h"
static int tmpOffset = 0;// 数据区临时变量堆栈偏移量 将临时变量保存在寄存器中,而不是经常操作内存读出和写入
static int frameOffset = 0;//当前函数的地址
static int ofpFO = 0;//函数调用时偏移,调用时加上调用函数的地址,结束后恢复
static int retFO = -1;//函数返回地址(-1)
static int initFO = -2;//加载后面的参数&变量
static voi... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
//S... |
#include <iostream>
#include <iomanip>
#include <random>
#include <fstream>
#include <memory>
#include "../external/essentials/include/essentials.hpp"
#include "../external/cmd_line_parser/include/parser.hpp"
// SDSL
#include "../external/sdsl-lite/include/sdsl/rank_support.hpp"
#include "../external/sdsl-lite/includ... |
/* <orly/indy/disk/merge_data_file.test.cc>
Unit test for <orly/indy/disk/merge_data_file.h>.
Copyright 2010-2014 OrlyAtomics, 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
... |
#include "CondTools/Ecal/interface/EcalTPGPhysicsConstHandler.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
#include "OnlineDB/EcalCondDB/interface/RunTPGConfigDat.h"
#include "OnlineDB/EcalCondDB/interface/FEConfigMainInfo.h"
#include "OnlineDB/EcalCondDB/int... |
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011-2014, <NAME>, Inc.
* Copyright (c) 2014-2016, Open Source Robotics Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
// Copyright (c) 2020-2021 <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 "ofApp.h"
#include "ofxAssimpModelLoader.h"
GLfloat lightOnePosition[] = { 40.0, 40, 100.0, 0.0 };
GLfloat lightOneColor[] = { 0.99, 0.99, 0.99, 1.0 };
GLfloat lightTwoPosition[] = { -40.0, 40, 100.0, 0.0 };
GLfloat lightTwoColor[] = { 0.99, 0.99, 0.99, 1.0 };
ofApp::ofApp()
{
obj_model_ = nullptr;
main_c... |
#include "market.h"
#include <cassert>
#include <iostream>
#include <algorithm>
/// File name to save/load wallet info
static const char * WALLET_FILE = "wallets.dat";
/// File name to save/load transactions info
static const char * TRANSACTION_FILE = "transactions.dat";
/// File name to save/load orders info
stati... |
#include <iostream>
#include "ukf.h"
#include "tools.h"
#include "Eigen/Dense"
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Constructor
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
// if this is... |
// model_circuit.cpp - <NAME> - BSD-3-Clause (see LICENSE)
//
// describe the composition of a logic circuit
#include "model_circuit.h"
#include "sim_circuit.h"
#include "lsim_context.h"
#include "simulator.h"
#include <cassert>
#include "std_helper.h"
namespace {
std::string unqualified_circuit_name(const std::st... |
//
// Created by Andrea on 28/07/2017.
//
#include "Task3D.h"
#include <custom_conversions/Conversions.h>
#include <vtkCubeSource.h>
#include <boost/thread/thread.hpp>
namespace ThreeDColors {
double Green_Arrow[3]{0.3176, 0.6431, 0.3215};
double Green[3]{0.0, 0.9, 0.03};
double Yellow[3]{1.0, 0.702, 0.... |
/**
@file
@author <NAME>
@author <NAME>
@section LICENCE
Copyright or © or Copr. CNRS
This software is a computer program whose purpose is to estimate
phylogenies and evolutionary parameters from a dataset according to
the maximum likelihood principle.
This software is governed by the CeCILL license under French ... |
/*
* main.cpp
*
* Created on: 19 de fev de 2020
* Author: carlos
*/
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <queue>
#include <thread>
#include <sys/time.h>
#include <ctime>
//#include "admxrc3.h"
#include "tinydir.h"
#include "ComparisonData.h... |
// Copyright (C) 2021-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <chrono> // NOLINT
#include <vector>
#include <tuple>
#include <string>
#include <gflags/gflags.h>
#include <ie_iextension.h>
#include <opencv2/gapi/render.hpp>
#include <opencv2/gapi/core.hpp>
#include <monitors/present... |
////////////////////////////////////////////////////////////////////////////////
// Name: AlphaBetaMemory
// Description: Implementation for class that performs an alpha beta search
// Created: Jul 14, 2004 08:46:37 AM
// Author: <NAME>
// Email: <EMAIL>
// Copyright: (c) 2004 <NAME>
/////... |
#include <tg/GltfTerrainGenerator.h>
#include <ctl/ctl.h>
#include <ip/pngwrapper.h>
#include <ip/jpgwrapper.h>
//#include <filesystem>
#undef max
#undef min
#define NOMINMAX
#include <scenegraphgltf/scenegraphgltf.h>
using namespace cognitics;
void GltfTerrainGenerator::AdjustJSON_UV(double& u, double& v)
{
//... |
// Copyright (c) 2018, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <map>
#i... |
/*
* Copyright (c) 2020-2021 Valve Corporation
* Copyright (c) 2020-2021 LunarG, 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... |
/******************************************************************************
* NOTICE *
* *
* This software (or technical data) was produced for the U.S. Government *
... |
/* Plugin implementation for gstreamer encoder
*
* \copyright
* Copyright 2018 Red Hat Inc. All rights reserved.
*/
#include <config.h>
#include <cstring>
#include <exception>
#include <stdexcept>
#include <memory>
#include <syslog.h>
#include <unistd.h>
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#defin... |
#include <opencv2/imgproc/types_c.h>
#include <opencv2/opencv.hpp>
#include <opencv2/stitching.hpp>
#include <string.h>
#include <iostream>
#include <math.h>
#include <vector>
#include <pthread.h>
#include <cstdlib>
#include <ctime>
#include <windows.h>
#define pi 3.14159
#define NUM_THREADS 8
using n... |
/******************************************************************************
/
/ File: VideoIn.cpp
/
/ Description: High-Level ATI Radeon Video Capture Interface.
/
/ Copyright 2001, <NAME>
/
*******************************************************************************/
#include <Debug.h>
#include "VideoIn.h"
#... |
#include "gbConfig.h"
#include "gbGlobals.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
//#include <SDL/SDL.h>
#include "nes.h"
#include "osd.h"
#include "PS2KeyCode.h"
#include "keys.h"
#include "sdl.h"
#include "dataFlash/gbrom.h"
//JJ SDL_Surface *screen;
//JJ SDL_Event event;
//JJ SDL_Color gb_col... |
/////////////////////////////////////////////////////////////////////////
//
// Author: <NAME> (<EMAIL>)
//
// Copyright 2017-2018 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 obtain a copy of the License ... |
//
// Created by <NAME> on 18/03/2018.
//
#include "Car.h"
#include "../Scene/Entity.h"
Car::Car(std::vector<CarModel> car_meshes, NFSVer nfs_version, std::string car_name, GLuint car_textureArrayID) : Car(car_meshes, nfs_version, car_name) {
textureArrayID = car_textureArrayID;
multitexturedCarModel = true;... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributi... |
/*
Copyright (c) 2017,2018 Regents of the University of Minnesota.
All Rights Reserved.
See corresponding header file for details.
*/
#define _USE_MATH_DEFINES
#include "gui_plus_opengl.h"
#include "default_shader.h"
#include "mesh.h"
#include "shader_program.h"
#include "texture2d.h"
#include "text_shader.h"
#in... |
#include "Display.h"
#include "AppState.h"
#define DEBUG false
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library for ST7735
#define TFT_CS 10
#define TFT_RST 8
#define TFT_DC 9
#define TFT_MOSI 11
#define TFT_SCLK 12
#define T 4000
#... |
/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... |
/**
* @author <NAME>
*/
// This is a ROS project
#include <ros/ros.h>
#include <ros/package.h>
// Local headers
#include <thesis/math3d.h>
#include <thesis/timestring.h>
#include <thesis/semantic_map.h>
// We are working with TF
#include <tf/transform_listener.h>
// We want to subscribe to messages of this types
... |
/** @file
@brief Main file for a video-based HMD tracker.
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You ... |
/**
*************************************************************
* @file keyCounter.c
*
*
*
* @author <NAME> <<EMAIL>>
* @version 0.1
* @date 10 nov 2010
*
* Dependencies:
* - libstst-dev
* - x11proto-record-dev
*
* Compile:
* - g++ -o keyCounter keyCounter.cpp cfileutils.cpp -lX11 -lXtst
***********************... |
#include "image.h"
#include "tga.h"
#include <algorithm>
#include <memory.h>
#include <math.h>
// construct image from file
Image::Image(const std::string &filename)
{
load(filename);
}
// construct references
Image::Image(const Image& image)
: mData(image.getData())
, mWidth(image.getWidth())
, mHeight(image.ge... |
#include <stdio.h> // for printf
#include <stdlib.h> // for malloc
#include <malloc.h>
#include <time.h>
#include <math.h>
#include <iostream>
#define rand01 (0.9999999*double(rand())/RAND_MAX)
#define getrandom(max1) (((rand())%(max1))) // random integer between 0 and max-1
//There are two implementation... |
#include "process/forwarding.hpp"
#include <cassert>
#include <typeinfo>
#include <utility>
#include "candidates.hpp"
#include "choices.hpp"
#include "fib.hpp"
#include "middlebox.hpp"
#include "network.hpp"
#include "payload.hpp"
#include "policy/policy.hpp"
#include "stats.hpp"
#include "lib/net.hpp"
#include "lib/... |
// Released into the public domain. --<NAME> Sep 6, 2003
#include <cpLog.h>
// 16/1/04 fpi
// WorkAround Win32
#ifdef WIN32
#include "global.h"
#include "misc.hxx"
#include <fstream>
#include <sstream>
#include "Data.hxx"
#include "TimeVal.hxx"
#include "VTime.hxx"
#define snprintf _snprintf
#else
#include "misc.h... |
/*
* 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... |
/* ----------------------------------------------------------------------
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... |
#include <imu_aceinna_openimu/Protocol.hpp>
#include <imu_aceinna_openimu/Endianness.hpp>
#include <imu_aceinna_openimu/PeriodicUpdate.hpp>
#include <cstring>
#include <stdexcept>
#include <iostream>
#include <base/samples/RigidBodyState.hpp>
#include <base/samples/RigidBodyAcceleration.hpp>
using namespace std;
using... |
/*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agceements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... |
/*
* Copyright 2018 Imperial College London
* 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 la... |
// Kroni's Classes: Demonstration of many abilities in one guided tour
// (c) 1997 <NAME>
// file: demo.cpp
// ************************************************************************* //
// Demonstration of Kroni's Classes //
// ... |
#include "foliage.h"
#include "scene/mesh.h"
#include "model/mesh.h"
#include "model/hardwarebuffer.h"
#include <cstdio>
using base::bmodel::Mesh;
using scene::DrawableMesh;
using scene::Material;
using namespace base;
class RNG {
unsigned m_seed;
public:
RNG(unsigned seed=0) : m_seed(seed) {}
unsigned rand() { m... |
#include "mainwindow.h"
//1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
//========== class MainWindow ==========
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
{
//Initialize the taps
tapsArray[0] = 32;
tapsArray[1] = 31;
tapsArray[2] = 30;
... |
#include "gorgoneEyeDetection.h"
// #include "EyeRegionExtraction.h"
#include "FindHighLights.h"
#include "FindEyelidCurve.h"
#include "EncodeLee.h"
#include "ImageUtility.h"
#include "Normalization.h"
using namespace cv;
using namespace ofxCv;
void gorgoneEyeDetection::setup(const Mat& img){
ofLogNotice("gorgoneE... |
#include <stdbool.h>
#include "CppUTest/TestHarness.h"
#include <iostream>
#include <iomanip>
#include "rs41/rs41private.h"
#define U24(x) (x % 256), ((x / 256) % 256), (x / 65536)
const RS41_SubFrameMetrology sfMet = {
.adc = {
{.current = {U24(170206)}, .refmin = {U24(132352)}, .refm... |
# include <iostream>
# include <stdio.h>
# include <stdlib.h>
# include <math.h>
# include <string.h>
using namespace std;
// Funktionen
char* minu(int minute);
void time(long double sun, int &hour, int &minute);
void mez(long double &rmez, long double rmoz, long double &smez, long double smoz, long double longitude, ... |
#include "diagnoser.hpp"
#include <iostream>
#include "ast.hpp"
#include "lexer.hpp"
namespace {
using namespace acl::ec;
struct ECData {
ErrorType type;
acl::String title;
acl::String id;
};
const acl::Map<ErrorCode, ECData> ERROR_CODE_DATA = {
{UNKNOWN, {ErrorType::ERROR, "Unknown error", "unknown"}},
{SYMB... |
#define BACKWARD_HAS_DW 1
#include "backward.hpp"
namespace backward
{
backward::SignalHandling sh;
}
#include "fsrk/sagast/sagast.h"
#include "fsrk/sfreak/sfreak.hpp"
#include "fsrk/shape/circle.h"
#include <code_utils/sys_utils/tic_toc.h>
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/features2d/f... |
//
// Created by ondra on 5/12/2018.
//
#include "CUserInterface.h"
void CUserInterface::printStart() const {
// clear console
std::cout << "\033c";
std::cout << "0. Exit calendar" << std::endl;
std::cout << "1. Calendar view" << std::endl;
std::cout << "2. Add new event" << std::endl;
std::cout ... |
#include <limits>
#include <sys/time.h>
#include <gperftools/profiler.h>
#include "generate_splits_utils.h"
#include "bitmap.h"
using namespace std;
vector<struct ckpt> ckpts;
static int group_by = 0;
int filter_syscall = 0;
int use_ckpt = 0, do_split = 0, details = 0, do_repartition = 0;
int lowmem = 0;
double ut_a... |
/***************************************************************
** DLSTORM Deadline's Code Storm Library
** /\
** ---- D/L \----
** \/
** License: BSD
** Copyright: 2020
** File: c_var.cpp
** Class: CVar
** Description: Var class
** Author: <NAME... |
//Copyright (c) 2018 Hitachi Vantara Corporation
//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
//
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.