text stringlengths 3.08k 22k |
|---|
// inspect.cpp
// Copyright (c) 2006 <NAME>
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
//-------------------------------------
#include <cstring>
#include <iomanip>
#include <iostream>
#in... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2011 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
/*
Copyright (c) 2020-present Advanced Micro Devices, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rig... |
#include <iostream>
#include <wiringPi.h>
#include <wiringPiI2C.h>
#include <cmath>
#include <inttypes.h>
#include <stdlib.h>
#include "BNO055.h"
void BNO055::init() // Funtion to primarily Init the operation and power registers
{
I2C_FD = wiringPiI2CSetup(BNO055_ADDR);
wiringPiI2CWriteReg8(I2C_FD, POWER_MODE,... |
#include <algorithm>
#include <cassert>
#include <iostream>
#include <random>
#include "rapidjson/prettywriter.h"
#include "rapidjson-converter/rapidjson-converter.h"
static std::random_device r;
static std::mt19937_64 re(r());
double RandomDouble() {
std::uniform_real_distribution<double> unif(
std::nu... |
#include "MonoConvolve.h"
#include "ConvolveSIMD.h"
#include <cassert>
#include <functional>
#include <random>
#include <stdexcept>
typedef MemorySwap<HISSTools::PartitionedConvolve>::Ptr PartPtr;
typedef std::unique_ptr<HISSTools::PartitionedConvolve> PartUniquePtr;
// Free Utility
void largeFree(HISSTools::Parti... |
/**The MIT License (MIT)
Copyright (c) 2017 by <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, me... |
/* $Id: UIWizardImportAppPageBasic2.cpp $ */
/** @file
* VBox Qt GUI - UIWizardImportAppPageBasic2 class implementation.
*/
/*
* Copyright (C) 2009-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* ... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/>
*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 201... |
/*
* Copyright (c) 2018 NVIDIA Corporation. All rights reserved.
*
* NVIDIA Corporation and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this software... |
// ===================================================================
// @last-modified 2016-06-01
// This is free and unencumbered software released into the public domain.
// ===================================================================
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring... |
#include <ros/ros.h>
#include <ros/package.h>
#include <std_msgs/Float64MultiArray.h>
#include <tf/tf.h>
#include <tf/transform_broadcaster.h>
#include <Eigen/Dense>
class NeuronBroadcaster {
public:
NeuronBroadcaster(const ros::NodeHandle &node)
: m_node(node)
{
m_slink_children_names = {"Hi... |
#include <iostream>
#include <fstream>
#include <string>
//#include <cstdlib>
#include <stdlib.h>
#include "sphere.h"
#include "object.h"
#include "material.h"
#include "point.h"
#include "color.h"
#include "scene.h"
#include "light.h"
#include "camera.h"
#include "mesh.h"
#include "operators.h"
using namespace std;
S... |
#include "UE4.h"
const FVector FVector::ZeroVector(0.0f, 0.0f, 0.0f);
const FVector FVector::OneVector(1.0f, 1.0f, 1.0f);
float FVector2D::Size() const { return sqrtf(X * X + Y * Y); }
void FMath::SinCos(float* ScalarSin, float* ScalarCos, float Value)
{
// Map Value to y in [-pi,pi], x = 2*pi*quotient + ... |
#include <iostream>
#include <fstream>
#include <QFileDialog>
#include <QFileInfo>
#include <QMessageBox>
#include <sstream>
#include <QLineEdit>
#include "editor_launcher.h"
#include "types.h"
#include "ui_editor_launcher.h"
#include "yaml.h"
#include "editor.h"
#define DEFAULT_AMMO_QTY 10
#define DEFAULT_WORMS_HEALT... |
/******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms of
* the Apache License 2.0. The full license can be found in the LICENSE file.
*
*/
#include <perspecti... |
#include "nvim_frontend.h"
#include "nvim_grid.h"
#include "nvim_pipe.h"
#include "nvim_redraw.h"
#include <asio.hpp>
#include <msgpackpp/msgpackpp.h>
#include <msgpackpp/rpc.h>
#include <msgpackpp/windows_pipe_transport.h>
#include <plog/Log.h>
#include <thread>
#include <vector>
static std::vector<char> ParseConfig(... |
#include "data_distribution.h"
#include "globals.h"
#include "rank_local_data.h"
#include "sparse_matrix_transfers.h"
#include "trots.h"
#include <iostream>
#include <vector>
#include <unordered_set>
#ifdef USE_MKL
#include "MKL_sparse_matrix.h"
#else
#include "EigenSparseMat.h"
#endif
namespace {
int probe_mess... |
//====================================================================================
// The MIT License (MIT)
//
// Copyright (c) 2011 Kapparock LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"... |
#include <getopt.h>
#include <stdlib.h>
#include <vector>
#include <iostream>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <assert.h>
#include <string>
using namespace std;
char *filename;
int maxxmin = 10;
void printUsage(){
cout << "scalefree: analyzer of the scale-free structure of SAT ins... |
#include "Responder.h"
#include "utils/BencodeParser.h"
#include "utils/PacketHelper.h"
#include "Configuration.h"
#include "utils/HexEncoding.h"
#define DHT_LOG(x) WRITE_LOG(LogTypeDht, "REMOTE " << x)
mtt::dht::Responder::Responder(DataListener& l) : listener(l)
{
}
void parseWantedNodeType(mtt::BencodeParser::Ob... |
#include "SimulationWindow.h"
#ifdef __APPLE__
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#endif
SimulationWindow::
SimulationWindow()
:GLWindow(),mCurFrame(0),mTotalFrame(0),mElapsedTime(0.0),mPlay(false),mIsNNLoaded(false)
{... |
// Copyright (c) 2015 <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, distri... |
//
// Checkpointer.cc
//
// Copyright © 2019 Couchbase. 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 "localsearch.h"
LocalSearch::LocalSearch() {
std::locale::global(std::locale(""));
std::wcout.imbue(std::locale());
}
LocalSearch::~LocalSearch() {
vecFileFrn.clear();
vecSearchResult.clear();
vecSortedIndexOfFileFrn.clear();
for (auto &x : umFrnMapIdx) {
x.clear();
}
}
void Local... |
#include <bits/stdc++.h>
using namespace std;
// Every vertex in this BST is a C Struct (to expose all its members publicly)
struct BSTVertex {
// all these attributes remain public to slightly simplify the code although this may not be the best practice
// BSTVertex* parent; // now removed, all code below t... |
#include "Logging.hpp"
#include "IOLib.h"
#include "crc32.h"
#include <iostream>
#include <random>
#include <vector>
#include <algorithm>
using namespace std;
using random_bytes_engine = std::independent_bits_engine<
std::default_random_engine, CHAR_BIT, unsigned char>;
// Maximum space of elements for which to... |
#include "vaultserver.hpp"
#include "Dedicated.hpp"
#include "Script.hpp"
#include "Utils.hpp"
#include "Client.hpp"
#include "ServerEntry.hpp"
#include "iniparser/src/dictionary.h"
#include "iniparser/src/iniparser.h"
#ifdef __WIN32__
#include <winsock2.h>
#endif
#include <cstdio>
#include <thread>
#include <unordere... |
#include "InputCapture_TIM.h"
#include "Interrupt.h"
//constructor, initialize: rcc, gpio, timer, NVIC
InputCapture_TIM::InputCapture_TIM(TIM_TypeDef *TIMx, u16 minHz, bool enCh1, bool enCh2, bool enCh3, bool enCh4, u8 intGroup,u8 prePriority,u8 subPriority)
{
_TIMx = TIMx; //timer selected for input capture
_enCh... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <string>
#include <utility>
#include "ControlSystem/Averager.hpp"
#include "ControlSystem/Controller.hpp"
#include "ControlSystem/Protocols/ControlSystem.hpp"
#include "ControlSystem/TimescaleTuner.hpp"
#in... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompan... |
/* Copyright 2014 <NAME> <EMAIL> */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "TVchain.h"
#include "nloglogn_util.h"
#include "block.h"
///////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////... |
// jhcFollow3D.cpp : analyzes depth data to find person's waist
//
// Written by <NAME>, <EMAIL>
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2012-2014 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file exc... |
/**
* Copyright © 2018-2021 InAccel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
/**
* This implements LexMIB, our modified version of the algorithm of Dias et al.
* for enumerating all maximal induced bicliques in a graph in lexicographical
* order. See our associated paper for an explanation of how our modified
* version differs from the original algorithm of Dias et al. presented here:
*
* <NA... |
/*
* WeatherManagerImplementation.cpp
*
* Created on: 11/03/2011
* Author: Anakis
*/
#include "server/zone/managers/weather/WeatherManager.h"
#include "server/zone/Zone.h"
#include "events/WeatherChangeEvent.h"
#include "server/zone/objects/creature/CreatureObject.h"
#include "templates/params/creature/Crea... |
/*
* Copyright (c) 2015 Microsoft Open Technologies, 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
*
* THIS CODE IS PROVID... |
// Copyright 2018 D-Wave Systems 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 agree... |
/*
MIT License
Copyright (c) 2021 <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, publis... |
#include<opencv2/opencv.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include<cmath>
//#include "ros/ros.h"
//#include "std_msgs/UInt16.h"
#include<iostream>
using namespace cv;
using namespace std;
Mat img;
//global variables
double mul = 1;
int iter = 12; //iterations required ... |
#include "secdialog.h"
#include "qheaderview.h"
#include "ui_secdialog.h"
#include "QTableWidget"
#include <QTableWidgetItem>
#include <QHeaderView>
#include <iostream>
#include "jsonreader.h"
#include "RenTogether.h"
#include "rentalform.h"
#include <QVector>
#include <QtWidgets>
using namespace std;
const QString ... |
// Preprocessor related:
#define GENERATE_ALL
// Includes:
#include <string>
#include <iostream>
#include <fstream>
#include <stdexcept>
// Namespace(s):
using namespace std;
// Functions:
template <typename strSymbol_t, typename T>
void emitSymbol(ostream& s, const strSymbol_t strSymbol, const T symbol, const bool ... |
//
// Copyright (c) 2015-2016 <NAME> (<EMAIL> at g<EMAIL> dot <EMAIL>)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <nudb/test/test_store.hpp>
#include <nudb/util.hpp>
#include <beast/unit_test/ds... |
#include <Atom.hpp>
#include <Declarations.hpp>
#include <Helper.hpp>
#include <LinAlg.hpp>
#include <Molecule.hpp>
#include <Parser/Parser.hpp>
#include <RDCdata.hpp>
#include <RDCset.hpp>
#include <SphericalHarmonics.hpp>
#include <Structure.hpp>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <o... |
/*=============================================================================
simplexml.cpp
Spirit V1.3
URL: http://spirit.sourceforge.net/
Copyright (c) 2001, <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the copyright holder b... |
/*
* Copyright (c) 2013, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
//===- MarkLive.cpp -------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... |
#pragma once
// 実装破綻した おわり
template <typename S, typename T, T (*f)(T, T), T (*I)(), int LOG = 20>
struct DynamicWaveletMatrix {
static uint64_t rng() {
static uint64_t x_ = 88172645463325252ULL;
x_ = x_ ^ (x_ << 7);
x_ = x_ ^ (x_ >> 9);
return x_ & 0xFFFFFFFFull;
}
using P = pair<S, T>;
st... |
#include "planar_view_interactor.h"
#include <cgv/utils/ostream_printf.h>
#include <cgv/gui/key_event.h>
#include <cgv/gui/mouse_event.h>
#define _USE_MATH_DEFINES
#include <cmath>
#include <cgv_gl/gl/gl.h>
using namespace cgv::math;
using namespace cgv::gui;
using namespace cgv::render;
planar_view_interactor::pla... |
#if defined(_MSC_VER) /* MSVC Compiler */
#pragma warning ( disable : 4305 )
#pragma warning ( disable : 4786 )
#endif
#include "qwt3d_meshplot.h"
#include "qwt3d_enrichment_std.h"
using namespace std;
using namespace Qwt3D;
Triple const& MeshPlot::MeshData::operator()(unsigned cellnumber, unsigned vertexnumber)
{
... |
/**
* @file dv_posf.cc
* @brief Source file for class dv_posf
*/
#include "dv_posf.h"
#include "domain.h"
#include <iostream>
#include <cstdlib>
#include <numeric> //accumulate
////////////////////////////////////////////////////////////////////////////////
/*! dv_posf constructor function
*
* @param p_domn \i... |
/**
\file
\author <NAME>
*/
#include "FCLCollisionDetector.h"
#include <cnoid/Plugin>
#include <cnoid/IdPair>
#include <cnoid/MeshExtractor>
#include <boost/make_shared.hpp>
#include <boost/bind.hpp>
#include <fcl/collision.h>
#include <fcl/shape/geometric_shapes.h>
#include <fcl/BVH/BVH_model.h>
#include <boost... |
#include "Overlay.h"
#include <atlcomcli.h>
#include <d3d12.h>
#include <Image.h>
#include <imgui.h>
#include <MinHook.h>
#include <Pattern.h>
#include <kiero/kiero.h>
#include <spdlog/spdlog.h>
void Overlay::EarlyHooks(Image* apImage)
{
uint8_t* pLocation = FindSignature({
0x48, 0x89, 0x5C, 0x24, 0x08, 0... |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2004-2009 <NAME> <<EMAIL>>
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lic... |
// ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <stdlib.h>
#include<opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.... |
#include "TChain.h"
#include "TGraph.h"
#include "TH2.h"
#include "TH1.h"
#include <naiarraymodel.hpp>
#include "init_ds.hpp"
#include "macroincludes.hpp"
#include "drawcuts.h"
#include "msgoutput.hpp"
using namespace s13::ana;
using namespace s13::sim;
TChain *g_local_chain = init_4he_partial_dataset(10);
cl... |
//
// Copyright (c) 2018 <NAME>
//
#include <fstream>
#include "../include/DataSet.h"
void metis::DataSet::create(std::vector<unsigned> attributes, std::vector<unsigned> categoricalAttr,
std::vector<std::map<std::string, unsigned>> dictionary) {
_nAttributes = attributes.size();
_... |
/* mbed Microcontroller Library
* Copyright (c) 2019 ARM Limited
* SPDX-License-Identifier: Apache-2.0
************************************************************************
*
* Commissioning test for the L432KC and the Pmod small OLED display
*
**********************************************************************... |
#include <string.h>
#include "JWModules.hpp"
#define BUFFER_SIZE 512
struct MinMax : Module {
enum ParamIds {
TIME_PARAM,
TRIG_PARAM,
NUM_PARAMS
};
enum InputIds {
X_INPUT,
Y_INPUT,
TRIG_INPUT,
NUM_INPUTS
};
enum OutputIds {
NUM_OUTPUTS
};
float bufferX[BUFFER_SIZE] = {};
float bufferY[BUFFE... |
#pragma once
#define GLM_ENABLE_EXPERIMENTAL 1
#include <Eigen/Dense>
#include <Eigen/Geometry>
#include <Halide.h>
#include <fstream>
#include <glm/ext.hpp>
#include <glm/glm.hpp>
#include <halide_image_io.h>
#include <iostream>
#include <stdio.h>
#include <fstream>
#include <sstream>
#include <string>
#include <vect... |
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... |
/**
* This file is part of ORB-SLAM2.
*
* Copyright (C) 2014-2016 <NAME> <raulmur at unizar dot es> (University of Zaragoza)
* For more information see <https://github.com/raulmur/ORB_SLAM2>
*
* ORB-SLAM2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as p... |
#define MISSION2_CPP
/*************************************************************************************************\
mission2.cpp : The parts of mission.cpp that we need for the mech
viewer
//---------------------------------------------------------------------------//
// Copyright (C) Microsoft Corporation. All ... |
// Copyright 2015 Open Source Robotics Foundation, 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 appli... |
// online2 wav gmm latgen faster
//Step 1 : Managing Imports
#include "online2/online-feature-pipeline.h"
#include "online2/online-gmm-decoding.h"
#include "online2/onlinebin-util.h"
#include "online2/online-timing.h"
#include "online2/online-endpoint.h"
#include "fstext/fstext-lib.h"
#include "lat/lattice-functions.h... |
//
// Project for course Computer Graphics (PGR)
// Faculty of Information Technology, Brno University of Technology
//
// Authors: <NAME>, <EMAIL>
// <NAME>, <EMAIL>
// <NAME>, <EMAIL>
// Date: December 2014
//
#include "pgr.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#ifdef W... |
// Copyright 2015 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 "tools/gn/runtime_deps.h"
#include <set>
#include <sstream>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/str... |
// $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/CalibData/src/Tkr/BadStrips.cxx,v 1.7.588.1 2010/10/08 16:18:53 heather Exp $
/** @class BadStrips
* Implementation of bad or hot strips TCDS representation
*/
#include "CalibData/Tkr/BadStrips.h"
#include "GaudiKernel/MsgStream.h"
namespace {
static ... |
/*
* Copyright (c) 2010, <NAME>, <NAME>, <NAME>,
* <NAME>, <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... |
#pragma once
#include "acmacs-base/text-style.hh"
// ----------------------------------------------------------------------
namespace acmacs
{
class PointShape
{
public:
enum Shape {Circle, Box, Triangle, Egg, UglyEgg};
PointShape() noexcept : mShape{Circle} {}
PointShape(const ... |
//////////////////////////////////
// This implementation has been //
// placed in the public domain //
// by //
// //
// <NAME> - 1/11/2021 //
//////////////////////////////////
#include "joye_libert.h"
#include "misc.h"
#include <iostream>
//#include <NTL/ZZ_pXFactoring.h>
//#include <NTL/ZZ_pE... |
// Copyright (c) 2015-2018 <NAME> (at gmail dot com)
// This file is distributed under the MIT License.
#include "ofp/byteorder.h"
#include "ofp/unittest.h"
using namespace ofp;
TEST(byteorder, IsHostBigEndian) {
const char *be = "\1\2\3\4";
const char *le = "\4\3\2\1";
UInt32 n = 0x01020304;
if (detail::Is... |
/*
* The MIT License (MIT)
*
* Copyright (c) Microsoft 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, cop... |
// Copyright 2020 The Fuchsia 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 "svg_scene_demo_image.h"
#include <utility>
#include "spinel/ext/color/color.h"
#include "spinel/ext/transform_stack/transform_stack.h"
#include... |
/*
* This node processes front camera image and provides detects the parking spot (production)
*/
#include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <geometry_msgs/PoseArray.h>
#include <std_msgs/Bool.h>
#include <opencv2/opencv.hpp>
#include <cv_bridge/cv_bridge.h>
#include <dynamic_reconfigure/server.h>... |
/**
* @file UserStore.cpp
*
* This module contains the implementation of the Bouncer::UserStore
* class.
*/
#include <Bouncer/User.hpp>
#include <Bouncer/UserStore.hpp>
#include <Bouncer/UserStoreContainer.hpp>
#include <memory>
#include <stddef.h>
#include <stdint.h>
#include <string>
#include <vector>
namespac... |
#include "config.h"
#include "MWatch.h"
#include "lvgl_declare.h"
static lv_obj_t *main_page;
static lv_obj_t *sub_app_1_page;
static const char *media_control_button_matrix[] = {LV_SYMBOL_PREV, LV_SYMBOL_PLAY, LV_SYMBOL_NEXT};
static lv_obj_t *media_control_buttons;
static bool media_buttons_hidden = true... |
//DMA clock divider
auto CPU::dmaCounter() const -> uint {
return counter.cpu & 7;
}
//joypad auto-poll clock divider
auto CPU::joypadCounter() const -> uint {
return counter.cpu & 127;
}
auto CPU::stepOnce() -> void {
counter.cpu += 2;
tick();
if(hcounter() & 2) nmiPoll(), irqPoll();
if(joypadCounter() =... |
/*****************************************************************************
*
* Copyright 2016 <NAME>. 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
*
* ... |
/*
* Copyright (c) 2016-2019 <NAME> https://irlanrobson.github.io
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose... |
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <iostream>
#include <map>
using namespace std;
struct sbcp_header{
unsigned int version:9;
unsigned int type:... |
#include "capture/RaspiCamera.h"
#include <signal.h>
#include <sched.h>
using namespace IL;
struct State {
Camera* camera;
VideoEncode* preview_encode;
VideoEncode* record_encode;
bool recording;
bool running;
pthread_t preview_thid;
pthread_t record_thid;
} state = { nullptr, nullptr, nullptr, false, f... |
// Copyright (c) 2015-2017 DMOJ: Modern Online Judge. All rights reserved.
// Copyright 2012 the V8 project authors. 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... |
/*
* EdContext.cpp
*
* Created on: Nov 22, 2016
* Author: netmind
*/
#include <atomic>
#include <sstream>
#include "uvcpplog.h"
#include "UvContext.h"
#include "UvStream.h"
#include "UvUdp.h"
#include "UvFsEvent.h"
#include "UvGetAddrInfo.h"
#include "UvGetNameInfo.h"
#include "ImmediateWrapper.h"
#include ... |
#include <iostream>
#include <kvs/Timer>
#include <kvs/Matrix>
#include <kvs/Vector>
namespace
{
void PerfTest( const size_t size, const size_t nloops )
{
std::cout << "Performance Test (" << nloops << " times)" << std::endl;
typedef kvs::Matrix<float> Mat;
const kvs::Indent indent(4);
// Random
... |
#include <iostream>
#include <iomanip>
#include <chrono> // required for timing runtime.
#include <vector> // semi-required depending on gcc version. For using vectors.
#include <stdlib.h> // used for abs() function.
#include "mpi.h"
using namespace std;
// Global consts.
// Total size for each axis of the matrix. ... |
/******************************************************************************
Copyright 2017-2019 Nativepython Authors
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://ww... |
#include "stdafx.h"
#include "uber_deffer.h"
#include "xrRender_console.h"
void fix_texture_name(LPSTR fn);
Fmatrix sun_near_shadow_xform;
Fmatrix sun_far_shadow_xform;
Fmatrix sun_clouds_shadow_xform;
void uber_deffer (CBlender_Compile& C, bool hq, LPCSTR _vspec, LPCSTR _pspec, BOOL _aref, LPCSTR _detail_replace, b... |
/*
* Copyright (c) 2020 Karim, <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, pub... |
/*-----------------------------------------------------------------------------
Entity.cpp
This tracks the active elements of the gameworld: pickups, projectiles,
robots, etc.
Good Robot
(c) 2014 <NAME>
-----------------------------------------------------------------------------*/
#include "master.h"
... |
// given .vtk files as arguments, loads the meshes and puts them in a scene
// rendered using Manta
#include <stdlib.h>
// include the required header files for the VTK classes we are using.
#include "vtkPolyDataMapper.h"
#include "vtkRenderWindow.h"
#include "vtkCamera.h"
#include "vtkRenderer.h"
#include "vtkRender... |
/*
MIT License
Copyright (c) 2016-2017 <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 "SendSlateBuilder.h"
#include "TransactionBuilder.h"
#include "OutputBuilder.h"
#include "CoinSelection.h"
#include "SlateUtil.h"
#include <Core/Exceptions/WalletException.h>
#include <Core/Util/FeeUtil.h>
#include <Common/Util/FunctionalUtil.h>
#include <Common/Logger.h>
#include <Consensus/HardForks.h>
#inc... |
#include <Windows.h>
#include <conio.h>
#include <iostream>
#include <vector>
#include <ctime>
#include <thread>
using namespace std;
void showConsoleCursor(bool);
void printWalls(HANDLE);
void newSnakeCoords(vector<COORD>&, int);
void checkWallContact(COORD&, bool);
COORD newTarget(vector<COORD>, HANDLE);... |
/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of condi... |
#include "xcb_img.h"
#include <unistd.h>
#include <sys/shm.h>
#if (XCB_SHM_MAJOR_VERSION == 1 && XCB_SHM_MINOR_VERSION >= 2) || XCB_SHM_MAJOR_VERSION > 1
# include <sys/mman.h>
#endif
namespace detail {
// NOTE: expect this to not be needed anywhere else
XCB_MAKE_REQ_TRAIT(shm_query_version);
struct fd_array {
fd_... |
#include "../matslise2d.h"
#include "./etaIntegrals.h"
#include <matslise/util/legendre.h>
#include <matslise/util/scoped_timer.h>
using namespace Eigen;
template<typename Scalar, int N = MATSLISE_N>
void legendreTransform(const Scalar &delta, Array<Scalar, N, 1> &quadratures) {
static Matrix<Scalar, N, N> legend... |
#include "IRbabyIR.h"
#include "ESP8266HTTPClient.h"
#include "IRbabySerial.h"
#include "IRbabyUDP.h"
#include "IRbabyUserSettings.h"
#include <LittleFS.h>
#include "IRbabyGlobal.h"
#include "defines.h"
#define DOWNLOAD_PREFIX "http://irext-debug.oss-cn-hangzhou.aliyuncs.com/irda_"
#define DOWNLOAD_SUFFIX ".bin"
#defi... |
//
// main.cpp
// MBMapSplitter
//
// Copyright (c) 2015 <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... |
// SPDX-License-Identifier: LGPL-3.0-or-later OR BSD-3-Clause
/***************************************************************************
* Copyright (C) 2020 by <NAME> *
* <EMAIL> *
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.