text stringlengths 5.71k 33.7k |
|---|
/**
* @file SensorBase.cpp
* @copyright 2020 Stroud Water Research Center
* Part of the EnviroDIY ModularSensors library for Arduino
* @author <NAME> <<EMAIL>>
*
* @brief Implements the Sensor class.
*/
#include "SensorBase.h"
#include "VariableBase.h"
// =======================================================... |
/*
* Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights ... |
// Copyright 2019 <NAME>
/// @file
/// @brief Support for Teco protocols.
#include "ir_Teco.h"
#include <algorithm>
#include "IRremoteESP8266.h"
#include "IRtext.h"
#include "IRutils.h"
#ifndef ARDUINO
#include <string>
#endif
// Constants
// using SPACE modulation.
const uint16_t kTecoHdrMark = 9000;
const uint16_t... |
//===- Utils.cpp ---- Misc utilities for code and data transformation -----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
//==- DeadStoresChecker.cpp - Check for stores to dead variables -*- C++ -*-==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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 "Manager.h"
#include <iostream>
#include <string.h>
#include <cstring> // For strcpy()
#include <vector>
#include <iomanip>
//#define include_labels 1
using namespace ClassProject;
//using namespace std;
// Constructor
Manager::Manager() {
//std::cout << "An ROBDD has been initialized\r\n";
table_l... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "dmserializerbinary.h"
#include "datamodel/idatamodel.h"
#include "datamodel.h"
#include "datamodel/dmelement.h"
#include "datamodel/... |
// Copyright 2011 The Avalon Project Authors. All rights reserved.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the LICENSE file.
// <NAME>, June 2011
// What shall be filtered?
// The IMU measurements are outputs of a Kalman-Bucy-filter and as such
// they are filtered with... |
#include "Angel.h"
#include <vector>
typedef Angel::vec4 point4;
typedef Angel::vec4 color4;
typedef GLfloat point3[3];
bool debug = false;
const char *TITLE = "mwa29 - CS537 assignment 7";
const bool just_lines = false;
int mainWindow;
int menu;
enum {FLAT_SHADING, SMOOTH_SHADING};
const int NumAxesPoints ... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include "ncommon.h"
#include <QPixmap>
#include <QScreen>
#include <QGuiApplication>
#include <QApplication>
#include <QtWidgets>
#include <QDateTime>
#include <QLabel>
#include <QFile>
#include <QProcessEnvironment>
#include <QProcess>
#include <QDebug>
#include <QTimer>
#include <QEventLoop>
#include <QDir>
#include... |
#include <set>
#include "Grass.h"
#include "../../util/IoUtils.h"
#include "../../util/ShaderNoise.h"
#include "../../util/ShadowMap.h"
#include "../../util/Texture.h"
#include "../../util/ShaderUtils.h"
static constexpr const char* vs[] = {
"attribute vec3 vertex;"
"attribute vec2 uv;"
"attribute vec3 position;"
... |
/**
* @file llfloaterauction.cpp
* @author <NAME>, <NAME>
* @brief Implementation of the auction floater.
*
* $LicenseInfo:firstyear=2004&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modif... |
#include <Ship.h>
Ship::Ship(double x, double y, float screenX, float screenY) : GameObject(x, y) {
// Load the Ship Sprites
texture.loadFromFile("Source/resources/shipSheet.png");
sprite.setTexture(texture);
sf::IntRect shipRect;
shipRect.top = 0;
shipRect.left = 0;
shipRect.width = 40;
shipRect.height = 40;
... |
#include "gtest/gtest.h"
#include "CAvaraApp.h"
#include "CBSPPart.h"
#include "CPlayerManager.h"
#include "CNetManager.h"
#include "CAvaraGame.h"
#include "CWalkerActor.h"
#include "CBSPWorld.h"
#include <nanogui/nanogui.h>
#include "FastMat.h"
#include "Parser.h"
#include "CSoundHub.h"
#include "CGrenade.h"
#include ... |
/* SPDX-License-Identifier: MIT */
/**
@file ntv2resample.cpp
@brief Implementations for the pixel resampling functions.
@copyright (C) 2004-2021 AJA Video Systems, Inc.
**/
#include "ntv2resample.h"
inline RGBAlphaPixel CubicInterPolate( RGBAlphaPixel *Input, LWord Index);
inline Word CubicInterPolateWord( Word... |
#define _CRT_SECURE_NO_WARNINGS
#include "Globals.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleUI.h"
#include "ModuleSceneLvl1.h"
#include "ModulePlayer.h"
#include "ModulePlayer2.h"
#include "ModuleBossLvl1.h"
#include "ModuleMainMenu.h"
#include "ModuleInput.h"
#i... |
/** @Main KVLD algorithm implementation
** @Containing scale image pyramid, VLD structure and KVLD algorithm
** @author <NAME>
**/
/*
Copyright (C) 2011-12 <NAME> and <NAME>.
All rights reserved.
This file is part of the KVLD library and is made available under
the terms of the BSD license (see the COPYING file).
... |
#include "login/oauth2-login.h"
#include <QByteArray>
#include <QCoreApplication>
#include <QDataStream>
#include <QDesktopServices>
#include <QDir>
#include <QJsonDocument>
#include <QJsonObject>
#include <QOAuth2AuthorizationCodeFlow>
#include <QOAuthHttpServerReplyHandler>
#include <QRandomGenerator>
#include <QUrlQ... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied w... |
/******************************************************************************
* Copyright (c) 2018 McAfee, LLC - All Rights Reserved.
*****************************************************************************/
#include "include/BrokerHelpers.h"
#include "include/BrokerSettings.h"
#include "brokerregistry/includ... |
#include "FlowGraph.h"
#include "BitSet.h"
#include "BuildIR.h"
#include <algorithm>
#include <unordered_map>
#include <vector>
using namespace vISA;
using namespace std;
namespace {
void getOpndFootprint(G4_Operand* opnd, BitSet& footprint)
{
opnd->updateFootPrint(footprint, true);
}
// Combine footprint.
//
/... |
/****************************************************************************************
** Implementation of Sarsa(lambda). It implements Fig. 8.8 (Linear, gradient-descent
** Sarsa(lambda)) from the book "R. Sutton and A. Barto; Reinforcement Learning: An
** Introduction. 1st edition. 1988."
** Some updates ar... |
/*
* Copyright 2018 https://github.com/manishpin
*
* 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://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying ... |
#include "global.h"
#include "captionobject.h"
QImage CaptionObject::image()
{
if (m_recreate)
createImage();
return m_image;
}
CaptionObject::CaptionObject() { clear(); }
CaptionObject::~CaptionObject() { clear(); }
void
CaptionObject::clear()
{
m_image = QImage();
m_pos = QPointF(0,0);
m_text.clear()... |
/* Teensyduino Core Library
* http://www.pjrc.com/teensy/
* Copyright (c) 2019 PJRC.COM, LLC.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without... |
#include "RecoLocalCalo/EcalRecAlgos/interface/PulseChiSqSNNLS.h"
#include <cmath>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>
void eigen_solve_submatrix(PulseMatrix &mat, PulseVector &invec, PulseVector &outvec, unsigned NP) {
using namespace Eigen;
switch (NP) { // pulse matrix... |
/*
CDTestFramework http://codercorner.com
Copyright (c) 2007-2008 <NAME>, <EMAIL>
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 ... |
// Defining the Node class
#include <string>
#include <vector>
#include <algorithm>
#include <random>
#include <map>
#include "Node.h"
#include "Grid.h"
#include "Common.h"
#include "Config.h"
Node::Node(std::string ID, Point location, int numCattle, Grid *gridPtr, const Config *config, std::mt19937 *rng)
: ... |
#include "utils.hpp"
#include "blas_wrappers.hpp"
#include <cv.h>
#include <highgui.h>
#include <cmath>
#include <cstdio>
#include <fstream>
using namespace std;
// Dual Augmented Lagrange Multiplier (DALM) algorithm
// problem: min ||x||_1 s.t. b = Ax
void FastDALM(
double *&x,
int& nIter,
double *b,
double ... |
#include "pch_script.h"
#include "UIGameCustom.h"
#include "level.h"
#include "ui/UIXmlInit.h"
#include "ui/UIStatic.h"
#include "object_broker.h"
#include "string_table.h"
#include "InventoryOwner.h"
#include "ui/UIActorMenu.h"
#include "ui/UIPdaWnd.h"
#include "ui/UIMainIngameWnd.h"
#include "ui/UIMessagesWindow.h"
... |
#include "interface.h"
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <shader.h>
#include <camera.h>
#include <programStatus.h>
#include <light.h>
#includ... |
/* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act. ... |
//
// Copyright (c) 2017 The Khronos Group 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... |
/* DdrescueCmp
** Utility program for cdrom rescue additions to the Gnu program:
** http://www.gnu.org/software/ddrescue/
**
** This program requires at least one argument, the name of the pair of files named .iso and .log
** that are output from ddrescue.
**
** ddrescuecmp ddrfile
**
** When invoked with that o... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCodecPriv.h"
#include "SkColorSpaceXform.h"
#include "SkSampler.h"
#include "SkStreamPriv.h"
#include "SkTemplates.h"
#include "SkWebpCodec.h"
// A WebP decoder o... |
// SPDX-License-Identifier: BSD-2-Clause
// Copyright (c) 2019-2020, <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:
// 1. Redistributions of source code must retain the above c... |
#include <stdio.h>
#include <time.h>
#include <curses.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>
#include <gtk/gtk.h>
GtkListStore * list_rooms;
GtkListStore * room... |
// Physics_SpringForce.cpp: implementation of the Physics_SpringForce class.
//
//////////////////////////////////////////////////////////////////////
#include "DRGShell.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////... |
#include "Honeywell_RSC.h"
Honeywell_RSC::Honeywell_RSC(int drdy_pin, int cs_ee_pin, int cs_adc_pin) {
_drdy_pin = drdy_pin;
_cs_ee_pin = cs_ee_pin;
_cs_adc_pin = cs_adc_pin;
pinMode(_drdy_pin, INPUT);
pinMode(_cs_ee_pin, OUTPUT);
pinMode(_cs_adc_pin, OUTPUT);
// deselect both EEPROM and ADC
digitalW... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
#pragma once
#include "tiny_math.hpp"
#include "stb/stb_image.h"
#include <SDL2/SDL.h>
#include <glad/glad.h>
#include <asio.hpp>
#include <atomic>
#include <cassert>
#include <cstdint>
#include <chrono>
#include <memory>
#include <string>
class tiny_engine;
enum class tiny_vetrex_attrib : GL... |
#include "weblegends.h"
#include "helpers.h"
#include "lodepng.h"
#include "modules/Gui.h"
#include "df/biome_type.h"
#include "df/coord2d_path.h"
#include "df/viewscreen_export_graphical_mapst.h"
#include "df/viewscreen_legendsst.h"
#include "df/world.h"
#include "df/world_data.h"
REQUIRE_GLOBAL(world);
static voi... |
#include "SoloFeature.h"
#include "streamFuns.h"
#include "TimeFunctions.h"
#include "serviceFuns.cpp"
#include <unordered_map>
#include "SoloCommon.h"
#include <bitset>
#define def_MarkNoColor (uint32) -1
inline int funCompareSolo1 (const void *a, const void *b) {
uint32 *va= (uint32*) a;
uint32 *vb= (uint32... |
// panda.cpp : Defines the exported functions for the DLL application.
//
#include "stdafx.h"
#include "device.h"
#include "panda.h"
#define REQUEST_IN 0xC0
#define REQUEST_OUT 0x40
#define CAN_TRANSMIT 1
#define CAN_EXTENDED 4
using namespace panda;
#pragma pack(1)
typedef struct _PANDA_CAN_MSG_INTERNAL {
uint32... |
#include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include "Primitive.h"
#include "PhysBody3D.h"
#include "PhysVehicle3D.h"
#include "ModulePlayer.h"
ModuleSceneIntro::ModuleSceneIntro(Application* app, bool start_enabled) : Module(app, start_enabled)
{
ground = new Cube(SKY_LIMITS, 0, SKY_L... |
//
// Created by nick on 9/21/16.
//
#include "MedLDA.h"
#include <atomic>
#include <omp.h>
#include <glog/logging.h>
#include <types.h>
#include "xmmintrin.h"
using std::atomic;
using std::sort;
#define PREFETCH_LENGTH 2
/**
* @tid : the thread number of current working thread
*/
void MedLDA::eStep() {
size_t*... |
// RUN: %clangxx -fsycl -fno-builtin %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
#include <CL/sycl.hpp>
#include <cassert>
#include <cstdint>
#include <cstring>
#include <iostream>
enum USM_TEST_RES { USM_ALLOC_FAIL = -1, USM_TEST_PASS = 0, ... |
#include "ImageUtility.h"
#if _MSC_VER
#ifndef snprintf
#define snprintf _snprintf
#endif
#endif
ImageUtility::ImageUtility()
{
}
ImageUtility::~ImageUtility()
{
}
float ImageUtility::myMean(IplImage* img, double n)
{
float mean = 0.0f;
double sum =0.0f;
for(int y=0; y< img->he... |
#include "register_allocation.h"
#include <random>
#include "nasm/helper.h"
#include "nasm/printer.h"
#include <fstream>
#include <iostream>
namespace mocker {
namespace detail {
namespace {
const std::vector<std::shared_ptr<nasm::Register>> Colors = {
nasm::rax(), nasm::rcx(), nasm::rdx(), nasm::rbx(), nasm::... |
/* --------------------------------------------------------------------------
*
* File Ch7_TileMapPathfinding.cpp
* Ported By <NAME>
* Contact <EMAIL>
*
* Created By <NAME>
* Contact <EMAIL>
*
* ---------------------------------------------------... |
#include "cargadatos.h"
//Julius
CargaDatos::CargaDatos() {
}
CargaDatos::~CargaDatos() {
}
pel::List<c_user> CargaDatos::leerUser(){
pel::List<c_user> usuarios;
c_user berto (1,0,0,1,"<NAME>","1","1");
c_user comp1 (2,0,0,2,"<NAME>","cmp1","cmp1");
//comp1.setBorrado(1);
c_user comp2 ... |
#include "stdafx.h"
#include "BVH.h"
#include "global.h"
void BVH::Triangle_Barycentric_Render(cv::Mat *res)
{
if (child[0]) child[0]->Triangle_Barycentric_Render(res);
if (child[1]) child[1]->Triangle_Barycentric_Render(res);
for (auto mesh : Object)
{
double x = mesh.Barycentric_coordinates[0];
double y = me... |
/*
------------------ ThirdPartyNotices------------------------------------------------------------------------------------
This file is based on or incorporates material from the projects listed below
Such licenses and notices are provided for informational purposes only.
Copyright (c) <NAME>
All rights reserved.
R... |
#include "testbugadd.h"
#include <cassert>
#include <cmath>
using namespace std;
BOOL TestBugAdd::Create(int nParties, const vector<int>& vParams)
{
// parse params
// params: vector length
if (vParams.size() < (unsigned)1)
{
cout << "Error! This circuit needs " << 1
<< "parameters for vector length"
<< en... |
//
// SceneManager.cpp
// VanGoghInMe_OF
//
// Created by Matteo on 20/03/2020.
//
#include "ofxSceneManagerGui.hpp"
#include "ofxXmlSettings.h"
#include <regex>
#include <algorithm>
string format_duration( std::chrono::milliseconds ms );
ofxSceneManagerGui::ofxSceneManagerGui() {
}
ofxSceneManagerGui::ofxScene... |
#include <specific/standard.h>
#include "objects.h"
#include "lara.h"
#include "laraanim.h"
#include "effect2.h"
#include "sphere.h"
#include "control.h"
#include "camera.h"
#include <specific/fn_stubs.h>
#define FIRE_ROOM 52
#define SMOKE_START 0
#define SMOKE_END 512
#define MAX_ELEC_POS 256
#define MAX_ELEC_PO... |
/**
* [ Name ] OCVEyeTracker
* [ Desc ] Tracks coordinates of eye gaze through webcam using opencv
* [ Author ] <NAME>
**/
// linux command line
// g++ -ggdb `pkg-config --cflags opencv` -o `basename OCVEyeTracker.cpp .cpp` OCVEyeTracker.cpp `pkg-config --libs opencv`
#include "opencv2/objdetect/objdetect.hpp"
#incl... |
/*
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use... |
#pragma once
#include <ros/ros.h>
#include <std_msgs/Header.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/PointCloud2.h>
#include <vector>
#include <cmath>
#include <algorithm>
#include <queue>
#include <deque>
#include <iostream>
#include <fstream>
#include <ctime>
#include <cfloat>
#include <iterator>
#inc... |
/*******************************************************************************
* Copyright (c) 2014, 2015 IBM Corp, 2019 MEmento Team.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1... |
#include "EntityCore/Core/VulkanMgr.hpp"
#include "EntityCore/Core/BufferMgr.hpp"
#include "EntityCore/Core/MemoryManager.hpp"
#include "Texture.hpp"
#include "PipelineLayout.hpp"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
std::string Texture::textureDir = "./";
Texture::Texture(VulkanMgr &master, int w... |
#include "matrix.hpp"
#include <algorithm>
#include <fstream>
using namespace std;
// 定义全局的随机数引擎
static default_random_engine global_random_engine;
/**
* @brief 创建一个正太分布的随机数矩阵
*
* @param rows 矩阵的行数
* @param cols 矩阵的列数
* @param mean 正太分布随机数的均值
* @param stddev 正太分布随机数的标准差
* @return Matrixf
*/
Mat... |
#include "DeviceMemoryStore.h"
#include "cudafuncs.h"
#include <algorithm>
using namespace sqaod_cuda;
/*
* FixedSizedChunks
*/
#ifdef _MSC_VER
/* __builtin_ctz() implementations on MSVC
* https ://stackoverflow.com/questions/355967/how-to-use-msvc-intrinsics-to-get-the-equivalent-of-this-gcc-code
*/
#include <i... |
#include <esquema/print.h>
#include <gtest/gtest.h>
string pprint(string_view sv) {
printer p(sv);
return p.print();
}
TEST(test, level2) {
// Testing binary operation
{ EXPECT_EQ(pprint("(+ 1 2)"_sv), "3"_sv); }
{ EXPECT_EQ(pprint("(- 1 2)"_sv), "-1"_sv); }
{ EXPECT_EQ(pprint("(* 2 3)"_sv), "6"_sv); }
... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
/* miscellaneous.c - Stuff not fitting elsewhere
* Copyright (C) 2003, 2006 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of either
*
* - the GNU Lesser General Public License as published by the Free
... |
/*
* Efficient RANSAC SHAPE DETECTION
* This algorithm based on a random sampling of points in the cloud in order to retrieve various basic shapes by consensus.
* The algorithm is not deterministic, but quite fast
* See: https://doc.cgal.org/latest/Point_set_shape_detection_3/index.html#Point_set_shape_detection_3M... |
/***********************************************************************************************************************
* Class for Discrete Unscented Kalman Filter
* Ref: <NAME>, .. (2004). Sigma-Point Kalman Filters for Probabilistic Inference in Dynamic
* State-Space Models (Ph.D. thesis). Oregon Health... |
//============================================================================
// Name : Aia3.cpp
// Author : <NAME>
// Version : 1.0
// Copyright : -
// Description :
//============================================================================
#include "CharPreparationSpace.h"
//
// constructor: ... |
/*++
Module Name:
geonome.cpp
Abstract:
Genome class for the SNAP sequencer
Authors:
<NAME>, August, 2011
Environment:
User mode service.
Revision History:
Adapted from Matei Zaharia's Scala implementation.
--*/
#include "stdafx.h"
#include "Genome.h"
#include "GenericFile.h"
#include "G... |
#include <QtCore>
#include "ccpp.h"
#include "blogger.h"
#include "cbase.h"
QPointer<ECpp> ECpp::o=0;
ECpp::ECpp(QObject *parent) :QObject(parent){
}
/*
*Returns the enum value name.
*Ex: DFile.error() returns OpenError
*/
QString ECpp::getCppEnumValueName(const QString &className, const QString &enumName, qint32... |
#define USE_OPENGL2
#include "OpenGLWindow/OpenGLInclude.h"
#ifdef _WIN32
#include "OpenGLWindow/Win32OpenGLWindow.h"
#elif defined __APPLE__
#include "OpenGLWindow/MacOpenGLWindow.h"
#else
// assume linux
#include "OpenGLWindow/X11OpenGLWindow.h"
#endif
#ifdef _WIN32
#include <sys/stat.h>
#include <sys/types.h>
#incl... |
#ifndef PI
#define PI 3.14159
#endif
#include "stereo_visual_odom/input.h"
#include "g3_to_ros_logger/ROSLogSink.h"
#include "g3_to_ros_logger/g3logger.h"
#include "stereo_visual_odom/configuration.h"
#include <math.h>
using namespace std;
Input::Input(cv::Mat projleft, cv::Mat projright, cv::Mat Kleft, cv::Mat Kr... |
#include <GL/glew.h>
#include <basic/camera.h>
#include <basic/shader.h>
#include <basic/program.h>
#include <stb_image.h>
#include <iostream>
#include <memory>
using namespace std;
void OnFramebufferSize(GLFWwindow* window, int width, int height);
void OnMouse(GLFWwindow* window, double xpos, double ypos);
void OnS... |
#include<iostream>
#include<stdio.h>
#include<string.h>
#include <conio.h>
using namespace std;
class Participant {
private:
char* nume;
const int id;
float* inaltime;
int varsta;
static int nrTotalP; //nrTotalP = contor ca sa tin eu minte
/*
- la linia de mai sus am comentariu "ca sa tin eu minte", dar ar f... |
/*
Copyright (c) 2008 <NAME> , <NAME>,
LASA Lab, EPFL, CH-1015 Lausanne, Switzerland,
http://www.calinon.ch, http://lasa.epfl.ch
The program is free for non-commercial academic use.
Please acknowledge the authors in any academic publications that have
made use of this code or part of it. Please use this B... |
/**
* przykładowa implementacja warstwowej sieci neuronowej. Sieć nie obsługuje rekurencji. Jest klasycznym rodzajem sieci neuronowej.
* */
#include <vector>
#include <memory>
#include <functional>
#include <iostream>
#include <random>
#include <sstream>
#include <fstream>
using namespace std;
random_device r_devic... |
//
// HAPFakeGato.cpp
// Homekit
//
// Created on: 29.08.2019
// Author: michael
//
#include "HAPFakeGato.hpp"
#include "HAPServer.hpp"
#include <base64.h>
#include "HAPHelper.hpp"
#include "HAPLogger.hpp"
HAPFakeGato::HAPFakeGato() {
_s2r1Characteristics = nullptr;
_s2r2Characteristics = nullptr;
... |
//
// Algorithm_RegionGrowing.cpp
// RegionGrowing
//
// Created by <NAME> on 2018-01-04.
// Copyright (c) <NAME>. All rights reserved.
//
#include "RegionGrowing.h"
#include "Algorithm/Algorithm_RegionGrowing.h"
#include "dbscan.hpp"
#include "SpaceMapping.hpp"
#include "Eigen/Sparse"
#include "Eigen/Geometry"... |
#include "textSubtitlesRender.h"
#include <cassert>
#include <string>
#include <unordered_map>
#include "math.h"
#include "memory.h"
#include "stdio.h"
#include "utf8Converter.h"
#include "vodCoreException.h"
#include "vod_common.h"
using namespace std;
namespace
{
const std::unordered_map<std::string, uint32_t> de... |
/**
* @file video_display/opengl_utils.cpp
* @author <NAME> <<EMAIL>>
*/
/*
* Copyright (c) 2010-2021 CESNET, z. s. p. o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted provided that the following conditions
* are met:
*
* 1. Re... |
// $Id: anynet.cpp 5188 2012-08-30 00:31:31Z dub $
/*
Copyright (c) 2007-2012, Trustees of The Leland Stanford Junior University
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 ... |
#include "Vehicle.h"
#include <algorithm>
#include <iterator>
#include <map>
#include <string>
#include <vector>
#include "Cost.h"
#include <iostream>
#include <math.h>
using std::string;
using std::vector;
using std::cout;
// Initializes Vehicle
Vehicle::Vehicle(){}
Vehicle::Vehicle(int id, double ... |
int w2R1
, G
,gIL
,ja//K
, T,/*rX*/
I2Jn ,
dZgQ, Oz2,sw//NeV
,P9L,Hfqk,HowR//L1
,
QkR/*vn*/,
ZX
,dNNn,
p5M,XZyx/**/, o, CJXv /**/,
Mli
,
i , /*mYh*/V4Q , xy5 /*xp*/
,efIK, WZwL , d,//Z
z8u6e ,BSzj
,
S3T,
oBt,
xhmX , Ayd ,TRKft,z4 ,Y,Bws3o,Od ;//Wp6
void f_f0
()/*rC*/{volatile int Cg0AFW ,
QRZ
,
... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "FieldOpTracker.h"
#include "BaseIRAnalyzer.h"
#include "ConcurrentContainers.h"
#include "ConstantAbstractDomain.h"
#inc... |
#include <iostream>
#include <vector>
#include <map>
#include <cmath>
struct Point
{
char letter;
double x, y;
Point & operator = (Point const & b) { letter = b.letter; x = b.x; y = b.y; return *this; }
Point(const Point & b) : letter(b.letter), x(b.x), y(b.y) {}
Point(char _letter, double _x, double _y) : lette... |
#include <string>
#include <vector>
#include <numeric>
#include "ini_reader.h"
#include "misc.h"
#include "nodeinfo.h"
extern int socksport;
std::string base_ss_win = R"({"version":"4.1.6","configs":[?config?],"strategy":null,"index":0,"global":false,"enabled":false,"shareOverLan":true,"isDefault":false,"localPort":... |
#include "MPU9250I2C.h"
MPU9250I2C::MPU9250I2C(PinName sda, PinName scl, MPU9250_AD0 celect)
: i2c(sda, scl),
acc_coef(MPU9250_ACC_LSB),
gyro_coef(MPU9250_GYRO_LSB),
mag_coef(MPU9250_MAG_LSB),
acc_offset(),
gyro_offset(),
mag_offset(),
mag_sensitivity_adjust()
{
if(celect == AD0... |
/**
* fwdmodel_asl_multite.cc - Implements the MULTITE ASL model
*
* <NAME>, FMRIB Image Analysis Group
* <NAME>, FME Bremen, MR Group
*
* Copyright (C) 2007 University of Oxford
*/
/* CCOPYRIGHT */
#include "fwdmodel_asl_multite.h"
#include <fabber_core/easylog.h>
#include <fabber_core/tools.h>
#include... |
// GLEW нужно подключать до GLFW.
// GLEW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>
#include <iostream>
#include <vector>
#include <chrono>
#include <cmath>
#include <exception>
#include <algorithm>
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_pt... |
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <getopt.h>
#include <set>
#include <map>
#include <vector>
#include "datatypes_AMOS.hh"
#include "Bank_AMOS.hh"
#include "BankStream_AMOS.hh"
#include "Contig_AMOS.hh"
#include "ContigEdge_AMOS.hh"
#include "Scaffold_AMOS.hh"
#include "Motif_AMOS.hh"
#include "... |
/*
Copyright 2016-2017 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distrib... |
/*
* Copyright 2018 Longri
*
* This program 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 3 of the License, or (at your option) any later version.
*
* This program is distributed... |
#include <GL\glew.h>
#include <GL\glut.h>
#include "TrainingImageRenderView.h"
#include "ldpMat\Quaternion.h"
#include "cloth\SmplManager.h"
#include "cloth\TransformInfo.h"
#include "Renderable\ObjMesh.h"
#include "cloth\clothManager.h"
#include <eigen\Dense>
#pragma region --mat_utils
inline Eigen::Matrix3d convert(... |
#include "playCommon.hh"
#include "BasicUsageEnvironment.hh"
#include "GroupsockHelper.hh"
#if defined(__WIN32__) || defined(_WIN32)
#define snprintf _snprintf
#else
#include <signal.h>
#define USE_SIGNALS 1
#endif
// Forward function definitions:
void continueAfterOPTIONS(RTSPClient* client, int resultCode, char* r... |
#include "CorePch.h"
#include "VppH264Codec.h"
#include <ICodecv2.h>
#include <H264v2.h>
#include <cpputil/Conversion.h>
using namespace rtp_plus_plus::media;
using rtp_plus_plus::media::MediaTypeDescriptor;
#define D_IN_COLOUR_RGB24 "0"
#define D_IN_COLOUR_YUV420P "16"
#define D_IN_COLOUR_YUV420P8 ... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "helpers.h"
#include "json.hpp"
#include "spline.h"
#include "math.h"
#include <chrono>
// for convenience
using nlohmann::json;
using ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.