text stringlengths 3.08k 22k |
|---|
/*
USNA Sailbot Hull 13, Mod 2
USNA Department of Weapons & Systems Engineering
*/
#include "mbed.h"
#include "rtos.h"
#include "rudder.h"
#include "mainsail.h"
#include "windbirdie.h"
#include "compass.h"
#include "gps.h"
#include "logger.h"
#include "xbee.h"
#include "nav.h"
#define SAILBOT_VERSION "13.2.1"
#d... |
#include <ATen/ATen.h>
#include <stdio.h>
#include <math.h>
void CropAndResizePerBox(
const float * image_data,
const int batch_size,
const int depth,
const int image_height,
const int image_width,
const float * boxes_data,
const float * box_index_data,
const int start_box,
con... |
///////////////////////////////////////////////////////////////////////////////
///
/// \file TextEditor.hpp
/// Declaration of the TextEditor Widget.
///
/// Authors: <NAME>
/// Copyright 2010-2012, DigiPen Institute of Technology
///
////////////////////////////////////////////////////////////////////////////... |
#include <iostream>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <sys/stat.h>
#include <unistd.h>
#include <algorithm>
#include <fstream>
#include <map>
#include <math.h>
#include <fcntl.h>
#include <vector>
#include <iterator>
#include "431project.h"
using namespace std;
/*
... |
/*
* Copyright (c) 2018 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... |
#include "./RENRasteriserFlatShading.h"
#ifdef _MSC_VER
#if defined(DEBUG_MEM)
#define CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define new new(_NORMAL_BLOCK,__FILE__, __LINE__)
#endif
#endif // _MSC_VER
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include "GENAssert.h"
... |
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include <filesystem>
#include <iostream>
#include <fstream>
#include <include/emulator.h>
#include <lib/stb_image_write.h>
#include <lib/md5.h>
#include <GL/glew.h>
#include <include/settings_manager.h>
#include <include/error_factory.hxx>
namespace {
std::ifstream::pos_type fi... |
/*
(Modified) MIT License
Copyright (c) 2020 <NAME>.
Copyright (c) 2020 <NAME> and other contributors
Portions of this repo contains sourcecode either inspired by or copied from
published code from Adafruit Industires, from thisisant.com and from
Nordic Semiconductor ASA. The main inputs were:
* Adafruit_nRF52_Ardu... |
#include "core/core.h"
#include "atom/atom_basic.h"
#include "box/box_group.h"
#include "common.h"
using namespace std;
using namespace tex;
#ifdef HAVE_LOG
void print_box(const sptr<Box>& b, int dep, vector<bool>& lines) {
__print("%-4d", dep);
if (lines.size() < dep + 1) lines.resize(dep + 1, false);
for (... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//=====================================================... |
#include "ttc.h"
#include "../../json.h"
#include "../../serial.h"
#include "../../dwhttp.h"
#include "../../wifitime.h"
#include "ttc.cfg.h"
#include "common.cfg.h"
#include <algorithm>
#include <esp_log.h>
#include <ttc_rdf.h>
const static char * TAG = "ttc";
namespace transit::ttc {
void update_ttc_entry_name(si... |
// Copyright 2007 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz
// or its licensors, as applicable.
// Copyright 1992-2007 <NAME>
//
// You may not use this file except under the terms of the accompanying license.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this... |
//============================================================================
// Name : A4.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include <iostr... |
/*
MIT License
Copyright (c) 2022 <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, distrib... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <string>
#include <ie_core.hpp>
#include "tests_common.hpp"
#include "../common_single_layer_tests/deconv_ref.hpp"
#include "ir_gen_helper.hpp"
#include "common_test_utils/common_layers_params.hpp"... |
#include "renderer.hpp"
Renderer::Renderer(Scene const& scene/*, glm::vec3 const& ce*/):
width_(scene.width_),
height_(scene.height_),
colorbuffer_(width_*height_, Color(0.0, 0.0, 0.0)),
filename_(scene.filename_),
scene_(scene),
//screenCenter_(ce),
ppm_(width_, height_){}
//Berechnen der Rays durch j... |
// 2021-2-15
// HC
// Directory Non-recursive Filename Diff. (no content)
#include <iostream> // basic
#include <math.h>
#include <vector>
#include <algorithm>
#include <string>
#include <functional> // trimming
#include <cctype>
#include <locale>
// directory reading
#include <filesystem>
using namespace std;... |
#include <iostream>
#include "../../examples/libpmemobj_cpp_examples_common.hpp"
#include <libpmemobj++/experimental/nam_hash_nolockf.hpp>
#include <iostream>
#include <cstdio>
#include <ctime>
#include <libpmemobj++/make_persistent.hpp>
#include <libpmemobj++/p.hpp>
#include <libpmemobj++/persistent_ptr.hpp>
#include... |
#pragma once
#include "constants.hpp"
// Each buffer element replicates incoming message contents
// Overhead on memory and copying for avoiding to handle ROS message types
struct BufferElement {
std::string tag = NONE_TAG;
float floatValue = 0.0f;
bool boolValue = false;
};
struct Buffer {
enum MonitoredVariab... |
#include "ofxNDIGrabber3.h"
ofxNDIGrabber3::ofxNDIGrabber3()
{
_finder = NULL;
_receiver = NULL;
_sources = NULL;
_bandWidth = NDIlib_recv_bandwidth_highest;
_initialized = NDIlib_initialize();
if (!_initialized)
{
ofLogFatalError("ofxNDIGrabber3")<< "cannot run NDI";
ofLogNotice("ofxNDI")<< "... |
// Copyright (c) 2020 The Wagerr developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <betting/bet_common.h>
#include <betting/bet_v3.h>
#include <betting/bet_db.h>
#include <betting/oracles.h>
#include <main.... |
/*
Copyright (C) 2019 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 deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribut... |
/* Copyright [2013-2018] [<NAME>, Minimal Graphics Library]
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 agre... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
#include <curses.h>
#include <chrono>
#include <string>
#include <thread>
#include <vector>
#include <iostream>
#include "format.h"
#include "ncurses_display.h"
#include "system.h"
using std::string;
using std::to_string;
// 50 bars uniformly displayed from 0 - 100 %
// 2% is one bar(|)
std::string NCursesDisplay::P... |
// file : vmatrix.cc
// author : <NAME>
// date : 5/30/92
// notes : This program tests the use of and performance of server-less
// distributed shared memory. It is quite similar to the program of
// the same name used to test the single server distributed shared
// memory.
#include <mach/mach.h>
#inc... |
/*
* SphereRenderer.cpp
*
* Copyright (C) 2010 by Universitaet Stuttgart (VISUS).
* All rights reserved.
*/
#include "stdafx.h"
#define _USE_MATH_DEFINES 1
#include "SphereRenderer.h"
#include "mmcore/CoreInstance.h"
#include "mmcore/utility/ShaderSourceFactory.h"
#include "mmcore/param/EnumParam.h"
#include "... |
#include <stores/xbox/xbox_library.h>
#include <pugixml.hpp>
#include <wtypes.h>
#include <fstream>
#include <filesystem>
#include <json.hpp>
#include <SKIF.h>
#include <SKIF_utility.h>
/*
Xbox / MS Store games shared registry struture
Root Key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\GamingServices\PackageRepositor... |
#include "UniMRCP-wrapper.h"
#include <iostream>
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
using namespace std;
// UniMRCP client root directory
static char const ROOT_DIR1[] = "../../../../trunk";
static char const ROOT_DIR2[] = "../../../../UniMRCP";
static char const ROOT_DIR3[] = "../../../..... |
#include "hyperspacecompileoperation.h"
#include "hyperspacecompilerplugin.h"
#include <qml/settings/hyperspace/hemeraqmlsettingsmqtttransport.h>
#include <HemeraCore/Literals>
#include <QtCore/QSettings>
#include <QtNetwork/QHostAddress>
#include <QtQml/QQmlEngine>
#include <QtQml/QQmlListReference>
#include <plu... |
/*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... |
/*
GUIDO Library
Copyright (C) 2002 <NAME>, <NAME>, <NAME>
Copyright (C) 2004 Grame
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Grame Research Laboratory... |
// ===============================================================================
//
// NVIDIA PhysX SDK Sample Program
//
// Title: Articulate Truck
// Description: This sample program shows how to use joints to create a truck.
// Visualization is handled by the SDK debug visualization.
//
// Ori... |
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2016-2017 <NAME>, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person obtaining a... |
//=== LLVMConventionsChecker.cpp - Check LLVM codebase conventions ---*- C++ -*-
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#define AcdDigi_TestAcdDigiAlg_CXX
// File and Version Information
// $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/AcdDigi/src/test/util/TestAcdDigiAlg.cxx,v 1.10.22.1 2010/10/08 04:00:24 heather Exp $
// Description:
// Test for AcdUtil class.
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/Alg... |
/*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 0.3
* copyright (c) 2019, Universidad Politécnica de Valencia (UPV), PRHLT Research Centre
* Date: October 2019
* Author: PRHLT Research Centre, UPV, (<EMAIL>), (<EMAIL>)
* All rights reserved
*/
#include <stdio.h>
#include <stdlib.h>
#include... |
#include <3ds.h>
#include <string>
#include <citro2d.h>
#include <algorithm>
#include "CTRFont.hpp"
#include "unicode.h"
#include "gfx.h"
#include "save.h"
#include "e_utils.h"
#include "utils.h"
#include "InputManager.h"
#include "menus.h"
#include "gui/PlayerMenu.hpp"
PlayerSettings EditorConfig;
void Editor::Playe... |
/**
* 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... |
/*
<NAME>
<EMAIL>
Track contour in an image.
*/
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/photo.hpp> // deno... |
/*
* Copyright (c) 2016-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
/***********************************************************************************************************************
MMBasic for Windows
Serial.cpp
<COPYRIGHT HOLDERS> <NAME>, <NAME>
Copyright (c) 2021, <COPYRIGHT HOLDERS> All rights reserved.
Redistribution and use in source and binary forms, with or without mo... |
/* -------------------------------------------------------
Copyright (c) 2011 <NAME> (alberto.salguero (at) uca.es)
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, inclu... |
// Copyright (c) 2007 <NAME> <<EMAIL>>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publi... |
#include "DirectoryTagEntry.h"
#include "DirectoryTagEntryList.h"
#include <iomanip>
#include <iostream>
#include <cstdlib>
#include <fstream>
#include <string>
#include <cstring>
#include <pwd.h>
#include <unistd.h>
#include <vector>
#include <sys/types.h>
#include <sys/stat.h>
using com::github::coderodde::ds4mac::D... |
/*
* overlay_graph_test.cpp
*
* Created on: 02.01.2016
* Author: <NAME>
*
* Copyright (c) 2016 <NAME> and <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 rest... |
//
// Created by lugt on 2019/5/5.
//
#include "common_def.h"
#include "xiaoxiaole.h"
#include "xiaoxiao_util.h"
#include <list>
#include <unordered_map>
using std::vector;
static std::unordered_map<INT64, INT> * max_arriving_pts_depth_branch = NULL;
static std::unordered_map<INT64, vector<INT> * > * max_pts_per_d... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
// BSD 2-Clause License, see github.com/ma16/rpio
// --------------------------------------------------------------------
// DMA setup and test
// --------------------------------------------------------------------
#include "../invoke.h"
#include <Neat/cast.h>
#include <Neat/safe_int.h>
#include <Linux/Shm.h>
#inclu... |
// jhcAliaOp.cpp : advice on what to do given some stimulus or desire
//
// Written by <NAME>, <EMAIL>
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2017-2020 IBM Corporation
// Copyright 2020-2021 Etaoin Systems
//
// Licensed under the Apache License, Version 2.0 (the ... |
// 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/common/string_ordinal.h"
#include <algorithm>
#include <cstddef>
#include "base/basictypes.h"
#include "base/logging.h"
namespace ... |
/*******************************************************************************
* Copyright (c) 2021, <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:
*
* 1. Redistributions of sourc... |
/** \class HcalText2DetIdConverter
\author F.Ratnikov, UMd
*/
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include "FWCore/Utilities/interface/Exception.h"
#include "DataFormats/HcalDetId/interface/HcalGenericDetId.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include ... |
#include "mm/stmatch/stmatch_algorithm.hpp"
#include "algorithm/geom_algorithm.hpp"
#include "util/debug.hpp"
#include "util/util.hpp"
#include <limits>
using namespace FMM;
using namespace FMM::CORE;
using namespace FMM::NETWORK;
using namespace FMM::MM;
using namespace FMM::PYTHON;
STMATCHConfig::STMATCHConfig(
... |
/*
* Copyright (C) 2018 Microchip Technology Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <egt/detail/meta.h>
#include <egt/ui>
#include <iostream>
#include <locale>
#include <libintl.h>
#include <string>
#include <utf8.h>
#define _(String) gettext(String)
static std::string get_... |
#include <unordered_map>
#include <string>
#include <functional>
#include <cstdint>
#include <cstring>
#include <unistd.h>
#include <sys/mman.h>
#include <elf.h>
#include <AL/al.h>
#include <libreborn/libreborn.h>
#include "file.h"
#include "engine.h"
// Load Symbol From ELF File
static void load_symbol(const char ... |
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <getopt.h>
#include <cstring>
#include "less/LessTokenizer.h"
#include "less/LessParser.h"
#include "css/CssWriter.h"
#include "css/CssPrettyWriter.h"
#include "stylesheet/Stylesheet.h"
#include "css/IOException.h"
#include "lessstyle... |
/**
* @file test_3d_bernoulli_beam.cpp
* @brief Bernoulli beam for verification/validation. The test is based on the analytical solution.
* @author <NAME>, Virtonomy GmbH
*/
#include <gtest/gtest.h>
#include "sphinxsys.h"
/** Name space. */
using namespace SPH;
/** Geometry parameters. */
Real PL = 0.2;
Real PH = ... |
#include "Helpers/GameKeyboard.hpp"
#include "Helpers/Game.hpp"
#include "RegionCodes.hpp"
#define RANGE(X, START, END) (X >= START && X <= END)
namespace CTRPluginFramework {
bool GameKeyboard::Write(const std::string& str) {
if(!GameKeyboard::IsOpen())
return false;
if(*(u32 *)Code::ChatPoint.ad... |
#include "Transaction.hpp"
// Convention: constructors which map directly to member variables should use
// longer names to give the prototype more clarity.
Transaction::Transaction(const Bytes &fromAddr, const Bytes &toAddr, int sendAmount)
: fromKey(fromAddr), toKey(toAddr), amount(sendAmount) {}
Transaction::Tran... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2011 Master IMAFA - Polytech'Nice Sophia - Université de Nice Sophia Antipolis
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
* A new algorithm for using Edit Distance matrices of the form AxB to compute Edit *
Distance matrices of the form aAxB, where 'A' and 'B' are strings, 'B' is a
* suffix of 'A', and 'a' is a character. This algorithm reduce... |
/* This file is part of the Pinocchio automatic rigging library.
Copyright (C) 2007 <NAME> (<EMAIL>)
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 ... |
#include <iostream>
#include <fstream>
#include <algorithm>
#include <list>
#include <stdint.h>
#include <string.h>
using namespace std;
unsigned int getFileSize(string fileName) {
ifstream input(fileName, ifstream::binary | ifstream::ate);
return input.tellg();
}
template <typename T>
void serialize(vector<... |
/**
* @file llfloaterperms.cpp
* @brief Asset creation permission preferences.
* @author <NAME>
*
* $LicenseInfo:firstyear=2001&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under... |
// <NAME>
// <EMAIL>
//
// EPU 2019-20
//
#include "rvwidget.h"
#include <QMessageBox>
RVWidget::RVWidget(QWidget *parent)
: QOpenGLWidget(parent), QOpenGLFunctions(),
m_angleX(30.0f),m_angleY(0),m_angleFov(45), m_opacity(100)
{
m_timer = new QTimer();
}
RVWidget::~RVWidget()
{
}
void RVWidget::initial... |
/*! \file */
/* ************************************************************************
* Copyright (c) 2019-2022 Advanced Micro Devices, Inc.
*
* 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 S... |
//
// MenuRenderer.cpp
// ButOSX
//
// Created by Can on 29.10.2020.
// Copyright © 2020 Lyceion. All rights reserved.
//
#include "MenuRenderer.hpp"
#include "xorstr.h"
#include "CheatSettings.h"
#include "MainHooker.hpp"
#include "CustomWidgets.hpp"
#include "../../ObjectiveCWrapper/ObjCWrapper.h"
char *Pages::... |
#include "Resources.h"
#include "util/termError.h"
#include "render/opengl.h"
#include "render/Model.h"
#include "render/Color.h"
#include "Terminal.h"
etm::Resources::contextdata_t::contextdata_t(Resources *parent):
textShader(parent),
primitiveShader(parent),
textureShader(parent),
termFramebufferTe... |
//
// Created by kevin on 4/3/18.
//
#include "franka-interface/trajectory_generator/pose_dmp_trajectory_generator.h"
#include <cmath>
#include <iomanip>
#include <iostream>
void PoseDmpTrajectoryGenerator::parse_parameters() {
// First parameter is reserved for the type
int data_size = (params_[1] + (params_[2... |
/************************************************************************************
** The MIT License (MIT)
**
** Copyright (c) 2021 3dEyes**
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"), to deal
** i... |
//#include <iostream>
//
//int main()
//{
// std::cout << "Hello World!\n";
//}
/** @file pa_devs.c
@ingroup examples_src
@brief List available devices, including device information.
@author <NAME> http://www.softsynth.com
@note Define PA_USE_ASIO=0 to compile this code on Windows without
ASIO support.
*/
/*... |
/*
* This class reads temperature data from an AD8495 thermocouple amp
* as well as the thermistor readings from the onchip 10bit ADC
*
* Vref = 0.0V [Cannot sense temps below 0C]
* ADC = reported 10bit A/D value
* Vsense = 5.0V * (ADC / 1024)
*
* Temp = (Vsense - Vref) / 5 mV/C
* = Vsense * 1C... |
#include "AliFMDESDFixer.h"
#include "AliESDFMD.h"
#include "AliFMDStripIndex.h"
#include "AliForwardUtil.h"
#include "AliForwardCorrectionManager.h"
#include "AliFMDCorrNoiseGain.h"
#include "AliLog.h"
#include <TH1.h>
#include <TList.h>
#include <TObjArray.h>
#include <TROOT.h>
#include <TMath.h>
#include <TSystem.h>... |
/**
* Copyright (C) 2021 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
// Copyright (C) 2020 - 2022 by <NAME>, Rector and Visitors of the
// University of Virginia, University of Heidelberg, and University
// of Connecticut School of Medicine.
// All rights reserved.
#include <cmath>
#include "copasi/utilities/CLeastSquareSolution.h"
#include "copasi/lapack/lapackwrap.h"
#include "copas... |
/* XMRig
* Copyright 2010 <NAME> <<EMAIL>>
* Copyright 2012-2014 pooler <<EMAIL>>
* Copyright 2014 <NAME> <https://github.com/lucasjones>
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 <NAME> <<EMAIL>>
* Copyright 2017-2018 XMR-Stak <https://github.com/f... |
#include "MPU6886.h"
#include <math.h>
#include <Arduino.h>
MPU6886::MPU6886(){
}
void MPU6886::I2C_Read_NBytes(uint8_t driver_Addr, uint8_t start_Addr, uint8_t number_Bytes, uint8_t *read_Buffer){
Wire1.beginTransmission(driver_Addr);
Wire1.write(start_Addr);
Wire1.endTransmission(false);
uint8_t i =... |
/*
* Copyright 2020 California Institute of Technology (“Caltech”)
*
* 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 r... |
// This file describes a challenge of a C++ L1 Padawan. The goal
// of this unit test is to suggest an API and the abstractions
// needed to implement an isometry.
// Consider including other header files if needed.
#include "isometry.h"
#include <cmath>
#include <sstream>
#include <string>
#include "gtest/gtest.h"
... |
#include "lexer.hpp"
Lexer::Lexer(std::string code, std::string sourceOfCode):
code(code), sourceOfCode(sourceOfCode) {}
std::unique_ptr<Lexer> Lexer::tokenize(std::string code, std::string sourceOfCode) {
Lexer* lx = new Lexer(code, sourceOfCode);
lx->processTokens();
return std::unique_ptr<Lexer>(lx);
}
bo... |
//===============================================================
// testEmcBumps: test mearging
//
//===============================================================
#include "BaBar/BaBar.hh"
#include "BaBar/Constants.hh"
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <Gtypes.h>
#... |
#include "DataFormats/EcalDetId/interface/EcalTrigTowerDetId.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <cassert>
EcalTrigTowerDetId::EcalTrigTowerDetId() {
}
EcalTrigTowerDetId::EcalTrigTowerDetId(uint32_t rawid) : DetId(rawid) {
}
EcalTrigTowerDetId::EcalTrigTowerDetId(int zside, EcalSubdet... |
/*
* FogLAMP notification service class
*
* Copyright (c) 2018 Dianomic Systems
*
* Released under the Apache 2.0 Licence
*
* Author: <NAME>
*/
#include <management_api.h>
#include <management_client.h>
#include <service_record.h>
#include <plugin_manager.h>
#include <plugin_api.h>
#include <plugin.h>
#include ... |
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define lson (now<<1)
#define rson (lson|1)
const int maxN=50100;
const int maxBit=31;
const int blocksize=100000;
const int inf=2147483647... |
# include <array>
# include <stdlib.h>
# include <stdio.h>
# include <string.h>
# include <xcb/xcb.h>
# include "./init-egl.h"
# include "./runApp.h"
# include <sys/epoll.h>
# include <fcntl.h>
// # include <sys/socket.h>
# include <unistd.h>
# define ALEN(arr) (sizeof(arr)/sizeof(arr[0]))
int bar () {
// Cr... |
/**
* @file examples/test-usart-dma.cpp
* @author <NAME> <<EMAIL>>
*
* Simple test of DMA used with a USART receiver.
*
* Configures a USART receiver for use with DMA. Received bytes are
* placed into a buffer, with an interrupt firing when the buffer is
* full. At that point, the USART transmitter will print... |
/*
BMP180.cpp
Bosch BMP180 pressure sensor library for the Arduino microcontroller
<NAME>, SparkFun Electronics
Uses floating-point equations from the Weather Station Data Logger project
http://wmrx00.sourceforge.net/
http://wmrx00.sourceforge.net/Arduino/BMP085-Calcs.pdf
Forked from BMP085 library by M... |
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
... |
#include "Creature.h"
#include "State.h"
#include "Startle.h"
#include "Midi.h"
#include "Neopixel.h"
#include "Debug.h"
State::State(Creature& creature, char* const name, const uint8_t id) : _creature(creature), _id(id) {
strncpy(_name, name, MAX_NAME_LEN);
_name[MAX_NAME_LEN] = 0;
};
uint8_t State::getId() {
... |
/*
* Refresh.cpp
*
* Mainly DSARP specialization at the moment.
*
* Created on: Mar 17, 2015
* Author: kevincha
*/
#include <stdlib.h>
#include "Refresh.h"
#include "Controller.h"
#include "DRAM.h"
#include "DSARP.h"
using namespace std;
// using namespace ramulator;
// namespace ramulator {
/**** DSA... |
#include <stdio.h>
#include <stdlib.h>
#include "mDNS.h"
// This guy doesn't do much other than redirect the callbacks back to our internal callback function
static void browse_callback(
DNSServiceRef service,
DNSServiceFlags flags,
uint32_t interfaceIndex,
DNSServiceErrorType errorCode,
const char * name,
const... |
#include <MultiPingTask.h>
#if _MULTIPING_DEBUG_
#include <RunningStatistics.h>
#undef __GXX_EXPERIMENTAL_CXX0X__ // otherwise GPIO::SFR bit shifts confused
// with << or >> streaming operators
#include <PrintEx.h>
#endif
using namespace MultiPing;
/*---TaskListIterator----------... |
/*==================================================================*
* ___ _ _ _ _ _ *
* / __(_)_ __ ___ | |__ _ _| |_ _(_)_ __ | |_ ___ _ __ *
* / _\ | | '_ ` _ \| '_ \| | | | \ \ /\ / / | '_ \| __/ _ \ '__| *
* / / | | | | | | | |_) | |_| | |\ V V /| | | | |... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright 1991- The GROMACS Authors
* and the project initiators <NAME>, <NAME> and <NAME>.
* Consult the AUTHORS/COPYING files and https://www.gromacs.org for details.
*
* GROMACS is free software; you can redistribute it and/or
* modify i... |
/*
* ginfuncs.c
* Functions to investigate the content of GIN indexes
*
* Copyright (c) 2014-2016, PostgreSQL Global Development Group
*
* IDENTIFICATION
* contrib/pageinspect/ginfuncs.c
*/
#include "postgres.h"
#include "knl/knl_variable.h"
#include "access/gin.h"
#include "access/gin_private.h"
#include "c... |
//=================================================================
//
// W2kEnum.cpp -- W2k enumeration support
//
// Copyright (c) 1996-2001 Microsoft Corporation, All Rights Reserved
//
// Revisions: 07/28/99 Created
//
//============================================================... |
#include <cstdint>
#include "Base64.hpp"
#include "common/Exception.hpp"
const char Base64::encodeTable[64] =
{
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
/*************************************************************************************
The MIT License
BWA-MEM2 (Sequence alignment using Burrows-Wheeler Transform),
Copyright (C) 2019 Intel Corporation, <NAME>.
Permission is hereby granted, free of charge, to any person obtainin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.